/* SandiChat 1.0.5 — light / dark / system theme (also used by admin) */
@font-face {
  font-family: "Open Sans"; font-style: normal; font-display: swap; font-weight: 300 800;
  src: url(fonts/open-sans-latin-wght-normal.woff2) format("woff2-variations"), url(fonts/open-sans-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans"; font-style: normal; font-display: swap; font-weight: 300 800;
  src: url(fonts/open-sans-latin-ext-wght-normal.woff2) format("woff2-variations"), url(fonts/open-sans-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --subtle: #f4f4f5;
  --line: #e4e4e7;
  --line-2: #d4d4d8;
  --text: #18181b;
  --text-2: #52525b;
  --muted: #71717a;
  --primary: #18181b;
  --primary-hover: #27272a;
  --green: #16a34a;
  --green-soft: #f0fdf4;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-lg: 0 16px 40px -12px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .04);
  --sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Open Sans", system-ui, sans-serif; /* seluruh teks memakai Open Sans */
  --on-primary: #ffffff;
  --placeholder: #a1a1aa;
  --focus-ring: rgba(24, 24, 27, .08);
  --green-line: #bbf7d0; --green-text: #15803d;
  --amber-line: #fde68a;
  --red-line: #fecaca; --red-text: #991b1b; --red-hover: #b91c1c;
  --blue-line: #bfdbfe; --blue-text: #1e3a8a;
  --backdrop: rgba(9, 9, 11, .4);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0b0d; --surface: #151518; --subtle: #1f1f23; --line: #2a2a2f; --line-2: #3a3a40;
  --text: #f4f4f5; --text-2: #c4c4cc; --muted: #8b8b95;
  --primary: #f4f4f5; --primary-hover: #dcdce0; --on-primary: #0b0b0d;
  --green: #22c55e; --green-soft: #0f2418; --green-line: #1d4d31; --green-text: #4ade80;
  --amber: #f59e0b; --amber-soft: #2a1f0a; --amber-line: #5c4210;
  --red: #f87171; --red-soft: #2a1213; --red-line: #5c2324; --red-text: #fca5a5; --red-hover: #ef4444;
  --blue: #60a5fa; --blue-soft: #0f1b2e; --blue-line: #1e3a5f; --blue-text: #bfdbfe;
  --placeholder: #63636d; --focus-ring: rgba(244, 244, 245, .12); --backdrop: rgba(0, 0, 0, .6);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-lg: 0 16px 40px -12px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .3);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --bg: #0b0b0d; --surface: #151518; --subtle: #1f1f23; --line: #2a2a2f; --line-2: #3a3a40;
    --text: #f4f4f5; --text-2: #c4c4cc; --muted: #8b8b95;
    --primary: #f4f4f5; --primary-hover: #dcdce0; --on-primary: #0b0b0d;
    --green: #22c55e; --green-soft: #0f2418; --green-line: #1d4d31; --green-text: #4ade80;
    --amber: #f59e0b; --amber-soft: #2a1f0a; --amber-line: #5c4210;
    --red: #f87171; --red-soft: #2a1213; --red-line: #5c2324; --red-text: #fca5a5; --red-hover: #ef4444;
    --blue: #60a5fa; --blue-soft: #0f1b2e; --blue-line: #1e3a5f; --blue-text: #bfdbfe;
    --placeholder: #63636d; --focus-ring: rgba(244, 244, 245, .12); --backdrop: rgba(0, 0, 0, .6);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-lg: 0 16px 40px -12px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
a.btn { text-decoration: none; }
code, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 14px; border-radius: 4px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  font-size: 14px; font-weight: 500; white-space: nowrap; box-shadow: var(--shadow);
  transition: background .12s, border-color .12s, opacity .12s;
}
.btn:hover { background: var(--subtle); }
.btn:focus-visible, .seg-btn:focus-visible, .link-btn:focus-visible, .room-code:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn.ghost:hover { background: var(--subtle); color: var(--text); }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: var(--red-soft); border-color: var(--red-line); }
.btn.icon { width: 38px; padding: 0; }
.btn.small { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 4px; }
.btn.block { width: 100%; }

/* ---------- form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span:first-child { font-size: 13px; font-weight: 500; color: var(--text-2); }
input, textarea, select {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 4px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text);
  outline: none; transition: border-color .12s, box-shadow .12s;
}
textarea { height: auto; padding: 10px 12px; }
input:focus, textarea:focus, select:focus { border-color: var(--text); box-shadow: 0 0 0 3px var(--focus-ring); }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
.input-group { display: flex; gap: 8px; }
.hint { font-size: 12.5px; color: var(--muted); margin: -4px 0 14px; }
.status { min-height: 20px; margin: 12px 0 0; font-size: 13.5px; color: var(--text-2); text-align: center; }
.status.err { color: var(--red); }

/* ---------- halaman awal ---------- */
.home { min-height: 100%; display: flex; justify-content: center; padding: 56px 16px 32px; }
.home-inner { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; margin-bottom: 28px; }
.logo-mark { width: 34px; height: 34px; border-radius: 6px; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; }
.logo-mark .i { width: 18px; height: 18px; }
.home h1 { font-size: 24px; line-height: 1.25; letter-spacing: -.02em; margin: 0 0 8px; text-align: center; font-weight: 650; }
.sub { color: var(--muted); text-align: center; margin: 0 0 28px; font-size: 14.5px; max-width: 360px; }
.card { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 20px; box-shadow: var(--shadow); }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; background: var(--subtle); border-radius: 6px; margin-bottom: 20px; }
.seg-btn { height: 34px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; }
.seg-btn.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 12.5px; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust .i { width: 14px; height: 14px; }

