/* The design, as classes.
 *
 * NoZapretDNS.dc.html styles every element inline, which a strict
 * Content-Security-Policy does not allow. Every declaration here is copied from
 * it unchanged; what changed is where it lives. When the two disagree the
 * design is right and this file is wrong.
 *
 * The tokens themselves are in app.css and already match the design exactly. */

/* The design's two headings that are not a pane's. */
.pane h2 { font: 700 20px/1.2 Manrope; letter-spacing: -.01em; }
.status h2 { font: 700 18px/1.2 Manrope; }

@keyframes nzPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes nzSheet { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------- shell */

.app {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  position: relative;
  overflow: hidden;
  font-family: Manrope, system-ui, sans-serif;
}

.app > .glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.glow i {
  position: absolute;
  border-radius: 50%;
  display: block;
}

.glow i:first-child {
  width: 56vw;
  height: 56vw;
  left: -14vw;
  top: -18vw;
  background: var(--blob1);
  filter: blur(90px);
  animation: nzBlob 22s ease-in-out infinite;
}

.glow i:last-child {
  width: 48vw;
  height: 48vw;
  right: -12vw;
  bottom: -16vw;
  background: var(--blob2);
  filter: blur(100px);
  animation: nzBlob 26s ease-in-out infinite -9s;
}

/* The banner sits above everything and says why the service is not itself
   today. It pulses, because a state somebody has to notice should not look
   like decoration. */
.notice {
  position: relative;
  z-index: 4;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 20px;
  font: 500 13px/1.4 Manrope;
  animation: nzPop .4s ease both;
}

.notice .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
  animation: nzPulse 2s ease-in-out infinite;
}

.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }
.notice.info { background: var(--accent-soft); color: var(--accent); }

.frame-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.frame {
  width: 100%;
  max-width: 1240px;
  display: flex;
  gap: 20px;
  min-height: 100vh;
  padding: 20px;
}

.frame > main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.screen {
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: nzIn .45s cubic-bezier(.2, .8, .2, 1) both;
}

/* The phone header replaces the side navigation rather than shrinking it: a
   list of eighteen sections is not a thing to scroll past on every screen. */
.phone-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px 0;
}

.phone-head .brand { font: 800 15px/1 Manrope; }
.phone-head .brand span { color: var(--accent); }
.phone-head .where { font: 500 12px/1 Manrope; color: var(--fg2); }

@media (max-width: 860px) {
  .frame { padding: 28px 16px; gap: 0; }
  .phone-head { display: flex; }
}

/* -------------------------------------------------------------- navigation */

.nav {
  flex: none;
  width: 236px;
  padding: 12px 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid var(--line2);
  box-shadow: var(--shadow);
  border-radius: 24px;
  align-self: flex-start;
  position: sticky;
  top: 20px;
}

@media (max-width: 860px) { .nav { display: none; } }

/* The profile switcher. It is the first thing in the navigation because on an
   account with several profiles, "which one am I looking at" comes before
   every other question. */
.nav-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--code);
  color: var(--fg);
  cursor: pointer;
  text-align: left;
  margin-bottom: 6px;
  transition: background .2s;
}

.nav-profile { gap: 10px; }
.nav-profile:hover { background: var(--accent-soft); }
.nav-profile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-profile .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.nav-profile .dot.warn { background: var(--warn); }
.nav-profile .dot.bad { background: var(--bad); }
.nav-profile .who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-profile .name { display: block; font: 700 13px/1.2 Manrope; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-profile .meta { display: block; font: 500 11px/1.3 "JetBrains Mono", monospace; color: var(--fg3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-profile .swap { font: 600 14px/1 Manrope; color: var(--fg3); }

.nav-group {
  font: 700 10.5px/1 Manrope;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg3);
  padding: 16px 12px 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  font: 600 13.5px/1 Manrope;
  transition: background .2s, color .2s, transform .15s;
  background: transparent;
  color: var(--fg);
  width: 100%;
}

.nav-item { gap: 10px; }

.nav-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg3);
  flex: none;
  transition: background .2s;
}

