/* ==========================================================================
   Oditx Office — light fintech theme
   Inter throughout (one typeface) · navy ink + oditx green
   ========================================================================== */
:root {
  --primary: #21d28c; --primary-soft: #e8f9f1; --primary-ink: #08805a;
  --brand: #0e9f6e; --brand-d: #0a8a5f;                       /* buttons: white text */
  --ink: #0b1b33; --ink-2: #1d2b45; --text: #4a576d; --muted: #8592a6;
  --bg: #f4f6fa; --card: #fff; --border: #e3e8ef; --line: #eef1f6; --field: #fff; --field-b: #d9dfe8;
  --green: #08805a; --green-soft: #e8f9f1; --red: #d92d20; --red-soft: #fdeeec; --amber: #b54708; --amber-soft: #fff4e5;
  --blue: #2563eb; --blue-soft: #edf3ff; --violet: #6d4fe0; --violet-soft: #f2efff; --grey-soft: #f2f4f8;
  --radius: 16px; --r-sm: 10px;
  --shadow-xs: 0 1px 2px rgba(16,24,40,.04); --shadow: 0 12px 32px -14px rgba(11,27,51,.22);
  --head: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --green-ink: var(--primary-ink); --sb: 76px; --sb-open: 256px;
}
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { color-scheme: light; }
body { margin: 0; font: 14px/1.55 var(--body); font-variant-numeric: tabular-nums; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); letter-spacing: -.015em; margin: 0 0 .5em; line-height: 1.25; font-weight: 700; }
code { background: var(--grey-soft); padding: 2px 6px; border-radius: 6px; font-size: .86em; overflow-wrap: anywhere; color: var(--ink); }
.muted { color: var(--muted); } .small { font-size: .82rem; }
.num, .t-num, .num-col { font-variant-numeric: tabular-nums; }

