/* Quantox Vault — dark, full-bleed, Inter + dot-matrix display type.
   Same visual language as the Quantox platform landing page. */

:root {
  --bg:          #000000;
  --panel:       #0e0e10;
  --panel-2:     #141416;
  --pill-dark:   #28282a;
  --pill-hover:  #323234;
  --line:        rgba(255, 255, 255, 0.10);
  --line-2:      rgba(255, 255, 255, 0.18);
  --text:        #ffffff;
  --dim:         #d0d0d0;
  --muted:       #8e8e8e;
  --nav-text:    #2e2e2e;
  --sign-in-text:#c8c8c8;
  --orange:      #ff5722;
  --orange-soft: rgba(255, 87, 34, 0.16);
  --warn:        #e0a33a;
  --danger:      #ff6a52;
  --nav-shadow:  0 4px 14px rgba(0, 0, 0, 0.16);
  --glow:        0 0 0 1px rgba(255,255,255,0.15), 0 0 22px rgba(255,255,255,0.32), 0 0 44px rgba(255,255,255,0.12);
  --font-sans:   "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display:"BubbledotICG-FinePos", "Geist Pixel Circle", ui-monospace, monospace;
  --radius:      14px;
}

@font-face {
  font-family: "Geist Pixel Circle";
  src: url("../fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font-sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--text); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.wrap { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 16px; }

/* ---------- background video ---------- */

.bg { position: fixed; inset: 0; background: var(--bg); overflow: hidden; z-index: 0; }
.bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
}
.bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.72) 55%, rgba(0,0,0,.92) 100%);
}
/* Reading a list of credentials over moving video needs a much heavier scrim. */
.bg-app::after { background: rgba(0,0,0,.86); backdrop-filter: blur(3px); }

/* ---------- header ---------- */

.topbar { position: sticky; top: 0; z-index: 20; padding: 14px 0 0; background: linear-gradient(180deg, #000 62%, rgba(0,0,0,0)); }
.topbar-in { display: flex; align-items: center; gap: 12px; }

.logo-btn {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; box-shadow: var(--nav-shadow);
  display: grid; place-items: center; text-decoration: none;
  transition: transform .25s ease;
}
.logo-btn:hover { transform: scale(1.04); }
.logo-btn img { width: 72%; height: 72%; object-fit: contain; }

.nav {
  display: flex; align-items: center; gap: 2px;
  background: #fff; border-radius: 999px; box-shadow: var(--nav-shadow);
  height: 46px; padding: 4px 8px; flex: 1; max-width: 470px; justify-content: space-around;
}
.nav a {
  position: relative; color: var(--nav-text); text-decoration: none;
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  opacity: .5; padding: 8px 10px; white-space: nowrap;
}
.nav a:hover { opacity: .75; }
.nav a.on { opacity: 1; }
.nav a.on::after {
  content: ""; position: absolute; left: 50%; bottom: 5px;
  width: 3px; height: 3px; background: var(--nav-text); border-radius: 1px;
  box-shadow: -5px 0 0 var(--nav-text), 5px 0 0 var(--nav-text);
}

.lock-btn {
  flex: none; height: 46px; display: inline-flex; align-items: center; gap: 7px;
  padding: 0 18px; border-radius: 999px; border: 0;
  background: var(--pill-dark); color: var(--sign-in-text);
  font: 500 14px var(--font-sans); text-decoration: none; cursor: pointer;
  box-shadow: var(--nav-shadow); transition: .2s ease;
}
.lock-btn:hover { background: var(--pill-hover); color: #fff; transform: translateY(-1px); }

.burger {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--pill-dark); border: 0; cursor: pointer;
  position: relative; flex: none; margin-left: auto;
}
.burger span {
  position: absolute; left: 50%; top: 50%; width: 18px; height: 1.5px;
  background: #fff; transform: translate(-50%, -50%); transition: .28s ease;
}
.burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 6.5px)); }
.burger span:nth-child(3) { transform: translate(-50%, calc(-50% + 6.5px)); }
.burger[aria-expanded="true"] { background: #fff; }
.burger[aria-expanded="true"] span { background: #111; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

.sheet-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.62);
  backdrop-filter: blur(6px); z-index: 30; animation: overlayIn .28s ease both;
}
.sheet {
  position: fixed; left: 50%; top: 76px; transform: translateX(-50%);
  width: min(360px, calc(100vw - 28px)); background: #fff; color: var(--nav-text);
  border-radius: 28px; padding: 22px 18px 20px; z-index: 31;
  box-shadow: 0 20px 60px rgba(0,0,0,.45); animation: menuIn .38s cubic-bezier(.22,1,.36,1) both;
}
.sheet a {
  display: block; text-align: center; color: var(--nav-text); text-decoration: none;
  font-size: 16px; font-weight: 500; padding: 13px 0; position: relative;
  animation: linkIn .32s ease both;
}
.sheet a.on::after {
  content: ""; position: absolute; left: 50%; bottom: 8px;
  width: 3px; height: 3px; background: var(--nav-text); border-radius: 1px;
  box-shadow: -5px 0 0 var(--nav-text), 5px 0 0 var(--nav-text);
}
.sheet .sheet-lock {
  display: block; margin-top: 10px; background: var(--pill-dark); color: #fff;
  border-radius: 999px; padding: 14px; text-align: center; font-weight: 500;
}