.nav-item:hover { background: var(--accent-soft); }
.nav-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.nav-item[aria-current="page"] { background: var(--accent); color: var(--accent-fg); }
.nav-item[aria-current="page"] .dot { background: var(--accent-fg); }
.nav-item .soon { margin-left: auto; font: 500 10px/1 Manrope; color: var(--fg3); }

/* ---------------------------------------------------------------- surfaces */

.pane {
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid var(--line2);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pane.tight { padding: 20px; gap: 12px; }
.pane.flat { padding: 14px; gap: 6px; }

.pane.sketch {
  border: 1px dashed var(--line);
  box-shadow: none;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  align-items: start;
}

.cols.narrow { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.cols .span { grid-column: 1 / -1; }

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.page-head h1 {
  margin: 0 0 4px;
  font: 800 clamp(22px, 3vw, 30px)/1.1 Manrope;
  letter-spacing: -.02em;
}

.page-head .sub { font: 500 13px/1.3 Manrope; color: var(--fg2); }

.eyebrow {
  font: 700 11px/1 Manrope;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow.live { color: var(--accent); }
.eyebrow.live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: nzPulse 2s ease-in-out infinite; }

.lede { margin: 0; font: 500 14px/1.5 Manrope; color: var(--fg2); text-wrap: pretty; }
.said { font: 500 13px/1.45 Manrope; color: var(--fg2); }
.aside { font: 500 12.5px/1.4 Manrope; color: var(--fg3); }
.tt { font-family: "JetBrains Mono", monospace; }

/* ---------------------------------------------------------------- controls */

.act {
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: var(--accent-fg);
  font: 600 14px/1 Manrope;
  cursor: pointer;
  transition: transform .2s, filter .2s;
}

.act:hover { filter: brightness(1.08); }
.act:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.act[disabled] { opacity: .4; cursor: default; }

.act.tall { height: 48px; font-size: 15px; padding: 0 22px; }
.act.small { height: 40px; padding: 0 18px; font-size: 13.5px; }

.act.line {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg);
}

.act.line:hover { background: var(--accent-soft); filter: none; }

/* Inverted rather than accent: on a screen that is already asking for a
   decision, the safe way out should not look like the loud one. */
.act.calm { background: var(--fg); color: var(--bg); }
.act.calm:focus-visible { outline-color: var(--fg); }

.act.quiet { background: transparent; color: var(--fg2); }
.act.quiet:hover { color: var(--fg); filter: none; }

.act.danger { background: var(--bad); color: #fff; }

.linkish {
  border: 0;
  background: none;
  padding: 0;
  color: var(--accent);
  font: 600 13.5px/1 Manrope;
  cursor: pointer;
}

.linkish:hover { text-decoration: underline; }
.linkish:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.linkish.tiny { font-size: 12.5px; }

.fld {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font: 600 13px/1.3 Manrope;
}

.fld input,
.fld select,
.fld textarea {
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--code);
  color: var(--fg);
  font: 500 15px/1 Manrope;
  outline: none;
  width: 100%;
}

.fld input:focus,
.fld select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.fld.bad input { border-color: var(--bad); }
.fld .label-row { display: flex; justify-content: space-between; align-items: baseline; }

.alert {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bad-soft);
  color: var(--bad);
  font: 500 13px/1.45 Manrope;
  animation: nzPop .3s ease both;
}

.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert.ok { background: var(--ok-soft); color: var(--ok); }

/* A checkbox drawn as a button, because a native one cannot be made to match
   the rest and a label that is hard to hit is a form people abandon. */
.tick {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--accent-fg);
  display: grid;
  place-items: center;
  cursor: pointer;
  font: 800 13px/1 Manrope;
  transition: all .2s;
}

.tick[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.tick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font: 500 13px/1.45 Manrope;
  color: var(--fg2);
  cursor: pointer;
}

/* The strength meter. Three states rather than a number, because the number
   would be a guess dressed up as a measurement. */
