@font-face {
  font-family: "Fraunces";
  src: url("/static/fonts/Fraunces.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/static/fonts/SourceSans3.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3efe6;
  --bg-warm: #e7f0e6;
  --ink: #1b2420;
  --ink-soft: #3c4943;
  --muted: #5c675f;
  --line: #ddd4c6;
  --card: #fffcf7;
  --accent: #1e4d38;
  --accent-ink: #f7f4ee;
  --accent-2: #8a5a2b;
  --header-bg: #163528;
  --header-ink: #f6f1e6;
  --header-muted: #d5e0d6;
  --gold: #c6a15a;
  --banner-bg: #e7f0e4;
  --banner-ink: #1c3d2c;
  --danger: #8d2f2f;
  --danger-ink: #fff8f6;
  --ok: #1d6b43;
  --ok-bg: #e5f3ea;
  --warn: #8a5a12;
  --warn-bg: #f8efd8;
  --info-bg: #e7eef6;
  --shadow: 0 1px 2px rgba(48, 36, 16, 0.04), 0 16px 40px rgba(48, 36, 16, 0.06);
  --chart-income: #2f6d4f;
  --chart-expense: #a3563c;
  --chart-reserve: #c6a15a;
  --focus: #8a5a2b;
  --frieze: #d7e4d6;
  --frieze-bg: #10281f;
  --link: #1a5640;
  --radius: 16px;
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 420px at 8% -10%, var(--bg-warm), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 2vw, 1.85rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 0.8em; }
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }

img { max-width: 100%; height: auto; }

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--card);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 30;
  border-radius: 8px;
}
.skip:focus { top: 0.75rem; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.wrap {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.narrow { width: min(760px, calc(100% - 2rem)); }

.site-header {
  background: var(--header-bg);
  color: var(--header-ink);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  padding: 0.65rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--header-ink);
  text-decoration: none;
  min-height: 44px;
  flex: 0 1 auto;
  min-width: 0;
}
.brand > span { min-width: 0; }

.brand-mark { width: 28px; height: 28px; fill: var(--header-ink); }
.brand-mark-inner { fill: var(--gold); }
.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand-sub {
  display: block;
  color: var(--header-muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  flex: 0 1 auto;
}
.brand-stack .brand { min-height: 0; }
.board-feedback {
  appearance: none;
  background: none;
  border: 0;
  padding: 0.1rem 0 0;
  margin-left: calc(28px + 0.7rem);
  color: var(--header-muted);
  font: inherit;
  font-size: 0.8rem;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  white-space: nowrap;
}
.board-feedback:hover { color: var(--header-ink); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.75rem;
  border: 1px solid rgba(255, 248, 236, 0.45);
  border-radius: 999px;
  background: transparent;
  color: var(--header-ink);
  font: inherit;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

.nav-toggle svg { width: 1.25rem; height: 1.25rem; display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem 0.35rem;
  flex: 1 1 12rem;
  min-width: 0;
  overflow: visible;
}

.site-nav a {
  color: var(--header-muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0 0.35rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--header-ink); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }

.account {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem 0.75rem;
  min-width: 0;
  flex: 0 1 auto;
  max-width: min(100%, 20rem);
}

.account-id {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 44px;
  max-width: 100%;
  color: var(--header-ink);
  text-decoration: none;
}

.account-id:hover .who-name {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.who-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: inherit;
  line-height: 1.2;
}

.icon-gear {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.sign-out {
  display: flex;
  align-items: center;
  margin: 0;
  flex: 0 0 auto;
}

.sign-out button {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0 0.1rem;
  margin: 0;
  color: var(--header-muted);
  font: inherit;
  line-height: 1.2;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  cursor: pointer;
}

.sign-out button:hover { color: var(--header-ink); }

.login-alt {
  margin-top: 1.25rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--line);
}

.site-header :focus-visible { outline-color: #f6f1e6; }

@media (max-width: 1099px) {
  .nav-toggle { order: 3; display: inline-flex; }
  .brand-stack { order: 1; flex: 1 1 auto; }
  .brand-name, .brand-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .site-nav { display: none; }
  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1 0 100%;
    order: 4;
    gap: 0;
    padding: 0.15rem 0 0.35rem;
    border-top: 1px solid rgba(246, 241, 230, 0.16);
  }
  .site-nav.is-open a { padding: 0 0.2rem; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .account { max-width: min(100%, 16rem); }
}

@media (max-width: 640px) {
  .account {
    flex: 1 0 100%;
    order: 3;
    max-width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .topbar { gap: 0.25rem; }
  .board-feedback { margin-left: calc(28px + 0.35rem); }
  .nav-toggle { padding: 0 0.4rem; }
  .brand { gap: 0.35rem; }
  .brand-name { font-size: 1rem; }
}
@media (max-width: 380px) {
  .brand-name { font-size: 0.95rem; }
  .brand-sub { letter-spacing: 0.08em; }
}

.frieze { background: var(--frieze-bg); color: var(--frieze); height: 76px; overflow: hidden; }
.frieze svg { display: none; width: 100%; height: 76px; }
html[data-theme="default"] .art-default,
html[data-theme="easter"] .art-easter,
html[data-theme="summer"] .art-summer,
html[data-theme="halloween"] .art-halloween,
html[data-theme="thanksgiving"] .art-thanksgiving,
html[data-theme="christmas"] .art-christmas { display: block; }
.blossom { fill: #d56b86; }
.bunting { fill: #c44545; }
.pumpkin { fill: #e08a3c; }

.theme-banner,
.demo-banner {
  margin: 0;
  text-align: center;
  padding: 0.55rem 1rem;
}
.theme-banner {
  background: var(--banner-bg);
  color: var(--banner-ink);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.demo-banner {
  background: var(--warn-bg);
  color: var(--ink);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}
.demo-banner code { font-size: 0.9em; }

.flash {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--info-bg);
}
.flash-success { background: var(--ok-bg); color: var(--ink); }
.flash-error { background: #f8e4e1; color: var(--ink); }
.flash-info { background: var(--info-bg); }
.login-notice { margin: 0 0 1rem; }

main { padding: 1.75rem 0 4rem; overflow-wrap: break-word; }

.hero { padding: 0.35rem 0 0.15rem; max-width: 40rem; }
.hero h1 { font-size: 1.35rem; margin: 0; }
.eyebrow {
  margin: 0 0 0.35rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--accent-2);
}
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 38rem; }
.rule {
  width: 4.5rem;
  height: 3px;
  border: 0;
  background: var(--gold);
  margin: 0.8rem 0 1rem;
}

.hero-actions, .cluster, .actions-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.stack { display: grid; gap: 0.9rem; }
.section { margin-top: 1.25rem; }
.grid-2 { display: grid; gap: 1rem; }
@media (min-width: 800px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.page-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  align-items: end;
  margin-bottom: 0.85rem;
}
.page-head > * { min-width: 0; max-width: 100%; }
.page-head p { color: var(--ink-soft); max-width: 42rem; }
.page-head:has(.add-launch) {
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.45rem;
}
.page-head:has(.add-launch) h1 {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.head-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0;
  flex: 0 0 auto;
}
.add-short { display: none; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem;
}
.announcement.pinned { border-top: 4px solid var(--gold); }
.card:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }

.meta { color: var(--muted); font-size: 0.92rem; }
.prose p { margin: 0 0 0.7em; }
.person-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  margin: 0 0 0.85rem;
}
.person-name { font-weight: 600; overflow-wrap: anywhere; }
.role-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.12rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  background: color-mix(in srgb, var(--gold) 32%, var(--card));
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--line));
}

.account-name { overflow-wrap: anywhere; }
.account-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.85rem;
  margin: 0.2rem 0 0.9rem;
}
.account-facts div { margin: 0; }
.account-facts dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.account-facts dd { margin: 0.2rem 0 0; }
.account-signout p:last-of-type { margin-bottom: 0.8rem; }
.account-heading {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.85rem;
}
.account-heading .eyebrow { margin-bottom: 0.15rem; }
.account-heading h1 { margin: 0; }

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  background: color-mix(in srgb, var(--gold) 38%, var(--card));
  color: var(--ink);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-header {
  width: 1.7rem;
  height: 1.7rem;
  font-size: 0.62rem;
  background: color-mix(in srgb, var(--header-ink) 18%, transparent);
  color: var(--header-ink);
}
.avatar-small { width: 2rem; height: 2rem; font-size: 0.72rem; }
.avatar-directory { width: 2.75rem; height: 2.75rem; font-size: 0.95rem; }
.avatar-account { width: 4.5rem; height: 4.5rem; font-size: 1.25rem; }

.directory-search {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
}
.directory-search .field { flex: 1 1 12rem; margin: 0; min-width: 0; }
.directory-clear { min-height: 44px; display: inline-flex; align-items: center; }
.directory-list { display: grid; gap: 0.8rem; }
@media (min-width: 800px) {
  .directory-list { grid-template-columns: 1fr 1fr; }
}
.directory-card { display: flex; gap: 0.9rem; align-items: flex-start; }
.directory-name { font-size: 1.15rem; margin: 0 0 0.25rem; }
.directory-card p { margin: 0.15rem 0; overflow-wrap: anywhere; }
.recommend-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
}
.recommend-filters .field { flex: 1 1 10rem; margin: 0; min-width: 0; }
.recommend-list { display: grid; gap: 0.8rem; }
@media (min-width: 800px) {
  .recommend-list { grid-template-columns: 1fr 1fr; }
}
.recommend-card p { margin: 0.2rem 0; overflow-wrap: anywhere; }
.rec-entry { display: grid; gap: 0.75rem; }
.rec-person { display: flex; gap: 0.75rem; align-items: center; }
.rec-person h3 { margin: 0; font-size: 1.05rem; }
.rec-entry > p { margin: 0; }
#profile-note { min-height: 5.5rem; }

