:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #183c32;
  background: #f8f7f2;
  font-synthesis: none;
  font-size: 15px;
  line-height: 1.55;
  --green: #327773;
  --muted: #718078;
  --gold: #d8bf88;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
p {
  margin: 0 0 1rem;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(2rem, 3.4vw, 3.5rem);
}
h2 {
  font-size: 1.8rem;
}
h3 {
  font-size: 1rem;
}
em {
  font-weight: 400;
  color: #ddc793;
}
small,
.subtle {
  font-size: 0.82rem;
  color: var(--muted);
}
strong {
  font-weight: 600;
}
.prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #b99751;
  outline-offset: 4px;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  background: white;
  padding: 10px;
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
.topbar {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  padding: 0 5%;
  margin: auto;
  border-bottom: 1px solid #dfe5dd;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand > span:last-child {
  font-size: 9px;
  line-height: 1.7;
  font-weight: 650;
  letter-spacing: 0.15em;
}
.brand-mark {
  font-family: Georgia, serif;
  font-size: 35px;
  letter-spacing: -0.1em;
  border-right: 1px solid #ccd2c7;
  padding-right: 20px;
}
.brand-mark span {
  font-size: 25px;
  font-style: italic;
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.84rem;
}
.topbar nav a:last-child {
  border: 1px solid #c9d4ca;
  border-radius: 6px;
  padding: 9px 14px;
}
main {
  min-height: calc(100vh - 192px);
}
footer {
  padding: 28px 5%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #7a857c;
  font-size: 11px;
  letter-spacing: 0.02em;
}
footer a {
  text-decoration: underline;
}
.loading {
  text-align: center;
  padding: 120px 20px;
}
.eyebrow {
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  color: #7d8c7e;
  margin-bottom: 16px;
}
.primary,
.secondary,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 11px 17px;
  font-size: 0.85rem;
  line-height: 1.4;
  gap: 8px;
}
.primary {
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
}
.primary:hover {
  background: #22634e;
}
.secondary {
  background: transparent;
  border: 1px solid #cbd5cb;
  color: #214535;
}
.secondary:hover {
  background: #eaf0e7;
}
.text-button {
  background: none;
  border: 0;
  color: var(--green);
  padding: 8px 4px;
}
.danger {
  color: #a64b3c;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.panel {
  background: #fff;
  border: 1px solid #e2e6dc;
  border-radius: 12px;
  padding: 28px;
}
.narrow {
  max-width: 660px;
  margin: 60px auto;
}
.empty {
  text-align: center;
  padding: 55px 24px;
}
.empty > span {
  font-size: 45px;
  color: #a9976c;
}
.empty p {
  color: var(--muted);
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
  font-size: 0.8rem;
  font-weight: 550;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d7ded3;
  background: #fff;
  border-radius: 6px;
  color: #203e33;
  min-width: 0;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #245640;
  flex-shrink: 0;
}
input[type="color"] {
  height: 42px;
  padding: 4px;
}
input[type="range"] {
  padding: 0;
  accent-color: #285b46;
}
textarea {
  resize: vertical;
}
label.check {
  flex-direction: row;
  align-items: center;
  gap: 9px;
  font-weight: 400;
}
form .primary {
  margin-top: 7px;
}
hr {
  border: 0;
  border-top: 1px solid #e4e6df;
  margin: 28px 0;
}
.year-picker {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 0;
  gap: 12px;
}
.year-picker > span {
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.year-picker select {
  width: auto;
  min-width: 100px;
  background: transparent;
  border-color: #80948970;
  padding: 7px 11px;
  font-size: 12px;
  color: inherit;
}
.year-picker option {
  color: #203e33;
  background: white;
}
.calendar-surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg-color, #102f29);
  color: #fff5de;
  --bg-image: none;
}
.calendar-surface:before,
.calendar-surface:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}
.calendar-surface:before {
  background-image: var(--bg-image);
  background-position: var(--bg-position);
  background-size: var(--bg-size);
  background-repeat: var(--bg-repeat);
  opacity: var(--bg-opacity, 1);
}
.calendar-surface:after {
  background: var(--overlay-color, #102f29);
  opacity: var(--overlay-opacity, 0.35);
  z-index: -1;
}
.calendar-inner {
  max-width: 1240px;
  margin: auto;
  padding: 32px 60px 28px;
}
.calendar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.calendar-meta .eyebrow {
  margin: 0;
  color: #bdccb9;
  font-size: 9px;
}
.hero {
  padding: 30px 0 48px;
  text-align: center;
  position: relative;
}
.hero-star {
  font-size: 35px;
  color: #dac694;
  line-height: 1.1;
  margin-bottom: 22px;
}
.hero .eyebrow {
  font-size: 9px;
  color: #b7c9b2;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(36px, 4.4vw, 61px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}
.hero > p:not(.eyebrow) {
  font-size: 12px;
  line-height: 1.9;
  color: #c2cfbf;
}
.season-pill {
  display: inline-block;
  border: 1px solid #b4c2a534;
  border-radius: 100px;
  padding: 7px 17px;
  color: #e3d7b6;
  font-size: 10px;
  margin-top: 8px;
}
.door-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 17px;
}
.door {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 145px;
  aspect-ratio: 1.08;
  background: #2b4d3e;
  background-image: var(--door-image);
  background-size: cover;
  background-position: center;
  border: var(--border-width, 1px) solid var(--border-color, #c9b17c);
  border-radius: var(--radius, 16px);
  color: var(--number-color, #fff5de);
  box-shadow: var(--door-shadow);
  overflow: hidden;
  transition:
    transform 0.22s,
    filter 0.22s,
    box-shadow 0.22s;
}
.door:before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--mask-color);
  opacity: var(--mask-opacity);
  z-index: -1;
}
.door:after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid #e8dcab19;
  border-radius: max(0px, calc(var(--radius) - 5px));
  pointer-events: none;
}
.door:nth-child(4n + 2) {
  background-color: #456149;
}
.door:nth-child(4n + 3) {
  background-color: #28483e;
}
.door:nth-child(4n + 4) {
  background-color: #55664a;
}
.door-number {
  font-family: var(--door-font, serif);
  font-size: var(--number-size, 44px);
  line-height: 1.15;
  -webkit-text-stroke: var(--number-outline);
  font-weight: 400;
}
.door-caption {
  font-size: 7px;
  letter-spacing: 0.18em;
  margin-top: 9px;
  opacity: 0.65;
}
.door-ornament {
  font-size: 17px;
  opacity: 0.55;
  position: absolute;
  top: 10px;
  right: 13px;
}
.door.opened .door-caption {
  color: #e7d1a1;
  opacity: 1;
}
.door[data-hover="lift"]:hover {
  transform: translateY(-4px);
  filter: brightness(1.1);
}
.door[data-hover="glow"]:hover {
  box-shadow: 0 0 22px #e0c48b70;
}
.calendar-note {
  font-size: 10px;
  text-align: center;
  color: #afc2ac;
  margin: 32px 0 0;
  line-height: 1.9;
}
.snow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}
.snow i {
  position: absolute;
  top: -10px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff8;
  animation: snowfall 16s linear infinite;
}
@keyframes snowfall {
  to {
    transform: translate(30px, 1400px);
  }
}
.workspace {
  max-width: 1500px;
  margin: auto;
  display: grid;
  grid-template-columns: 238px 1fr;
  min-height: calc(100vh - 192px);
}
aside {
  border-right: 1px solid #e1e5db;
  padding: 35px 24px;
  display: flex;
  flex-direction: column;
}
aside .eyebrow {
  font-size: 9px;
}
aside h2 {
  font-size: 22px;
  letter-spacing: -0.04em;
  margin-bottom: 30px;
}
aside h2 span {
  display: block;
  font-family: system-ui, sans-serif;
  letter-spacing: 0;
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
aside nav {
  display: grid;
  gap: 5px;
}
aside nav button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: 0;
  text-align: left;
  color: #6e7b70;
  padding: 11px 12px;
  border-radius: 6px;
  font-size: 12px;
}
aside nav button.selected {
  background: #e9eee3;
  color: #214b36;
  font-weight: 600;
}
aside nav button:hover {
  background: #eef1e9;
}
aside nav button span {
  font-size: 9px;
  background: #d9e3d0;
  padding: 1px 6px;
  border-radius: 4px;
}
.account {
  margin-top: auto;
  padding-top: 45px;
  display: flex;
  flex-direction: column;
  font-size: 12px;
}
.account button {
  background: none;
  border: 0;
  padding: 8px 0 0;
  text-align: left;
  font-size: 10px;
  color: var(--muted);
}
.workspace-main {
  min-width: 0;
  padding: 30px 38px 60px;
}
.workspace-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}
.workspace-top .eyebrow {
  font-size: 8px;
  margin: 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}
