/* =====================================================================
   SHOPNO Manager 1.0 — unified design system (light + dark)
   One stylesheet, one set of tokens. No !important wars.
   Theme is chosen by <html data-theme="light|dark">; default = OS setting.
   (c) SHOPNOTECH · https://shopnotech.com
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #f5f4fb;
  --bg-glow-1: rgba(124, 58, 237, .10);
  --bg-glow-2: rgba(147, 51, 234, .06);
  --surface: #ffffff;          /* cards, inputs, popovers */
  --surface-2: #f6f4fc;        /* table head, panels, zebra */
  --surface-3: #eee9fb;        /* hover fill */
  --input-bg: #ffffff;
  --line: #e4dff2;
  --line-soft: #eeeaf7;
  --text: #1c1730;
  --text-2: #4b4565;
  --muted: #6c6785;
  --accent: #6d28d9;
  --accent-2: #8b5cf6;
  --accent-hover: #5b21b6;
  --accent-soft: #efe8ff;      /* tint background */
  --accent-text: #5b21b6;      /* text on tint */
  --on-accent: #ffffff;
  --ok: #0f9d6b;   --ok-bg: #e2f6ee;   --ok-text: #0a6b48;
  --warn: #d97706; --warn-bg: #fdf0d5; --warn-text: #8a5300;
  --bad: #c62828;  --bad-bg: #fde8e8;  --bad-text: #9b1c1c;
  --info: #2563eb; --info-bg: #e5edfd; --info-text: #1e40af;
  --focus: rgba(124, 58, 237, .22);
  --shadow: 0 1px 2px rgba(28, 23, 48, .05), 0 8px 26px rgba(28, 23, 48, .06);
  --shadow-lg: 0 24px 60px rgba(28, 23, 48, .22);
  --overlay: rgba(20, 12, 42, .55);
  --side-bg-1: #1a1236; --side-bg-2: #2a1a55;
  --side-text: #d9d2f0; --side-muted: #9d93c4; --side-line: rgba(255, 255, 255, .10);
  --r: 14px;
  /* legacy aliases (older views use these names) */
  --ink: var(--text); --paper: var(--bg); --card: var(--surface); --maroon: var(--accent);
  --maroon-2: var(--accent-hover); --tint: var(--accent-soft); --gold: var(--accent-2);
  --brand: var(--accent); --brand-2: var(--accent-2); --blue: var(--info);
  --side: var(--side-bg-1); --side-2: var(--side-bg-2);
  --font: 'Manrope', 'Noto Sans Bengali', 'Hind Siliguri', 'Segoe UI', system-ui, -apple-system, 'Nirmala UI', 'Kalpurush', sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0a12;
  --bg-glow-1: rgba(124, 58, 237, .20);
  --bg-glow-2: rgba(147, 51, 234, .10);
  --surface: #17152a;
  --surface-2: #1d1a33;
  --surface-3: #272344;
  --input-bg: #110f20;
  --line: #2c2849;
  --line-soft: #231f3d;
  --text: #f1eeff;
  --text-2: #cfc9ea;
  --muted: #a29dbd;
  --accent: #8b5cf6;
  --accent-2: #a78bfa;
  --accent-hover: #7c3aed;
  --accent-soft: rgba(139, 92, 246, .20);
  --accent-text: #ddd6fe;
  --on-accent: #ffffff;
  --ok: #34d399;   --ok-bg: rgba(16, 185, 129, .16);  --ok-text: #6ee7b7;
  --warn: #fbbf24; --warn-bg: rgba(245, 158, 11, .16); --warn-text: #fcd34d;
  --bad: #f87171;  --bad-bg: rgba(239, 68, 68, .16);   --bad-text: #fca5a5;
  --info: #60a5fa; --info-bg: rgba(59, 130, 246, .16); --info-text: #93c5fd;
  --focus: rgba(167, 139, 250, .32);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, .7);
  --overlay: rgba(4, 2, 12, .72);
  --side-bg-1: #0e0c1b; --side-bg-2: #15112b;
  --side-text: #d9d2f0; --side-muted: #8f87b5; --side-line: rgba(255, 255, 255, .08);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font); font-size: 14px; line-height: 1.55; color: var(--text);
  background: radial-gradient(900px 420px at 88% -8%, var(--bg-glow-1), transparent 60%),
              radial-gradient(700px 400px at 8% 108%, var(--bg-glow-2), transparent 60%), var(--bg);
  background-attachment: fixed;
  font-variant-numeric: tabular-nums; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