.pw { display: flex; align-items: center; gap: 10px; }
.pw .track { flex: 1; height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; }
.pw .fill { height: 100%; border-radius: 999px; transition: width .3s, background .3s; width: 0; }
.pw .word { font: 500 11.5px/1 Manrope; min-width: 64px; text-align: right; }

.pw.weak .fill { width: 33%; background: var(--bad); }
.pw.weak .word { color: var(--bad); }
.pw.fair .fill { width: 66%; background: var(--warn); }
.pw.fair .word { color: var(--warn); }
.pw.good .fill { width: 100%; background: var(--ok); }
.pw.good .word { color: var(--ok); }

/* -------------------------------------------------------------------- auth */

.auth {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
  padding: 12px 0;
}

.auth-box {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.mark .badge {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--accent);
  display: grid;
  place-items: center;
}

.mark .badge i { width: 11px; height: 11px; border-radius: 50%; background: var(--accent-fg); display: block; }
.mark .word { font: 800 19px/1 Manrope; letter-spacing: -.01em; }
.mark .word span { color: var(--accent); }

.auth-card {
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid var(--line2);
  box-shadow: var(--shadow);
  border-radius: 28px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: nzIn .4s cubic-bezier(.2, .8, .2, 1) both;
}

.auth-card h1 { margin: 0; font: 800 26px/1.1 Manrope; letter-spacing: -.02em; }
.auth-card form { display: flex; flex-direction: column; gap: 12px; }
.auth-card form .act { margin-top: 4px; }
.auth-title { display: flex; flex-direction: column; gap: 6px; }

.or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg3);
  font: 500 12px/1 Manrope;
}

.or::before,
.or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.auth-foot { text-align: center; font: 500 13.5px/1.4 Manrope; color: var(--fg2); }
.auth-note { text-align: center; font: 500 12px/1.4 Manrope; color: var(--fg3); }

.done-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--ok-soft);
  color: var(--ok);
  display: grid;
  place-items: center;
  font: 800 20px/1 Manrope;
}

/* ---------------------------------------------------------------- profiles */

.prof {
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid var(--line2);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .3s;
  animation: nzPop .35s ease both;
}

.prof.is-current { border-color: var(--accent); }
.prof .top { display: flex; align-items: flex-start; gap: 10px; }
.prof .who { flex: 1; min-width: 0; }
.prof .name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prof h2 { margin: 0; font: 700 17px/1.2 Manrope; }
.prof .meta { font: 500 12px/1.4 Manrope; color: var(--fg3); }

.prof dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.prof dl > div { display: flex; flex-direction: column; gap: 3px; }
.prof dt { font: 700 10px/1 Manrope; letter-spacing: .08em; text-transform: uppercase; color: var(--fg3); }
.prof dd { margin: 0; font: 600 14px/1.2 Manrope; }
.prof dd.num { font-family: "JetBrains Mono", monospace; font-variant-numeric: tabular-nums; }

.prof .acts { display: flex; gap: 8px; align-items: center; margin-top: auto; }

.prof .drop {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--fg3);
  cursor: pointer;
  font: 600 16px/1 Manrope;
}

.prof .drop:hover { background: var(--bad-soft); color: var(--bad); }
.prof .drop:focus-visible { outline: 2px solid var(--accent); }

.tag {
  font: 700 10px/1 Manrope;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
}

.tag.ok { background: var(--ok-soft); color: var(--ok); }

.state {
  font: 600 11px/1 "JetBrains Mono", monospace;
  padding: 5px 8px;
  border-radius: 999px;
  flex: none;
  background: var(--ok-soft);
  color: var(--ok);
}

.state.warn { background: var(--warn-soft); color: var(--warn); }
.state.bad { background: var(--bad-soft); color: var(--bad); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }

.chip-pick {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  cursor: pointer;
  font: 600 13px/1 Manrope;
  transition: all .25s;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
}

