@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/fraunces-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/newsreader-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/source-serif-4-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/source-serif-4-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/libre-franklin-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/libre-franklin-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --night: #071f1a;
  --leaf: #1f7a45;
  --mist: #e4efe8;
  --cerulean: #1c6e8c;
  --paper: #f3f0e8;
  --card: #fbf9f4;
  --ink: #14241c;
  --brick: #8c3a2f;
  --hint: #2c4036;
  --line: rgba(7, 31, 26, 0.12);
  --line-strong: rgba(7, 31, 26, 0.28);
  --shadow: 6px 6px 0 rgba(7, 31, 26, 0.16);
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "Outfit", "Avenir Next", "Trebuchet MS", sans-serif;
  --font-eyebrow: var(--sans);
  --font-title: var(--serif);
  --font-subtitle: var(--sans);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

img { max-width: 100%; }

button, input, textarea, select { font: inherit; }

:focus { outline: none; }

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

::selection {
  background: var(--cerulean);
  color: var(--card);
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  background: var(--card);
  color: var(--ink);
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 500;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(1080px, calc(100% - 64px));
  margin-inline: auto;
}

.wordmark {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: inherit;
}

.brand-logo {
  display: block;
  width: 11.5rem;
  height: auto;
  margin: 0 0 18px;
}

.mast .brand-logo,
.auth-brand .brand-logo,
.rail .brand-logo {
  filter: brightness(0) invert(1);
}

.rail .brand-logo {
  width: 9.25rem;
  margin: 0 12px 18px;
}

.colophon .brand-logo {
  width: 8.5rem;
  margin: 0;
}

.wordmark .times {
  letter-spacing: 0;
  text-transform: none;
  color: var(--cerulean);
  padding: 0 0.35em;
  font-weight: 400;
}

.mast {
  position: relative;
  background: var(--night);
  color: var(--paper);
}

.mast-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.mast-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 78%;
  opacity: 0.55;
  display: block;
}

.mast-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 31, 26, 0.5) 0%, rgba(7, 31, 26, 0.38) 48%, rgba(7, 31, 26, 0.7) 100%);
}

.mast-grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.mast-inner,
.spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  column-gap: 64px;
  position: relative;
  z-index: 1;
}

.mast-brand {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  padding-top: 28px;
}

.mast-brand .brand-logo,
.mast-brand .wordmark {
  margin: 0;
}

.mast-inner {
  align-items: end;
  min-height: 360px;
  padding-top: 18px;
}

.mast-copy {
  align-self: start;
  padding-bottom: 28px;
  max-width: 40rem;
}

.mast-short .mast-inner {
  min-height: 210px;
  padding-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-eyebrow);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}

.mast-copy h1:not(.wordmark) {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--paper);
  overflow-wrap: break-word;
}

.mast-copy h1.is-fraunces {
  font-weight: 620;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}

.lede {
  margin: 16px 0 0;
  max-width: 36rem;
  font-family: var(--font-subtitle);
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--mist);
}

.waterline {
  position: relative;
  z-index: 5;
  height: 2px;
  background: var(--cerulean);
}

.card-top,
.card-bottom {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  position: relative;
  z-index: 3;
}

.card-top {
  border-bottom: 0;
  min-height: 108px;
  padding: 22px 28px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-top.is-last {
  border-bottom: 1px solid var(--line);
}

.card-top h1,
.card-top h2,
.guest-name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 620;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 72, "SOFT" 40, "WONK" 0;
  font-size: 1.8rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  overflow-wrap: break-word;
}

.note {
  margin: 8px 0 0;
  font-size: 0.98rem;
  line-height: 1.4;
}

.spread {
  align-items: start;
  padding-bottom: 56px;
}

.card-bottom {
  grid-column: 2;
  grid-row: 1;
  border-top: 0;
  padding: 20px 28px 28px;
}

.story {
  grid-column: 1;
  grid-row: 1;
  padding-top: 36px;
  min-width: 0;
}

.prose p {
  max-width: 62ch;
  margin: 0 0 1em;
  font-size: 1.075rem;
  line-height: 1.6;
  white-space: pre-line;
}

.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px 20px;
  margin: 28px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  max-width: 40rem;
}

