@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Libre+Franklin:wght@600;700&display=swap');

:root {
  --bg: #f5f2ed;
  --paper: #fffdf8;
  --ink: #1b1b19;
  --muted: #74726d;
  --line: #dcd7ce;
  --yellow: #f2d85f;
  --turquoise: #67cfc5;
  --mauve: #c8a7c4;
  --red: #d98b7f;
  --shadow: 0 12px 40px rgba(38, 34, 27, .07);
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(242,216,95,.11), transparent 28rem),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, .chip { -webkit-tap-highlight-color: transparent; }

svg { width: 1em; height: 1em; stroke-width: 1.8; }

.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}
.wordmark {
  border: 0;
  background: none;
  padding: 0;
  font-family: "Libre Franklin", sans-serif;
  font-weight: 700;
  letter-spacing: -.03em;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
}
.wordmark strong {
  font-family: "Libre Franklin", sans-serif;
  font-size: 1.2rem;
  letter-spacing: -.05em;
}
.wordmark-long {
  color: var(--muted);
  font-family: Inter, system-ui, sans-serif;
  font-size: .67rem;
  font-weight: 500;
  letter-spacing: .015em;
}
nav { display: flex; gap: 8px; align-items: center; }
.nav-btn, .chip {
  border: 0;
  background: transparent;
  padding: 9px 12px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
}
.nav-btn.active, .chip.active {
  background: var(--ink);
  color: white;
}
.nav-icon-btn { display: inline-flex; align-items: center; gap: 7px; }
.nav-icon-btn svg { width: 15px; height: 15px; }
main { padding: 58px 0 100px; }
.hidden { display: none !important; }

.cycle-hero, .page-head, .section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.cycle-hero { margin-bottom: 34px; }
.cycle-overview-sticky {
  position: sticky;
  top: 82px;
  z-index: 8;
  margin: -58px 0 58px;
  padding: 58px 0 26px;
  background:
    linear-gradient(to bottom, var(--bg) 0%, var(--bg) 88%, color-mix(in srgb, var(--bg) 94%, transparent) 100%);
}
.cycle-overview-sticky::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100vw;
  height: 1px;
  transform: translateX(-50%);
  background: color-mix(in srgb, var(--line) 72%, transparent);
  opacity: .65;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-family: "Libre Franklin", sans-serif;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: .96;
  letter-spacing: -.055em;
  margin-bottom: 14px;
  max-width: 860px;
}
h2 {
  font-family: "Libre Franklin", sans-serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -.035em;
}
h3 { line-height: 1.35; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}
.muted, .lede { color: var(--muted); }
.lede { max-width: 680px; font-size: 1.05rem; line-height: 1.65; }
.round-add {
  width: 64px; height: 64px; border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--yellow);
  font-size: 2rem;
  cursor: pointer;
  flex: 0 0 auto;
  box-shadow: 4px 4px 0 var(--ink);
}
.progress-block { margin-bottom: 0; }
.progress-meta {
  display: flex; justify-content: space-between;
  font-size: .82rem; color: var(--muted); margin-bottom: 9px;
}
.progress-track { height: 7px; border-radius: 99px; background: #e6e1d8; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--turquoise), var(--yellow)); transition: width .25s ease; }

.reflection-card, .big-card, .setup-card, .settings-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.reflection-card { margin: 0 0 60px; }
.reflection-card textarea { min-height: 100px; }

.section-heading { margin: 0 0 24px; }
.section-heading.compact { align-items: center; }
.section-heading h2 { margin: 0; }
.filter-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.chip { display: inline-flex; align-items: center; gap: 7px; }
.chip svg { width: 13px; height: 13px; }

/* Timeline rail is now physically part of the dot column.
   This guarantees the vertical line passes through each dot's exact center. */
.timeline { position: relative; }
.timeline-item {
  display: grid;
  grid-template-columns: 28px 72px minmax(0, 1fr);
  column-gap: 12px;
  position: relative;
  min-height: 108px;
  margin-bottom: 18px;
}
.timeline-rail {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  min-height: 100%;
}
.timeline-rail::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -18px;
  bottom: -18px;
  width: 1px;
  background: var(--line);
  z-index: 0;
}
.timeline-item:first-child .timeline-rail::before { top: 16px; }
.timeline-item:last-child .timeline-rail::before { bottom: calc(100% - 16px); }
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 16px;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--turquoise);
  border: 5px solid var(--bg);
  z-index: 2;
}
.timeline-date {
  grid-column: 2;
  grid-row: 1;
  font-size: .78rem;
  color: var(--muted);
  padding-top: 4px;
  line-height: 1.12;
  text-align: right;
  white-space: pre-line;
}
.timeline-card {
  grid-column: 3;
  grid-row: 1;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 18px 20px 16px;
  border-radius: 15px;
  min-width: 0;
}
.entry-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 9px; }
.entry-kind {
  text-transform: uppercase; letter-spacing: .11em; font-size: .63rem;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 7px;
}
.kind-icon-slot { display: inline-grid; place-items: center; }
.kind-icon-slot svg { width: 14px; height: 14px; }
.entry-text { font-size: 1rem; margin-bottom: 7px; overflow-wrap: anywhere; }
.entry-note { color: var(--muted); font-size: .86rem; margin: 0; overflow-wrap: anywhere; }
.delete-entry, .icon-btn {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  display: inline-grid; place-items: center; padding: 5px;
}
.delete-entry svg, .icon-btn svg { width: 18px; height: 18px; }

