/* Hazal deposit waiver — charcoal + gold identity, IBM Plex Sans Arabic. */
:root {
  --ink: #121418; --ink-2: #1A1D23; --ink-3: #2B2F36;
  --bg: #F4F3F0; --card: #FFFFFF; --line: #E4E2DC; --line-2: #EEEDE9; --soft: #F7F6F3; --field: #D6D4CD;
  --muted: #5B5F66; --ok: #2E6B4F; --ok-bg: #EDF3EF; --warn: #8A5A12; --warn-bg: #FBEFD9; --bad: #9E2F2A; --bad-bg: #FBE4E1;
  --info: #1F4E79; --info-bg: #E4ECF4; --orange: #7A3A06; --orange-bg: #FDE8D4;
  --accent: #A8875A; --accent-soft: #D4B483;
  --r: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif; font-size: 14px; line-height: 1.55; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden], .hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
bdi { unicode-bidi: isolate; }

/* ---------- shell ---------- */
.app { min-height: 100vh; display: flex; flex-wrap: wrap; }
.side { flex: 1 1 240px; max-width: 100%; background: var(--ink); color: #ECECEE; padding: 22px 16px; display: flex; flex-direction: column; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.brand-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: #fff; padding: 3px; }
.brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-text strong { font-size: 19px; color: var(--accent-soft); }
.brand-text span { font-size: 12px; color: #9A9EA6; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: #1C1F24; }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--ink); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.me-text { display: flex; flex-direction: column; min-width: 0; }
.me-text strong { color: #fff; font-size: 14px; }
.me-text span { color: #A9ADB4; font-size: 12px; }
.nav-list { display: flex; flex-direction: column; gap: 3px; }
.nav-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 42px; padding: 9px 14px; border-radius: 8px; color: #C9CCD2; text-decoration: none; font-weight: 500; }
.nav-item:hover { background: #1C1F24; }
.nav-item.on { background: #24272E; color: #E9D9B8; }
.nav-badge { font-size: 12px; color: var(--accent-soft); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.side-foot form { margin: 0; }
.side-btn { width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid #3A3E46; border-radius: 8px; background: transparent; color: #fff; font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; }
.side-btn.danger { color: #F0B4AC; border-color: #5A3A36; }
.main { flex: 999 1 560px; min-width: 0; padding: 26px 30px 56px; }
.main-in { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }

/* ---------- type ---------- */
.h1 { margin: 0; font-size: 24px; font-weight: 700; }
.h2 { margin: 0; font-size: 15px; font-weight: 700; }
.h3 { margin: 6px 0 0; font-size: 14px; font-weight: 700; }
.h2.num { display: flex; align-items: center; gap: 10px; }
.h2.num span { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.eyebrow { margin: 0 0 2px; font-size: 13px; font-weight: 500; color: #8C6D3F; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.ink { color: var(--ink); }
.dim { color: #B9BDC4; }
.soft { color: #B8955F; font-size: 13px; }
.ok-t { color: var(--ok); font-weight: 600; } .warn-t { color: var(--warn); font-weight: 600; } .bad-t { color: var(--bad); font-weight: 600; }
.bad-soft { color: #F0B4AC; }
.big-num { font-size: 26px; font-weight: 700; }
.center-t { text-align: center; }
.end-t { text-align: end; }
.link { color: #7A5C2E; font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }
p { margin: 0; }

/* ---------- layout ---------- */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; }
.cols { display: flex; flex-wrap: wrap; gap: 16px; }
.cols.top { align-items: flex-start; }
.grow { flex: 1 1 auto; min-width: 0; }
.grow2 { flex: 2 1 300px; min-width: 0; }
.grow3 { flex: 3 1 440px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-gap { display: flex; gap: 8px; align-items: center; }
.wrap { flex-wrap: wrap; }
.row-gap.wrap { flex-wrap: wrap; }
.end-items { align-items: flex-end; }
.self-start { align-self: flex-start; }
.self-stretch { align-self: stretch; }
.center { align-items: center; }
.sticky { position: sticky; top: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.inline { display: inline; margin: 0; }

/* ---------- surfaces ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.card.pad { padding: 28px; }
.card.dark { background: var(--ink); color: #F3F3F4; border-color: var(--ink); }
.card.center { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.alert { padding: 12px 16px; border-radius: 10px; font-weight: 500; }
.alert.ok { background: var(--ok-bg); color: #24543E; }
.alert.err, .alert.bad { background: var(--bad-bg); color: #7A1C13; }
.alert.warn { background: var(--warn-bg); color: #6E3B07; }
.alert.info { background: var(--info-bg); color: var(--info); }
.note { padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.7; background: var(--soft); color: var(--muted); }
.note.warn { background: var(--warn-bg); color: #6E3B07; }
.note.info { background: var(--info-bg); color: var(--info); }

/* ---------- controls ---------- */
.inp { min-height: 44px; width: 100%; padding: 0 12px; border: 1px solid var(--field); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; text-align: start; }
textarea.inp { padding: 10px 12px; resize: vertical; min-height: 70px; }
select.inp { padding: 0 10px; }
.inp.sm { min-height: 38px; width: auto; font-size: 13px; }
.inp:disabled { background: var(--soft); color: var(--muted); }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld label, .lbl { font-size: 13px; font-weight: 500; }
.req { color: var(--bad); }
.btn, .btn-2 { min-height: 44px; padding: 0 18px; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn { border: 0; background: var(--ink-2); color: #fff; }
.btn:hover { background: #000; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-2 { border: 1px solid var(--field); background: #fff; color: var(--ink); font-weight: 500; }
.btn-2:hover { border-color: var(--ink); }
.btn.big { min-height: 50px; font-size: 15px; width: 100%; }
.btn.sm, .btn-2.sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.warn-b { color: #8A4B0A; border-color: #E9C9A0; }
.danger-b { color: var(--bad); border-color: #EFCFCB; }
.pill { min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--field); background: #fff; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.pill:hover { border-color: var(--ink); }
.tag { padding: 6px 12px; border-radius: 8px; background: var(--soft); }
.icon-btn { flex: none; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--field); background: #fff; font-size: 18px; cursor: pointer; }
.icon-btn.danger { color: var(--bad); border-color: #EFCFCB; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-opt span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--field); background: #fff; font-size: 13px; font-weight: 500; cursor: pointer; }
.seg-opt input:checked + span { background: var(--ink-2); color: #fff; border-color: var(--ink-2); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); }
.check span { display: flex; flex-direction: column; }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.choice-opt { position: relative; display: block; }
.choice-opt input { position: absolute; opacity: 0; }
.choice-opt > span { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; height: 100%; }
.choice-opt > span small { color: var(--muted); line-height: 1.6; }
.choice-opt input:checked + span { border: 2px solid var(--ink-2); background: #F7F4EE; }
.choice-opt input:focus-visible + span { outline: 2px solid var(--accent); }
.choice-opt em { font-style: normal; margin-inline-start: 6px; }

/* file drops */
.drops { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.drop { position: relative; min-height: 104px; padding: 12px; border-radius: 10px; border: 2px dashed #C4C2BA; background: var(--soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; cursor: pointer; color: var(--muted); }
.drop.optional { border-style: dotted; border-color: var(--field); }
.drop.done { border: 2px solid var(--ink-2); background: var(--ok-bg); color: #24543E; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop strong { font-size: 13px; color: var(--ink); }
.drop-status { font-size: 12px; word-break: break-all; }
.drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- dashboard pieces ---------- */
.search { flex: 1 1 380px; max-width: 580px; display: flex; gap: 8px; flex-wrap: wrap; }
.search .inp { flex: 1 1 200px; width: auto; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.qa { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding-block: 0; padding-inline: 8px 16px; border: 1px solid var(--line); border-radius: 22px; background: #fff; text-decoration: none; font-weight: 500; }
.qa:hover { border-color: var(--ink); }
.qa-ic { width: 28px; height: 28px; border-radius: 50%; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.qa-ic.lg { width: 40px; height: 40px; font-size: 18px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.tile { min-height: 96px; padding: 14px 10px; border-radius: 14px; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 500; text-align: center; }
.tile:hover { border-color: var(--ink); }
.alerts { display: flex; flex-wrap: wrap; gap: 10px; }
.al { flex: 1 1 280px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.al span.grow { display: flex; flex-direction: column; gap: 2px; }
.al span.grow span { font-size: 12px; color: var(--muted); }
.al-bar { flex: none; width: 6px; align-self: stretch; border-radius: 3px; background: #3D6E9E; }
.al.warn .al-bar { background: #D9A441; } .al.bad .al-bar { background: #D9574A; }
.al.warn { border-color: #EADBB8; } .al.bad { border-color: #EFCFCB; } .al.info { border-color: #D6E0EA; }
.eq { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 16px 0; }
.eq > b { font-size: 22px; font-weight: 300; color: #7C8089; }
.eq div { display: flex; flex-direction: column; gap: 2px; }
.eq span { font-size: 12px; color: #9A9EA6; }
.eq strong { font-size: 20px; }
.eq-out { color: #F08A7E; } .eq-rec { color: #D9C29B; } .eq-net { color: #D4B483; font-size: 26px !important; }
.stack-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: #2A2D33; margin-bottom: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--muted); }
.legend.dim, .card.dark .legend { color: #B9BDC4; }
.legend i, .dot-l i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-inline-end: 6px; vertical-align: middle; }
.gauge { position: relative; width: 220px; height: 118px; overflow: hidden; }
.gauge-arc { position: absolute; top: 0; left: 0; width: 220px; height: 220px; border-radius: 50%; }
.gauge-hole { position: absolute; top: 26px; left: 26px; width: 168px; height: 168px; border-radius: 50%; background: #fff; }
.gauge-needle { position: absolute; left: 108px; bottom: 8px; width: 4px; height: 92px; background: var(--ink); border-radius: 2px; transform-origin: 50% 100%; }
.gauge-pin { position: absolute; left: 100px; bottom: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); padding: 0; overflow: hidden; }
.stats > div { padding: 14px 16px; border-bottom: 1px solid var(--line-2); border-inline-end: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 3px; }
.stats span { font-size: 12px; color: var(--muted); font-weight: 500; }
.stats strong { font-size: 20px; }
.stats em { font-style: normal; font-size: 12px; color: var(--muted); }
.task { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.task-n { flex: none; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-weight: 700; background: var(--line-2); }
.task-n.warn { background: var(--warn-bg); color: #6E3B07; } .task-n.bad { background: var(--bad-bg); color: #7A1C13; }
.task-n.info { background: var(--info-bg); color: var(--info); } .task-n.orange { background: var(--orange-bg); color: var(--orange); }
.task-t { flex: 1; display: flex; flex-direction: column; } .task-t span { font-size: 12px; color: var(--muted); }
.li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; }
.li:hover strong { text-decoration: underline; }
.li > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.li small { font-size: 12px; color: var(--muted); }
.li .end { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.chip { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; background: var(--line-2); color: #33363C; white-space: nowrap; }
.chip.ok { background: #E2F2E6; color: #1F5A33; } .chip.ok-soft { background: var(--ok-bg); color: #24543E; }
.chip.warn { background: var(--warn-bg); color: #6E3B07; } .chip.bad { background: var(--bad-bg); color: #7A1C13; }
.chip.info { background: var(--info-bg); color: var(--info); } .chip.orange { background: var(--orange-bg); color: var(--orange); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 176px; overflow-x: auto; margin-top: 10px; }
.bar { flex: 1 1 0; min-width: 10px; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; height: 100%; }
.bar-fill { display: block; background: var(--ink-3); border-radius: 3px 3px 0 0; min-height: 1px; }
.bar:hover .bar-fill { background: var(--accent); }
.bar-loss { display: block; height: 4px; } .bar-loss.on { background: #D9574A; }
.bar-lbl { display: block; height: 16px; font-size: 10px; color: var(--muted); text-align: center; }
.donut-wrap { display: flex; justify-content: center; padding: 6px 0 10px; }
.donut { width: 146px; height: 146px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.donut > div { width: 104px; height: 104px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut strong { font-size: 22px; } .donut span { font-size: 12px; color: var(--muted); }
.dot-l { display: inline-flex; align-items: center; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 13px; }
.tbl th { text-align: start; padding: 10px 6px; font-size: 12px; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px 6px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody th { color: var(--ink); font-size: 13px; }
.tbl .c { text-align: center; }
.matrix input { width: 18px; height: 18px; accent-color: var(--ink); }
.meter { display: flex; align-items: center; gap: 8px; }
.meter-track { flex: 1; height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; display: block; }
.meter-fill { display: block; height: 8px; background: var(--ink-2); border-radius: 4px; }
.meter-fill.bad { background: #D9574A; } .meter-fill.ok { background: #5E9C7E; } .meter-fill.warn { background: #D9A441; }
.empty { padding: 10px 0; }
.mini-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 14px 0; }
.mini-stats div { display: flex; flex-direction: column; } .mini-stats span { font-size: 12px; color: #9A9EA6; } .mini-stats strong { font-size: 20px; }
.target { border-top: 1px solid #2A2D33; padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.target-bar { height: 10px; border-radius: 5px; background: #2A2D33; overflow: hidden; }
.target-bar span { display: block; height: 10px; background: #B8955F; }

/* ---------- lists & detail ---------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.row-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; text-decoration: none; }
.row-card:hover { border-color: var(--ink); }
.row-card .grow { display: flex; flex-direction: column; gap: 3px; flex: 1 1 280px; }
.row-card small { color: var(--muted); font-size: 13px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters .inp { flex: 1 1 260px; width: auto; }
.seg-links { display: flex; gap: 6px; flex-wrap: wrap; }
.seg-links a { min-height: 38px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--field); background: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.seg-links a.on { background: var(--ink-2); color: #fff; border-color: var(--ink-2); }
.seg-links small { opacity: .7; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; }
.pager a { min-width: 38px; min-height: 38px; border-radius: 8px; border: 1px solid var(--field); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; background: #fff; }
.pager a.on { background: var(--ink-2); color: #fff; }
.owner-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-inline-start: 4px solid var(--accent); padding: 14px 18px; }
.owner-bar .inp { flex: 0 1 280px; }
.score { font-size: 28px; font-weight: 700; }
.dec { padding: 8px 12px; border-radius: 8px; background: var(--soft); font-weight: 700; }
.dec.ok { background: #E2F2E6; color: var(--ok); } .dec.high { background: var(--warn-bg); color: var(--warn); } .dec.reject { background: var(--bad-bg); color: var(--bad); }
.reasons div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.kv > span:first-child { color: var(--muted); }
.card.dark .kv { border-color: #2A2D33; } .card.dark .kv > span:first-child { color: #B9BDC4; }
.kv.total { border: 0; padding-top: 8px; font-size: 15px; } .kv.total strong { font-size: 22px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.info { padding: 10px 12px; border-radius: 10px; background: var(--soft); display: flex; flex-direction: column; gap: 2px; }
.info span { font-size: 12px; color: var(--muted); } .info strong { font-size: 13px; word-break: break-word; }
.doc-list { display: flex; flex-wrap: wrap; gap: 8px; }
.doc { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; min-width: 150px; }
.doc span { font-weight: 600; font-size: 13px; } .doc small { font-size: 12px; color: var(--muted); word-break: break-all; }
.doc.ok { border-color: #C9DCCF; background: #F3F8F5; } .doc.bad { border-color: #EFCFCB; background: #FDF5F4; }
a.doc:hover { border-color: var(--ink); }
.log { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 8px; background: var(--soft); font-size: 13px; }
.log small { color: var(--muted); }
details.act > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
details.act > summary::after { content: '+'; font-size: 18px; }
details.act[open] > summary::after { content: '−'; }
details.act[open] { border: 2px solid var(--ink-2); }
.pipe { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pipe li { flex: 1 1 100px; padding: 9px 6px; border-radius: 8px; background: var(--line-2); color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }
.pipe li.done { background: var(--ink-2); color: #fff; } .pipe li.cur { background: var(--ink); color: #fff; outline: 2px solid var(--accent); outline-offset: -2px; } .pipe li.bad { background: var(--bad); color: #fff; }
.attempt { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.attempt .fld { flex: 1 1 140px; } .attempt .fld.grow { flex: 3 1 220px; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.checklist li { display: flex; justify-content: space-between; gap: 8px; }
.term { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 10px; border: 1px solid var(--line-2); }
.term-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.logo-box { width: 96px; height: 96px; border-radius: 14px; border: 1px dashed #C4C2BA; background: var(--soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.logo-box img { width: 100%; height: 100%; object-fit: contain; }
.logo-box span { font-size: 32px; font-weight: 700; color: var(--accent); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-block: 0; padding-inline: 8px 14px; border-radius: 22px; border: 1px solid var(--field); cursor: pointer; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { width: 26px; height: 26px; border-radius: 50%; background: var(--c); }
.swatch:has(input:checked) { border: 2px solid var(--ink); }
.prev-side { border-radius: 12px; background: var(--ink); padding: 16px; display: flex; align-items: center; gap: 10px; }
.prev-side img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: #fff; padding: 3px; }
.prev-side span { display: flex; flex-direction: column; } .prev-side strong { color: var(--accent-soft); font-size: 18px; } .prev-side small { color: #9A9EA6; }
.prev-rc { border-radius: 12px; border: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.prev-rc .between { border-bottom: 2px solid var(--ink); padding-bottom: 8px; }

/* ---------- login ---------- */
.login-body { background: var(--bg); }
.login { min-height: 100vh; display: flex; flex-wrap: wrap; }
.login-hero { flex: 1 1 380px; background: var(--ink); color: #F3F3F4; padding: 48px 44px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.login-brand { display: flex; align-items: center; gap: 14px; }
.login-brand img { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; background: #fff; padding: 6px; }
.login-brand div { display: flex; flex-direction: column; } .login-brand strong { font-size: 28px; color: var(--accent-soft); } .login-brand span { color: #A9ADB4; }
.login-pitch { max-width: 440px; display: flex; flex-direction: column; gap: 18px; }
.login-pitch h1 { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.5; }
.login-pitch ul { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 10px; color: #C9CCD2; }
.login-pitch li::marker { color: var(--accent); }
.login-foot { font-size: 12px; color: #7C8089; }
.login-form { flex: 1 1 420px; padding: 40px 24px; display: flex; align-items: center; justify-content: center; }
.login-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 14px; }
.login-card h2 { margin: 0; font-size: 24px; }
.login-top { display: flex; justify-content: flex-end; }

@media (max-width: 720px) {
  .main { padding: 18px 14px 40px; }
  .side { flex-basis: 100%; }
  .sticky { position: static; }
  .login-hero { padding: 32px 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
