/* Game Karma HRMS — brand: navy + blue → teal → green → orange (from the Game Karma logo). Layout: left module rail, top bar, sub-tabs, cards. */
:root {
  --brand: #0d5bb5; --brand-2: #0f9ea8; --brand-dark: #0b2a5b; --brand-soft: #e8f1fb; --accent: #f7931e; --accent-soft: #fff1e0; --teal: #0f9ea8; --green: #7fc179; --gk-grad: linear-gradient(90deg,#0d5bb5 0%,#0f9ea8 35%,#7fc179 65%,#f7931e 100%);
  --bg: #f4f6fa; --card: #fff; --ink: #1f2937; --ink-2: #4b5563; --muted: #8a94a3; --line: #e6e9ef; --line-2: #f0f2f6;
  --ok: #16a34a; --ok-soft: #e8f7ee; --warn: #d97706; --warn-soft: #fff6e5; --bad: #dc2626; --bad-soft: #fdecec; --info: #2563eb; --info-soft: #eaf1ff;
  --r: 10px; --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06); --rail: 232px; --top: 56px;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif; color: var(--ink); font-size: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
h1 { font-size: 20px; } h2 { font-size: 16px; } h3 { font-size: 14px; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
.boot { min-height: 100vh; display: grid; place-content: center; text-align: center; color: var(--muted); }

/* ---------- auth screens ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { background: linear-gradient(155deg, #0b2a5b 0%, #0d4f9e 50%, #0f9ea8 100%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-art::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -120px; bottom: -140px; background: rgba(247,147,30,.18); }
.auth-art h1 { font-size: 34px; line-height: 1.2; max-width: 460px; margin: 28px 0 12px; }
.auth-art p { opacity: .85; max-width: 460px; line-height: 1.6; }
.auth-art ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; max-width: 460px; }
.auth-art li { display: flex; gap: 10px; align-items: center; opacity: .95; }
.auth-art li::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 12px; flex: none; }
.brandline { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.auth-form { display: grid; place-items: center; padding: 32px 20px; background: #fff; }
.auth-box { width: 100%; max-width: 380px; }
.auth-box h2 { font-size: 22px; margin-bottom: 6px; }
.auth-box .sub { color: var(--muted); margin: 0 0 22px; }
.auth-alt { display: grid; gap: 8px; margin-top: 18px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 18px 0 4px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- form controls ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 12px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=month], input[type=search], input[type=tel], select, textarea {
  width: 100%; border: 1px solid #d5dae3; border-radius: 8px; padding: 9px 11px; background: #fff; outline: none; min-height: 38px; }
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(15,158,168,.18); }
.pw { position: relative; } .pw input { padding-right: 42px; }
.pw button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 6px 8px; cursor: pointer; color: var(--muted); }
.check { display: flex; align-items: center; gap: 8px; margin: 6px 0; cursor: pointer; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; } .row.between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #d5dae3; background: #fff; border-radius: 8px; padding: 8px 14px; cursor: pointer; font-weight: 500; min-height: 36px; white-space: nowrap; color: var(--ink); text-decoration: none !important; }
.btn:hover { background: #f8fafc; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; } .btn.primary:hover { background: #0b4e9c; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { color: var(--bad); border-color: #f3c2c2; } .btn.danger:hover { background: var(--bad-soft); }
.btn.ghost { border-color: transparent; background: transparent; } .btn.ghost:hover { background: var(--line-2); }
.btn.sm { padding: 4px 10px; min-height: 30px; font-size: 13px; }
.btn.block { width: 100%; } .btn.lg { min-height: 44px; font-size: 15px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.linkbtn { border: 0; background: none; color: var(--brand); cursor: pointer; padding: 0; font-weight: 500; }

.msg { padding: 10px 12px; border-radius: 8px; margin: 0 0 14px; font-size: 13.5px; line-height: 1.5; }
.msg.err { background: var(--bad-soft); color: #991b1b; } .msg.ok { background: var(--ok-soft); color: #166534; } .msg.info { background: var(--info-soft); color: #1e3a8a; } .msg.warn { background: var(--warn-soft); color: #92400e; }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: var(--rail) 1fr; min-height: 100vh; }
.rail { background: var(--brand-dark); color: #d3e2f3; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; scrollbar-width: thin; }
.rail .brandline { color: #fff; padding: 14px 16px; height: var(--top); font-size: 16px; }
.rail .brandline small { display: block; font-weight: 500; font-size: 11px; color: #9db8dc; }
.navgroup { padding: 6px 8px; }
.navlabel { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #7d9cc8; padding: 10px 10px 4px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: #d3e2f3; text-decoration: none; font-size: 13.5px; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.on { background: rgba(15,158,168,.22); color: #fff; font-weight: 600; }
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.nav a .pill { margin-left: auto; }
.nav .sub { display: none; padding-left: 28px; } .nav .open > .sub { display: block; }
.nav .sub a { padding: 6px 10px; font-size: 13px; }
.rail-foot { margin-top: auto; padding: 12px 16px; font-size: 11.5px; color: #7d9cc8; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { height: var(--top); background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 20px; position: sticky; top: 0; z-index: 20; }
.top .menu { display: none; }
.top .company { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.search { position: relative; flex: 1; max-width: 440px; margin-left: 12px; }
.search input { background: var(--bg); border-color: transparent; padding-left: 34px; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; color: var(--muted); }
.search-results { position: absolute; top: 44px; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(16,24,40,.12); max-height: 360px; overflow: auto; z-index: 30; }
.search-results a { display: flex; gap: 10px; align-items: center; padding: 8px 12px; color: var(--ink); text-decoration: none; }
.search-results a:hover { background: var(--bg); }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.iconbtn { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.iconbtn:hover { background: var(--line-2); }
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn .dot { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 10.5px; display: grid; place-items: center; padding: 0 4px; font-weight: 600; }
.me-menu { position: relative; }
.dropdown { position: absolute; right: 0; top: 46px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(16,24,40,.12); min-width: 220px; padding: 6px; z-index: 40; }
.dropdown a, .dropdown button { display: flex; width: 100%; text-align: left; gap: 8px; padding: 8px 10px; border-radius: 6px; border: 0; background: none; cursor: pointer; color: var(--ink); text-decoration: none; }
.dropdown a:hover, .dropdown button:hover { background: var(--bg); }
.dropdown .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }

.page { padding: 20px 24px 60px; max-width: 1320px; width: 100%; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 0 0 18px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none; font-weight: 500; }
.tabs a.on { color: var(--brand); border-color: var(--brand); }
.tabs a:hover { color: var(--brand); }

/* ---------- cards & widgets ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; min-width: 0; }
.card + .card { margin-top: 16px; }
.cols > .card + .card, .cols3 > .card + .card, .cards > .card + .card, .kanban .card + .card { margin-top: 0; }
.card-h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.card-h h2, .card-h h3 { font-size: 14.5px; }
.card-h .more { margin-left: auto; font-size: 13px; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); align-items: start; }
.cols { display: grid; gap: 16px; grid-template-columns: 2fr 1fr; align-items: start; }
.cols3 { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); align-items: start; }
.cols > *, .cols3 > * { min-width: 0; }
.stack > * + * { margin-top: 16px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 22px; font-weight: 700; margin-top: 4px; }
.stat span { color: var(--muted); font-size: 12.5px; }
.stat small { color: var(--ok); font-size: 12px; }
.empty { color: var(--muted); text-align: center; padding: 26px 10px; font-size: 13.5px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .nowrap { white-space: nowrap; } .right { text-align: right; } .b { font-weight: 600; }
.hello { background: linear-gradient(120deg, #0b2a5b, #0d5bb5 70%, #0f9ea8); color: #fff; border: 0; position: relative; overflow: hidden; }
.hello::after { content: ""; position: absolute; width: 220px; height: 220px; right: -60px; top: -80px; border-radius: 50%; background: rgba(247,147,30,.22); }
.hello h1 { font-size: 22px; }
.hello .muted { color: #bfe3de; }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: #15803d; } .pill.warn { background: var(--warn-soft); color: #b45309; } .pill.bad { background: var(--bad-soft); color: #b91c1c; }
.pill.info { background: var(--info-soft); color: #1d4ed8; } .pill.brand { background: var(--brand-soft); color: var(--brand); } .pill.accent { background: var(--accent-soft); color: #b45309; }
.pill.count { background: var(--accent); color: #fff; }

.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: inline-grid; place-items: center; font-weight: 600; font-size: 12.5px; flex: none; overflow: hidden; object-fit: cover; }
.avatar.lg { width: 72px; height: 72px; font-size: 24px; } .avatar.sm { width: 26px; height: 26px; font-size: 10.5px; } .avatar.xl { width: 96px; height: 96px; font-size: 30px; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person .nm { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .ds { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.people-row { display: flex; flex-wrap: wrap; gap: 14px; }
.people-row .person { flex-direction: column; text-align: center; width: 76px; gap: 6px; }
.people-row .nm { font-size: 12px; max-width: 76px; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }

/* tables */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-weight: 600; color: var(--ink-2); background: #f8f9fb; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 12.5px; }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: #fafbfc; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input[type=search] { max-width: 280px; }
.toolbar select { width: auto; }

/* leave balance cards */
.bal { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; background: #fff; position: relative; overflow: hidden; }
.bal::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c, var(--brand)); }
.bal b { font-size: 26px; } .bal .of { color: var(--muted); }
.bal .meta { display: flex; gap: 12px; color: var(--muted); font-size: 12px; margin-top: 8px; flex-wrap: wrap; }
.meter { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; margin-top: 10px; }
.meter i { display: block; height: 100%; background: var(--c, var(--brand)); border-radius: 3px; }

