/* =========================================================
   Jovens Sarados — tema futurista (preto · amarelo · branco)
   ========================================================= */
:root {
  --bg: #060709;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-solid: #101116;
  --side-ink: #9b9ba6;
  --soft: rgba(255, 255, 255, 0.05);
  --ink: #f5f5f7;
  --ink-2: #b4b4bf;
  --ink-3: #70707c;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --accent: #ffd60a;
  --accent-2: #ffb800;
  --accent-ink: #0a0a0a;
  --accent-soft: rgba(255, 214, 10, 0.1);
  --accent-line: rgba(255, 214, 10, 0.45);
  --glow: 0 0 0 1px rgba(255, 214, 10, .35), 0 0 22px rgba(255, 214, 10, .28);
  --glow-sm: 0 0 14px rgba(255, 214, 10, .35);
  --danger: #ff5a52;
  --ok: #3ee38a;
  --warn: #ffb020;
  --hover: rgba(255, 255, 255, 0.045);
  --shadow: 0 20px 50px rgba(0, 0, 0, .55);
  --radius: 14px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(255, 214, 10, .09), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(255, 184, 0, .05), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--accent-ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #22232a; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #33343d; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--ink); text-decoration: none; background-image: linear-gradient(var(--accent), var(--accent)); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; transition: color .15s; }
a:hover { color: var(--accent); }
a.plain, .nav-item, .btn, .tab, .card, .list-row, .stat, .back, .notice { background-image: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; margin: 0; }
h1 { font-size: 32px; line-height: 1.1; }
h2 { font-size: 21px; }
h3 { font-size: 15px; letter-spacing: -.01em; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow::before { content: '//'; color: var(--accent); margin-right: 7px; }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.shell > div { min-width: 0; }
.sidebar {
  background: linear-gradient(180deg, #08080a, #040405); color: var(--side-ink);
  padding: 22px 14px 14px; display: flex; flex-direction: column; gap: 2px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  border-right: 1px solid var(--line);
  box-shadow: 1px 0 0 rgba(255, 214, 10, .06);
}
.side-logo { padding: 2px 8px 22px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.side-logo img { width: 100%; max-width: 206px; display: block; }
.nav-group { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: #55555f; padding: 18px 12px 7px; display: flex; align-items: center; gap: 8px; }
.nav-group::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--side-ink); font-weight: 500; position: relative; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.nav-item:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.nav-item.active { background: linear-gradient(90deg, rgba(255, 214, 10, .16), rgba(255, 214, 10, .02)); color: var(--accent); border-color: rgba(255, 214, 10, .22); font-weight: 600; }
.nav-item.active::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); box-shadow: var(--glow-sm); }
.nav-item svg { width: 18px; height: 18px; flex: none; }
.nav-item .mdot { width: 8px; height: 8px; border-radius: 2px; flex: none; margin: 0 5px; transform: rotate(45deg); }
.nav-item.sub { padding: 7px 12px; font-size: 13.5px; }
.nav-item.add { color: var(--accent); opacity: .85; }
.nav-item.add:hover { opacity: 1; }
.nav-item .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-foot { margin-top: auto; padding: 12px 6px 2px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.sidebar-foot .btn { color: var(--side-ink); }
.avatar { width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 214, 10, .12); color: var(--accent); border: 1px solid rgba(255, 214, 10, .3); display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; font-family: var(--mono); }
.avatar.dark { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: var(--glow-sm); }
.avatar.lg { width: 64px; height: 64px; font-size: 20px; border-radius: 16px; }
.main { min-width: 0; padding: 34px 44px 70px; max-width: 1440px; animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.topbar-mobile { display: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head p { margin: 8px 0 0; color: var(--ink-3); }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }
.back { font-family: var(--mono); font-size: 12px; color: var(--ink-3); display: inline-block; margin-bottom: 14px; letter-spacing: .04em; }
.back:hover { color: var(--accent); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 11px 16px; font-weight: 600; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; transition: color .15s; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--accent); border-color: var(--accent); text-shadow: 0 0 18px rgba(255, 214, 10, .45); }
.tab .count { background: var(--soft); color: var(--ink-2); font-family: var(--mono); font-size: 11px; border-radius: 6px; padding: 0 6px; text-shadow: none; }
.tab.on .count { background: var(--accent); color: var(--accent-ink); }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); padding: 8px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; white-space: nowrap; color: var(--ink); transition: background .15s, border-color .15s, box-shadow .15s, transform .1s; }
.btn:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .25); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.primary { background: linear-gradient(180deg, var(--accent), var(--accent-2)); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 1px rgba(255, 214, 10, .4), 0 6px 20px rgba(255, 214, 10, .18); }
.btn.primary:hover { box-shadow: var(--glow); filter: brightness(1.05); color: var(--accent-ink); }
.btn.dark { background: #000; border-color: var(--accent-line); color: var(--accent); }
.btn.dark:hover { box-shadow: var(--glow); color: var(--accent); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.danger, .btn.danger:hover { color: var(--danger); }
.btn.danger:hover { border-color: rgba(255, 90, 82, .4); }
.btn.sm { padding: 5px 11px; font-size: 13px; }
.btn.icon { padding: 7px; }
.btn svg { width: 16px; height: 16px; }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .35); border-radius: 10px; padding: 10px 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
.input::placeholder { color: #5a5a66; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 214, 10, .15), 0 0 18px rgba(255, 214, 10, .12); }
select.input option { background: var(--panel-solid); }
textarea.input { resize: vertical; min-height: 90px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.seg { display: inline-flex; background: rgba(0, 0, 0, .4); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 5px 13px; border-radius: 7px; cursor: pointer; color: var(--ink-3); font-weight: 600; transition: color .15s; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--accent); color: var(--accent-ink); box-shadow: var(--glow-sm); }
.search { position: relative; }
.search input { padding-left: 36px; min-width: 240px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--ink-3); }
input[type=color] { width: 42px; height: 38px; padding: 3px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(0, 0, 0, .35); cursor: pointer; }
input[type=date]::-webkit-calendar-picker-indicator, input[type=time]::-webkit-calendar-picker-indicator { filter: invert(.8); cursor: pointer; }

/* ---------- chips / tags ---------- */
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); cursor: pointer; user-select: none; transition: opacity .15s, border-color .15s; }
.chip:hover { border-color: rgba(255, 255, 255, .3); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip.off { opacity: .35; }
.chip.off .dot { background: var(--ink-3) !important; }
.tag { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; color: #fff; white-space: nowrap; text-shadow: 0 1px 1px rgba(0, 0, 0, .3); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filters .label { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); margin-right: 4px; min-width: 100px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: 6px; font-size: 12px; background: var(--soft); color: var(--ink-2); font-weight: 500; border: 1px solid var(--line); }
.pill.coord { background: var(--accent); color: var(--accent-ink); font-weight: 700; border-color: var(--accent); }
.pill.yellow { background: var(--accent-soft); color: var(--accent); font-weight: 600; border-color: rgba(255, 214, 10, .25); }
.status { font-size: 12.5px; font-weight: 600; }
.status.ativo { color: var(--ok); }
.status.afastado, .status.pendente { color: var(--warn); }
.status.inativo { color: var(--ink-3); }

/* ---------- cards / panels ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); position: relative; }
.panel::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 214, 10, .3), transparent 28%, transparent 72%, rgba(255, 255, 255, .06));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.panel-pad { padding: 22px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card {
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 18px; cursor: pointer; position: relative; overflow: hidden; color: inherit; display: block;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: 0 14px 40px rgba(0, 0, 0, .5), 0 0 30px rgba(255, 214, 10, .08); color: inherit; }
.card .bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; }
.card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; background: radial-gradient(circle, rgba(255, 214, 10, .14), transparent 70%); opacity: 0; transition: opacity .25s; pointer-events: none; }
.card:hover::after { opacity: 1; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat {
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; color: var(--ink-2); font-size: 13px; position: relative; overflow: hidden; transition: border-color .2s, transform .2s;
}
a.stat:hover { border-color: var(--accent-line); transform: translateY(-2px); color: var(--ink-2); }
.stat b { display: block; font-family: var(--display); font-size: 34px; line-height: 1.05; color: var(--ink); font-weight: 700; letter-spacing: -.03em; margin-bottom: 2px; }
.stat.dark { background: linear-gradient(160deg, rgba(255, 214, 10, .2), rgba(255, 214, 10, .04)); border-color: var(--accent-line); box-shadow: inset 0 0 30px rgba(255, 214, 10, .06); }
.stat.dark b { color: var(--accent); text-shadow: 0 0 24px rgba(255, 214, 10, .5); }
.stat::after { content: ''; position: absolute; right: 14px; top: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: var(--glow-sm); opacity: .7; }
.empty { padding: 44px 20px; text-align: center; color: var(--ink-3); }

/* ---------- table ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); font-weight: 500; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr.click { cursor: pointer; }
.table tbody tr.click:hover { background: rgba(255, 214, 10, .05); }
.table-wrap { overflow-x: auto; }

/* ---------- calendar ---------- */
.cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.cal-title { font-family: var(--display); font-size: 24px; font-weight: 700; min-width: 210px; letter-spacing: -.02em; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal-dow { padding: 10px; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--accent); background: rgba(0, 0, 0, .45); border-bottom: 1px solid var(--accent-line); }
.cal-day { min-height: 124px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 7px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; min-width: 0; transition: background .12s; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day:hover { background: rgba(255, 214, 10, .045); }
.cal-day.other { background: rgba(0, 0, 0, .3); }
.cal-day.other .num { color: #3d3d46; }
.cal-day .num { font-family: var(--mono); font-size: 12px; font-weight: 500; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: var(--ink-2); }
.cal-day.today { background: rgba(255, 214, 10, .05); box-shadow: inset 0 0 0 1px rgba(255, 214, 10, .35); }
.cal-day.today .num { background: var(--accent); color: var(--accent-ink); font-weight: 700; box-shadow: var(--glow-sm); }
.ev { display: flex; align-items: center; gap: 5px; font-size: 12px; padding: 3px 7px; border-radius: 6px; background: color-mix(in srgb, var(--c) 18%, transparent); border-left: 2px solid var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; font-weight: 500; color: var(--ink); transition: background .12s, box-shadow .12s; }
.ev:hover { background: color-mix(in srgb, var(--c) 32%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 35%, transparent); }
.ev .t { color: var(--ink-3); font-family: var(--mono); font-size: 11px; }
.ev .tx { overflow: hidden; text-overflow: ellipsis; }
.ev.done .tx { text-decoration: line-through; opacity: .5; }
.ev .tdots { display: inline-flex; gap: 2px; margin-left: auto; }
.ev .tdots i { width: 6px; height: 6px; border-radius: 50%; }
.more { font-family: var(--mono); font-size: 11px; color: var(--accent); padding-left: 6px; }
.agenda-day { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.agenda-day:last-child { border-bottom: 0; }
.agenda-date { font-family: var(--mono); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.agenda-item { display: flex; gap: 12px; align-items: flex-start; padding: 9px 11px; border-radius: 10px; cursor: pointer; transition: background .12s; }
.agenda-item:hover { background: rgba(255, 214, 10, .05); }
.agenda-item .bar { width: 3px; align-self: stretch; border-radius: 3px; flex: none; }
.datebox { width: 56px; flex: none; text-align: center; border-radius: 12px; background: #000; color: var(--ink-2); padding: 7px 0 6px; border: 1px solid var(--accent-line); box-shadow: inset 0 0 18px rgba(255, 214, 10, .08); }
.datebox b { display: block; font-family: var(--display); font-size: 22px; line-height: 1; color: var(--accent); text-shadow: 0 0 16px rgba(255, 214, 10, .5); }
.datebox span { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; }
.datebox.past { border-color: var(--line); box-shadow: none; }
.datebox.past b { color: var(--ink-3); text-shadow: none; }

/* ---------- board ---------- */
.board { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.col { background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-height: 220px; transition: border-color .15s, background .15s, box-shadow .15s; }
.col.over { border-color: var(--accent); background: rgba(255, 214, 10, .05); box-shadow: var(--glow); }
.col-head { display: flex; align-items: center; gap: 9px; padding: 6px 6px 12px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 500; }
.col-head .count { color: var(--ink-3); margin-left: auto; }
.tcard { background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; margin-bottom: 8px; cursor: grab; display: flex; flex-direction: column; gap: 7px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.tcard:hover { border-color: var(--accent-line); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.tcard.dragging { opacity: .4; }
.tcard .meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); align-items: center; }

/* ---------- profile / lists ---------- */
.profile { display: grid; grid-template-columns: 350px 1fr; gap: 18px; align-items: start; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 9px 12px; font-size: 13.5px; }
.kv dt { color: var(--ink-3); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding-top: 2px; }
.kv dd { margin: 0; word-break: break-word; }
.timeline { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 14px 1fr; gap: 14px; padding-bottom: 18px; position: relative; }
.tl-item::before { content: ''; position: absolute; left: 6px; top: 18px; bottom: 0; width: 1px; background: linear-gradient(var(--accent-line), var(--line)); }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 12px; height: 12px; border-radius: 3px; transform: rotate(45deg); background: var(--accent); box-shadow: var(--glow-sm); margin-top: 5px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 8px; flex-wrap: wrap; }
.member-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.member-row:last-child { border-bottom: 0; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); cursor: pointer; color: inherit; transition: background .12s; }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: rgba(255, 214, 10, .045); color: inherit; }
.report { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.report:last-child { border-bottom: 0; }
.report-body { white-space: pre-wrap; margin-top: 10px; color: var(--ink-2); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }

/* ---------- documents ---------- */
.doc-icon { width: 40px; height: 48px; border-radius: 8px; background: #000; color: var(--accent); border: 1px solid var(--accent-line); display: grid; place-items: center; font-size: 10px; font-weight: 700; flex: none; font-family: var(--mono); box-shadow: inset 0 0 14px rgba(255, 214, 10, .1); }
.dropzone { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--ink-3); cursor: pointer; font-family: var(--mono); font-size: 13px; letter-spacing: .04em; background: rgba(0, 0, 0, .25); transition: all .15s; }
.dropzone.over, .dropzone:hover { border-color: var(--accent); color: var(--accent); background: rgba(255, 214, 10, .05); box-shadow: var(--glow); }

/* ---------- modal / toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; z-index: 50; animation: fade .15s; }
.modal { background: linear-gradient(170deg, #15161c, #0c0d11); border: 1px solid var(--line-2); border-radius: 18px; width: min(580px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow), 0 0 0 1px rgba(255, 214, 10, .08); animation: pop .18s; position: relative; }
.modal::before { content: ''; position: sticky; top: 0; display: block; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); z-index: 1; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 6px; }
.modal-body { padding: 12px 22px; }
.modal-foot { display: flex; gap: 8px; padding: 14px 22px 20px; align-items: center; }
@keyframes fade { from { opacity: 0 } }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0 } }
#toast-root { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: #0d0e12; color: var(--ink); padding: 11px 18px; border-radius: 12px; font-weight: 600; animation: pop .18s; border: 1px solid var(--accent-line); box-shadow: var(--shadow), var(--glow-sm); }
.toast::before { content: '●'; color: var(--accent); margin-right: 8px; }
.toast.err { border-color: rgba(255, 90, 82, .5); box-shadow: var(--shadow); }
.toast.err::before { color: var(--danger); }
.tag-pick { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; }
.auth-art { color: #fff; padding: 52px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; border-right: 1px solid var(--line); background: rgba(0, 0, 0, .5); }
.auth-art::after { content: ''; position: absolute; right: -160px; top: -160px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 10, .5), rgba(255, 184, 0, .14) 45%, transparent 70%); filter: blur(10px); animation: pulse 6s ease-in-out infinite; pointer-events: none; }
.auth-art::before { content: ''; position: absolute; left: 52px; right: 52px; top: 50%; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); opacity: .45; }
@keyframes pulse { 50% { transform: scale(1.08); opacity: .8; } }
.auth-art img { width: min(400px, 82%); position: relative; z-index: 1; }
.auth-art h2 { font-size: 44px; line-height: 1.05; max-width: 480px; position: relative; z-index: 1; letter-spacing: -.035em; }
.auth-art h2 em { font-style: normal; color: var(--accent); text-shadow: 0 0 30px rgba(255, 214, 10, .45); }
.auth-art p { color: var(--ink-3); max-width: 400px; position: relative; z-index: 1; margin-top: 14px; }
.auth-form { display: grid; place-items: center; padding: 32px 22px; }
.auth-box { width: min(390px, 100%); }
.auth-switch { margin-top: 20px; text-align: center; color: var(--ink-3); }
.auth-switch button { background: none; border: 0; padding: 0; font-weight: 700; color: var(--accent); cursor: pointer; }
.notice { background: rgba(255, 214, 10, .07); border: 1px solid var(--accent-line); border-radius: 12px; padding: 13px 16px; color: #ffe680; font-size: 13.5px; }
a.notice:hover { color: #fff3b0; box-shadow: var(--glow); }
.err-msg { color: var(--danger); font-size: 13px; min-height: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 276px; z-index: 40; transform: translateX(-100%); transition: transform .22s; }
  .shell.nav-open .sidebar { transform: none; box-shadow: var(--shadow); }
  .shell.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 30; }
  .topbar-mobile { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: rgba(4, 4, 5, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
  .topbar-mobile img { height: 30px; }
  .main { padding: 22px 16px 54px; overflow-x: hidden; }
  .profile, .two-col { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat b { font-size: 26px; }
  .cal-day { min-height: 72px; padding: 3px; }
  .ev { font-size: 10px; padding: 1px 3px; }
  .ev .t, .ev .tdots { display: none; }
  .grid2 { grid-template-columns: 1fr; }
  .agenda-day { grid-template-columns: 1fr; gap: 6px; }
  .search { flex: 1 1 100%; }
  .search input { min-width: 0; }
  .row > select.input { max-width: 100%; flex: 1 1 auto; }
  .filters .label { min-width: 0; }
  h1 { font-size: 26px; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding: 28px 24px 36px; gap: 26px; border-right: 0; border-bottom: 1px solid var(--line); }
  .auth-art::before { display: none; }
  .auth-art h2 { font-size: 28px; }
  .auth-art::after { width: 240px; height: 240px; right: -90px; top: -90px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