/* ---------- ruang chat ---------- */
body.in-chat { overflow: hidden; }
.chat { height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.chat-bar {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px; padding-top: calc(10px + env(safe-area-inset-top));
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.room { min-width: 0; }
.room-code { background: none; border: 0; padding: 0; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--text); border-radius: 4px; }
.room-code:hover { text-decoration: underline; text-underline-offset: 3px; }
.room-meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.sep { color: var(--line-2); }
.link-btn { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 0; color: var(--text-2); cursor: pointer; font-size: 12.5px; border-radius: 4px; }
.link-btn:hover { color: var(--text); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }

.bar-actions { display: flex; gap: 8px; }
.popover {
  position: absolute; top: calc(100% + 6px); left: 20px; z-index: 30; min-width: 220px; max-width: calc(100vw - 32px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow-lg); padding: 8px;
}
.pop-title { font-size: 12px; font-weight: 600; color: var(--muted); padding: 4px 8px 6px; }
.popover ul { list-style: none; margin: 0; padding: 0; max-height: 50vh; overflow-y: auto; }
.popover li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; font-size: 14px; border-radius: 4px; }
.popover li .you { color: var(--muted); font-size: 12.5px; }

.conn { text-align: center; font-size: 13px; padding: 7px 16px; background: var(--amber-soft); color: var(--amber); border-bottom: 1px solid var(--amber-line); }
.messages { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 24px 20px; }
.messages > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: 14px; gap: 6px; max-width: 320px; }
.empty .i { width: 28px; height: 28px; color: var(--line-2); margin-bottom: 4px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 14px; }
.msg.cont { margin-top: -10px; }
.msg .meta { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; margin: 0 4px 3px; }
.msg .who { font-weight: 600; color: var(--text); }
.msg time { color: var(--muted); font-size: 11.5px; }
.msg .body {
  max-width: min(560px, 85%); padding: 9px 13px; border-radius: 6px; border-top-left-radius: 2px;
  background: var(--surface); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere;
}
.msg .body a { color: var(--blue); }
.msg.mine { align-items: flex-end; }
.msg.mine .body { background: var(--primary); border-color: var(--primary); color: var(--on-primary); border-radius: 6px; border-top-right-radius: 2px; }
.msg.mine .body a { color: var(--on-primary); }
.msg.sys { align-items: center; }
.msg.sys span { font-size: 12px; color: var(--muted); padding: 2px 10px; }
.msg.sys.warn span { color: var(--amber); background: var(--amber-soft); border-radius: 3px; }

