/* =====================================================================
   PNSWEB TaskForce 2.0 — corporate design system
   ===================================================================== */
:root {
  --brand: #0b3aa4; --brand-600: #0a338f; --brand-700: #082a78; --brand-50: #eef3ff; --brand-100: #dce6ff; --brand-200: #b9ccff;
  --nav: #0c1631; --nav-2: #13204a; --nav-text: #aab6d3; --nav-active: #ffffff;
  --bg: #f4f6fb; --surface: #ffffff; --surface-2: #f8fafc; --line: #e5e9f2; --line-2: #eef1f7;
  --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --faint: #94a3b8;
  --green: #059669; --green-50: #ecfdf5; --amber: #d97706; --amber-50: #fffbeb; --red: #dc2626; --red-50: #fef2f2; --violet: #7c3aed; --violet-50: #f5f3ff; --sky: #0284c7; --sky-50: #f0f9ff; --pink: #db2777;
  --p1: #d1453b; --p2: #eb8909; --p3: #246fe0; --p4: #94a3b8;
  --radius: 10px; --radius-sm: 7px; --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 6px 16px rgba(15, 23, 42, .05);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .18);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --sidebar-w: 248px; --topbar-h: 60px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 22px; } h2 { font-size: 18px; } h3 { font-size: 15px; } h4 { font-size: 13.5px; }
p { margin: 0 0 10px; }
code { background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12.5px; } .xs { font-size: 11.5px; } .center { text-align: center; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.strong { font-weight: 600; } .mono { font-variant-numeric: tabular-nums; } .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; } .row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; min-width: 0; } .gap-s { gap: 6px; } .gap-l { gap: 18px; }
.mt { margin-top: 16px; } .mt-s { margin-top: 8px; } .mb { margin-bottom: 16px; } .mb-s { margin-bottom: 8px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; } .span3 { grid-column: span 3; } .span-all { grid-column: 1 / -1; }
.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ic.sm { width: 15px; height: 15px; } .ic.lg { width: 22px; height: 22px; }

