/* Carry On. Fonts are served from here so nothing loads from elsewhere. */
@font-face { font-family: 'Figtree'; src: url(../fonts/figtree.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url(../fonts/barlow-condensed-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url(../fonts/barlow-condensed-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #f2ede4;
  --paper: #fffcf6;
  --ink: #1c2230;
  --muted: #5e6470;
  --line: #e0d8c8;
  --accent: #c2412a;
  --accent-ink: #ffffff;
  --accent-soft: #f9e2d8;
  --ok: #24744a;
  --ok-soft: #dcefe2;
  --sky: #285a8c;
  --chip: #ebe3d3;
  --kraft: #f1deb7;
  --kraft-ink: #3b2c12;
  --kraft-line: #d8bf8c;
  --red: #c2412a;
  --amber: #c98a12;
  --green: #24744a;
  --shadow: 0 1px 2px rgba(28, 34, 48, .06), 0 6px 18px rgba(28, 34, 48, .07);
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif-condensed, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151b;
    --paper: #1b2029;
    --ink: #ece7dc;
    --muted: #a0a6b1;
    --line: #2c333f;
    --accent: #ff7d57;
    --accent-ink: #1d0d06;
    --accent-soft: #3b2219;
    --ok: #62c98f;
    --ok-soft: #1b3426;
    --sky: #8dbcef;
    --chip: #262c37;
    --kraft: #2b2519;
    --kraft-ink: #f0e2c2;
    --kraft-line: #4a3f28;
    --red: #ff7d57;
    --amber: #f0b43c;
    --green: #62c98f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 16px/1.45 var(--body);
  -webkit-tap-highlight-color: transparent;
}
main { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 8px 16px 32px; }
main:focus, main:focus-visible { outline: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
h1 { font: 700 34px/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; }
h2 { font: 700 22px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
h3 { font: 700 18px/1.2 var(--display); text-transform: uppercase; letter-spacing: .03em; margin: 18px 0 8px; }
h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 12px 0 6px; }
p { margin: 0 0 10px; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.err { color: var(--red); font-weight: 600; }
.err:empty { display: none; }
.pad { padding: 10px 14px; margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 4px;
  max-width: 720px; width: 100%; margin: 0 auto;
  padding: calc(8px + env(safe-area-inset-top)) 10px 8px 16px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 9px; margin-right: auto; text-decoration: none; }
.brand span { font: 700 25px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px;
  background: none; color: var(--ink); cursor: pointer; text-decoration: none; font-size: 22px;
}
.icon-btn svg { width: 24px; height: 24px; }
.icon-btn:hover { background: var(--chip); }
.icon-btn.small { width: 36px; height: 36px; }
.icon-btn.small svg { width: 20px; height: 20px; }
.icon-btn:disabled { opacity: .4; cursor: default; }
.icon-btn.spin svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cloud .dot { position: absolute; right: 7px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px var(--bg); }
.cloud[data-s="busy"] .dot { background: var(--amber); animation: pulse .8s ease-in-out infinite alternate; }
.cloud[data-s="tap"] .dot, .cloud[data-s="error"] .dot { background: var(--red); }
@keyframes pulse { to { opacity: .35; } }

/* ---------- buttons, fields, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--paper); color: var(--ink); font-weight: 650; text-decoration: none; cursor: pointer;
  text-align: center;
}
.btn:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.big { min-height: 52px; font-size: 17px; padding: 0 20px; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn.danger { border-color: var(--red); color: var(--red); background: none; }
.btn.danger-quiet { border-color: transparent; color: var(--red); background: none; }
.btn.file { position: relative; overflow: hidden; }
.btn.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.stack { display: grid; gap: 8px; }
.actions { margin-top: 8px; }
.actions .btn { width: 100%; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > span, .field > label, .field .label { font-weight: 650; font-size: 15px; }
input[type="text"], input[type="search"], input[type="date"], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper);
}
input[type="date"] { min-width: 0; height: 46px; appearance: none; -webkit-appearance: none; }
textarea { resize: vertical; line-height: 1.4; }
select { appearance: none; -webkit-appearance: none; padding-right: 34px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 18px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sky) 25%, transparent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; font-weight: 600; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper);
  font-size: 15px; font-weight: 600; cursor: pointer; color: var(--ink);
}
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip.add { border-style: dashed; color: var(--muted); }
ul.chips .chip { cursor: default; }
ul.chips .chip.on { background: var(--paper); color: var(--ink); border-color: var(--line); align-items: flex-start; padding: 6px 12px; border-radius: 14px; }
ul.chips .chip.on > span:last-child { display: grid; line-height: 1.2; }
ul.chips .chip small { font-weight: 500; color: var(--muted); font-size: 13px; }

.seg { display: flex; padding: 3px; gap: 3px; border-radius: 12px; background: var(--chip); }
.seg button {
  flex: 1; min-height: 40px; padding: 0 8px; border: 0; border-radius: 9px; background: none;
  font-weight: 650; cursor: pointer; color: var(--muted); white-space: nowrap;
}
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.seg.tiny button { min-height: 32px; font-size: 14px; padding: 0 10px; }

.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; margin: 0; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; transition: background .15s; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { transform: translateX(16px); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px; margin: 0 0 14px; box-shadow: var(--shadow); }
.card h2 { margin-bottom: 8px; }
.card.empty { text-align: center; padding: 28px 18px; }
.card.empty .btn { margin-top: 6px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 16px; }
.crumb { display: inline-flex; align-items: center; gap: 2px; margin: 4px 0 10px -6px; padding: 6px; font-weight: 650; color: var(--muted); text-decoration: none; }
.crumb svg { width: 18px; height: 18px; }
.lede { font-size: 17px; }
.hint { margin: -4px 0 12px; }
.danger-zone { margin: 26px 0 0; text-align: center; }

/* ---------- welcome ---------- */
.welcome { padding: 14px 0 0; }
.kicker { font: 700 15px var(--display); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin-bottom: 6px; }
.welcome h1 { font-size: 44px; margin-bottom: 14px; }
.welcome .how { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 10px; }
.welcome .how li { padding: 12px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.choices { display: grid; gap: 10px; margin-bottom: 12px; }

/* ---------- trips: luggage tags ---------- */
.tags { display: grid; gap: 14px; margin-bottom: 24px; }
.tag-card {
  position: relative; display: grid; gap: 2px; padding: 16px 18px 16px 58px;
  background: var(--kraft); color: var(--kraft-ink); text-decoration: none;
  border-radius: 6px 14px 14px 6px; box-shadow: var(--shadow);
  clip-path: polygon(26px 0, 100% 0, 100% 100%, 26px 100%, 0 calc(100% - 26px), 0 26px);
}
.tag-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 42px; border-right: 2px dashed var(--kraft-line); }
.tag-card .hole { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 3px var(--kraft-line); }
.tag-card .when { font: 700 14px var(--display); text-transform: uppercase; letter-spacing: .1em; opacity: .75; }
.tag-card.now .when { color: var(--accent); opacity: 1; }
.tag-card h2 { font-size: 34px; line-height: 1; margin: 2px 0; overflow-wrap: anywhere; }
.tag-card .where:empty { display: none; }
.tag-card .where, .tag-card .dates, .tag-card .glance { font-size: 15px; }
.tag-card .dates { font-weight: 600; }
.tag-card .meter { margin: 10px 0 4px; background: color-mix(in srgb, var(--kraft-ink) 14%, transparent); }
.tag-card .packed { font-size: 14px; font-weight: 600; }
.meter { display: block; height: 6px; border-radius: 99px; background: var(--chip); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--ok); transition: width .25s; }

.past h2 { margin: 6px 0 8px; font-size: 18px; color: var(--muted); }
.past ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.past li { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.past li > a:first-child { flex: 1; display: grid; padding: 10px 2px; text-decoration: none; }
.past .again { font-size: 14px; font-weight: 650; color: var(--accent); text-decoration: none; padding: 8px; }

/* ---------- one trip: the boarding pass ---------- */
.pass { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.pass-top { display: flex; align-items: flex-start; gap: 8px; padding: 16px 10px 14px 18px; border-bottom: 2px dashed var(--line); }
.pass-top > div { flex: 1; min-width: 0; }
.pass h1 { font-size: 46px; line-height: .95; overflow-wrap: anywhere; }
.pass .sub { margin: 4px 0 0; color: var(--muted); font-weight: 600; }
/* The notches either side of the tear line. */
.pass-row { position: relative; display: grid; grid-template-columns: 1.3fr 1.3fr .7fr 1fr; gap: 8px; margin: 0; padding: 12px 18px 14px; }
.pass-row::before, .pass-row::after { content: ''; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.pass-row::before { left: -11px; }
.pass-row::after { right: -11px; }
.pass-row dt { font: 700 12px var(--display); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.pass-row dd { margin: 0; font-weight: 650; font-size: 15px; }

.wx { margin-bottom: 14px; }
.wx-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.wx-head h2 { font-size: 18px; margin-right: auto; }
.wx-days { display: flex; gap: 6px; margin: 0 -16px 6px; padding: 0 16px 4px; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.wx-days li { flex: 0 0 auto; display: grid; justify-items: center; gap: 1px; min-width: 54px; padding: 8px 4px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.wx-days li.typ { border-style: dashed; background: none; }
.wx-days .wd { font: 700 13px var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.wx-days .wi { font-size: 22px; line-height: 1.2; }
.wx-days .hi { font-weight: 700; }
.wx-days .lo { color: var(--muted); font-size: 14px; }
.wx-days .rp { color: var(--sky); font-size: 12px; font-weight: 700; min-height: 15px; }
.wx.none { padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--line); }
.wx.none p { margin: 0; }

.needs { margin-bottom: 16px; }
.needs-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.needs-head h2 { font-size: 18px; }

.mode { margin-bottom: 12px; }
.progress { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; margin-bottom: 14px; }
.progress .meter { grid-column: 1 / -1; height: 8px; }
.progress p { margin: 0; }

/* ---------- bags ---------- */
.bag { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.bag-head { display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 14px; border-bottom: 1px solid var(--line); }
.bag-icon { font-size: 24px; line-height: 1; }
.bag-head h2 { flex: 1; min-width: 0; font-size: 20px; overflow-wrap: anywhere; }
.bag-cond { font-size: 15px; }
.count { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.count.all { color: var(--ok); }
.count svg { width: 16px; height: 16px; }
.bag-note { margin: 0; padding: 8px 14px 0; font-size: 14px; color: var(--muted); }
.bag.all { background: color-mix(in srgb, var(--ok-soft) 45%, var(--paper)); }
.bag.jobs { border-style: dashed; box-shadow: none; }
.bag-done { display: block; width: 100%; padding: 12px 14px; border: 0; background: none; text-align: left; font-weight: 650; color: var(--ok); cursor: pointer; }

.rows { list-style: none; margin: 0; padding: 4px 0; }
.row { display: flex; align-items: center; min-height: 52px; }
.row + .row { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.tick, .edit-row {
  flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 52px;
  padding: 8px 6px 8px 14px; border: 0; background: none; text-align: left; cursor: pointer;
}
.edit-row { display: grid; gap: 1px; padding-right: 14px; }
.tick .box {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--ink) 35%, transparent); color: transparent; transition: background .12s, border-color .12s, transform .12s;
}
.tick .box svg { width: 17px; height: 17px; }
.tick:active .box { transform: scale(.9); }
.what { display: grid; gap: 1px; min-width: 0; }
.name { font-weight: 600; overflow-wrap: anywhere; }
.qty { font-weight: 700; color: var(--accent); }
.what small, .edit-row small { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.what small.why, .edit-row small.why { color: var(--sky); }
.row.done .box { background: var(--ok); border-color: var(--ok); color: var(--paper); }
.row.done .name { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.row.done .qty { color: var(--muted); }
.row.gone .box { background: var(--muted); border-color: var(--muted); }
.row .more { color: var(--muted); }
.left-row { padding: 6px 12px 6px 14px; gap: 10px; }
.left-row .what { flex: 1; }

.add-extra { width: 100%; margin: 2px 0 14px; border-style: dashed; background: none; }
.left { margin-top: 18px; border-top: 1px solid var(--line); }
.left-head { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 2px; border: 0; background: none; cursor: pointer; }
.left-head h2 { font-size: 18px; color: var(--muted); }
.left .rows { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }

/* ---------- my list ---------- */
.bag.edit .bag-head { padding-right: 10px; }
.kind-head { margin: 24px 0 10px; font-size: 18px; color: var(--muted); }
.conds { color: var(--sky); }
.add-row { display: flex; gap: 8px; padding: 8px 10px 12px 14px; border-top: 1px solid var(--line); }
.add-row input { min-height: 40px; padding: 8px 10px; }
.cond-pick { margin: 0 0 12px; }
.cond-pick h4:first-child { margin-top: 0; }
.unless { margin: 0 0 16px; }
.unless summary { cursor: pointer; font-weight: 650; padding: 6px 0; }
.icon-pick { display: flex; flex-wrap: wrap; gap: 4px; }
.icon-pick button { width: 42px; height: 42px; border: 1.5px solid transparent; border-radius: 10px; background: var(--chip); font-size: 22px; cursor: pointer; }
.icon-pick button[aria-pressed="true"] { border-color: var(--ink); background: var(--paper); }
.preview { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; font-size: 14px; max-height: 40vh; overflow: auto; }

/* ---------- the trip form ---------- */
.form .field:last-of-type { margin-bottom: 8px; }
.where-field { position: relative; }
.results { list-style: none; margin: 4px 0 0; padding: 0; border-radius: 10px; overflow: hidden; }
.results:not(:empty) { border: 1px solid var(--line); }
.results li + li { border-top: 1px solid var(--line); }
.results button { display: block; width: 100%; padding: 11px 12px; border: 0; background: var(--paper); text-align: left; cursor: pointer; }
.results button:hover { background: var(--chip); }
.results .err { padding: 10px 12px; }
.picked { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 4px 4px 4px 12px; border: 1.5px solid var(--ok); border-radius: 10px; background: var(--ok-soft); }
.picked > span { flex: 1; min-width: 0; }

/* ---------- settings ---------- */
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper output { min-width: 80px; text-align: center; font-weight: 700; }
.stepper .icon-btn { border: 1.5px solid var(--line); font-size: 22px; font-weight: 700; }
.drive .row { display: flex; flex-wrap: wrap; gap: 8px; }
.drive .btn.quiet { border-color: transparent; color: var(--muted); }
.auto-list { list-style: none; margin: 0 0 10px; padding: 0; }
.auto-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.auto-name { display: block; min-width: 0; }
.auto-name small { display: block; color: var(--muted); font-size: 13px; }
.auto-list .seg { flex: none; }

/* ---------- footer, toast and sheet ---------- */
.jd-foot { padding: 0 16px calc(20px + env(safe-area-inset-bottom)); text-align: center; font-size: 14px; color: var(--muted); }
.jd-foot a { text-decoration: none; }
.jd-foot a:hover, .jd-foot a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.jd-foot span { margin: 0 6px; }
.noscript { max-width: 560px; margin: 40px auto; padding: 0 16px; font-size: 18px; }

.toast {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30;
  display: flex; align-items: center; gap: 14px;
  width: max-content; max-width: calc(100vw - 24px); padding: 10px 10px 10px 16px;
  transform: translateX(-50%);
  background: var(--ink); color: var(--bg); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25); font-weight: 600; font-size: 15px;
}
.toast button { flex: none; min-height: 36px; padding: 0 14px; border: 1.5px solid color-mix(in srgb, var(--bg) 45%, transparent); border-radius: 8px; background: none; color: var(--bg); font-weight: 700; cursor: pointer; }
.sheet {
  width: 100%; max-width: 520px; max-height: 92vh; margin: auto auto 0; padding: 0;
  border: 0; border-radius: 18px 18px 0 0;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .25);
}
.sheet.wide { max-width: 600px; }
.sheet::backdrop { background: rgba(14, 18, 26, .5); }
.sheet-body { padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); }
.sheet-top { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.sheet-top h2 { flex: 1; padding-top: 8px; font-size: 24px; overflow-wrap: anywhere; }
.sheet-top .icon-btn { margin-right: -8px; }
.sheet-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.sheet-actions .nudge { display: flex; margin-right: auto; }
.sheet-actions .btn.primary { min-width: 120px; }
.sheet h3:first-of-type { margin-top: 0; }
.sheet .field { margin-bottom: 14px; }

@media (min-width: 720px) {
  .sheet { margin: auto; border-radius: 16px; }
  h1 { font-size: 40px; }
  .pass h1 { font-size: 58px; }
  .tags { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .pass-row { grid-template-columns: 1fr 1fr; row-gap: 10px; }
  .welcome h1 { font-size: 38px; }
  .auto-list li { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.sheet .stack + p { margin-top: 12px; }
