/* D.s7ab.link — dark neumorphic glass. Tokens match the Figma file (D · Colors). */
:root {
  color-scheme: dark;
  --bg: #101317;
  --neu: #1c2127;
  --neu-dark: #111418;
  --neu-light: #283039;
  --text: #e8ecef;
  --muted: #9aa5af;
  --accent: #6fe0cf;
  --accent-2: #ff9b85;
  --ok: #7ad49f;
  --warn: #f2c26b;
  --risk: #ff8f80;
  --on-accent: #0c1a18;
  --glass: rgba(255, 255, 255, 0.07);
  --glass-line: rgba(255, 255, 255, 0.15);
  --raised: 6px 6px 14px var(--neu-dark), -6px -6px 14px var(--neu-light);
  --raised-sm: 3px 3px 8px var(--neu-dark), -3px -3px 8px var(--neu-light);
  --inset: inset 4px 4px 10px var(--neu-dark), inset -4px -4px 10px var(--neu-light);
  --inset-sm: inset 3px 3px 8px var(--neu-dark), inset -3px -3px 8px var(--neu-light);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.4 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.glow { position: fixed; border-radius: 50%; filter: blur(46px); opacity: 0.5; z-index: 0; pointer-events: none; }
.glow.a { width: 260px; height: 260px; background: var(--accent); top: -80px; left: -90px; }
.glow.b { width: 280px; height: 280px; background: var(--accent-2); bottom: -90px; right: -90px; }

.shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  place-items: start center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.card {
  width: 100%;
  max-width: 420px;
  margin-top: 28px;
  display: grid;
  gap: 14px;
  padding: 18px 16px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 26px;
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.card > * { min-width: 0; }
h1 { margin: 0; font-size: 22px; line-height: 28px; letter-spacing: -0.01em; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; line-height: 16px; }
.strong { font-weight: 600; }
.accent { color: var(--accent); }
.center { text-align: center; justify-self: center; }
.mono { font: 11px/16px var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.hint { font-size: 12px; }
.hint.ok { color: var(--ok); }
.error { color: var(--risk); font-size: 13px; }
.stack { display: grid; gap: 10px; }
.row { display: flex; align-items: center; gap: 10px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.heading { display: flex; align-items: center; gap: 10px; }
.logo {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  border-radius: 11px; background: var(--accent); color: var(--on-accent);
  font-weight: 800; font-size: 16px; box-shadow: var(--raised-sm);
}
.appbar { display: flex; align-items: center; gap: 8px; }
.appbar .title { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  width: 30px; height: 30px; flex: none; border: 0; border-radius: 50%;
  background: var(--neu); box-shadow: var(--raised-sm); font-size: 13px; font-weight: 700;
}
.pill {
  border: 1px solid var(--glass-line); background: rgba(255, 255, 255, 0.06);
  border-radius: 999px; padding: 4px 10px; font-size: 12px; white-space: nowrap;
}
.link { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 600; font-size: inherit; }

.well { background: var(--neu); border-radius: 16px; box-shadow: var(--inset); padding: 12px; }
.field { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.field input {
  width: 100%; min-width: 0; border: 0; border-radius: 12px; padding: 11px 12px;
  background: var(--neu); box-shadow: var(--inset-sm); color: var(--text); font-weight: 600; font-size: 16px;
}
.paste { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; }
.paste input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 0; font-size: 16px; }
.paste input::placeholder { color: var(--muted); }
.badge { flex: none; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 12px; background: var(--neu); color: var(--muted); box-shadow: var(--raised-sm); }
.badge.site { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.badge.bad { background: var(--risk); color: var(--on-accent); box-shadow: none; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; }
.seg button { border: 0; background: transparent; border-radius: 12px; padding: 9px 6px; color: var(--muted); font-weight: 600; font-size: 13px; }
.seg button[aria-checked="true"] { color: var(--text); background: var(--neu); box-shadow: var(--raised-sm); }
.seg button:disabled { opacity: 0.35; cursor: not-allowed; }
.seg.inner { box-shadow: var(--inset-sm); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 0; border-radius: 12px; padding: 7px 11px; background: var(--neu); color: var(--muted); font-weight: 600; font-size: 12.5px; box-shadow: var(--raised-sm); }
.chip[aria-pressed="true"] { color: var(--accent); box-shadow: var(--inset-sm); }
.chips .note { color: var(--muted); font-size: 13px; }
.plain-pills .pill { cursor: default; }

.trow { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; }
.switch { position: relative; width: 50px; height: 30px; flex: none; border: 0; border-radius: 999px; background: var(--neu); box-shadow: var(--inset-sm); }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--muted); transition: transform 0.2s ease, background 0.2s ease; }
.switch[aria-checked="true"]::after { transform: translateX(20px); background: var(--accent); }

.btn { border: 0; border-radius: 18px; padding: 14px; font-size: 16px; font-weight: 700; }
.btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--raised); }
.btn.primary:active { transform: translateY(1px); }
.btn.glass { background: rgba(255, 255, 255, 0.1); border: 1px solid var(--glass-line); color: var(--text); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.progress { height: 14px; padding: 3px; }
.progress span { display: block; height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.3s ease; }

.list { display: grid; gap: 2px; padding: 6px; }
.item { display: flex; align-items: center; gap: 10px; padding: 8px; }
.item .who { flex: 1; min-width: 0; display: grid; }
.item .who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .who span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.empty { padding: 8px; font-size: 13px; color: var(--muted); }
.steps { margin: 0; padding: 12px 12px 12px 32px; display: grid; gap: 8px; }
.secret { font: 13px/18px var(--mono); padding: 12px; border-radius: 14px; background: rgba(122, 212, 159, 0.1); border: 1px solid rgba(122, 212, 159, 0.4); overflow-wrap: anywhere; user-select: all; }

@media (prefers-reduced-motion: reduce) {
  .switch::after, .progress span { transition: none; }
}