.section-heading h1 {
  font-size: 36px;
  margin-bottom: 12px;
}
.section-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 12px;
}
.section-heading p:not(.eyebrow) {
  font-size: 12px;
  color: var(--muted);
  max-width: 580px;
  margin: 0;
}
.section-heading.compact {
  margin: 28px 0 18px;
}
.compact h2 {
  font-size: 24px;
  margin: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.stats article {
  background: white;
  border: 1px solid #e1e5da;
  border-radius: 9px;
  padding: 23px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stats strong {
  font-size: 31px;
  letter-spacing: -0.05em;
  font-family: Georgia, serif;
  font-weight: 400;
}
.stats span {
  font-size: 10px;
  color: var(--muted);
}
.notice {
  display: flex;
  align-items: center;
  gap: 17px;
  background: #eeefdf;
  border: 1px solid #e0e2c7;
  padding: 18px 22px;
  border-radius: 8px;
  color: #646b42;
  font-size: 12px;
  margin-bottom: 25px;
}
.notice > span {
  font-size: 26px;
}
.notice p {
  margin: 0;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.admin-door {
  min-height: 150px;
  text-align: left;
  border: 1px solid #e0e4d9;
  border-radius: 9px;
  background: #fff;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 10px;
  color: #274c38;
}
.admin-door:hover {
  border-color: #879f77;
  box-shadow: 0 6px 15px #12291008;
}
.admin-door .day {
  font-family: Georgia, serif;
  font-size: 30px;
  line-height: 1.2;
  color: #a9b7a1;
}
.admin-door.filled .day {
  color: #365d42;
}
.admin-door strong,
.admin-door small {
  grid-column: 1/-1;
  overflow-wrap: anywhere;
}
.admin-door strong {
  font-size: 11px;
  font-weight: 500;
}
.admin-door small {
  font-size: 9px;
}
.status {
  border-radius: 100px;
  display: inline-block;
  font-size: 9px;
  padding: 4px 8px;
  line-height: 1.3;
  white-space: nowrap;
  width: fit-content;
}
.green {
  background: #e9f1e3;
  color: #527443;
}
.amber {
  background: #f5efd9;
  color: #928248;
}
.login-layout,
.upload-layout {
  max-width: 1100px;
  margin: 70px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  padding: 0 25px;
}
.login-layout > div:first-child,
.upload-layout > div:first-child {
  padding: 25px 0;
}
.login-layout h1 {
  font-size: clamp(40px, 4.4vw, 66px);
  line-height: 1.1;
}
.login-layout p,
.upload-layout p {
  color: #76836f;
  font-size: 13px;
}
.login-ornament {
  font-family: serif;
  font-size: 140px;
  color: #bbaf86;
  line-height: 1.1;
  margin-top: 30px;
}
.login-layout form {
  align-self: start;
}
.login-layout .primary {
  width: 100%;
}
.login-layout form h2 {
  font-size: 30px;
}
.login-layout .subtle {
  margin-top: 25px;
  font-size: 11px;
}
.dropzone {
  text-align: center;
  border: 1px dashed #9aac91;
  border-radius: 8px;
  padding: 28px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  background: #f7f9f3;
  cursor: pointer;
  position: relative;
}
.dropzone.dragover {
  border: 2px solid #326c48;
  background: #e5efdd;
}
.dropzone strong {
  font-size: 12px;
}
.dropzone span:not(.upload-symbol) {
  font-size: 11px;
  color: #7d8d73;
}
.dropzone small {
  font-size: 9px;
}
.upload-symbol {
  font-size: 28px;
  color: #66835a;
}
.file-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  padding: 0;
  overflow: hidden;
}
.upload-queue,
.upload-message {
  font-size: 12px;
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.upload-message {
  color: #496d38;
}
progress {
  width: 100%;
  height: 12px;
  margin-top: 12px;
  accent-color: #396e42;
}
.filters {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}
.filters input {
  flex: 1;
}
.filters select {
  width: 200px;
}
.filter-label {
  max-width: 250px;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.media-card {
  background: white;
  border: 1px solid #e0e5da;
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
}
.media-thumb {
  border: 0;
  background: #e6eadc;
  width: 100%;
  height: 145px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #69815a;
}
.media-thumb span {
  font-size: 48px;
  font-family: Georgia, serif;
}
.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.media-card-body strong {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.media-card-body small {
  font-size: 9px;
}
.media-card select {
  font-size: 11px;
}
.media-card .text-button {
  font-size: 10px;
}
.inbox-item {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 25px;
  margin: 20px 0;
}
.inbox-item h2 {
  margin-top: 12px;
  font-size: 27px;
}
.inbox-item p {
  font-size: 12px;
}
.inbox-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
td,
th {
  padding: 15px 12px;
  border-bottom: 1px solid #e7eadf;
}
th {
  font-size: 10px;
  font-weight: 500;
  color: #7c8773;
}
td small {
  display: block;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
.limit-list > div {
  padding: 12px 0;
  border-bottom: 1px solid #e5e9df;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
}
.limit-list dd {
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
}
.settings-grid .notice {
  margin: 22px 0;
}
.design-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 10px;
}
.segmented {
  display: flex;
  background: #e9ede3;
  border-radius: 6px;
  padding: 4px;
}
.segmented button {
  border: 0;
  background: none;
  padding: 8px 12px;
  font-size: 11px;
  border-radius: 4px;
  color: #63745b;
}
.segmented .selected {
  background: white;
  box-shadow: 0 1px 3px #0001;
  color: #36502b;
}
.import-label {
  margin: 0;
  font-size: 12px;
  cursor: pointer;
}
.design-layout {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.design-controls {
  padding: 20px;
  max-height: 850px;
  overflow: auto;
}
.design-field {
  border-bottom: 1px solid #eff1e9;
  margin-bottom: 12px;
}
.design-field label {
  font-size: 11px;
}
.design-field input[type="checkbox"] {
  align-self: flex-start;
}
.design-field input[type="range"] + output {
  font-size: 10px;
  color: #7d8b72;
}
.design-field .override {
  flex-direction: row;
  align-items: center;
  font-size: 9px;
  color: #6f8067;
  gap: 5px;
}
.preview-scroll {
  overflow: auto;
  max-width: 100%;
}
#live-preview {
  min-width: 260px;
  margin: 0 auto;
  padding: 25px 18px 28px;
  container-type: inline-size;
  border-radius: 8px;
}
.mini-hero {
  text-align: center;
  margin: 15px 0 28px;
}
.mini-hero .eyebrow {
  font-size: 7px;
  color: #b6c2a9;
}
.mini-hero h2 {
  font-size: 25px;
}
.mini-hero p {
  font-size: 9px;
  color: #ccd4bf;
}
#preview-doors {
  gap: 9px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
#preview-doors .door {
  min-height: 82px;
  aspect-ratio: 1;
}
#preview-doors .door-number {
  font-size: min(var(--number-size), 42px);
}
#preview-doors .door-caption {
  font-size: 5px;
}
#preview-doors .door-ornament {
  font-size: 10px;
  top: 6px;
  right: 9px;
}
#live-preview[data-device="phone"] #preview-doors {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.design-selected {
  outline: 3px solid #f8e1a9;
  outline-offset: 2px;
}
dialog {
  border: 0;
  padding: 40px;
  width: min(780px, 92vw);
  max-height: 90dvh;
  border-radius: 14px;
  color: #213f33;
  background: #fffdf8;
  box-shadow: 0 30px 90px #0005;
}
dialog::backdrop {
  background: #0c231ac7;
  backdrop-filter: blur(4px);
}
dialog .close {
  position: absolute;
  right: 14px;
  top: 10px;
  border: 0;
  background: none;
  font-size: 30px;
  color: #7a856d;
  line-height: 1;
  padding: 4px;
}
dialog h2 {
  font-size: 32px;
  padding-right: 24px;
}
dialog h3 {
  margin-top: 20px;
}
.attached > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e5e9df;
  font-size: 12px;
  padding: 10px 0;
}
.attached span {
  overflow-wrap: anywhere;
}
.attached small {
  display: block;
}
figure {
  margin: 24px 0;
  background: #f1f3e9;
  border-radius: 8px;
  padding: 16px;
}
figure img,
figure video {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 5px;
}
figure audio {
  width: 100%;
}
figcaption {
  font-size: 10px;
  color: #6e7c63;
  overflow-wrap: anywhere;
  margin-top: 12px;
}
.download {
  display: inline-block;
  float: right;
  color: #325a35;
  text-decoration: underline;
}
.audio-art {
  font-size: 80px;
  text-align: center;
  padding: 30px;
  color: #b5aa73;
}
.file-icon {
  text-align: center;
  padding: 30px;
  font-size: 40px;
}
.credits {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #83906e;
}
.card-previews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.card-previews > div > .secondary {
  margin-bottom: 12px;
}
.passcard {
  position: relative;
  background: #fffef9;
  border: 1px solid #d6ddc9;
  border-top: 7px solid #274b37;
  padding: 32px;
  color: #274332;
  overflow: hidden;
}
.card-brand {
  font-family: Georgia, serif;
  font-size: 30px;
  display: flex;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid #dfe5d7;
  padding-bottom: 20px;
  margin-bottom: 25px;
}
.card-brand span {
  font:
    7px system-ui,
    sans-serif;
  letter-spacing: 0.13em;
}
.passcard h2 {
  font-size: 38px;
}
.passcard p {
  font-size: 11px;
}
.passcard dl {
  background: #eef1e6;
  padding: 16px;
  font-size: 12px;
}
.passcard dt {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #86916e;
  margin-top: 5px;
}
.passcard dd {
  margin: 4px 0 14px;
  overflow-wrap: anywhere;
}
.passcard dd:last-child {
  margin-bottom: 0;
}
.secret {
  font-family: monospace;
  font-size: 15px;
}
.card-url {
  overflow-wrap: anywhere;
}
.card-qr {
  width: 115px;
  margin-bottom: 15px;
}
.card-qr svg {
  width: 100%;
  display: block;
}
.passcard ol {
  padding-left: 20px;
  font-size: 10px;
  line-height: 1.8;
}
.passcard .subtle {
  font-size: 9px;
}
#print-cards {
  display: none;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 30px);
  background: #244b35;
  color: white;
  box-shadow: 0 8px 30px #0003;
  border-radius: 8px;
  padding: 14px 22px;
  opacity: 0;
  pointer-events: none;
  z-index: 99;
  max-width: calc(100vw - 35px);
  font-size: 13px;
  transition: 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
