/* Light, professional dashboard theme. No backdrop blur / animated blurred backgrounds: smooth scrolling on phones. */
:root {
  --bg: #f3f5fb;
  --card: #ffffff;
  --line: #e8ecf4;
  --line-2: #dfe4ef;
  --text: #1b2140;
  --muted: #7b84a3;
  --dim: #a7aec4;
  --blue: #4c5cf5;
  --blue-2: #8b96ff;
  --blue-soft: #eef0ff;
  --cyan: #12b5cf;
  --violet: #8b5cf6;
  --orange: #ff8a3d;
  --amber: #ffc46b;
  --green: #16b364;
  --green-soft: #e7f8ef;
  --red: #f04461;
  --red-soft: #fdecef;
  --amber-soft: #fff4e5;
  --shadow: 0 1px 2px rgba(27, 33, 64, .04), 0 12px 32px -20px rgba(27, 33, 64, .22);
  --r: 18px;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: "Poppins", "Noto Sans Sinhala", system-ui, sans-serif; font-size: 14.5px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; }

/* progress bar */
.topbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; overflow: hidden; opacity: 0; transition: opacity .3s; pointer-events: none; }
.topbar.on { opacity: 1; }
.topbar i { display: block; height: 100%; width: 35%; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 3px; animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(290%); } }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.nav-in { max-width: 1160px; margin: 0 auto; padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand b { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: -.2px; }
.brand small { display: block; font-size: 11px; color: var(--muted); margin-top: -3px; white-space: nowrap; }
.logo { width: 36px; height: 36px; flex: none; display: block; border-radius: 50%; box-shadow: 0 0 0 1px var(--line), 0 6px 14px -8px rgba(232, 30, 37, .45); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.live-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--green); background: var(--green-soft); padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.live-chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.live-chip.warn { color: #b45309; background: var(--amber-soft); }
@media (max-width: 420px) { .live-chip { display: none; } }
.lang { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; }
.lang button { position: relative; z-index: 1; border: 0; background: none; padding: 5px 12px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.lang button.on { color: #fff; }
.lang .pill { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--blue); transition: transform .25s ease; }
.lang[data-on="en"] .pill { transform: translateX(100%); }

/* layout */
.wrap { max-width: 1160px; margin: 0 auto; padding: 18px 16px max(40px, env(safe-area-inset-bottom)); }
.top-grid { display: grid; gap: 16px; }
@media (min-width: 960px) { .top-grid { grid-template-columns: 5fr 7fr; align-items: stretch; } .col-left { display: flex; flex-direction: column; } .col-left .lookup { flex: 1; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.card-head.tight { align-items: center; margin-bottom: 10px; }
.card-head h2 { font-size: 15px; font-weight: 600; letter-spacing: -.1px; }
.card-head .sub { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--bg); border: 1px solid var(--line); padding: 3px 9px; border-radius: 8px; white-space: nowrap; }

/* hero */
.hero { padding: 6px 2px 16px; }
.eyebrow { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--blue); background: var(--blue-soft); padding: 4px 10px; border-radius: 999px; }
.hero h1 { font-size: clamp(24px, 6vw, 32px); font-weight: 700; letter-spacing: -.8px; line-height: 1.2; margin: 10px 0 6px; }
.hero p { margin: 0; color: var(--muted); font-size: 14px; max-width: 46ch; }

/* lookup */
.field { position: relative; }
textarea { width: 100%; min-height: 116px; resize: vertical; border: 1px solid var(--line-2); background: #fafbfe; border-radius: 14px; padding: 12px 12px 48px; color: var(--text);
  font: 12.5px/1.5 var(--mono); transition: border-color .15s, box-shadow .15s; }
textarea::placeholder { color: var(--dim); }
textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(76, 92, 245, .12); background: #fff; }
.field-tools { position: absolute; left: 1px; right: 1px; bottom: 1px; display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 0 0 13px 13px;
  background: linear-gradient(transparent, #fafbfe 35%); pointer-events: none; }
.field-tools > * { pointer-events: auto; }
.btn-soft { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 13px; border-radius: 11px; border: 1px solid var(--line-2); background: #fff; color: var(--text);
  font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, transform .1s; }
.btn-soft svg { width: 16px; height: 16px; }
.btn-soft:hover { background: var(--bg); } .btn-soft:active { transform: scale(.97); }
.btn-soft.wide { width: 100%; margin-top: 16px; padding: 12px; }
.btn-text { border: 0; background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 6px 8px; }
.btn-primary { width: 100%; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 13px; padding: 14px;
  background: var(--blue); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; box-shadow: 0 10px 22px -12px var(--blue); transition: background .15s, transform .1s; }
.btn-primary:hover { background: #3f4fe6; } .btn-primary:active { transform: scale(.985); } .btn-primary:disabled { cursor: progress; opacity: .85; }
.btn-primary svg { width: 17px; height: 17px; }
.btn-primary.sm { margin: 0; padding: 11px; font-size: 13.5px; }
.btn-primary.orange { background: var(--orange); box-shadow: 0 10px 22px -12px var(--orange); }
.btn-primary.orange:hover { background: #f27a2b; }
.spinner { width: 17px; height: 17px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; display: none; }
.btn-primary.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.note { display: flex; gap: 8px; margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.note svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.alert { display: none; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 11px 13px; border-radius: 12px; font-size: 13px; background: var(--red-soft); color: #b4233c; }
.alert svg { width: 18px; height: 18px; flex: none; }
.alert.on { display: flex; animation: rise .25s ease both; }

/* map */
.map-card { display: flex; flex-direction: column; }
.legend-row { display: flex; gap: 12px; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.legend-row > span { display: inline-flex; align-items: center; gap: 5px; }
.lg { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.lg.on { background: var(--green); } .lg.off { background: var(--red); }
.map { position: relative; flex: 1; border-radius: 14px; background: linear-gradient(180deg, #f8f9ff, #f1f3fc); overflow: hidden; display: flex; align-items: center; }
.map .stage { position: relative; width: 100%; }
.map svg.world { display: block; width: 100%; height: auto; }
.map .dots { stroke: #cdd3e8; stroke-linecap: round; }
.map .arc-base { stroke: #c9d0f8; stroke-width: 1.5; fill: none; }
.map .arc-flow { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 3 10; animation: flow 1.1s linear infinite; }
.map .arc-flow.off { animation: none; stroke: var(--red); opacity: .5; }
@keyframes flow { to { stroke-dashoffset: -26; } }
.map .node { stroke: #fff; stroke-width: 2.5; }
.map .halo { transform-box: fill-box; transform-origin: center; animation: halo 2.2s ease-out infinite; }
@keyframes halo { 0% { transform: scale(.35); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
.map .paused .arc-flow, .map .paused .halo { animation-play-state: paused; }
.map-sk { width: 100%; aspect-ratio: 696 / 440; background: linear-gradient(90deg, #f1f3fb, #e7eaf7, #f1f3fb); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.pin { position: absolute; pointer-events: none; display: flex; align-items: center; gap: 6px; padding: 4px 8px 4px 5px; background: #fff;
  border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 6px 16px -10px rgba(27, 33, 64, .35); font-size: 11px; line-height: 1.25; white-space: nowrap; }
.pin .flag { width: 18px; height: 12px; border-radius: 3px; vertical-align: 0; }
.pin b { display: block; font-weight: 600; font-size: 11px; }
.pin small { display: block; color: var(--muted); font-size: 10px; }
.pin small.on { color: var(--green); } .pin small.off { color: var(--red); }
@media (max-width: 480px) { .pin { padding: 3px 6px 3px 4px; gap: 5px; border-radius: 7px; } .pin b { font-size: 9.5px; } .pin small { font-size: 8.5px; } .pin .flag { width: 14px; height: 10px; } }

/* servers table */
.servers-card { margin-top: 16px; }
.srv-table { display: grid; }
.srv-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 60px; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--line); }
.srv-row.head { padding: 0 4px 8px; font-size: 11.5px; color: var(--muted); font-weight: 500; border-top: 0; }
.srv-row.head + .srv-row { border-top: 1px solid var(--line); }
.srv-row.sk { height: 50px; border-radius: 10px; margin: 4px 0; background: linear-gradient(90deg, #f3f5fb, #e9ecf6, #f3f5fb); background-size: 200% 100%; animation: shimmer 1.2s infinite; border: 0; }
.srv-row.in { animation: rise .35s ease both; }
.srv-name { display: flex; align-items: center; gap: 11px; min-width: 0; }
.srv-name b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv-name small { display: block; font-size: 11.5px; color: var(--muted); }
.pill-st { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 8px; width: max-content; }
.pill-st.on { color: var(--green); background: var(--green-soft); } .pill-st.off { color: var(--red); background: var(--red-soft); }
.pill-st i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.srv-num { font-size: 13px; font-weight: 600; white-space: nowrap; } .srv-num small { color: var(--muted); font-weight: 400; font-size: 11.5px; }
.srv-ago { font-size: 12px; color: var(--muted); white-space: nowrap; }
.signal { display: flex; align-items: flex-end; gap: 3px; height: 16px; justify-self: end; }
.signal i { width: 4px; border-radius: 2px; background: #dfe3f1; }
.signal i:nth-child(1) { height: 5px; } .signal i:nth-child(2) { height: 8px; } .signal i:nth-child(3) { height: 12px; } .signal i:nth-child(4) { height: 16px; }
.signal.s4 i, .signal.s3 i:nth-child(-n+3), .signal.s2 i:nth-child(-n+2), .signal.s1 i:nth-child(1) { background: var(--blue); }
.signal.s0 i:nth-child(1) { background: var(--red); }
@media (max-width: 680px) {
  .srv-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n s" "c a"; row-gap: 4px; padding: 12px 2px; }
  .srv-row.head { display: none; }
  .srv-row .c-name { grid-area: n; } .srv-row .c-st { grid-area: s; justify-self: end; }
  .srv-row .c-users { grid-area: c; padding-left: 37px; } .srv-row .c-ago { grid-area: a; justify-self: end; }
  .srv-row .signal { display: none; }
}
.flag { display: inline-block; width: 26px; height: 18px; border-radius: 4px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgba(27, 33, 64, .08); vertical-align: -4px; }
.flag svg { display: block; width: 100%; height: 100%; stroke: none; }
.tag .flag, .hint .flag { width: 16px; height: 11px; border-radius: 2px; vertical-align: -1px; }

/* skeleton */
.skel { display: none; margin-top: 16px; } .skel.on { display: block; } .skel .card { margin-bottom: 16px; }
.sk-line { height: 12px; border-radius: 7px; margin: 8px 0; background: linear-gradient(90deg, #f1f3fa, #e7eaf5, #f1f3fa); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.w40 { width: 40%; } .w70 { width: 70%; }
.kpi.sk { height: 72px; background: linear-gradient(90deg, #fff, #eef1f8, #fff); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* result */
.result { display: none; margin-top: 16px; } .result.on { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.result.on .profile, .result.on .tabs, .pane.on > * { animation: rise .4s ease both; }
.pane.on > *:nth-child(2) { animation-delay: .05s; } .pane.on > *:nth-child(3) { animation-delay: .1s; }
.profile { display: flex; align-items: center; gap: 14px; }
.avatar { width: 50px; height: 50px; flex: none; border-radius: 15px; display: grid; place-items: center; font-weight: 700; font-size: 18px; color: var(--blue); background: var(--blue-soft); }
.who { flex: 1; min-width: 0; }
.who small { font-size: 12px; color: var(--muted); }
.who h3 { font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.badges span { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 7px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.state { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 9px; white-space: nowrap; }
.state.active { color: var(--green); background: var(--green-soft); }
.state.expired, .state.disabled, .state.depleted { color: var(--red); background: var(--red-soft); }

.tabs { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 16px 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: none; padding: 9px 18px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.tabs button svg { width: 17px; height: 17px; }
.tabs button.on { background: var(--blue); color: #fff; }
@media (max-width: 480px) { .tabs { display: grid; width: 100%; } }
.pane { display: none; } .pane.on { display: block; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); min-width: 0; }
.kpi small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.3px; white-space: nowrap; }
.kpi > div { min-width: 0; }
.kpi-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.kpi-ic svg { width: 19px; height: 19px; }
.kpi-ic.blue { color: var(--blue); background: var(--blue-soft); } .kpi-ic.cyan { color: var(--cyan); background: #e4f8fb; }
.kpi-ic.violet { color: var(--violet); background: #f1ebfe; } .kpi-ic.green { color: var(--green); background: var(--green-soft); }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 360px) { .kpi { padding: 12px; gap: 9px; } .kpi-ic { width: 34px; height: 34px; } .kpi b { font-size: 16px; } }

.chart-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.chart-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .chart-grid > #backup-usage { grid-column: 1 / -1; } }
@media (max-width: 640px) { .chart-grid, .chart-grid.two { grid-template-columns: minmax(0, 1fr); } }
.ring-wrap { position: relative; width: 100%; max-width: 168px; aspect-ratio: 1; margin: 6px auto 0; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-linecap: round; }
.ring .track { stroke: #eef1f8; }
.ring .arc { transition: stroke-dashoffset 1.1s cubic-bezier(.2, .8, .2, 1); }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-center b { font-size: 20px; font-weight: 700; letter-spacing: -.5px; line-height: 1.15; }
.ring-center small { font-size: 11.5px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 12px; font-size: 12px; color: var(--muted); text-align: center; }
.legend b { color: var(--text); font-weight: 600; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 5px; }
.empty { display: none; text-align: center; padding: 14px 6px 4px; color: var(--muted); font-size: 13px; }
.empty.on { display: block; }
.empty p { margin: 10px 0 12px; }
.empty-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--amber-soft); }
.empty-ic .flag { width: 26px; height: 18px; }

/* vertical bars */
.vbars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; height: 210px; align-items: end; padding: 6px 4px 0;
  background: repeating-linear-gradient(to top, transparent 0 41px, #f0f2f8 41px 42px); }
.vb { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.vb-cols { display: flex; gap: 8px; align-items: flex-end; height: calc(100% - 34px); }
.vb-col { position: relative; width: 22px; height: 100%; display: flex; align-items: flex-end; }
.vb-col i { display: block; width: 100%; height: 0; border-radius: 7px 7px 4px 4px; transition: height 1s cubic-bezier(.2, .8, .2, 1); }
.vb-col.m i { background: linear-gradient(180deg, var(--blue-2), var(--blue)); }
.vb-col.b i { background: linear-gradient(180deg, var(--amber), var(--orange)); }
.vb-col span { position: absolute; bottom: calc(var(--h, 0%) + 4px); left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: bottom 1s cubic-bezier(.2, .8, .2, 1); }
.vb > small { font-size: 12px; color: var(--muted); font-weight: 500; }

.details { list-style: none; margin: 0; padding: 0; }
.details li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13px; }
.details li:first-child { border-top: 0; padding-top: 2px; }
.details li span { color: var(--muted); }
.details li b { font-weight: 600; text-align: right; }
.details li b.ok { color: var(--green); }

/* configs */
.nets { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; padding-bottom: 2px; }
.nets::-webkit-scrollbar { display: none; }
.net { flex: none; display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .15s; }
.net i { width: 8px; height: 8px; border-radius: 50%; }
.net.on { color: var(--text); border-color: var(--blue); background: var(--blue-soft); }
#cfg-backup .net.on { border-color: var(--orange); background: var(--amber-soft); }
.code { font: 11.5px/1.55 var(--mono); color: #4a5275; background: #f7f8fc; border: 1px solid var(--line); border-radius: 12px; padding: 11px; word-break: break-all; max-height: 98px; overflow: auto; }
.code.sm { max-height: 58px; padding: 8px 10px; font-size: 11px; flex: 1; min-width: 0; }
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.subrow { margin-top: 14px; }
.subrow small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.sub-box { display: flex; gap: 8px; align-items: center; }
.hint { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--amber-soft); color: #9a4b0f; font-size: 12.5px; }
.hint .flag { margin-top: 3px; }
.updated { text-align: center; color: var(--dim); font-size: 12px; margin: 0; }

/* sheet + toast */
.sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(20, 24, 48, .45); display: none; align-items: flex-end; justify-content: center; }
.sheet-bg.on { display: flex; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 400px; background: #fff; border-radius: 22px 22px 0 0; padding: 12px 20px max(22px, env(safe-area-inset-bottom)); text-align: center; animation: up .28s ease; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 0 auto 14px; }
.sheet h4 { font-size: 16px; } .sheet p { margin: 2px 0 14px; color: var(--muted); font-size: 13px; }
.qrbox { display: inline-block; padding: 14px; border-radius: 18px; border: 1px solid var(--line); }
.qrbox svg { display: block; width: min(236px, 62vw); height: auto; stroke: none; }
@media (min-width: 640px) { .sheet-bg { align-items: center; } .sheet { border-radius: 22px; } .grab { display: none; } }
.toast { position: fixed; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 70; transform: translate(-50%, 24px); opacity: 0; display: flex; gap: 8px; align-items: center;
  padding: 10px 15px; border-radius: 12px; background: var(--text); color: #fff; font-size: 13px; font-weight: 600; transition: all .25s ease; pointer-events: none; }
.toast svg { width: 17px; height: 17px; stroke: #4ade80; stroke-width: 3; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
footer { text-align: center; color: var(--dim); font-size: 12px; margin-top: 26px; }

@media (max-width: 380px) { .card { padding: 15px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
#result, #skel, #lookup { scroll-margin-top: 72px; }