.chip-pick[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.chip-pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font: 500 14px/1.45 Manrope; }
.points span { color: var(--fg2); }
.rule { font: 500 12.5px/1.4 Manrope; color: var(--fg3); padding-top: 4px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------ errors */

.lost {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
  padding: 12px 0;
}

.lost-box {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.lost-code {
  font: 600 clamp(72px, 14vw, 120px)/1 "JetBrains Mono", monospace;
  letter-spacing: -.06em;
  color: var(--fg);
  opacity: .14;
}

.lost-say { display: flex; flex-direction: column; gap: 8px; margin-top: -28px; }
.lost-say h1 { margin: 0; font: 800 26px/1.1 Manrope; letter-spacing: -.02em; }

.denied {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 28px;
}

.denied .code {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--warn-soft);
  color: var(--warn);
  display: grid;
  place-items: center;
  font: 600 16px/1 "JetBrains Mono", monospace;
}

.denied .what { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 10px; }
.denied .what strong { font: 700 18px/1.2 Manrope; }
.denied p { margin: 0; max-width: 60ch; }

/* -------------------------------------------------------------- skeletons */

.skel {
  height: 200px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, var(--skel) 0, var(--glass2) 40%, var(--skel) 80%);
  background-size: 800px 100%;
  animation: nzShimmer 1.4s linear infinite;
}

.skel.row { height: 64px; border-radius: 18px; }

/* ------------------------------------------------------------------ wizard */

.wiz { display: flex; flex-direction: column; gap: 14px; }
.wiz .line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wiz h1 { margin: 0; font: 800 clamp(22px, 3vw, 30px)/1.1 Manrope; letter-spacing: -.02em; }
.wiz .ord { font: 600 12px/1 "JetBrains Mono", monospace; color: var(--fg3); }

.rail { display: flex; gap: 6px; }

.rail button {
  flex: 1;
  height: 6px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.rail i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

.rail button.on i, .rail button.done i { transform: scaleX(1); }

.wizfoot { display: flex; justify-content: space-between; gap: 10px; padding-top: 4px; }

/* The two lists on the first step: what the service does, and the three things
   people expect it to do and it does not. */

.bullets { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font: 500 14px/1.45 Manrope; }
.bullets li span { color: var(--fg2); }

.eyebrow.ok { color: var(--ok); }
.eyebrow.ok .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.eyebrow.off { color: var(--fg2); }
.eyebrow.off .dot { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--fg3); box-sizing: border-box; }

.plan {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 12px;
}

.plan li { display: flex; gap: 10px; font: 500 13.5px/1.4 Manrope; }

.plan .n, .guide .n {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font: 700 12px/1 "JetBrains Mono", monospace;
}

/* ----------------------------------------------------------------- domains */

.sw {
  flex: none;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  background: var(--line);
  transition: background .3s;
}

.sw i {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--knob);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  transition: left .3s cubic-bezier(.34, 1.56, .64, 1);
}

.sw[aria-checked="true"] { background: var(--accent); }
.sw[aria-checked="true"] i { left: 22px; }
.sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.setrow { border-radius: 16px; transition: background .2s; }
.setrow:hover { background: var(--accent-soft); }
.setrow .headline { display: flex; align-items: center; gap: 12px; padding: 10px; }

.setrow .expand {
  flex: 1;
  min-width: 0;
  height: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
  color: var(--fg);
}

