/* Wishy styles. Big type, big targets: built for a 5-year-old and a 99-year-old. */

/* Theme tokens */
:root {
  --bg1: #0d3b2c; --bg2: #145a41; --on-bg: #fff8ec; --on-bg-soft: #cfe8da;
  --paper: #fffaf0; --paper-line: #e9dcc4; --margin: #f3b6b6;
  --ink: #2b2118; --ink-soft: #6f6253;
  --accent: #d7263d; --accent-ink: #fff; --accent2: #f4c430; --ring: #f4c430;
  --card: #ffffff; --shadow: 0 10px 30px rgba(0,0,0,.25);
}
/* Theme colors are set on <body> by applyTheme() in common.js (THEME_INFO). The block above is just the first paint.
   data-tone="light" marks pale backgrounds, where see-through white controls need to be more solid. */

/* Base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; font-family: 'Fredoka', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  font-size: 20px; line-height: 1.4; color: var(--on-bg);
  background: var(--bg1);
  overflow-x: hidden;
}
body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: linear-gradient(170deg, var(--bg1), var(--bg2)); }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
.wrap { max-width: 640px; margin: 0 auto; padding: 20px 16px 120px; position: relative; z-index: 1; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.top { text-align: center; padding: 8px 0 18px; }
.top .family { font-size: 17px; color: var(--on-bg-soft); letter-spacing: .02em; }
.top h1 { margin: 2px 0 0; font-size: clamp(32px, 8vw, 46px); line-height: 1.1; font-weight: 700; }
.brand { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; text-decoration: none; color: var(--on-bg-soft); font-size: 16px; }

h2 { font-size: 28px; margin: 6px 0 16px; text-align: center; font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 12px 26px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 22px;
  box-shadow: 0 5px 0 rgba(0,0,0,.18); transition: transform .08s, box-shadow .08s; text-decoration: none;
}
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.btn.big { width: 100%; min-height: 72px; font-size: 26px; }
.btn.soft { background: rgba(255,255,255,.16); color: var(--on-bg); box-shadow: none; border: 2px solid rgba(255,255,255,.35); }
body[data-tone="light"] .btn.soft { background: rgba(255,255,255,.6); border-color: rgba(42,31,61,.15); }
.btn.plain { background: transparent; color: var(--ink-soft); box-shadow: none; min-height: 48px; padding: 8px 14px; font-size: 18px; }
.btn.small { min-height: 46px; padding: 8px 18px; font-size: 18px; }
.btn:focus-visible, .tile:focus-visible, input:focus-visible, textarea:focus-visible { outline: 4px solid var(--ring); outline-offset: 3px; }
.btn[disabled] { opacity: .5; cursor: default; }
.back { background: none; border: 0; color: var(--on-bg-soft); font-size: 18px; padding: 10px 4px; cursor: pointer; }

/* Name tiles (who are you?) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.tile {
  background: var(--card); color: var(--ink); border: 0; border-radius: 26px; padding: 18px 10px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; box-shadow: var(--shadow);
  transition: transform .12s; font-size: 22px; font-weight: 600; min-height: 160px; justify-content: center;
}
.tile:hover { transform: translateY(-3px) rotate(-1deg); }
.tile:active { transform: scale(.96); }
.tile .av { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 48px; }
.tile .count { font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.tile.new { background: transparent; color: var(--on-bg); border: 3px dashed rgba(255,255,255,.5); box-shadow: none; }
body[data-tone="light"] .tile.new { border-color: rgba(42,31,61,.3); }
.tile.new .av { background: rgba(255,255,255,.18); }

.av { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; flex: none; }

/* Cards and forms */
.card { background: var(--card); color: var(--ink); border-radius: 26px; padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card h3 { margin: 0 0 12px; font-size: 22px; }
.card p { margin: 0 0 12px; color: var(--ink-soft); font-size: 18px; }
label.lbl { display: block; font-weight: 600; margin: 0 0 8px; font-size: 20px; color: var(--ink); }
.field {
  width: 100%; min-height: 64px; padding: 14px 18px; border-radius: 18px; border: 3px solid var(--paper-line);
  background: #fff; color: var(--ink); font-size: 22px;
}
.field:focus { border-color: var(--ring); outline: none; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1 1 180px; }
.stack > * + * { margin-top: 16px; }

/* Emoji picker */
.emojis { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
.emojis button {
  aspect-ratio: 1; border-radius: 18px; border: 3px solid transparent; background: #f5f1ea; font-size: 36px; cursor: pointer;
}
.emojis button[aria-pressed="true"] { border-color: var(--accent); background: #fff; transform: scale(1.08); }

/* Theme picker */
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.themes.many { grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 8px; }
.themes.many button { padding: 7px 0; font-size: 12px; line-height: 1.15; gap: 5px; border-radius: 16px; min-width: 0; letter-spacing: -.01em; }
.themes.many button .sw { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
/* "Something else" (custom) gets its own full-width row, so the presets above stay a tidy grid however many there are. */
.themes.many button[data-k="custom"] { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 12px; font-size: 16px; padding: 8px 12px; }
.themes.many button[data-k="custom"] .sw { width: 36px; height: 36px; font-size: 20px; }
.customlook { margin-top: 12px; padding: 14px; border-radius: 18px; background: #f6f1e8; }
.customlook > * + * { margin-top: 12px; }
.colorpick { flex: 1 1 140px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; color: var(--ink); cursor: pointer; }
.colorpick input { width: 56px; height: 44px; border: 3px solid #fff; border-radius: 12px; padding: 0; background: none; cursor: pointer; box-shadow: 0 0 0 1px var(--paper-line); }
.colorpick input::-webkit-color-swatch-wrapper { padding: 0; }
.colorpick input::-webkit-color-swatch { border: 0; border-radius: 9px; }
.customlook .field { min-height: 52px; font-size: 22px; }
.lbl.sm { font-weight: 600; font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.lbl .opt, .opt { font-weight: 400; color: var(--ink-soft); font-size: 16px; }
div.lbl { display: block; font-weight: 600; margin: 0 0 8px; font-size: 20px; color: var(--ink); }
.themes button {
  border: 3px solid var(--paper-line); background: #fff; border-radius: 20px; padding: 14px 6px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 17px; font-weight: 600; color: var(--ink);
}
.themes button span { font-size: 38px; }
.themes button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }

/* The paper list */
.listhead { display: flex; align-items: center; gap: 14px; margin: 6px 0 14px; }
.listhead .av { width: 70px; height: 70px; font-size: 42px; border: 4px solid rgba(255,255,255,.7); }
.listhead h2 { margin: 0; text-align: left; font-size: 30px; line-height: 1.1; }
.listhead .sub { color: var(--on-bg-soft); font-size: 17px; }

/* Ruled paper. Everything is measured in --line: each row of text is exactly one --line tall,
   so a wish that wraps onto two rows still sits on the rules. --drop is how far below the
   row's top edge the rule is drawn, tuned so the handwriting rests just above it. */
.paper {
  --line: 54px; --pad: 14px; --gutter: 62px; --rule: 46px; --drop: 44px; --size: 28px;
  background-color: var(--paper); color: var(--ink); border-radius: 18px; box-shadow: var(--shadow);
  padding: var(--pad) 12px var(--pad) var(--gutter); position: relative;
  min-height: calc(var(--line) * 4 + var(--pad) * 2);
  background-image:
    linear-gradient(to right, transparent var(--rule), var(--margin) var(--rule), var(--margin) calc(var(--rule) + 2px), transparent calc(var(--rule) + 2px)),
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--line) - 2px), var(--paper-line) calc(var(--line) - 2px), var(--paper-line) var(--line));
  background-position: 0 0, 0 calc(var(--pad) + var(--drop) - var(--line));
  overflow: hidden;
}
.paper ol { list-style: none; margin: 0; padding: 0; counter-reset: wish; }
.paper li {
  counter-increment: wish; position: relative; display: flex; align-items: flex-start; gap: 6px;
  font-family: 'Patrick Hand', 'Fredoka', cursive; font-size: var(--size); line-height: var(--line); min-height: var(--line);
}
.paper li::before {
  content: counter(wish); position: absolute; left: calc(8px - var(--gutter)); width: calc(var(--rule) - 16px); text-align: right;
  font-family: 'Fredoka', sans-serif; font-size: calc(var(--size) * .62); font-weight: 600; color: var(--ink-soft); line-height: var(--line);
}
.paper li .t { flex: 1; min-width: 0; overflow-wrap: anywhere; cursor: text; border-radius: 8px; padding: 0 4px; }
.paper li .t:focus { outline: 3px dashed var(--ring); outline-offset: -3px; background: #fff; }
.paper li .t a { color: var(--accent2); }
.paper li .x {
  flex: none; width: 44px; height: 44px; margin-top: calc((var(--line) - 44px) / 2); border-radius: 50%; border: 0;
  background: transparent; color: #b9ab98; font-size: 24px; line-height: 1; cursor: pointer;
}
.paper li .x:hover, .paper li .x:focus-visible { background: #f3e9da; color: var(--accent); }
.paper .empty { font-family: 'Patrick Hand', cursive; font-size: calc(var(--size) * .93); line-height: var(--line); color: var(--ink-soft); }
.paper li.pop { animation: pop .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { from { transform: scale(.6) translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.paper.small { --line: 40px; --pad: 10px; --gutter: 50px; --rule: 36px; --drop: 33px; --size: 22px; min-height: 0; }
.paper.small li .x { width: 36px; height: 36px; margin-top: 2px; font-size: 20px; }

/* The add bar sits at the bottom of the screen on phones so the keyboard pushes it up */
.adder {
  position: sticky; bottom: 0; margin: 16px -16px 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg2) 75%, transparent); z-index: 5;
}
.adder .box { display: flex; gap: 10px; align-items: flex-end; background: #fff; border-radius: 26px; padding: 8px; box-shadow: var(--shadow); }
.adder textarea {
  flex: 1; border: 0; resize: none; background: transparent; color: var(--ink); font-size: 24px; padding: 12px 10px;
  min-height: 56px; max-height: 180px; outline: none; font-family: 'Patrick Hand', 'Fredoka', cursive;
}
.adder .mic, .adder .add {
  flex: none; height: 56px; min-width: 56px; border-radius: 20px; border: 0; cursor: pointer; font-size: 26px;
}
.adder .mic { background: #f2ece2; }
.adder .mic.on { background: var(--accent); animation: pulse 1s infinite; }
.adder .add { background: var(--accent); color: var(--accent-ink); padding: 0 18px; font-weight: 700; font-size: 22px; }
.adder .hint { text-align: center; font-size: 15px; color: var(--on-bg-soft); margin-top: 8px; }
@keyframes pulse { 50% { transform: scale(1.08); } }

/* Banners, toasts */
.banner { background: rgba(255,255,255,.15); border-radius: 18px; padding: 14px 18px; text-align: center; margin-bottom: 16px; font-size: 18px; }
body[data-tone="light"] .banner { background: rgba(255,255,255,.6); }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: #222; color: #fff;
  padding: 14px 18px; border-radius: 18px; font-size: 18px; display: flex; gap: 14px; align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .25s; z-index: 50; max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); }
.toast button { background: #fff; color: #222; border: 0; border-radius: 999px; padding: 8px 16px; font-weight: 700; cursor: pointer; font-size: 17px; }

/* Everyone view + history */
.person { margin-bottom: 18px; }
.person .who { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-size: 24px; font-weight: 600; }
.person .who .av { width: 48px; height: 48px; font-size: 28px; }
.person .who .edit { margin-left: auto; }
.years { margin-top: 34px; }
.years h3 { text-align: center; font-size: 22px; color: var(--on-bg-soft); font-weight: 500; margin-bottom: 14px; }
details.year { background: rgba(255,255,255,.1); border-radius: 18px; margin-bottom: 10px; padding: 6px 14px; }
body[data-tone="light"] details.year { background: rgba(255,255,255,.55); }
details.year summary { cursor: pointer; font-size: 20px; font-weight: 600; padding: 10px 0; list-style: none; }
details.year summary::-webkit-details-marker { display: none; }
details.year summary::before { content: '📜 '; }
details.year .paper { margin: 6px 0 12px; }

/* Done celebration */
.done { text-align: center; padding: 40px 0; }
.done .cheer { font-size: 110px; animation: bounce 1.2s infinite; }
@keyframes bounce { 50% { transform: translateY(-14px) rotate(4deg); } }

/* Falling/rising decorations */
.decor { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.decor i { position: absolute; top: -40px; font-style: normal; opacity: .8; animation: fall linear infinite; }
.decor.rise i { top: auto; bottom: -60px; animation-name: rise; }
@keyframes fall { to { transform: translate(var(--dx, 20px), 110vh) rotate(360deg); } }
@keyframes rise { to { transform: translate(var(--dx, 20px), -115vh); } }
.burst { position: fixed; pointer-events: none; z-index: 60; font-size: 26px; animation: burst .9s ease-out forwards; }
@keyframes burst { to { transform: translate(var(--bx), var(--by)) scale(.4) rotate(var(--br)); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .decor, .burst { display: none; }
  .paper li.pop, .done .cheer, .adder .mic.on { animation: none; }
}

/* Organizer page */
.linkbox { display: flex; gap: 8px; align-items: center; background: #f6f1e8; border-radius: 16px; padding: 10px 14px; font-size: 16px; word-break: break-all; color: var(--ink); }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 6px; }
.tabs button { flex: none; border: 0; border-radius: 999px; padding: 10px 18px; background: rgba(255,255,255,.16); color: var(--on-bg); cursor: pointer; font-size: 17px; font-weight: 600; }
body[data-tone="light"] .tabs button { background: rgba(255,255,255,.6); }
.tabs button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.pill { display: inline-block; font-size: 14px; padding: 3px 10px; border-radius: 999px; background: #eee5d6; color: var(--ink-soft); font-weight: 600; vertical-align: middle; }
.pill.open { background: #d3f5df; color: #1d6b3a; }
.kidrow { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 2px solid #f3ece0; }
.kidrow:last-child { border-bottom: 0; }
.kidrow input { flex: 1; min-height: 50px; font-size: 20px; }
.lane { display: grid; gap: 12px; }
.lane .yr { font-weight: 700; color: var(--ink-soft); font-size: 16px; margin: 6px 0 4px; }
.lane ul { margin: 0; padding-left: 22px; font-family: 'Patrick Hand', cursive; font-size: 22px; }

/* Gift claims (buyers page + organizer page). Each control rests on its row's rule like the handwriting does:
   26px tall, ending 2px above the rule (the rule's top edge is --drop - 2px below the row's top). */
.claim, .claimed, .chip {
  flex: none; align-self: flex-start; height: 26px; margin-top: calc(var(--drop, 33px) - 30px); padding: 0 10px; border-radius: 999px;
  font-family: 'Fredoka', sans-serif; font-size: 14px; font-weight: 600; line-height: 26px; white-space: nowrap; max-width: 46%;
  overflow: hidden; text-overflow: ellipsis;
}
.claim { border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.claim.mine { background: #d3f5df; color: #1d6b3a; }
.claimed { background: #eee5d6; color: var(--ink-soft); }
.chip { border: 0; background: #d3f5df; color: #1d6b3a; cursor: pointer; }
.chip.ghost { background: transparent; color: #b9ab98; box-shadow: inset 0 0 0 2px #e4d8c4; }
.paper li.taken .t { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.paper li .t.gone::after { content: ' (taken off the list)'; font-family: 'Fredoka', sans-serif; font-size: 13px; color: var(--accent); text-decoration: none; display: inline-block; }
.claimbox { background: #f6f1e8; border-radius: 18px; padding: 14px; margin-top: 10px; }
.claimbox .field { min-height: 52px; font-size: 19px; padding: 10px 14px; }
.spent { background: #eefaf2; border-radius: 16px; padding: 12px 16px; margin-bottom: 14px; color: #1d6b3a; font-weight: 600; }
.spent small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 15px; }
.pick { border: 3px solid var(--paper-line); background: #fff; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: 17px; font-weight: 600; color: var(--ink); }
.pick[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, #fff); }

/* Secret code pad */
.codepad { max-width: 380px; margin: 0 auto; }
.dots { display: flex; justify-content: center; gap: 14px; margin: 18px 0 22px; }
.dots span {
  width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; font-size: 34px; font-weight: 700;
  background: rgba(255,255,255,.14); border: 3px dashed rgba(255,255,255,.45); color: var(--ink);
}
.dots span.on { background: #fff; border-style: solid; border-color: var(--accent2); }
.card .dots span { background: #f5f1ea; border-color: #d9cdb8; }
.card .dots span.on { background: #fff; border-color: var(--accent); }
body[data-tone="light"] .dots span { background: rgba(255,255,255,.55); border-color: rgba(42,31,61,.3); }
.dots.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.pad { display: grid; gap: 12px; }
.pad.pics { grid-template-columns: repeat(4, 1fr); }
.pad.nums { grid-template-columns: repeat(3, 1fr); }
.key {
  aspect-ratio: 1; min-height: 64px; border: 0; border-radius: 22px; background: #fff; color: var(--ink); cursor: pointer;
  font-size: 40px; font-weight: 600; box-shadow: 0 5px 0 rgba(0,0,0,.18); transition: transform .06s;
}
.pad.nums .key { aspect-ratio: 1.5; font-size: 34px; }
.key:active { transform: translateY(3px) scale(.97); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.key:focus-visible { outline: 4px solid var(--ring); outline-offset: 2px; }
.key.util { background: rgba(255,255,255,.2); color: var(--on-bg); box-shadow: none; font-size: 28px; aspect-ratio: auto; min-height: 56px; padding: 0 26px; margin-top: 12px; }
.pad.nums .key.util { margin-top: 0; aspect-ratio: 1.5; padding: 0; }
.card .key { background: #f5f1ea; }
.card .key.util { background: #eee5d6; color: var(--ink); }
body[data-tone="light"] .key.util { background: rgba(255,255,255,.6); }
.codesub { text-align: center; font-size: 21px; color: var(--on-bg-soft); margin: -6px 0 0; }
.codewho { display: flex; justify-content: center; margin: 4px 0 10px; }
.codewho .av { width: 96px; height: 96px; font-size: 56px; border: 4px solid rgba(255,255,255,.7); }
.tile .lockbadge { font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.switch { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; background: #f6f1e8; border: 3px solid transparent; border-radius: 18px; padding: 14px 16px; cursor: pointer; color: var(--ink); font-size: 19px; font-weight: 600; margin-top: 14px; }
.switch small { display: block; font-weight: 400; font-size: 15px; color: var(--ink-soft); }
.switch i { flex: none; width: 54px; height: 32px; border-radius: 999px; background: #cfc4b2; position: relative; transition: background .15s; }
.switch i::after { content: ''; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch[aria-pressed="true"] i { background: #2f9e5b; }
.switch[aria-pressed="true"] i::after { left: 26px; }
.themes.three button span { font-size: 32px; }

/* Sharing mode picker, drag-to-sort */
.themes.two { grid-template-columns: 1fr 1fr; }
.themes button small { font-weight: 400; font-size: 14px; color: var(--ink-soft); text-align: center; line-height: 1.2; }
.kidrow b { font-size: 20px; overflow-wrap: anywhere; }
.kidrow { flex-wrap: wrap; }
.sortlist .kidrow { flex-wrap: nowrap; background: var(--card); }
.grip {
  flex: none; width: 44px; height: 52px; border: 0; background: transparent; color: var(--ink-soft); font-size: 28px; line-height: 1;
  cursor: grab; touch-action: none; border-radius: 12px; user-select: none; -webkit-user-select: none;
}
.grip:hover, .grip:focus-visible { background: #f3ece0; outline: none; }
.kidrow.dragging { background: #fff6dd; border-radius: 16px; box-shadow: 0 8px 22px rgba(0,0,0,.18); position: relative; z-index: 2; }
.kidrow.dragging .grip { cursor: grabbing; }
.sortlist .kidrow input { min-width: 0; }

/* Home */
.hero { text-align: center; padding: 30px 0 18px; }
.hero.compact { padding: 10px 0 14px; }
.hero.compact .logo { font-size: 48px; }
.hero.compact h1 { margin: 0 0 4px; }
.hero.compact p { font-size: 19px; }
.hero .logo { font-size: 72px; }
.hero h1 { font-size: clamp(38px, 10vw, 56px); margin: 6px 0 8px; line-height: 1.05; }
.hero p { font-size: 21px; color: var(--on-bg-soft); margin: 0 auto; max-width: 30em; }
.steps { display: grid; gap: 12px; margin: 24px 0; }
.steps div { display: flex; gap: 14px; align-items: center; background: rgba(255,255,255,.12); border-radius: 18px; padding: 14px 18px; font-size: 19px; }
.steps b { font-size: 30px; }
.steps.small { gap: 8px; margin: 8px 0 0; }
.steps.small div { font-size: 17px; padding: 10px 14px; }
.steps.small b { font-size: 22px; }
.deadline { background: #fff6dd; border-radius: 16px; padding: 12px 14px; margin: 0 0 14px; color: var(--ink); }
.deadline input[type="datetime-local"] { min-height: 50px; font-size: 18px; flex: 1 1 220px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chips span { background: #f3ece0; border-radius: 999px; padding: 6px 8px 6px 14px; font-size: 18px; display: inline-flex; gap: 6px; align-items: center; }
.chips button { border: 0; background: #fff; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; }
.footer { text-align: center; font-size: 15px; color: var(--on-bg-soft); margin-top: 30px; }

/* Organizer page sections: four big, equal buttons that fit a phone without scrolling sideways. */
.nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 16px; padding: 6px; border-radius: 22px; background: rgba(0,0,0,.18); }
body[data-tone="light"] .nav { background: rgba(255,255,255,.45); }
.nav button {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 60px; padding: 8px 2px; border: 0; border-radius: 16px;
  background: transparent; color: var(--on-bg); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.nav button span { font-size: 22px; line-height: 1; }
.nav button[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.nav button:focus-visible { outline: 4px solid var(--ring); outline-offset: 2px; }
.nav button { position: relative; }
.navdot { position: absolute; top: 4px; right: 10%; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #e03131; color: #fff; font-size: 13px; line-height: 22px; text-align: center; }
.card.alert { box-shadow: var(--shadow), inset 0 0 0 4px #f59f00; }
.sharebox { margin-top: 22px; }

@media print {
  body { background: #fff !important; color: #000; }
  .decor, .adder, .noprint, .toast { display: none !important; }
  .card, .paper { box-shadow: none; }
}