:lang(bn), [lang="bn"] { font-family: 'Noto Sans Bengali', 'Hind Siliguri', 'Kalpurush', 'Nirmala UI', var(--font); line-height: 1.7; }
input, textarea, select, button { font-family: inherit; }
a { color: var(--accent-text); text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
.side a, .btn, .quick a, .subnav a, .pal-item, .sm-ai-links a, .sm-notif-item, .upd-badge, .tabs a { text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
::selection { background: var(--accent-soft); color: var(--accent-text); }
hr { border: 0; border-top: 1px solid var(--line); }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { background: var(--surface-2); border: 1px solid var(--line-soft); padding: 1px 6px; border-radius: 6px; font-size: 12.5px; color: var(--accent-text); }
code.k { display: inline-block; word-break: break-all; padding: 3px 8px; }
.muted { color: var(--muted); } .sp { flex: 1; } .n { text-align: right; } .hidden { display: none !important; }
.print-head, .print-foot { display: none; }
::-webkit-scrollbar { width: 9px; height: 9px; } ::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; } ::-webkit-scrollbar-thumb:hover { background: var(--accent-2); }
.page, .page * { min-width: 0; }

/* ---------- 3. Sidebar ---------- */
.side {
  position: fixed; inset: 0 auto 0 0; width: 252px; z-index: 50; display: flex; flex-direction: column;
  padding: 14px 10px; overflow-y: auto; color: var(--side-text);
  background: linear-gradient(180deg, var(--side-bg-1), var(--side-bg-2)); border-right: 1px solid var(--side-line);
  box-shadow: 8px 0 36px rgba(8, 4, 24, .22); transition: transform .22s;
}
.side .brand { display: flex; align-items: center; gap: 11px; padding: 8px 8px 16px; margin-bottom: 8px; border-bottom: 1px solid var(--side-line); min-width: 0; }
.side .brand .mark { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 13px; overflow: hidden; display: grid; place-items: center; background: transparent; }
.side .brand .mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.side .brand-copy { min-width: 0; flex: 1; } .side .brand b { display: block; color: #fff; font-size: 14px; letter-spacing: .06em; line-height: 1.2; }
.side .brand small { display: block; color: var(--side-muted); font-size: 11px; margin-top: 2px; }
.side nav { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.side nav h6 { font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--side-muted); padding: 15px 12px 5px; font-weight: 800; }
.side nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; margin: 1px 2px; border-radius: 10px;
  color: var(--side-text); font-weight: 600; font-size: 13.5px; border-left: 3px solid transparent;
  transition: background .16s, color .16s, transform .16s, border-color .16s;
}
.side nav a i { width: 18px; text-align: center; font-size: 14px; opacity: .75; transition: opacity .16s, color .16s; }
.side nav a:hover { background: rgba(255, 255, 255, .09); color: #fff; transform: translateX(2px); }
.side nav a:hover i { opacity: 1; }
.side nav a.on { background: linear-gradient(95deg, rgba(139, 92, 246, .38), rgba(139, 92, 246, .10)); color: #fff; border-left-color: #c4b5fd; }
.side nav a.on i { opacity: 1; color: #c4b5fd; }
.side .me { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 8px 4px; margin-top: 10px; border-top: 1px solid var(--side-line); }
.side .who { display: flex; align-items: center; gap: 9px; min-width: 0; } .side .who i { font-size: 28px; color: var(--side-muted); }
.side .who b { display: block; color: #fff; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .who small { color: var(--side-muted); font-size: 11.5px; }
.side .me .btn.ghost { color: var(--side-text); border-color: var(--side-line); background: transparent; }
.side .me .btn.ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .3); transform: none; }

/* ---------- 4. Layout + topbar ---------- */
.main { margin-left: 252px; min-height: 100vh; display: flex; flex-direction: column; min-width: 0; }
.top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 12px 28px;
  background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.top h1 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: var(--text); flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .date { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.burger { display: none; background: none; border: 0; font-size: 20px; cursor: pointer; color: var(--text); padding: 4px 8px; border-radius: 8px; }
.burger:hover { background: var(--surface-3); color: var(--accent-text); }
.page { padding: 24px 28px; max-width: 1500px; width: 100%; flex: 1; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 28px; font-size: 12px; color: var(--muted); background: var(--surface); border-top: 1px solid var(--line); }
.foot a { color: var(--accent-text); font-weight: 700; }
.upd-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--bad); color: #fff !important; border-radius: 999px; padding: 2px 11px; font-size: 12px; font-weight: 700; margin-left: 8px; }
.upd-badge:hover { filter: brightness(1.1); }
.cmdk { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); background: var(--input-bg); color: var(--muted); border-radius: 10px; font-size: 13px; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.cmdk:hover { border-color: var(--accent-2); color: var(--text); background: var(--surface-2); }
.cmdk kbd { font-size: 10.5px; padding: 1px 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); color: var(--accent-text); }
.officesw { display: flex; align-items: center; gap: 6px; padding: 0 8px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); border: 1px solid transparent; }
.officesw select { border: 0; background: transparent; color: var(--accent-text); font-weight: 700; padding: 7px 2px; cursor: pointer; max-width: 180px; min-height: 0; box-shadow: none; }
.officesw select option { background: var(--surface); color: var(--text); }
.sm-offline-banner { display: none; text-align: center; padding: 8px 16px; font-size: 13px; font-weight: 600; color: #fff; background: linear-gradient(90deg, #5b21b6, #7c3aed); }
body.is-offline .sm-offline-banner { display: block; }

/* ---------- 5. Cards, stats, grids ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow); transition: border-color .18s, box-shadow .18s; }
.card:hover { border-color: color-mix(in srgb, var(--accent-2) 40%, var(--line)); }
.card h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; font-weight: 800; margin-bottom: 14px; color: var(--text); line-height: 1.35; }
.card h3 i, .card h4 i { color: var(--accent-2); } .card h4 { color: var(--text); }
.panel { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stats.s3 { grid-template-columns: repeat(3, 1fr); } .stats.s4 { grid-template-columns: repeat(4, 1fr); } .stats.s5 { grid-template-columns: repeat(5, 1fr); }
.stat { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); transition: border-color .18s, transform .18s; }
.stat:hover { border-color: color-mix(in srgb, var(--accent-2) 45%, var(--line)); transform: translateY(-1px); }
.stat span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.stat b { display: block; margin-top: 4px; font-size: 25px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.stat small { color: var(--muted); font-size: 12px; }
.stat > i { position: absolute; right: 16px; top: 16px; font-size: 20px; color: var(--accent-2); opacity: .3; }
.stat.hero { color: #fff; border: 0; background: linear-gradient(130deg, #4c1d95, #6d28d9 58%, #8b5cf6); box-shadow: 0 14px 34px rgba(109, 40, 217, .28); }
.stat.hero:hover { transform: none; } .stat.hero span { color: rgba(255, 255, 255, .85); } .stat.hero b { color: #fff; font-size: 31px; } .stat.hero > i { color: #fff; opacity: .22; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.kpi-card small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; } .kpi-card b { font-size: 24px; color: var(--text); letter-spacing: -.02em; }
.kpi-card .kpi-sub { margin-top: 6px; font-size: 12px; color: var(--muted); }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
.quick a { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); font-weight: 700; transition: border-color .15s, background .15s, transform .15s, box-shadow .15s; }
.quick a i { font-size: 20px; color: var(--accent-2); } .quick a small { font-weight: 500; font-size: 12px; color: var(--muted); }
.quick a:hover { border-color: var(--accent-2); background: var(--accent-soft); color: var(--accent-text); transform: translateY(-2px); box-shadow: var(--shadow); }
.quick a:hover small { color: var(--text-2); }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; font-weight: 800; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; } .avatar.lg { width: 84px; height: 84px; font-size: 28px; }
.profile { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 24px; }
.kv div small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; } .kv div b { font-weight: 700; color: var(--text); }
.notice { border-left: 4px solid var(--accent-2); background: var(--accent-soft); color: var(--text); padding: 12px 16px; border-radius: 0 12px 12px 0; margin-bottom: 10px; }
.notice b { display: block; color: var(--accent-text); } .notice small { color: var(--muted); }
.notice-item { padding: 12px 0; border-bottom: 1px solid var(--line); } .notice-item small { display: block; color: var(--muted); margin: 4px 0; }
.sumrow { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 160px; padding-top: 8px; }
.bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; font-size: 12px; color: var(--muted); }
.bars i { display: block; width: 100%; min-height: 3px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--accent-2), var(--accent)); }
.bars div:last-child i { background: linear-gradient(180deg, #c4b5fd, var(--accent-2)); }
.progress, .meter { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress i, .meter > i, .meter > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--ok), #34d399); }
.meter.gold > i, .meter.gold > span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); } .meter.bad > i, .meter.bad > span { background: linear-gradient(90deg, #c62828, #ef6b6b); }
.rep { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; overflow: hidden; background: var(--surface); }
.rep > header { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); } .rep > div { padding: 14px 16px; }
.rep h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 10px 0 4px; } .rep h5:first-child { margin-top: 0; }
.stat.hero { margin: 0; } .dr { color: var(--info-text); } .cr { color: var(--accent-text); }

/* ---------- 6. Forms ---------- */
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; margin-bottom: 16px; align-items: start; }
.f { display: flex; flex-direction: column; gap: 5px; width: 100%; min-width: 0; } .f label, label { font-weight: 700; font-size: 12.5px; color: var(--text-2); }
.f small { color: var(--muted); font-size: 12px; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]), select, textarea {
  width: 100%; max-width: 100%; min-height: 42px; padding: 10px 12px; font: inherit; line-height: 1.4; color: var(--text);
  background: var(--input-bg); border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
input:hover:not(:disabled), select:hover:not(:disabled), textarea:hover:not(:disabled) { border-color: color-mix(in srgb, var(--accent-2) 55%, var(--line)); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent-2); box-shadow: 0 0 0 4px var(--focus); }
input:disabled, select:disabled, textarea:disabled { opacity: .6; cursor: not-allowed; background: var(--surface-2); }
select option { background: var(--surface); color: var(--text); }
input[type=checkbox], input[type=radio] { width: 17px; height: 17px; accent-color: var(--accent); flex: none; vertical-align: middle; cursor: pointer; }
input[type=file] { max-width: 100%; color: var(--text-2); }
input[type=file]::file-selector-button { margin-right: 10px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent-2); }
input[type=date], input[type=time], input[type=datetime-local], input[type=month] { color-scheme: inherit; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .inline > * { min-width: 0; } .inline input { flex: 1 1 180px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; } .check input { width: 17px; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; } .filters .f { flex: 1 1 170px; min-width: min(100%, 150px); }
.tools { display: flex; gap: 6px; } .tsearch { min-width: 190px; width: auto; min-height: 36px; padding: 6px 11px; font-size: 13px; }
td input:not([type=checkbox]):not([type=radio]), td select, td textarea { min-width: 90px; padding: 8px 10px; min-height: 38px; }
.permission-toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 16px 0 12px; } .permission-toolbar .muted { margin-left: auto; font-size: 12px; }
.permission-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 9px; }
.permission-item, .weekly-off-option { display: flex; align-items: center; gap: 10px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--text); font-size: 12.5px; font-weight: 650; overflow-wrap: anywhere; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.permission-item:hover, .weekly-off-option:hover { border-color: var(--accent-2); background: var(--surface-2); }
.permission-item:has(input:checked), .weekly-off-option.selected { border-color: var(--accent-2); background: var(--accent-soft); color: var(--accent-text); }
.permission-name { color: inherit; }
.weekly-off-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); gap: 9px; margin-top: 8px; } .weekly-off-option { justify-content: center; }
.selected-offdays { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); font-size: 12px; }

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 9px 16px; border: 1px solid transparent; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-accent); font: inherit; font-weight: 700; line-height: 1.25; cursor: pointer; white-space: normal; max-width: 100%;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 32%, transparent); transition: transform .14s, box-shadow .14s, background .14s, border-color .14s, color .14s;
}
.btn:hover { background: linear-gradient(135deg, var(--accent-hover), var(--accent)); color: var(--on-accent); transform: translateY(-1px); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 40%, transparent); }
.btn:active { transform: translateY(0); } .btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.sm { min-height: 32px; padding: 6px 11px; font-size: 12px; border-radius: 9px; }
.btn.ghost { background: transparent; color: var(--text-2); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent-2); box-shadow: none; }
.btn.sec { background: var(--text); color: var(--bg); border-color: transparent; } .btn.sec:hover { background: var(--text-2); color: var(--bg); }
.btn.ok { background: var(--ok); color: #fff; } .btn.ok:hover { background: color-mix(in srgb, var(--ok) 85%, #000); color: #fff; }
.btn.bad { background: var(--bad); color: #fff; } .btn.bad:hover { background: color-mix(in srgb, var(--bad) 85%, #000); color: #fff; }
.btn.ok, .btn.bad { box-shadow: none; }
.btn.gold { background: var(--accent-soft); color: var(--accent-text); border-color: color-mix(in srgb, var(--accent-2) 40%, transparent); box-shadow: none; }
.btn.gold:hover { background: var(--accent-2); color: #fff; }
.btn i { pointer-events: none; }

/* ---------- 8. Tables ---------- */
.tw { width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; color: var(--text); } .tw table { min-width: 620px; }
th, td { padding: 11px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
th { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); }
tbody tr { transition: background .12s; } tbody tr:hover td { background: var(--surface-3); color: var(--text); }
tbody tr:last-child td { border-bottom: 0; } tfoot td { font-weight: 800; background: var(--surface-2); } td.n, th.n { text-align: right; }
td a { color: var(--accent-text); font-weight: 600; } td a:hover { color: var(--accent); text-decoration: underline; }
.empty { text-align: center; color: var(--muted); padding: 28px; }
.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.pager a, .pager span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; color: var(--text-2); background: var(--surface); transition: .14s; }
.pager a:hover { border-color: var(--accent-2); background: var(--accent-soft); color: var(--accent-text); } .pager span { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- 9. Badges, flash, toasts ---------- */
.badge, .pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; border: 1px solid transparent; background: var(--surface-3); color: var(--text-2); max-width: 100%; }
.badge.ok, .badge.inst, .pill.ok { background: var(--ok-bg); color: var(--ok-text); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.badge.warn, .badge.manager, .pill.warn { background: var(--warn-bg); color: var(--warn-text); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.badge.info, .badge.book, .pill.info { background: var(--info-bg); color: var(--info-text); border-color: color-mix(in srgb, var(--info) 30%, transparent); }
.badge.bad, .badge.void, .pill.bad { background: var(--bad-bg); color: var(--bad-text); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.badge.admin, .pill.crimson { background: var(--accent-soft); color: var(--accent-text); border-color: color-mix(in srgb, var(--accent-2) 40%, transparent); }
.badge.off, .badge.auto, .pill.muted { background: var(--surface-3); color: var(--muted); }
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 600; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); }
.flash.ok { background: var(--ok-bg); color: var(--ok-text); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.flash.err { background: var(--bad-bg); color: var(--bad-text); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.flash.warn { background: var(--warn-bg); color: var(--warn-text); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.badge.bad { background: var(--bad-bg); color: var(--bad-text); }
#toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 300; }
.toast { background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; max-width: 340px; }
.toast.err { background: var(--bad); color: #fff; } .toast.ok { background: var(--ok); color: #fff; }
.notif-dot { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; display: inline-grid; place-items: center; border-radius: 99px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 800; }

/* ---------- 10. Subnav ---------- */
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.subnav a { padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 13px; background: var(--surface); color: var(--text-2); border: 1px solid var(--line); transition: .14s; }
.subnav a:hover { border-color: var(--accent-2); background: var(--accent-soft); color: var(--accent-text); }
.subnav a.on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; }

/* ---------- 11. Receipt form / misc ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; } .sum { position: sticky; top: 84px; }
.sum .amt { font-size: 30px; font-weight: 800; color: var(--accent-text); } .sum .words { color: var(--muted); font-style: italic; min-height: 40px; }
.sum dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin-top: 12px; font-size: 13px; } .sum dt { color: var(--muted); } .sum dd { font-weight: 700; text-align: right; overflow: hidden; text-overflow: ellipsis; }
.done { display: none; background: var(--warn-bg); color: var(--warn-text); border: 1px dashed var(--warn); border-radius: 12px; padding: 14px; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.inline-note, .hint { color: var(--muted); font-size: 12px; }

/* ---------- 12. Settings hero ---------- */
.hr-settings-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; margin: 0 0 20px; border-radius: 20px; color: #fff; background: radial-gradient(circle at 85% 20%, rgba(196, 181, 253, .3), transparent 24%), linear-gradient(120deg, #251044, #5b21b6 65%, #7c3aed); box-shadow: 0 14px 34px rgba(76, 29, 149, .22); }
.hr-settings-hero .eyebrow { font-size: 10px; letter-spacing: .16em; font-weight: 800; color: #d8c8ff; } .hr-settings-hero h2 { font-size: 23px; line-height: 1.25; margin: 7px 0; color: #fff; } .hr-settings-hero p { color: #e5dcf8; font-size: 13px; }
.hero-mark { width: 58px; height: 58px; display: grid; place-items: center; flex: none; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .12); border-radius: 17px; font-size: 25px; color: #fff; }
.hr-settings-card { padding: 0; overflow: hidden; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 23px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.section-heading h3 { margin: 0 0 4px; } .section-heading p { font-size: 12px; color: var(--muted); }
.settings-chip { padding: 6px 11px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 700; }
.settings-form { padding: 22px; } .settings-savebar { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px -22px -22px; padding: 14px 22px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.settings-time-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }

/* ---------- 13. Kanban + chat ---------- */
.kanban-grid { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; align-items: start; overflow-x: auto; padding-bottom: 10px; }
.kanban-col { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-height: 300px; }
.kanban-col-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 12px; margin-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 13.5px; }
.kanban-cards { display: grid; gap: 10px; }
.kanban-card { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 12px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.kanban-card:hover { border-color: var(--accent-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.adv-chat-wrap { display: grid; grid-template-columns: 270px 1fr; min-height: 580px; }
.adv-chat-side { background: var(--surface-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.adv-chat-head { display: flex; justify-content: space-between; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.adv-chat-list { flex: 1; overflow-y: auto; padding: 6px 10px 14px; display: flex; flex-direction: column; gap: 4px; max-height: 500px; }
.roster-sec { font-size: 10px; font-weight: 800; letter-spacing: .12em; color: var(--muted); padding: 10px 8px 4px; }
.roster-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; text-align: left; transition: .14s; }
.roster-item:hover { background: var(--surface-3); color: var(--text); } .roster-item.on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent-2) 45%, transparent); color: var(--accent-text); font-weight: 700; }
.dot-on { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 8px #10b981; flex: none; } .dot-off { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); opacity: .55; flex: none; }
.unread-badge { background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.adv-chat-main { display: flex; flex-direction: column; background: var(--bg); min-width: 0; }
.adv-chat-topbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.adv-chat-feed { flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; max-height: 430px; min-height: 360px; }
.chat-msg { max-width: 78%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.chat-msg.me { align-self: flex-end; color: #fff; background: linear-gradient(135deg, #5b21b6, #7c3aed); border-bottom-right-radius: 4px; }
.chat-msg.them { align-self: flex-start; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-meta { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 4px; font-size: 11px; opacity: .85; }
.adv-typing-bar { min-height: 20px; padding: 0 16px 4px; font-size: 11.5px; color: var(--accent-text); font-style: italic; }
.adv-reply-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; background: var(--surface-2); border-top: 1px solid var(--line); border-left: 3px solid var(--accent-2); }
.adv-emoji-bar { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px 14px; background: var(--surface); border-top: 1px solid var(--line); }
.emoji-btn { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; cursor: pointer; font-size: 16px; } .emoji-btn:hover { border-color: var(--accent-2); background: var(--accent-soft); }
.adv-chat-composer { display: flex; gap: 8px; align-items: center; padding: 10px 14px; background: var(--surface); border-top: 1px solid var(--line); }
.chat-quote { font-size: 11.5px; padding: 5px 8px; margin-bottom: 6px; border-left: 2px solid #c4b5fd; background: rgba(0, 0, 0, .18); border-radius: 5px; }
.msg-acts { display: inline-flex; gap: 6px; margin-right: 4px; opacity: .7; } .msg-acts button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 11px; padding: 0; } .msg-acts button:hover { opacity: 1; }
.tick-pending, .tick-sent, .tick-delivered { color: var(--muted); } .tick-seen { color: var(--accent-2); } .tick-failed { color: var(--bad); cursor: pointer; }
.react-slot { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.react-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 99px; background: rgba(0, 0, 0, .18); border: 1px solid rgba(167, 139, 250, .4); color: inherit; font-size: 11.5px; cursor: pointer; }
.react-pill.mine { background: rgba(124, 58, 237, .5); border-color: #c4b5fd; color: #fff; }
.react-wrap { position: relative; display: inline-flex; }
.react-pop { display: none; position: absolute; bottom: 20px; right: 0; z-index: 40; gap: 4px; padding: 4px 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; box-shadow: var(--shadow-lg); }
.react-wrap:hover .react-pop { display: inline-flex; } .react-pop button { font-size: 15px; padding: 2px 4px; opacity: 1; } .react-pop button:hover { transform: scale(1.25); }

/* ---------- 14. Modal, palette, notifications ---------- */
.sm-modal { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; z-index: 200; background: var(--overlay); backdrop-filter: blur(6px); }
.sm-modal-box { width: 100%; max-width: 440px; padding: 22px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); }
.palette { position: fixed; inset: 0; display: none; place-items: start center; padding-top: 10vh; z-index: 250; background: var(--overlay); backdrop-filter: blur(8px); } .palette.on { display: grid; }
.palette-box { width: min(620px, calc(100vw - 24px)); overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); }
.palette-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--muted); }
.palette-top input { flex: 1; min-height: 28px; padding: 0; border: 0; background: transparent; box-shadow: none; font-size: 15px; color: var(--text); } .palette-top input:focus { box-shadow: none; }
.palette-top kbd, .palette-foot kbd { padding: 2px 6px; border-radius: 5px; font-size: 11px; background: var(--surface); border: 1px solid var(--line); color: var(--accent-text); }
.palette-list { max-height: 360px; overflow-y: auto; padding: 8px; display: grid; gap: 4px; }
.pal-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; color: var(--text); }
.pal-item:hover, .pal-item.sel { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent-2) 40%, transparent); color: var(--accent-text); }
.pal-ico { width: 32px; height: 32px; display: grid; place-items: center; flex: none; border-radius: 9px; background: var(--surface-2); color: var(--accent-2); }
.pal-copy { flex: 1; min-width: 0; } .pal-copy b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pal-copy small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-item:hover small, .pal-item.sel small { color: var(--text-2); }
.pal-tag { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); }
.palette-foot { display: flex; gap: 14px; padding: 9px 16px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 11.5px; color: var(--muted); }
.sm-notif-drop { position: absolute; right: 0; top: 42px; width: 310px; z-index: 120; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); }
.sm-notif-item { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); color: var(--text); font-size: 12.5px; }
.sm-notif-item:hover { background: var(--accent-soft); color: var(--accent-text); }

/* ---------- 15. SHOPNO AI assistant ---------- */
.sm-ai-fab { position: fixed; right: 22px; bottom: 22px; z-index: 150; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: linear-gradient(135deg, #5b21b6, #7c3aed, #9333ea); color: #fff; font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; box-shadow: 0 12px 34px rgba(124, 58, 237, .45); transition: transform .18s, box-shadow .18s; }
.sm-ai-fab:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 16px 40px rgba(124, 58, 237, .6); }
.sm-ai-panel { position: fixed; right: 22px; bottom: 78px; z-index: 151; width: min(430px, calc(100vw - 28px)); height: min(600px, calc(100vh - 110px)); display: none; flex-direction: column; overflow: hidden; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); }
.sm-ai-panel.open { display: flex; }
.sm-ai-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); } .sm-ai-head b { display: block; font-size: 14px; color: var(--text); } .sm-ai-head small { color: var(--muted); font-size: 11px; }
.sm-ai-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.sm-ai-msg { max-width: 92%; padding: 10px 13px; border-radius: 14px; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.sm-ai-msg.user { align-self: flex-end; color: #fff; background: linear-gradient(135deg, #5b21b6, #7c3aed); border-bottom-right-radius: 4px; }
.sm-ai-msg.bot { align-self: flex-start; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.sm-ai-msg code { font-size: 12px; }
.sm-ai-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin-top: 10px; }
.sm-ai-metric { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; } .sm-ai-metric small { display: block; font-size: 10.5px; color: var(--muted); } .sm-ai-metric b { font-size: 13.5px; color: var(--text); }
.sm-ai-metric b.tone-ok { color: var(--ok-text); } .sm-ai-metric b.tone-crimson { color: var(--bad-text); } .sm-ai-metric b.tone-warn { color: var(--warn-text); } .sm-ai-metric b.tone-info { color: var(--accent-text); } .sm-ai-metric b.tone-muted { color: var(--muted); }
.sm-ai-table { width: 100%; border-collapse: collapse; margin-top: 9px; font-size: 11.5px; } .sm-ai-table th, .sm-ai-table td { padding: 5px 6px; text-align: left; border-bottom: 1px solid var(--line); white-space: normal; background: transparent; } .sm-ai-table th { color: var(--accent-text); font-size: 10.5px; }
.sm-ai-table tbody tr:hover td { background: var(--surface-2); }
.sm-ai-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sm-ai-links a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 9px; font-size: 12px; font-weight: 600; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent-2) 45%, transparent); color: var(--accent-text); transition: .14s; }
.sm-ai-links a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.sm-ai-chips { display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto; background: var(--surface-2); border-top: 1px solid var(--line); }
.sm-ai-chip { white-space: nowrap; padding: 4px 11px; border-radius: 99px; font-size: 11.5px; cursor: pointer; background: var(--surface); border: 1px solid var(--line); color: var(--accent-text); transition: .14s; }
.sm-ai-chip:hover { border-color: var(--accent-2); background: var(--accent-soft); color: var(--accent-text); }
.sm-ai-form { display: flex; gap: 8px; padding: 10px 12px; background: var(--surface-2); border-top: 1px solid var(--line); } .sm-ai-form input { flex: 1; min-height: 38px; padding: 6px 12px; font-size: 13px; border-radius: 99px; }
.sm-ai-fb { margin-top: 8px; display: flex; gap: 6px; align-items: center; opacity: .8; }
.sm-ai-fb button { background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 1px 8px; cursor: pointer; font-size: 13px; transition: .14s; } .sm-ai-fb button:hover { background: var(--accent-soft); border-color: var(--accent-2); }
.sm-ai-fb small { font-size: 11px; color: var(--muted); }
.sm-ai-typing { display: inline-flex; gap: 4px; padding: 4px 2px; } .sm-ai-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); animation: smAiBlink 1.1s infinite ease-in-out; }
.sm-ai-typing i:nth-child(2) { animation-delay: .18s; } .sm-ai-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes smAiBlink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* ---------- 16. Login / install ---------- */
body.auth, body.lg-body { min-height: 100vh; }
body.auth { display: grid; place-items: center; padding: 24px; }
.auth-card { width: 100%; max-width: 440px; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); } .auth-card.wide { max-width: 640px; }
.auth-card h1 { font-size: 23px; margin: 6px 0 4px; } .auth-card .sub { color: var(--muted); margin-bottom: 16px; }
.auth-card h4 { margin: 14px 0 8px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-text); }
.auth-brand { display: flex; gap: 11px; align-items: center; margin-bottom: 10px; } .auth-brand .mark { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; overflow: hidden; } .auth-brand small { display: block; color: var(--muted); }
.lg-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.lg-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 54px clamp(28px, 6vw, 84px); color: #fff;
  background: radial-gradient(circle at 80% 20%, rgba(167, 139, 250, .35), transparent 38%), linear-gradient(145deg, #0e0a20 0%, #1c1040 55%, #3b1a80 100%); }
.lg-art .brand-row { display: flex; align-items: center; gap: 14px; } .lg-art .brand-row img { width: 46px; height: 46px; object-fit: contain; } .lg-art .brand-row strong { font-size: 15px; letter-spacing: .12em; color: #fff; }
.lg-art .tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; margin-bottom: 20px; border: 1px solid rgba(196, 181, 253, .5); background: rgba(139, 92, 246, .22); border-radius: 999px; color: #ede9fe; font-size: 12px; font-weight: 700; letter-spacing: .05em; }
.lg-art h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -.035em; max-width: 560px; margin-bottom: 16px; color: #fff; } .lg-art p { color: #c9c1e6; font-size: 15px; line-height: 1.75; max-width: 500px; }
.lg-art ul { list-style: none; display: grid; gap: 12px; margin-top: 26px; color: #ece8fb; font-size: 14px; } .lg-art li { display: flex; align-items: center; gap: 10px; }
.lg-art li i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: rgba(139, 92, 246, .3); color: #ddd6fe; font-size: 12px; }
.lg-art small { color: #a69ccc; }
.lg-box { display: grid; place-items: center; padding: 36px 24px; position: relative; }
.lg-theme { position: absolute; top: 18px; right: 18px; }
.lg-form { width: 100%; max-width: 420px; padding: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); }
.lg-form .sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; } .lg-form .sec-head b { display: block; font-size: 12.5px; letter-spacing: .06em; color: var(--text); } .lg-form .sec-head small { color: var(--muted); }
.lg-form .sec-ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); font-size: 17px; }
.lg-form h1 { font-size: 27px; letter-spacing: -.03em; color: var(--text); margin-bottom: 6px; } .lg-form .sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.lg-form .f { margin-bottom: 16px; } .inp-wrap { position: relative; }
.inp-wrap i.lead { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.lg-form .inp-wrap input { height: 46px; padding: 0 44px; }
.eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; } .eye:hover { background: var(--surface-3); color: var(--accent-text); }
.lg-form .btn.block { width: 100%; height: 48px; font-size: 14.5px; }
.lg-form .foot-note { margin-top: 20px; text-align: center; font-size: 12px; color: var(--muted); } .lg-form .foot-note a { font-weight: 700; }
.credit { margin-top: 22px; text-align: center; font-size: 12px; color: var(--muted); } .credit a { font-weight: 700; }