.setrow .expand:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.setrow .who { flex: 1; min-width: 0; }
.setrow .name { font: 600 14px/1.2 Manrope; }
.setrow .sub { font: 500 12px/1.3 Manrope; color: var(--fg3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.setrow .n { font: 500 12px/1 "JetBrains Mono", monospace; color: var(--fg3); }
.setrow .chev { font: 500 14px/1 Manrope; color: var(--fg3); transition: transform .3s; }
.setrow .expand[aria-expanded="true"] .chev { transform: rotate(180deg); }
.setrow .peek { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px 14px 68px; animation: nzPop .3s ease both; }
.setrow .peek span { padding: 6px 10px; border-radius: 999px; background: var(--code); border: 1px solid var(--line); font: 500 12px/1 "JetBrains Mono", monospace; }
.setrow .peek .more { padding: 6px 10px; border: 0; background: none; font: 500 12px/1 Manrope; color: var(--fg3); }

.meter { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: var(--accent); width: 0; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.meter.thin { height: 6px; }
.meter.warn i { background: var(--warn); }
.meter.bad i { background: var(--bad); }

.quota { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.quota .n { font: 600 13px/1 "JetBrains Mono", monospace; }
.quota.warn .n { color: var(--warn); }
.quota.bad .n { color: var(--bad); }

.gauge { display: flex; flex-direction: column; gap: 6px; min-width: 200px; }
.gauge .line { display: flex; justify-content: space-between; font: 600 12px/1 "JetBrains Mono", monospace; }
.gauge.warn .line { color: var(--warn); }
.gauge.bad .line { color: var(--bad); }

.chipx {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 6px 0 12px;
  border-radius: 999px;
  background: var(--code);
  border: 1px solid var(--line);
  font: 500 13px/1 "JetBrains Mono", monospace;
  animation: nzPop .3s ease both;
}

.chipx button, .domrow button, .tbl .x {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--fg3);
  cursor: pointer;
  font: 600 14px/1 Manrope;
  padding: 0;
}

.chipx button:hover, .domrow button:hover, .tbl .x:hover { background: var(--bad-soft); color: var(--bad); }

.domrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--code);
  border: 1px solid var(--line);
  animation: nzPop .3s ease both;
}

.domrow .name { flex: 1; font: 500 13.5px/1 "JetBrains Mono", monospace; }
.domrow .when { font: 500 11.5px/1 Manrope; color: var(--fg3); }
.domrow button, .tbl .x { width: 30px; height: 30px; font-size: 16px; }

.stack { display: flex; flex-direction: column; gap: 6px; }
.wrap { display: flex; flex-wrap: wrap; gap: 8px; }

.saving {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 600 13px/1.3 Manrope;
  animation: nzPop .3s ease both;
}

.spin {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent-soft);
  border-top-color: currentColor;
  animation: nzSpin .8s linear infinite;
}

.act .spin { border-color: rgba(255, 255, 255, .3); border-top-color: currentColor; width: 16px; height: 16px; }

.empty { align-items: center; text-align: center; padding: 36px 28px; gap: 12px; }
.empty .zero { width: 56px; height: 56px; border-radius: 18px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); font: 800 24px/1 Manrope; }
.empty strong { font: 700 18px/1.2 Manrope; }
.empty .lede { max-width: 46ch; }

/* ------------------------------------------------------------- the address */

.clip { display: flex; gap: 8px; align-items: stretch; }

.clip code {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--code);
  border: 1px solid var(--line);
  font: 500 13px/1.5 "JetBrains Mono", monospace;
  word-break: break-all;
  color: var(--fg);
}

/* The same row holds a form: an address to copy and a domain to add look the
   same on purpose, because both are one field and one button. */
.clip input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--code);
  color: var(--fg);
  font: 500 14px/1 "JetBrains Mono", monospace;
  outline: none;
}

.clip input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.clip input::placeholder { color: var(--fg3); }

.clip button {
  flex: none;
  width: 96px;
  height: auto;
  min-height: 44px;
  padding: 0;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  font: 600 13px/1 Manrope;
  background: var(--accent-soft);
  color: var(--accent);
  transition: background .3s, color .3s;
}

.clip button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.clip button.done { background: var(--ok); color: var(--accent-fg); }
.clip.sm code { padding: 11px 12px; border-radius: 12px; font-size: 12.5px; }
.clip.sm button { width: 84px; border-radius: 12px; font-size: 12.5px; }

.qrbox {
  width: 132px;
  height: 132px;
  border-radius: 16px;
  background: repeating-linear-gradient(45deg, var(--code) 0 6px, transparent 6px 12px);
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
  padding: 10px;
}

