:root {
  --bg: #f5f6f8; --panel: #fff; --ink: #1d2433; --muted: #667085; --line: #e3e6eb;
  --brand: #1a56db; --brand-ink: #fff; --ok: #0e7a43; --ok-bg: #e7f6ee; --warn: #8a5a00; --warn-bg: #fff4dc;
  --err: #b42318; --err-bg: #fdecea; --info-bg: #eaf1ff; --radius: 10px;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 14.5px; line-height: 1.5; }
a { color: var(--brand); text-decoration: none; } a:hover { text-decoration: underline; }
.wrap { display: flex; align-items: center; gap: 28px; height: 56px; }
header.top .logo { font-weight: 700; letter-spacing: .2px; color: #fff; }
header.top nav { display: flex; gap: 4px; flex: 1; }
header.top nav a { color: #cbd5e1; padding: 6px 12px; border-radius: 6px; }
header.top nav a.on, header.top nav a:hover { background: #1f2937; color: #fff; text-decoration: none; }
header.top .who { color: #cbd5e1; font-size: 13px; display: flex; align-items: center; gap: 10px; }
header.top .who form { margin: 0; }
header.top .who button { background: none; border: 1px solid #374151; color: #e5e7eb; padding: 4px 10px; border-radius: 6px; cursor: pointer; }
.side { position: fixed; inset: 0 auto 0 0; width: 272px; background: #111827; color: #cbd5e1; display: flex; flex-direction: column; padding: 18px 14px; overflow-y: auto; }
.side .logo { color: #fff; font-weight: 700; font-size: 16px; padding: 4px 10px 14px; }
.side .me { background: #1f2937; border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; }
.me-name { color: #fff; font-weight: 600; } .me-mail { font-size: 12px; word-break: break-all; } .me-src { font-size: 11.5px; color: #93c5fd; margin-top: 3px; }
.side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-h { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: #6b7280; padding: 14px 10px 6px; }
.side nav a { color: #d1d5db; padding: 7px 10px; border-radius: 6px; }
.side nav a:hover { background: #1f2937; color: #fff; text-decoration: none; }
.side nav a.on { background: #2563eb; color: #fff; }
.side .out button { width: 100%; background: none; border: 1px solid #374151; color: #e5e7eb; padding: 7px; border-radius: 6px; cursor: pointer; margin-top: 12px; }
.page { min-height: 100vh; }
body.with-nav .page { margin-left: 272px; }
main { padding: 28px 36px 60px; max-width: 1840px; }
body:not(.with-nav) main { margin: 0 auto; }
.banner { background: var(--warn-bg); color: var(--warn); border-bottom: 1px solid #f3dca5; padding: 8px 32px; font-size: 13px; }
@media (max-width: 900px) { .side { position: static; width: auto; } body.with-nav .page { margin-left: 0; } }
h1 { font-size: 22px; margin: 0 0 4px; } h2 { font-size: 16px; margin: 0 0 14px; }
.sub { color: var(--muted); margin: 0 0 22px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid3 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.headrow { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafbfc; }
.table-panel { padding: 0; overflow-x: auto; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.b-active { background: var(--ok-bg); color: var(--ok); } .b-suspended { background: var(--warn-bg); color: var(--warn); }
.b-pending_transfer { background: var(--info-bg); color: var(--brand); } .b-deleted { background: #eef0f3; color: var(--muted); }
.b-error { background: var(--err-bg); color: var(--err); } .b-role { background: #eef0f3; color: #344054; }
.b-dry { background: var(--warn-bg); color: var(--warn); }
label { display: block; font-weight: 600; font-size: 13px; margin: 0 0 5px; }
.field { margin-bottom: 14px; }
.hint { color: var(--muted); font-size: 12.5px; font-weight: 400; margin-top: 4px; }
input[type=text], input[type=url], input[type=date], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #cfd4dc; border-radius: 7px; font: inherit; background: #fff; color: var(--ink); }
textarea { min-height: 90px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #bfd3ff; border-color: var(--brand); }
.check { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 3px; }
.btn { display: inline-block; border: 1px solid #cfd4dc; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 7px; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { background: #f3f4f6; text-decoration: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: #1747b8; }
.btn.danger { color: var(--err); border-color: #f1b8b2; } .btn.danger:hover { background: var(--err-bg); }
.btn.sm { padding: 4px 10px; font-size: 13px; }
.actions { display: flex; flex-direction: column; gap: 10px; }
.actions form { margin: 0; } .actions .btn { width: 100%; text-align: left; }
.inline { display: inline; }
.flash { padding: 11px 14px; border-radius: 8px; margin-bottom: 12px; border: 1px solid transparent; }
.flash.success { background: var(--ok-bg); color: var(--ok); border-color: #b7e4c9; }
.flash.error { background: var(--err-bg); color: var(--err); border-color: #f4c1bb; }
.flash.warning { background: var(--warn-bg); color: var(--warn); border-color: #f3dca5; }
.flash.info { background: var(--info-bg); color: #1e3a8a; border-color: #c9d8fb; }
.secret { background: #0f172a; color: #e2e8f0; border-radius: var(--radius); padding: 18px 22px; margin-bottom: 20px; }
.secret .pw { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 22px; letter-spacing: 1px; background: #1e293b; padding: 8px 14px; border-radius: 8px; display: inline-block; margin: 8px 0; user-select: all; }
.secret p { margin: 4px 0; color: #94a3b8; }
dl.kv { display: grid; grid-template-columns: 170px 1fr; gap: 8px 14px; margin: 0; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters input[type=search] { width: 260px; }
.pill { padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: #344054; font-size: 13px; }
.pill.on { background: #111827; color: #fff; border-color: #111827; text-decoration: none; }
.login-box { max-width: 380px; margin: 90px auto; }
.login-box .panel { padding: 28px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.timeline li:last-child { border: none; }
details summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.steps { padding-left: 18px; margin: 6px 0 0; } .steps li { margin-bottom: 4px; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 10px; border: 1px solid #cfd4dc; border-radius: 8px; background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; }
.gbtn:hover { background: #f8fafc; text-decoration: none; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { background: #eef2ff; color: #3730a3; border-radius: 6px; padding: 1px 8px; font-size: 12.5px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.chip.p { background: #ecfdf5; color: #065f46; font-family: inherit; }
.checkgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.oulist { max-height: 260px; overflow-y: auto; border: 1px solid #cfd4dc; border-radius: 7px; padding: 8px 10px; }
.oulist label { font-weight: 400; display: flex; gap: 8px; margin: 2px 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.stepnum { display: inline-block; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; text-align: center; font-size: 12px; line-height: 22px; margin-right: 6px; }
code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.side .logo { display: flex; align-items: center; gap: 10px; }
.side .logo img { max-height: 34px; max-width: 120px; object-fit: contain; background: #fff; border-radius: 6px; padding: 3px; }
.side nav a { display: flex; align-items: center; gap: 10px; }
.side .ic { flex: none; opacity: .85; }
.side .out button { display: flex; align-items: center; justify-content: center; gap: 8px; }
.login-logo { text-align: center; margin-bottom: 14px; }
.login-logo img { max-width: 220px; max-height: 90px; object-fit: contain; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.card .k { color: var(--muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.card .v { font-size: 28px; font-weight: 700; margin-top: 4px; line-height: 1.2; }
.card .s { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.card.warn .v { color: var(--warn); } .card.err .v { color: var(--muted); font-size: 18px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.seat { width: 90px !important; text-align: right; padding: 4px 8px !important; }
.rolepick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rolepick label { border: 1px solid #cfd4dc; border-radius: 8px; padding: 10px 12px; font-weight: 400; cursor: pointer; display: flex; gap: 8px; margin: 0; }
.rolepick label:has(input:checked) { border-color: var(--brand); background: #eef4ff; }
.rolepick strong { display: block; }
.b-global { background: #ede9fe; color: #5b21b6; } .b-hr { background: #fce7f3; color: #9d174d; }
.b-regional { background: #e0f2fe; color: #075985; } .b-local { background: #ecfdf5; color: #065f46; }
body.has-bg { background-size: cover; background-position: center; background-attachment: fixed; }
body.has-bg:not(.with-nav) .login-box { margin-top: 0; padding-top: 12vh; }
.login-box.on-bg h1, .login-box.on-bg .sub { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.login-box.on-bg .login-logo img { background: rgba(255,255,255,.92); border-radius: 12px; padding: 8px 12px; }
body.has-bg.with-nav main > .panel, body.has-bg.with-nav .card { background: rgba(255,255,255,.94); }
body.has-bg.with-nav main h1, body.has-bg.with-nav main > .sub, body.has-bg.with-nav .headrow .sub { background: rgba(255,255,255,.85); display: inline-block; padding: 0 6px; border-radius: 6px; }
.preview { border: 1px solid var(--line); border-radius: 10px; padding: 34px 20px; background: var(--bg) center/cover no-repeat; }
.preview-box { max-width: 260px; margin: 0 auto; background: #fff; border-radius: 10px; padding: 20px; text-align: center; box-shadow: 0 4px 18px rgba(0,0,0,.15); }
/* ---- dashboard ---- */
:root { --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s0: #b5b3ad; }
.iconbtn { display: inline-flex; gap: 6px; align-items: center; }
.pulse { color: var(--brand); font-weight: 600; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.empty-state { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
@media (max-width: 1150px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .kpis { grid-template-columns: 1fr; } }
.kpi { position: relative; display: flex; gap: 14px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 22px 20px; min-height: 124px; color: var(--ink); transition: box-shadow .15s, border-color .15s, transform .15s; }
.kpi:hover { text-decoration: none; border-color: #c7d2fe; box-shadow: 0 6px 18px rgba(17, 24, 39, .08); transform: translateY(-1px); }
.kpi-ic { flex: none; width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; }
.kpi-ic .ic { width: 24px; height: 24px; }
.kpi-body { display: flex; flex-direction: column; min-width: 0; }
.kpi-k { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.kpi-v { font-size: 34px; font-weight: 700; line-height: 1.15; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.kpi-v.na { font-size: 20px; color: var(--muted); }
.kpi-s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.kpi-go { position: absolute; right: 12px; top: 12px; color: #c0c4cc; }
.kpi:hover .kpi-go { color: var(--brand); }
.tone-blue .kpi-ic { background: #e8f1fd; color: #1c5cab; } .tone-amber .kpi-ic { background: #fef3dc; color: #9a6700; }
.tone-slate .kpi-ic { background: #eef0f3; color: #475467; } .tone-violet .kpi-ic { background: #efecfd; color: #5b4bc4; }
.tone-teal .kpi-ic { background: #e3f6f0; color: #0f7d58; } .tone-green .kpi-ic { background: #e6f4e6; color: #1d6b1d; }
.tone-rose .kpi-ic { background: #fdebf1; color: #b0386a; } .tone-sky .kpi-ic { background: #e6f3fb; color: #1c6a99; }
.tone-indigo .kpi-ic { background: #ebedfc; color: #3f46b4; }
.charts { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.3fr); gap: 20px; }
@media (max-width: 1100px) { .charts { grid-template-columns: 1fr; } }
.chart h2 { margin-bottom: 16px; }
.donut-wrap { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.donut { width: 190px; height: 190px; flex: none; }
.donut circle { fill: none; stroke-width: 20; }
.donut-track { stroke: #f1f2f4; }
.donut .seg { cursor: pointer; transition: stroke-width .12s; }
.donut .seg:hover { stroke-width: 24; }
.seg.s1, .sw.s1 { stroke: var(--s1); background: var(--s1); } .seg.s2, .sw.s2 { stroke: var(--s2); background: var(--s2); }
.seg.s3, .sw.s3 { stroke: var(--s3); background: var(--s3); } .seg.s0, .sw.s0 { stroke: var(--s0); background: var(--s0); }
.donut-n { font-size: 30px; font-weight: 700; text-anchor: middle; fill: var(--ink); }
.donut-l { font-size: 11px; text-anchor: middle; fill: var(--muted); }
.legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 200px; }
.legend li { border-bottom: 1px solid var(--line); }
.legend .lg-row { display: grid; grid-template-columns: 12px 1fr auto 42px; gap: 10px; align-items: center; padding: 7px 6px; border-radius: 6px; color: var(--ink); }
.legend .lg-row:hover { background: #f5f7fb; text-decoration: none; }
.donut a { cursor: pointer; }
.donut a:hover .seg, .donut a:focus .seg { stroke-width: 22; }
.legend li:last-child { border: none; }
.sw { width: 12px; height: 12px; border-radius: 3px; }
.lg-n { font-weight: 700; font-variant-numeric: tabular-nums; } .lg-p { color: var(--muted); text-align: right; font-size: 12.5px; }
.bars { display: flex; flex-direction: column; gap: 4px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 38%) 1fr 44px; gap: 12px; align-items: center; padding: 5px 6px; border-radius: 6px; color: var(--ink); }
.bar-row:hover { background: #f5f7fb; text-decoration: none; }
.bar-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #344054; }
.bar-t { height: 14px; background: transparent; }
.bar-f { display: block; height: 14px; min-width: 3px; background: var(--s1); border-radius: 0 4px 4px 0; }
.bar-n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.panel-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 20px 10px; }
.panel-h h2 { margin: 0 0 4px; } .panel-h p { margin: 0; }
.meter { height: 10px; background: #eef1f5; border-radius: 5px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--s1); border-radius: 5px; }
.meter span.high { background: #eda100; } .meter span.over { background: #d93d3d; }
tr.total td { font-weight: 700; background: #fafbfc; }
.notice { border-color: #f3dca5; background: #fffcf3; }
.notice-h { display: flex; gap: 10px; align-items: center; color: var(--warn); margin-bottom: 8px; }
.notice-h h2 { margin: 0; color: var(--ink); }
.errlist { list-style: none; padding: 0; margin: 0 0 12px; }
.errlist li { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f3e7c4; font-size: 13px; }
.errlist .mono { word-break: break-word; color: #6b5a2e; }
.tip { position: fixed; z-index: 50; background: #111827; color: #fff; font-size: 12.5px; padding: 6px 9px; border-radius: 6px; pointer-events: none; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
/* ---- directory ---- */
.dir { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .dir { grid-template-columns: 1fr; } }
.ou-tree { padding: 12px 8px; position: sticky; top: 16px; max-height: calc(100vh - 40px); overflow-y: auto; }
.ou-h { display: flex; gap: 8px; align-items: center; font-weight: 700; padding: 4px 10px 10px; }
.ou { display: flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 6px; color: #344054; font-size: 13.5px; }
.ou:hover { background: #f3f5f8; text-decoration: none; }
.ou.on { background: #e8f1fd; color: #1c5cab; font-weight: 600; }
.ou .ic { width: 15px; height: 15px; flex: none; opacity: .7; }
.ou-n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ou-c { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.crumbs { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.dirtable tr.click { cursor: pointer; }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e8f1fd; color: #1c5cab;
  font-weight: 700; font-size: 12.5px; margin-right: 10px; vertical-align: middle; }
.badge.tiny { font-size: 10.5px; padding: 1px 7px; margin-left: 6px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 4px; }
.pager .muted { margin-right: auto; }
.panel-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.dropzone { border: 2px dashed #cfd4dc; border-radius: 10px; padding: 26px; text-align: center; color: var(--muted); }
.dropzone .ic { width: 28px; height: 28px; display: block; margin: 0 auto 10px; }
.diag { list-style: none; padding: 0; margin: 0; }
.diag li { display: grid; grid-template-columns: 24px 230px 60px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: start; font-size: 13.5px; }
.diag .ok { color: var(--ok); font-weight: 700; } .diag .bad { color: var(--err); font-weight: 700; }
.diag .fix { color: #1e3a8a; }
.searchbox { position: relative; display: inline-flex; align-items: center; }
.searchbox .ic { position: absolute; left: 10px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.searchbox input { padding-left: 32px !important; width: 230px; }
/* ---- admin roles ---- */
.rolebtns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
@media (max-width: 1100px) { .rolebtns { grid-template-columns: repeat(2, 1fr); } }
.rolebtn { display: flex; gap: 14px; align-items: center; text-align: left; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px; cursor: pointer; font: inherit; color: var(--ink); transition: box-shadow .15s, border-color .15s, transform .15s; }
.rolebtn:hover { border-color: #c7d2fe; box-shadow: 0 6px 18px rgba(17,24,39,.08); transform: translateY(-1px); }
.rb-ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.rb-ic .ic { width: 22px; height: 22px; }
.rb-t strong { display: block; font-size: 15px; } .rb-t small { color: var(--muted); font-size: 12.5px; }
.rb-global .rb-ic { background: #efecfd; color: #5b4bc4; } .rb-regional .rb-ic { background: #e3f6f0; color: #0f7d58; }
.rb-local .rb-ic { background: #e6f4e6; color: #1d6b1d; } .rb-hr .rb-ic { background: #fdebf1; color: #b0386a; }
.dlg { border: none; border-radius: 14px; padding: 0; width: min(980px, 94vw); box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.dlg::backdrop { background: rgba(15, 23, 42, .45); }
.dlg form, .dlg > p, .dlg > .dlg-h, .dlg > .dlg-f { padding-left: 24px; padding-right: 24px; }
.dlg form { padding-top: 0; padding-bottom: 0; }
.dlg-sm { width: min(460px, 94vw); }
.dlg-h { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; }
.dlg-h h2 { margin: 0; font-size: 18px; }
.dlg .x { border: none; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
.dlg-f { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding-top: 14px; padding-bottom: 20px; border-top: 1px solid var(--line); margin-top: 16px; }
.dlg-f .muted { margin-right: auto; }
.assigned { background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }
.assigned .lbl, .picker .lbl { font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.arow { display: flex; gap: 8px; align-items: center; padding: 5px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.arow:first-of-type { border-top: none; }
.pickers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 800px) { .pickers { grid-template-columns: 1fr; } }
.tfilter { margin-bottom: 6px; }
.treebox { border: 1px solid #cfd4dc; border-radius: 8px; height: 320px; overflow: auto; padding: 6px 4px; }
.tree { list-style: none; margin: 0; padding: 0; }
.tree.sub { padding-left: 18px; display: none; }
.tree li.open > .tree.sub { display: block; }
.tnode { display: flex; align-items: center; gap: 2px; border-radius: 6px; }
.tnode:hover { background: #f3f5f8; }
.tnode label { display: flex; align-items: center; gap: 7px; font-weight: 400; margin: 0; padding: 4px 6px; cursor: pointer; flex: 1; font-size: 13.5px; }
.tnode label .ic { width: 15px; height: 15px; opacity: .65; }
.tnode label:has(input:checked) { color: #1c5cab; font-weight: 600; }
.tog { border: none; background: none; width: 22px; height: 22px; padding: 0; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.tog .ic { width: 14px; height: 14px; transition: transform .12s; }
li.open > .tnode .tog .ic { transform: rotate(90deg); }
.tog-sp { width: 22px; display: inline-block; }
.sorth { color: var(--muted); display: inline-flex; gap: 4px; align-items: center; }
.sorth:hover, .sorth.on { color: var(--ink); text-decoration: none; }
.sorth .arr { font-size: 10px; opacity: .7; }
details.panel > summary { cursor: pointer; list-style: revert; }
.navgroup { margin-top: 10px; }
.navgroup > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; color: #d1d5db; cursor: pointer; user-select: none; }
.navgroup > summary::-webkit-details-marker { display: none; }
.navgroup > summary:hover { background: #1f2937; color: #fff; }
.navgroup > summary.has-on { color: #fff; }
.navgroup > summary .chev { margin-left: auto; display: grid; }
.navgroup > summary .chev .ic { width: 14px; height: 14px; transition: transform .15s; }
.navgroup[open] > summary .chev .ic { transform: rotate(90deg); }
.navgroup > a { padding-left: 22px !important; font-size: 13.5px; }
.navgroup > a .ic { width: 16px; height: 16px; }
.tnode .incl { display: none; font-style: normal; font-size: 11px; color: #1c5cab; background: #e8f1fd; border-radius: 4px; padding: 0 6px; margin-left: 4px; }
li.inc > .tnode .incl { display: inline; }
li.inc > .tnode label { color: #1c5cab; }
li.inc > .tnode input[type=radio] { visibility: hidden; }
.dlg-md { width: min(560px, 94vw); }
.dlg-md form { padding-bottom: 0; }
.actions .btn .ic { width: 16px; height: 16px; vertical-align: -3px; }
.dlg-msg { margin-top: 12px; padding: 9px 12px; border-radius: 8px; background: var(--err-bg); color: var(--err); font-size: 13px; border: 1px solid #f4c1bb; }
.dlg-msg.ok { background: var(--info-bg); color: #1e3a8a; border-color: #c9d8fb; }
.rolebtns.three { grid-template-columns: repeat(3, 1fr); }
.rb-new .rb-ic { background: #e8f1fd; color: #1c5cab; }
.rolebtn .rb-t small.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.tbl-pager { padding: 10px 16px; }
.perpage { display: inline-flex; gap: 6px; align-items: center; font-weight: 400; margin: 0 8px 0 0; }
.perpage select { width: auto; padding: 3px 6px; }
tr.click { cursor: pointer; }
.tabs > input { display: none; }
.tabs > label { display: inline-block; padding: 10px 14px; margin: 14px 4px 14px 0; border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--muted); border: 1px solid transparent; }
.tabs > input:checked + label { color: #1c5cab; background: #e8f1fd; }
.tabs .tab { display: none; }
#rtab1:checked ~ .tab1, #rtab2:checked ~ .tab2 { display: block; }
.memberlist { border: 1px solid #cfd4dc; border-radius: 8px; height: 300px; overflow: auto; padding: 6px 10px; }
.mrow { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.mrow:last-child { border-bottom: none; }
.cand { padding: 6px 2px; border-bottom: 1px solid var(--line); margin: 0; }
/* ---- bulk operations ---- */
.steps-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1250px) { .steps-row { grid-template-columns: 1fr; } }
.stepcard h2 { display: flex; align-items: center; }
.table-wrap { border: 1px solid var(--line); border-radius: 8px; max-height: 460px; overflow: auto; }
.bulktable th { position: sticky; top: 0; background: #fafbfc; z-index: 1; }
.bulktable td, .bulktable th { padding: 8px 10px; }
.runbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
hr.sep { border: none; border-top: 1px solid var(--line); margin: 14px 0; }
.ou-field { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 1px solid #cfd4dc; border-radius: 7px;
  background: #fff; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.ou-field:hover { border-color: var(--brand); }
.ou-field .ic { width: 16px; height: 16px; color: var(--muted); flex: none; }
.ou-field span:first-of-type { flex: 1; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.ou-change { color: var(--brand); font-weight: 600; font-size: 13px; }
/* ---- inactive users by country ---- */
#countries { margin-top: 20px; }
.cc-actions { display: flex; gap: 8px; }
.cc-pick { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0 10px; }
.cc-pick select { width: auto; min-width: 220px; }
.cc-chip { display: inline-flex; align-items: center; gap: 4px; font-family: inherit; font-size: 13px; padding: 3px 4px 3px 10px; }
.cc-chip button { border: none; background: none; cursor: pointer; color: #6366f1; font-size: 16px; line-height: 1; padding: 0 4px; }
.cc-legend { display: flex; gap: 18px; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.cc-legend .sw { display: inline-block; vertical-align: -1px; margin-right: 6px; }
.cc-chart { display: grid; grid-template-columns: 40px 1fr; height: 320px; padding: 10px 0 0; }
.cc-axis { display: flex; flex-direction: column; justify-content: space-between; text-align: right; padding: 0 8px 34px 0; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cc-axis span { transform: translateY(-50%); } .cc-axis span:first-child { transform: none; } .cc-axis span:last-child { transform: translateY(0); }
.cc-plot { position: relative; margin-bottom: 34px; border-bottom: 1px solid #d0d4da; }
.cc-grid { position: absolute; left: 0; right: 0; border-top: 1px dashed #eceef1; }
.cc-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-around; gap: 10px; padding: 0 8px; }
.cc-col { position: relative; flex: 1 1 0; max-width: 96px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-decoration: none; color: var(--ink); }
.cc-col:hover { text-decoration: none; }
.cc-col:hover .cc-stack { filter: brightness(.92); }
.cc-val { font-size: 12.5px; font-weight: 700; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.cc-stack { width: 64%; min-height: 2px; display: flex; flex-direction: column; gap: 2px; border-radius: 4px 4px 0 0; overflow: hidden; transition: filter .12s; }
.cc-seg { display: block; min-height: 0; }
.cc-seg.s2 { background: var(--s2); } .cc-seg.s3 { background: var(--s3); }
.cc-name { position: absolute; bottom: -28px; left: -6px; right: -6px; text-align: center; font-size: 12px; color: #344054; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-set { margin-top: 10px; }
.cc-set summary { cursor: pointer; color: var(--brand); }
.assign-row { display: grid; grid-template-columns: 130px 1fr; gap: 10px; align-items: center; margin-bottom: 10px; }
.assign-row label { margin: 0; }
.assign-row input:disabled { background: #f5f6f8; }
.donut text { pointer-events: none; }
.logfilter { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: flex-end; padding: 16px 18px 12px; margin-bottom: 16px; }
.logfilter .field { margin: 0; min-width: 150px; }
.logfilter .field.grow { flex: 1; min-width: 220px; }
.logfilter .field.btns { display: flex; gap: 8px; min-width: 0; }
.logfilter .quick { flex-basis: 100%; color: var(--muted); padding-top: 4px; }
.ou-pickrow { display: flex; gap: 8px; align-items: center; }
.ou-pickrow .ou-field { flex: 1; }
.mapgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 16px; }
.h3 { font-size: 14px; margin: 18px 0 8px; }
.note { background: #eef4fd; border: 1px solid #cfe0f7; color: #1f3b63; border-radius: 8px; padding: 10px 14px; }
.logfilter .field.btns { align-self: flex-end; }
.logfilter .field.btns .btn { height: 40px; }
.headrow > .btn { white-space: nowrap; flex-shrink: 0; }
/* top bar + notifications */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; justify-content: flex-end; align-items: center; height: 52px; padding: 0 28px;
  background: rgba(243,244,246,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.with-nav main { padding-top: 22px; }
.notif { position: relative; }
.bell { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.bell:hover { background: #f5f7fb; }
.bell-n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #d93025; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; border: 2px solid #fff; }
.notif-panel { position: absolute; right: 0; top: 46px; width: 380px; max-height: 70vh; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(15,23,42,.16); }
.notif-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.notif-item { display: flex; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.notif-item:hover { background: #f5f7fb; text-decoration: none; }
.notif-item.unread { background: #f3f7ff; }
.notif-item .nt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nd { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: #1baf7a; }
.nd.warning { background: #e8a317; } .nd.error { background: #d93025; }
.notif-item:not(.unread) .nd { opacity: .35; }
.tiny { font-size: 11px; }
.linkbtn { background: none; border: 0; color: var(--brand); cursor: pointer; padding: 0; font: inherit; }
.flash.has-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.flash-actions { display: flex; gap: 8px; }
/* typeahead */
.ta { position: relative; }
.ta-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 24px rgba(15,23,42,.14); max-height: 280px; overflow: auto; }
.ta-item { display: flex; flex-direction: column; padding: 8px 12px; cursor: pointer; }
.ta-item small { color: var(--muted); }
.ta-item.on, .ta-item:hover { background: #eef4fd; }
.ta-empty { padding: 10px 12px; color: var(--muted); font-size: 13px; }
.sitepick { max-height: 380px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.sitepick .siterow { padding: 8px 12px; border-bottom: 1px solid var(--line); margin: 0; }
.sitepick .siterow:last-child { border-bottom: 0; }
.actopt { padding: 6px 0; }
table.clickrows tbody tr { cursor: pointer; }
table.clickrows tbody tr:hover { background: #f8fafc; }
.btn.primary.danger { background: var(--err); border-color: var(--err); color: #fff; }
/* Teams: shift schedule */
.sh-today { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 14px 0 10px; font-size: 14px; }
.sh-chip { display: inline-flex; gap: 6px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.sh-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.sh-bar select, .sh-bar input[type=date] { width: auto; }
.sh-bar .searchbox { margin-left: auto; }
.sh-nav { display: inline-flex; gap: 4px; }
.sh-range { min-width: 150px; font-size: 15px; }
.sh-legend { display: inline-flex; gap: 12px; font-size: 12.5px; color: var(--muted); }
.sh-legend span, .sh-chip { white-space: nowrap; }
.sw.sh-c-shift { background: #2a78d6; } .sw.sh-c-hol { background: #e8a317; }
.sh-wrap { padding: 0; overflow: auto; max-height: calc(100vh - 290px); }
.sh-grid { border-collapse: separate; border-spacing: 0; width: 100%; table-layout: fixed; min-width: calc(240px + var(--days) * 118px); }
.sh-grid th, .sh-grid td { border-bottom: 1px solid var(--line); border-right: 1px solid #eef0f3; padding: 6px; vertical-align: top; }
.sh-grid thead th { position: sticky; top: 0; z-index: 3; background: #fafbfc; text-align: left; font-weight: 600; font-size: 12.5px; text-transform: none; letter-spacing: 0; color: var(--ink); padding: 10px 8px; }
.sh-grid .sh-who { position: sticky; left: 0; z-index: 2; background: #fff; width: 240px; }
.sh-grid thead .sh-who { z-index: 4; background: #fafbfc; }
.sh-dow { color: var(--muted); font-weight: 500; } .sh-dn { font-size: 15px; }
.sh-tag { margin-left: 6px; font-size: 10.5px; background: #2a78d6; color: #fff; border-radius: 4px; padding: 1px 5px; vertical-align: 2px; }
.sh-todaycol { background: #f3f8ff; }
.sh-grid thead th.sh-todaycol { background: #e6f0fd; }
.sh-wk { border-left: 2px solid #dfe3e8 !important; }
.sh-group td { background: #f5f6f8; position: sticky; left: 0; font-size: 13px; padding: 8px 10px; }
.sh-who { display: table-cell; }
.sh-who .sh-av { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #e8eefb; color: #1c4f9c; font-size: 11.5px; font-weight: 700; margin-right: 8px; vertical-align: middle; }
.sh-name { display: inline-flex; flex-direction: column; vertical-align: middle; max-width: 180px; overflow: hidden; }
.sh-name strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-name .tiny { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-card { display: flex; flex-direction: column; gap: 1px; border-radius: 6px; padding: 6px 8px; background: #e9f1fc; border-left: 4px solid #2a78d6; font-size: 12px; min-height: 44px; }
.sh-card .sh-t { font-weight: 600; color: #0f2f5c; }
.sh-card .sh-z { color: #5b6b80; font-size: 11px; }
.sh-card .sh-n { color: #475569; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-card.sh-hol { background: #fdf1d8; border-left-color: #e8a317; }
.sh-card.sh-hol .sh-t { color: #7a4b00; } .sh-card.sh-hol .sh-n { color: #7a4b00; }
.sh-card.sh-off { background: #f3f4f6; border-left-color: #b5b3ad; }
.sh-card.sh-off .sh-t { color: #555; }
.sh-badge-hol { background: #fdf1d8; color: #7a4b00; }
.kpis-mini { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 12px; }
.kpis-mini .panel { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; }
.kpis-mini strong { font-size: 22px; } .kpis-mini .small-strong { font-size: 15px; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px; border: 2px dashed #cfd4dc; border-radius: 10px; cursor: pointer; text-align: center; }
.dropzone.over, .dropzone:hover { border-color: var(--brand); background: #f5f8ff; }
.dropzone input[type=file] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cols { display: flex; flex-wrap: wrap; gap: 6px; }
.rb-shift .rb-ic { background: #fdf1d8; color: #9a5b00; }
.sh-legend span { display: inline-flex; gap: 6px; align-items: center; }
.tm-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.tm { padding: 0; overflow: hidden; }
.tm > summary { display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; list-style: none; }
.tm > summary::-webkit-details-marker { display: none; }
.tm[open] > summary { border-bottom: 1px solid var(--line); }
.tm-name { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; }
.tm-act { margin-left: auto; display: flex; gap: 6px; }
.tm-act form { margin: 0; }
.navgroup > summary > span:not(.chev) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv > span:first-child { color: var(--muted); }
.permlist { list-style: none; margin: 0; padding: 0; }
.permlist li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.howto > summary { cursor: pointer; }
.howto ol { line-height: 1.75; margin: 12px 0 6px; padding-left: 20px; }
.codebox { position: relative; background: #0f172a; border-radius: 8px; padding: 14px 14px 14px 16px; margin: 8px 0; }
.codebox pre { margin: 0; color: #e2e8f0; font-size: 12.5px; white-space: pre-wrap; word-break: break-all; padding-right: 84px; line-height: 1.55; }
.codebox .copybtn { position: absolute; top: 10px; right: 10px; }
.linklist { list-style: none; margin: 6px 0 0; padding: 0; }
.linklist li { border-bottom: 1px solid var(--line); }
.linklist a { display: flex; gap: 10px; align-items: center; padding: 10px 4px; font-weight: 500; }
.linkrow { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; margin-bottom: 8px; }
table.compact td, table.compact th { padding: 7px 8px; }
.chip { display: inline-block; background: #eef2f7; border-radius: 6px; padding: 2px 8px; font-size: 12px; }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; }
.codebox pre { word-break: normal; overflow-wrap: anywhere; }
.navgroup.sub { margin: 2px 0 0 12px; }
.navgroup.sub > summary { font-size: 13.5px; padding: 6px 10px; }
.navgroup.sub > summary .ic { width: 16px; height: 16px; }
.navgroup.sub > a { padding-left: 26px !important; font-size: 13px; }
.side nav > a { margin-top: 10px; }
.side nav > a:first-child { margin-top: 0; }
/* IT Knowledge Hub */
.kb-form { margin-top: 16px; }
.kb-grid { display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
.kb-drop { position: relative; display: grid; place-items: center; height: 160px; border: 2px dashed #cfd4dc; border-radius: 10px; cursor: pointer; overflow: hidden; text-align: center; }
.kb-drop:hover { border-color: var(--brand); background: #f5f8ff; }
.kb-drop img { width: 100%; height: 100%; object-fit: cover; }
.kb-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.kb-thumb { width: 72px; height: 48px; object-fit: cover; border-radius: 6px; display: block; }
.kb-noimg { display: grid; place-items: center; background: #eef2f7; color: #64748b; }
.kb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.kb-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: var(--ink); transition: box-shadow .15s, transform .15s; }
.kb-card:hover { text-decoration: none; box-shadow: 0 10px 24px rgba(15,23,42,.10); transform: translateY(-2px); }
.kb-cover { height: 140px; background: linear-gradient(135deg, #e8eefb, #f5f7fb); display: grid; place-items: center; color: #4a6fb3; }
.kb-cover img { width: 100%; height: 100%; object-fit: cover; }
.kb-cover .ic { width: 40px; height: 40px; }
.kb-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.kb-body strong { font-size: 15px; }
.kb-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; }
.kb-link .ic { width: 14px; height: 14px; }
/* JumpCloud */
.jc-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; }
.jc-chip { display: flex; flex-direction: column; min-width: 110px; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
.jc-chip strong { font-size: 20px; line-height: 1.1; }
.jc-chip span { font-size: 12px; color: var(--muted); }
.jc-chip:hover { text-decoration: none; border-color: #b9c6dc; }
.jc-chip.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.jc-chip.warn strong { color: #b45309; }
.jc-actions form { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.jc-actions form:last-child { border-bottom: 0; }
.jc-actions .btn { min-width: 150px; justify-content: center; }
.jc-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.jc-tabs .tab { padding: 9px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.jc-tabs .tab.on { color: var(--brand); border-bottom-color: var(--brand); }
.jc-tabs .tab:hover { text-decoration: none; color: var(--ink); }
/* data table */
.dt-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 4px; }
.dt-tools { display: flex; gap: 8px; }
.dt-scroll { overflow-x: auto; }
table.dt th { vertical-align: bottom; }
table.dt .dt-sort { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
table.dt .dt-sort .arr { opacity: .45; font-size: 10px; }
table.dt .dt-sort.on { color: var(--brand); } table.dt .dt-sort.on .arr { opacity: 1; }
table.dt .dt-f th { padding-top: 0; }
table.dt .dt-filter { width: 100%; min-width: 90px; padding: 5px 8px; font-size: 12.5px; border-radius: 6px; text-transform: none; letter-spacing: 0; font-weight: 400; }
table.dt td { vertical-align: top; }
.dt-tagcell { min-width: 220px; max-width: 420px; }
.dt-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tagchip { background: #e8eefb; color: #1c4f9c; display: inline-flex; align-items: center; gap: 4px; white-space: normal; word-break: break-all; }
.tagchip button { background: none; border: 0; cursor: pointer; color: #1c4f9c; font-size: 14px; line-height: 1; padding: 0 0 0 2px; }
.dt-state { margin-top: 4px; }
.dt-act { white-space: nowrap; text-align: right; }
.dt-pager { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.dt-pager select { width: auto; margin-left: 6px; }
.tag-editor { display: flex; flex-direction: column; gap: 8px; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.te-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.te-input { padding: 6px 8px; font-size: 13px; }
.te-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.te-msg.err { color: #b3261e; }
[hidden] { display: none !important; }
/* Help Assistant: full-height side panel */
.topbar { gap: 10px; }
.helpbtn { color: var(--brand); }
.helpbtn.on { background: #2563eb; color: #fff; border-color: #2563eb; }
.hc-scrim { position: fixed; inset: 0; background: rgba(15,23,42,.18); z-index: 70; }
.hc { position: fixed; top: 0; right: 0; bottom: 0; z-index: 71; width: 440px; max-width: 100vw; display: flex; flex-direction: column;
  background: #fff; border-left: 1px solid var(--line); box-shadow: -18px 0 48px rgba(15,23,42,.18); animation: hcin .22s ease-out; }
@keyframes hcin { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.hc-h { display: flex; gap: 12px; align-items: center; padding: 16px 16px 16px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.hc-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hc-title strong { font-size: 16px; }
.hc-title small { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-dot { width: 7px; height: 7px; border-radius: 50%; background: #1baf7a; display: inline-block; flex: none; }
.hc-av { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed); }
.hc-av .ic { width: 16px; height: 16px; }
.hc-av.lg { width: 40px; height: 40px; } .hc-av.lg .ic { width: 20px; height: 20px; }
.hc-icon { width: 34px; height: 34px; border-radius: 8px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.hc-icon:hover { background: #f1f4f9; color: var(--ink); }
.hc-body { flex: 1; overflow-y: auto; padding: 20px 18px 8px; display: flex; flex-direction: column; gap: 16px; background: #fafbfd; }
.hc-row { display: flex; gap: 10px; align-items: flex-start; }
.hc-row.me { justify-content: flex-end; }
.hc-msg { max-width: 84%; padding: 11px 14px; border-radius: 14px; font-size: 14px; line-height: 1.55; }
.hc-row.bot .hc-msg { background: #fff; border: 1px solid var(--line); border-top-left-radius: 4px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.hc-row.me .hc-msg { background: #2563eb; color: #fff; border-top-right-radius: 4px; }
.hc-msg.typing { display: flex; gap: 4px; padding: 14px; }
.hc-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: hcdot 1s infinite; }
.hc-msg.typing span:nth-child(2) { animation-delay: .15s; } .hc-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes hcdot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.hc-choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hc-chip { border: 1px solid #c7d6f2; background: #f3f7ff; color: #1c4f9c; border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; font-weight: 500; font-family: inherit; }
.hc-chip:hover:not(:disabled) { background: #e3edfd; border-color: #9db7e6; }
.hc-chip:disabled { opacity: .45; cursor: default; } .hc-chip.picked { opacity: 1; background: #2563eb; color: #fff; border-color: #2563eb; }
.hc-cards { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.hc-card { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; transition: border-color .12s, box-shadow .12s; }
.hc-card:hover { text-decoration: none; border-color: #9db7e6; box-shadow: 0 4px 12px rgba(37,99,235,.10); }
.hc-card strong { font-size: 13.5px; }
.hc-card span { font-size: 12.5px; color: var(--muted); }
.hc-card.art { flex-direction: row; gap: 12px; align-items: flex-start; }
.hc-card.art img { width: 64px; height: 46px; object-fit: cover; border-radius: 6px; flex: none; }
.hc-ct { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hc-card em { font-style: normal; font-size: 10.5px; background: #dcfce7; color: #137a52; border-radius: 4px; padding: 1px 6px; margin-left: 6px; white-space: nowrap; vertical-align: 1px; }
.hc-open { color: var(--brand) !important; font-weight: 500; }
.hc-in { padding: 12px 16px 14px; border-top: 1px solid var(--line); background: #fff; }
.hc-box { display: flex; align-items: flex-end; gap: 8px; border: 1px solid #cfd6e2; border-radius: 14px; padding: 8px 8px 8px 14px; background: #fff; transition: border-color .12s, box-shadow .12s; }
.hc-box:focus-within { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.hc-box textarea { flex: 1; border: 0; outline: 0; resize: none; padding: 6px 0; font: inherit; font-size: 14px; line-height: 1.45; max-height: 140px; background: none; box-shadow: none; }
.hc-send { width: 36px; height: 36px; border-radius: 10px; border: 0; background: #2563eb; color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
.hc-send:disabled { background: #c7d2e5; cursor: default; }
.hc-send .ic { width: 17px; height: 17px; }
.hc-foot { margin: 8px 2px 0; font-size: 11px; color: var(--muted); }
@media (max-width: 600px) { .hc { width: 100vw; } }

.hc-box textarea { min-height: 0 !important; height: 26px; border: 0 !important; box-shadow: none !important; padding: 4px 0 !important; }
.hc-newbtn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid #c7d6f2; background: #f3f7ff; color: #1c4f9c; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.hc-newbtn:hover { background: #e3edfd; }
.hc-newbtn .ic { width: 15px; height: 15px; }
.hc-history { flex: 1; overflow-y: auto; padding: 14px 14px 20px; background: #fafbfd; }
.hc-hh { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 10px; }
.hc-group { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 12px 6px 6px; }
.hc-sess { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.hc-sess:hover { background: #eef3fb; }
.hc-sess.on { background: #e3edfd; }
.hc-st { flex: 1; min-width: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-sm { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.hc-del { border: 0; background: none; color: #94a3b8; font-size: 18px; cursor: pointer; width: 24px; height: 24px; border-radius: 6px; opacity: 0; }
.hc-sess:hover .hc-del { opacity: 1; }
.hc-del:hover { background: #fde2e1; color: #b3261e; }
.hc-loading { color: var(--muted); font-size: 13px; padding: 12px; }
