/* Đặc nhiệm Seeding — màu lấy từ ảnh mẫu F88 */
:root {
  --g950: #003D2E; --g900: #004E32; --g800: #005133; --g700: #006B42;
  --green: #008B47; --green-h: #00773D; --green-50: #E8F5EE;
  --lime: #E7EF38; --lime-50: #F7FAD2;
  --bg: #F5F8F5; --card: #FFFFFF; --soft: #FCFEFB;
  --text: #13261D; --muted: #5E6E66; --line: #E1E8E3;
  --red: #C8372D; --red-50: #FDECEA; --amber: #B7791F; --amber-50: #FFF6E0; --blue: #2457C5; --blue-50: #EAF0FD;
  --r: 12px; --shadow: 0 1px 2px rgba(0,40,25,.06), 0 4px 16px rgba(0,40,25,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 14px; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--green); }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-logo { background: #fff; border-radius: 10px; padding: 8px 10px; display: grid; place-items: center; }
.brand-logo img { height: 44px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-size: 14px; letter-spacing: .06em; }
.brand-text small { font-size: 11px; letter-spacing: .3em; color: var(--lime); font-weight: 600; }
.brand.sm .brand-logo { padding: 5px 7px; border-radius: 8px; }
.brand.sm .brand-logo img { height: 26px; }
.brand.sm .brand-text b { font-size: 12px; }
.brand.sm .brand-text small { font-size: 10px; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 45%) 1fr; }
.auth-hero { position: relative; background: linear-gradient(160deg, var(--g800) 0%, var(--g900) 45%, var(--g950) 100%); color: #fff; padding: 52px 50px 40px; display: flex; flex-direction: column; border-top: 6px solid var(--lime); }
.hero-body { margin: auto 0; max-width: 470px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; margin: 0 0 14px; color: var(--green); }
.eyebrow.lime { color: var(--lime); }
.hero-title { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.12; margin: 0 0 26px; font-weight: 800; letter-spacing: -.02em; }
.hero-title span { color: var(--lime); }
.hero-desc { font-size: 15px; line-height: 1.75; opacity: .92; margin: 0 0 24px; }
.hero-points { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; font-size: 14px; }
.hero-points li { display: flex; gap: 12px; align-items: center; }
.hero-points svg { color: var(--lime); }
.hero-q { border-top: 1px solid rgba(255,255,255,.18); padding-top: 26px; font-size: 15px; font-weight: 500; margin: 0; }
.hero-foot { font-size: 12px; letter-spacing: .14em; opacity: .55; margin: 24px 0 0; }
.auth-main { background: var(--soft); display: grid; place-items: center; padding: 40px 24px; border-top: 1px solid #f1e9e9; }
.auth-card { width: 100%; max-width: 460px; }
.auth-card h2 { font-size: 28px; margin: 0 0 12px; font-weight: 700; letter-spacing: -.01em; }
.auth-card .sub { color: var(--muted); margin: 0 0 28px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.tabs button { background: none; border: 0; padding: 12px; cursor: pointer; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--green); border-color: var(--green); font-weight: 600; }
.auth-links { text-align: center; font-size: 13px; color: var(--muted); margin-top: 24px; display: grid; gap: 8px; }
.auth-links a { color: var(--g700); cursor: pointer; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }
.back { background: none; border: 0; color: var(--g700); cursor: pointer; padding: 0; margin-bottom: 22px; display: inline-flex; gap: 6px; align-items: center; }
.done { text-align: center; padding: 10px 0; }
.done .ic { width: 64px; height: 64px; border-radius: 50%; background: var(--green-50); color: var(--green); display: grid; place-items: center; margin: 0 auto 16px; }
.done .ic svg { width: 32px; height: 32px; }

/* ---------- Form ---------- */
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.field > span em { font-style: normal; color: var(--muted); font-weight: 400; }
.input, .field input, .field select, .field textarea { width: 100%; height: 44px; border: 1px solid #D5DED8; border-radius: 8px; padding: 0 14px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea { height: auto; min-height: 80px; padding: 10px 14px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,139,71,.14); }
.field input[readonly], .field input:disabled, .field select:disabled { background: #F2F5F3; color: var(--muted); }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.pw { position: relative; }
.pw input { padding-right: 56px; }
.pw button { position: absolute; right: 6px; top: 6px; height: 32px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; padding: 0 8px; }
.form-err { background: var(--red-50); color: var(--red); border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: 13px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; font-weight: 600; font-size: 13px; text-decoration: none; white-space: nowrap; transition: background .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 2px 6px rgba(0,139,71,.25); }
.btn-primary:hover:not(:disabled) { background: var(--green-h); }
.btn-lime { background: var(--lime); color: var(--g950); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: #F4F7F5; }
.btn-danger { background: #fff; border-color: #F1C9C5; color: var(--red); }
.btn-danger:hover { background: var(--red-50); }
.btn-block { width: 100%; height: 46px; font-size: 14px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; }
.icon-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--muted); }

/* ---------- App shell: sidebar + topbar ---------- */
.shell { display: grid; grid-template-columns: 246px 1fr; min-height: 100vh; }
.sidebar { background: #0A4B2F; color: #fff; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 12px 0; z-index: 30; }
.sidebar .brand { padding: 0 6px 18px; }
.sidebar .brand-logo { padding: 6px 8px; }
.sidebar .brand-logo img { height: 34px; }
.side-scroll { flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; margin: 0 -4px; padding: 0 4px; }
.side-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: #8CCBA6; padding: 18px 12px 10px; }
.side-item, .side-group { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: rgba(255,255,255,.88); text-decoration: none; cursor: pointer; margin-bottom: 4px; font-size: 14px; }
.side-item span, .side-group span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-item:hover, .side-group:hover { background: rgba(255,255,255,.07); }
.side-item.on { background: #13874C; color: #fff; font-weight: 600; }
.side-group { padding: 9px 12px; }
.side-group.on { background: rgba(255,255,255,.1); color: #fff; font-weight: 600; }
.cnt, .side-group b { font-size: 12px; font-weight: 600; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 6px; display: inline-grid; place-items: center; background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); }
.side-group b { background: none; min-width: 0; padding: 0; }
.side-item.on .cnt { background: rgba(0,0,0,.18); }
.cnt.alert { background: var(--lime); color: var(--g950); }
.side-empty { font-size: 12px; color: rgba(255,255,255,.6); padding: 4px 12px; margin: 0; }
.side-user { display: flex; gap: 10px; align-items: center; padding: 16px 8px 18px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 8px; color: #fff; text-decoration: none; }
.side-user .avatar { width: 36px; height: 36px; font-size: 13px; }
.side-user div { min-width: 0; line-height: 1.35; }
.side-user b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user small { font-size: 12px; opacity: .7; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main { min-width: 0; background: #F3F6F8; }
.topbar { height: 64px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 28px 0 36px; position: sticky; top: 0; z-index: 20; }
.crumb { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; min-width: 0; }
.crumb b { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb svg { width: 15px; height: 15px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.role-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--green-50); color: var(--g700); border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 500; }
.role-pill svg { width: 15px; height: 15px; }
.icon-plain { width: 38px; height: 38px; border: 0; background: none; border-radius: 8px; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.icon-plain:hover { background: #F1F4F2; color: var(--text); }
.menu-btn { display: none; }
.side-mask { display: none; }
.container { max-width: 1400px; padding: 32px 36px 60px; margin: 0; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head .eyebrow { margin: 0 0 12px; }
.page-head h1 { font-size: 28px; margin: 0; letter-spacing: -.01em; }
.page-head p { margin: 10px 0 0; color: var(--muted); }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.head-actions .btn { height: 44px; padding: 0 18px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 22px 24px; }
.panel-h h3 { margin: 0 0 4px; font-size: 16px; }
.panel-h span { color: var(--muted); font-size: 13px; }
.panel-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.panel-tools .search { position: relative; width: 280px; }
.panel-tools .search svg, .search > svg { position: absolute; left: 12px; top: 12px; width: 16px; height: 16px; color: var(--muted); }
.search { position: relative; }
.panel-tools .input, .search .input { height: 40px; }
.search .input { padding-left: 36px; }
.panel-tools select.input, .panel-tools input[type=date].input { width: auto; padding: 0 10px; }
.table-wrap.flat { border: 0; border-radius: 0; box-shadow: none; max-height: none; border-top: 1px solid var(--line); }
.mtable td { padding: 16px 18px; vertical-align: middle; }
.table-wrap.flat th { padding: 14px 18px; background: #F7F9FA; font-size: 13px; color: #4A5A52; }
.table-wrap.flat td { padding: 14px 18px; }
.who-cell { display: flex; align-items: center; gap: 12px; }
.who-cell b, td b.pgd { display: block; font-weight: 600; }
.who-cell small, td small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.ava-soft { width: 34px; height: 34px; border-radius: 50%; background: var(--green-50); color: var(--g700); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.acc { font-weight: 500; }
.acc-cell a { font-size: 12px; }
.muted { color: #8A9891; }
.t-act { text-align: right; width: 60px; }
.icon-ghost { border: 0; background: none; color: var(--muted); width: 34px; height: 34px; border-radius: 8px; cursor: pointer; display: inline-grid; place-items: center; }
.icon-ghost:hover { background: var(--green-50); color: var(--green); }
.kv.two { grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-top: 0; }
.role-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.role-card { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; display: grid; gap: 6px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.role-card b { font-size: 14px; color: var(--text); }
.role-card input { position: absolute; opacity: 0; }
.role-card:has(input:checked) { border-color: var(--green); background: var(--green-50); box-shadow: 0 0 0 3px rgba(0,139,71,.12); }
.q-list { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.q-item { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid #EEF2EF; cursor: pointer; }
.q-item:last-child { border-bottom: 0; }
.q-item span { flex: 1; }
.q-item b { color: var(--muted); font-weight: 500; font-size: 12px; }
.q-item.stale span { color: var(--red); }
.q-item em { font-style: normal; font-size: 12px; }
.q-item input { width: 16px; height: 16px; accent-color: var(--green); }
.badge-n { background: var(--lime); color: var(--g950); border-radius: 999px; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; }

/* ---------- Cards & stats ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; }
.card h3 { margin: 0 0 14px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.card + .card { margin-top: 16px; }
.hero-card { background: linear-gradient(125deg, var(--g800), var(--g950)); color: #fff; border-radius: 16px; padding: 26px; position: relative; overflow: hidden; margin-bottom: 18px; }
.hero-card::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(231,239,56,.28), transparent 70%); }
.hero-card h2 { margin: 6px 0 6px; font-size: 24px; }
.hero-card p { margin: 0; opacity: .85; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 20px; position: relative; z-index: 1; }
.hero-stats div b { font-size: 28px; display: block; color: var(--lime); line-height: 1.1; }
.hero-stats div span { font-size: 12px; opacity: .8; }
.progress { height: 10px; background: rgba(255,255,255,.15); border-radius: 999px; overflow: hidden; margin-top: 18px; position: relative; z-index: 1; }
.progress i { display: block; height: 100%; background: var(--lime); border-radius: 999px; transition: width .6s; }
.progress.light { background: #E8EEEA; }
.progress.light i { background: var(--green); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; margin-bottom: 26px; }
.kpi { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px 22px; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: block; }
.kpi i { position: absolute; right: 22px; bottom: 22px; color: #8BA0B4; }
.kpi i svg { width: 20px; height: 20px; }
.kpi span { color: var(--muted); font-size: 14px; }
.kpi b { display: block; font-size: 30px; margin-top: 14px; letter-spacing: -.02em; font-weight: 700; }
.kpi small { color: var(--muted); }
.kpi.hl { border-color: var(--lime); background: var(--lime-50); }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 140px 1fr 70px; gap: 10px; align-items: center; font-size: 13px; }
.bar-row .track { height: 10px; background: #EEF2EF; border-radius: 999px; overflow: hidden; }
.bar-row .track i { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.bar-row .v { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.nudge { display: flex; align-items: center; gap: 16px; background: var(--lime-50); border: 1px solid #E5EB9C; border-radius: var(--r); padding: 14px 18px; margin-bottom: 18px; }
.nudge .grow { flex: 1; }
.nudge b { display: block; margin-bottom: 6px; }

/* ---------- Team grid ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .search { flex: 1 1 220px; position: relative; }
.toolbar .search svg { position: absolute; left: 12px; top: 11px; color: var(--muted); }
.toolbar .search input { padding-left: 38px; height: 40px; }
.toolbar select.input { height: 40px; width: auto; min-width: 130px; padding: 0 10px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: 13px; }
.chip.on { background: var(--g900); color: #fff; border-color: var(--g900); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.mcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; gap: 12px; box-shadow: var(--shadow); }
.mcard.me { border-color: var(--green); box-shadow: 0 0 0 2px rgba(0,139,71,.12); }
.mcard .body { min-width: 0; flex: 1; }
.mcard .name { font-weight: 600; display: flex; gap: 6px; align-items: center; }
.mcard .pgd { color: var(--muted); font-size: 12px; margin: 3px 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcard .extra { font-size: 12px; color: var(--muted); margin-top: 8px; display: grid; gap: 2px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; font-size: 14px; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: #EEF2EF; color: var(--muted); white-space: nowrap; }
.tag.green { background: var(--green-50); color: var(--green); }
.tag.lime { background: var(--lime-50); color: #6B7000; }
.tag.amber { background: var(--amber-50); color: var(--amber); }
.tag.red { background: var(--red-50); color: var(--red); }
.tag.blue { background: var(--blue-50); color: var(--blue); }
.tag.dark { background: var(--g900); color: var(--lime); }

/* ---------- Table ---------- */
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: auto; box-shadow: var(--shadow); max-height: calc(100vh - 260px); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #EEF2EF; white-space: nowrap; }
th { position: sticky; top: 0; background: #F7FAF8; font-weight: 600; color: var(--muted); font-size: 12px; z-index: 1; }
tbody tr:hover { background: #FAFCFA; }
tr.click { cursor: pointer; }
td .sub { color: var(--muted); font-size: 12px; }
td.wrap { white-space: normal; min-width: 180px; }
.actions { display: flex; gap: 6px; justify-content: flex-end; }
.count { color: var(--muted); font-size: 13px; margin: 10px 2px; }
.empty { text-align: center; color: var(--muted); padding: 48px 20px; }
.empty svg { width: 40px; height: 40px; color: #B9C6BE; margin-bottom: 8px; }
.loading { text-align: center; padding: 60px; color: var(--muted); }
.subtabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }

/* ---------- Profile ---------- */
.profile { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: start; }
.pcard { text-align: center; }
.pcard .avatar { margin: 4px auto 12px; }
.pcard h2 { margin: 0 0 4px; font-size: 18px; }
.kv { display: grid; gap: 10px; margin-top: 18px; text-align: left; font-size: 13px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.kv span { color: var(--muted); }
.kv b { font-weight: 600; text-align: right; }
.lock-note { display: flex; gap: 8px; align-items: center; background: var(--blue-50); color: var(--blue); padding: 8px 12px; border-radius: 8px; font-size: 12px; margin: -4px 0 14px; }
.sec-title { font-size: 12px; font-weight: 700; color: var(--g700); letter-spacing: .06em; text-transform: uppercase; margin: 8px 0 12px; display: flex; align-items: center; gap: 8px; }

/* ---------- Modal & toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0,30,20,.45); z-index: 50; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal.wide { max-width: 860px; }
.modal-h { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-h h3 { margin: 0; font-size: 17px; }
.modal-b { padding: 20px 22px; overflow: auto; }
.modal-f { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.modal-f .left { margin-right: auto; }
.temp-pw { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 26px; font-weight: 700; letter-spacing: .08em; background: var(--lime-50); border: 2px dashed #D4DB55; border-radius: 12px; padding: 16px; text-align: center; margin: 12px 0; user-select: all; }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 60; width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--g950); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.2); animation: up .2s; display: flex; gap: 10px; align-items: center; }
.toast.err { background: var(--red); }
.toast svg { color: var(--lime); }
.toast.err svg { color: #fff; }
.drop { display: block; border: 2px dashed #C9D6CE; border-radius: 12px; padding: 30px; text-align: center; cursor: pointer; background: #FAFCFA; }
.drop:hover { border-color: var(--green); background: var(--green-50); }
.drop svg { width: 36px; height: 36px; color: var(--green); }
.sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.sum div { border-radius: 10px; padding: 12px 14px; }
.sum b { font-size: 24px; display: block; }
.sum .s-new { background: var(--green-50); color: var(--green); }
.sum .s-dup { background: var(--amber-50); color: var(--amber); }
.sum .s-err { background: var(--red-50); color: var(--red); }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform .2s; }
  body.side-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  body.side-open .side-mask { display: block; position: fixed; inset: 0; background: rgba(0,30,20,.4); z-index: 25; }
  .menu-btn { display: grid; }
  .topbar { padding: 0 16px; }
  .container { padding: 22px 16px 50px; }
  .kpis { gap: 12px; }
  .role-cards { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cols2, .profile { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { padding: 22px 20px 26px; }
  .hero-body { margin: 22px 0 0; }
  .hero-title { font-size: 30px; margin-bottom: 12px; }
  .hero-desc { font-size: 13px; margin: 0; }
  .hero-points, .hero-q, .hero-foot, .auth-hero .eyebrow { display: none; }
  .brand-logo img { height: 34px; }
  .auth-main { padding: 28px 20px 40px; place-items: start center; }
  .auth-card h2 { font-size: 24px; }
}
@media (max-width: 600px) {
  .container { padding: 16px 16px 50px; }
  .role-pill { display: none; }
  .crumb span, .crumb svg:first-of-type { display: none; }
  .page-head h1 { font-size: 22px; }
  .head-actions { width: 100%; }
  .head-actions .btn { flex: 1; height: 40px; padding: 0 10px; }
  .kpi { padding: 16px; }
  .kpi b { font-size: 24px; margin-top: 8px; }
  .kpi i { right: 14px; bottom: 14px; }
  .panel-h { padding: 16px; }
  .panel-tools, .panel-tools .search { width: 100%; }
  .panel-tools select.input { flex: 1; }
  .kv.two { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .hero-card { padding: 20px; }
  .hero-card h2 { font-size: 20px; }
  .bar-row { grid-template-columns: 100px 1fr 56px; }
  .toolbar select.input { flex: 1 1 45%; min-width: 0; }
  .sum b { font-size: 20px; }
  .modal-bg { padding: 0; place-items: end center; }
  .modal { border-radius: 16px 16px 0 0; max-height: 92vh; }
  .nudge { flex-direction: column; align-items: stretch; }
}
@media (max-width: 600px) {
  .mtable th:nth-child(3), .mtable td:nth-child(3), .mtable th:nth-child(5), .mtable td:nth-child(5) { display: none; }
  .mtable td { padding: 12px; }
}
