/* Uttra Platform surface stylesheet (v0.8.0, bank-style, full width). Self-contained; not shared with any other surface. System fonts only. */
:root {
  --bg: #F2F5F6; --surface: #FFFFFF; --surface-2: #EAF0F1; --line: #D5DEE0; --line2: #E5ECED;
  --ink: #0F2230; --muted: #4F6470; --side: #0A2A33;
  --brand: #0B5D55; --brand-ink: #FFFFFF; --gold: #D9A441; --accent: #D9A441; --accent-ink: #1B1303;
  --ok: #0B6B43; --ok-bg: #DDF3E8; --warn: #8A5A00; --warn-bg: #FCEFD2; --err: #B3261E; --err-bg: #FBE9E7; --info: #1B4F8F; --info-bg: #E3EEFB;
  --focus: #1666C5;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2 { margin: 0; line-height: 1.2; }
p { margin: 0 0 10px; }
.ico { flex: none; }
.inline { display: inline; margin: 0; }

/* brand */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--gold); color: #1B1303; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.brand-name { font-weight: 600; font-size: 20px; color: #fff; }
.brand-tag { font-size: 12px; color: #BFD3D6; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 1px 10px; }
.brand-lg .brand-mark { width: 42px; height: 42px; font-size: 22px; border-radius: 11px; }
.brand-lg .brand-name { font-size: 24px; }

/* app shell */
.shell { display: flex; min-height: 100vh; }
.side { flex: 0 0 256px; background: var(--side); color: #CFE0E1; padding: 24px 16px; display: flex; flex-direction: column; gap: 26px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { padding: 0 8px; }
.sidenav { display: flex; flex-direction: column; gap: 4px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: #CFE0E1; text-decoration: none; font-size: 15px; min-height: 44px; }
.nav-link:hover { background: rgba(255,255,255,.07); }
.nav-link.is-active { background: rgba(255,255,255,.13); color: #fff; font-weight: 500; }
.nav-count { margin-left: auto; min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--gold); color: #1B1303; font-size: 12px; font-weight: 700; text-align: center; line-height: 22px; }
.side-user { margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.side-who { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.side-who strong { display: block; color: #fff; font-weight: 500; font-size: 15px; line-height: 1.2; }
.side-who small { color: #9FB8BB; font-size: 12.5px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.side-out { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: #CFE0E1; font: inherit; font-size: 15px; cursor: pointer; text-align: left; min-height: 44px; }
.side-out:hover { background: rgba(255,255,255,.07); }
.main { flex: 1 1 0; min-width: 0; padding: 32px 40px 56px; display: flex; flex-direction: column; gap: 20px; }
.crumb { margin: 0 0 2px; font-size: 14px; color: var(--muted); }
.page-title { font-size: 28px; font-weight: 600; letter-spacing: -.2px; }
.hello { margin: -6px 0 0; color: var(--muted); }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-title { font-size: 17px; color: var(--ink); font-weight: 600; margin: 0 0 12px; }
.card-head .card-title { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.big { margin: 0 0 6px; font-size: 28px; font-weight: 600; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); }
.right { text-align: right; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* dashboard */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; }
.kpi-label { font-size: 14px; color: var(--muted); }
.kpi-value { font-size: 30px; font-weight: 600; letter-spacing: -.3px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi-sub { font-size: 13px; color: var(--muted); }
.kpi-link:hover { border-color: var(--brand); }
.kpi-alert { background: var(--brand); border-color: var(--brand); }
.kpi-alert .kpi-label, .kpi-alert .kpi-sub { color: #BFE0DA; }
.kpi-alert .kpi-value { color: #fff; }
.chart { display: block; width: 100%; height: auto; }
.bar { fill: var(--brand); }
.bar-zero { fill: var(--line); }
.bar-n { fill: var(--ink); font-size: 12px; font-weight: 600; }
.bar-l { fill: var(--muted); font-size: 12px; }
.axis { stroke: var(--line); stroke-width: 1; }
.alerts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.alert a { display: block; padding: 11px 14px; border-radius: 10px; text-decoration: none; font-size: 15px; font-weight: 500; }
.alert-warn a { background: var(--warn-bg); color: var(--warn); }
.alert-err a { background: var(--err-bg); color: var(--err); }
.alert-info a { background: var(--info-bg); color: var(--info); }
.allgood { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px; border-radius: 10px; background: var(--ok-bg); color: var(--ok); font-weight: 500; }
.statlist { list-style: none; margin: 0; padding: 0; }
.statlist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line2); }
.statlist li:last-child { border-bottom: 0; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line2); }
.feed li:last-child { border-bottom: 0; }
.feed-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.feed-platform_staff { background: var(--brand); }
.feed-retailer { background: var(--gold); }
.feed-distributor { background: var(--info); }
.feed-text { flex: 1; min-width: 0; }
.feed-time { flex: none; white-space: nowrap; }

/* facts, badges, flash */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0 0 12px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.badge { display: inline-block; padding: 2px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-err { background: var(--err-bg); color: var(--err); }
.badge-off { background: var(--surface-2); color: var(--muted); }
.flash { padding: 12px 16px; border-radius: 12px; font-size: 15px; }
.flash-ok { background: var(--ok-bg); color: var(--ok); }
.flash-warn { background: var(--warn-bg); color: var(--warn); }
.flash-err { background: var(--err-bg); color: var(--err); }

/* forms and buttons */
.field { display: block; margin-bottom: 16px; }
.label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.input { width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid #8FA5A0; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; }
.input:focus { border-color: var(--brand); }
.input-code { font-family: var(--mono); font-size: 22px; letter-spacing: .2em; text-align: center; }
select.input { appearance: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 10px; border: 1.5px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-quiet { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-quiet:hover { background: var(--surface-2); }
.btn-block { width: 100%; }
.more { margin-top: 12px; }
.more summary { cursor: pointer; font-weight: 600; color: var(--brand); min-height: 44px; display: flex; align-items: center; }
.more[open] summary { margin-bottom: 8px; }
.check { display: flex; align-items: center; gap: 8px; margin: 4px 0 16px; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

/* tables */
.scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #F6F9F9; white-space: nowrap; }
.table th.num { text-align: right; }
.table td { padding: 13px 12px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }

/* KYC reviews */
.kyc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.kyc-fig { margin: 0; }
.kyc-img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.kyc-fig figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* sign-in */
.split { display: flex; flex-wrap: wrap; min-height: 100vh; }
.split-brand { flex: 1 1 420px; min-width: 0; background: var(--side); color: #CFE0E1; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.split-copy { max-width: 440px; }
.split-copy h2 { margin: 0; font-size: 36px; line-height: 1.15; font-weight: 600; color: #fff; letter-spacing: -.4px; }
.split-copy p { margin: 16px 0 0; font-size: 17px; line-height: 1.6; }
.split-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.split-points li { display: flex; align-items: center; gap: 12px; }
.split-points .ico { color: var(--gold); }
.split-main { flex: 1 1 440px; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 34px 30px; }
.auth-title { font-size: 26px; font-weight: 600; margin-bottom: 18px; letter-spacing: -.2px; }

@media (max-width: 1100px) { .duo { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .side { position: static; height: auto; flex: none; padding: 14px 16px; gap: 12px; overflow: visible; }
  .sidenav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .nav-link { white-space: nowrap; padding: 9px 14px; min-height: 40px; }
  .nav-link span:first-of-type { display: inline; }
  .side-user { margin-top: 0; flex-direction: row; align-items: center; justify-content: space-between; padding-top: 12px; }
  .side-out { width: auto; }
  .main { padding: 20px 16px 40px; }
  .page-title { font-size: 24px; }
  .split-brand { padding: 28px 24px; gap: 24px; }
  .split-copy h2 { font-size: 28px; }
}

/* v0.5.1: full width; form fields keep a readable width */
.card form .field, .card form .check { max-width: 560px; }

/* v0.6.0: Wallet-O settings and top-up requests */
.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 5px; width: fit-content; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.subnav a { padding: 8px 16px; border-radius: 8px; color: var(--muted); font-weight: 500; text-decoration: none; transition: background .2s, color .2s; }
.subnav a:hover { background: var(--surface-2); color: var(--ink); }
.subnav a.is-on { background: var(--brand); color: var(--brand-ink); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 560px; }
.pair .field { margin-bottom: 8px; }
.qrprev { display: flex; justify-content: center; padding: 16px; margin-bottom: 12px; background: var(--surface-2); border-radius: 14px; }
.qrprev svg { width: 220px; height: 220px; max-width: 100%; height: auto; border-radius: 8px; }
.searchbox { display: flex; gap: 8px; margin-left: auto; }
.searchbox .input { height: 44px; width: 240px; max-width: 100%; }
.utr { font-size: 15px; letter-spacing: .06em; word-break: break-all; }
.decide { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.decide .input { height: 40px; width: 220px; flex: 1 1 180px; }
.decide .btn { min-height: 40px; }
@media (max-width: 640px) { .pair { grid-template-columns: minmax(0, 1fr); } .searchbox { margin-left: 0; width: 100%; } }
.table td.num { white-space: nowrap; }
.utr { word-break: normal; white-space: nowrap; }

/* v0.6.3: customer PAN fee setting */
.payer{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:10px 0 14px}
.payopt{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border:1px solid var(--line,#dfe5ee);border-radius:12px;cursor:pointer;background:#fff;transition:border-color .15s,box-shadow .15s}
.payopt:hover{border-color:#9db3d3}
.payopt:has(input:checked){border-color:#0b4fb3;box-shadow:0 0 0 3px rgba(11,79,179,.14);background:#f4f8ff}
.payopt span{display:grid;gap:2px}.payopt small{color:#5b6b85}
.field.narrow{max-width:300px}
#pan{margin-top:18px}

/* v0.7.0 Associate Services */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.svfilter { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 10px; margin: 0 0 12px; align-items: center; }
.svfilter .input, .field select.input, .svbulk select.input { appearance: auto; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line2); border-radius: 12px; margin: 8px 0; }
.svtable { min-width: 860px; }
.svtable tbody tr:hover { background: var(--surface-2); }
.svtable .sv-pick { width: 44px; text-align: center; }
.svtable input[type=checkbox], .svbulk input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--brand); }
.svbulk { margin-top: 18px; padding: 18px 20px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; }
.svbulk-h { margin: 0 0 10px; font-size: 16px; }
.svbulk-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.svbulk .field { margin-bottom: 8px; }
.svpager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
@media (max-width: 900px) { .svfilter { grid-template-columns: minmax(0, 1fr); } .svbulk-row { grid-template-columns: minmax(0, 1fr); } }
.svtable td.nowrap { white-space: nowrap; }

/* v0.8.0 credit checks */
.mkcell{display:flex;gap:6px;align-items:center;min-width:210px}.mkcell select.input{flex:1 1 110px;min-width:0;width:auto}.mkcell input.input{flex:0 0 80px;width:80px;min-width:0}
/* v0.9.0 held checks */
.resolve{display:flex;flex-direction:column;gap:6px;min-width:210px}.resolve .input{width:100%}.resolve-btns{display:flex;gap:6px;flex-wrap:wrap}.resolve-btns .btn{padding:6px 10px;font-size:13px}
/* v0.14.0 Loans redesign (bank style): tabs, stepper, file header, document checklist */
.ln-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin: 4px 0 22px; overflow-x: auto; scrollbar-width: thin; }
.ln-tabs a { display: flex; gap: 8px; align-items: center; padding: 12px 20px; font-weight: 600; font-size: 15px; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.ln-tabs a:hover { color: var(--ink); }
.ln-tabs a.is-on { color: var(--brand); border-bottom-color: var(--brand); }
.ln-ct { background: var(--line2); color: var(--muted); border-radius: 999px; font-size: 12px; padding: 1px 9px; font-weight: 600; }
.ln-tabs a.is-on .ln-ct { background: #DDF0EC; color: var(--brand); }
.ln-pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.ln-pills a { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 7px 16px; font-size: 14px; text-decoration: none; }
.ln-pills a.is-on { background: var(--side); color: #fff; border-color: var(--side); }
.ln-cols { display: grid; grid-template-columns: 220px minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
@media (max-width: 1100px) { .ln-cols { grid-template-columns: minmax(0, 1fr); } .ln-steps { display: flex; overflow-x: auto; gap: 6px; } }
.ln-steps { list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.ln-steps li { display: flex; gap: 10px; align-items: center; padding: 11px 10px; border-radius: 9px; color: var(--muted); font-size: 15px; white-space: nowrap; }
.ln-steps li b { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 12px; flex: none; }
.ln-steps li.is-on { color: var(--ink); font-weight: 600; background: #E6F3F0; }
.ln-steps li.is-on b { border-color: var(--brand); background: var(--brand); color: #fff; }
.ln-steps li.is-done { color: var(--ink); }
.ln-steps li.is-done b { border-color: var(--brand); color: var(--brand); }
.ln-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(15,34,48,.05); padding: 22px; margin-bottom: 18px; }
.ln-card h3 { margin: 0 0 4px; font-size: 18px; }
.ln-card .ln-hint { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.ln-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .ln-two { grid-template-columns: 1fr; } }
.ln-card select { width: 100%; height: 50px; padding: 0 12px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid #8FA5A0; border-radius: 10px; }
.ln-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.ln-actions .btn { width: auto; margin-top: 0; min-width: 140px; }
.ln-note { border-radius: 10px; padding: 12px 15px; font-size: 14.5px; margin: 16px 0 0; }
.ln-note-info { background: #E7F0FA; color: #1F5FA6; } .ln-note-warn { background: var(--warn-bg); color: var(--warn); }
.ln-note-ok { background: var(--ok-bg); color: var(--ok); } .ln-note-bad { background: var(--err-bg); color: var(--err); }
.ln-bar { height: 8px; background: var(--line2); border-radius: 99px; overflow: hidden; margin: 10px 0 14px; } .ln-bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.ln-kpi { font-size: 40px; font-weight: 700; line-height: 1; color: var(--side); margin: 4px 0; }
.ln-side { position: sticky; top: 12px; }
.ln-dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; font-size: 14.5px; } .ln-dl dt { color: var(--muted); } .ln-dl dd { margin: 0; font-weight: 600; text-align: right; word-break: break-word; }
.ln-chip { display: inline-block; border-radius: 999px; padding: 3px 11px; font-size: 12.5px; font-weight: 600; white-space: nowrap; font-style: normal; }
.ln-chip-warn { background: var(--warn-bg); color: var(--warn); } .ln-chip-live { background: #E7F0FA; color: #1F5FA6; } .ln-chip-ok { background: var(--ok-bg); color: var(--ok); } .ln-chip-off { background: #ECEFF1; color: #5A6A70; } .ln-chip-bad { background: var(--err-bg); color: var(--err); }
.ln-tw { overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 1px 2px rgba(15,34,48,.05); }
.ln-tw .tbl { margin: 0; } .ln-tw .tbl th:first-child, .ln-tw .tbl td:first-child { padding-left: 20px; }
.ln-fh { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(15,34,48,.05); margin-bottom: 18px; overflow: hidden; }
.ln-fh-head { display: flex; gap: 14px; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line2); }
.ln-fh-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ln-fh-strip div { padding: 14px 22px; border-right: 1px solid var(--line2); } .ln-fh-strip div:last-child { border-right: 0; }
.ln-fh-strip span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); } .ln-fh-strip b { font-size: 15.5px; }
.ln-dline { border-radius: 12px; padding: 16px 20px; margin-bottom: 18px; background: var(--warn-bg); color: var(--warn); display: flex; gap: 18px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.ln-dline .t { font-size: 28px; font-weight: 700; line-height: 1.1; }
.ln-dline .ln-bar { background: rgba(0,0,0,.09); width: 260px; max-width: 100%; margin: 8px 0 0; } .ln-dline .ln-bar i { background: var(--warn); }
.ln-ck { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; padding: 12px 15px; margin-top: 10px; }
.ln-ck .ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; flex: none; background: var(--line2); color: var(--muted); }
.ln-ck.is-got .ic { background: var(--ok-bg); color: var(--ok); }
.ln-ck form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; } .ln-ck form .btn { margin-top: 0; width: auto; min-height: 40px; }
.ln-link { border: 1px dashed var(--line); border-radius: 9px; padding: 10px 14px; margin-top: 10px; background: #F6F9F9; font-size: 14px; word-break: break-all; }
.ln-tl { list-style: none; margin: 0; padding: 0 0 0 6px; } .ln-tl li { position: relative; padding: 0 0 20px 24px; border-left: 2px solid var(--line); } .ln-tl li:last-child { border-left-color: transparent; }
.ln-tl li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--surface); }
.ln-tl b { display: block; } .ln-tl span { font-size: 13px; color: var(--muted); }
.ln-empty { text-align: center; padding: 34px 10px; color: var(--muted); }
.ln-opt { display: block; margin: 0 0 10px; } .ln-opt .btn { width: 100%; justify-content: space-between; text-align: left; gap: 12px; min-height: 54px; margin-top: 0; white-space: normal; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; font-weight: 500; }
.ln-opt .btn:hover { border-color: var(--brand); background: #E6F3F0; filter: none; } .ln-opt .btn small { color: var(--muted); font-weight: 400; white-space: nowrap; }
.ln-ro { background: #FFF8DC; border: 1px solid #ECDCA0; color: #6B5A14; border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 0 0 16px; }
.ln-ck form input[type=file] { width: auto; max-width: 250px; min-height: 0; padding: 6px; font-size: 13px; }
.ln-fh-strip small { display: block; color: var(--muted); font-size: 13px; }

/* v0.12.1: pop-up forms (pure CSS, no script: the page policy allows none). Opened with a #link, closed with the X, the backdrop or Back. */
.page-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.modal { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal:target { display: flex; }
.modal-bg { position: absolute; inset: 0; background: rgba(10, 30, 38, .55); }
.modal-box { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border-radius: 18px; padding: 26px 26px 22px; box-shadow: 0 24px 60px rgba(10, 30, 38, .35); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.modal-title { font-size: 20px; font-weight: 600; margin: 0; }
.modal-sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.modal-x { flex: none; width: 40px; height: 40px; margin: -8px -8px 0 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 26px; line-height: 1; }
.modal-x:hover { background: var(--surface-2); color: var(--ink); }
.modal-box form .field { max-width: none; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
.modal-actions .btn { min-width: 120px; }
.hint { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.5; resize: vertical; font-family: var(--mono); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 8px; background: var(--surface-2); color: var(--ink); font: 500 13px var(--mono); }
.chip-more { background: none; color: var(--muted); font-family: var(--font); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 14px; }
.code-cell { font-family: var(--mono); font-weight: 600; letter-spacing: .02em; }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
@media (max-width: 640px) { .modal { align-items: flex-end; padding: 0; } .modal-box { max-width: none; border-radius: 18px 18px 0 0; max-height: 92vh; } .page-actions .btn { width: 100%; } }
.page-actions p { flex: 1 1 320px; margin: 0; } .page-actions .btn { flex: none; }