.empty-state {
  border: 1px dashed #cfc8bd;
  border-radius: 18px;
  padding: 54px 24px;
  text-align: center;
  color: var(--muted);
}
.empty-state p { font-family: "Libre Franklin"; color: var(--ink); margin-bottom: 6px; }

.page-head { display: block; margin-bottom: 42px; }
.challenge-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; }
.lock-mark { font-size: 2.2rem; color: #9e7b9a; margin-bottom: 16px; }
.lock-mark svg { width: 40px; height: 40px; }
.big-number { font-family: "Libre Franklin"; font-size: 1.6rem; color: var(--ink); margin-top: 20px; }
.challenge-list { display: grid; gap: 12px; }
.challenge-card {
  border: 1px solid var(--line);
  border-left: 8px solid var(--mauve);
  background: var(--paper);
  border-radius: 14px;
  padding: 18px;
}
.challenge-card .meta { color: var(--muted); font-size: .74rem; margin-top: 10px; }
.microcopy { color: var(--muted); font-size: .75rem; line-height: 1.55; margin: 14px 0 0; }

/* Archive */
.archive-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}
.volume {
  min-height: 300px;
  border: 0;
  text-align: left;
  background: var(--ink);
  color: white;
  border-radius: 4px 14px 14px 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 7px 9px 0 #cec8be;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.volume:hover { transform: translateY(-3px); box-shadow: 9px 12px 0 #cec8be; }
.volume.current {
  background: var(--mauve);
  color: #1b1b19;
}
.volume-kicker {
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .66rem;
  opacity: .72;
}
.volume-range {
  display: block;
  font-family: "Libre Franklin";
  font-size: 1.3rem;
  line-height: 1.18;
  letter-spacing: -.03em;
  margin: 10px 0 16px;
}
.volume-meta { font-size: .77rem; opacity: .72; }
.volume-open { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; }
.volume-open svg { width: 14px; height: 14px; }

.archive-dialog { width: min(840px, calc(100% - 26px)); }
.archive-dialog-inner { padding: 28px; }
.archive-dialog-head { margin-bottom: 20px; }
.archive-dialog-head h2 { margin-bottom: 7px; }
.chapter-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.summary-pill {
  background: #f1ece4;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: .75rem;
  color: var(--muted);
}
.archive-timeline .timeline-dot { border-color: var(--paper); }

/* Settings */
.settings-grid {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: 24px;
  align-items: start;
}
.settings-card { min-width: 0; }
.settings-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.settings-card-head h2 { margin: 0; }
.settings-card-head > svg { width: 26px; height: 26px; color: var(--mauve); }
.settings-intro { color: var(--muted); line-height: 1.6; font-size: .9rem; margin-bottom: 20px; }
.icon-text-btn { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.icon-text-btn svg { width: 15px; height: 15px; }
.kinds-list { display: grid; gap: 10px; }
.kind-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 13px 0 3px;
}
.kind-row:first-child { border-top: 0; }
.kind-row-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: #f1ece4;
  display: grid; place-items: center;
}
.kind-row-icon svg { width: 19px; height: 19px; }
.kind-row-name { font-weight: 500; }
.kind-row-used { color: var(--muted); font-size: .74rem; margin-top: 3px; }
.kind-actions { display: flex; gap: 2px; }
.kind-action {
  width: 34px; height: 34px;
  border: 0; background: transparent; color: var(--muted);
  display: grid; place-items: center; cursor: pointer; border-radius: 50%;
}
.kind-action:hover { background: #f1ece4; color: var(--ink); }

/* Dialogs + icon picker */
.setup-view {
  min-height: calc(100vh - 180px);
  display: grid; place-items: center;
}
.setup-card { width: min(560px, 100%); }
.setup-card h1 { font-size: clamp(2.7rem, 8vw, 4.8rem); }
form { display: grid; gap: 16px; }
label { display: grid; gap: 8px; font-size: .78rem; color: var(--muted); }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 11px;
  padding: 13px 14px;
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: #8e8980; box-shadow: 0 0 0 3px rgba(120,212,204,.18); }
textarea { min-height: 120px; resize: vertical; }
.primary, .secondary {
  border-radius: 999px; padding: 12px 18px; cursor: pointer;
}
.primary { border: 1px solid var(--ink); background: var(--ink); color: #fff; }
.secondary { border: 1px solid var(--line); background: transparent; color: var(--ink); }

dialog {
  width: min(620px, calc(100% - 26px));
  max-height: calc(100vh - 30px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 90px rgba(0,0,0,.24);
}
dialog::backdrop { background: rgba(27,27,25,.34); backdrop-filter: blur(3px); }
#entryForm, #kindForm { padding: 26px; }
.dialog-head { display: flex; justify-content: space-between; gap: 20px; }
.dialog-head h2 { margin-bottom: 18px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

.icon-fieldset {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin: 0;
}
.icon-fieldset legend {
  padding: 0 7px;
  color: var(--muted);
  font-size: .78rem;
}
.icon-search { margin-bottom: 12px; }
.icon-picker {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  max-height: 225px;
  overflow: auto;
  padding: 2px;
}
.icon-choice {
  aspect-ratio: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.icon-choice:hover { background: #f3eee7; }
.icon-choice.active {
  background: var(--turquoise);
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.icon-choice svg { width: 19px; height: 19px; }
.selected-icon-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .78rem;
}
.kind-icon-preview {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #f1ece4;
  color: var(--ink);
}
.kind-icon-preview svg { width: 15px; height: 15px; }
#selectedIconName { color: var(--ink); font-weight: 500; }


.entry-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.entry-image {
  position: relative;
  overflow: hidden;
  border-radius: 11px;
  background: #ece7df;
  min-height: 120px;
}
.entry-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 120px;
  max-height: 260px;
  object-fit: cover;
}
.entry-image-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
}
.preview-image {
  position: relative;
  aspect-ratio: 1;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #eee9e1;
}
.preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.preview-image span {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(27,27,25,.72);
  color: white;
  font-size: .62rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.field-help {
  font-size: .69rem;
  line-height: 1.45;
  color: var(--muted);
}
.data-card {
  margin-top: 24px;
}
.export-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.export-status {
  margin: 0;
}
@media (max-width: 820px) {
  .settings-grid { grid-template-columns: 1fr; }
  .nav-settings-label { display: none; }
  .nav-icon-btn { padding-left: 11px; padding-right: 11px; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 22px, 1120px); }
  .topbar { min-height: 68px; align-items: center; gap: 14px; }
  .wordmark { font-size: .92rem; }
  .wordmark-long { display: none; }
  .cycle-overview-sticky {
    top: 68px;
    margin-top: -36px;
    padding-top: 36px;
    padding-bottom: 18px;
  }
  nav { gap: 1px; overflow-x: auto; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  .nav-btn { padding: 8px 8px; font-size: .74rem; }
  main { padding-top: 36px; }
  .cycle-hero { align-items: flex-start; }
  .round-add { width: 52px; height: 52px; }
  .filter-row { margin-top: 8px; justify-content: flex-start; }
  .section-heading { align-items: flex-start; flex-direction: column; }

  .timeline-item {
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 9px;
    min-height: 112px;
  }
  .timeline-rail { grid-column: 1; grid-row: 1 / span 2; }
  .timeline-date {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    padding: 0 0 5px;
    white-space: normal;
  }
  .timeline-card { grid-column: 2; grid-row: 2; }
  .timeline-dot { top: 10px; }
  .timeline-item:first-child .timeline-rail::before { top: 10px; }

  .challenge-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .archive-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .volume { min-height: 245px; padding: 18px; }
  .volume-range { font-size: 1.03rem; }
  .icon-picker { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 440px) {
  .wordmark { max-width: 105px; line-height: 1.05; text-align: left; }
  .archive-shelf { grid-template-columns: 1fr; }
}


/* =========================================================
   YoYo v0.4: auth, cloud state, username + public challenge
   ========================================================= */

.gate-view {
  min-height: 100vh;
  padding: 38px 22px;
  display: grid;
  place-items: center;
}
.gate-card {
  width: min(560px, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.gate-card h1 { font-size: clamp(2.4rem, 7vw, 4.8rem); }
.auth-layout {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 56px;
  align-items: center;
}
.auth-brand h1 { max-width: 700px; }
.auth-card { width: 100%; }
.auth-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  margin-bottom: 22px;
  background: #eee9e1;
  border-radius: 999px;
}
.auth-tab {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.auth-tab.active { background: var(--ink); color: white; }
.auth-form { gap: 15px; }
.form-message {
  min-height: 1.2em;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
  margin: 10px 0 0;
}
.form-message.error { color: #9c3d35; }
.form-message.success { color: #397e68; }
.code-note {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #f3eee7;
  line-height: 1.7;
  overflow-x: auto;
}
.onboarding-card { width: min(630px, 100%); }
.username-field {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: white;
  border-radius: 11px;
  overflow: hidden;
}
.username-field:focus-within {
  border-color: #8e8980;
  box-shadow: 0 0 0 3px rgba(120,212,204,.18);
}
.username-field span {
  padding-left: 14px;
  color: var(--muted);
}
.username-field input {
  border: 0;
  box-shadow: none !important;
  padding-left: 5px;
}
.toggle-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 11px;
  cursor: pointer;
}
.toggle-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.toggle-row span { display: grid; gap: 3px; color: var(--ink); }
.toggle-row small { color: var(--muted); line-height: 1.4; }
.account-card {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.account-card h2 { margin: 0; font-size: 1rem; }

.challenge-owner-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 28px;
}
.copy-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.copy-link-row input {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.challenge-card .challenge-actions {
  display: flex;
  gap: 5px;
  margin-top: 12px;
}
.challenge-state {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1ece4;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
}
.entry-image-loading {
  display: grid;
  place-items: center;
  min-height: 120px;
  color: var(--muted);
  font-size: .72rem;
}
.sync-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .72rem;
}
.sync-note svg { width: 13px; height: 13px; }

/* Public challenge page */
.public-challenge-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(242,216,95,.14), transparent 28rem),
    var(--bg);
}
.public-challenge-shell {
  width: min(720px, calc(100% - 30px));
  margin: 0 auto;
  padding: 34px 0 80px;
}
.public-wordmark {
  display: inline-flex;
  gap: 9px;
  align-items: baseline;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 64px;
}
.public-wordmark strong {
  font-family: "Libre Franklin", sans-serif;
  font-size: 1.2rem;
  letter-spacing: -.05em;
}
.public-wordmark span {
  color: var(--muted);
  font-size: .68rem;
}
.public-challenge-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(26px, 6vw, 54px);
  box-shadow: var(--shadow);
}
.public-challenge-card h1 {
  font-size: clamp(2.7rem, 9vw, 5.6rem);
  margin-bottom: 20px;
}
.public-form { margin-top: 34px; }
.optional { font-weight: 400; color: var(--muted); }
.sealed-mark {
  width: 72px;
  height: 72px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 34px;
  background: var(--mauve);
  box-shadow: 4px 4px 0 var(--ink);
}
.sealed-mark svg { width: 28px; height: 28px; }
.success-mark { background: var(--turquoise); }

button:disabled {
  opacity: .55;
  cursor: wait;
}

@media (max-width: 820px) {
  .auth-layout { grid-template-columns: 1fr; gap: 28px; }
  .auth-brand { text-align: left; }
  .challenge-owner-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .gate-view { padding: 20px 12px; align-items: start; }
  .gate-card { padding: 24px; margin-top: 28px; }
  .copy-link-row { grid-template-columns: 1fr; }
  .copy-link-row .secondary { justify-content: center; }
  .account-card { align-items: flex-start; flex-direction: column; }
  .public-wordmark span { display: none; }
}