/* ---------- 17. Developer credit ---------- */
.dev-credit { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dev-credit a { font-weight: 700; }

/* ---------- 18. Responsive ---------- */
@media (max-width: 1100px) { .stats.s5 { grid-template-columns: repeat(3, 1fr); } .grid3 { grid-template-columns: 1fr 1fr; } .kanban-grid { grid-template-columns: repeat(2, minmax(240px, 1fr)); } }
@media (max-width: 980px) {
  .side { transform: translateX(-100%); } .side.open { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .5); } .main { margin-left: 0; } .burger { display: inline-block; }
  .stats, .stats.s3, .stats.s4, .stats.s5 { grid-template-columns: 1fr 1fr; } .grid2, .grid3, .split { grid-template-columns: 1fr; } .sum { position: static; }
  .lg-wrap { grid-template-columns: 1fr; } .lg-art { display: none; } .adv-chat-wrap { grid-template-columns: 1fr; } .cmdk span, .cmdk kbd { display: none; } .top { gap: 8px; } .top h1 { font-size: 17px; }
}
@media (max-width: 700px) { .top { padding: 12px 16px; } .page { padding: 17px; } .card { padding: 17px; } .hr-settings-hero { padding: 20px; } .hr-settings-hero h2 { font-size: 19px; } .section-heading { padding: 17px 16px; } .settings-form { padding: 16px; } .settings-savebar { margin: 18px -16px -16px; padding: 13px 16px; flex-direction: column; align-items: stretch; } .kanban-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .stats, .stats.s3, .stats.s4, .stats.s5 { grid-template-columns: 1fr; } .row { grid-template-columns: 1fr; gap: 12px; } .page { padding: 13px; } .top .date { display: none; } .foot { padding: 12px 16px; } .permission-toolbar .muted { width: 100%; margin-left: 0; } .inline > * { flex: 1 1 100%; } .lg-form { padding: 26px 20px; } .sm-ai-fab span { display: none; } .sm-ai-fab { padding: 14px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- 19. Print (always white paper) ---------- */
@media print {
  @page { size: A4; margin: 10mm; }
  html, body, .main, .page { background: #fff !important; color: #111 !important; margin: 0 !important; padding: 0 !important; width: 100% !important; max-width: none !important; box-shadow: none !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; font-size: 12px; }
  .side, .top, .foot, .sm-offline-banner, .sm-ai-root, .palette, .sm-modal, .sm-notif-drop, .noprint, .btn, .filters, .subnav, .tools, .tsearch, #toasts, .burger, .pager, form.inline { display: none !important; }
  .card, .panel, .stat, .stat.hero, .kpi-card, .tw { background: #fff !important; color: #111 !important; border: 1px solid #d1d5db !important; box-shadow: none !important; backdrop-filter: none !important; border-radius: 4px !important; overflow: visible !important; break-inside: avoid-page; padding: 12px; margin-bottom: 10px; }
  .card h1, .card h2, .card h3, .card h4, .stat b, .stat span, .kpi-card b, .kpi-card small, .muted, b, strong, p, span, td, th, label { color: #111 !important; }
  table { min-width: 0 !important; background: #fff !important; font-size: 11px; } th { background: #f3f4f6 !important; color: #111 !important; border: 1px solid #d1d5db !important; padding: 5px 7px; }
  td { background: #fff !important; color: #111 !important; border: 1px solid #e5e7eb !important; padding: 5px 7px; white-space: normal; }
  input, select, textarea { background: transparent !important; color: #111 !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
  .badge, .pill { background: #f3f4f6 !important; color: #111 !important; border: 1px solid #9ca3af !important; }
  .grid2, .grid3 { display: block; } .stats { grid-template-columns: repeat(4, 1fr) !important; gap: 8px; }
  .print-head { display: flex !important; align-items: center; gap: 14px; border-bottom: 2px solid #6d28d9; padding-bottom: 10px; margin-bottom: 14px; }
  .print-head img { max-height: 64px; max-width: 120px; object-fit: contain; } .print-head .ph-co { flex: 1; text-align: center; } .print-head h2 { color: #6d28d9 !important; font-size: 20px; text-transform: uppercase; }
  .print-head p { font-size: 11px; } .print-head .ph-title { text-align: right; font-size: 12px; } .print-head .ph-title b { display: block; font-size: 14px; color: #6d28d9 !important; }
  .print-foot { display: flex !important; justify-content: space-between; border-top: 1px solid #9ca3af; margin-top: 14px; padding-top: 6px; font-size: 10px; color: #4b5563 !important; }
  body.print-one .page > *:not(.print-head):not(.only-print):not(.print-foot) { display: none !important; }
}