.meta dt {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta dd {
  margin: 0;
  overflow-wrap: break-word;
}

.agenda { margin-top: 36px; max-width: 40rem; }

.agenda h2 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agenda ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.agenda li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.agenda .when { font-weight: 500; }

.guest-name { font-size: 1.7rem; }

.confirm-copy {
  margin: 12px 0 0;
  line-height: 1.5;
  white-space: pre-line;
}

.again { margin: 22px 0 0; }

.again a {
  color: var(--ink);
  font-weight: 500;
}

.colophon { padding: 4px 0 32px; }

.colophon .wordmark {
  font-size: 0.75rem;
  color: var(--ink);
}

.list-page { padding-bottom: 48px; }

.event-index {
  list-style: none;
  margin: 0;
  padding: 8px 0 24px;
}

.event-index a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 72px;
  padding: 16px 0;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.event-index li:first-child a { border-top: 1px solid var(--line); }

.event-index-title {
  font-family: var(--serif);
  font-weight: 620;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 72, "SOFT" 40, "WONK" 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.event-index-meta { font-size: 0.95rem; }

.event-index a:hover .event-index-title { color: var(--leaf); }

.quiet-page {
  padding: 32px 0 72px;
  max-width: none;
}

.quiet-page p {
  margin: 0;
  max-width: 62ch;
  font-size: 1.075rem;
  line-height: 1.6;
}

.field { margin-top: 16px; }

.field:first-child,
.card-bottom .field:first-of-type,
form > .field:first-of-type { margin-top: 0; }

.editor-main .field,
.editor-side .field,
.password-form .field,
.auth-panel .field { margin-top: 16px; }

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}

.req { color: var(--cerulean); margin-left: 0.15em; }

.card-top .req,
.card-bottom .req { color: var(--ink); }

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  font-size: 16px;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}

.field textarea.narrative-input { min-height: 240px; }

.field-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.field .field-head > label,
.field .font-choice label {
  margin-bottom: 0;
}

.font-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.font-choice label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.font-choice select {
  width: auto;
  min-width: 11.5rem;
  min-height: 36px;
  padding: 4px 28px 4px 10px;
}

.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid select { border-color: var(--brick); }

.field-error {
  margin: 8px 0 0;
  color: var(--brick);
  font-size: 0.92rem;
  line-height: 1.4;
}

.hint, .desk-note {
  margin: 8px 0 0;
  color: var(--hint);
  font-size: 0.92rem;
  line-height: 1.45;
}

.desk-note { margin-top: 8px; max-width: 46rem; }

.form-summary {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #f6ebe7;
  border-left: 2px solid var(--brick);
  color: var(--brick);
}

.form-summary p { margin: 0; font-weight: 500; }

.form-summary ul {
  margin: 8px 0 0;
  padding-left: 1.1rem;
}

.btn-primary,
.btn-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
}

.btn-primary {
  background: var(--night);
  color: var(--paper);
  border: 0;
}

.btn-primary:hover { background: var(--leaf); color: var(--paper); }

.btn-primary:active { background: color-mix(in srgb, var(--night) 72%, black); }

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-quiet:hover { background: var(--mist); }

.btn-danger {
  color: var(--brick);
  border-color: rgba(140, 58, 47, 0.45);
}

.btn-block { width: 100%; }

.card-bottom .btn-block,
.auth-panel .btn-block,
.editor-side .btn-block { margin-top: 18px; }

.editor-save { margin-top: 22px; }

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 8px;
  font-weight: 500;
}

.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--night);
}

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1.14fr);
}

.auth-brand {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 40px 48px;
  color: var(--paper);
  background:
    linear-gradient(180deg, rgba(7, 31, 26, 0.72), rgba(7, 31, 26, 0.88)),
    url("masthead.jpg") center 82% / cover no-repeat,
    var(--night);
}

.auth-brand h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 620;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--paper);
}

.auth-brand p { margin: 0; color: var(--mist); max-width: 22rem; }

.signature {
  width: 40px;
  height: 2px;
  margin: 18px 0 0;
  background: var(--cerulean);
}

.auth-panel {
  display: flex;
  align-items: center;
  padding: 48px 40px;
  background: var(--paper);
}

.auth-panel form { width: min(100%, 420px); }

.admin-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 16px 16px;
  color: var(--paper);
  background:
    linear-gradient(180deg, rgba(7, 31, 26, 0.88), rgba(7, 31, 26, 0.94)),
    url("masthead.jpg") center 80% / cover no-repeat,
    var(--night);
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.rail-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
}

.rail-nav a:hover,
.rail-nav a[aria-current="page"] {
  background: var(--mist);
  color: var(--night);
}

.rail-logout { margin-top: auto; }

.rail-logout button {
  width: 100%;
  min-height: 44px;
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(243, 240, 232, 0.35);
  font-weight: 500;
  cursor: pointer;
}

.rail-logout button:hover {
  background: var(--mist);
  color: var(--night);
}

.canvas {
  min-width: 0;
  padding: 32px 40px 72px;
}

.canvas h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 620;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 96, "SOFT" 40, "WONK" 0;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  overflow-wrap: break-word;
}

.kicker {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 24px;
}

.page-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.page-head-actions form { margin: 0; }

.flash {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: var(--mist);
  border-left: 2px solid var(--leaf);
}

.sheet {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.sheet th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(7, 31, 26, 0.22);
}