/* ---------- Sidebar (white, grouped, collapsible) ---------- */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sb); background: #fff; border-right: 1px solid var(--border); display: flex; flex-direction: column; z-index: 50; transition: width .22s ease, transform .3s; }
.sb-logo { position: relative; display: flex; align-items: center; gap: 10px; height: 72px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.sb-logo .mark { width: 34px; height: 34px; flex: none; }
.sb-logo .full { height: 26px; width: auto; display: none; }
.sb-logo span { display: none; font: 700 .66rem var(--head); color: var(--primary-ink); background: var(--primary-soft); padding: 3px 8px; border-radius: 6px; letter-spacing: .04em; text-transform: uppercase; }
.sb-toggle { position: absolute; top: 22px; right: -13px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); cursor: pointer; font-size: .62rem; display: grid; place-items: center; z-index: 2; transition: transform .22s; }
.sb-toggle:hover { border-color: var(--ink); }
.sb-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; }
.sb-nav a { position: relative; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 10px; font-weight: 500; font-size: .89rem; color: #4a576d; white-space: nowrap; transition: background .15s, color .15s; }
.sb-nav a i { width: 20px; flex: none; text-align: center; font-size: .95rem; color: #8592a6; transition: color .15s; }
.sb-nav a span { opacity: 0; transition: opacity .12s; }
.sb-nav a:hover { background: var(--grey-soft); color: var(--ink); }
.sb-nav a:hover i { color: var(--ink); }
.sb-nav a.active { background: var(--primary-soft); color: var(--ink); font-weight: 600; }
.sb-nav a.active i { color: var(--primary-ink); }
.sb-nav a.active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); }
.sb-count { position: absolute; top: 4px; left: 30px; min-width: 16px; height: 16px; padding: 0 4px; background: var(--red); color: #fff; font-size: .6rem; font-weight: 700; line-height: 16px; text-align: center; border-radius: 999px; }
.sb-section { height: 1px; background: var(--line); margin: 10px 6px; font-size: 0; }
.sb-user { display: flex; align-items: center; gap: 10px; padding: 14px 20px 18px; border-top: 1px solid var(--line); }
.sb-user div, .sb-user a { display: none; }
.sb-user div { flex: 1; line-height: 1.25; }
.sb-user b { display: block; color: var(--ink); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-user small { font-size: .74rem; color: var(--muted); }
.sb-user a { width: 30px; height: 30px; place-items: center; border-radius: 8px; color: var(--muted); }
.sb-user a:hover { background: var(--grey-soft); color: var(--ink); }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #0e9f6e); color: #fff; display: grid; place-items: center; font: 700 .86rem var(--head); }
.sb-backdrop { display: none; }
body.sb-open .sidebar { width: var(--sb-open); }
body.sb-open .sb-logo .mark { display: none; }
body.sb-open .sb-logo .full, body.sb-open .sb-logo span { display: block; }
body.sb-open .sb-toggle { transform: rotate(180deg); }
body.sb-open .sb-nav a span { opacity: 1; }
body.sb-open .sb-count { position: static; margin-left: auto; height: 18px; line-height: 18px; padding: 0 7px; }
body.sb-open .sb-section { height: auto; background: none; margin: 14px 0 4px; padding: 0 12px; font: 600 .66rem var(--body); text-transform: uppercase; letter-spacing: .09em; color: #a0aabb; }
body.sb-open .sb-user div { display: block; } body.sb-open .sb-user a { display: grid; }
.sb-tip { position: fixed; z-index: 60; background: var(--ink); color: #fff; font: 500 .78rem var(--body); padding: 6px 10px; border-radius: 8px; pointer-events: none; white-space: nowrap; box-shadow: 0 6px 16px rgba(11,27,51,.25); }

/* ---------- Main & topbar ---------- */
.main { margin-left: var(--sb); min-height: 100vh; display: flex; flex-direction: column; transition: margin .22s ease; }
body.sb-open .main { margin-left: var(--sb-open); }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 12px 32px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.top-title { flex: 1; min-width: 240px; }
.topbar { flex-wrap: wrap; row-gap: 10px; }
.topbar h1 { font-size: 1.3rem; margin: 0; letter-spacing: -.02em; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-sub { font-size: .8rem; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-search { position: relative; width: min(300px, 26vw); }
.top-search input { width: 100%; height: 40px; padding: 0 50px 0 38px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--grey-soft); font: 13.5px var(--body); color: var(--ink); }
.top-search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 500 .68rem var(--body); color: var(--muted); border: 1px solid var(--border); background: #fff; border-radius: 6px; padding: 1px 6px; }
.top-search input:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(33,210,140,.16); }
.top-search i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .8rem; }
.top-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: var(--r-sm); background: #fff; color: var(--ink); cursor: pointer; }
.content { padding: 24px 32px 64px; max-width: 1480px; width: 100%; }
.page-greet { margin: -4px 0 20px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 .85rem var(--head); padding: 9px 16px; min-height: 40px; border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; white-space: nowrap; line-height: 1.2; }
.btn-primary, .btn-primary:hover { color: #fff; }
.btn-primary { background: var(--brand); box-shadow: 0 1px 2px rgba(16,24,40,.08), inset 0 1px 0 rgba(255,255,255,.12); }
.btn-primary:hover { background: var(--brand-d); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--field-b); box-shadow: var(--shadow-xs); }
.btn-light:hover { border-color: var(--ink); }
.btn-danger { background: #fff; color: var(--red); border-color: #f4c7c3; }
.btn-danger:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-sm { padding: 6px 12px; min-height: 34px; font-size: .79rem; }
.btn-block { width: 100%; }
.icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: #5b6880; cursor: pointer; transition: all .15s; font-size: .8rem; }
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn.ok:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.icon-btn.del:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-edit { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--ink); font: 600 .76rem var(--head); }
.btn-edit:hover { border-color: var(--ink); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(33,210,140,.45); outline-offset: 2px; }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 10px; align-items: baseline; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: .88rem; border: 1px solid transparent; }
.alert-ok { background: var(--green-soft); color: #05603f; border-color: #c4eedb; }
.alert-err { background: var(--red-soft); color: #9a1c13; border-color: #f7cfca; }
.alert-info { background: var(--blue-soft); color: #1e3a8a; border-color: #d6e3ff; }

/* ---------- Stat cards: all white, uniform ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; min-height: 128px; box-shadow: var(--shadow-xs); transition: transform .15s, box-shadow .15s, border-color .15s; }
a.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d3dae5; }
.stat .lbl { font-size: .8rem; font-weight: 500; display: flex; align-items: center; gap: 10px; color: #5b6880; }
.stat .lbl i { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: .8rem; background: var(--primary-soft); color: var(--primary-ink); flex: none; }
.stat .num { font: 700 1.85rem/1.15 var(--head); color: var(--ink); margin-top: auto; padding-top: 10px; letter-spacing: -.025em; }
.stat .sub { font-size: .76rem; color: var(--muted); }
.stat.s-red .lbl i { background: var(--red-soft); color: var(--red); } .stat.s-red .num { color: var(--red); }
.stat.s-amber .lbl i { background: var(--amber-soft); color: var(--amber); }
.stat.s-blue .lbl i { background: var(--blue-soft); color: var(--blue); }
.stat.s-violet .lbl i { background: var(--violet-soft); color: var(--violet); }
.stat.s-green .num { color: var(--primary-ink); }
.stat.s-dark { }

/* ---------- Cards & tables ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 20px; box-shadow: var(--shadow-xs); }
.card-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; }
.card-head h2 { font-size: .98rem; margin: 0; flex: 1 1 auto; min-width: fit-content; display: flex; align-items: center; gap: 8px; }
.card-head h2 .info { display: none; }
.card-head h2 .h-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink); font-size: .74rem; }
.go { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--ink); font-size: .74rem; border: 1px solid var(--border); transition: all .15s; }
.go:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.card-body { padding: 4px 20px 20px; }
.card-head + .card-body { padding-top: 4px; }
.card-head + .table-wrap { border-top: 1px solid var(--line); }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: 20px; align-items: start; }
.grid-2e { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.5fr) minmax(0,1fr); gap: 20px; margin-bottom: 20px; }
.grid-3 > .card { margin-bottom: 0; }
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .87rem; }
.tbl th { text-align: left; font: 600 .7rem var(--body); text-transform: uppercase; letter-spacing: .06em; color: #7a879b; padding: 10px 16px; background: #f8fafc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #fafbfd; }
.tbl .t-main { font-weight: 600; color: var(--ink); }
.tbl a.t-main:hover { color: var(--primary-ink); }
.tbl .t-sub { display: block; font-size: .77rem; color: var(--muted); margin-top: 2px; }
.tbl .num-col, .tbl th.num-col { text-align: right; white-space: nowrap; }
.tbl .actions { white-space: nowrap; text-align: right; }
.tbl .actions form { display: inline; }
.tbl .actions > * + * { margin-left: 4px; }
.tbl tr.cat-row td { background: #f8fafc; font: 700 .7rem var(--head); text-transform: uppercase; letter-spacing: .07em; color: var(--ink); padding: 9px 16px; }
.tbl tfoot td { font-weight: 700; color: var(--ink); background: #f8fafc; border-top: 1px solid var(--border); }
tr.row-over td { }
tr.row-done td { opacity: .55; }
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty i { font-size: 1.6rem; color: var(--primary-ink); display: block; margin-bottom: 10px; }
.inline-input { width: 100%; min-width: 90px; height: 38px; padding: 6px 10px; border: 1px solid var(--field-b); border-radius: 8px; font: 13.5px var(--body); background: #fff; color: var(--ink); }

/* ---------- Badges & chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .71rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; line-height: 1.5; }
.b-over { background: var(--red-soft); color: var(--red); }
.b-today { background: var(--red); color: #fff; }
.b-soon { background: var(--amber-soft); color: var(--amber); }
.b-ok { background: var(--green-soft); color: var(--primary-ink); }
.b-done, .b-grey { background: var(--grey-soft); color: #5b6880; }
.b-dark, .b-info { background: var(--blue-soft); color: var(--blue); }
.b-violet { background: var(--violet-soft); color: var(--violet); }
.b-navy { background: var(--ink); color: #fff; }
.chip { display: inline-block; font-size: .72rem; font-weight: 500; padding: 2px 9px; border-radius: 6px; background: var(--grey-soft); color: #4a576d; margin: 2px 4px 2px 0; }
.chips-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.fchip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: .82rem; font-weight: 500; color: #374151; transition: all .15s; }
.fchip b { font-size: .7rem; color: var(--muted); font-weight: 600; }
.fchip:hover { border-color: var(--ink); }
.fchip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.fchip.on b { color: var(--primary); }

/* ---------- Filters & forms ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters input, .filters select { height: 38px; padding: 0 12px; border: 1px solid var(--field-b); border-radius: 9px; font: 13.5px var(--body); background: #fff; color: var(--ink); }
.filters input[type=search] { min-width: 220px; }
.filters input[type=date] { width: 150px; }
.nowrap { white-space: nowrap; }
.form { display: grid; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font: 600 .8rem var(--body); color: var(--ink); }
.form input, .form select, .form textarea { width: 100%; height: 42px; padding: 0 13px; border: 1px solid var(--field-b); border-radius: var(--r-sm); font: 14.5px var(--body); color: var(--ink); background: var(--field); transition: border-color .15s, box-shadow .15s; }
.form textarea { height: auto; padding: 10px 13px; line-height: 1.5; resize: vertical; }
.form input[type=checkbox], .form input[type=radio] { width: 18px; height: 18px; padding: 0; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: #b9c3d2; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(33,210,140,.16); }
.form input:disabled, .form input[readonly] { color: var(--muted); background: var(--grey-soft); }
.form .hint { font: 400 .75rem/1.4 var(--body); color: var(--muted); }
.form .check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; }
.form .check input { accent-color: var(--brand); }
.row2, .row3, .row4 { display: grid; gap: 16px; align-items: start; }
.row2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.row3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.row4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.span2 { grid-column: span 2; }
.fsec { padding-top: 6px; border-top: 1px dashed var(--line); }
.fsec-t { font: 700 .72rem var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 -4px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-top: 4px; }
.form-actions .spacer { flex: 1; }
.form-bar { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 20px; margin: 0 -20px -20px; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.form label.req > :first-child { }
.form label.req::after { content: none; }
.form label.req { }
.req-star { color: var(--red); margin-left: 2px; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.form .seg-opt { display: block; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-opt span { display: block; padding: 10px 13px; border: 1px solid var(--field-b); border-radius: var(--r-sm); font-weight: 500; color: #374151; background: #fff; transition: all .15s; }
.seg-opt input:checked + span { border-color: var(--brand); background: var(--primary-soft); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--brand); }
.seg-opt input:focus-visible + span { outline: 3px solid rgba(33,210,140,.45); }
.dl { display: grid; grid-template-columns: 130px 1fr; gap: 9px 14px; margin: 0; font-size: .87rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .87rem; color: var(--ink); }
.checklist i { color: var(--primary-ink); margin-right: 6px; }
.svc-hint { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-sm); background: var(--primary-soft); color: #05603f; font-size: .8rem; font-weight: 500; }

/* ---------- Dashboard widgets ---------- */
.week { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 10px; }
.bars { display: grid; gap: 14px; }
.list-mini { list-style: none; margin: 0; padding: 0; }
.list-mini li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.list-mini li:last-child { border-bottom: 0; }
.list-mini li div { flex: 1; }
.list-mini b { color: var(--ink); font-weight: 600; }
.li-ic { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink); font-size: .8rem; }
.legend2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 22px; list-style: none; padding: 0; margin: 0; font-size: .83rem; }
.legend2 li { display: flex; align-items: center; gap: 8px; color: #4a576d; }
.legend2 li i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend2 li b { margin-left: auto; color: var(--ink); font: 700 .9rem var(--head); }
.ring-row { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 28px; align-items: center; }
.ring-big { width: 190px; height: 190px; display: block; }
.ring-big text { font-family: var(--head); }
.seg-bar { display: flex; gap: 2px; align-items: center; }
.seg-bar i { width: 5px; height: 14px; border-radius: 2px; background: #e3e8ef; }
.seg-bar i.on { background: var(--primary); }
.seg-bar b { margin-left: 10px; font: 600 .83rem var(--head); color: var(--ink); }
.avs { display: flex; align-items: center; }
.avs span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; margin-left: -6px; display: grid; place-items: center; font: 700 .6rem var(--head); color: var(--ink); background: #e3e8ef; }
.avs span:first-child { margin-left: 0; }
.avs span:nth-child(1) { background: #c9f2df; color: #05603f; }
.avs span:nth-child(2) { background: #dbe6ff; color: #1e40af; }
.avs span:nth-child(3) { background: #ece6ff; color: #4c2fb0; }
.avs em { font-style: normal; font: 600 .76rem var(--head); color: var(--ink); margin-left: 8px; }
.slider { position: relative; height: 8px; border-radius: 99px; background: #eef1f6; margin: 34px 0 10px; }
.slider .sf { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, #7fe6bc, var(--primary)); }
.slider .knob { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); transform: translate(-50%, -50%); }
.slider .tag { position: absolute; bottom: 18px; transform: translateX(-50%); background: var(--ink); color: #fff; font: 600 .7rem var(--head); padding: 3px 8px; border-radius: 6px; }
.perf { display: grid; gap: 16px; }
.perf-row { display: grid; gap: 7px; font-size: .83rem; color: #4a576d; }
.perf-row div { display: flex; justify-content: space-between; gap: 10px; }
.perf-row b { color: var(--ink); font: 700 .9rem var(--head); }
.perf-row .track { height: 6px; border-radius: 99px; background: #eef1f6; overflow: hidden; }
.perf-row .track span { display: block; height: 100%; border-radius: 99px; background: var(--primary); }
.perf-note { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .79rem; color: var(--ink); font-weight: 500; text-align: center; }
.vbars { display: flex; align-items: flex-end; gap: 10px; height: 130px; padding: 26px 4px 0; }
.vbars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; position: relative; }
.vbars span { width: 100%; max-width: 26px; border-radius: 7px 7px 4px 4px; background: #e2f6ec; }
.vbars span.hi { background: var(--primary); }
.vbars span.pk { background: var(--ink); }
.vbars small { font-size: .7rem; color: var(--muted); }
.vbars em { position: absolute; top: -2px; font-style: normal; font: 700 .7rem var(--head); color: #fff; background: var(--ink); padding: 2px 6px; border-radius: 6px; }
.money-row { display: flex; gap: 26px; flex-wrap: wrap; margin-bottom: 14px; }
.money-row div { font-size: .75rem; color: var(--muted); }
.money-row b { display: block; font: 700 1.12rem var(--head); color: var(--ink); letter-spacing: -.02em; }
.flow { display: grid; gap: 10px; }
.flow-row { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: 12px; align-items: center; font-size: .83rem; }
.flow-row .pct { height: 36px; border-radius: 9px; display: grid; place-items: center; font: 700 .78rem var(--head); background: var(--grey-soft); color: var(--ink); }
.flow-row .pct.g { background: var(--primary-soft); color: var(--primary-ink); }
.flow-row .bar { position: relative; height: 36px; border-radius: 9px; background: #f8fafc; overflow: hidden; display: flex; align-items: center; padding: 0 12px; color: var(--ink); font-weight: 500; }
.flow-row .bar span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(33,210,140,.26), rgba(33,210,140,.05)); }
.flow-row .bar em { position: relative; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow-row b { font: 700 .85rem var(--head); color: var(--ink); white-space: nowrap; }
.kpi-grad { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; box-shadow: var(--shadow-xs); color: var(--text); }
.kpi-grad h2 { font-size: .98rem; margin-bottom: 2px; }
.kpi-grad .big { font: 800 2.4rem/1 var(--head); color: var(--primary-ink); letter-spacing: -.035em; }
.kpi-grad .late { font: 800 1.6rem/1 var(--head); color: var(--ink); }
.grid-a { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 20px; margin-bottom: 20px; }
.grid-b { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.35fr) minmax(0,1fr); gap: 20px; margin-bottom: 20px; align-items: stretch; }
.grid-a > .card, .grid-b > .card, .grid-b > .stack-col > .card { margin-bottom: 0; }
.stack-col { display: grid; gap: 20px; grid-template-rows: auto 1fr; }

/* ---------- IDs, durations, remarks, branches, timesheet ---------- */
.code { display: inline-block; font: 600 .74rem/1.4 var(--body); font-variant-numeric: tabular-nums; color: var(--ink); background: #f5f7fb; border: 1px solid var(--border); padding: 2px 7px; border-radius: 6px; letter-spacing: .02em; white-space: nowrap; }
a.code:hover { border-color: var(--brand); color: var(--primary-ink); }
.stat-due { display: inline-block; font-size: .7rem; color: var(--muted); margin-left: 4px; }
.prio-urgent i, .prio-high i { font-size: .6rem; }
.badge.prio-normal, .badge.prio-low { background: transparent; padding-left: 0; color: var(--muted); }
.dur { display: flex; align-items: center; gap: 6px; }
.dur input { width: 84px !important; }
.dur select { width: 80px !important; }
.dur em { font-style: normal; color: var(--muted); font-size: .82rem; font-weight: 500; }
.time-meter { height: 8px; border-radius: 99px; background: #eef1f6; overflow: hidden; }
.time-meter span { display: block; height: 100%; border-radius: 99px; background: var(--primary); }
.time-meter span.over { background: var(--red); }
.remarks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.remarks li { display: flex; gap: 12px; align-items: flex-start; }
.remarks li > div { flex: 1; }
.remarks p { margin: 4px 0 0; color: var(--ink); font-size: .88rem; }
.avatar.sm { width: 30px; height: 30px; font-size: .76rem; }
.branch-pick { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 13px; border: 1px solid var(--border); border-radius: var(--r-sm); font-size: .85rem; color: var(--ink); background: #fff; white-space: nowrap; }
.branch-pick i { color: var(--primary-ink); }
.branch-pick select { border: 0; background: transparent; font: 600 .84rem var(--body); color: var(--ink); padding: 6px 4px; cursor: pointer; }
.branch-pick select:focus { outline: none; }
.branch-pick.static { padding-right: 14px; font-weight: 600; }
.branch-box { border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-bottom: 12px; }
.branch-box summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; cursor: pointer; list-style: none; }
.branch-box summary::-webkit-details-marker { display: none; }
.branch-box summary b { color: var(--ink); }
.branch-box[open] { border-color: #cdd5e0; }
.ts-week { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 10px; }
.ts-day { border: 1px solid var(--border); border-radius: 12px; padding: 10px; text-align: center; display: grid; gap: 4px; justify-items: center; background: #fff; }
.ts-day.today { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.ts-day small { font-size: .7rem; color: var(--muted); }
.ts-day b { font: 700 1.08rem var(--head); color: var(--ink); }
.ts-bar { width: 14px; height: 60px; border-radius: 8px; background: #eef1f6; display: flex; align-items: flex-end; overflow: hidden; }
.ts-bar span { display: block; width: 100%; background: var(--primary); border-radius: 8px; }
.ts-day em { font-style: normal; font: 600 .75rem var(--head); color: var(--ink); }

/* ---------- Pipeline (enquiries) & totals ---------- */
.pipe { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; margin-bottom: 20px; }
.pipe a { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; display: grid; gap: 2px; box-shadow: var(--shadow-xs); position: relative; overflow: hidden; transition: border-color .15s, transform .15s; }
.pipe a:hover { transform: translateY(-1px); border-color: #cdd5e0; }
.pipe a.on { border-color: var(--ink); }
.pipe span { font-size: .78rem; color: #5b6880; font-weight: 500; }
.pipe b { font: 700 1.5rem var(--head); color: var(--ink); }
.pipe small { font-size: .72rem; color: var(--muted); }
.totals { display: grid; gap: 8px; min-width: 300px; margin-left: auto; font-size: .9rem; }
.totals div { display: flex; justify-content: space-between; gap: 20px; color: var(--text); }
.totals div b { color: var(--ink); font-variant-numeric: tabular-nums; }
.totals .grand { padding: 12px 14px; border-radius: 12px; background: var(--primary-soft); font: 700 1.05rem var(--head); color: var(--ink); }
.alloc-row { display: grid; grid-template-columns: minmax(0,1fr) 130px 130px 140px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.alloc-row:last-child { border-bottom: 0; }
.alloc-row .r { text-align: right; font-variant-numeric: tabular-nums; }
.alloc-head { font: 600 .7rem var(--body); text-transform: uppercase; letter-spacing: .06em; color: #7a879b; }
.age { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.age div { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: #fff; }
.age span { display: block; font-size: .74rem; color: var(--muted); }
.age b { font: 700 1.02rem var(--head); color: var(--ink); }
.age div.hot b { color: var(--red); }
.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tl li { position: relative; padding: 0 0 16px 26px; }
.tl li::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.tl li:last-child::before { display: none; }
.tl li::after { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); }
.tl p { margin: 2px 0 0; color: var(--ink); font-size: .87rem; }

/* ---------- Documents: invoice, quotation, receipt, statement ---------- */
.invoice, .doc { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 44px 48px; max-width: 880px; color: #1f2a3d; box-shadow: var(--shadow-xs); }
.inv-head, .doc-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 2px solid var(--ink); position: relative; }
.doc-head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 120px; height: 2px; background: var(--primary); }
.inv-head img, .doc-logo { height: 42px; width: auto; margin-bottom: 10px; display: block; }
.inv-firm, .doc-firm { font-size: .82rem; white-space: pre-line; color: #5b6880; line-height: 1.5; }
.inv-firm b, .doc-firm b { color: var(--ink); font-size: .9rem; }
.inv-title, .doc-title { text-align: right; }
.inv-title h2, .doc-title h2 { font-size: 1.6rem; margin: 0; letter-spacing: .08em; color: var(--ink); }
.inv-title .no, .doc-title .no { font: 600 .98rem var(--head); color: var(--primary-ink); margin-top: 2px; }
.inv-meta, .doc-meta { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 22px 0; font-size: .87rem; }
.inv-meta h4, .doc-meta h4 { font: 600 .7rem var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.doc-meta .kv { display: grid; grid-template-columns: auto auto; gap: 4px 16px; text-align: right; }
.doc-meta .kv span { color: var(--muted); }
.inv-items, .doc-items { width: 100%; border-collapse: collapse; font-size: .87rem; }
.inv-items th, .doc-items th { background: var(--ink); color: #fff; text-align: left; padding: 10px 12px; font: 600 .76rem var(--body); text-transform: uppercase; letter-spacing: .05em; }
.inv-items th:first-child, .doc-items th:first-child { border-radius: 8px 0 0 8px; }
.inv-items th:last-child, .doc-items th:last-child { border-radius: 0 8px 8px 0; }
.inv-items td, .doc-items td { padding: 11px 12px; border-bottom: 1px solid #edf0f5; vertical-align: top; }
.inv-items .r, .doc-items .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc-items tr.sub td { background: #f8fafc; font-weight: 600; color: var(--ink); }
.inv-total, .doc-total { display: flex; justify-content: flex-end; margin-top: 16px; }
.inv-total div { min-width: 280px; display: flex; justify-content: space-between; padding: 14px 18px; border-radius: 12px; background: var(--primary-soft); font: 700 1.08rem var(--head); color: var(--ink); }
.inv-words { margin-top: 10px; text-align: right; font-size: .8rem; color: #5b6880; }
.inv-foot, .doc-foot { margin-top: 30px; padding-top: 16px; border-top: 1px solid #edf0f5; font-size: .8rem; color: #5b6880; display: grid; gap: 12px; }
.inv-bank, .pre { white-space: pre-line; }
.doc-sign { display: flex; justify-content: flex-end; margin-top: 36px; font-size: .8rem; color: #5b6880; }
.doc-sign div { text-align: center; min-width: 200px; padding-top: 40px; border-top: 1px solid #cfd6e1; }
.stamp { display: inline-block; border: 2px solid var(--green); color: var(--green); padding: 4px 12px; border-radius: 8px; font: 700 .86rem var(--head); transform: rotate(-4deg); letter-spacing: .06em; }
.stamp.unpaid { border-color: var(--amber); color: var(--amber); }
.stamp.part { border-color: var(--blue); color: var(--blue); }
.doc-amount { margin: 20px 0; padding: 18px 20px; border-radius: 12px; background: var(--primary-soft); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.doc-amount b { font: 800 1.5rem var(--head); color: var(--ink); }
.item-row { display: grid; grid-template-columns: minmax(0,1fr) 90px 140px 130px 36px; gap: 8px; align-items: center; }
.item-row input { height: 40px; }
.item-row .amt { text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.items-head { font: 600 .7rem var(--body); text-transform: uppercase; letter-spacing: .06em; color: #7a879b; }
.print-title { display: none; }
.status-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Auth ---------- */
.auth-body { background: var(--bg); }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); }
.auth-art { position: relative; overflow: hidden; background: radial-gradient(120% 120% at 100% 0%, #13436a 0%, #0d2a4a 40%, #0b1b33 75%); color: #c9d3e3; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art::before { content: ""; position: absolute; width: 560px; height: 560px; right: -180px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(33,210,140,.32), transparent 65%); }
.auth-grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.16) 1.2px, transparent 1.2px); background-size: 20px 20px; mask-image: linear-gradient(160deg, transparent 25%, #000 95%); -webkit-mask-image: linear-gradient(160deg, transparent 25%, #000 95%); }
.auth-logo { position: relative; height: 40px; width: auto; align-self: flex-start; z-index: 1; }
.auth-art-text { position: relative; z-index: 1; max-width: 470px; }
.auth-art-text h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.12; letter-spacing: -.03em; margin-bottom: 26px; font-weight: 800; }
.auth-art-text ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.auth-art-text li { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 10px 14px; border-radius: 14px; backdrop-filter: blur(6px); color: #fff; font-size: .92rem; }
.auth-art-text li i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary); color: var(--ink); flex: none; }
.auth-tag { position: relative; z-index: 1; font: 600 .9rem var(--head); color: var(--primary); }
.auth-panel { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 38px 34px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; letter-spacing: -.03em; }
.auth-sub { margin: 0 0 22px; color: var(--muted); }
.auth-logo-dark { height: 32px; width: auto; margin-bottom: 26px; }
.auth-step { display: inline-block; font: 600 .76rem var(--head); color: var(--primary-ink); background: var(--primary-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.auth-foot { text-align: center; font-size: .82rem; color: var(--muted); margin: 20px 0 0; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; }
.checks { list-style: none; padding: 0; display: grid; gap: 6px; }
.checks .ok i { color: var(--green); } .checks .bad { color: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .grid-a, .grid-b { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } .grid-b > :nth-child(2) { grid-column: span 2; order: 3; }
  .top-search { width: 210px; } .top-search kbd { display: none; }
  .row4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 1180px) { .grid-3 { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } .grid-3 > :nth-child(2) { grid-column: span 2; order: 3; } .pipe { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 1100px) { .grid-2, .grid-2e { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 900px) {
  :root { --sb: 0px; }
  .sidebar { width: var(--sb-open); transform: translateX(-100%); }
  .sidebar.open { transform: none; box-shadow: 20px 0 50px rgba(11,27,51,.2); }
  .sidebar .sb-logo .mark { display: none; } .sidebar .sb-logo .full, .sidebar .sb-logo span { display: block; }
  .sidebar .sb-nav a span { opacity: 1; } .sidebar .sb-count { position: static; margin-left: auto; }
  .sidebar .sb-section { height: auto; background: none; margin: 14px 0 4px; padding: 0 12px; font: 600 .66rem var(--body); text-transform: uppercase; letter-spacing: .09em; color: #a0aabb; }
  .sidebar .sb-user div { display: block; } .sidebar .sb-user a { display: grid; }
  .sb-toggle { display: none; }
  .sb-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(11,27,51,.35); z-index: 40; }
  .main, body.sb-open .main { margin-left: 0; }
  .menu-btn { display: grid; place-items: center; }
  .topbar { padding: 12px 16px; flex-wrap: wrap; }
  .top-search { order: 5; width: 100%; }
  .branch-pick { order: 4; }
  .content { padding: 16px 16px 50px; }
  .auth-wrap { grid-template-columns: minmax(0,1fr); }
  .auth-art { padding: 28px 24px; }
  .auth-art-text h2 { font-size: 1.45rem; margin: 18px 0 0; }
  .auth-art-text ul, .auth-tag { display: none; }
  .week { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .grid-a, .grid-b { grid-template-columns: minmax(0,1fr); } .grid-b > :nth-child(2) { grid-column: auto; }
  .ring-row { grid-template-columns: minmax(0,1fr); justify-items: center; } .ring-row > ul, .ring-row > div { width: 100%; }
  .topbar h1 { font-size: 1.15rem; }
  .card-head > span.muted.small { display: none; }
  .pipe { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .age { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .alloc-row { grid-template-columns: minmax(0,1fr) 110px; } .alloc-row > :nth-child(2), .alloc-row > :nth-child(3) { display: none; }
}
@media (max-width: 640px) {
  .row2, .row3, .row4, .seg { grid-template-columns: minmax(0,1fr); } .span2 { grid-column: auto; }
  .grid-3 { grid-template-columns: minmax(0,1fr); } .grid-3 > :nth-child(2) { grid-column: auto; }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .stat { min-height: 112px; padding: 14px 16px; } .stat .num { font-size: 1.5rem; }
  .top-actions { width: 100%; justify-content: flex-start; }
  .filters input[type=search] { min-width: 0; width: 100%; }
  .item-row { grid-template-columns: minmax(0,1fr) minmax(0,1.4fr) 32px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
  .item-row input[name="desc[]"] { grid-column: 1 / -1; }
  .item-row .amt, .items-head { display: none; }
  .invoice, .doc { padding: 22px; }
  .totals { min-width: 0; width: 100%; }
  .dl { grid-template-columns: 1fr; gap: 2px 0; } .dl dd { margin-bottom: 8px; }
  .ts-week { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .tbl.stack thead { display: none; }
  .tbl.stack tr { display: grid; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .tbl.stack tr.cat-row { padding: 0; } .tbl.stack tr.cat-row td { display: block; padding: 9px 16px; }
  .tbl.stack tr.cat-row td::before { content: none; }
  .tbl.stack td { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 10px; align-items: start; padding: 0; border: 0; text-align: left; }
  .tbl.stack td::before { content: attr(data-l); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding-top: 2px; }
  .tbl.stack td:empty { display: none; }
  .tbl.stack td > * { grid-column: 2; justify-self: start; }
  .tbl.stack td.actions { display: flex; justify-content: flex-end; gap: 6px; padding-top: 4px; }
  .tbl.stack td.actions::before { content: none; }
  .tbl.stack .num-col { text-align: left; }
  .tbl.stack tfoot { display: block; }
  .inv-items, .doc-items { font-size: .8rem; } .inv-items th, .inv-items td, .doc-items th, .doc-items td { padding: 8px 6px; }
  .hide-sm { display: none; }
}

/* ---------- Print (A4) ---------- */
@page { size: A4; margin: 14mm 12mm; }
@media print {
  html, body { background: #fff !important; }
  body { font-size: 12px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sidebar, .topbar, .no-print, .alert, .sb-backdrop { display: none !important; }
  .main, body.sb-open .main { margin: 0 !important; } .content { padding: 0 !important; max-width: none; }
  .invoice, .doc { border: 0; box-shadow: none; padding: 0; max-width: none; border-radius: 0; }
  .table-wrap { overflow: visible; }
  .inv-items thead, .doc-items thead { display: table-header-group; }
  .inv-items tr, .doc-items tr { break-inside: avoid; page-break-inside: avoid; }
  .inv-total, .doc-total, .inv-foot, .doc-foot, .doc-sign, .doc-amount { break-inside: avoid; page-break-inside: avoid; }
  .card { border: 0; box-shadow: none; }
  a { color: inherit; }
  .print-title { display: flex; gap: 16px; align-items: center; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 2px solid var(--ink); }
  .print-title img { height: 30px; } .print-title h1 { font-size: 1.2rem; margin: 0; } .print-title small { color: var(--muted); }
  .content:has(.doc) .print-title { display: none; }
  .stats { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; } .stat { min-height: 0; padding: 10px 12px; } .stat .num { font-size: 1.1rem !important; padding-top: 4px; } .stat .lbl i { display: none; }
  .tbl { font-size: 10.5px; } .tbl th, .tbl td { padding: 6px 6px; } .tbl th { font-size: 9px; } .tbl .actions, .tbl th:last-child:empty { display: none; }
  .tbl.stack thead { display: table-header-group; } .tbl tr { break-inside: avoid; }
  .chips-row, .pipe a::before { display: none; }
  .tbl td:first-child { min-width: 150px; }
}

/* ==========================================================================
   Compact density: tighter spacing on every screen, even rhythm in the menu
   ========================================================================== */
:root { --sb-open: 240px; --radius: 14px; }
body { font-size: 13.5px; }
.content { padding: 16px 24px 48px; max-width: 1640px; }
.topbar { min-height: 60px; padding: 8px 24px; gap: 12px; }
.topbar h1 { font-size: 1.15rem; }
.top-sub { font-size: .76rem; }
.top-search input, .branch-pick, .btn { height: 36px; min-height: 36px; }
.btn { padding: 0 14px; font-size: .82rem; }
.btn-sm { height: 30px; min-height: 30px; padding: 0 10px; font-size: .76rem; }
.icon-btn, .btn-edit, .go { width: 28px; height: 28px; }
.btn-edit { width: auto; padding: 0 9px; }
/* menu: 34px rows, 2px apart, small headed groups */
.sb-logo { height: 60px; padding: 0 18px; }
.sb-logo .full { height: 24px; }
.sb-toggle { top: 17px; }
.sb-nav { padding: 8px 12px; gap: 2px; }
.sb-nav a { height: 34px; padding: 0 10px; gap: 11px; font-size: .86rem; line-height: 34px; border-radius: 8px; }
.sb-nav a i { font-size: .88rem; width: 18px; }
.sb-nav a.active::before { left: -12px; top: 7px; bottom: 7px; }
.sb-count { top: 2px; left: 26px; }
body.sb-open .sb-section { margin: 12px 0 3px; padding: 0 10px; font-size: .64rem; line-height: 1.4; }
body.sb-open .sb-nav > .sb-section:first-child { margin-top: 2px; }
.sb-section { margin: 8px 6px; }
.sb-user { padding: 10px 16px 12px; gap: 9px; }
.sb-user .avatar { width: 32px; height: 32px; font-size: .8rem; }
/* cards, stats, tables */
.stats { gap: 12px; margin-bottom: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { min-height: 96px; padding: 12px 14px; }
.stat .lbl { font-size: .76rem; gap: 8px; }
.stat .lbl i { width: 26px; height: 26px; border-radius: 7px; font-size: .7rem; }
.stat .num { font-size: 1.5rem; padding-top: 6px; }
.stat .sub { font-size: .72rem; }
.card { margin-bottom: 14px; }
.card-head { padding: 11px 16px; gap: 10px; }
.card-head h2 { font-size: .92rem; }
.card-head h2 .h-ic { width: 24px; height: 24px; font-size: .68rem; border-radius: 6px; }
.card-body { padding: 2px 16px 14px; }
.card-foot { padding: 10px 16px; }
.grid-2, .grid-2e, .grid-3, .grid-a, .grid-b, .stack-col { gap: 14px; }
.grid-3, .grid-a, .grid-b { margin-bottom: 14px; }
.tbl { font-size: .84rem; }
.tbl th { padding: 7px 12px; font-size: .66rem; }
.tbl td { padding: 8px 12px; }
.tbl tr.cat-row td { padding: 6px 12px; }
.tbl .t-sub { font-size: .74rem; margin-top: 1px; }
.empty { padding: 28px 16px; }
.chips-row { margin-bottom: 12px; gap: 6px; }
.fchip { padding: 4px 11px; font-size: .78rem; }
.pipe { gap: 10px; margin-bottom: 14px; } .pipe a { padding: 10px 13px; } .pipe b { font-size: 1.25rem; }
.filters { gap: 6px; } .filters input, .filters select { height: 34px; font-size: 13px; }
/* forms */
.form { gap: 12px; }
.form label { gap: 4px; font-size: .77rem; }
.form input, .form select { height: 38px; font-size: 14px; padding: 0 11px; }
.form textarea { font-size: 14px; padding: 8px 11px; }
.row2, .row3, .row4 { gap: 12px; }
.fsec-t { font-size: .68rem; }
.form-bar { padding: 10px 16px; margin: 0 -16px -14px; }
.item-row input { height: 36px; }
.inline-input { height: 34px; }
.dl { gap: 6px 12px; font-size: .84rem; }
.list-mini li { padding: 8px 0; }
.li-ic { width: 30px; height: 30px; }
.alert { padding: 9px 14px; margin-bottom: 12px; }
.ring-row { grid-template-columns: 170px minmax(0,1fr); gap: 20px; } .ring-big { width: 170px; height: 170px; }
.perf { gap: 12px; } .vbars { height: 110px; } .money-row { margin-bottom: 10px; gap: 20px; }
.kpi-grad { padding: 16px; } .kpi-grad .big { font-size: 2rem; }
.ts-week { gap: 8px; } .ts-day { padding: 8px; } .ts-bar { height: 48px; }
.invoice, .doc { padding: 36px 40px; }
@media (max-width: 900px) { .content { padding: 12px 12px 40px; } .topbar { padding: 8px 12px; } .sidebar .sb-section { margin: 12px 0 3px; padding: 0 10px; } }
@media (max-width: 640px) { .stat { min-height: 88px; } .tbl.stack tr { padding: 10px 12px; gap: 4px; } }

/* Distinct colours for bar lists (team performance, timesheet report) */
.perf .perf-row:nth-child(8n+1) .track span { background: #21d28c; }
.perf .perf-row:nth-child(8n+2) .track span { background: #2563eb; }
.perf .perf-row:nth-child(8n+3) .track span { background: #7c5cff; }
.perf .perf-row:nth-child(8n+4) .track span { background: #f59e0b; }
.perf .perf-row:nth-child(8n+5) .track span { background: #06b6d4; }
.perf .perf-row:nth-child(8n+6) .track span { background: #ec4899; }
.perf .perf-row:nth-child(8n+7) .track span { background: #0b1b33; }
.perf .perf-row:nth-child(8n+8) .track span { background: #f97316; }
.soa-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.soa-pick label { display: flex; flex-direction: column; gap: 4px; font: 600 .74rem var(--body); color: var(--ink); }
.soa-pick select, .soa-pick input { height: 36px; padding: 0 11px; border: 1px solid var(--field-b); border-radius: 9px; font: 13.5px var(--body); color: var(--ink); background: #fff; }
.soa-pick select { min-width: 280px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.presets button { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 4px 11px; font: 500 .76rem var(--body); color: #374151; cursor: pointer; }
.presets button:hover { border-color: var(--ink); }

/* Confirmation dialog */
.cfm-wrap { position: fixed; inset: 0; z-index: 1000; display: none; place-items: center; padding: 20px; background: rgba(11,27,51,.45); backdrop-filter: blur(3px); }
.cfm-wrap.show { display: grid; animation: cfmIn .15s ease-out; }
.cfm { width: 100%; max-width: 420px; background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 30px 60px -20px rgba(11,27,51,.45); text-align: center; }
.cfm-ic { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber); font-size: 1.05rem; }
.cfm-ic.danger { background: var(--red-soft); color: var(--red); }
.cfm h3 { font-size: 1.05rem; margin: 0 0 6px; }
.cfm p { margin: 0 0 20px; color: var(--text); font-size: .9rem; line-height: 1.5; }
.cfm-btns { display: flex; gap: 10px; justify-content: center; }
.cfm-btns .btn { min-width: 130px; }
.btn-danger-solid { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger-solid:hover { background: #b42318; color: #fff; }
@keyframes cfmIn { from { opacity: 0; } to { opacity: 1; } }
@media print { .cfm-wrap { display: none !important; } }

/* File picker: drop zone with icon */
.fl-label { display: block; font: 600 .77rem var(--body); color: var(--ink); margin-bottom: 4px; }
.file-drop { position: relative; display: flex !important; flex-direction: row !important; align-items: center; gap: 14px !important; padding: 14px 16px; border: 1.5px dashed #c5cfdc; border-radius: 12px; background: #f8fafc; cursor: pointer; transition: border-color .15s, background .15s; }
.file-drop:hover, .file-drop.drag { border-color: var(--brand); background: var(--primary-soft); }
.file-drop.has-file { border-style: solid; border-color: var(--brand); background: #fff; }
.file-drop input[type=file] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.fd-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); color: var(--primary-ink); font-size: 1.15rem; box-shadow: var(--shadow-xs); }
.file-drop.has-file .fd-ic { background: var(--brand); border-color: var(--brand); color: #fff; }
.fd-text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.fd-text b { color: var(--ink); font-size: .9rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-text small { color: var(--muted); font-size: .76rem; font-weight: 400; }
.fd-btn { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 9px; background: var(--brand); color: #fff; font: 600 .8rem var(--body); }
@media (max-width: 640px) { .fd-btn { display: none; } }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.post-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.post-card:hover { box-shadow: 0 10px 28px rgba(11,27,51,.08); transform: translateY(-2px); }
.pc-img { position: relative; display: block; aspect-ratio: 16/9; background: linear-gradient(135deg, #eef3f8, #e3f8ef); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-img > span:first-child { position: absolute; inset: 0; display: grid; place-items: center; color: #9aa7ba; font-size: 1.6rem; }
.pc-img .badge { position: absolute; top: 10px; left: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.pc-body { padding: 14px 16px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pc-cat { font: 600 .68rem var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--primary-ink, #0e9f6e); }
.pc-title { font: 600 1rem/1.35 var(--head); color: var(--ink); }
.pc-title:hover { color: #0e9f6e; }
.pc-body p { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.5; flex: 1; }
.pc-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--border); font-size: .74rem; color: var(--muted); }
.pc-acts { display: inline-flex; gap: 6px; }
.ed-tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.ed-tabs button { border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 6px 12px; font: 600 .78rem var(--head); color: #5b6880; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.ed-tabs button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.ed-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px; border: 1px solid var(--border); border-bottom: 0; border-radius: 10px 10px 0 0; background: #f7f9fc; }
.ed-bar button, .ed-bar .ed-img { height: 30px; min-width: 32px; padding: 0 9px; border: 1px solid transparent; border-radius: 7px; background: transparent; font: 700 .78rem var(--head); color: #374151; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ed-bar button:hover, .ed-bar .ed-img:hover { background: #fff; border-color: var(--border); }
.form .ed-bar .ed-img { flex-direction: row; font-weight: 600; margin: 0; }
.ed-img input { display: none; }
.ed-status { margin-left: auto; font-size: .74rem; color: var(--muted); padding-right: 6px; }
.form textarea.ed-area { border-radius: 0 0 10px 10px; font: 400 .9rem/1.65 var(--body); min-height: 420px; resize: vertical; }
.ed-preview { border: 1px solid var(--border); border-radius: 10px; padding: 18px 22px; min-height: 420px; background: #fff; }
.cover-prev { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; display: block; border: 1px solid var(--border); margin-bottom: 10px; }
.cover-prev[hidden] { display: none; }
.bp-body { font-size: .95rem; line-height: 1.7; color: #1f2a3d; }
.bp-body h2 { font: 700 1.25rem/1.3 var(--head); margin: 1.4em 0 .5em; color: var(--ink); }
.bp-body h3 { font: 600 1.05rem/1.3 var(--head); margin: 1.2em 0 .4em; color: var(--ink); }
.bp-body p, .bp-body ul, .bp-body ol { margin: 0 0 1em; }
.bp-body blockquote { margin: 1em 0; padding: 10px 16px; border-left: 3px solid var(--brand); background: #f3fbf7; border-radius: 0 8px 8px 0; }
.bp-body a { color: #0e9f6e; text-decoration: underline; }
.bp-fig { margin: 1.2em 0; }
.bp-fig img { max-width: 100%; height: auto; border-radius: 10px; display: block; }
.bp-fig figcaption { font-size: .78rem; color: var(--muted); margin-top: 6px; text-align: center; }
.bp-body > :first-child { margin-top: 0; }

/* ---------- Login: gradient + field icons ---------- */
.auth-panel { position: relative; overflow: hidden; background:
  radial-gradient(60% 50% at 0% 0%, rgba(33,210,140,.22), transparent 70%),
  radial-gradient(55% 45% at 100% 100%, rgba(80,130,255,.18), transparent 70%),
  radial-gradient(40% 40% at 90% 10%, rgba(200,241,105,.28), transparent 70%),
  linear-gradient(160deg, #f5fbf8 0%, #eef3fb 100%); }
.auth-panel::before, .auth-panel::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.auth-panel::before { width: 220px; height: 220px; left: -70px; bottom: 12%; background: linear-gradient(135deg, rgba(33,210,140,.35), rgba(14,159,110,.05)); }
.auth-panel::after { width: 120px; height: 120px; right: 8%; top: 9%; background: linear-gradient(135deg, rgba(11,27,51,.12), rgba(11,27,51,0)); }
.auth-card { position: relative; z-index: 1; background: rgba(255,255,255,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 30px 60px -28px rgba(11,27,51,.35), 0 0 0 1px rgba(11,27,51,.04); overflow: hidden; }
.auth-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #21d28c, #0e9f6e 40%, #2f7cf6 75%, #c8f169); }
.auth-hello { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; font-size: 1.1rem; color: #fff; background: linear-gradient(135deg, #21d28c, #0e7c56); box-shadow: 0 10px 20px -8px rgba(14,159,110,.6); }
.auth-card h1 { background: linear-gradient(90deg, #0b1b33, #0e7c56); -webkit-background-clip: text; background-clip: text; color: transparent; }
.in-ic { position: relative; display: block; }
.in-ic > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #8a97ab; font-size: .9rem; pointer-events: none; transition: color .15s; z-index: 1; }
.form .in-ic input { padding-left: 42px; height: 46px; background: #f7f9fc; border-color: #e3e8f0; transition: all .15s; }
.form .in-ic input:focus { background: #fff; border-color: #21d28c; box-shadow: 0 0 0 4px rgba(33,210,140,.15); }
.in-ic:focus-within > i { color: #0e9f6e; }
.auth-card .btn-primary { height: 48px; background: linear-gradient(90deg, #0e9f6e, #21d28c); border: 0; box-shadow: 0 14px 26px -12px rgba(14,159,110,.75); transition: transform .15s, box-shadow .15s; }
.auth-card .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 30px -12px rgba(14,159,110,.85); }
.auth-foot i { color: #0e9f6e; margin-right: 4px; }
.auth-art { background: linear-gradient(145deg, #0b1b33 0%, #0d2f4f 45%, #0b4a3a 100%); }
.auth-art::after { content: ""; position: absolute; width: 420px; height: 420px; left: -140px; bottom: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(200,241,105,.22), transparent 65%); }
.auth-art-text li i { background: linear-gradient(135deg, #21d28c, #c8f169); }
.auth-card::before { content: none; }
.auth-art-text li { background: none; border: 0; padding: 4px 0; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; }

/* ---------- Login card v2: gradient header + pill fields ---------- */
.auth-card:has(.auth-head) { padding: 0; border-radius: 24px; background: #fff; }
.auth-head { position: relative; overflow: hidden; padding: 28px 32px 26px; background: linear-gradient(135deg, #0b1b33 0%, #0d3a4a 55%, #0e7c56 100%); color: #cfe3da; }
.auth-head::after { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(200,241,105,.35), transparent 65%); }
.auth-head-logo { position: relative; height: 28px; width: auto; display: block; margin-bottom: 22px; }
.auth-head-ic { position: absolute; right: 28px; top: 26px; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #c8f169; }
.auth-head h1 { position: relative; color: #fff; background: none; -webkit-text-fill-color: #fff; margin-bottom: 4px; }
.auth-head .auth-sub { position: relative; color: #b9d3c8; margin: 0; }
.auth-body-in { padding: 26px 32px 28px; }
.auth-body-in .form .in-ic input, .auth-body-in .form .pw-wrap input { border-radius: 999px; padding-left: 50px; }
.auth-body-in .in-ic > i { left: 8px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #e8faf2; color: #0e9f6e; font-size: .8rem; }
.auth-body-in .in-ic:focus-within > i { background: #0e9f6e; color: #fff; }
.auth-body-in .pw-toggle { right: 8px; }
.auth-body-in .btn-primary { border-radius: 999px; }
/* Login art panel: balanced spacing */
.auth-art { justify-content: center; gap: 34px; padding: 44px 56px; }
.auth-art .auth-logo { position: absolute; top: 40px; left: 56px; }
.auth-art .auth-tag { position: absolute; bottom: 36px; left: 56px; }
.auth-art-text { max-width: 520px; }
.auth-art-text h2 { margin-bottom: 22px; }
.auth-mods { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; max-width: 520px; }
.auth-mods span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #e6efea; font: 600 .8rem var(--head); }
.auth-mods i { color: #c8f169; font-size: .78rem; }
@media (max-width: 900px) { .auth-mods { display: none; } .auth-art .auth-logo, .auth-art .auth-tag { position: relative; top: auto; left: auto; bottom: auto; } .auth-art { padding: 28px 24px; gap: 18px; } }

/* ---------- Team website profile ---------- */
.web-profile { border: 1px solid var(--border); border-radius: 14px; padding: 16px; background: #fafcfe; display: grid; gap: 14px; }
.wp-head { display: flex; gap: 10px; align-items: center; }
.wp-head b { display: block; font: 600 .95rem var(--head); color: var(--ink); }
.wp-head small { color: var(--muted); font-size: .78rem; }
.wp-grid { display: grid; grid-template-columns: 170px minmax(0,1fr); gap: 18px; align-items: start; }
.wp-photo { display: grid; justify-items: center; gap: 8px; text-align: center; }
.wp-photo img, .wp-ph { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 8px 20px -10px rgba(11,27,51,.35); }
.wp-photo img[hidden], .wp-ph[hidden] { display: none; }
.wp-ph { display: grid; place-items: center; background: linear-gradient(135deg, #21d28c, #0e7c56); color: #fff; font: 700 2.4rem var(--head); }
.form .wp-up { flex-direction: row; cursor: pointer; }
.u-cell { display: flex; align-items: center; gap: 10px; }
.u-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.u-ini { display: grid; place-items: center; background: var(--primary-soft, #e8faf2); color: #0e7c56; font: 700 .85rem var(--head); }
@media (max-width: 640px) { .wp-grid { grid-template-columns: 1fr; } }
/* Practice statistics card */
.ps-card { margin-top: 20px; }
.ps-body { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 24px; align-items: start; padding-top: 6px; }
.ps-nums { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.ps-nums > div { border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: grid; gap: 4px; background: #fafcfe; }
.ps-nums span { font-size: .78rem; color: var(--muted); font-weight: 500; }
.ps-nums span i { color: #0e9f6e; margin-right: 4px; }
.ps-nums b { font: 700 1.6rem/1.1 var(--head); color: var(--ink); }
.ps-nums small { font-size: .74rem; color: var(--muted); }
@media (max-width: 1000px) { .ps-body { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ps-nums { grid-template-columns: 1fr; } }
/* Login art panel: logo and tagline stay in the flow so nothing overlaps on short screens */
.auth-art { justify-content: flex-start; gap: 28px; }
.auth-art .auth-logo, .auth-art .auth-tag { position: relative; top: auto; left: auto; bottom: auto; }
.auth-art .auth-art-text { margin-top: auto; }
.auth-art .auth-mods { margin-bottom: auto; }
.team-switch { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 16px; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.team-switch .ts-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft, #e8faf2); color: #0e9f6e; flex: none; }
.team-switch > div { flex: 1; min-width: 0; }
.team-switch b { display: block; font: 600 .92rem var(--head); color: var(--ink); }
.team-switch small { font-size: .8rem; color: var(--muted); }
@media (max-width: 640px) { .team-switch { flex-wrap: wrap; } }
.auth-panel { background: #fff; } .auth-panel::before, .auth-panel::after { display: none; } .auth-card:has(.auth-head) { box-shadow: 0 24px 50px -28px rgba(11,27,51,.35), 0 0 0 1px #e5eaf3; }
/* Login: one dark gradient + dot grid across the whole screen; white card on top */
.auth-wrap { position: relative; background: linear-gradient(145deg, #0b1b33 0%, #0d2f4f 45%, #0b4a3a 100%); }
.auth-wrap::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.14) 1.2px, transparent 1.2px); background-size: 20px 20px; }
.auth-art { background: transparent; }
.auth-art .auth-grid { display: none; }
.auth-panel { background: transparent; position: relative; z-index: 1; }
.auth-card:has(.auth-head) { box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); }
.auth-head { background: linear-gradient(135deg, #0e7c56 0%, #0b5a43 100%); }
.auth-art::before, .auth-art::after { display: none; } .auth-wrap::after { content: ""; position: absolute; width: 620px; height: 620px; right: 8%; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(33,210,140,.22), transparent 65%); pointer-events: none; } .auth-wrap { overflow: hidden; }
/* Login card header: light, professional shade */
.auth-head { background: linear-gradient(180deg, #f3f8f6 0%, #ffffff 100%); color: var(--muted); border-bottom: 1px solid #e6ece9; }
.auth-head::after { display: none; }
.auth-head h1 { color: var(--ink); -webkit-text-fill-color: var(--ink); }
.auth-head .auth-sub { color: #64748b; }
.auth-head-ic { background: #e8f5ef; border-color: #cfe7dc; color: #0e7c56; }
.ps-six { grid-template-columns: repeat(6, minmax(0,1fr)); }
.ps-six > a { border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: grid; gap: 4px; background: #fafcfe; color: inherit; transition: border-color .15s, box-shadow .15s; }
.ps-six > a:hover { border-color: #0e9f6e; box-shadow: 0 8px 18px -12px rgba(11,27,51,.3); }
.ps-six > a.ps-hi { background: #f1faf5; border-color: #cfe7dc; }
@media (max-width: 1280px) { .ps-six { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 640px) { .ps-six { grid-template-columns: repeat(2, minmax(0,1fr)); } }