.pill, .status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--warn-bg);
  color: var(--ink);
}
.status-paid, .status-handled { background: var(--ok-bg); color: var(--ok); }
.status-unpaid, .status-open { background: var(--warn-bg); color: var(--warn); }
.status-pending { background: var(--info-bg); color: var(--ink); }

.btn {
  appearance: none;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  min-height: 44px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-danger { background: var(--danger); color: var(--danger-ink); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-small { min-height: 44px; padding: 0.35rem 0.75rem; font-size: 0.92rem; }
.btn-on-dark {
  background: transparent;
  color: var(--header-ink);
  border-color: rgba(255, 248, 236, 0.45);
  min-height: 44px;
}
.btn-on-dark:hover { border-color: var(--header-ink); }

.form { display: grid; gap: 0.85rem; margin-bottom: 1.25rem; }
.login-filters { align-items: end; }
@media (min-width: 720px) {
  .login-filters { grid-template-columns: minmax(0, 1fr) 12rem auto; }
}
.login-attempt { min-width: 0; overflow-wrap: anywhere; }
.login-email {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0 0 0.6rem;
  overflow-wrap: anywhere;
}
.login-agent {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}
.field { display: grid; gap: 0.3rem; min-width: 0; }
label { font-weight: 600; }
.hint { color: var(--muted); font-size: 0.92rem; margin: 0; }
.form-error {
  background: #f8e4e1;
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  margin: 0 0 0.8rem;
}
.check, .check-field { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; min-height: 44px; }
.check input { width: auto; min-height: 1.1rem; }
.split { display: grid; gap: 0.85rem; }
@media (min-width: 700px) {
  .split { grid-template-columns: 1fr 1fr; }
  .thirds { grid-template-columns: 1fr 1fr 1fr; }
}

input, select, textarea {
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  width: 100%;
  max-width: 100%;
}
input[type="file"] { max-width: 100%; }

.drop-field { position: relative; display: grid; gap: 0.55rem; min-width: 0; max-width: 100%; }
.drop-zone {
  border: 2px dashed var(--line);
  border-radius: 12px;
  min-height: 88px;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  background: color-mix(in srgb, var(--card) 80%, transparent);
  max-width: 100%;
}
.drop-zone.is-dragover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--card));
}
.drop-prompt { overflow-wrap: anywhere; }
.drop-source,
.drop-capture,
.drop-library {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.drop-actions { position: relative; display: flex; flex-wrap: wrap; gap: 0.5rem; min-width: 0; }
.drop-actions .btn { flex: 1 1 9rem; min-height: 44px; max-width: 100%; }
.drop-take { display: none; }
@media (pointer: coarse), (any-pointer: coarse) {
  .drop-take { display: inline-flex; }
}
.drop-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; min-width: 0; }
.drop-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  max-width: 100%;
}
.drop-caption { flex: 1 1 12rem; min-width: 0; min-height: 44px; }
.share-files {
  list-style: none;
  margin: 0 0 0.8rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}