/* attendance */
.clock { text-align: center; }
.clock .time { font-size: 34px; font-weight: 700; letter-spacing: -.5px; }
.clock .worked { color: var(--muted); margin: 4px 0 14px; }
.punchbtn { width: 100%; min-height: 48px; font-size: 16px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .dow { text-align: center; color: var(--muted); font-size: 11.5px; font-weight: 600; padding-bottom: 2px; }
.cal .d { border: 1px solid var(--line); border-radius: 8px; padding: 6px; min-height: 64px; background: #fff; font-size: 11.5px; display: flex; flex-direction: column; gap: 2px; cursor: default; }
.cal .d .n { font-weight: 600; font-size: 12.5px; }
.cal .d.off { background: #f8f9fb; color: var(--muted); }
.cal .d.hol { background: #f3f0ff; } .cal .d.lv { background: var(--info-soft); } .cal .d.abs { background: var(--bad-soft); } .cal .d.late { box-shadow: inset 0 -3px 0 var(--warn); }
.cal .d.today { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.cal .d.click { cursor: pointer; } .cal .d.click:hover { border-color: var(--brand-2); }
.cal .d.blank { border: 0; background: none; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.selfie-video { width: 100%; border-radius: 10px; background: #000; aspect-ratio: 4/3; object-fit: cover; transform: scaleX(-1); }
.queue { background: var(--warn-soft); color: #92400e; border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }

/* feed */
.post { border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 14px 16px; box-shadow: var(--shadow); }
.post + .post { margin-top: 12px; }
.post .head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.post .when { color: var(--muted); font-size: 12px; }
.post .body { white-space: pre-wrap; line-height: 1.55; }
.post .actions { display: flex; gap: 6px; margin-top: 10px; border-top: 1px solid var(--line-2); padding-top: 8px; }
.post.praise { background: linear-gradient(135deg, #fff, #fff8e8); border-color: #f6dfae; }
.post.ann { border-left: 4px solid var(--brand); }
.praise-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); color: #92400e; border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: 12.5px; }
.pollopt { position: relative; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; margin-top: 8px; cursor: pointer; overflow: hidden; background: #fff; display: flex; justify-content: space-between; width: 100%; text-align: left; }
.pollopt i { position: absolute; inset: 0 auto 0 0; background: var(--brand-soft); z-index: 0; }
.pollopt span, .pollopt b { position: relative; z-index: 1; }
.pollopt.mine { border-color: var(--brand-2); }
.comment { display: flex; gap: 8px; margin-top: 8px; font-size: 13px; }
.comment .bubble { background: var(--bg); border-radius: 10px; padding: 6px 10px; }

/* charts */
.bars { display: grid; gap: 8px; }
.bars .bar { display: grid; grid-template-columns: 130px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; }
.bars .bar .lab { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.bars .bar .track { height: 10px; background: var(--line-2); border-radius: 5px; overflow: hidden; }
.bars .bar .track i { display: block; height: 100%; background: var(--brand-2); border-radius: 5px; }
.vbars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.vbars .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; min-width: 0; }
.vbars .col .pair { display: flex; gap: 2px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.vbars .col i { display: block; width: 40%; max-width: 16px; background: var(--brand-2); border-radius: 3px 3px 0 0; min-height: 2px; }
.vbars .col i.b2 { background: var(--accent); }
.vbars .col span { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.donut { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut svg { width: 120px; height: 120px; flex: none; }
.donut ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 13px; }
.donut li i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }

/* org chart */
.orgtree { overflow: auto; padding: 10px 0 30px; }
.orgtree ul { padding-top: 18px; position: relative; display: flex; justify-content: center; margin: 0; padding-left: 0; }
.orgtree li { list-style: none; text-align: center; position: relative; padding: 18px 6px 0; }
.orgtree li::before, .orgtree li::after { content: ""; position: absolute; top: 0; right: 50%; border-top: 1.5px solid #cfd6df; width: 50%; height: 18px; }
.orgtree li::after { right: auto; left: 50%; border-left: 1.5px solid #cfd6df; }
.orgtree li:only-child::after, .orgtree li:only-child::before { display: none; }
.orgtree li:only-child { padding-top: 0; }
.orgtree li:first-child::before, .orgtree li:last-child::after { border: 0 none; }
.orgtree li:last-child::before { border-right: 1.5px solid #cfd6df; border-radius: 0 6px 0 0; }
.orgtree li:first-child::after { border-radius: 6px 0 0 0; }
.orgtree ul ul::before { content: ""; position: absolute; top: 0; left: 50%; border-left: 1.5px solid #cfd6df; height: 18px; }
.orgtree > ul { padding-top: 0; }
.onode { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 132px; box-shadow: var(--shadow); text-decoration: none !important; color: var(--ink); }
.onode:hover { border-color: var(--brand-2); }
.onode .nm { font-weight: 600; font-size: 12.5px; } .onode .ds { color: var(--muted); font-size: 11.5px; }
.onode .cnt { font-size: 11px; color: var(--brand); cursor: pointer; }

/* profile */
.profile-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.profile-head .info { flex: 1; min-width: 220px; }
.profile-head .facts { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 10px; color: var(--ink-2); font-size: 13px; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 24px; }
.kv div span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 2px; }
.kv div b { font-weight: 500; word-break: break-word; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 16px 26px; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: -6px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 2px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--brand-2); }
.timeline .when { font-size: 12px; color: var(--muted); }

/* modal */
.modal-back { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: grid; place-items: center; z-index: 100; padding: 16px; animation: fade .12s; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.modal.wide { max-width: 820px; }
.modal-h { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-h h2 { font-size: 16px; } .modal-h .x { margin-left: auto; }
.modal-b { padding: 18px 20px; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: #fff; }
@keyframes fade { from { opacity: 0; } }
#toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 200; }
.toast { background: #111827; color: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: 360px; font-size: 13.5px; animation: fade .15s; }
.toast.err { background: #991b1b; } .toast.ok { background: #166534; }

/* preview modules */
.preview-banner { display: flex; gap: 12px; align-items: center; background: linear-gradient(90deg, var(--accent-soft), #fff); border: 1px solid #f6dfae; border-radius: var(--r); padding: 10px 14px; margin-bottom: 16px; font-size: 13px; color: #92400e; }
.fixes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fixes li { display: flex; gap: 8px; font-size: 13px; line-height: 1.45; }
.fixes li::before { content: "★"; color: var(--accent); flex: none; }
.modgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.modcard { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; background: #fff; display: flex; gap: 10px; align-items: flex-start; color: var(--ink); text-decoration: none !important; }
.modcard:hover { border-color: var(--brand-2); }
.modcard .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.modcard .ic svg { width: 18px; height: 18px; }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; }
.kanban .lane { background: #f1f4f8; border-radius: var(--r); padding: 10px; }
.kanban .lane h4 { font-size: 12.5px; color: var(--ink-2); margin: 2px 4px 10px; display: flex; justify-content: space-between; }
.kanban .kc { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-bottom: 8px; font-size: 13px; }
.progress { height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--brand-2); }
.letter { white-space: pre-wrap; font-family: Georgia, "Times New Roman", serif; line-height: 1.7; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 28px 32px; font-size: 14.5px; }
.sig { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 26px; color: #1e3a8a; }

/* mobile */
@media (max-width: 1080px) { .cols { grid-template-columns: 1fr; } .cols3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; } .auth-art { padding: 28px 22px; } .auth-art h1 { font-size: 24px; } .auth-art ul, .auth-art p.long { display: none; }
  .shell { grid-template-columns: 1fr; }
  .rail { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 60; transform: translateX(-100%); transition: transform .2s; }
  .shell.nav-open .rail { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.35); }
  .shell.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 50; }
  .top { padding: 0 10px; } .top .menu { display: grid; } .top .company { display: none; }
  .search { margin-left: 0; }
  .page { padding: 14px 14px 80px; }
  .cols3, .grid2, .grid3 { grid-template-columns: 1fr; }
  .bars .bar { grid-template-columns: 90px 1fr 36px; }
  .cal .d { min-height: 46px; padding: 4px; font-size: 10px; } .cal .d .x { display: none; }
  .hide-sm { display: none !important; }
  .bottomnav { display: flex !important; }
}
.bottomnav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); z-index: 40; padding-bottom: env(safe-area-inset-bottom); }
.bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0; font-size: 10.5px; color: var(--ink-2); text-decoration: none; position: relative; }
.bottomnav a svg { width: 21px; height: 21px; }
.bottomnav a.on { color: var(--brand); }
.bottomnav .dot { position: absolute; top: 3px; left: 55%; background: var(--bad); color: #fff; border-radius: 8px; font-size: 9.5px; padding: 0 5px; }
@media print { .rail, .top, .bottomnav, .no-print, .tabs { display: none !important; } .shell { display: block; } .page { padding: 0; } .card { box-shadow: none; border: 0; } }

.tagline { display: inline-block; background: rgba(247,147,30,.22); color: #fde68a; border: 1px solid rgba(247,147,30,.45); padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.hrbadge { display: inline-block; background: var(--accent-soft); color: #92400e; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; margin: -8px 0 18px; }

/* recruitment */
.match { display: inline-grid; place-items: center; min-width: 44px; height: 24px; padding: 0 8px; border-radius: 999px; font-weight: 700; font-size: 12px; color: var(--m); background: color-mix(in srgb, var(--m) 14%, #fff); font-variant-numeric: tabular-nums; }
.funnel { display: grid; gap: 8px; } .frow { display: grid; grid-template-columns: 110px 1fr 40px; gap: 10px; align-items: center; font-size: 13px; margin-bottom: 6px; }
.fbar { height: 12px; background: var(--line-2); border-radius: 6px; overflow: hidden; } .fbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 6px; }
.frow b { text-align: right; font-variant-numeric: tabular-nums; }
.minipipe { display: flex; gap: 3px; } .minipipe span { min-width: 22px; text-align: center; background: var(--brand-soft); color: var(--brand); border-radius: 4px; font-size: 11.5px; font-weight: 600; padding: 1px 4px; }
.kanban .lane.over { outline: 2px dashed var(--brand-2); outline-offset: -4px; } .kanban .kc[draggable="true"] { cursor: grab; } .kanban .kc.dragging { opacity: .5; }
.kanban .kc a:hover { color: var(--brand) !important; }
.stars { display: flex; gap: 2px; } .stars button { border: 0; background: none; font-size: 24px; line-height: 1; color: #d6dbe3; cursor: pointer; padding: 0 2px; } .stars button.on { color: var(--accent); }
.scorecard { border-top: 1px solid var(--line-2); margin-top: 12px; padding-top: 10px; }
.panelpick { max-height: 200px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
input.autofilled, textarea.autofilled { background: #f0fbf9; border-color: #99e0d6; }
/* Ask Karma assistant */
.askbtn { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 70; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 18px; background: linear-gradient(135deg, #0d5bb5, #0f9ea8); color: #fff; font-weight: 600; box-shadow: 0 10px 28px rgba(13,91,181,.4); cursor: pointer; }
.askbtn.on { background: var(--brand-dark); }
.askpanel { position: fixed; right: 18px; bottom: 80px; width: 380px; max-width: calc(100vw - 24px); height: min(600px, calc(100vh - 110px)); z-index: 71; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.22); display: flex; flex-direction: column; overflow: hidden; }
.askpanel header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--brand-dark); color: #fff; }
.askpanel header .small { color: #9fd0c9; } .askpanel header .iconbtn { color: #fff; }
.askbody { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #f7f9fb; }
.askmsg { max-width: 90%; padding: 10px 12px; border-radius: 14px; line-height: 1.5; font-size: 13.5px; }
.askmsg.bot { background: #fff; border: 1px solid var(--line); border-top-left-radius: 4px; align-self: flex-start; }
.askmsg.me { background: var(--brand); color: #fff; border-top-right-radius: 4px; align-self: flex-end; }
.askmsg a { font-weight: 600; }
.asksugg, .askrel { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.asksugg button, .askrel button { text-align: left; border: 1px solid var(--line); background: var(--brand-soft); color: var(--brand); border-radius: 10px; padding: 7px 10px; cursor: pointer; font: inherit; font-size: 13px; }
.askrel button { background: #fff; }
.askform { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.typing span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); margin: 0 2px; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s } .typing span:nth-child(3) { animation-delay: .4s }
@keyframes blink { 0%, 80%, 100% { opacity: .25 } 40% { opacity: 1 } }
@media (max-width: 860px) { .askbtn { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); padding: 12px; } .askbtn span { display: none; } .askpanel { inset: auto 8px calc(70px + env(safe-area-inset-bottom, 0px)) 8px; width: auto; height: calc(100vh - 150px); } }
@media print { .askbtn, .askpanel { display: none !important; } }
.modgrid .toggle { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.codebox { background: #0b1f1d; color: #d6e6fa; border-radius: 8px; padding: 12px 14px; font: 12.5px/1.55 ui-monospace, Consolas, monospace; white-space: pre; overflow-x: auto; }
.asksupport { padding: 6px 10px 0; background: #fff; border-top: 1px solid var(--line); } .asksupport button { border: 0; background: none; color: var(--brand); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 4px 0; }
.tmsg { padding: 12px 14px; border-radius: 10px; background: var(--bg); margin-bottom: 10px; } .tmsg.gk { background: var(--brand-soft); } .tmsg.internal { background: var(--warn-soft); border: 1px dashed #f6dfae; }
.cpost + .cpost { margin-top: 12px; } .ccomments { border-top: 1px solid var(--line-2); margin-top: 10px; padding-top: 6px; }
/* company branding */
.co-logo{display:flex;justify-content:flex-start;margin:0 0 18px}
.co-logo img{max-height:56px;max-width:220px;object-fit:contain;display:block}
.rail-logo{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:9px;background:#fff;border:1px solid var(--line,#e6eaee);overflow:hidden;flex:none}
.rail-logo img{max-width:30px;max-height:30px;object-fit:contain;display:block}
.tn-logo{width:40px;height:40px;border-radius:10px;border:1px solid var(--line,#e6eaee);background:#fff;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;flex:none}
.tn-logo img{max-width:36px;max-height:36px;object-fit:contain}
.tn-logo.big{width:84px;height:84px;border-radius:16px}.tn-logo.big img{max-width:76px;max-height:76px}
.tn-logo.empty{color:var(--muted,#6b7280);font-weight:700;font-size:15px;background:var(--soft,#eef5fd)}
.logo-drop{display:flex;align-items:center;gap:12px;border:1.5px dashed var(--line,#cfd6df);border-radius:12px;padding:10px 12px}
/* self-onboarding */
.ob-bar{height:8px;border-radius:6px;background:var(--line,#e6eaee);overflow:hidden;margin-top:6px}.ob-bar span{display:block;height:100%;background:linear-gradient(90deg,#0f9ea8,#0d5bb5);border-radius:6px}
.ob-progress{margin-bottom:14px}
.ob-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px}.ob-grid .ob-wide{grid-column:1/-1}
@media (max-width:720px){.ob-grid{grid-template-columns:1fr}}
.ob-f .req,.ob-doc .req{color:var(--bad,#dc2626)}
.ob-flag{background:#fff7ed;border:1px solid #fdba74 !important;border-radius:10px;padding:8px 10px}
.ob-issue{color:#9a3412;font-size:13px;margin:4px 0;font-weight:500}
.ob-tbl input{width:100%;min-width:90px}.ob-tbl td{padding:4px}
.ob-docs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}@media (max-width:720px){.ob-docs{grid-template-columns:1fr}}
.ob-doc{border:1px solid var(--line,#e6eaee);border-radius:12px;padding:12px;margin-bottom:8px}
.ob-files{margin-top:6px;font-size:13px}.ob-file{display:inline-flex;align-items:center;gap:4px;margin-right:10px}
.ob-banner{display:flex;gap:14px;align-items:center;text-decoration:none;color:inherit;margin-bottom:14px;border-left:4px solid #0d5bb5}.ob-banner.warn{border-left-color:#f7931e;background:#fffbeb}
.ob-kv>div{padding:6px 8px;border-radius:8px}.ob-mini{font-size:12px}.ob-mini td,.ob-mini th{padding:3px 6px}
.ob-pick{max-height:260px;overflow:auto;border:1px solid var(--line,#e6eaee);border-radius:10px;padding:8px}
.ob-builder input:not([type=checkbox]),.ob-builder select{width:100%}.ob-builder tr.off td{opacity:.5}
.ob-sectitle{font:inherit;font-weight:700;border:1px dashed transparent;background:transparent;padding:2px 4px;border-radius:6px}.ob-sectitle:hover,.ob-sectitle:focus{border-color:var(--line,#cfd6df)}
.ob-errs{margin:0;padding-left:18px;line-height:1.6}
.chips{display:flex;flex-wrap:wrap;gap:6px}.chip{display:inline-flex;gap:6px;align-items:center;padding:5px 11px;border-radius:20px;border:1px solid var(--line,#e6eaee);font-size:13px;text-decoration:none;color:inherit;background:#fff}.chip.on{background:#0d5bb5;color:#fff;border-color:#0d5bb5}
.switch{position:relative;display:inline-block;width:34px;height:20px}.switch input{opacity:0;width:0;height:0}.switch span{position:absolute;inset:0;background:#cbd5e1;border-radius:20px;transition:.2s;cursor:pointer}.switch span:before{content:"";position:absolute;width:14px;height:14px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.2s}.switch input:checked+span{background:#0d5bb5}.switch input:checked+span:before{transform:translateX(14px)}
.role-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}.role-card{margin:0}
.priv-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px}@media (max-width:720px){.priv-groups{grid-template-columns:1fr}}.priv-group{border:1px solid var(--line,#e6eaee);border-radius:10px;padding:10px}.priv-group b{display:block;margin-bottom:6px}
/* HR signatures on letters */
.hr-sign{margin-top:22px;padding-top:12px;border-top:1px dashed var(--line,#e6eaee);max-width:320px}.hr-sign img{display:block;max-height:70px;max-width:260px;margin:6px 0}
.sig-pad{position:relative;height:180px;border:1.5px dashed var(--line,#cfd6df);border-radius:12px;background:#fff;touch-action:none}.sig-pad canvas{width:100%;height:100%;display:block;cursor:crosshair;border-radius:12px}
.sig-line{position:absolute;left:20px;right:20px;bottom:36px;border-top:1px solid #cbd5e1;font-size:11px;color:#94a3b8;padding-top:2px;pointer-events:none}
.sig-saved{border:1px solid var(--line,#e6eaee);border-radius:12px;padding:14px;background:#fff;margin-bottom:6px;min-height:80px;display:flex;align-items:center}.sig-saved img{max-height:90px;max-width:100%}
.usebar{height:7px;border-radius:5px;background:var(--line,#e6eaee);overflow:hidden;margin-bottom:3px}.usebar span{display:block;height:100%;background:#0d5bb5;border-radius:5px}
.sortlink{color:inherit;text-decoration:none}.sortlink.on{color:var(--brand,#0d5bb5)}
table.usage td,table.usage th{white-space:nowrap}
.jd-text{white-space:pre-wrap;font-family:Georgia,serif;line-height:1.6;max-height:260px;overflow:auto;background:#fafafa;border:1px solid var(--line,#e6eaee);border-radius:10px;padding:12px}
.jd-accept{margin-top:10px}.ob-jd{margin-bottom:14px}.ob-buddy{margin-bottom:14px;border-left:4px solid #0f9ea8}
/* payroll */
.pay-steps{display:flex;gap:8px;margin:4px 0 14px;flex-wrap:wrap}.pay-step{display:flex;align-items:center;gap:8px;padding:8px 14px;border-radius:30px;background:#fff;border:1px solid var(--line,#e6eaee);font-size:13px;color:var(--muted,#6b7280)}.pay-step span{width:22px;height:22px;border-radius:50%;background:#e2e8f0;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:12px;color:#475569}.pay-step.done{color:#0d5bb5;border-color:#99f6e4}.pay-step.done span{background:#0d5bb5;color:#fff}
table.payrun td,table.payrun th{white-space:nowrap}.muted-row td{background:#fafafa}
.tpl-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}@media (max-width:720px){.tpl-grid{grid-template-columns:1fr}}
.tpl-card{border:2px solid var(--line,#e6eaee);border-radius:14px;padding:14px;cursor:pointer;display:block;background:#fff}.tpl-card.on{border-color:#0d5bb5;box-shadow:0 0 0 3px #d6e6fa}
.tpl-thumb{height:120px;border-radius:8px;background:#fff;border:1px solid #e5e7eb;margin-bottom:10px;position:relative;overflow:hidden;padding:10px}
.tpl-thumb span{display:block;height:18px;border-radius:3px;background:#e5e7eb;width:60%;margin-bottom:10px}.tpl-thumb i{display:block;height:6px;border-radius:3px;background:#e5e7eb;margin:6px 0}.tpl-thumb b{position:absolute;left:10px;right:10px;bottom:10px;height:18px;border-radius:4px;background:#1f2937}
.tpl-modern span{position:absolute;left:0;right:0;top:0;height:30px;width:auto;border-radius:0;background:#0d5bb5}.tpl-modern i:first-of-type{margin-top:30px}.tpl-modern b{background:#0d5bb5}
.tpl-compact i{width:85%}.tpl-compact b{height:4px;background:#334155}
.payslip-card{min-width:220px}

/* Owner console sign-in (separate from company portals) */
.console-auth{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 16px;background:radial-gradient(1200px 600px at 20% -10%,#0b3a7a 0%,#0b1220 55%,#060a12 100%)}
.console-box{width:100%;max-width:400px;background:#fff;border-radius:16px;padding:28px 26px;box-shadow:0 20px 60px rgba(0,0,0,.45)}
.console-box .brandline{display:flex;align-items:center;gap:10px;font-weight:700;font-size:17px;color:#0f172a;margin-bottom:18px}
.console-box .brandline small{display:block;font-weight:600;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#b45309}
.console-box h2{margin:0 0 4px}
.console-foot{color:#94a3b8;max-width:400px;text-align:center;margin-top:16px}
.ai-card .prov{display:flex;gap:12px;flex-wrap:wrap}
.ai-card .prov label{flex:1 1 180px;border:1.5px solid var(--line,#e5e7eb);border-radius:12px;padding:12px 14px;cursor:pointer;display:flex;gap:10px;align-items:flex-start}
.ai-card .prov label:has(input:checked){border-color:#0d5bb5;background:#eef5fd}

/* ---------- Game Karma logo theme ---------- */
.auth-brand{display:inline-flex;background:#fff;border-radius:14px;padding:10px 16px;box-shadow:0 6px 24px rgba(0,0,0,.18);max-width:300px}
.auth-brand img{display:block;width:100%;height:auto}
.auth-art::before{content:"";position:absolute;left:0;right:0;bottom:0;height:6px;background:var(--gk-grad)}
.auth-art .tagline{display:inline-block;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:5px 12px;font-size:12px;letter-spacing:.02em}
.gk-logo{margin:0 0 22px}.gk-logo img{display:block;width:100%;max-width:300px;height:auto}
.auth .gk-logo{display:none}
.rail .brandline.gk{background:#fff;height:auto;padding:12px 14px 10px;display:block;border-bottom:4px solid transparent;border-image:var(--gk-grad) 1}
.rail .brandline.gk .rail-gk img{display:block;width:100%;height:auto}
.rail .brandline.gk .rail-tag{display:block;margin-top:4px;color:#b45309;font-weight:700;font-size:10.5px;letter-spacing:.1em;text-transform:uppercase}
.rail{border-right:0}
.rail .nav a.on{box-shadow:inset 3px 0 0 var(--accent)}
.console-brand{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-bottom:18px}
.console-brand img{width:100%;max-width:320px;height:auto}
.console-brand span{font-weight:700;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#b45309}
.console-box{border-top:6px solid transparent;border-image:var(--gk-grad) 1}
.console-auth{background:radial-gradient(1200px 600px at 20% -10%,#0d4f9e 0%,#0b2a5b 55%,#06142e 100%)}
.boot img{width:260px;max-width:70vw;height:auto}
.btn.primary{background:var(--brand);border-color:var(--brand)}
.btn.primary:hover{background:#0b4e9c}

/* ---------- light theme (v1.9.1): light surfaces, logo sits directly on the page ---------- */
:root{--bg:#f6f8fc}
html,body{background:var(--bg)}
.rail{background:#ffffff;color:#334155;border-right:1px solid var(--line)}
.rail .brandline{color:var(--brand-dark)}
.rail .brandline small{color:var(--muted)}
.rail .brandline.gk{background:transparent;border-bottom:1px solid var(--line);border-image:none;padding:14px 16px 12px}
.rail .rail-logo{border:0;background:transparent}
.navlabel{color:#94a3b8}
.nav a{color:#334155}
.nav a svg{color:#64748b;opacity:1}
.nav a:hover{background:#f1f5fb;color:var(--brand-dark);text-decoration:none}
.nav a.on{background:var(--brand-soft);color:var(--brand);box-shadow:inset 3px 0 0 var(--brand)}
.nav a.on svg{color:var(--brand)}
.nav .sub a.on{background:transparent;box-shadow:none;color:var(--brand);font-weight:600}
.nav-prev{margin-left:auto;background:var(--accent-soft)!important;color:#b45309!important;font-weight:500}
.rail-foot{color:var(--muted);border-top:1px solid var(--line-2)}
.auth-art{background:linear-gradient(160deg,#ffffff 0%,#f1f6fd 55%,#e8f6f7 100%);color:var(--brand-dark);border-right:1px solid var(--line)}
.auth-art::after{background:rgba(247,147,30,.10)}
.auth-art::before{height:4px}
.auth-art p{color:#475569;opacity:1}
.auth-art li{color:#334155}
.auth-art li::before{background:var(--brand-soft);color:var(--brand)}
.auth-art .tagline{background:#fff;border-color:#d6e6fa;color:var(--brand)}
.auth-art .small{color:#64748b}
.auth-brand{background:transparent;box-shadow:none;padding:0;border-radius:0;max-width:340px}
.console-auth{background:linear-gradient(160deg,#ffffff 0%,#eef5fd 60%,#e8f6f7 100%)}
.console-box{border:1px solid var(--line);box-shadow:0 12px 40px rgba(11,42,91,.10)}
.console-foot{color:#64748b}
.hello{background:linear-gradient(120deg,#eef5fd 0%,#e9f7f8 60%,#fff4e6 100%);color:var(--brand-dark);border:1px solid #dbe7f6}
.hello::after{background:rgba(247,147,30,.12)}
.hello .muted{color:#475569}
.askbtn{background:#fff;color:var(--brand);border:1px solid #d6e6fa;box-shadow:0 8px 24px rgba(11,42,91,.14)}

.quote-t td{font-size:13px;vertical-align:top}.slab-t input{padding:6px 8px}

/* ---------- v1.11: company themes, theme studio, credits ---------- */
.btn.primary:hover{background:var(--brand);filter:brightness(.92)}
.sb-brand .rail{background:var(--brand-dark);color:#e8eef7;border-right:0}
.sb-brand .rail .brandline.gk{background:#fff}
.sb-brand .rail .brandline{color:#fff}.sb-brand .rail .brandline small{color:rgba(255,255,255,.7)}
.sb-brand .navlabel{color:rgba(255,255,255,.55)}
.sb-brand .nav a{color:#e8eef7}.sb-brand .nav a svg{color:rgba(255,255,255,.75)}
.sb-brand .nav a:hover{background:rgba(255,255,255,.08);color:#fff}
.sb-brand .nav a.on{background:rgba(255,255,255,.16);color:#fff;box-shadow:inset 3px 0 0 var(--accent)}.sb-brand .nav a.on svg{color:#fff}
.sb-brand .nav .sub a.on{color:#fff}.sb-brand .rail-foot{color:rgba(255,255,255,.6);border-top-color:rgba(255,255,255,.1)}
.sb-dark .rail{background:#111827;color:#d1d5db;border-right:0}
.sb-dark .rail .brandline.gk{background:#fff}.sb-dark .rail .brandline{color:#fff}
.sb-dark .navlabel{color:#6b7280}.sb-dark .nav a{color:#d1d5db}.sb-dark .nav a svg{color:#9ca3af}
.sb-dark .nav a:hover{background:rgba(255,255,255,.06);color:#fff}
.sb-dark .nav a.on{background:rgba(255,255,255,.1);color:#fff;box-shadow:inset 3px 0 0 var(--brand-2)}.sb-dark .nav a.on svg{color:#fff}
.sb-dark .nav .sub a.on{color:#fff}.sb-dark .rail-foot{color:#6b7280;border-top-color:#1f2937}
.rail-foot .credit,.credit-line{font-size:10.5px;opacity:.85}
.credit-line{color:var(--muted);text-align:center;margin:18px 0 0}
.join-cta{display:flex;align-items:center;gap:8px;margin-top:14px;padding:10px 12px;border:1px dashed var(--brand-2);border-radius:10px;background:var(--brand-soft);color:var(--brand-dark);font-size:13px;text-decoration:none!important}
.entity-sel{width:auto;max-width:280px;font-weight:600;border-color:var(--line);background:var(--brand-soft)}
.sec-head{margin:2px 0 12px}.sec-head h2{font-size:17px}.sec-head p{margin:4px 0 0}
.theme-studio{display:grid;grid-template-columns:1.25fr 1fr;gap:14px;align-items:start}
.theme-studio .card{margin-bottom:14px}
.th-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.th-card{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:10px;border:1.5px solid var(--line);border-radius:10px;background:#fff;cursor:pointer;text-align:left;font-size:12.5px;position:relative}
.th-card:hover{border-color:var(--brand-2)}.th-card.on{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}
.th-card.reco{border-color:#16a34a}.th-card em{position:absolute;top:6px;right:6px;font-style:normal;font-size:10px;background:#dcfce7;color:#166534;border-radius:8px;padding:1px 6px}
.th-sw{display:flex;gap:3px}.th-sw i{width:22px;height:22px;border-radius:6px;display:block;border:1px solid rgba(0,0,0,.06)}
.th-sw i.sb-light{background:#fff}.th-sw i.sb-brand{background:linear-gradient(135deg,#0b2a5b,#0d5bb5)}.th-sw i.sb-dark{background:#111827}
.dotc{display:inline-block;width:14px;height:14px;border-radius:50%;vertical-align:middle;margin-left:4px;border:1px solid rgba(0,0,0,.1)}
input[type=color]{height:40px;padding:2px;cursor:pointer}
.ts-preview{position:sticky;top:70px}
.pv-shell{--pv-p:#0d5bb5;--pv-a:#f7931e;--pv-r:10px;display:grid;grid-template-columns:90px 1fr;height:260px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#f6f8fc}
.pv-rail{background:#fff;border-right:1px solid var(--line);padding:10px 8px;display:flex;flex-direction:column;gap:7px}
.pv-shell[data-sb=brand] .pv-rail{background:color-mix(in srgb,var(--pv-p) 55%,#000)}.pv-shell[data-sb=dark] .pv-rail{background:#111827}
.pv-logo{height:30px;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:6px;font-size:10px;overflow:hidden}.pv-logo img{max-height:26px;max-width:74px}
.pv-rail i{height:10px;border-radius:4px;background:#e5e7eb;display:block}.pv-shell[data-sb=brand] .pv-rail i,.pv-shell[data-sb=dark] .pv-rail i{background:rgba(255,255,255,.18)}
.pv-rail i.on{background:color-mix(in srgb,var(--pv-p) 25%,#fff)}.pv-shell[data-sb=brand] .pv-rail i.on,.pv-shell[data-sb=dark] .pv-rail i.on{background:rgba(255,255,255,.45)}
.pv-main{padding:10px;display:flex;flex-direction:column;gap:8px}.pv-top{height:18px;background:#fff;border-radius:6px}
.pv-card{background:#fff;border:1px solid var(--line);border-radius:var(--pv-r);padding:10px;font-size:12px}
.pv-btns{display:flex;gap:6px;margin-top:8px}.pv-btn{background:var(--pv-p);color:#fff;border-radius:var(--pv-r);padding:5px 10px;font-size:11px}
.pv-acc{background:color-mix(in srgb,var(--pv-a) 18%,#fff);color:#7c2d12;border-radius:999px;padding:4px 9px;font-size:11px}.pv-link{color:var(--pv-p);font-weight:600}
.is-locked .th-card,.is-locked input,.is-locked select{pointer-events:none;opacity:.6}
.lab-list{display:grid;gap:6px;max-height:520px;overflow:auto}.lab-row{display:grid;grid-template-columns:150px 1fr;gap:8px;align-items:center}
@media (max-width:900px){.theme-studio{grid-template-columns:1fr}.ts-preview{position:static}.lab-row{grid-template-columns:1fr}}
.ctl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:8px}
.flag-t td,.flag-t th{font-size:12.5px}.flag-t select{width:auto;padding:4px 6px;font-size:12px}