.sheet td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.row-title {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.row-title:hover { text-decoration: underline; text-underline-offset: 3px; }

.swatch {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

.swatch-published, .swatch-open { background: var(--leaf); }
.swatch-draft { background: var(--cerulean); }
.swatch-archived { background: rgba(20, 36, 28, 0.38); }
.swatch-closed { background: var(--brick); }

.featured-flag {
  display: inline-block;
  margin-left: 8px;
  color: var(--leaf);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
}

.row-actions form { margin: 0; }

.row-actions a,
.row-actions button {
  background: none;
  border: 0;
  padding: 8px 0;
  min-height: 44px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.row-actions a:hover,
.row-actions button:hover { color: var(--leaf); }

.canvas a.btn-primary { color: var(--paper); }
.canvas a.btn-quiet,
.canvas a.btn-primary { text-decoration: none; }

.editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
  margin-top: 22px;
}

.editor-side {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 5px 5px 0 rgba(7, 31, 26, 0.14);
  padding: 8px 18px 18px;
  position: sticky;
  top: 16px;
}

.section-label {
  margin: 28px 0 12px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editor-main .section-label:first-child,
.editor-side .section-label:first-child { margin-top: 12px; }

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.trio .field { margin-top: 0; }

.when-grid {
  display: grid;
  grid-template-columns: minmax(11rem, 1.2fr) minmax(8.5rem, 1fr) minmax(8.5rem, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.when-grid .field { margin-top: 0; }

.place-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 12px;
  margin-top: 12px;
}

.place-grid .field { margin-top: 0; }

.place-name,
.place-address { display: block; }

.place-address { margin-top: 2px; }

.field input[type="date"] { color-scheme: light; }

.agenda-row {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.agenda-row .field { margin-top: 0; }

.agenda-time-custom {
  margin-top: 8px;
}

.agenda-time-custom[hidden] { display: none; }

.color-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.color-row {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 48px minmax(7.5rem, 9.5rem);
  gap: 10px;
  align-items: center;
}

.color-row label {
  font-weight: 500;
  font-size: 0.95rem;
}

.color-row input[type="color"] {
  width: 48px;
  height: 48px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  cursor: pointer;
}

.color-row input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.color-row.is-invalid input[type="text"] { border-color: var(--brick); }

.color-row .field-error { grid-column: 1 / -1; margin-top: 0; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  margin-top: 18px;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  flex: 1 1 320px;
}

.search-form .field {
  margin: 0;
  flex: 1 1 220px;
}

.confirm-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.password-form { max-width: 420px; margin-top: 18px; }

.password-form .btn-primary { margin-top: 18px; }

.mail-form { max-width: 32rem; margin-top: 18px; }

.mail-form .btn-primary,
.mail-form .btn-quiet { margin-top: 18px; }

.mail-form .section-label { margin-top: 32px; }

@media (max-width: 1100px) {
  .mast-inner,
  .spread {
    column-gap: 36px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  }
}

@media (max-width: 980px) {
  .editor { grid-template-columns: 1fr; }
  .editor-side { position: static; }
  .trio,
  .when-grid,
  .place-grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .wrap { width: min(1080px, calc(100% - 32px)); }

  .mast-inner,
  .spread {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    gap: 18px;
  }

  .card-top,
  .card-bottom,
  .story,
  .mast-copy {
    width: 100%;
    max-width: none;
    align-self: stretch;
  }

  .mast-inner { padding: 28px 0 0; }

  .mast-short .mast-inner { padding: 28px 0 24px; min-height: 0; }

  .mast-copy { padding-bottom: 4px; max-width: none; }

  .card-top {
    min-height: 0;
    justify-content: flex-start;
  }

  .spread { gap: 28px; padding-bottom: 40px; }

  .story { padding-top: 4px; }

  .meta { grid-template-columns: 1fr; }

  .agenda li { grid-template-columns: 6.5rem minmax(0, 1fr); }

  .auth { grid-template-columns: 1fr; }

  .auth-brand { min-height: 0; padding: 28px 20px 24px; }

  .auth-brand h1 { font-size: 2.8rem; }

  .auth-panel { padding: 28px 20px 48px; }

  .page-head { flex-direction: column; align-items: flex-start; }

  .agenda-row { grid-template-columns: 1fr; }

  .color-row { grid-template-columns: minmax(0, 1fr) 48px 8.5rem; }

  .field-head { align-items: stretch; flex-direction: column; gap: 8px; }

  .font-choice select { width: 100%; }
}

@media (max-width: 760px) {
  .admin-shell { grid-template-columns: 1fr; }

  .rail {
    position: relative;
    height: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    align-items: center;
    padding: 16px;
  }

  .rail-brand { grid-column: 1 / -1; }

  .signature { margin-top: 10px; }

  .rail-nav { flex-direction: row; flex-wrap: wrap; margin-top: 0; }

  .rail-logout { margin-top: 0; }

  .rail-logout button { width: auto; padding: 0 14px; }

  .canvas { padding: 20px 16px 48px; }

  .sheet thead { display: none; }

  .sheet,
  .sheet tbody,
  .sheet tr,
  .sheet td { display: block; width: 100%; }

  .sheet tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .sheet td {
    display: grid;
    grid-template-columns: 7.2rem minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    border: 0;
    padding: 4px 0;
  }

  .sheet td::before {
    content: attr(data-label);
    font-weight: 500;
  }

  .sheet td[data-label="Actions"],
  .sheet td[data-label="Remove"] {
    grid-template-columns: 1fr;
  }

  .sheet td[data-label="Actions"]::before,
  .sheet td[data-label="Remove"]::before { display: none; }
}
