/* Brasstag app styles.
   Tokens, fonts, buttons and stamps come from the waitlist site (..\brasstag\public\site.css).
   Inside the app: a calm mist field with cobalt chrome. Every asset is a manila tag. */

@font-face {
  font-family: "Anybody";
  src: url("/fonts/anybody.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --cobalt: #2236E8;
  --cobalt-deep: #1A29B8;
  --manila: #EFCF86;
  --manila-deep: #E3BC63;
  --stamp: #C8221A;
  --ink: #12153A;
  --paper: #FFFFFF;
  --mist: #E6E9FF;
  --ink-soft: #3D4163;

  --display: "Anybody", "Arial Black", sans-serif;
  --text: "Schibsted Grotesk", Verdana, sans-serif;

  --measure: 62ch;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1240px;
}

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

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.5;
}
.app-body { background: var(--mist); }
body.has-dialog { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: var(--cobalt); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--cobalt-deep); text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--manila); color: var(--ink); padding: .6rem 1rem; border-radius: 999px; font-weight: 700;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-soft); }
h1, h2, h3 { margin: 0; }

/* ---------- wordmark ---------- */

.wordmark {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 900; font-stretch: 140%; font-size: 1.45rem; letter-spacing: -0.03em;
  text-decoration: none; color: var(--paper);
}
.wordmark:hover { color: var(--paper); }
.wordmark svg { width: 30px; height: 30px; }
.wm-keep { font-weight: 900; }
.wm-ring { font-weight: 430; }
.wm-ring-shape { fill: none; stroke: var(--manila); stroke-width: 4; }
.wm-tag-shape { fill: var(--manila); }
.wm-hole-shape { fill: var(--cobalt); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .6rem 1.35rem;
  border: 3px solid var(--ink); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font-family: var(--display); font-weight: 800; font-stretch: 108%; font-size: 1rem; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { color: inherit; transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: none; box-shadow: none; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { color: var(--paper); }
.btn-manila { background: var(--manila); color: var(--ink); }
.btn-outline { background: transparent; color: var(--paper); border-color: var(--manila); }
.btn-outline:hover { color: var(--paper); box-shadow: 4px 4px 0 var(--manila); }
.btn-small { min-height: 40px; padding: .35rem .95rem; font-size: .92rem; border-width: 2px; }
.btn-danger { color: var(--stamp); border-color: var(--stamp); }
.btn-danger:hover { color: var(--stamp); box-shadow: 4px 4px 0 var(--stamp); }
.icon-btn {
  width: 44px; height: 44px; flex: none; border: 2px solid var(--ink); border-radius: 50%;
  background: var(--paper); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.icon-btn:hover { box-shadow: 3px 3px 0 var(--ink); }
.link {
  background: none; border: 0; padding: 0; font: inherit; color: var(--cobalt); cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.link:hover { color: var(--cobalt-deep); text-decoration-thickness: 3px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* ---------- stamps ---------- */

.stamp {
  display: inline-block; flex: none;
  font-family: var(--display); font-weight: 850; font-stretch: 85%; font-size: .95rem; line-height: 1;
  padding: .35rem .55rem .3rem; border: 3px solid currentColor; border-radius: 7px;
  transform: rotate(-4deg); white-space: nowrap;
}
.stamp-ok { color: var(--cobalt); }
.stamp-check { color: var(--ink); }
.stamp-risk { color: var(--stamp); }
.stamp-info { color: var(--ink-soft); border-style: dashed; }
.stamp-big { font-size: 1.25rem; transform: rotate(5deg); }

/* ---------- chrome ---------- */

.demo-banner { background: var(--manila); border-bottom: 3px solid var(--ink); font-size: .98rem; }
.demo-banner .wrap { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; justify-content: space-between; align-items: center; padding-top: .55rem; padding-bottom: .55rem; }
.demo-banner p { margin: 0; }
.demo-banner a { color: var(--ink); font-weight: 700; }

.app-bar { background: var(--cobalt); color: var(--paper); }
.app-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-top: .9rem; padding-bottom: .9rem; }
.app-nav { display: flex; flex-wrap: wrap; gap: .4rem; }
.app-nav a {
  color: var(--paper); text-decoration: none; font-weight: 700;
  padding: .45rem .9rem; border-radius: 999px; border: 2px solid transparent;
}
.app-nav a:hover { color: var(--paper); border-color: var(--mist); }
.app-nav a[aria-current="page"] { background: var(--manila); color: var(--ink); border-color: var(--ink); }
.app-bar :focus-visible { outline-color: var(--manila); }

.app-main { padding-top: clamp(1.5rem, 4vw, 2.75rem); padding-bottom: 3rem; }
.app-main:focus { outline: none; }
.app-foot { padding-bottom: 2.5rem; font-size: .95rem; color: var(--ink-soft); }

.register-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.eyebrow { margin: 0 0 .35rem; font-weight: 700; color: var(--cobalt); }
.page-title {
  font-family: var(--display); font-weight: 900; font-stretch: 118%; letter-spacing: -0.02em;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: .98; overflow-wrap: anywhere;
}
.section-title { font-family: var(--display); font-weight: 800; font-stretch: 105%; font-size: 1.3rem; line-height: 1.15; margin-bottom: .9rem; }
.lede-app { max-width: var(--measure); margin: 1rem 0 0; }

/* ---------- summary ---------- */

.summary { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .9rem; }
.summary li {
  display: flex; align-items: center; gap: .8rem;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; padding: .6rem 1.1rem .6rem .9rem;
}
.summary-n { font-family: var(--display); font-weight: 900; font-stretch: 120%; font-size: 2.1rem; line-height: 1; }
.summary-risk .summary-n { color: var(--stamp); }
.summary-ok .summary-n { color: var(--cobalt); }

/* ---------- alerts ---------- */

.alerts { margin-top: 2rem; }
.alert-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.alert {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: .5rem 1.25rem; align-items: start;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; padding: 1rem 1.1rem;
}
.alert-risk { border-left: 10px solid var(--stamp); }
.alert-check { border-left: 10px solid var(--ink); }
.alert-info { border-left: 10px solid var(--mist); }
.alert .stamp { justify-self: start; margin-top: .15rem; }
.alert h3 { font-family: var(--display); font-weight: 780; font-stretch: 102%; font-size: 1.12rem; line-height: 1.2; }
.alert-body p { margin: .3rem 0 0; max-width: var(--measure); }
.alert-meta { font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 640px) {
  .alert { grid-template-columns: minmax(0, 1fr); }
  .alert .btn { justify-self: start; }
}

/* ---------- filters ---------- */

.register { margin-top: 2.25rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .3rem .85rem;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink);
  font: inherit; font-weight: 700; cursor: pointer;
}
.chip:hover { box-shadow: 3px 3px 0 var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip-n { font-weight: 400; font-size: .9rem; }

/* ---------- tags ---------- */

.tags { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 1.4rem 1.25rem; }
.tag-item { display: flex; }
.tag {
  position: relative; display: flex; flex-direction: column; gap: .2rem; width: 100%;
  text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  background: var(--manila); border: 3px solid var(--ink);
  border-radius: 10px 20px 20px 10px;
  padding: 1rem 1.1rem 1.1rem 3.3rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tag::after {        /* the reinforced edge by the hole */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2.4rem;
  border-right: 2px dashed var(--manila-deep); border-radius: 8px 0 0 8px; pointer-events: none;
}
.tag:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.tag:focus-visible { outline-offset: 4px; }
.tag-hole {
  position: absolute; left: .78rem; top: 1.2rem; width: .9rem; height: .9rem; border-radius: 50%;
  background: var(--mist); box-shadow: 0 0 0 4px var(--stamp), inset 1px 1px 0 rgba(18, 21, 58, .3);
}
.tag-hole::before {  /* the string */
  content: ""; position: absolute; left: .2rem; top: -1.55rem; width: 2px; height: 1.8rem;
  background: var(--ink); transform: rotate(-24deg); transform-origin: bottom center; border-radius: 2px;
}
.tag-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .2rem; }
.tag-kind { font-family: var(--display); font-weight: 700; font-stretch: 70%; font-size: .98rem; color: var(--ink-soft); }
.tag-name { font-family: var(--display); font-weight: 820; font-stretch: 92%; font-size: 1.32rem; line-height: 1.1; overflow-wrap: anywhere; }
.tag-id { font-size: .95rem; overflow-wrap: anywhere; }
.tag-line { font-size: .95rem; }
.tag-label { font-weight: 700; }
.tag-flag { margin-top: .55rem; padding-top: .5rem; border-top: 2px dashed rgba(18, 21, 58, .35); font-weight: 700; font-size: .95rem; }
.tag-flag-risk { color: var(--stamp); }
.tag-more { font-weight: 400; color: var(--ink-soft); }
.tilt-0 .stamp { transform: rotate(-5deg); }
.tilt-1 .stamp { transform: rotate(3deg); }
.tilt-2 .stamp { transform: rotate(-2deg); }
.tilt-3 .stamp { transform: rotate(6deg); }
@media (prefers-reduced-motion: reduce) { .tag { transition: none; } .tag:hover { transform: none; } }

.empty { background: var(--cobalt); color: var(--paper); border-radius: 18px; padding: 2rem; }
.empty p { margin: 0 0 1rem; max-width: var(--measure); font-size: 1.15rem; }

/* ---------- side panel ---------- */

dialog.panel {
  position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0;
  width: min(580px, 100%); max-width: 100%; height: 100%; max-height: 100%;
  border: 0; border-left: 3px solid var(--ink); background: var(--paper); color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
}
dialog.panel-narrow { width: min(480px, 100%); }
dialog.panel::backdrop { background: rgba(18, 21, 58, .55); }
@media (max-width: 640px) { dialog.panel { border-left: 0; } }
.panel-inner { padding: 1.25rem var(--gutter) 2.5rem; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: 1rem; border-bottom: 3px solid var(--ink); }
.panel-title { font-family: var(--display); font-weight: 900; font-stretch: 110%; font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.05; overflow-wrap: anywhere; }
.panel-title:focus { outline: none; }
.panel-status { margin: 1rem 0 0; padding: .55rem .9rem; background: var(--mist); border-radius: 10px; font-weight: 700; }
.panel-inner h3 { font-family: var(--display); font-weight: 800; font-stretch: 104%; font-size: 1.15rem; line-height: 1.2; }

.panel-flags { margin-top: 1.25rem; background: var(--manila); border: 3px solid var(--ink); border-radius: 14px; padding: 1rem 1.1rem; }
.panel-flags-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.panel-flags > p { margin: 0; }
.flag-list { list-style: none; margin: 0; padding: 0; }
.flag { padding: .7rem 0; border-top: 2px dashed rgba(18, 21, 58, .35); }
.flag-status { display: block; font-size: .85rem; font-weight: 700; }
.flag-risk .flag-status { color: var(--stamp); }
.flag p { margin: .2rem 0 0; }

.panel-form { margin-top: 1.5rem; }
.panel-form > h3 { margin-bottom: .75rem; }
.field { margin-bottom: 1rem; }
.field label, .radios legend, .access legend { display: block; font-weight: 700; margin-bottom: .3rem; }
.hint { margin: 0 0 .4rem; font-size: .92rem; color: var(--ink-soft); }
.field-error { margin: .35rem 0 0; color: var(--stamp); font-weight: 700; font-size: .95rem; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1rem; align-items: end; }
.cost { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: end; margin-bottom: 1rem; }
.cost .field { margin-bottom: 0; }
@media (max-width: 520px) { .field-row { grid-template-columns: minmax(0, 1fr); } }

input[type="text"], input[type="email"], input[type="date"], select, textarea {
  width: 100%; min-height: 48px; padding: .6rem .85rem;
  font: inherit; color: var(--ink); background: var(--paper);
  border: 3px solid var(--ink); border-radius: 12px;
}
textarea { min-height: 6rem; resize: vertical; }
select { cursor: pointer; }
.select-small { min-height: 40px; padding: .3rem .6rem; border-width: 2px; border-radius: 10px; width: auto; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
[aria-invalid="true"] { border-color: var(--stamp); }

.pw-warning { margin: -.4rem 0 1rem; padding: .6rem .85rem; border: 3px solid var(--stamp); border-radius: 10px; color: var(--stamp); font-weight: 700; }
.pw-warning:empty { display: none; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.access { margin: .5rem 0 1rem; padding: 1rem; border: 3px solid var(--ink); border-radius: 14px; background: var(--mist); }
.access legend { float: left; width: 100%; font-family: var(--display); font-weight: 800; font-stretch: 104%; font-size: 1.15rem; }
.access legend + * { clear: both; }
.access-list { list-style: none; margin: .5rem 0 .75rem; padding: 0; display: grid; gap: .5rem; }
.access-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; padding: .45rem .55rem .45rem .8rem; }
.access-former { border-color: var(--stamp); }
.access-name { flex: 1 1 10rem; font-weight: 700; }
.left-badge { margin-left: .5rem; font-size: .8rem; color: var(--stamp); border: 2px solid var(--stamp); border-radius: 6px; padding: 0 .3rem; }
.access-add { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.access-add select:first-child { flex: 1 1 10rem; }

.never { margin: 1rem 0; padding: .7rem .9rem; background: var(--ink); color: var(--paper); border-radius: 10px; font-weight: 700; }
.panel-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.form-status { margin: .75rem 0 0; font-weight: 700; min-height: 1.5em; }
.form-status.error { color: var(--stamp); }
.form-status:empty { min-height: 0; margin: 0; }

.panel-check { margin-top: 2rem; padding-top: 1.25rem; border-top: 3px solid var(--ink); }
.panel-check > p { margin: .35rem 0 .75rem; }
.check-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.check-list li { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: .75rem; padding: .65rem 0; border-top: 2px dashed rgba(18, 21, 58, .3); }
.check-list .stamp { justify-self: start; font-size: .82rem; }
.check-list p { margin: .15rem 0 0; font-size: .95rem; }
.check-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.panel-delete { margin-top: 2rem; padding-top: 1.25rem; border-top: 3px solid var(--ink); }
.delete-zone p { margin: 0 0 .75rem; }
@media (max-width: 420px) { .check-list li { grid-template-columns: minmax(0, 1fr); gap: .35rem; } }

/* ---------- people ---------- */

.people-section { margin-top: 2rem; }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1rem; }
.person { background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .6rem; }
.person-risk { border-color: var(--stamp); box-shadow: 6px 6px 0 var(--stamp); }
.person-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.person h3 { font-family: var(--display); font-weight: 820; font-stretch: 98%; font-size: 1.25rem; line-height: 1.15; }
.person-head p { margin: .15rem 0 0; font-size: .95rem; }
.person > p { margin: 0; }
.holdings { display: grid; gap: .5rem; }
.holding-label { display: block; font-weight: 700; font-size: .92rem; }
.holding-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem .9rem; }
.person-warning { color: var(--stamp); font-weight: 700; }
.person-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .4rem; }

.radios { margin-bottom: 1rem; }
.radio { display: flex; align-items: center; gap: .6rem; min-height: 40px; }
.radio input { width: 1.3rem; height: 1.3rem; margin: 0; accent-color: var(--cobalt); }

/* ---------- settings ---------- */

.card { margin-top: 1.5rem; background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; padding: 1.25rem; max-width: 760px; }
.card p { max-width: var(--measure); margin: 0 0 .9rem; }
.card h3 { font-family: var(--display); font-weight: 800; font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.settings-form { max-width: 420px; }

/* ---------- cobalt pages (home, 404) ---------- */

.cobalt-page { background: var(--cobalt); color: var(--paper); min-height: 100vh; }
.cobalt-main { padding-top: clamp(1.5rem, 4vw, 2.5rem); padding-bottom: 4rem; }
.cobalt-title {
  margin: clamp(3rem, 10vw, 7rem) 0 0; max-width: 14ch;
  font-family: var(--display); font-weight: 900; font-stretch: 125%; letter-spacing: -0.02em;
  font-size: clamp(2.4rem, 7vw, 5rem); line-height: .95;
}
.cobalt-lede { margin: 1.5rem 0 0; max-width: var(--measure); font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--mist); }
.cobalt-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.cobalt-page :focus-visible { outline-color: var(--manila); }

/* ---------- sign-in and first-run setup (on a cobalt page) ---------- */

.auth-card {
  margin-top: 2rem; max-width: 480px;
  background: var(--paper); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink);
  padding: clamp(1.1rem, 4vw, 1.75rem);
}
.auth-card p { margin: 0 0 .9rem; }
.auth-card :focus-visible { outline-color: var(--cobalt); }
.auth-card .btn { width: 100%; }
.auth-heading:focus { outline: none; }   /* focused by script after sending, not by the keyboard */
.auth-heading { margin: 0 0 .75rem; font-family: var(--display); font-weight: 800; font-size: 1.4rem; }
.auth-terms { margin: 1.25rem 0 0 !important; font-size: .9rem; color: var(--ink-soft); }
.auth-dev { padding: .6rem .85rem; background: var(--manila); border: 2px solid var(--ink); border-radius: 10px; }
.auth-dev a { color: var(--ink); font-weight: 700; }
.cobalt-page .cobalt-title { margin-top: clamp(2rem, 7vw, 4.5rem); }

/* ---------- quick start ---------- */

.register-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.qs-looking { margin: 0; font-weight: 700; }
.qs-looking::before { content: ""; display: inline-block; width: .8rem; height: .8rem; margin-right: .6rem; border-radius: 50%; background: var(--cobalt); animation: qs-pulse 1s ease-in-out infinite alternate; vertical-align: middle; }
@keyframes qs-pulse { from { opacity: .25; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .qs-looking::before { animation: none; } }
.qs-heading { margin: 0 0 .75rem; font-family: var(--display); font-weight: 800; font-size: 1.4rem; }
.qs-heading:focus { outline: none; }
.qs-results { list-style: none; margin: 0 0 1rem; padding: 0; }
.qs-result { padding: .7rem 0; border-top: 2px dashed rgba(18, 21, 58, .3); }
.qs-result p { margin: .2rem 0 0; overflow-wrap: anywhere; }
.qs-result-head { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; }
.qs-badge { font-size: .8rem; font-weight: 700; border: 2px solid var(--ink); border-radius: 6px; padding: 0 .35rem; }
.qs-added, .qs-filled { background: var(--manila); }
.qs-missing p { color: var(--ink-soft); }
.qs-next { padding: .7rem .9rem; background: var(--mist); border-radius: 10px; }
.qs-body { margin-top: 1.25rem; }
.qs-body .btn-ink { margin-top: .25rem; }

/* ---------- plain pages (privacy notice) ---------- */

.plain-page { background: var(--manila); min-height: 100vh; }
.plain-card {
  max-width: 860px; margin: clamp(1rem, 4vw, 2.5rem) auto; padding: clamp(1.25rem, 4vw, 2.5rem);
  background: var(--paper); border: 3px solid var(--ink); border-radius: 18px;
}
@media (max-width: 600px) { .plain-card { margin: 1rem; } }
.plain-card .wordmark { color: var(--cobalt); margin-bottom: 1.5rem; }
.plain-card .wordmark:hover { color: var(--cobalt-deep); }
.plain-card .wm-hole-shape { fill: var(--paper); }
.plain-card h1 { font-family: var(--display); font-weight: 900; font-stretch: 115%; font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.02; margin: 0 0 1rem; }
.plain-card h2 { font-family: var(--display); font-weight: 800; font-stretch: 105%; font-size: 1.4rem; line-height: 1.15; margin: 2rem 0 .5rem; }
.plain-card p, .plain-card li { max-width: var(--measure); }
.table-wrap { overflow-x: auto; }
.plain-card table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 1rem; margin: 1rem 0; }
.plain-card th, .plain-card td { text-align: left; vertical-align: top; padding: .6rem .5rem; border-top: 2px solid #D9D9E3; }
.plain-back { margin-top: 2.5rem; font-weight: 700; }

/* ---------- footers and settings ---------- */

.foot-links { margin: .25rem 0 0; }
.cobalt-foot { margin-top: 3rem; color: var(--mist); }
.cobalt-foot a { color: var(--paper); }
.delete-confirm { margin-top: 1rem; padding: 1rem; border: 3px solid var(--stamp); border-radius: 14px; max-width: 520px; }
.delete-confirm p { margin: 0 0 .75rem; }