.share-files li { display: grid; gap: 0.35rem; min-width: 0; }
.share-name { overflow-wrap: anywhere; }
.drop-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 auto;
}
.drop-file-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.drop-file .btn { flex: 0 0 auto; }
.drop-status { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.drop-status.is-error { color: var(--danger); }
textarea { min-height: 8rem; resize: vertical; }

.empty, .notice {
  padding: 0.9rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--card) 80%, transparent);
}

.status-strip {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}
.status-amount {
  font-family: var(--serif);
  font-size: 2rem;
  margin: 0;
  letter-spacing: -0.03em;
}

.table-wrap { max-width: 100%; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.inline-form { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.inline-form input { width: min(100%, 12rem); }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.5rem), 1fr)); gap: 0.6rem; margin: 0 0 0.8rem; }
.kv div { margin: 0; }
.kv dt { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; }
.kv dd { margin: 0; font-family: var(--serif); font-size: 1.25rem; }

.chart { width: 100%; height: auto; }
.bar-income { fill: var(--chart-income); }
.bar-expenses { fill: var(--chart-expense); }
.bar-reserve { fill: var(--chart-reserve); }
.chart-label { fill: var(--muted); font-family: var(--sans); }
.legend { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--ink-soft); }
.swatch-dot { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 2px; margin-right: 0.3rem; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  gap: 0.8rem;
}
.photo-grid.compact { grid-template-columns: repeat(3, 1fr); margin-bottom: 0.6rem; }
.photo-card img, .photo-grid img, .photo-detail img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: var(--line);
  display: block;
}
.photo-detail img { aspect-ratio: 3 / 2; }
.photo-caption { margin: 0.45rem 0 0; }
.album-list { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 0.5rem 0 1rem; }
.album-list a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.album-list a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }

.doc-row, .member-row { display: grid; gap: 0.8rem; }
@media (min-width: 720px) {
  .doc-row { grid-template-columns: 1fr auto; align-items: center; }
}
.member-grid { display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }

.plain-list { padding-left: 1.1rem; }
.login-card { margin-top: 1rem; }
fieldset { border: 1px solid var(--line); border-radius: 12px; margin: 0; padding: 0.8rem 1rem; }
legend { padding: 0 0.3rem; font-weight: 600; }
.theme-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  font-weight: 500;
}
.swatch {
  width: 2.4rem;
  height: 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-block;
}
.swatch-default { background: linear-gradient(135deg, #163528, #c6a15a); }
.swatch-easter { background: linear-gradient(135deg, #1c3a32, #f6edd8); }
.swatch-summer { background: linear-gradient(135deg, #12284a, #c44545); }
.swatch-halloween { background: linear-gradient(135deg, #1b1614, #e08a3c); }
.swatch-thanksgiving { background: linear-gradient(135deg, #3c2418, #c4893a); }
.swatch-christmas { background: linear-gradient(135deg, #143028, #8e2430); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  background: color-mix(in srgb, var(--card) 70%, transparent);
}
.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
}
.footer-feedback { flex: 0 0 auto; }
.photo-strip {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}
.photo-strip a { flex: 0 0 auto; }
.photo-strip img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.activity-compact { margin-top: 1.25rem; }
.activity-compact h2 { font-size: 1.05rem; }
.see-more { font-size: 0.85rem; font-weight: 650; margin-left: 0.45rem; }
.activity-lines { list-style: none; padding: 0; margin: 0; }
.activity-lines li {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.85rem;
  line-height: 1.3;
  padding: 0.15rem 0;
}
.activity-lines a { min-width: 0; }
.activity-lines .when { color: var(--muted); flex: 0 0 auto; margin-left: auto; }
.photo-card { position: relative; }
.photo-check {
  display: none;
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 44px;
  height: 44px;
  z-index: 2;
}
.photo-grid.is-selecting .photo-check { display: block; }
.bulk-bar { margin: 0 0 0.75rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 0.8fr 1.2fr; } }
.footer-name { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 0.3rem; }
.footer-version { color: var(--muted); font-size: 0.82rem; margin: 0.75rem 0 0; }
.footer-version a { color: var(--muted); }
.notify-row {
  display: grid;
  gap: 0.35rem 1rem;
  align-items: center;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 640px) {
  .notify-row { grid-template-columns: 1fr 11rem; }
}
.release-notes { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.release-notes li { margin: 0.25rem 0; }
.footer-label { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.25rem 0; }
.site-footer a {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.fallback { margin-top: 1rem; padding-top: 0.6rem; border-top: 1px solid var(--line); }
details summary { cursor: pointer; font-family: var(--serif); font-size: 1.3rem; min-height: 44px; display: flex; align-items: center; }
details .form { margin-top: 1rem; }

@media (max-width: 900px) {
  table.responsive thead { display: none; }
  table.responsive, table.responsive tbody, table.responsive tr, table.responsive td, table.responsive th {
    display: block;
    width: 100%;
  }
  table.responsive tr {
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.75rem 0.6rem;
    background: var(--card);
  }
  table.responsive td, table.responsive th {
    border: 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0;
  }
  table.responsive td::before, table.responsive th[scope="row"]::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--muted);
  }
  table.responsive td.actions { display: block; }
  table.responsive td.actions::before { display: block; margin-bottom: 0.35rem; }
}

.add-launch { min-height: 44px; width: auto; flex: 0 0 auto; }
.page-head .cluster { justify-content: flex-end; }
@media (max-width: 700px) {
  .add-full { display: none; }
  .add-short { display: inline; }
  .page-head .btn { padding: 0 0.55rem; }
}

.req {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--danger, #8c2f2f);
  font-weight: 700;
  margin-left: 0.35rem;
}
.count-badge { margin-left: 0.35rem; color: var(--muted); font-variant-numeric: tabular-nums; }

dialog.sheet {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  width: min(40rem, calc(100% - 1.5rem));
  max-height: calc(100% - 2rem);
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
}
dialog.sheet::backdrop { background: rgba(27, 36, 32, 0.45); }
.sheet-body { padding: 1rem 1.15rem 1.25rem; overflow: auto; max-height: calc(100vh - 2rem); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.sheet-head h2 { margin: 0; }
.sheet-close { min-width: 44px; min-height: 44px; }
@media (max-width: 700px) {
  dialog.sheet {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .sheet-body { max-height: 100%; }
}

.upload-progress { margin: 0.5rem 0 0.8rem; }
.upload-progress progress { width: 100%; height: 0.75rem; }

.toast[hidden] { display: none; }
.toast:not([hidden]) {
  display: block;
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(28rem, calc(100% - 1.5rem));
  z-index: 30;
  margin: 0;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: var(--header-bg);
  color: var(--header-ink);
  box-shadow: var(--shadow);
}

.activity-feed { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.activity-item { display: flex; gap: 0.75rem; align-items: center; min-width: 0; }
.activity-item p { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.activity-item time { color: var(--muted); }
.activity-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex: none; background: var(--line); }
.activity-item.is-removed,
.login-attempt.is-removed { opacity: 0.6; }
.login-filters { display: grid; gap: 0.8rem; }
@media (min-width: 800px) {
  .login-filters { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); align-items: end; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .site-header, .frieze, .theme-banner, .demo-banner, .site-footer, .btn, form { display: none !important; }
  body { background: white; color: black; }
  .card { box-shadow: none; }
}

/* The hidden attribute always wins over component display rules. */
[hidden] { display: none !important; }