#toast.error {
  background: #874d39;
}
@media (min-width: 1400px) {
  .calendar-inner {
    max-width: 1320px;
  }
  .door {
    min-height: 165px;
  }
}
@media (max-width: 1100px) {
  .workspace-main {
    padding: 25px;
  }
  .workspace {
    grid-template-columns: 195px 1fr;
  }
  aside {
    padding: 28px 16px;
  }
  .admin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .design-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .stats article {
    padding: 18px;
  }
  .stats strong {
    font-size: 27px;
  }
  .stats {
    gap: 10px;
  }
  .card-previews {
    grid-template-columns: 1fr;
  }
  .calendar-inner {
    padding-left: 35px;
    padding-right: 35px;
  }
  .login-layout,
  .upload-layout {
    gap: 50px;
  }
}
@media (max-width: 800px) {
  .topbar {
    height: auto;
    min-height: 85px;
    padding: 20px 5%;
    gap: 15px;
  }
  .topbar nav {
    gap: 15px;
    font-size: 10px;
  }
  .brand > span:last-child {
    display: none;
  }
  .brand-mark {
    border: 0;
    padding: 0;
  }
  .calendar-inner {
    padding: 25px;
  }
  .door-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
  }
  .door {
    min-height: 130px;
  }
  .hero {
    padding: 40px 0;
  }
  .workspace {
    display: block;
  }
  aside {
    padding: 20px;
    border: 0;
    border-bottom: 1px solid #e1e5db;
  }
  aside h2,
  aside > .eyebrow {
    display: none;
  }
  aside nav {
    display: flex;
    overflow: auto;
    gap: 5px;
  }
  aside nav button {
    white-space: nowrap;
    padding: 9px 12px;
    font-size: 11px;
  }
  .account {
    flex-direction: row;
    gap: 12px;
    align-items: center;
    padding-top: 15px;
    margin: 0;
  }
  .account small {
    display: none;
  }
  .account button {
    padding: 0;
  }
  .account button:last-child {
    margin-left: auto;
  }
  .workspace-top {
    margin-bottom: 25px;
  }
  .section-heading h1 {
    font-size: 32px;
  }
  .login-layout,
  .upload-layout {
    margin: 40px auto;
    gap: 35px;
  }
  .login-layout h1 {
    font-size: 40px;
  }
  .login-ornament {
    font-size: 100px;
  }
  .login-layout form {
    padding: 23px;
  }
  .inbox-item {
    grid-template-columns: 1fr 210px;
  }
  .design-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .narrow {
    margin: 40px 20px;
  }
  .hero h1 {
    font-size: 46px;
  }
}
@media (max-width: 560px) {
  .topbar {
    padding: 17px 20px;
  }
  .brand-mark {
    font-size: 30px;
  }
  .brand-mark span {
    font-size: 20px;
  }
  .topbar nav {
    gap: 12px;
    font-size: 9px;
  }
  .topbar nav a:last-child {
    padding: 6px 8px;
  }
  .calendar-meta > .eyebrow {
    max-width: 110px;
    line-height: 1.7;
    font-size: 7px;
  }
  .year-picker > span {
    display: none;
  }
  .calendar-inner {
    padding: 20px 17px;
  }
  .hero {
    padding: 30px 0;
  }
  .hero-star {
    font-size: 25px;
    margin-bottom: 18px;
  }
  .hero h1 {
    font-size: 37px;
  }
  .hero p:not(.eyebrow) {
    font-size: 10px;
  }
  .hero .eyebrow {
    font-size: 7px;
  }
  .door-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .door {
    min-height: 110px;
    aspect-ratio: 0.94;
  }
  .door-number {
    font-size: min(var(--number-size), 42px);
  }
  .door-ornament {
    font-size: 12px;
  }
  .door-caption {
    font-size: 6px;
  }
  .calendar-note {
    font-size: 8px;
  }
  footer {
    font-size: 9px;
    flex-direction: column;
    text-align: center;
    padding: 25px 16px;
    gap: 6px;
  }
  .workspace-main {
    padding: 25px 17px;
  }
  .workspace-top .eyebrow {
    font-size: 7px;
    max-width: 180px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  .section-heading h1 {
    font-size: 32px;
  }
  .section-heading p:not(.eyebrow) {
    font-size: 11px;
  }
  .section-heading.compact {
    flex-direction: row;
    align-items: center;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stats article {
    padding: 18px;
  }
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .admin-door {
    padding: 12px;
    min-height: 145px;
  }
  .admin-door .day {
    font-size: 27px;
  }
  .status {
    font-size: 8px;
    padding: 4px 6px;
  }
  .notice {
    font-size: 11px;
    padding: 15px;
    gap: 12px;
  }
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .media-card-body {
    padding: 11px;
  }
  .media-card select {
    font-size: 9px;
    padding: 8px;
  }
  .media-thumb {
    height: 110px;
  }
  .filters {
    flex-direction: column;
    gap: 10px;
  }
  .filters select {
    width: 100%;
  }
  .panel {
    padding: 22px;
  }
  .login-layout,
  .upload-layout {
    grid-template-columns: 1fr;
    padding: 0 20px;
    margin: 20px auto 45px;
    gap: 15px;
  }
  .login-ornament {
    display: none;
  }
  .login-layout h1 {
    font-size: 40px;
  }
  .login-layout > div:first-child,
  .upload-layout > div:first-child {
    padding: 15px 0;
  }
  .inbox-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .inbox-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .inbox-actions .primary {
    grid-column: 1/-1;
  }
  .design-layout {
    grid-template-columns: 1fr;
  }
  .design-controls {
    max-height: 430px;
  }
  .design-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .preview-scroll {
    max-width: 100%;
  }
  .card-previews {
    grid-template-columns: 1fr;
  }
  .passcard {
    padding: 24px;
  }
  .passcard h2 {
    font-size: 33px;
  }
  dialog {
    padding: 35px 20px 25px;
    width: 94vw;
  }
  dialog h2 {
    font-size: 28px;
  }
  .narrow {
    margin: 30px 17px;
  }
  .attached > div {
    font-size: 10px;
  }
  .download {
    float: none;
    display: block;
    margin-top: 8px;
  }
  .table-wrap {
    padding: 12px;
  }
  .account strong {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .snow {
    display: none;
  }
  .door:hover {
    transform: none !important;
  }
}
@page {
  size: A4;
  margin: 15mm;
}
@media print {
  body > * {
    display: none !important;
  }
  #print-cards {
    display: block !important;
  }
  .passcard {
    width: 180mm;
    min-height: 260mm;
    padding: 12mm;
    border: 1px solid #a6b699;
    border-top: 4mm solid #274b37;
    break-after: page;
    break-inside: avoid;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .passcard:last-child {
    break-after: auto;
  }
  .passcard h2 {
    font-size: 36pt;
  }
  .passcard p {
    font-size: 10pt;
  }
  .passcard dt {
    font-size: 8pt;
  }
  .passcard dd {
    font-size: 13pt;
  }
  .passcard ol {
    font-size: 10pt;
    line-height: 1.75;
  }
  .passcard .card-qr {
    width: 34mm;
    float: right;
    margin: 0 0 8mm 8mm;
  }
  .passcard .card-brand {
    font-size: 27pt;
  }
  .passcard .card-brand span {
    font-size: 7pt;
  }
  .passcard .eyebrow {
    font-size: 8pt;
  }
  .passcard .card-url {
    font-size: 9pt;
  }
  .passcard .subtle {
    font-size: 8pt;
  }
}
/* Prevent the preferred aspect ratio from widening narrow grid tracks. */
.door {
  min-width: 0;
  width: 100%;
}
.dialog-status {
  padding: 12px;
  background: #e9f1e3;
  border-radius: 6px;
  font-size: 12px;
}
.dialog-status.error {
  background: #f6e9e1;
  color: #874d39;
}
.door[data-number-position="bottom-right"] .door-number {
  position: absolute;
  right: 9px;
  bottom: 9px;
  display: grid;
  place-items: center;
  min-width: 1.35em;
  min-height: 1.35em;
  padding: 0 0.1em;
  background: #103a34f0;
  border: 1px solid #d9c292a0;
  border-radius: 50%;
  font-size: min(var(--number-size), 34px);
  line-height: 1.15;
  box-shadow: 0 2px 6px #0003;
}
.door[data-number-position="bottom-right"] .door-caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 2px 5px;
  border-radius: 3px;
  background: #103a34e8;
  opacity: 1;
}
.door[data-number-position="bottom-right"] .door-ornament {
  display: none;
}
/* Preview breakpoints follow the preview canvas, not the surrounding admin viewport. */
#live-preview #preview-doors {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 17px;
}
#live-preview #preview-doors .door {
  min-height: 145px;
  aspect-ratio: 1.08;
}
#live-preview .mini-hero {
  padding: 24px 0 30px;
}
#live-preview .mini-hero h2 {
  font-size: 48px;
}
#live-preview #preview-doors .door-number {
  font-size: var(--number-size);
}
#live-preview #preview-doors .door-caption {
  font-size: 7px;
}
#live-preview
  #preview-doors
  .door[data-number-position="bottom-right"]
  .door-number {
  font-size: min(var(--number-size), 34px);
}
@container (max-width:799px) {
  #live-preview #preview-doors {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
  }
  #live-preview #preview-doors .door {
    min-height: 130px;
  }
}
@container (max-width:559px) {
  #live-preview #preview-doors {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  #live-preview #preview-doors .door {
    min-height: 110px;
    aspect-ratio: 0.94;
  }
  #live-preview .mini-hero h2 {
    font-size: 37px;
  }
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;
}
.card-brand .brand-logo {
  width: 46px;
  height: 46px;
  vertical-align: middle;
  margin-right: 8px;
}

.admin-preview-notice {
  position: relative;
  z-index: 1;
  padding: 14px 18px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: #fff5de;
  color: #183c32;
  font-size: 14px;
}
.admin-preview-notice a {
  font-weight: 700;
  text-decoration: underline;
}

.pdf-viewer {
  display: block;
  width: 100%;
  height: 70vh;
  min-height: 320px;
  max-height: 900px;
  border: 1px solid #d6dfdc;
  border-radius: 8px;
  background: #fff;
}

.hero-intro {
  white-space: pre-line;
}
.hero h1,
.mini-hero h2,
.hero-intro {
  overflow-wrap: anywhere;
}