.composer { background: var(--surface); border-top: 1px solid var(--line); padding: 12px 20px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.composer-inner { max-width: 760px; margin: 0 auto; display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { resize: none; min-height: 42px; max-height: 160px; line-height: 1.45; border-radius: 6px; }
.btn.send { width: 42px; height: 42px; border-radius: 6px; }

/* ---------- dialog & toast ---------- */
.dialog {
  border: 1px solid var(--line); border-radius: 6px; padding: 22px; width: min(440px, calc(100vw - 32px));
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
.dialog::backdrop { background: var(--backdrop); }
.dialog h3 { margin: 0 0 16px; font-size: 17px; font-weight: 600; }
.kv { margin-bottom: 14px; }
.kv-label { font-size: 12.5px; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.kv-row { display: flex; gap: 6px; align-items: center; }
.kv-row code { flex: 1; min-width: 0; background: var(--subtle); border-radius: 4px; padding: 6px 10px; font-size: 13.5px; overflow-wrap: anywhere; }
.kv-actions { display: grid; gap: 8px; margin: 18px 0 14px; }
.secret { filter: blur(5px); user-select: none; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.dialog .hint { margin: 0; }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 100;
  background: var(--primary); color: var(--on-primary); padding: 9px 16px; border-radius: 4px; font-size: 13.5px; box-shadow: var(--shadow-lg);
  max-width: calc(100vw - 32px);
}

/* ---------- HP ---------- */
@media (max-width: 640px) {
  .home { padding-top: 36px; }
  .home h1 { font-size: 21px; }
  .chat-bar { padding-left: 12px; padding-right: 12px; }
  .bar-actions .btn { width: 38px; padding: 0; }
  .bar-actions .lbl { display: none; }
  .popover { left: 12px; }
  .messages { padding: 16px 12px; }
  .msg .body { max-width: 88%; }
  .composer { padding-left: 10px; padding-right: 10px; }
  input, textarea { font-size: 16px; } /* cegah zoom otomatis iOS */
}

/* ---------- 1.0.3: halaman setup / node, pemberitahuan, pengumuman ---------- */
body.plain { overflow-y: auto; }
.center-page { min-height: 100%; display: flex; justify-content: center; padding: 48px 16px 40px; }
.center-page .center-inner { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 0; }
.center-page .center-inner.wide { max-width: 600px; }
.center-page .card { margin-bottom: 14px; }
.center-page .logo { text-decoration: none; }
.page-title { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 8px; text-align: center; line-height: 1.3; }
.card .page-title { font-size: 18px; margin-top: 12px; }
.card-title { font-size: 15px; font-weight: 700; margin: 0 0 10px; }
.text-center { text-align: center; }
.text-center .muted { margin: 0 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.top-gap { margin-top: 14px; }
.grid2 { display: grid; grid-template-columns: 140px 1fr; gap: 0 12px; }
.grid2.even { grid-template-columns: 1fr 1fr; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--text-2); cursor: pointer; line-height: 1.45; }
.check input { width: 16px; height: 16px; margin-top: 2px; flex: none; accent-color: var(--primary); }
.alert { border-radius: 4px; padding: 10px 14px; margin-bottom: 14px; font-size: 13.5px; width: 100%; }
.alert.bad { background: var(--red-soft); color: var(--red-text); border: 1px solid var(--red-line); }
.notice-list, .req-list, .step-list { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; color: var(--text-2); }
.notice-list b, .req-list b { color: var(--text); }
.node-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--green-text); background: var(--green-soft); border: 1px solid var(--green-line); border-radius: 3px; padding: 3px 10px; }
.node-badge.wait { color: var(--amber); background: var(--amber-soft); border-color: var(--amber-line); }
.node-badge.wait .dot { background: var(--amber); }
.node-badge.bad { color: var(--red); background: var(--red-soft); border-color: var(--red-line); }
.node-badge.bad .dot { background: var(--red); }
.foot-small { font-size: 12.5px; color: var(--muted); text-align: center; }
.foot-small a { color: var(--text-2); }

.announce {
  width: 100%; display: flex; gap: 10px; align-items: flex-start; margin: -12px 0 20px; padding: 10px 14px;
  background: var(--blue-soft); border: 1px solid var(--blue-line); border-radius: 4px; color: var(--blue-text); font-size: 13.5px;
}
.announce .i { margin-top: 1px; color: var(--blue); }
.announce.small-ann { margin: 0 0 14px; }
#noticeDialog .notice-list { font-size: 13.5px; }
#noticeDialog .check { margin-top: 4px; }

@media (max-width: 640px) {
  .grid2, .grid2.even { grid-template-columns: 1fr; }
  .center-page { padding-top: 28px; }
}

/* ---------- 1.0.4 ---------- */
.dialog-foot.between { justify-content: space-between; align-items: center; }
.btn.danger-solid { background: #dc2626; border-color: #dc2626; color: #fff; }
.btn.danger-solid:hover { background: #b91c1c; }
.scan-btn .i { width: 17px; height: 17px; }
.scan-btn { flex: none; }


/* tombol & daftar anggota */
.members-btn { gap: 6px; font-variant-numeric: tabular-nums; }
.sheet {
  border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 0; box-shadow: var(--shadow-lg);
  width: min(380px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; border-radius: 0;
}
.sheet::backdrop { background: var(--backdrop); }
.sheet form { display: flex; flex-direction: column; height: 100%; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); padding-top: calc(16px + env(safe-area-inset-top)); }
.sheet-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.member-list { list-style: none; margin: 0; padding: 8px; overflow-y: auto; flex: 1; }
.member-list li { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 4px; }
.member-list li:hover { background: var(--subtle); }
.av { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; position: relative; }
.av::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); border: 2px solid var(--surface); }
.av.c0 { background: #2a78d6; } .av.c1 { background: #c2410c; } .av.c2 { background: #0f766e; } .av.c3 { background: #a16207; }
.av.c4 { background: #be185d; } .av.c5 { background: #15803d; } .av.c6 { background: #4a3aa7; } .av.c7 { background: #b91c1c; }
.m-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.m-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-status { font-size: 12px; color: var(--green); }
.m-you { font-size: 11px; font-weight: 700; color: var(--text-2); background: var(--subtle); border-radius: 3px; padding: 1px 7px; }
.sheet-note { margin: 0; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }

/* peringatan keluar */
.warn-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.warn-head h3 { margin: 0; }
.warn-ico { width: 34px; height: 34px; border-radius: 4px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; flex: none; }

/* undangan + QR */
.invite-grid { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qr-box img { width: 168px; height: 168px; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.check.tiny { font-size: 12px; }
.check.tiny input { width: 14px; height: 14px; }
.invite-info { min-width: 0; }

/* scan QR */
.scan-view { position: relative; width: 100%; aspect-ratio: 1 / 1; background: #09090b; border-radius: 4px; overflow: hidden; }
.scan-view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 18%; border: 2px solid rgba(255, 255, 255, .9); border-radius: 6px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }
#scanDialog .status { text-align: left; }

@media (max-width: 640px) {
  .invite-grid { grid-template-columns: 1fr; justify-items: center; }
  .invite-info { width: 100%; }
  .sheet { width: 100vw; height: auto; max-height: 75dvh; margin: auto 0 0 0; border-radius: 6px 6px 0 0; }
  .scan-btn .lbl { display: none; }
  .scan-btn { width: 40px; padding: 0; }
}
.center-page .announce { margin: 0 0 16px; }

/* ---------- 1.0.5 ---------- */
/* language & theme switch */
.home { position: relative; }
.home-top, .page-top { position: absolute; top: 0; right: 0; left: 0; display: flex; justify-content: flex-end; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); pointer-events: none; }
.page-top { position: relative; margin-bottom: -48px; z-index: 2; }
.prefs { display: flex; gap: 8px; pointer-events: auto; }
.pref-seg { display: inline-flex; padding: 2px; background: var(--subtle); border: 1px solid var(--line); border-radius: 5px; }
.pref-seg button { height: 26px; min-width: 30px; padding: 0 7px; border: 0; border-radius: 3px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; display: grid; place-items: center; }
.pref-seg button .i { width: 15px; height: 15px; }
.pref-seg button:hover { color: var(--text); }
.pref-seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.pref-seg button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.home { padding-top: 72px; }
.center-page { padding-top: 64px; }

/* simple links under the form: install app / run a node */
.more-links { width: 100%; margin-top: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); overflow: hidden; }
.more-link { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; background: transparent; color: inherit; text-decoration: none; text-align: left; cursor: pointer; }
.more-link + .more-link { border-top: 1px solid var(--line); }
.more-link:hover { background: var(--subtle); }
.more-link:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.ml-ico { width: 32px; height: 32px; flex: none; border-radius: 4px; background: var(--subtle); color: var(--text-2); display: grid; place-items: center; }
.ml-ico .i { width: 17px; height: 17px; }
.ml-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.ml-text b { font-size: 14px; font-weight: 600; color: var(--text); }
.ml-arrow { color: var(--muted); display: grid; }
.ml-arrow .i { width: 16px; height: 16px; }

/* chat bar */
.e2e-mini { display: inline-flex; align-items: center; gap: 4px; color: var(--green-text); }
.e2e-mini .i { width: 13px; height: 13px; }
.srv-tag { font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: .04em; color: var(--text-2); cursor: help; }
.srv-tag.failover { color: var(--amber); }
.code-input { text-transform: uppercase; letter-spacing: .08em; }
.code-input::placeholder { text-transform: none; letter-spacing: normal; }
.room-code { letter-spacing: .06em; }

/* node page */
.step-list.big { list-style: none; padding: 0; counter-reset: st; gap: 12px; margin-bottom: 18px; }
.step-list.big li { counter-increment: st; position: relative; padding: 2px 0 0 36px; min-height: 24px; line-height: 1.5; }
.step-list.big li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 4px; background: var(--subtle); border: 1px solid var(--line); color: var(--text); font-size: 12.5px; font-weight: 700; display: grid; place-items: center; }
details.faq { padding: 0; }
details.faq summary { padding: 14px 20px; cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--muted); font-size: 18px; font-weight: 400; }
details.faq[open] summary::after { content: "–"; }
details.faq .notice-list { padding: 0 20px 6px 38px; }
.center-page .center-inner.wide .announce { margin: 0 0 16px; }
code { background: var(--subtle); border-radius: 3px; padding: 0 4px; font-size: .92em; }
.kv-row code { padding: 6px 10px; }
.tag.tagid { font-variant-numeric: tabular-nums; letter-spacing: .04em; }

@media (max-width: 640px) {
  .home { padding-top: 64px; }
  .center-page { padding-top: 60px; }
}

/* ---------- 1.0.6 ---------- */
.logo-img { height: 34px; width: auto; max-width: 180px; object-fit: contain; display: block; flex: none; }
.logo-img.sm { height: 28px; max-width: 120px; }
.hint.ok-hint { color: var(--green-text); }

/* ---------- 1.0.7 ---------- */
/* Penanda node: tiap karakter dalam kotak selebar sama (Open Sans tetap dipakai) */
.tagid { display: inline-flex; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0; vertical-align: baseline; }
.tagid > i { font-style: normal; display: inline-block; width: .86em; text-align: center; }
.tagid > i:first-child { width: .62em; }
.flag { display: inline-block; width: 1.35em; text-align: center; font-size: 1.05em; line-height: 1; }
.flag.none { width: 1.35em; }
.tabs { display: flex; gap: 4px; padding: 3px; background: var(--subtle); border: 1px solid var(--line); border-radius: 6px; margin: 0 0 22px; }
.tabs a { padding: 7px 16px; border-radius: 4px; text-decoration: none; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.tabs a.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.stat-row { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
.stat span { font-size: 12.5px; color: var(--muted); }
.stat b { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.card.flush { padding: 0; overflow: hidden; }
.card-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.seg-links { display: inline-flex; padding: 2px; background: var(--subtle); border: 1px solid var(--line); border-radius: 5px; }
.seg-links a { padding: 4px 12px; border-radius: 3px; font-size: 12.5px; font-weight: 600; text-decoration: none; color: var(--muted); }
.seg-links a.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 14px; font-size: 12.5px; text-decoration: none; color: var(--text); background: var(--surface); }
.ptbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptbl th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 9px 16px; background: var(--subtle); border-bottom: 1px solid var(--line); }
.ptbl td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ptbl tr:last-child td { border-bottom: 0; }
.ptbl .num { text-align: right; font-variant-numeric: tabular-nums; width: 1%; white-space: nowrap; }
.ptbl .w-bar { width: 40%; }
a.plain { color: inherit; text-decoration: none; }
a.plain:hover { text-decoration: underline; }
.mini-tag { font-size: 11px; font-weight: 600; padding: 0 6px; border-radius: 3px; background: var(--primary); color: var(--on-primary); margin-left: 6px; vertical-align: 1px; }
.pstate { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.pstate i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.pstate.ok { color: var(--green-text); } .pstate.ok i { background: var(--green); }
.pstate.bad { color: var(--red); } .pstate.bad i { background: var(--red); }
.pstate.warn { color: var(--amber); } .pstate.warn i { background: var(--amber); }
.pbar { display: block; height: 8px; border-radius: 4px; background: var(--subtle); overflow: hidden; }
.pbar span { display: block; height: 100%; background: var(--blue); border-radius: 4px; }
.pbar .w0 { width: 0%; }
.pbar .w1 { width: 5%; }
.pbar .w2 { width: 10%; }
.pbar .w3 { width: 15%; }
.pbar .w4 { width: 20%; }
.pbar .w5 { width: 25%; }
.pbar .w6 { width: 30%; }
.pbar .w7 { width: 35%; }
.pbar .w8 { width: 40%; }
.pbar .w9 { width: 45%; }
.pbar .w10 { width: 50%; }
.pbar .w11 { width: 55%; }
.pbar .w12 { width: 60%; }
.pbar .w13 { width: 65%; }
.pbar .w14 { width: 70%; }
.pbar .w15 { width: 75%; }
.pbar .w16 { width: 80%; }
.pbar .w17 { width: 85%; }
.pbar .w18 { width: 90%; }
.pbar .w19 { width: 95%; }
.pbar .w20 { width: 100%; }
.empty-pad { padding: 18px 16px; margin: 0; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pager-btns { display: inline-flex; align-items: center; gap: 6px; }
.pager .btn.small { min-width: 32px; padding: 0 8px; }
.pager .btn[aria-disabled="true"], .pager .btn:disabled { opacity: .4; pointer-events: none; }
.pg-num { font-size: 12.5px; color: var(--text-2); min-width: 54px; text-align: center; font-variant-numeric: tabular-nums; }
.pg-nums { display: inline-flex; gap: 4px; }
.pg-nums .btn.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.sheet .pager { padding: 8px 18px; }
@media (max-width: 640px) {
  .stat-row { gap: 8px; }
  .stat { padding: 10px 12px; }
  .stat b { font-size: 20px; }
  .ptbl th, .ptbl td { padding-left: 12px; padding-right: 12px; }
  .ptbl .w-bar { width: 30%; }
  .tabs { width: 100%; }
  .tabs a { flex: 1; text-align: center; padding: 7px 8px; }
}
@media (max-width: 460px) { .hide-xs { display: none; } }
.restore-body { padding: 0 20px 18px; }
.restore-body .hint { margin: 0 0 12px; }

/* ---------- 1.0.8: nama node dalam kotak berwarna, lebar seragam ---------- */
.nodetag {
  --c: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: 76px; height: 22px; padding: 0 4px; border-radius: 4px; vertical-align: middle;
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em; line-height: 1; white-space: nowrap;
  color: color-mix(in srgb, var(--c) 72%, var(--text));
  background: color-mix(in srgb, var(--c) 14%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--c) 38%, var(--surface));
}
.nodetag.c0 { --c: #2a78d6; } .nodetag.c1 { --c: #eb6834; } .nodetag.c2 { --c: #1baf7a; } .nodetag.c3 { --c: #eda100; }
.nodetag.c4 { --c: #e87ba4; } .nodetag.c5 { --c: #008300; } .nodetag.c6 { --c: #4a3aa7; } .nodetag.c7 { --c: #e34948; }
.node-badge .nodetag { margin: 0 2px; }
.room-meta .nodetag { width: 64px; height: 18px; font-size: 11.5px; --c: var(--muted); }
.room-meta .nodetag.failover { --c: var(--amber); }

/* trafik node */
.traffic-card { text-align: left; }
.tc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.tc-head .card-title { margin: 0; }
.tc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.tc-stat { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; background: var(--bg); }
.tc-stat span { font-size: 12.5px; color: var(--muted); }
.tc-stat b { font-size: 20px; font-variant-numeric: tabular-nums; }
.tc-q-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.tc-quota .hint { margin: 8px 0 0; }
.pbar.big { height: 10px; border-radius: 5px; }
.pbar.over span { background: var(--red); }
.tc-bars { display: flex; align-items: flex-end; gap: 4px; height: 56px; margin-top: 14px; }
.tcb { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.tcb span { display: block; width: 100%; background: var(--blue); border-radius: 2px 2px 0 0; min-height: 2px; }
.tcb .h0 { height: 2%; }
.tcb .h1 { height: 5%; }
.tcb .h2 { height: 10%; }
.tcb .h3 { height: 15%; }
.tcb .h4 { height: 20%; }
.tcb .h5 { height: 25%; }
.tcb .h6 { height: 30%; }
.tcb .h7 { height: 35%; }
.tcb .h8 { height: 40%; }
.tcb .h9 { height: 45%; }
.tcb .h10 { height: 50%; }
.tcb .h11 { height: 55%; }
.tcb .h12 { height: 60%; }
.tcb .h13 { height: 65%; }
.tcb .h14 { height: 70%; }
.tcb .h15 { height: 75%; }
.tcb .h16 { height: 80%; }
.tcb .h17 { height: 85%; }
.tcb .h18 { height: 90%; }
.tcb .h19 { height: 95%; }
.tcb .h20 { height: 100%; }
.tc-bars-cap { margin-top: 4px; }
.tr-line { display: flex; gap: 10px; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tr-d { color: var(--blue); } .tr-u { color: var(--green-text); }
.tr-quota { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.tr-quota .pbar { width: 70px; flex: none; height: 6px; }

.ptbl td { white-space: nowrap; }
.ptbl td:first-child { white-space: nowrap; }
.ptbl .mini-tag { margin-left: 6px; }
.card.flush { overflow-x: auto; }

/* ---- 1.0.9: pengaturan pemilik node */
.owner-body { padding: 0 20px 18px; }
.owner-body > .hint { margin: 0 0 12px; }
.owner-body .small-gap { margin-top: 8px; }
.owner-body .row-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tc-quota .tc-q-top b .muted { font-weight: 500; }
.tr-q { display: block; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tr-line.small { font-size: 11.5px; gap: 8px; margin-top: 3px; }
.owner-body .status:empty { display: none; }
.owner-body #oTokenBox .btn { margin-bottom: 14px; }

/* ---------- 1.1.0: beranda lebih jelas (pilihan bergambar, langkah bernomor, ikon di kolom) ---------- */
.home-inner { max-width: 460px; }
.card.entry { padding: 16px 18px 18px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.seg-btn.choice {
  height: auto; min-height: 84px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 12px; text-align: left; border: 1.5px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text-2);
  transition: border-color .12s, background .12s;
}
.seg-btn.choice:hover { border-color: var(--line-2); background: var(--subtle); }
.seg-btn.choice.active { border-color: var(--text); background: var(--surface); color: var(--text); box-shadow: 0 0 0 3px var(--focus-ring); }
.choice-ico { width: 34px; height: 34px; border-radius: 5px; display: grid; place-items: center; background: var(--subtle); color: var(--text-2); flex: none; }
.choice.active .choice-ico { background: var(--primary); color: var(--on-primary); }
.choice-ico .i { width: 18px; height: 18px; }
.choice-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.choice-txt b { font-size: 14.5px; font-weight: 650; color: var(--text); }
.choice-txt small { font-size: 12px; line-height: 1.35; color: var(--muted); font-weight: 400; }
.field-lbl { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.step-n { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--subtle); border: 1px solid var(--line); font-size: 11.5px; font-weight: 700; color: var(--text); flex: none; }
.ifield { position: relative; display: block; min-width: 0; }
.ifield.grow { flex: 1; }
.ifield > .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.ifield > input { padding-left: 38px; }
.fhint { font-size: 12px; color: var(--muted); line-height: 1.4; }
.info-row { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; margin: -2px 0 14px; border-radius: 5px; background: var(--blue-soft); border: 1px solid var(--blue-line); color: var(--blue-text); font-size: 12.5px; line-height: 1.45; }
.info-row .i { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.btn.go { height: 44px; font-size: 15px; font-weight: 600; margin-top: 4px; }
.btn.go .go-create { display: none; }
.btn.go.is-create .go-create { display: inline-flex; }
.btn.go.is-create .go-join { display: none; }
.btn.go .i { width: 18px; height: 18px; }
.btn.icon.on { background: var(--subtle); color: var(--text); }
.how { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.how-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.how-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--subtle); color: var(--text-2); margin-bottom: 2px; }
.how-ico .i { width: 16px; height: 16px; }
.how-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.how-step b { font-size: 12.5px; font-weight: 650; }
.how-step small { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.shard-info { font-size: 12px; color: var(--muted); }
.empty-sub { font-size: 13px; }
@media (max-width: 420px) {
  .seg-btn.choice { min-height: 0; padding: 10px; }
  .choice-txt small { display: none; }
  .how { grid-template-columns: 1fr; }
  .how-step { flex-direction: row; text-align: left; gap: 10px; padding: 10px 12px; }
  .how-ico { margin-bottom: 0; flex: none; }
}
.ptbl th.w-q { width: 170px; }
.ptbl .tr-quota .pbar { width: 60px; }
.card.flush { overflow: hidden; }
.shard-more { margin-left: 4px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: help; }
/* ---------- 1.1.1: notifikasi & sensor ---------- */
#notifBtn .ic-on { display: none; }
#notifBtn.on .ic-on { display: inline-flex; }
#notifBtn.on .ic-off { display: none; }
#notifBtn.on { color: var(--text); background: var(--subtle); }
#notifBtn .ic-off { color: var(--muted); display: inline-flex; }
.cs-hint { max-width: 760px; margin: 0 auto 6px; font-size: 12px; color: var(--amber); display: flex; align-items: center; gap: 6px; }
.msg .body .cs-mask { display: inline-block; padding: 0 5px; border-radius: 3px; background: var(--subtle); color: var(--muted); font-size: .9em; }

/* ---------- 1.1.2: keyboard HP tidak menutupi chat + mode blur ---------- */
/* Ruang chat mengikuti layar yang terlihat (visualViewport): saat keyboard muncul, kotak pesan menyusut
   dari bawah — header & pesan sebelumnya tetap terlihat, tidak terdorong ke atas. */
body.in-chat .chat { position: fixed; left: 0; right: 0; top: var(--vvtop, 0px); height: var(--vvh, 100dvh); }
body.in-chat { position: fixed; inset: 0; overscroll-behavior: none; }
.msg.pending .body { opacity: 1; }
/* 1.1.3: penanda "mengirim" yang halus (bukan pesan pudar) agar terasa instan */
.msg.mine.pending .body::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border: 1.5px solid currentColor; border-radius: 50%; opacity: .45; vertical-align: middle; animation: scPend 1s ease-in-out infinite alternate; }
@keyframes scPend { from { opacity: .2; } to { opacity: .6; } }
.msg.failed .body { border-color: var(--red-line); background: var(--red-soft); color: var(--red-text); }
.msg .state { font-size: 11px; color: var(--muted); margin-top: 3px; text-align: right; }
.msg.failed .state { color: var(--red); cursor: pointer; text-decoration: underline; }
body.blur-on .msg:not(.sys) .body { filter: blur(6px); transition: filter .15s; user-select: none; }
body.blur-on .msg:not(.sys) .body.reveal { filter: none; user-select: text; }
body.blur-on .msg .who { filter: blur(4px); }
#blurBtn.on { background: var(--subtle); color: var(--text); }

/* ---------- 1.1.3: header chat ringkas di HP (menu ⋮) ---------- */
.more-btn { display: none; }
.bar-more { display: contents; }
.bar-more .mlbl, .bar-more .mchk { display: none; }
.chat-bar .room { flex: 1 1 auto; }
.bar-actions { flex: none; align-items: center; }
@media (max-width: 640px) {
  .chat-bar { gap: 8px; }
  .more-btn { display: inline-flex; }
  .more-btn[aria-expanded="true"] { background: var(--subtle); color: var(--text); }
  .bar-more {
    display: none; position: absolute; top: calc(100% + 6px); right: 12px; z-index: 40;
    flex-direction: column; gap: 2px; min-width: 200px; padding: 6px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
  }
  .bar-more.open { display: flex; }
  .bar-actions .bar-more .btn {
    width: 100%; height: 40px; padding: 0 10px; justify-content: flex-start; gap: 10px;
    border: 0; background: none; box-shadow: none; color: var(--text); font-weight: 500;
  }
  .bar-actions .bar-more .btn:hover { background: var(--subtle); }
  .bar-actions .bar-more .lbl, .bar-more .mlbl { display: inline; }
  .bar-more .mchk { display: inline-block; margin-left: auto; width: 30px; height: 18px; border-radius: 9px; background: var(--line-2); position: relative; flex: none; }
  .bar-more .mchk::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; }
  .bar-more .btn.on .mchk { background: var(--green); }
  .bar-more .btn.on .mchk::after { left: 14px; }
  .bar-actions .bar-more #notifBtn.on, .bar-actions .bar-more #blurBtn.on { background: none; }
  /* Kode ruang + penanda server selalu terlihat utuh */
  .room-meta { overflow: visible; flex-wrap: wrap; row-gap: 2px; }
  .room-code { font-size: 14.5px; }
}
@media (max-width: 380px) {
  .members-btn #onlineCount { font-size: 12px; }
  .bar-actions { gap: 6px; }
}

/* ---------- 1.1.3: halaman node ringkas ---------- */
.thanks-box { display: flex; gap: 12px; align-items: flex-start; text-align: left; margin: 14px 0 12px; padding: 12px 14px; border: 1px solid var(--green-line); background: var(--green-soft); border-radius: 6px; }
.thanks-box .i { width: 22px; height: 22px; flex: none; color: var(--green); fill: currentColor; stroke: none; margin-top: 1px; }
.thanks-box b { display: block; color: var(--green-text); font-size: 14.5px; }
.thanks-box p { margin: 3px 0 0; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.traffic-card summary .small { font-weight: 400; }
.tc-body { padding: 0 20px 18px; }
.tc-days { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13px; font-variant-numeric: tabular-nums; }
.tc-days th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.tc-days td { padding: 6px 4px; border-bottom: 1px solid var(--line); }
.tc-days th:not(:first-child), .tc-days td:not(:first-child) { text-align: right; }
.tc-days tr.zero td { color: var(--muted); }

/* ---------- 1.1.3: status jaringan — cari, 1 node = 1 baris, rincian saat dibuka ---------- */
.net-search { display: flex; gap: 6px; flex: 1 1 220px; max-width: 320px; margin-left: auto; }
.net-search input[type="search"] { flex: 1; min-width: 0; height: 30px; padding: 0 10px; font: inherit; font-size: 13px; color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: 4px; }
.net-search input[type="search"]:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: transparent; }
.net-search .btn.small { width: 34px; padding: 0; }
.net-search .btn .i { width: 16px; height: 16px; }
.card-bar .chips { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }
.nlist { display: flex; flex-direction: column; }
.nrow { border-bottom: 1px solid var(--line); }
.nrow:last-child { border-bottom: 0; }
.nrow summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto 16px; align-items: center; gap: 12px; padding: 11px 16px; font-size: 14px; }
.nrow summary::-webkit-details-marker { display: none; }
.nrow summary:hover { background: var(--subtle); }
.nrow summary:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.nr-tag { min-width: 0; white-space: nowrap; }
.nr-cc { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nr-chev { width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); margin-top: -4px; transition: transform .15s; justify-self: end; }
.nrow[open] .nr-chev { transform: rotate(-135deg); margin-top: 4px; }
.nrow[open] summary { background: var(--subtle); }
.nr-detail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; margin: 0; padding: 12px 16px 16px; background: var(--bg); border-top: 1px dashed var(--line); }
.nr-detail div { min-width: 0; }
.nr-detail .wide { grid-column: 1 / -1; }
.nr-detail dt { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 3px; }
.nr-detail dd { margin: 0; font-size: 13.5px; }
.nr-detail .wide dd { display: flex; flex-direction: column; gap: 5px; max-width: 420px; }
.nr-detail .tr-line { display: flex; gap: 14px; }
@media (max-width: 560px) {
  .net-search { max-width: none; flex-basis: 100%; margin-left: 0; }
  .nrow summary { grid-template-columns: auto minmax(0, 1fr) auto 14px; gap: 10px; padding: 11px 14px; }
  .nr-ccn { display: none; }
  .nr-detail { grid-template-columns: 1fr 1fr; padding: 12px 14px 14px; }
}
@media (max-width: 360px) { .nr-stn { display: none; } }
.tc-body .tc-grid { margin-top: 14px; }