.qrbox img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; background: #fff; }
.side-by { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.side-by .say { flex: 1; min-width: 160px; font: 500 13px/1.45 Manrope; color: var(--fg2); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* ------------------------------------------------------------------ tables */

.scroll { overflow-x: auto; padding: 8px; }
.tbl { display: flex; flex-direction: column; gap: 4px; }

.tbl .hd, .tbl .r {
  display: grid;
  gap: 12px;
  align-items: center;
  grid-template-columns: var(--cols);
}

.tbl .hd {
  padding: 6px 10px;
  font: 700 10.5px/1 Manrope;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg3);
}

.tbl .r {
  padding: 12px 10px;
  border-radius: 16px;
  border: 1px solid transparent;
  font: 500 13px/1.2 Manrope;
  transition: background .3s, border-color .3s;
}

.tbl .r.pick { border-color: var(--accent); background: var(--accent-soft); }
.tbl .num { text-align: right; font: 600 15px/1 "JetBrains Mono", monospace; font-variant-numeric: tabular-nums; }
.tbl .ip { font: 600 13.5px/1 "JetBrains Mono", monospace; }
.tbl .dim { color: var(--fg2); }
.tbl .src { font: 600 11px/1 Manrope; padding: 4px 8px; border-radius: 999px; background: var(--code); border: 1px solid var(--line); justify-self: start; }

.place { min-width: 0; display: flex; align-items: center; gap: 10px; }
.place .cc { font: 600 11px/1 "JetBrains Mono", monospace; color: var(--fg3); width: 22px; }
.place .city { font: 600 14px/1.2 Manrope; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.place .host { font: 500 12px/1.3 Manrope; color: var(--fg3); }

.badge { font: 700 10px/1 Manrope; letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); animation: nzPop .3s ease both; }
.badge.kept { background: var(--ok-soft); color: var(--ok); }

.pips { display: flex; gap: 4px; }
.pips i { width: 14px; height: 14px; border-radius: 5px; background: var(--line); transition: background .25s; animation: nzPop .3s ease both; }
.pips i.good { background: var(--ok); }
.pips i.fair { background: var(--warn); }
.pips i.poor { background: var(--bad); }

/* ---------------------------------------------------------------- overview */

.status {
  border-radius: 24px;
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
  border: 1px solid var(--line2);
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: var(--shadow);
  transition: background .4s, border-color .4s;
}

.status .sign { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); font: 800 18px/1 Manrope; }
.status .body { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 6px; }
.status .headline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.status h2 { margin: 0; font: 700 18px/1.2 Manrope; }
.status .code { font: 600 11px/1 "JetBrains Mono", monospace; padding: 5px 8px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); }
.status p { margin: 0; font: 500 14px/1.5 Manrope; color: var(--fg2); max-width: 62ch; text-wrap: pretty; }
.status.warn { border-color: var(--warn-soft); background: var(--warn-soft); }
.status.warn .sign, .status.warn .code { background: var(--warn-soft); color: var(--warn); }
.status.bad { border-color: var(--bad-soft); background: var(--bad-soft); }
.status.bad .sign, .status.bad .code { background: var(--bad-soft); color: var(--bad); }

.metric { font: 700 26px/1.1 "JetBrains Mono", monospace; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.metric.word { font-family: Manrope; }
.metric span { font: 600 15px/1 Manrope; color: var(--fg3); margin-left: 6px; }
.since { display: flex; align-items: center; gap: 8px; font: 500 13.5px/1.3 Manrope; color: var(--fg2); }
.since .left { font: 600 13px/1 "JetBrains Mono", monospace; padding: 4px 8px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); }
.since .left.warn { background: var(--warn-soft); color: var(--warn); }
.here { font: 700 22px/1 "JetBrains Mono", monospace; font-variant-numeric: tabular-nums; }
.state.ok { background: var(--ok-soft); color: var(--ok); }

/* ------------------------------------------------------------------- usage */

