/* Yuna by AIOS: shared look for the signed-in pages (presentations, editor, meetings, team). */
:root { --bg: #f6f7fb; --card: #fff; --ink: #141a2e; --muted: #67708a; --line: #e3e7f0; --blue: #1a73e8; --blue-soft: #e8f0fe;
        --red: #d93025; --green: #188038; --amber: #b06000; --radius: 12px; --shadow: 0 1px 2px rgba(20,26,46,.06), 0 2px 8px rgba(20,26,46,.05); }
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--ink); font: 14px/1.5 Inter, Roboto, system-ui, sans-serif; }
a { color: var(--blue); text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.ms { font-family: "Material Symbols Rounded"; font-size: 20px; line-height: 1; font-variation-settings: "FILL" 0; vertical-align: middle; user-select: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

header.top { height: 56px; background: var(--card); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 24px; padding: 0 20px; position: sticky; top: 0; z-index: 10; }
header.top .brand { font-weight: 700; font-size: 16px; display: flex; gap: 8px; align-items: center; color: var(--ink); }
header.top .brand i { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, #1a73e8, #7b1fa2); display: inline-block; }
header.top nav { display: flex; gap: 4px; flex: 1; }
header.top nav a { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 500; }
header.top nav a.on { color: var(--blue); background: var(--blue-soft); }
header.top .me { color: var(--muted); display: flex; gap: 12px; align-items: center; }
main.page { max-width: 1180px; margin: 0 auto; padding: 24px 20px 48px; display: grid; gap: 20px; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.head h1 { font-size: 22px; font-weight: 600; }

.btn { height: 38px; padding: 0 16px; border-radius: 19px; border: 1px solid var(--line); background: var(--card); font-weight: 600;
       display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn:hover { border-color: #c9d0de; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: #1765cc; }
.btn.danger { color: var(--red); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.sm { height: 30px; padding: 0 12px; font-size: 13px; }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: var(--muted); }
.icon-btn:hover { background: #eef1f6; color: var(--ink); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stat { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.stat b { display: block; font-size: 26px; font-weight: 700; }
.stat span { color: var(--muted); }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.filters { display: flex; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.filters input, .filters select { height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: #fff; }
.filters input { flex: 1; min-width: 180px; }
table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 10px 16px; border-bottom: 1px solid var(--line); }
table.list td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr.row:hover td { background: #fafbfe; cursor: pointer; }
table.list tr:last-child td { border-bottom: 0; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; color: var(--muted); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: #eef1f6; color: var(--muted); }
.tag.green { background: #e6f4ea; color: var(--green); }
.tag.blue { background: var(--blue-soft); color: var(--blue); }
.tag.amber { background: #fef7e0; color: var(--amber); }
.tag.red { background: #fce8e6; color: var(--red); }
.empty { padding: 48px 16px; text-align: center; color: var(--muted); display: grid; gap: 12px; justify-items: center; }

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 500; }
.form label small { color: var(--muted); font-weight: 400; }
.input { height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; background: #fff; width: 100%; }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; min-height: 80px; line-height: 1.5; }
.input:focus { outline: 2px solid var(--blue); border-color: transparent; }
.input.bad { border-color: var(--red); }
.ferr { color: var(--red); font-size: 13px; }
.check { display: flex !important; grid-template-columns: none; gap: 8px; align-items: center; font-weight: 400 !important; }
.check.hidden { display: none !important; }

dialog { margin: auto; border: 0; border-radius: 16px; padding: 0; max-height: calc(100% - 32px); width: min(560px, calc(100% - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(20,26,46,.45); }
dialog .dh { padding: 18px 20px 0; display: flex; justify-content: space-between; align-items: center; }
dialog .dh h2 { font-size: 18px; font-weight: 600; }
dialog .db { padding: 16px 20px; display: grid; gap: 14px; }
dialog .df { padding: 0 20px 18px; display: flex; justify-content: flex-end; gap: 8px; }
.link-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 8px; align-items: center; }
.link-row input { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font-size: 12px; background: #f8f9fc; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #202124; color: #fff; padding: 10px 18px; border-radius: 8px; z-index: 100; box-shadow: 0 4px 16px rgba(0,0,0,.3); }

.auth { min-height: 100%; display: grid; place-items: center; padding: 16px; }
.auth .panel { width: min(400px, 100%); padding: 28px; display: grid; gap: 18px; }
.auth h1 { font-size: 22px; font-weight: 600; }

@media (max-width: 720px) {
  header.top { gap: 10px; padding: 0 12px; }
  header.top .brand span { display: none; }
  header.top .me .who { display: none; }
  table.list .hide-sm { display: none; }
  main.page { padding: 16px 12px 40px; }
}