/* ---------------- boot / spinner */
.boot { height: 100vh; display: grid; place-items: center; align-content: center; gap: 18px; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--brand-100); border-top-color: var(--brand); animation: spin .8s linear infinite; }
.spinner.sm { width: 16px; height: 16px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-block { padding: 60px 0; display: grid; place-items: center; }

/* ---------------- buttons */
.btn { --b: var(--line); display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--b); background: var(--surface); color: var(--ink-2); font: 500 13.5px var(--font); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, color .15s; text-decoration: none !important; }
.btn:hover { background: var(--surface-2); border-color: #d3d9e6; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-100); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; } .btn-danger:hover { background: #b91c1c; }
.btn-success { background: var(--green); border-color: var(--green); color: #fff; } .btn-success:hover { background: #047857; }
.btn-ghost { background: transparent; border-color: transparent; } .btn-ghost:hover { background: var(--line-2); }
.btn-soft { background: var(--brand-50); border-color: var(--brand-50); color: var(--brand); } .btn-soft:hover { background: var(--brand-100); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; } .btn-lg { height: 44px; padding: 0 20px; font-size: 14.5px; }
.btn-icon { width: 36px; padding: 0; } .btn-sm.btn-icon { width: 30px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* ---------------- forms */
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span, .label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field > span .req { color: var(--red); }
.field small { font-size: 11.5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], input[type=search], input[type=time], input[type=color], input:not([type]), select, textarea {
  width: 100%; height: 38px; padding: 0 11px; border: 1px solid #d6dce8; border-radius: var(--radius-sm); background: #fff; color: var(--ink); font: 14px var(--font); transition: border-color .15s, box-shadow .15s; }
textarea { height: auto; min-height: 84px; padding: 9px 11px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--muted); }
input[type=color] { padding: 3px; width: 46px; }
input.sm, select.sm { height: 32px; font-size: 13px; }
.check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: 13.5px; color: var(--ink-2); padding: 3px 0; }
.check input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--brand); flex: none; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 64px; }
.pw-toggle { position: absolute; right: 5px; top: 5px; height: 28px; padding: 0 9px; border: 0; background: var(--line-2); color: var(--ink-2); border-radius: 5px; font: 600 11.5px var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.pw-toggle:hover { background: var(--brand-50); color: var(--brand); }
.pw-meter { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 6px; }
.pw-meter i { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.pw-rules { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.pw-rules .ok { color: var(--green); }
.input-group { display: flex; } .input-group input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); } .input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; border-left: 0; height: 38px; }
.form-section { padding: 18px 0 6px; border-top: 1px solid var(--line-2); margin-top: 6px; }
.form-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.form-section > h3 { margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 16px; margin-top: 14px; border-top: 1px solid var(--line-2); }
.seg { display: inline-flex; background: var(--line-2); border-radius: 8px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 6px; font: 500 12.5px var(--font); color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* date picker */
.date-wrap { position: relative; }
.date-wrap input { padding-right: 36px; }
.date-wrap .date-btn { position: absolute; right: 4px; top: 4px; width: 30px; height: 30px; border: 0; background: transparent; color: var(--muted); border-radius: 6px; cursor: pointer; display: grid; place-items: center; }
.date-wrap .date-btn:hover { background: var(--line-2); color: var(--brand); }
.cal-pop { position: fixed; z-index: 400; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 12px; width: 280px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head b { font-size: 13.5px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-grid .dow { font-size: 11px; color: var(--faint); font-weight: 600; padding: 4px 0; }
.cal-grid button { border: 0; background: transparent; height: 32px; border-radius: 7px; font: 500 12.5px var(--font); color: var(--ink-2); cursor: pointer; }
.cal-grid button:hover { background: var(--brand-50); }
.cal-grid button.out { color: var(--faint); }
.cal-grid button.today { color: var(--brand); font-weight: 700; box-shadow: inset 0 0 0 1px var(--brand-200); }
.cal-grid button.sel { background: var(--brand); color: #fff; }
.cal-foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-2); }

/* ---------------- cards / surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 20px; border-bottom: 1px solid var(--line-2); }
.card-head h3 { display: flex; align-items: center; gap: 8px; }
.card-body { padding: 18px 20px; }
.card-foot { padding: 12px 20px; border-top: 1px solid var(--line-2); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.card.flat { box-shadow: none; }
.panel-list > * + * { border-top: 1px solid var(--line-2); }

/* ---------------- alerts, pills, badges */
.alert { padding: 11px 14px; border-radius: var(--radius); border: 1px solid; font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; }
.alert .ic { margin-top: 1px; }
.alert-info { background: var(--brand-50); border-color: var(--brand-100); color: #1e3a8a; }
.alert-success { background: var(--green-50); border-color: #a7f3d0; color: #065f46; }
.alert-warn { background: var(--amber-50); border-color: #fde68a; color: #92400e; }
.alert-danger { background: var(--red-50); border-color: #fecaca; color: #991b1b; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.pill.plain::before { display: none; }
.pill.green { background: var(--green-50); color: var(--green); } .pill.amber { background: var(--amber-50); color: var(--amber); } .pill.red { background: var(--red-50); color: var(--red); }
.pill.blue { background: var(--brand-50); color: var(--brand); } .pill.violet { background: var(--violet-50); color: var(--violet); } .pill.sky { background: var(--sky-50); color: var(--sky); } .pill.gray { background: var(--line-2); color: var(--muted); }
.badge { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; }
.badge.soft { background: rgba(255, 255, 255, .12); color: #dbe4ff; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }

/* ---------------- auth screens */
.auth-body { background: var(--bg); }
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-side { background: radial-gradient(1200px 600px at 10% 0%, #1d4ed8 0%, transparent 60%), linear-gradient(160deg, #0b3aa4 0%, #0c1631 75%); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .05); }
.auth-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; letter-spacing: .02em; }
.auth-brand img { width: 40px; height: 40px; }
.auth-hero h1 { color: #fff; font-size: 34px; line-height: 1.2; font-weight: 700; max-width: 460px; }
.auth-hero p { color: #c7d4f5; font-size: 15px; max-width: 440px; margin-top: 14px; }
.auth-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 30px; max-width: 480px; }
.auth-feat { display: flex; gap: 10px; align-items: center; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: #e2e8ff; }
.auth-feat .ic { color: #93b4ff; }
.auth-foot { color: #9fb0da; font-size: 12px; position: relative; z-index: 1; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; background: #fff; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h2 { font-size: 24px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; }
.auth-card form { display: flex; flex-direction: column; gap: 15px; }
.auth-card .row.between { font-size: 13px; }
.auth-logo-m { display: none; margin-bottom: 22px; }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--faint); font-size: 12px; margin-top: 22px; }

/* installer */
.install-wrap { max-width: 760px; margin: 0 auto; padding: 40px 18px; }
.install-card { padding: 30px 32px; }
.install-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.install-form h3 { margin: 22px 0 12px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.install-form h3:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.install-actions { margin-top: 22px; display: flex; justify-content: flex-end; }
.checklist { padding-left: 18px; line-height: 1.9; }

/* ---------------- app shell */
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--nav); color: var(--nav-text); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; z-index: 50; }
.sb-brand { display: flex; align-items: center; gap: 11px; padding: 16px 18px; height: var(--topbar-h); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.sb-brand img { width: 32px; height: 32px; border-radius: 8px; background: #fff; padding: 3px; object-fit: contain; }
.sb-brand b { color: #fff; font-size: 15px; display: block; line-height: 1.2; }
.sb-brand small { color: #7f8db3; font-size: 11px; }
.sb-nav { flex: 1; overflow-y: auto; padding: 10px 10px 20px; scrollbar-width: thin; scrollbar-color: #26345f transparent; }
.sb-group { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; color: #5f6d95; text-transform: uppercase; padding: 16px 10px 6px; }
.sb-link { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; color: var(--nav-text); font-size: 13.5px; font-weight: 500; text-decoration: none !important; position: relative; margin: 1px 0; }
.sb-link:hover { background: rgba(255, 255, 255, .05); color: #e2e8f5; }
.sb-link.on { background: linear-gradient(90deg, rgba(59, 111, 255, .28), rgba(59, 111, 255, .08)); color: var(--nav-active); }
.sb-link.on::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #5b8bff; }
.sb-link .badge { margin-left: auto; }
.sb-user { border-top: 1px solid rgba(255, 255, 255, .06); padding: 12px 14px; display: flex; gap: 10px; align-items: center; }
.sb-user .who { min-width: 0; flex: 1; } .sb-user .who b { color: #fff; font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sb-user .who small { color: #7f8db3; font-size: 11.5px; }
.sb-user .btn { color: var(--nav-text); } .sb-user .btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: var(--topbar-h); background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 24px; position: sticky; top: 0; z-index: 40; }
.topbar .menu-btn { display: none; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; min-width: 0; }
.crumbs b { color: var(--ink); font-weight: 600; }
.top-search { flex: 1; max-width: 420px; margin-left: auto; position: relative; }
.top-search input { height: 36px; padding-left: 36px; background: var(--surface-2); border-color: var(--line); }
.top-search .ic { position: absolute; left: 11px; top: 9px; color: var(--faint); }
.top-search kbd { position: absolute; right: 9px; top: 8px; font: 600 11px var(--font); color: var(--faint); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; background: #fff; }
.search-pop { position: absolute; top: 42px; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; max-height: 420px; overflow: auto; z-index: 60; }
.search-pop .grp { font-size: 11px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px 4px; }
.search-pop a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.search-pop a:hover, .search-pop a.act { background: var(--brand-50); }
.top-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; width: 38px; height: 38px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--line-2); }
.icon-btn .badge { position: absolute; top: 3px; right: 2px; transform: scale(.85); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12.5px; font-weight: 700; color: #fff; flex: none; background: var(--brand); text-transform: uppercase; letter-spacing: .02em; }
.avatar.sm { width: 26px; height: 26px; font-size: 10.5px; } .avatar.xs { width: 22px; height: 22px; font-size: 9.5px; } .avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.content { padding: 24px 28px 48px; max-width: 1480px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); margin-top: 4px; font-size: 13.5px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dropdown { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 300; min-width: 200px; padding: 6px; }
.dropdown .dd-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 7px; font: 500 13.5px var(--font); color: var(--ink-2); cursor: pointer; text-align: left; text-decoration: none !important; }
.dropdown .dd-item:hover { background: var(--line-2); color: var(--ink); }
.dropdown .dd-item.danger { color: var(--red); }
.dropdown .dd-sep { height: 1px; background: var(--line-2); margin: 5px 0; }
.dropdown .dd-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 5px; }

/* notifications */
.notif-pop { width: 380px; padding: 0; overflow: hidden; }
.notif-pop .np-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.notif-list { max-height: 420px; overflow-y: auto; }
.notif { display: flex; gap: 11px; padding: 11px 14px; border-bottom: 1px solid var(--line-2); cursor: pointer; text-decoration: none !important; color: var(--ink); }
.notif:hover { background: var(--surface-2); }
.notif.unread { background: #f7f9ff; }
.notif .n-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--brand-50); color: var(--brand); }
.notif .n-t { font-weight: 600; font-size: 13px; line-height: 1.35; }
.notif .n-b { color: var(--muted); font-size: 12.5px; margin-top: 2px; line-height: 1.4; }
.notif .n-time { color: var(--faint); font-size: 11.5px; margin-top: 3px; }
.notif .n-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-top: 6px; flex: none; }
.np-foot { padding: 9px; text-align: center; background: var(--surface-2); }

/* ---------------- stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--shadow-sm); text-decoration: none !important; color: inherit; transition: border-color .15s, box-shadow .15s; }
a.stat:hover { border-color: var(--brand-200); box-shadow: var(--shadow); }
.stat .s-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.stat .s-v { font-size: 24px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .s-l { color: var(--muted); font-size: 12.5px; font-weight: 500; margin-top: 3px; }
.stat .s-d { font-size: 11.5px; margin-top: 4px; }
.tone-blue { background: var(--brand-50); color: var(--brand); } .tone-green { background: var(--green-50); color: var(--green); } .tone-amber { background: var(--amber-50); color: var(--amber); } .tone-red { background: var(--red-50); color: var(--red); } .tone-violet { background: var(--violet-50); color: var(--violet); } .tone-sky { background: var(--sky-50); color: var(--sky); } .tone-gray { background: var(--line-2); color: var(--muted); }

/* ---------------- tables */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; z-index: 1; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr:hover td { background: #fafbff; }
.tbl tr.click { cursor: pointer; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th.num, .tbl td.num { text-align: right; }
.tbl tfoot td { font-weight: 700; background: var(--surface-2); border-top: 1px solid var(--line); }
.card > .table-wrap .tbl th:first-child { border-top-left-radius: var(--radius-lg); } .card > .table-wrap .tbl th:last-child { border-top-right-radius: var(--radius-lg); }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person .p-n { font-weight: 600; color: var(--ink); line-height: 1.3; }
.person .p-s { color: var(--muted); font-size: 12px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.toolbar .search { position: relative; min-width: 240px; flex: 1; max-width: 360px; }
.toolbar .search input { padding-left: 34px; height: 36px; }
.toolbar .search .ic { position: absolute; left: 10px; top: 9px; color: var(--faint); }
.toolbar select { width: auto; height: 36px; min-width: 150px; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty .e-ic { width: 54px; height: 54px; border-radius: 16px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin: 0 auto 12px; }
.empty h3 { color: var(--ink); margin-bottom: 4px; }

/* ---------------- tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { padding: 10px 14px; font: 500 13.5px var(--font); color: var(--muted); border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; text-decoration: none !important; display: inline-flex; gap: 7px; align-items: center; }
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs .on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

/* ---------------- modal / drawer */
.overlay { position: fixed; inset: 0; background: rgba(12, 22, 49, .45); z-index: 250; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 20px; overflow-y: auto; animation: fade .15s; backdrop-filter: blur(2px); }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); width: 100%; max-width: 560px; animation: pop .18s ease-out; display: flex; flex-direction: column; max-height: 88vh; }
.modal.lg { max-width: 820px; } .modal.xl { max-width: 1060px; } .modal.sm { max-width: 420px; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.modal-head h3 { font-size: 16px; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 10px; background: var(--surface-2); border-radius: 0 0 16px 16px; }
.drawer-ov { position: fixed; inset: 0; background: rgba(12, 22, 49, .35); z-index: 200; animation: fade .15s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(680px, 100vw); background: #fff; z-index: 201; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide .2s ease-out; }
.drawer.wide { width: min(880px, 100vw); }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer-head { padding: 14px 20px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 10px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; }
.drawer-foot { padding: 12px 20px; border-top: 1px solid var(--line-2); display: flex; gap: 10px; justify-content: flex-end; background: var(--surface-2); }

/* toasts */
#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 500; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast { background: var(--nav); color: #fff; padding: 11px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 13.5px; display: flex; gap: 10px; align-items: center; max-width: 420px; animation: pop .2s; }
.toast.success .ic { color: #34d399; } .toast.error { background: #7f1d1d; } .toast.error .ic { color: #fca5a5; }

/* ---------------- dashboard */
.dash-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.hello { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: linear-gradient(120deg, #0b3aa4, #1d4ed8 60%, #3b6fff); color: #fff; border-radius: var(--radius-lg); padding: 22px 26px; position: relative; overflow: hidden; }
.hello::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.hello h1 { color: #fff; font-size: 22px; }
.hello p { color: #d6e1ff; margin: 4px 0 0; }
.hello .btn { position: relative; z-index: 1; }
.clock-card { display: flex; align-items: center; gap: 18px; position: relative; z-index: 1; }
.clock-card .t { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.btn-white { background: #fff; color: var(--brand); border-color: #fff; } .btn-white:hover { background: #eef3ff; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); } .btn-outline-white:hover { background: rgba(255, 255, 255, .1); }
.mini-list > div { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-bottom: 1px solid var(--line-2); }
.mini-list > div:last-child { border-bottom: 0; }
.date-chip { width: 44px; text-align: center; border-radius: 9px; background: var(--brand-50); color: var(--brand); padding: 4px 0; flex: none; }
.date-chip b { display: block; font-size: 16px; line-height: 1.1; } .date-chip small { font-size: 10.5px; font-weight: 700; text-transform: uppercase; }
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 10px; }
.bar-chart .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-chart .b i { width: 100%; max-width: 38px; background: linear-gradient(180deg, #3b6fff, var(--brand)); border-radius: 6px 6px 3px 3px; min-height: 3px; }
.bar-chart .b span { font-size: 11px; color: var(--muted); }
.bar-chart .b em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.donut-wrap { display: flex; align-items: center; gap: 22px; }
.legend { display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.legend div { display: flex; align-items: center; gap: 8px; }
.legend b { margin-left: auto; padding-left: 14px; font-variant-numeric: tabular-nums; }
.progress { height: 7px; background: var(--line-2); border-radius: 5px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--brand); border-radius: 5px; }
.setup-list a { display: flex; align-items: center; gap: 10px; padding: 10px 20px; color: var(--ink-2); border-bottom: 1px solid var(--line-2); text-decoration: none !important; }
.setup-list a:hover { background: var(--surface-2); }
.setup-list .ok { color: var(--green); } .setup-list .todo { color: var(--amber); }
.announce { padding: 13px 20px; border-bottom: 1px solid var(--line-2); }
.announce:last-child { border-bottom: 0; }
.announce h4 { display: flex; align-items: center; gap: 6px; }
.announce p { color: var(--ink-2); font-size: 13px; margin: 4px 0; white-space: pre-line; }

/* ---------------- tasks (Todoist-style) */
.tasks-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.tnav { position: sticky; top: calc(var(--topbar-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 10px; max-height: calc(100vh - var(--topbar-h) - 40px); overflow-y: auto; }
.tnav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); font-size: 13.5px; text-decoration: none !important; }
.tnav a:hover { background: var(--line-2); }
.tnav a.on { background: var(--brand-50); color: var(--brand); font-weight: 600; }
.tnav a .cnt { margin-left: auto; font-size: 12px; color: var(--faint); font-weight: 500; }
.tnav a.on .cnt { color: var(--brand); }
.tnav .tg { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .07em; padding: 14px 10px 5px; }
.tnav .tg button { border: 0; background: none; color: var(--faint); cursor: pointer; border-radius: 5px; width: 22px; height: 22px; display: grid; place-items: center; }
.tnav .tg button:hover { background: var(--line-2); color: var(--brand); }
.quick-add { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 4px 4px 14px; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.quick-add:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.quick-add input { border: 0 !important; box-shadow: none !important; padding: 0; height: 40px; background: transparent; }
.qa-hint { font-size: 12px; color: var(--faint); margin: 6px 4px 0; display: flex; gap: 12px; flex-wrap: wrap; }
.qa-hint b { color: var(--muted); font-weight: 600; }
.qa-preview { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 4px 0; }
.task-group { margin-top: 20px; }
.task-group > h4 { display: flex; align-items: center; gap: 8px; padding: 0 4px 8px; border-bottom: 1px solid var(--line); font-size: 13px; }
.task-group > h4 .c { color: var(--faint); font-weight: 500; }
.task-group > h4.overdue { color: var(--red); }
.task { display: flex; gap: 12px; align-items: flex-start; padding: 11px 6px; border-bottom: 1px solid var(--line-2); cursor: pointer; border-radius: 6px; }
.task:hover { background: #fff; box-shadow: 0 0 0 1px var(--line); }
.tcheck { width: 19px; height: 19px; border-radius: 50%; border: 2px solid var(--p4); background: transparent; flex: none; cursor: pointer; margin-top: 1px; display: grid; place-items: center; color: transparent; transition: background .15s; padding: 0; }
.tcheck:hover { color: currentColor; }
.tcheck .ic { width: 11px; height: 11px; stroke-width: 3.2; }
.tcheck.p1 { border-color: var(--p1); background: rgba(209, 69, 59, .08); color: transparent; } .tcheck.p1:hover { color: var(--p1); }
.tcheck.p2 { border-color: var(--p2); background: rgba(235, 137, 9, .08); } .tcheck.p2:hover { color: var(--p2); }
.tcheck.p3 { border-color: var(--p3); background: rgba(36, 111, 224, .08); } .tcheck.p3:hover { color: var(--p3); }
.tcheck.p4:hover { color: var(--p4); }
.tcheck.done { background: var(--muted); border-color: var(--muted); color: #fff; }
.task .t-main { flex: 1; min-width: 0; }
.task .t-title { font-size: 14px; color: var(--ink); line-height: 1.4; word-wrap: break-word; }
.task.is-done .t-title { text-decoration: line-through; color: var(--faint); }
.task .t-desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task .t-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 5px; font-size: 12px; color: var(--muted); align-items: center; }
.task .t-meta span { display: inline-flex; align-items: center; gap: 4px; }
.task .t-proj { margin-left: auto; font-size: 12px; color: var(--muted); display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }
.due-overdue { color: var(--red) !important; } .due-today { color: var(--green) !important; } .due-tomorrow { color: var(--amber) !important; } .due-week { color: var(--violet) !important; }
.lbl { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; }
.board { display: grid; grid-template-columns: repeat(4, minmax(210px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 10px; align-items: start; }
.bcol { background: #eef1f7; border-radius: 12px; padding: 10px; min-height: 200px; }
.bcol h4 { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; font-size: 13px; }
.bcol.drag-over { background: var(--brand-50); box-shadow: inset 0 0 0 2px var(--brand-200); }
.bcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; margin-bottom: 8px; cursor: grab; box-shadow: var(--shadow-sm); }
.bcard:hover { border-color: var(--brand-200); }
.bcard.dragging { opacity: .5; }
.bcard .t-title { font-size: 13.5px; font-weight: 500; }
.bcard .t-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); margin-top: 8px; align-items: center; }
.prio-flag { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-size: 11.5px; }
.prio-flag.p1 { color: var(--p1); } .prio-flag.p2 { color: var(--p2); } .prio-flag.p3 { color: var(--p3); } .prio-flag.p4 { color: var(--p4); }
.tdetail .t-title-input { font-size: 19px; font-weight: 650; border: 1px solid transparent; padding: 4px 8px; margin-left: -8px; height: auto; }
.tdetail .t-title-input:hover { border-color: var(--line); }
.tprops { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 14px; align-items: center; font-size: 13px; margin: 16px 0; }
.tprops > span { color: var(--muted); font-weight: 500; }
.subtask { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.comment { display: flex; gap: 10px; padding: 10px 0; }
.comment .c-b { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 12px; flex: 1; white-space: pre-wrap; font-size: 13.5px; }
.activity { font-size: 12px; color: var(--muted); padding: 4px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; background: #fff; cursor: pointer; user-select: none; }
.chip.on { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand); }
.color-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.color-dots button { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.color-dots button.on { box-shadow: 0 0 0 2px var(--ink); }

/* ---------------- photo comments */
.c-form.drag { outline: 2px dashed var(--brand); outline-offset: 4px; border-radius: 10px; background: var(--brand-50); }
.photo-queue { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.photo-queue:empty { display: none; }
.pq { position: relative; width: 92px; }
.pq img { width: 92px; height: 70px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.pq span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pq button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; }
.pq button .ic { width: 12px; height: 12px; }
.c-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.c-photo { padding: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; width: 116px; height: 88px; cursor: zoom-in; background: var(--surface-2); transition: transform .15s, box-shadow .15s; }
.c-photo:hover { transform: translateY(-1px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.c-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hover-preview { position: fixed; z-index: 600; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; pointer-events: none; animation: fade .12s; }
.hover-preview img { width: 100%; max-height: 380px; object-fit: contain; display: block; border-radius: 8px; background: var(--surface-2); }
.hover-preview .hp-cap { font-size: 11px; color: var(--muted); text-align: center; padding: 4px 0 2px; }
.lightbox { position: fixed; inset: 0; z-index: 700; background: rgba(8, 12, 28, .92); display: grid; place-items: center; animation: fade .15s; }
.lightbox .lb-img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox .lb-top { position: absolute; top: 0; left: 0; right: 0; display: flex; gap: 8px; align-items: center; padding: 12px 16px; color: #e2e8f5; font-size: 13px; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox .lb-nav:hover { background: rgba(255,255,255,.22); }
.lightbox .lb-nav.l { left: 18px; } .lightbox .lb-nav.r { right: 18px; }

/* ---------------- attendance */
.att-status { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.att-status button { border: 1px solid var(--line); background: #fff; height: 30px; min-width: 38px; padding: 0 9px; border-radius: 7px; font: 600 12px var(--font); color: var(--muted); cursor: pointer; }
.att-status button:hover { border-color: #c8d1e3; color: var(--ink); }
.att-status button.on.present { background: var(--green); border-color: var(--green); color: #fff; }
.att-status button.on.half_day { background: var(--amber); border-color: var(--amber); color: #fff; }
.att-status button.on.absent { background: var(--red); border-color: var(--red); color: #fff; }
.att-status button.on.paid_leave { background: var(--violet); border-color: var(--violet); color: #fff; }
.att-status button.on.unpaid_leave { background: #9f1239; border-color: #9f1239; color: #fff; }
.att-status button.on.week_off, .att-status button.on.holiday { background: #64748b; border-color: #64748b; color: #fff; }
.reg-wrap { overflow: auto; max-height: calc(100vh - 260px); }
table.reg { border-collapse: separate; border-spacing: 0; font-size: 12px; }
.reg th, .reg td { border-bottom: 1px solid var(--line-2); border-right: 1px solid var(--line-2); text-align: center; padding: 0; height: 34px; min-width: 32px; }
.reg th { background: var(--surface-2); position: sticky; top: 0; z-index: 2; font-weight: 600; color: var(--muted); font-size: 11px; line-height: 1.15; padding: 4px 2px; }
.reg th.we, .reg td.we { background: #f3f4f7; }
.reg th.hol, .reg td.hol { background: #fdf4ff; }
.reg th.today { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); }
.reg .emp { position: sticky; left: 0; background: #fff; z-index: 1; text-align: left; padding: 0 12px; min-width: 200px; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; font-size: 12.5px; }
.reg th.emp { z-index: 3; background: var(--surface-2); }
.reg td.sum { font-weight: 600; min-width: 42px; background: var(--surface-2); font-variant-numeric: tabular-nums; }
.cell { width: 100%; height: 100%; border: 0; background: transparent; font: 700 11px var(--font); cursor: pointer; display: grid; place-items: center; }
.cell:disabled { cursor: default; }
.cell.s-present { color: var(--green); } .cell.s-half_day { color: var(--amber); } .cell.s-absent { color: var(--red); background: var(--red-50); } .cell.s-paid_leave { color: var(--violet); background: var(--violet-50); } .cell.s-unpaid_leave { color: #9f1239; background: #fff1f2; } .cell.s-holiday { color: #a21caf; } .cell.s-week_off { color: var(--faint); }
.cell.late::after { content: ""; position: absolute; }
.legend-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend-row span { display: inline-flex; gap: 5px; align-items: center; }
.legend-row b { font-size: 11px; }
.cal-month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-month .dow { text-align: center; font-size: 11.5px; font-weight: 600; color: var(--faint); padding-bottom: 4px; }
.cal-day { min-height: 74px; border: 1px solid var(--line-2); border-radius: 9px; padding: 6px 8px; background: #fff; font-size: 12px; display: flex; flex-direction: column; gap: 3px; }
.cal-day .d { font-weight: 600; color: var(--ink-2); }
.cal-day.blank { background: transparent; border-color: transparent; }
.cal-day.today { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.cal-day.nw { background: #f7f8fb; }
.cal-day .tm { color: var(--muted); font-size: 11px; }
.checkin-card { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.checkin-card .big { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* ---------------- employee profile */
.profile-head { display: flex; gap: 18px; align-items: center; padding: 22px 24px; }
.profile-head h2 { font-size: 21px; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px 24px; }
.kv > div span { display: block; font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.kv > div b { font-weight: 500; color: var(--ink); word-break: break-word; }
.salary-table td { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.salary-table tr:last-child td { border-bottom: 0; }
.salary-table td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; padding-left: 16px; }
.salary-table tr.tot td { font-weight: 700; border-top: 1px solid var(--line); border-bottom: 0; }
.secret-box { background: var(--nav); color: #fff; border-radius: 10px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 600 18px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .05em; }

/* payroll */
.run-steps { display: flex; align-items: center; gap: 0; margin: 4px 0 18px; }
.run-steps .st { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); font-weight: 500; }
.run-steps .st i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); font-style: normal; font-size: 12px; font-weight: 700; background: #fff; }
.run-steps .st.done { color: var(--green); } .run-steps .st.done i { background: var(--green); border-color: var(--green); color: #fff; }
.run-steps .st.cur { color: var(--brand); } .run-steps .st.cur i { border-color: var(--brand); color: var(--brand); }
.run-steps .ln { width: 60px; height: 2px; background: var(--line); margin: 0 12px; }
.run-steps .ln.done { background: var(--green); }
.money-big { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
iframe.doc-frame { width: 100%; height: 72vh; border: 1px solid var(--line); border-radius: 10px; background: #eef2f7; }

/* settings */
.settings-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; align-items: start; }
.snav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px; position: sticky; top: calc(var(--topbar-h) + 20px); }
.snav a { display: flex; gap: 10px; align-items: center; padding: 8px 11px; border-radius: 8px; color: var(--ink-2); font-size: 13.5px; text-decoration: none !important; }
.snav a:hover { background: var(--line-2); }
.snav a.on { background: var(--brand-50); color: var(--brand); font-weight: 600; }
.snav .sg { font-size: 10.5px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; padding: 12px 11px 4px; }
.logo-box { width: 150px; height: 90px; border: 1px dashed #cbd3e3; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); overflow: hidden; }
.logo-box img { max-width: 90%; max-height: 80%; object-fit: contain; }
.danger-zone { border-color: #fecaca; }
.danger-zone .card-head { background: var(--red-50); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

/* ---------------- responsive */
@media (max-width: 1180px) { .dash-grid { grid-template-columns: 1fr; } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; transform: translateX(-100%); transition: transform .2s; }
  .shell.nav-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .shell.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(12, 22, 49, .4); z-index: 45; }
  .topbar .menu-btn { display: grid; }
  .tasks-layout, .settings-layout { grid-template-columns: 1fr; }
  .tnav, .snav { position: static; max-height: none; }
  .auth { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-logo-m { display: flex; }
}
@media (max-width: 720px) {
  .content { padding: 16px 14px 40px; }
  .topbar { padding: 0 12px; } .top-search kbd, .crumbs { display: none; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; } .span2, .span3 { grid-column: auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .stat { padding: 12px; gap: 10px; flex-direction: column; } .stat .s-v { font-size: 20px; }
  .dash-grid .grid.g2 { grid-template-columns: 1fr; }
  .page-head { align-items: flex-start; }
  .hello { flex-direction: column; align-items: flex-start; }
  .notif-pop { width: calc(100vw - 24px); }
  .tprops { grid-template-columns: 1fr; }
  .modal-body { padding: 16px; }
}
@media print {
  .sidebar, .topbar, .page-head .actions, .no-print { display: none !important; }
  .shell { display: block; } .content { padding: 0; } .card { box-shadow: none; }
}

/* ---------------- AI assistant */
.ai-fab { position: fixed; right: 22px; bottom: 22px; z-index: 150; width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; display: grid; place-items: center;
  background: linear-gradient(135deg, #7c3aed, #0b3aa4 60%, #1d4ed8); box-shadow: 0 10px 28px rgba(11, 58, 164, .38); transition: transform .15s, box-shadow .15s; }
.ai-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 34px rgba(11, 58, 164, .45); }
.ai-fab .ic { width: 24px; height: 24px; }
.ai-fab.on { transform: rotate(12deg); }
.ai-fab::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(124, 58, 237, .35); animation: aipulse 2.6s ease-out infinite; }
.ai-fab.on::after { display: none; }
@keyframes aipulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
body.has-ai-fab #toasts { bottom: 92px; }
.ai-panel { position: fixed; right: 22px; bottom: 88px; z-index: 160; width: 410px; height: min(640px, calc(100vh - 120px)); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; animation: pop .18s ease-out; }
.ai-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line-2); background: linear-gradient(180deg, #f7f5ff, #fff); }
.ai-head .xs { color: var(--muted); }
.ai-logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #7c3aed, #0b3aa4); flex: none; }
.ai-logo.sm { width: 26px; height: 26px; border-radius: 8px; } .ai-logo.sm .ic { width: 14px; height: 14px; }
.ai-logo.lg { width: 52px; height: 52px; border-radius: 15px; margin: 0 auto 10px; } .ai-logo.lg .ic { width: 26px; height: 26px; }
.ai-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--surface-2); }
.ai-welcome { text-align: center; padding: 18px 6px; }
.ai-welcome h3 { margin-bottom: 4px; }
.ai-sugs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.ai-sugs .chip { font-size: 12.5px; }
.ai-sugs .chip:hover { border-color: var(--brand-200); color: var(--brand); }
.ai-msg { display: flex; gap: 8px; align-items: flex-start; max-width: 100%; }
.ai-msg.me { justify-content: flex-end; }
.ai-msg .ai-b { padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; max-width: 86%; overflow-wrap: anywhere; }
.ai-msg.me .ai-b { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.ai-msg.bot .ai-b { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ai-msg.err .ai-b { background: var(--red-50); border-color: #fecaca; color: #991b1b; }
.ai-b p { margin: 0 0 6px; } .ai-b p:last-child { margin-bottom: 0; }
.ai-b ul, .ai-b ol { margin: 4px 0 6px; padding-left: 18px; } .ai-b li { margin: 2px 0; }
.ai-b code { font-size: 12px; }
.ai-table { border-collapse: collapse; margin: 6px 0; font-size: 12.5px; width: 100%; }
.ai-table th, .ai-table td { border: 1px solid var(--line); padding: 4px 6px; text-align: left; }
.ai-table th { background: var(--surface-2); }
.ai-dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.ai-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: aidot 1s infinite; }
.ai-dots i:nth-child(2) { animation-delay: .15s; } .ai-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes aidot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.ai-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line-2); align-items: flex-end; }
.ai-input textarea { min-height: 40px; height: 40px; resize: none; padding: 9px 12px; border-radius: 12px; }
.ai-input .btn { height: 40px; width: 40px; border-radius: 12px; }

/* ---------------- live activity */
.live-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.live-dot.active { background: var(--green); box-shadow: 0 0 0 3px rgba(5, 150, 105, .15); }
.live-dot.away { background: var(--amber); box-shadow: 0 0 0 3px rgba(217, 119, 6, .15); }
.live-dot.offline, .live-dot.null { background: #cbd5e1; }
.away-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--green-50); min-width: 120px; }
.away-bar i { background: var(--amber); }
.track-note { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }

@media (max-width: 720px) {
  .ai-panel { right: 0; left: 0; bottom: 0; width: auto; height: 100%; border-radius: 0; }
  .ai-fab { right: 14px; bottom: 14px; width: 50px; height: 50px; }
}
@media print { .ai-fab, .ai-panel { display: none !important; } }

/* ---------------- native mobile app (Capacitor) */
.is-app .topbar { padding-top: env(safe-area-inset-top); height: calc(var(--topbar-h) + env(safe-area-inset-top)); }
.is-app .sidebar { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
.is-app .ai-fab { bottom: calc(14px + env(safe-area-inset-bottom)); }
.is-app .auth-main { padding-top: calc(40px + env(safe-area-inset-top)); }
.is-app .drawer { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
.is-app .lightbox .lb-top { padding-top: calc(12px + env(safe-area-inset-top)); }
.is-app .top-search kbd, .is-app .secure-note { display: none; }
.is-app body, .is-app { -webkit-tap-highlight-color: transparent; }

/* ---------------- 2.3 password vault */
.lock-btn .ic { color: var(--muted); }
.lock-btn.on { background: var(--green-50); color: var(--green); border-color: #a7f3d0; }
.lock-btn.on .ic { color: var(--green); }
.app-tile { width: 34px; height: 34px; border-radius: 9px; display: inline-grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; flex: none; box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
.app-tile.sm { width: 26px; height: 26px; font-size: 12px; border-radius: 7px; }
.vtool { padding: 0 0 14px; border: 0; }
.search-in { position: relative; max-width: 420px; }
.search-in .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search-in input { padding-left: 34px; }
.vgroup { margin-bottom: 14px; overflow: hidden; }
.vg-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line-2); }
.vrow { display: grid; grid-template-columns: minmax(160px, 1.3fr) auto minmax(140px, 1.4fr) 90px; gap: 14px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line-2); cursor: pointer; transition: background .12s; }
.vrow:last-child { border-bottom: 0; }
.vrow:hover { background: #fafbff; }
.vr-t { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vr-s { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vr-pw { display: flex; align-items: center; gap: 4px; }
.vr-pw .mono { letter-spacing: .12em; margin-right: 4px; }
.vr-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.vr-tags .pill .ic { width: 12px; height: 12px; }
.vr-who { display: flex; justify-content: flex-end; align-items: center; }
.vr-who .avatar { margin-left: -6px; box-shadow: 0 0 0 2px #fff; }
.vdetail .vfield { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.vdetail .vfield > span { color: var(--muted); font-size: 12.5px; }
.vdetail .vval { overflow-wrap: anywhere; min-height: 30px; display: flex; align-items: center; }
.vflags { padding: 6px 0 4px 160px; flex-wrap: wrap; }
.prewrap { white-space: pre-wrap; }
.share-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); }
.share-form { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-top: 12px; }
.steps-mini { display: grid; gap: 8px; }
.steps-mini div { display: flex; gap: 10px; align-items: center; }
.steps-mini b { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: 12px; flex: none; }

/* ---------------- 2.3 notes → to-do */
.notes-wrap { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.note-list { display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 220px); overflow-y: auto; padding-right: 2px; }
.note-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--nc, var(--line)); border-radius: var(--radius); padding: 10px 12px; cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.note-card:hover { border-color: var(--brand-200); border-left-color: var(--nc, var(--brand-200)); }
.note-card.on { box-shadow: 0 0 0 2px var(--brand-100); border-color: var(--brand-200); }
.note-card .nt { font-weight: 600; display: flex; gap: 6px; align-items: center; }
.note-card .np { color: var(--muted); font-size: 12.5px; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.note-card .nm { font-size: 11.5px; color: var(--faint); margin-top: 6px; display: flex; gap: 8px; }
.note-editor { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.note-editor .ne-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.note-editor .ne-title { flex: 1; border: 0; font: 650 18px var(--font); padding: 4px 0; background: none; box-shadow: none; }
.note-editor .ne-title:focus { outline: none; box-shadow: none; }
.note-editor textarea.ne-body { border: 0; border-radius: 0; min-height: 340px; padding: 16px 18px; font-size: 14.5px; line-height: 1.75; resize: vertical; box-shadow: none; background: repeating-linear-gradient(#fff, #fff 24.5px, #f4f6fb 25.5px); background-attachment: local; }
.note-editor textarea.ne-body:focus { outline: none; box-shadow: none; }
.note-editor .ne-foot { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line-2); background: var(--surface-2); flex-wrap: wrap; }
.color-dots.sm button { width: 16px; height: 16px; }
.conv-row { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.conv-row input[type=text] { height: 34px; }
.conv-row .qa-preview { margin: 4px 0 0; min-height: 0; }
.conv-row.off input[type=text] { opacity: .5; }
@media (max-width: 980px) {
  .notes-wrap { grid-template-columns: 1fr; }
  .note-list { max-height: 240px; }
  .vrow { grid-template-columns: minmax(0, 1fr) auto; }
  .vr-tags { grid-column: 1 / -1; } .vr-who { display: none; }
}
@media (max-width: 720px) {
  .vdetail .vfield { grid-template-columns: 1fr; gap: 2px; } .vflags { padding-left: 0; }
}

/* ---------------- 2.4 shift rota */
.rc, .shift-chip { display: inline-grid; place-items: center; min-width: 40px; height: 24px; padding: 0 6px; border-radius: 6px; font: 700 11px var(--font); letter-spacing: .03em; color: #fff; background: var(--sc, var(--brand)); white-space: nowrap; }
.rc.dflt { background: color-mix(in srgb, var(--sc) 14%, #fff); color: var(--sc); border: 1px dashed color-mix(in srgb, var(--sc) 45%, #fff); }
.rc.off, .shift-chip.off { background: var(--line-2); color: var(--muted); }
.rc.nw { background: transparent; color: var(--faint); border: 1px dashed var(--line); }
.rota-tools { flex-wrap: wrap; }
.brush-bar { gap: 6px; flex-wrap: wrap; background: var(--surface-2); }
.brush { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 9px; font: 500 12px var(--font); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; color: var(--ink-2); }
.brush b { display: inline-grid; place-items: center; min-width: 30px; height: 18px; border-radius: 5px; background: var(--sc, var(--line-2)); color: #fff; font-size: 10.5px; padding: 0 4px; }
.brush[data-brush=off] b, .brush[data-brush=default] b { color: var(--muted); }
.brush.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-100); }
.rota-wrap { max-height: calc(100vh - 330px); }
.tbl.rota th, .tbl.rota td { padding: 6px 6px; text-align: center; }
.tbl.rota th.emp, .tbl.rota td.emp { text-align: left; position: sticky; left: 0; background: #fff; z-index: 2; min-width: 200px; padding-left: 14px; }
.tbl.rota thead th.emp { background: var(--surface-2); z-index: 3; }
.tbl.rota th small { font-weight: 500; color: var(--faint); text-transform: none; letter-spacing: 0; }
.tbl.rota th.nwd, .tbl.rota td.nwd { background: #fafbfd; }
.tbl.rota th.today, .tbl.rota td.today { background: var(--brand-50); }
.rcell { cursor: pointer; user-select: none; min-width: 58px; transition: background .1s; }
.rcell:hover { background: #eef3ff !important; }
.rcell[data-ro] { cursor: default; }
.rcell.changed { box-shadow: inset 0 0 0 2px var(--amber); }
.rc-leave { font-size: 10px; color: var(--violet); font-weight: 600; margin-top: 2px; }
.my-shifts { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; padding: 14px 18px; }
.my-shifts .ms { border: 1px solid var(--line); border-radius: 10px; padding: 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.my-shifts .ms.today { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-100); }
.my-shifts .ms.off { background: var(--surface-2); }

/* ---------------- 2.4 time tracker & timesheet */
.timer-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid #fecaca; background: var(--red-50); color: var(--red); cursor: pointer; font: 500 12.5px var(--font); max-width: 280px; }
.timer-chip .tc-t { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.timer-chip .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.timer-btn.on { background: var(--red-50); color: var(--red); border-color: #fecaca; }
.ts-grid th.today, .ts-grid td.today { background: var(--brand-50); }
.progress.warn i { background: var(--amber); }

/* ---------------- 2.4 assets */
.asset-ic { width: 32px; height: 32px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--brand-50); color: var(--brand); flex: none; }
.asset-ic.lg { width: 42px; height: 42px; border-radius: 11px; }
.asset-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.asg { padding: 10px 0; border-bottom: 1px dashed var(--line-2); }

/* ---------------- 2.4 performance */
.goal-list { padding: 4px 18px 12px; }
.goal { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.goal:last-child { border-bottom: 0; }
.goal .g-t { cursor: pointer; } .goal .g-t:hover { color: var(--brand); }
.goal .progress { flex: 1; }
.g-w { text-align: right; min-width: 56px; }
.rate { display: inline-flex; gap: 4px; margin: 4px 0 6px; }
.rate button { width: 34px; height: 30px; border: 1px solid var(--line); background: #fff; border-radius: 7px; font: 600 13px var(--font); color: var(--ink-2); cursor: pointer; }
.rate button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.rate.ro button { cursor: default; opacity: .9; }
.rate.ro button:not(.on) { color: var(--faint); }
.rv-goal { padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.rv-goal:last-child { border-bottom: 0; }
.rv-col { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.rv-col.mgr { background: var(--violet-50); }
.rv-col textarea { margin-top: 4px; }
.steps { display: flex; gap: 0; border-top: 1px solid var(--line-2); }
.steps > div { flex: 1; display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-size: 12.5px; color: var(--faint); font-weight: 500; }
.steps > div span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); font-size: 11.5px; font-weight: 700; }
.steps > div.done { color: var(--green); } .steps > div.done span { background: var(--green); color: #fff; }
.steps > div.cur { color: var(--brand); font-weight: 650; } .steps > div.cur span { background: var(--brand); color: #fff; }
.cycle-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
@media (max-width: 720px) {
  .my-shifts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { flex-wrap: wrap; } .steps > div { flex: 1 1 45%; padding: 8px 10px; }
  .timer-chip .tc-t { display: none; }
}
.kv b .pill { width: auto; margin-left: 6px; vertical-align: middle; }

/* =====================================================================
   3.0 SaaS — banners, billing, plans, platform console
   ===================================================================== */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 4px 0; flex-wrap: wrap; }
.sys-banner { display: flex; align-items: center; gap: 10px; padding: 9px 24px; font-size: 13px; font-weight: 500; border-bottom: 1px solid; flex-wrap: wrap; }
.sys-banner .grow { min-width: 200px; }
.sys-banner.support { background: #7f1d1d; color: #fff; border-color: #450a0a; }
#banners { position: sticky; top: var(--topbar-h); z-index: 39; }
.sys-banner.support .btn { background: #fff; color: #7f1d1d; border-color: #fff; }
.sys-banner.warn { background: var(--amber-50); color: #92400e; border-color: #fde68a; }
.sys-banner.danger { background: var(--red-50); color: #991b1b; border-color: #fecaca; }
.sys-banner.info { background: var(--brand-50); color: #1e3a8a; border-color: var(--brand-100); }
.sys-banner a { font-weight: 600; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; background: #fff; display: flex; flex-direction: column; gap: 10px; position: relative; }
.plan.current { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.plan .price { font-size: 26px; font-weight: 750; letter-spacing: -.02em; }
.plan .price small { font-size: 13px; color: var(--muted); font-weight: 500; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--ink-2); }
.plan li { display: flex; gap: 6px; align-items: flex-start; } .plan li .ic { color: var(--green); margin-top: 1px; }
.plan .tag { position: absolute; top: -10px; right: 14px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.sub-hero { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.sub-hero > div { padding: 16px 18px; border-right: 1px solid var(--line-2); }
.sub-hero > div:last-child { border-right: 0; }
.sub-hero .k { font-size: 12px; color: var(--muted); font-weight: 500; }
.sub-hero .v { font-size: 18px; font-weight: 700; margin-top: 3px; }
.sim-pay { border: 2px dashed #f59e0b; background: #fffbeb; border-radius: var(--radius); padding: 12px 14px; color: #92400e; font-size: 13px; }
.pay-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pay-methods label { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: flex; gap: 8px; align-items: center; cursor: pointer; font-weight: 500; }
.pay-methods input:checked + span { color: var(--brand); }
.pay-methods label:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.locked-screen { min-height: 100vh; display: grid; place-items: center; background: var(--bg); padding: 24px; }
.locked-screen .card { max-width: 520px; padding: 28px; text-align: center; }
.pmatrix th, .pmatrix td { text-align: center; } .pmatrix td:first-child, .pmatrix th:first-child { text-align: left; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 16px; }
.feat-grid label { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 4px 0; }
.feat-group { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin: 12px 0 4px; grid-column: 1 / -1; }
.qr-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: inline-block; }
.qr-box svg { display: block; width: 180px; height: 180px; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.codes span { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; text-align: center; }
.audit-detail { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; color: var(--ink-2); overflow-wrap: anywhere; min-width: 260px; max-width: 520px; }
.legend-inline { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 12.5px; }
.legend-inline span { display: inline-flex; gap: 6px; align-items: center; } .legend-inline i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input, .toolbar select { height: 36px; }
.toolbar input[type=search] { min-width: 220px; }
.badge-sim { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 5px; letter-spacing: .03em; }
.pf-shell .sidebar { background: #0a1129; }
.pf-shell .sb-brand small { color: #fbbf24; }
.env-pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; letter-spacing: .04em; }
.env-pill.sim { background: #fef3c7; color: #92400e; } .env-pill.test { background: #dbeafe; color: #1e40af; } .env-pill.live { background: #dcfce7; color: #166534; }
@media (max-width: 900px) { .sub-hero { grid-template-columns: 1fr 1fr; } .sub-hero > div { border-bottom: 1px solid var(--line-2); } .pay-methods { grid-template-columns: 1fr; } }
.kv b .pill { display: inline-flex; width: auto; margin-left: 0; vertical-align: middle; }

/* =====================================================================
   3.1 · Team Chat
   ===================================================================== */
.content.chat-content { max-width: none; padding: 16px 20px 0; }
.chat { display: grid; grid-template-columns: 330px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; min-height: 440px; }
.chat-side { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--surface); }
.chat-side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 16px 10px; }
.chat-side-head h2 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.chat-search { position: relative; margin: 0 14px 10px; }
.chat-search > svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.chat-search input { padding-left: 34px; height: 36px; background: var(--surface-2); border-color: var(--line); }
.chat-search.in-modal { margin: 4px 0 10px; }
.chat-alerts { margin: 0 14px 10px; padding: 8px 10px; border: 1px dashed var(--brand-200); background: var(--brand-50); color: var(--brand); border-radius: 8px; font: 500 12.5px var(--font); display: flex; align-items: center; gap: 8px; cursor: pointer; text-align: left; }
.chat-list { flex: 1; overflow-y: auto; padding: 0 8px 10px; min-height: 0; }
.chat-list-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 40px 20px; color: var(--muted); }
.chat-list-empty svg { color: var(--brand-200); }
.chat-item { display: flex; gap: 11px; align-items: center; padding: 10px; border-radius: 10px; color: inherit; text-decoration: none !important; }
.chat-item:hover { background: var(--surface-2); }
.chat-item.on { background: var(--brand-50); }
.chat-item .avatar { width: 42px; height: 42px; font-size: 14px; }
.ci-body { min-width: 0; flex: 1; }
.ci-top, .ci-bot { display: flex; align-items: center; gap: 6px; }
.ci-top b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; font-weight: 600; }
.ci-time { font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.ci-prev { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.8px; color: var(--muted); }
.chat-item.unread .ci-top b { font-weight: 700; } .chat-item.unread .ci-prev { color: var(--ink-2); font-weight: 500; } .chat-item.unread .ci-time { color: var(--brand); font-weight: 600; }
.ci-bot .badge { background: var(--brand); } .ci-bot .badge.muted { background: var(--faint); }
.ci-muted { color: var(--faint); display: inline-flex; position: relative; } .ci-muted::after { content: ""; position: absolute; left: 50%; top: -1px; bottom: -1px; width: 1.5px; background: currentColor; transform: rotate(-45deg); }
.avatar.grp { background: linear-gradient(135deg, #3b6fff, #0b3aa4); }

.chat-main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #f6f8fc; background-image: radial-gradient(rgba(11, 58, 164, .045) 1px, transparent 1px); background-size: 18px 18px; }
.chat-empty { flex: 1; display: grid; place-items: center; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); min-height: 62px; }
.chat-head-who { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0; border: 0; background: none; padding: 4px 6px; border-radius: 8px; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.chat-head-who:hover { background: var(--surface-2); }
.chat-head-who div { min-width: 0; } .chat-head-who b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .chat-head-who small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head-act { display: flex; gap: 2px; }
.chat-head-act .is-muted { color: var(--faint); position: relative; } .chat-head-act .is-muted::after { content: ""; position: absolute; left: 50%; top: 9px; bottom: 9px; width: 2px; background: currentColor; transform: rotate(-45deg); }
.chat-back { display: none; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px 18px 8px; min-height: 0; scroll-behavior: auto; }
.chat-older { text-align: center; padding: 4px 0 10px; }
.chat-start, .chat-first { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 10px 14px; text-align: center; }
.chat-first { padding-top: 12vh; }
.chat-start .avatar { width: 46px; height: 46px; }
.cm-day { text-align: center; margin: 14px 0 10px; position: sticky; top: 0; z-index: 2; }
.cm-day span { display: inline-block; padding: 3px 12px; border-radius: 999px; background: rgba(255,255,255,.96); border: 1px solid var(--line); font-size: 11.5px; font-weight: 600; color: var(--muted); box-shadow: var(--shadow-sm); }
.cm-sys { text-align: center; margin: 8px 0; } .cm-sys span { display: inline-block; padding: 4px 12px; border-radius: 8px; background: #fff7e6; color: #8a5a00; font-size: 12px; border: 1px solid #fde7b5; }
.cm { display: flex; align-items: flex-end; gap: 8px; margin-top: 8px; position: relative; }
.cm.cont { margin-top: 2px; }
.cm.me { flex-direction: row-reverse; }
.cm-av { width: 26px; flex: none; }
.cm-bubble { max-width: min(560px, 74%); background: #fff; border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 7px 11px 5px; box-shadow: 0 1px 1px rgba(15, 23, 42, .04); min-width: 64px; }
.cm.cont .cm-bubble { border-radius: 14px; }
.cm.me .cm-bubble { background: #dfe9ff; border-color: #c7d7fb; border-radius: 14px 4px 14px 14px; }
.cm.me.cont .cm-bubble { border-radius: 14px; }
.cm-bubble.media { padding: 3px; }
.cm-bubble.media .cm-meta { position: absolute; right: 12px; bottom: 8px; background: rgba(15, 23, 42, .55); color: #fff; padding: 1px 7px; border-radius: 9px; }
.cm-bubble.media .cm-meta .cm-tick { color: #fff; } .cm-bubble.media .cm-meta .cm-tick.seen { color: #9fd0ff; }
.cm.me .cm-bubble.media, .cm .cm-bubble.media { position: relative; }
.cm-from { font-size: 12px; font-weight: 700; color: var(--brand); margin-bottom: 2px; }
.cm-text { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; font-size: 14px; line-height: 1.45; color: var(--ink); }
.cm-text a { color: var(--brand); text-decoration: underline; }
.cm-meta { font-size: 10.8px; color: var(--faint); text-align: right; margin-top: 2px; white-space: nowrap; }
.cm.me .cm-meta { color: #6a7fa8; }
.cm-tick { margin-left: 4px; letter-spacing: -3px; font-weight: 700; } .cm-tick.seen { color: #1d7bf0; }
.cm-del { color: var(--muted); font-style: italic; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.cm-quote { display: block; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--brand); background: rgba(11, 58, 164, .06); border-radius: 6px; padding: 5px 9px; margin: 2px 0 5px; cursor: pointer; font: inherit; }
.cm-quote b { display: block; font-size: 11.5px; color: var(--brand); } .cm-quote span { display: block; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px; }
.cm-imgs { display: grid; gap: 3px; margin: 2px 0 4px; border-radius: 11px; overflow: hidden; width: min(340px, 62vw); }
.cm-imgs.n1 { grid-template-columns: 1fr; } .cm-imgs.n2 { grid-template-columns: 1fr 1fr; } .cm-imgs.n3 { grid-template-columns: 1fr 1fr; } .cm-imgs.n3 .cm-img:first-child { grid-column: span 2; } .cm-imgs.n4 { grid-template-columns: 1fr 1fr; }
.cm-img { position: relative; border: 0; padding: 0; background: var(--line-2); cursor: zoom-in; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.cm-imgs.n1 .cm-img { aspect-ratio: auto; max-height: 360px; }
.cm-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-imgs.n1 .cm-img img { height: auto; max-height: 360px; object-fit: contain; background: #0f172a0d; }
.cm-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 23, 42, .55); color: #fff; font-size: 22px; font-weight: 700; }
.cm-file { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 3px 0; border-radius: 10px; background: rgba(255,255,255,.75); border: 1px solid var(--line); color: var(--ink) !important; text-decoration: none !important; min-width: 220px; max-width: 360px; }
.cm-file:hover { border-color: var(--brand-200); background: #fff; }
.cf-ic { width: 38px; height: 44px; flex: none; border-radius: 6px; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; color: #fff; background: #dc2626; letter-spacing: .02em; position: relative; }
.k-excel .cf-ic { background: #15803d; } .k-word .cf-ic, .k-text .cf-ic { background: #1d4ed8; } .k-powerpoint .cf-ic { background: #c2410c; } .k-archive .cf-ic { background: #57534e; }
.k-audio .cf-ic { background: #7c3aed; } .k-video .cf-ic { background: #0f766e; } .k-file .cf-ic, .k-image .cf-ic { background: #6d28d9; } .k-pdf .cf-ic { background: #dc2626; }
.cf-name { min-width: 0; flex: 1; } .cf-name b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cf-name small { color: var(--muted); font-size: 11.5px; }
.cf-dl { color: var(--muted); }
.cm-act { opacity: 0; align-self: center; border: 0; background: var(--surface); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--muted); box-shadow: var(--shadow-sm); transition: opacity .12s; }
.cm:hover .cm-act, .cm-act:focus { opacity: 1; }
@media (hover: none) { .cm-act { opacity: .6; } }
.cm.flash .cm-bubble { animation: cmflash 1.4s; } @keyframes cmflash { 0%, 40% { box-shadow: 0 0 0 3px #f59e0b; } 100% { box-shadow: none; } }
.chat-jump { position: absolute; right: 22px; bottom: 112px; z-index: 5; border: 0; border-radius: 999px; padding: 7px 14px; background: var(--brand); color: #fff; font: 600 12.5px var(--font); box-shadow: var(--shadow); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.chat-jump svg { transform: rotate(90deg); }
.chat-compose { background: var(--surface); border-top: 1px solid var(--line); padding: 10px 14px 8px; }
.chat-row { display: flex; align-items: flex-end; gap: 8px; }
.chat-row textarea { flex: 1; resize: none; min-height: 40px; max-height: 150px; padding: 9px 12px; border-radius: 20px; line-height: 1.4; font-size: 14px; background: var(--surface-2); }
.chat-attach { width: 40px; height: 40px; border-radius: 50%; cursor: pointer; }
.chat-send { width: 44px; height: 40px; border-radius: 20px; padding: 0; flex: none; }
.chat-send[disabled] { width: auto; padding: 0 14px; }
.chat-hint { font-size: 11px; color: var(--faint); margin: 5px 0 0 50px; }
.chat-replybar { display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin-bottom: 8px; border-left: 3px solid var(--brand); background: var(--brand-50); border-radius: 6px; font-size: 12.5px; color: var(--brand); }
.chat-replybar b { display: block; } .chat-replybar span { display: block; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-replybar .grow { min-width: 0; }
.chat-pending { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; }
.cp { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 30px 6px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); flex: none; max-width: 240px; }
.cp img { width: 44px; height: 44px; object-fit: cover; border-radius: 7px; }
.cp .cf-ic { width: 34px; height: 40px; }
.cp-name { min-width: 0; } .cp-name b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; } .cp-name small { color: var(--muted); font-size: 11px; }
.cp-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(15,23,42,.08); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.cp-x:hover { background: var(--red); color: #fff; }
.chat-readonly { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 14px; background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.chat-drop { position: absolute; inset: 0; z-index: 20; display: none; place-items: center; background: rgba(11, 58, 164, .1); backdrop-filter: blur(2px); border: 2px dashed var(--brand); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; pointer-events: none; }
.chat-drop.on { display: grid; }
.chat-drop div { display: flex; flex-direction: column; align-items: center; gap: 4px; background: #fff; padding: 22px 30px; border-radius: 14px; box-shadow: var(--shadow); color: var(--brand); }
.chat-drop span { color: var(--muted); font-size: 12.5px; }
.chat-users { max-height: 50vh; overflow-y: auto; margin: 0 -6px; }
.chat-user { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 8px; cursor: pointer; }
.chat-user:hover { background: var(--surface-2); }
.chat-user input[type=checkbox] { width: 17px; height: 17px; flex: none; }
.chat-user b { display: block; font-size: 13.5px; } .chat-user small { display: block; color: var(--muted); font-size: 12px; }
.chat-newgroup { display: flex; align-items: center; gap: 10px; width: 100%; border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 9px 10px; margin-bottom: 8px; cursor: pointer; font: inherit; text-align: left; }
.chat-newgroup:hover { border-color: var(--brand-200); background: var(--brand-50); }
.chat-newgroup b { font-size: 13.5px; }
.chat-info-top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 8px 0 18px; border-bottom: 1px solid var(--line-2); }
.chat-info-top h3 { margin: 8px 0 0; font-size: 18px; }
.chat-info-sec { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.chat-members { margin-top: 8px; }
.chat-member { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.chat-member b { display: block; font-size: 13.5px; } .chat-member small { display: block; color: var(--muted); font-size: 12px; }
.chat-privacy { display: flex; gap: 6px; align-items: flex-start; margin-top: 14px; }
.chat-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
.chat-gallery .cm-img { aspect-ratio: 1; border-radius: 8px; }
@media (max-width: 860px) {
  .content.chat-content { padding: 0; }
  .chat { grid-template-columns: 1fr; border-radius: 0; border-left: 0; border-right: 0; }
  .chat.has-active .chat-side { display: none; }
  .chat:not(.has-active) .chat-main { display: none; }
  .chat-side { border-right: 0; }
  .chat-back { display: inline-flex; }
  .chat-msgs { padding: 10px 10px 6px; }
  .cm-bubble { max-width: 84%; }
  .chat-hint { display: none; }
  .chat-head { padding: 8px 6px; }
  .chat-head-act .btn:first-child { display: none; }
  .chat-jump { bottom: 86px; }
}
/* 3.2 · chat alerts & AI button placement */
.chat-alerts { align-items: flex-start; line-height: 1.4; }
.chat-alerts svg { flex: none; margin-top: 2px; }
.chat-alerts.blocked { border-color: #fbc4c4; background: var(--red-50); color: #9b1c1c; }
.chat-pref { cursor: pointer; align-items: flex-start !important; white-space: normal; line-height: 1.35; }
.chat-pref input { width: 16px; height: 16px; margin: 1px 0 0; flex: none; }
.chat-pref-info { cursor: default !important; align-items: flex-start !important; white-space: normal; line-height: 1.35; }
.chat-pref-info:hover { background: none !important; }
/* in Team Chat the floating AI button moves into the chat header (it covered the send button) */
body.chat-open .ai-fab:not(.on) { display: none; }
body.chat-open #toasts { bottom: 96px; }
.chat-head-act .ai-head { color: #7c3aed; }

/* 3.3 · chat media & format settings */
.cm-video, .cm-audio { margin: 3px 0 5px; border-radius: 11px; overflow: hidden; background: #0f172a; width: min(380px, 66vw); }
.cm-video video { display: block; width: 100%; max-height: 360px; background: #000; }
.cm-audio { background: rgba(255,255,255,.8); border: 1px solid var(--line); padding: 8px 8px 4px; }
.cm-audio audio { width: 100%; height: 38px; display: block; }
.cm-media-cap { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 5px 9px; font-size: 11.5px; color: #cbd5e1; }
.cm-audio .cm-media-cap { color: var(--muted); padding: 4px 2px 2px; }
.cm-media-cap span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cm-media-cap a { color: inherit; display: inline-flex; }
.cp video { width: 44px; height: 44px; object-fit: cover; border-radius: 7px; background: #000; }
.chat-gallery .gv { cursor: default; background: #000; } .chat-gallery .gv video { width: 100%; height: 100%; object-fit: cover; }
.chat-fmt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.chat-fmt { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--surface); }
.chat-fmt:hover { border-color: var(--brand-200); }
.chat-fmt input { width: 17px; height: 17px; margin-top: 2px; flex: none; }
.chat-fmt b { display: block; font-size: 13.5px; } .chat-fmt small { display: block; color: var(--muted); font-size: 12px; }
.chat-fmt em { display: inline-block; margin-top: 4px; font-style: normal; font-size: 11px; font-weight: 600; color: var(--amber); }
.chat-fmt.off { opacity: .6; cursor: not-allowed; background: var(--surface-2); }
.kv-mini { display: flex; flex-direction: column; justify-content: center; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); }
.kv-mini span { font-size: 12px; color: var(--muted); } .kv-mini b { font-size: 15px; }

/* 3.3 · Aurax Technologies brand on sign-in screens */
.auth-brand { flex-direction: column; align-items: flex-start; gap: 10px; }
.auth-brand .auth-logo-full { width: auto; height: 64px; max-width: 280px; object-fit: contain; }
.auth-product { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #9fb0da; padding: 4px 10px; border: 1px solid rgba(159,176,218,.35); border-radius: 999px; }
.auth-logo-m { align-items: center; gap: 10px; }
.locked-field input { background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") no-repeat right 10px center; padding-right: 30px; }

.sb-brand img.co-logo { width: auto; max-width: 96px; height: 34px; padding: 3px 5px; }
.sb-brand > div { min-width: 0; } .sb-brand b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 3.5 · chat during working hours */
.chat-duty { display: flex; gap: 10px; align-items: flex-start; margin: 0 14px 10px; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.4; }
.chat-duty b { display: block; font-size: 13px; } .chat-duty span { display: block; color: var(--ink-2); }
.chat-duty.off { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; }
.chat-duty.grace { background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand); }
.chat-duty svg { flex: none; margin-top: 2px; }
/* 3.5.1 chunked upload progress */
.cp-bar { position: absolute; left: 6px; right: 6px; bottom: 3px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.cp-bar b { display: block; height: 100%; background: var(--primary, #0b3aa4); transition: width .25s; }
.cp-bar.shrink b { background: var(--amber, #d97706); }
.cm-noplay { display: flex; gap: 8px; align-items: flex-start; padding: 14px; color: #e2e8f0; font-size: 12.5px; line-height: 1.4; min-width: 220px; }
/* 3.5.3 profile photos */
.avatar { position: relative; overflow: hidden; }
.avatar.has-photo { background: #e2e8f0 !important; color: transparent; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
/* profile photo editor */
.pa-wrap { position: relative; flex: none; }
.pa-cam { position: absolute; right: -4px; bottom: -4px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; background: var(--primary, #0b3aa4); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 6px rgba(15, 23, 42, .25); }
.pa-cam:hover { filter: brightness(1.1); }
.ph-edit { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ph-stage { position: relative; width: 280px; height: 280px; border-radius: 16px; overflow: hidden; background: repeating-conic-gradient(#f1f5f9 0 25%, #fff 0 50%) 0 0 / 20px 20px; touch-action: none; cursor: grab; user-select: none; }
.ph-stage.dragging { cursor: grabbing; }
.ph-stage canvas, .ph-current { width: 280px; height: 280px; display: block; object-fit: cover; }
.ph-ring { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at center, transparent 139px, rgba(15, 23, 42, .45) 140px); }
.ph-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); cursor: pointer; background: #f8fafc; }
.ph-empty b { color: var(--ink); }
.ph-empty span { font-size: 12px; }
.ph-zoom { display: flex; align-items: center; gap: 8px; width: 280px; color: var(--muted); }
.ph-zoom input { flex: 1; }
.ph-zoom.disabled { opacity: .45; }
.text-danger { color: var(--red, #dc2626) !important; }
/* promotions & increments */
.seg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.seg-card { position: relative; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; display: flex; gap: 8px; align-items: flex-start; }
.seg-card:has(input:checked) { border-color: var(--primary, #0b3aa4); background: var(--blue-50, #eff4ff); }
.seg-card span { display: flex; flex-direction: column; } .seg-card small { color: var(--muted); font-size: 11.5px; }
.career-ctc { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; align-items: end; }
.career-ctc > div:first-child { display: flex; flex-direction: column; gap: 4px; padding-bottom: 10px; }
.career-sum { margin-top: -4px; min-height: 18px; }
@media (max-width: 640px) { .career-ctc { grid-template-columns: 1fr; } }
.career-list { padding: 4px 18px 12px; }
.career-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.career-item:first-child { border-top: 0; }
.ci-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; background: #7c3aed; }
.ci-dot.increment { background: #059669; } .ci-dot.promotion_increment { background: #d97706; }
.mt-xs { margin-top: 3px; }
/* birthdays & anniversaries */
.cel-grp { padding: 10px 18px 2px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cel-list { padding: 2px 10px 8px; }
.cel-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
.cel-row.today { background: linear-gradient(90deg, #fff7ed, #fdf2f8); }
.cel-when { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; flex: none; }
.cel-when small { color: var(--muted); font-size: 11.5px; }
.cel-kind { font-size: 12px; font-weight: 600; white-space: nowrap; }
.cel-kind.birthday { color: #c2410c; } .cel-kind.anniversary { color: #7c3aed; }
.bday-banner { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: linear-gradient(90deg, #f97316, #ec4899); color: #fff; box-shadow: 0 6px 18px rgba(236, 72, 153, .25); flex-wrap: wrap; }
.bday-banner .avatar { border: 2px solid #fff; margin-right: -14px; }
.bday-banner .avatar:last-of-type { margin-right: 0; }
.bday-banner .grow { display: flex; flex-direction: column; margin-left: 6px; min-width: 180px; }
.bday-banner .grow span { font-size: 12.5px; opacity: .92; }
.cel-overlay { z-index: 1200; overflow: hidden; }
.cel-pop { position: relative; z-index: 2; background: #fff; border-radius: 22px; padding: 30px 34px 26px; max-width: 420px; text-align: center; box-shadow: 0 24px 60px rgba(15, 23, 42, .35); animation: celIn .45s cubic-bezier(.2, 1.4, .4, 1); }
.cel-pop h2 { margin: 6px 0 8px; font-size: 24px; }
.cel-pop p { color: var(--ink-2); margin: 0 0 18px; line-height: 1.5; }
.cel-emoji { font-size: 64px; line-height: 1; animation: celBounce 1.4s ease-in-out infinite; }
.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; opacity: .9; animation: celFall 3.2s linear forwards; }
@keyframes celFall { to { transform: translateY(110vh) rotate(720deg); opacity: .7; } }
@keyframes celIn { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes celBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .confetti, .cel-emoji, .cel-pop { animation: none !important; } .confetti { display: none; } }
/* 3.5.4 missed punch */
.cell.s-mp { color: #fff !important; background: var(--red, #dc2626) !important; font-weight: 700; }
span.cell.s-mp { border-radius: 6px; padding: 1px 6px; font-size: 11px; }
/* 3.6 face attendance — registration */
.fe-wrap { display: flex; flex-direction: column; align-items: center; }
.fe-wrap > .mb { align-self: stretch; }
.fe-cam { position: relative; width: 100%; max-width: 440px; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #0f172a; }
.fe-cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.fe-oval { position: absolute; left: 50%; top: 47%; width: 46%; height: 72%; transform: translate(-50%, -50%); border: 3px dashed rgba(255, 255, 255, .8); border-radius: 50%; box-shadow: 0 0 0 999px rgba(15, 23, 42, .35); }
.fe-msg { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px; text-align: center; color: #fff; font-weight: 600; background: linear-gradient(transparent, rgba(15, 23, 42, .85)); display: flex; gap: 6px; justify-content: center; align-items: center; }
.fe-msg.ok { color: #86efac; }
.fe-dots { display: flex; gap: 8px; margin: 12px 0 6px; }
.fe-dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--line); transition: background .2s; }
.fe-dots i.on { background: #10b981; }
.fe-tips { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; align-self: stretch; }
.face-ph { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: none; background: #f1f5f9; display: grid; place-items: center; color: var(--muted); }
.fa-thumb { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); padding: 0; background: #f1f5f9; cursor: zoom-in; }
.fa-thumb img { width: 100%; height: 100%; object-fit: cover; }
/* gate scanner */
.fk { position: fixed; inset: 0; display: flex; flex-direction: column; background: radial-gradient(ellipse at top, #10267a 0%, #060d2b 70%); color: #fff; z-index: 50; }
.fk-top { display: flex; align-items: center; gap: 16px; padding: 14px 22px; }
.fk-brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.fk-brand img { height: 34px; width: auto; background: #fff; border-radius: 8px; padding: 3px 6px; }
.fk-brand b { display: block; font-size: 16px; } .fk-brand span { color: #9fb3ff; font-size: 12px; }
.fk-clock { text-align: center; } .fk-clock b { display: block; font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: .02em; } .fk-clock span { color: #9fb3ff; font-size: 12px; }
.fk-actions { flex: 1; display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.fk-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; padding: 0 22px 22px; min-height: 0; }
.fk-cam { position: relative; border-radius: 22px; overflow: hidden; background: #000; min-height: 0; }
.fk-cam video { width: 100%; height: 100%; object-fit: cover; }
.fk-cam video.mirror { transform: scaleX(-1); }
.fk-oval { position: absolute; left: 50%; top: 46%; width: min(38vh, 46%); aspect-ratio: 3 / 4; transform: translate(-50%, -50%); border: 4px solid rgba(255, 255, 255, .55); border-radius: 50%; box-shadow: 0 0 0 9999px rgba(3, 8, 30, .45); transition: border-color .2s; }
.fk-oval.seen { border-color: #60a5fa; } .fk-oval.ok { border-color: #34d399; box-shadow: 0 0 0 9999px rgba(3, 8, 30, .45), 0 0 40px #34d399; }
.fk-prompt { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); background: rgba(3, 8, 30, .75); padding: 12px 22px; border-radius: 999px; font-size: 20px; font-weight: 600; white-space: nowrap; display: flex; gap: 8px; align-items: center; backdrop-filter: blur(6px); }
.fk-prompt.ok { background: #059669; } .fk-prompt.warn { background: #b45309; } .fk-prompt.busy { background: #1d4ed8; }
.fk-result { position: absolute; inset: auto 24px 90px; margin: 0 auto; max-width: 560px; display: flex; gap: 18px; align-items: center; padding: 18px 22px; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); animation: fkIn .25s ease-out; }
.fk-result.in { border-left: 10px solid #10b981; } .fk-result.out { border-left: 10px solid #3b82f6; } .fk-result.repeat { border-left: 10px solid #94a3b8; } .fk-result.unknown, .fk-result.rejected { border-left: 10px solid #ef4444; }
.fk-result h2 { margin: 0 0 4px; font-size: 26px; } .fk-result p { margin: 0; color: var(--ink-2); } .fk-result .fk-big { font-size: 20px; font-weight: 700; color: var(--ink); }
.fk-result.in .fk-big { color: #047857; } .fk-result.out .fk-big { color: #1d4ed8; }
.fk-ph { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: #e2e8f0; }
.fk-ph img { width: 100%; height: 100%; object-fit: cover; } .fk-ph .avatar { width: 96px; height: 96px; font-size: 34px; }
.fk-q { font-size: 48px; font-weight: 800; color: #ef4444; }
@keyframes fkIn { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.fk-side { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; min-height: 0; }
.fk-side h4 { margin: 0 0 10px; color: #9fb3ff; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.fk-list { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.fk-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: 14px; }
.fk-row b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; } .fk-row time { color: #c7d2fe; font-variant-numeric: tabular-nums; }
.fk-pill { font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 6px; background: #059669; } .fk-row.out .fk-pill { background: #2563eb; }
.fk-side .muted { color: #9fb3ff !important; } .fk-foot { margin-top: 10px; }
.fk-err { padding: 60px 20px; }
.btn-outline-white { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35); } .btn-outline-white:hover { background: rgba(255, 255, 255, .1); }
@media (max-width: 860px) { .fk-main { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) 150px; padding: 0 10px 10px; } .fk-top { padding: 10px; flex-wrap: wrap; } .fk-clock b { font-size: 20px; } .fk-prompt { font-size: 16px; } .fk-result { inset: auto 10px 80px; } .fk-result h2 { font-size: 20px; } .fk-ph, .fk-ph .avatar { width: 64px; height: 64px; } }
/* 3.6.1 side menu: folding sections */
.sb-nav { padding: 8px 10px 16px; }
.sb-sec { margin-top: 6px; }
.sb-sec.home { margin: 2px 0 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.sb-head { width: 100%; display: flex; align-items: center; gap: 8px; padding: 9px 10px 6px; background: none; border: 0; cursor: pointer; color: #6d7ba3; font: inherit; font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; border-radius: 6px; }
.sb-head:hover { color: #aab6d8; }
.sb-head span:first-child { flex: 1; text-align: left; }
.sb-head .sb-count { font-size: 10px; letter-spacing: 0; color: #56638a; background: rgba(255, 255, 255, .05); border-radius: 999px; padding: 1px 6px; opacity: 0; transition: opacity .15s; }
.sb-head svg { width: 14px; height: 14px; transition: transform .18s; opacity: .8; }
.sb-sec.closed .sb-head svg { transform: rotate(-90deg); }
.sb-sec.closed .sb-count { opacity: 1; }
.sb-items { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .2s ease; }
.sb-items > * { min-height: 0; }
.sb-sec.closed .sb-items { display: none; }
.sb-link { padding: 7px 10px; font-size: 13.5px; }
.sb-link svg { width: 17px; height: 17px; opacity: .85; flex: none; }
.sb-link.on svg { opacity: 1; }
.fk-diag { position: absolute; left: 14px; top: 12px; font: 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; color: #c7d2fe; background: rgba(3, 8, 30, .55); padding: 4px 8px; border-radius: 6px; pointer-events: none; }
.fk-testbar { position: absolute; right: 14px; top: 12px; background: #f59e0b; color: #1f1300; font-weight: 800; font-size: 12px; padding: 5px 10px; border-radius: 6px; letter-spacing: .03em; }
.hc-row { display: grid; grid-template-columns: 18px 260px 1fr; gap: 8px; align-items: start; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.hc-row:first-child { border-top: 0; } .hc-row span { color: var(--muted); }
.hc-row.ok svg { color: #059669; } .hc-row.bad svg { color: #dc2626; } .hc-row.bad b { color: #b91c1c; }
@media (max-width: 640px) { .hc-row { grid-template-columns: 18px 1fr; } .hc-row span { grid-column: 2; } }

/* 3.7 — several check-in / check-out a day */
.punch-total { margin-top: 8px; font-size: 13px; }
.punch-total b { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; margin-right: 4px; }
.punch-tl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.punch-tl span { font-size: 11.5px; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-variant-numeric: tabular-nums; border: 1px solid var(--line); }
.punch-tl span.open { background: var(--green-50); border-color: var(--green); color: var(--green); }
.punch-tl span.miss { background: var(--red-50); border-color: var(--red); color: var(--red); }
.hero-punch .t { font-variant-numeric: tabular-nums; }
.cal-day.has-time { cursor: pointer; }
.cal-day.has-time:hover { outline: 2px solid var(--brand); outline-offset: -2px; }
.cal-day .tm.wk { color: var(--ink); font-weight: 600; }
.linklike { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font: inherit; text-align: left; }
.linklike:hover { text-decoration: underline; }
.sess-list { display: flex; flex-direction: column; gap: 6px; }
.sess-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-variant-numeric: tabular-nums; }
.sess-row .n { width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.sess-row.open { border-color: var(--green); background: var(--green-50); }
.sess-row.miss { border-color: var(--red); background: var(--red-50); }
.sess-row.miss .n { background: var(--red); }
.sess-break { font-size: 12px; color: var(--muted); padding-left: 36px; display: flex; align-items: center; gap: 6px; }
.sess-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.sess-sum div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.sess-sum span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sess-sum b { font-size: 15px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .sess-sum { grid-template-columns: repeat(2, 1fr); } }
.clock-card .hero-punch { max-width: 300px; }
@media (max-width: 640px) {
  .hello .clock-card { width: 100%; flex-direction: column; align-items: stretch; gap: 12px; }
  .clock-card .hero-punch { max-width: none; }
  .clock-card .btn { width: 100%; justify-content: center; }
  .checkin-card { flex-direction: column; align-items: stretch; gap: 14px; }
  .checkin-card .big { font-size: 28px; }
  .checkin-card > .btn { width: 100%; justify-content: center; }
}
/* 3.8 — face scanner "Not you? Undo" strip */
.fk-undo { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; background: rgba(15, 23, 42, .88); color: #fff; padding: 8px 10px 8px 14px; border-radius: 12px; font-size: 13px; z-index: 6; max-width: calc(100% - 24px); flex-wrap: wrap; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.fk-undo.hidden { display: none; }

/* 3.8 — monthly vs hourly pay */
.pay-type-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pt-opt { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; background: var(--surface); }
.pt-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.pt-opt input { margin-top: 3px; }
.pt-opt b { display: flex; align-items: center; gap: 6px; }
.pt-opt small { display: block; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.pay-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pay-sec { text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 12px 16px; cursor: pointer; font: inherit; color: var(--ink); }
.pay-sec b { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.pay-sec span { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.pay-sec.on { border-color: var(--brand); background: var(--brand-50); box-shadow: inset 0 -3px 0 var(--brand); }
@media (max-width: 640px) { .pay-type-pick, .pay-sections { grid-template-columns: 1fr; } }

/* 3.9 — income-tax regime picker, employee import */
.rg-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.rg-opt { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; background: var(--surface); }
.rg-opt.on, .rg-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.rg-opt input { margin-top: 4px; }
.rg-opt > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rg-opt b { font-size: 15px; }
.rg-opt em { align-self: flex-start; font-style: normal; }
.rg-opt strong { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.rg-opt small { color: var(--muted); }
.imp-steps { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.imp-steps b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; margin-right: 8px; }
.imp-table { max-height: 52vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 12px; }
@media (max-width: 640px) { .rg-pick { grid-template-columns: 1fr; } }

/* ================= 3.10 — dashboard designs ================= */
.dz-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.dz-head h1 { font-size: 24px; letter-spacing: -.02em; line-height: 1.2; }
.dz-pick { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--brand); color: var(--brand); background: var(--brand-50); font: 600 13px var(--font); cursor: pointer; }
.dz-pick:hover { background: var(--brand-100); }
.dz-pop { position: absolute; z-index: 400; width: min(760px, calc(100vw - 24px)); background: var(--surface); border-radius: 16px; box-shadow: 0 24px 60px -12px rgba(15,23,42,.35), 0 0 0 1px var(--line); padding: 16px; }
.dz-pop-h { display: flex; justify-content: space-between; gap: 10px; } .dz-pop-h h3 { font-size: 17px; } .dz-pop-h p { font-size: 13px; color: var(--muted); margin: 2px 0 12px; }
.dz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dz-t { position: relative; text-align: left; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); cursor: pointer; padding: 0; font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.dz-t:hover { border-color: var(--brand-200); box-shadow: 0 6px 16px -8px rgba(29,78,216,.35); }
.dz-t img { display: block; width: 100%; aspect-ratio: 16 / 9.4; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.dz-t b { display: block; font-size: 13px; padding: 9px 11px 1px; } .dz-t > span:last-child { display: block; font-size: 11.5px; color: var(--muted); padding: 0 11px 10px; line-height: 1.35; }
.dz-t.on { border-color: #4f46e5; box-shadow: 0 0 0 3px #e0e7ff; }
.dz-tag { position: absolute; top: 8px; left: 8px; background: #0f172a; color: #fff; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; padding: 3px 8px; border-radius: 99px; }
.dz-chk { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: #4f46e5; color: #fff; display: grid; place-items: center; }
.dz-pop-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.dz-badge { display: inline-block; vertical-align: middle; background: #4f46e5; color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; margin-left: 8px; }
.dz-upd { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; font-size: 13px; color: var(--ink-2); text-decoration: none; max-width: 520px; }
.dz-upd b { color: var(--amber); display: flex; align-items: center; gap: 6px; white-space: nowrap; } .dz-upd span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.dz-tile { position: relative; border-radius: 12px; padding: 13px 14px; color: #fff; text-decoration: none; overflow: hidden; transition: transform .15s; }
.dz-tile:hover { transform: translateY(-2px); }
.dz-tile .l { font-size: 10px; letter-spacing: .04em; font-weight: 600; opacity: .85; text-transform: uppercase; padding-right: 28px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-tile .v { font-size: 25px; font-weight: 700; margin-top: 8px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dz-tile .t { display: block; font-size: 11.5px; font-weight: 600; opacity: .85; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-tile .ti { position: absolute; right: 9px; top: 9px; width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.dz-g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.dz-g21 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.dz-g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.dz-g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.dz-g4k { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.dz-mc { overflow: hidden; } .dz-mch { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; }
.dz-mch h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; } .dz-mch a { font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.dz-mci { width: 32px; height: 32px; border-radius: 10px; color: #fff; display: grid; place-items: center; }
.dz-s4 { display: grid; gap: 8px; } .dz-s4 > div { background: var(--surface-2); border-radius: 10px; padding: 9px 6px; text-align: center; }
.dz-s4 b { display: block; font-size: 19px; font-variant-numeric: tabular-nums; white-space: nowrap; } .dz-s4 span { font-size: 10px; letter-spacing: .05em; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.dz-mini { border-radius: 10px; padding: 9px; text-align: center; } .dz-mini b { display: block; } .dz-mini span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.dz-warn { background: var(--amber-50); color: #92400e; border-radius: 9px; padding: 8px 12px; font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.dz-ok { background: var(--green-50); color: #166534; border-radius: 9px; padding: 8px 12px; font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.dz-svg { display: block; width: 100%; overflow: visible; }
.dz-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-top: 6px; }
.dz-bars { display: flex; align-items: flex-end; gap: 6px; } .dz-bars > div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 0; height: 100%; }
.dz-bars i { display: block; width: 62%; max-width: 46px; border-radius: 6px 6px 3px 3px; } .dz-bars .v { font-size: 10.5px; font-weight: 600; margin-bottom: 3px; } .dz-bars .l { font-size: 10.5px; margin-top: 5px; white-space: nowrap; }
.dz-li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; } .dz-li:last-child { border-bottom: 0; }
.dz-li b { font-size: 13px; } .dz-emo { width: 32px; text-align: center; font-size: 20px; flex: none; }
.dz-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.dz-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dz-yes, .dz-no { width: 30px; height: 26px; border-radius: 99px; border: 0; display: grid; place-items: center; cursor: pointer; flex: none; }
.dz-yes { background: var(--green-50); color: var(--green); } .dz-no { background: var(--red-50); color: var(--red); } .dz-yes:hover { background: var(--green); color: #fff; } .dz-no:hover { background: var(--red); color: #fff; }
/* launcher */
.dz-launch { text-align: center; padding: 4px 0 0; position: relative; } .dz-launch h1 { font-size: 30px; letter-spacing: -.02em; margin-top: 6px; }
.dz-search { margin: 16px auto 0; max-width: 640px; height: 52px; border-radius: 14px; background: var(--surface); border: 1.5px solid #c7d2fe; box-shadow: 0 10px 30px -12px rgba(29,78,216,.3); display: flex; align-items: center; gap: 10px; padding: 0 16px; color: #6366f1; }
.dz-search input { flex: 1; border: 0 !important; outline: 0; box-shadow: none !important; padding: 0 !important; background: transparent !important; font: 15px var(--font); color: var(--ink); height: 100%; } .dz-search kbd { font: 11px var(--font); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.dz-res { position: absolute; left: 50%; transform: translateX(-50%); top: 150px; width: min(640px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(15,23,42,.35); z-index: 20; text-align: left; padding: 6px; }
.dz-res a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 13.5px; } .dz-res a:hover, .dz-res a:first-child { background: var(--surface-2); }
.dz-res a i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; } .dz-res a .xs { margin-left: auto; }
.dz-chips { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.dz-chips a { background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; text-decoration: none; } .dz-chips a:hover { border-color: var(--brand-200); color: var(--brand); }
.dz-grp { padding: 14px; } .dz-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.dz-act { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); font-size: 12.5px; font-weight: 500; text-align: center; text-decoration: none; transition: background .15s, transform .15s; }
.dz-act:hover { background: var(--brand-50); transform: translateY(-1px); } .dz-act i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.dz-strip { display: grid; gap: 14px; margin-top: 16px; } .dz-strip a { padding: 11px 14px; text-decoration: none; color: inherit; display: flex; flex-direction: column; } .dz-strip b { font-size: 20px; font-variant-numeric: tabular-nums; }
/* analytics */
.dz-kpi { padding: 14px 16px; } .dz-kpi b { font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dz-leg { display: flex; gap: 12px; font-size: 12px; color: var(--muted); } .dz-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.dz-donut { display: flex; align-items: center; gap: 18px; } .dz-donut > div { flex: 1; display: flex; flex-direction: column; gap: 8px; } .dz-sq { width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; flex: none; }
.dz-heat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; max-width: 280px; margin: 0 auto; }
.dz-heat .h { font-size: 10.5px; color: var(--muted); text-align: center; } .dz-heat i { aspect-ratio: 1; border-radius: 6px; font-style: normal; font-size: 10px; color: rgba(15,23,42,.55); display: grid; place-items: center; }
/* command center */
.cc { background: radial-gradient(900px 400px at 85% -10%, rgba(34,211,238,.10), transparent 60%), linear-gradient(180deg, #070d1d, #060b18); border-radius: 18px; padding: 20px; color: #cbd5e1; margin: -4px 0 0; }
.cc .dz-head h1 { color: #f1f5f9; } .cc-kick { font-size: 12px; letter-spacing: .24em; color: #22d3ee; font-weight: 700; }
.cc .dz-pick { background: #111d3a; border-color: #38bdf8; color: #7dd3fc; }
.cc-live { font-size: 12px; font-weight: 600; color: #4ade80; background: #052e2b; border: 1px solid #14532d; border-radius: 999px; padding: 5px 11px; }
.cc-clock { font-size: 24px; color: #fff; font-variant-numeric: tabular-nums; }
.cc-c { background: linear-gradient(180deg, #0c1630, #0a1226); border: 1px solid #1d2d52; border-radius: 14px; padding: 16px; min-width: 0; }
.cc-c h3 { color: #e2e8f0; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-bottom: 10px; }
.cc-ks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.cc-k { background: linear-gradient(180deg, #0c1630, #0a1226); border: 1px solid #1d2d52; border-radius: 14px; padding: 13px 15px; }
.cc-k .l { font-size: 10.5px; letter-spacing: .1em; color: #64748b; font-weight: 600; text-transform: uppercase; } .cc-k .v { font-size: 27px; font-weight: 700; margin-top: 5px; font-variant-numeric: tabular-nums; white-space: nowrap; } .cc-k .s { font-size: 11.5px; color: #64748b; }
.cc-g3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.cc-g4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 14px; }
.cc-g21 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; }
.cc-ring { position: relative; width: 184px; margin: 8px auto 0; } .cc-ring > div { position: absolute; inset: 0; display: grid; place-content: center; } .cc-ring b { font-size: 34px; color: #fff; } .cc-ring span { font-size: 11.5px; color: #64748b; }
.cc-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; } .cc-3 > div { background: #0f1a33; border-radius: 9px; padding: 8px 4px; } .cc-3 b { display: block; font-size: 18px; } .cc-3 span { font-size: 10.5px; color: #64748b; }
.cc-feed { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid #16233f; } .cc-feed b { display: block; color: #e2e8f0; font-size: 13px; } .cc-feed span { font-size: 11.5px; color: #64748b; }
.cc-pill { font-size: 11px !important; font-weight: 700; color: #4ade80 !important; background: #052e2b; border-radius: 99px; padding: 3px 9px; white-space: nowrap; } .cc-pill.late { color: #fbbf24 !important; background: #3b2a06; } .cc-pill.out { color: #93c5fd !important; background: #0b2447; }
.cc-bar { height: 7px; border-radius: 9px; background: #16233f; margin-top: 10px; overflow: hidden; } .cc-bar i { display: block; height: 100%; border-radius: 9px; }
.cc-al { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid #16233f; font-size: 13px; color: #cbd5e1; } .cc-al > span { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.cc-empty { color: #64748b; font-size: 13px; padding: 30px 0; text-align: center; }
.cc .avatar { box-shadow: 0 0 0 2px #0a1226; }
/* my day */
.md { background: radial-gradient(1000px 500px at 0% -10%, #dbeafe 0, transparent 60%), radial-gradient(800px 450px at 100% 0, #ede9fe 0, transparent 55%); border-radius: 18px; padding: 4px; }
.md-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.md-left { grid-row: span 2; }
.md-hero { background: linear-gradient(160deg, #1d4ed8, #4f46e5 60%, #7c3aed); color: #fff; border-radius: 20px; padding: 20px; min-height: 100%; }
.md-clock { font-size: 60px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.dz-punch { margin-top: 20px; background: rgba(255,255,255,.14); border-radius: 16px; padding: 14px 16px; } .dz-big2 { font-size: 28px; } .dz-punch .btn[disabled] { opacity: .75; }
.md-k { font-size: 11px; opacity: .8; letter-spacing: .06em; font-weight: 600; margin: 18px 0 8px; }
.md-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .md-3 > div { background: rgba(255,255,255,.12); border-radius: 12px; padding: 10px; } .md-3 b { display: block; font-size: 20px; } .md-3 span { font-size: 11.5px; opacity: .85; }
.md-pay { margin-top: 16px; background: rgba(255,255,255,.12); border-radius: 14px; padding: 12px 14px; }
.md-w { background: rgba(255,255,255,.85); border: 1px solid #fff; border-radius: 20px; box-shadow: 0 8px 30px -14px rgba(30,58,138,.3); padding: 16px 18px; min-width: 0; }
.md-w h4 { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 8px; }
.md-qa { grid-column: 1 / -1; } .md-acts { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; } .md-acts .dz-act { background: #fff; }
.md-ring { position: relative; } .md-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 19px; }
.md-av { margin-right: -6px; } .md-av .avatar { border: 2px solid #fff; }
@media (max-width: 1280px) { .dz-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cc-ks { grid-template-columns: repeat(3, minmax(0, 1fr)); } .md-acts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1080px) { .dz-g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dz-g4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .dz-g4k { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dz-g21, .cc-g3, .cc-g21 { grid-template-columns: 1fr; } .cc-g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .md-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .md-left { grid-row: auto; grid-column: 1 / -1; } }
@media (max-width: 680px) { .dz-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .dz-g4 { grid-template-columns: 1fr !important; } .dz-g3, .dz-g2, .dz-g4k, .cc-g4 { grid-template-columns: 1fr; } .cc-ks { grid-template-columns: repeat(2, minmax(0, 1fr)); } .md-grid { grid-template-columns: 1fr; } .md-acts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dz-launch h1 { font-size: 24px; } .dz-upd { display: none; } .dz-head h1 { font-size: 20px; } .cc { padding: 14px; } .md-clock { font-size: 48px; } .dz-res { top: 140px; } }