.bars { display: flex; gap: 6px; align-items: flex-end; height: 160px; }
.bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .col i { width: 100%; border-radius: 8px 8px 4px 4px; background: var(--accent); transition: height .6s cubic-bezier(.2, .8, .2, 1); animation: nzPop .5s ease both; }
.bars .col i.none { background: var(--line); }
.bars .col span { font: 500 10px/1 "JetBrains Mono", monospace; color: var(--fg3); }

.split { display: flex; flex-direction: column; gap: 5px; }
.split .line { display: flex; justify-content: space-between; font: 500 13px/1 Manrope; }

/* ------------------------------------------------------------------ guides */

.tabs { display: flex; gap: 8px; flex-wrap: wrap; }

.tabs button {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  cursor: pointer;
  font: 600 13px/1 Manrope;
  transition: all .25s;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--fg2);
}

.tabs button:hover { transform: translateY(-1px); }
.tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tabs button[aria-selected="true"] { border-color: transparent; background: var(--accent); color: var(--accent-fg); }

.guide { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.guide li { display: flex; gap: 12px; font: 500 14px/1.5 Manrope; animation: nzPop .4s ease both; }
.guide .what { min-width: 0; flex: 1; }
.guide .clip { margin-top: 8px; }

.verdict { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: var(--ok-soft); color: var(--ok); animation: nzPop .35s ease both; }
.verdict.bad { background: var(--bad-soft); color: var(--bad); }
.verdict .headline { display: flex; align-items: center; gap: 10px; font: 700 15px/1.2 Manrope; }
.verdict .sign { width: 26px; height: 26px; border-radius: 50%; background: currentColor; display: grid; place-items: center; flex: none; }
.verdict .sign span { color: var(--bg); font: 800 14px/1 Manrope; }
.verdict .say { font: 500 13.5px/1.45 Manrope; }

/* ----------------------------------------------------------------- console */

/* A file, shown as a file. The zone is what the name server reads, and a
   paraphrase of it on this screen would be free to be wrong. */
.dump {
  margin: 0;
  max-height: 320px;
  overflow: auto;
  padding: 14px;
  border-radius: 14px;
  background: var(--code);
  border: 1px solid var(--line);
  font: 500 12px/1.55 "JetBrains Mono", monospace;
  color: var(--fg2);
  white-space: pre;
}

.state.ok { background: var(--ok-soft); color: var(--ok); }
.state.bad { background: var(--bad-soft); color: var(--bad); }
.chips { flex-wrap: wrap; }
.pane.flat .tbl .r:hover { background: var(--accent-soft); }

/* ------------------------------------------------------------------ modals */

/* A modal is for the two things a screen cannot do: ask for a confirmation
   that has to be typed, and hold a form that is about one row of a table. */
.veil {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(10, 14, 30, .45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: nzPop .25s ease both;
}

.sheet {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--glass2);
  backdrop-filter: blur(30px) saturate(1.6);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  border: 1px solid var(--line2);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5);
  border-radius: 28px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--fg);
  animation: nzSheet .4s cubic-bezier(.2, .8, .2, 1) both;
}

.sheet.wide { width: min(720px, 100%); }
.sheet h2 { font: 700 20px/1.25 Manrope; letter-spacing: -.01em; }
.sheet p { font: 500 14px/1.5 Manrope; color: var(--fg2); text-wrap: pretty; }
.sheet .acts { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.sheet .group { display: flex; flex-direction: column; gap: 8px; }
.sheet .group > .eyebrow { margin-bottom: 2px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 60;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font: 600 13px/1 Manrope;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
  animation: nzSheet .35s cubic-bezier(.2, .8, .2, 1) both;
  white-space: nowrap;
}

/* A destructive button says so. It is the same pill, in the colour that means
   this one does not come back. */
.act.danger { background: var(--bad); color: var(--accent-fg); }
.act.danger:focus-visible { outline-color: var(--bad); }
.act.line.danger { background: transparent; border-color: var(--bad-soft); color: var(--bad); }