@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes menuIn { from { opacity: 0; transform: translateX(-50%) translateY(-12px) scale(.97); } to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); } }
@keyframes linkIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- page ---------- */

.page { position: relative; z-index: 1; padding-top: 26px; padding-bottom: 46px; }

h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.04em;
  line-height: 1.12; margin: 0;
}
h2 { font-size: 15px; font-weight: 600; margin: 30px 0 12px; letter-spacing: -0.01em; }
.sub { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.crumb { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: #fff; }
.crumb span { padding: 0 5px; }

.head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; }

.flash, .err, .warn {
  margin: 0 0 16px; padding: 11px 14px; border-radius: 12px; font-size: 14px;
  background: var(--panel-2); border: 1px solid var(--line); border-left: 2px solid var(--orange);
  color: var(--dim);
}
.err { border-left-color: var(--danger); color: #ffcfc6; }
.warn { border-left-color: var(--warn); color: #f0d9a8; }

.empty {
  background: var(--panel); border: 1px dashed var(--line-2); border-radius: var(--radius);
  padding: 34px 20px; text-align: center; color: var(--muted);
}
.empty p { margin: 0 0 16px; }

.foot { padding: 0 16px 30px; color: #6d6d6d; font-size: 12px; position: relative; z-index: 1; }

/* ---------- stats strip ---------- */

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-bottom: 24px;
}
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 12px; text-decoration: none; color: inherit; display: block;
  transition: border-color .2s ease, transform .2s ease;
}
.stat:hover { border-color: var(--line-2); transform: translateY(-2px); }
.stat-icon, .stat-value, .stat-label { display: block; }
.stat-icon { font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 28px); line-height: 1; color: #fff; }
.stat-value { font-size: clamp(19px, 2.2vw, 26px); font-weight: 600; letter-spacing: -0.025em; margin-top: 8px; }
.stat-label { color: var(--muted); font-size: clamp(11px, 1.2vw, 12.5px); margin-top: 2px; }
.stat.alert .stat-value { color: var(--orange); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: #000; border: 1px solid #fff; border-radius: 999px;
  padding: 11px 22px; font: 600 14px var(--font-sans); letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: var(--glow); transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 0 30px rgba(255,255,255,.45), 0 0 60px rgba(255,255,255,.18); }
.btn.ghost {
  background: var(--pill-dark); color: var(--sign-in-text); border-color: transparent;
  box-shadow: var(--nav-shadow); font-weight: 500;
}
.btn.ghost:hover { background: var(--pill-hover); color: #fff; box-shadow: var(--nav-shadow); }
.btn.big { width: 100%; padding: 14px; font-size: 15.5px; margin-top: 8px; }
.btn.link-danger { background: none; border: 0; box-shadow: none; color: var(--danger); padding: 8px 0; font-weight: 500; text-decoration: underline; }
.btn.link-danger:hover { transform: none; box-shadow: none; }

.mini {
  background: var(--pill-dark); border: 1px solid transparent; color: var(--sign-in-text);
  border-radius: 999px; padding: 6px 12px; font: 500 12.5px var(--font-sans);
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: .18s ease;
}
.mini:hover { background: var(--pill-hover); color: #fff; }

.icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--pill-dark); color: #d8d8d8;
  cursor: pointer; text-decoration: none; transition: .18s ease;
}
.icon:hover { background: var(--pill-hover); color: #fff; }
.icon.done { background: #fff; border-color: #fff; color: #000; }

.row-btns { display: flex; gap: 10px; align-items: center; }
.row-btns .btn.big { width: auto; flex: 1; }

/* ---------- search, chips, filters ---------- */

.searchbar { display: flex; gap: 8px; margin-bottom: 14px; }
.searchbar input, .searchbar select {
  flex: 1; min-width: 0; padding: 12px 16px; font-size: 16px; color: #fff;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
}
.searchbar input::placeholder { color: #6d6d6d; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: var(--pill-dark); color: var(--sign-in-text); text-decoration: none;
  border: 1px solid transparent;
}
.chip.on { background: #fff; color: #000; }

.filters { margin-bottom: 18px; font-size: 14px; }
.filters summary { cursor: pointer; color: var(--muted); padding: 6px 0; }
.filter-form { display: grid; gap: 8px; margin-top: 10px; }
.filter-form select {
  padding: 11px 14px; font-size: 15px; color: #fff;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
}

/* ---------- entry list ---------- */

.entries { list-style: none; margin: 0; padding: 0; }

.group-head {
  font-family: var(--font-display); font-size: 13px; letter-spacing: -0.02em;
  color: var(--muted); padding: 22px 2px 8px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.group-head span { font-family: var(--font-sans); font-size: 11px; color: var(--orange); letter-spacing: 0; }

.entry {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  border-left: 3px solid var(--muted); padding: 11px 11px 11px 14px; margin-bottom: 8px;
  transition: border-color .18s ease, background .18s ease;
}
.entry:hover { background: var(--panel-2); border-color: var(--line-2); }
.entry[hidden] { display: none; }

.entry-main { flex: 1; min-width: 0; text-decoration: none; color: inherit; display: block; }
.entry-title { display: block; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.entry-meta {
  display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.entry-meta em { font-style: normal; margin-left: 7px; font-size: 11px; padding: 2px 7px; border-radius: 999px; }
.tag-weak { background: rgba(255,87,34,.16); color: #ff9576; }
.tag-stale { background: rgba(224,163,58,.16); color: #e6bc72; }
.tag-private { background: rgba(255,255,255,.10); color: #cfcfcf; }

.entry-actions { display: flex; gap: 7px; flex: none; }

.entry.t-hosting  { border-left-color: #4aa3c7; }
.entry.t-database { border-left-color: #a17ad0; }
.entry.t-payment  { border-left-color: var(--orange); }
.entry.t-appstore { border-left-color: #57b96a; }
.entry.t-email    { border-left-color: #4f9fd8; }
.entry.t-api      { border-left-color: #d1568f; }
.entry.t-server   { border-left-color: #8b93a5; }
.entry.t-website  { border-left-color: #e0e0e0; }

/* ---------- cards and forms ---------- */

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}

.form label { display: block; margin-bottom: 16px; font-size: 13px; color: var(--muted); }
.form label > input, .form label > select, .form label > textarea, .pw-field input {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  font: 400 16px var(--font-sans); color: #fff;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
}
.form input::placeholder, .form textarea::placeholder { color: #5f5f5f; }
.form textarea { resize: vertical; }
.form small { display: block; margin-top: 6px; font-size: 12px; color: #6d6d6d; }
.form h2:first-child { margin-top: 0; }

.two { display: grid; gap: 0; }
.check { display: flex !important; align-items: center; gap: 9px; color: var(--dim); font-size: 14px; }
.check input { width: auto; margin: 0; accent-color: var(--orange); }

.pw-field { display: flex; gap: 7px; align-items: stretch; margin-top: 6px; }
.pw-field input { margin-top: 0; }
.pw-field .mini { flex: none; }

.strength-0 { color: var(--danger); }
.strength-1 { color: var(--warn); }
.strength-2 { color: #6fd39a; }

/* ---------- entry detail ---------- */

.detail .field {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.detail .field:last-child { border-bottom: 0; }
.detail .k { flex: none; width: 96px; font-size: 12.5px; color: var(--muted); }
.detail .v { flex: 1; min-width: 150px; word-break: break-word; color: var(--dim); }
.detail .v a { color: #fff; }
.detail .field.block { display: block; }
.detail .field.block .k { width: auto; display: block; margin-bottom: 8px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; color: #fff; }
.detail pre.v { margin: 0; white-space: pre-wrap; background: var(--panel-2); padding: 12px; border-radius: 10px; }

.meta-line { font-size: 12.5px; color: #6d6d6d; margin: 16px 0 0; }
.danger { margin-top: 22px; }

/* ---------- folders and members ---------- */

.kind-head { color: var(--muted); font-weight: 500; }

.folder {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px;
}
.folder.archived { opacity: .5; }
.folder-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.folder-body { min-width: 0; }
.folder-body a, .folder-body strong { font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.folder-body .sub { display: block; }
.folder-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.folder-actions form { margin: 0; display: flex; gap: 6px; }
.inline-reset input {
  width: 140px; padding: 6px 12px; font-size: 13px; color: #fff;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px;
}

/* avatar ring, same language as the landing page trust row */
.ring {
  --ring: 42px;
  flex: none; width: var(--ring); height: var(--ring); border-radius: 50%;
  background: var(--pill-dark); border: 1px solid rgba(255,255,255,.4); padding: 4px;
}
.ring-in {
  width: 100%; height: 100%; border-radius: 50%; background: #fff; color: #111;
  display: grid; place-items: center; font-size: 13px; font-weight: 600; letter-spacing: -0.02em;
}
.ring.admin .ring-in { background: var(--orange); color: #fff; }

/* ---------- log ---------- */

.log { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.log li {
  display: grid; grid-template-columns: 1fr auto;
  grid-template-areas: "what when" "ip ip";
  gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line);
}
.log-when { grid-area: when; color: var(--muted); font-size: 12px; text-align: right; white-space: nowrap; }
.log-what { grid-area: what; color: var(--dim); }
.log-what a { color: #fff; }
.log-ip { grid-area: ip; color: #5f5f5f; font-size: 11.5px; }
.pager { display: flex; gap: 10px; margin-top: 18px; }

/* ---------- toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  background: #fff; color: #000; padding: 11px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500; z-index: 40; max-width: 90vw; text-align: center;
  box-shadow: 0 0 30px rgba(255,255,255,.25);
}
.toast[hidden] { display: none; }

/* ---------- sign in ---------- */

.signin-page { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 18px; text-align: center; }

.signin-mark {
  width: 58px; height: 58px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; box-shadow: var(--nav-shadow); margin-bottom: 22px;
}
.signin-mark img { width: 72%; height: 72%; object-fit: contain; }

.seal {
  display: inline-flex; align-items: center; margin-bottom: 22px;
}
.seal .ring { --ring: 38px; position: relative; z-index: 2; }
.seal-pill {
  height: 38px; display: inline-flex; align-items: center;
  margin-left: -16px; padding: 0 18px 0 24px;
  background: var(--pill-dark); border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px; color: #c4c2c3; font-size: 12.5px; font-weight: 500;
}

.signin-title {
  font-family: var(--font-display); font-weight: 400; color: #fff;
  font-size: clamp(28px, 6vw, 62px); letter-spacing: -0.04em; line-height: 1.12;
  margin: 0 0 14px;
}
.signin-title span { display: block; white-space: nowrap; }
.signin-lede {
  color: var(--dim); opacity: .8; max-width: min(460px, 92%);
  font-size: 15px; line-height: 1.55; margin: 0 auto 28px;
}

.signin-card {
  width: min(380px, 100%); background: rgba(14,14,16,.82); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 22px; padding: 22px; text-align: left;
}
.signin-card label { display: block; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.signin-card .btn.big { width: 100%; }
.signin-card input {
  display: block; width: 100%; margin-top: 6px; padding: 13px 16px;
  font: 400 16px var(--font-sans); color: #fff;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
}
.signin-foot { margin-top: 26px; color: #6d6d6d; font-size: 12px; }

/* ---------- installer ---------- */

.setup {
  position: relative; z-index: 1; max-width: 560px; margin: 40px auto;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 22px; padding: 30px 26px 34px;
}
.setup h1 { font-size: clamp(24px, 4vw, 34px); }
.setup .lede { color: var(--muted); margin: 10px 0 24px; font-size: 14.5px; }
.setup h2 { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.setup label { display: block; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.setup input {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  font: 400 16px var(--font-sans); color: #fff;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
}
.setup small { display: block; margin-top: 6px; font-size: 12px; color: #6d6d6d; }
.setup .steps { padding-left: 20px; color: var(--dim); font-size: 14.5px; }
.setup .steps li { margin-bottom: 12px; }
.setup code { background: var(--panel-2); padding: 2px 6px; border-radius: 5px; font-size: 13px; color: var(--orange); }

/* ---------- entrance ---------- */

.anim { opacity: 0; animation: reveal .8s cubic-bezier(.22,1,.36,1) forwards; animation-delay: var(--d, 0s); }
@keyframes reveal {
  from { opacity: 0; transform: translateY(18px) scale(.99); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* ---------- wider screens ---------- */

@media (max-width: 780px) {
  .nav, .lock-btn { display: none; }
  .burger { display: block; }
  .stats { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 24px; letter-spacing: -0.06em; }
  .signin-title { letter-spacing: -0.08em; }
}

@media (min-width: 781px) {
  .two { grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .filter-form { grid-template-columns: 2fr 1fr auto; align-items: center; }
  .folder { flex-direction: row; align-items: center; justify-content: space-between; }
  .log li {
    grid-template-columns: 150px 1fr 130px;
    grid-template-areas: "when what ip";
    align-items: baseline; gap: 14px; padding: 12px 0;
  }
  .log-when { text-align: left; font-size: 12.5px; }
  .btn.big { width: auto; min-width: 190px; }
}

@media (max-width: 420px) {
  .signin-title { letter-spacing: -0.09em; line-height: 1.04; font-size: clamp(26px, 8.5vw, 36px); }
  .signin-lede { font-size: 14px; margin-bottom: 22px; }
  .seal .ring { --ring: 34px; }
  .seal-pill { height: 34px; font-size: 12px; }
  .signin-page { padding: 28px 16px 40px; }
  .signin-card { padding: 20px 16px; border-radius: 20px; }
  .signin-mark { width: 52px; height: 52px; margin-bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anim { opacity: 1; }
}

.otp-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.signin-hint { color: #6d6d6d; font-size: 12.5px; margin: 12px 0 0; text-align: center; }
.setting-block { margin-bottom: 10px; }
.setting-note { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.state { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.state b { font-weight: 600; color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.live { background: #6fd39a; }
.dot.off { background: var(--orange); }

/* ---------- OTP entry ---------- */

.otp-label { color: var(--muted); font-size: 13px; margin: 0 0 12px; text-align: center; }
.otp-boxes {
  display: flex; gap: 10px; margin: 0 auto 20px;
  justify-content: center; max-width: 300px;
}
.otp-boxes input {
  flex: 1 1 0; width: 100%; min-width: 0; max-width: 64px;
  aspect-ratio: 1 / 1.15; padding: 0; text-align: center;
  font: 600 24px var(--font-sans); color: #fff;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 14px;
}
.otp-boxes input:focus {
  border-color: #fff; outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,.12);
}
.otp-boxes input:not(:placeholder-shown) { border-color: rgba(255,255,255,.55); }

/* Six boxes on a small handset need to give up some width. */
@media (max-width: 400px) {
  .otp-boxes { gap: 7px; }
  .otp-boxes input { font-size: 21px; border-radius: 12px; }
}

/* ---------- fingerprint ---------- */

.fp-icon { color: #fff; text-align: center; margin: 4px 0 12px; }
.fp-text { color: var(--dim); font-size: 14px; text-align: center; margin: 0 0 18px; }
.fp-error { color: #ffb4a4; font-size: 13px; text-align: center; margin: 12px 0 0; }
[data-fp-setup] .fp-error { text-align: left; }


/* ---------- phone tuning for the settings and account pages ---------- */

@media (max-width: 560px) {
  .page { padding-top: 20px; }
  .card { padding: 16px; }
  .form label { margin-bottom: 15px; font-size: 13.5px; }
  .form small { line-height: 1.45; }
  h2 { margin: 24px 0 10px; }
  .kind-head { margin-top: 26px; }

  /* Show and Generate under the field instead of squeezing it to nothing */
  .pw-field { flex-wrap: wrap; }
  .pw-field input { flex: 1 1 100%; }
  .pw-field .mini { flex: 1 1 auto; padding: 9px 12px; font-size: 13px; }

  .inline-reset { width: 100%; }
  .inline-reset input { flex: 1; width: auto; }
  .folder-actions { width: 100%; }
  .folder-actions form { flex: 1; }
  .folder-actions .mini, .folder-actions form button { flex: 1; padding: 9px 12px; }

  .state { align-items: flex-start; }
  .setting-note { font-size: 12.5px; line-height: 1.5; }
  .head-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .head-row .btn { align-self: flex-start; }
}

.logblock {
  margin: 8px 0 0; padding: 12px; border-radius: 10px;
  background: var(--panel-2); color: #cbb8b2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px; line-height: 1.5;
  white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere;
}
