[hidden] { display: none !important; }
body { color-scheme: dark; background: #141210; color: #E8E2D6; }
/* Site nav stays after Enter (Vera 9 Oct lock). Footer still hides inside the room. */
body.is-in footer { display: none; }
body.is-in .portal-app { padding-top: 72px; }
@media (max-width: 760px) { body.is-in .portal-app { padding-top: 56px; } }
nav.site { transition: transform .45s ease; background: #141210; }
nav.site.is-away { transform: translateY(-100%); }

#door {
  box-sizing: border-box;
  width: min(440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 0 72px;
}
#door .kicker {
  text-align: center;
  margin: 0 0 14px;
  font-family: Outfit, sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #A48455;
}
#door h1 {
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: 0;
  color: #E8E2D6;
  margin: 0 0 12px;
}
#door form { margin-top: 28px; text-align: left; }
#door label {
  display: grid;
  gap: 0;
  font-family: Outfit, sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #a48455;
}
#door input {
  font-family: Outfit, sans-serif;
  font-weight: 300;
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
  color: #E8E2D6;
}
#door .gate-note {
  margin: 16px 0 0;
  font-family: Outfit, sans-serif;
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  color: #E8E2D6;
}

.portal-app { max-width: none; width: auto; margin: 0 48px; color: #E8E2D6; }
.portal-app h1 {
  text-align: left;
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: 0;
  color: #E8E2D6;
  margin: 0 0 12px;
}
.portal-app .kicker { text-align: left; margin-left: 0; margin-right: 0; }
.portal-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 28px 0 0; }
.portal-bar .kicker { margin: 0; }
.portal-app .page { padding: 28px 0 24px; max-width: none; }
.room-head { padding-top: 8px; }
.portal-app .line, .portal-app .fine, .portal-app dd, .portal-app li, .portal-app p {
  font-family: Outfit, sans-serif;
  font-weight: 300;
}
.fine { color: #8a7348; }
.list { list-style: none; padding: 0; margin: 0 0 28px; }
.list a { color: #E8E2D6; text-decoration: none; font-family: "Cormorant Garamond", serif; font-size: 24px; }
.list li { padding: 12px 0; border-bottom: 1px solid rgba(232,226,214,0.18); }
.list span { display: block; font-family: Outfit, sans-serif; font-weight: 300; font-size: 15px; color: #8a7348; }
.sheets { max-width: none; margin: 0; padding: 0 0 80px; }
.sheets article { padding: 28px 0 8px; border-top: 1px solid rgba(232,226,214,0.18); }
.log { list-style: none; padding: 0; margin: 0; }
.log li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(232,226,214,0.12); font-size: 15px; }
.todo { max-height: none; overflow: visible; }
.thread {
  max-height: 320px;
  overflow: auto;
  border: 0;
  padding: 0;
  scrollbar-width: thin;
}
.composer {
  display: flex;
  gap: 8px;
  border: 0;
  border-top: 1px solid rgba(232,226,214,0.18);
  padding: 12px 0 0;
  margin-top: 16px;
}
.composer input {
  flex: 1;
  background: transparent;
  color: inherit;
  border: 0;
  font-family: Outfit, sans-serif;
  font-weight: 300;
  font-size: 15px;
}
.composer input::placeholder { color: transparent; }
.sched { max-height: 214px; overflow: auto; scrollbar-width: none; }
.sched-row { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(232,226,214,0.12); }
.item-name { position: sticky; left: 0; background: #141210; }
.months { position: sticky; top: 0; background: #141210; z-index: 2; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #a48455; padding: 8px 0; }
.nora { border: 0; padding: 0; }
.nora textarea { width: 100%; min-height: 88px; background: transparent; color: inherit; border: 0; border-bottom: 1px solid rgba(232,226,214,0.35); font-family: Outfit, sans-serif; font-weight: 300; font-size: 15px; }
.say { display: grid; gap: 8px; margin-top: 16px; }
.say input, .say select, .portal-form input {
  font-family: Outfit, sans-serif;
  font-weight: 300;
  font-size: 17px;
  color: #E8E2D6;
  background: transparent;
}
@media (max-width: 760px) {
  #door { width: min(440px, calc(100% - 48px)); margin: 0 auto; padding-top: 88px; }
  .portal-app { margin: 0 24px; width: auto; }
}

.room-top { padding: 8px 0 40px; }
.room-time {
  margin: 0;
  padding: 28px 0 40px;
  border-top: 1px solid rgba(232,226,214,0.18);
  max-width: none;
  width: auto;
}
.room-time .kicker { font-size: 11px; letter-spacing: 0.22em; margin: 0 0 16px; }
.room-time .sched {
  max-height: none;
  overflow: visible;
}
.room-time .time-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(232,226,214,0.12);
}
.room-time .time-row .when { margin: 0; }
.room-time .time-row .what { margin: 0; }
.room-time .door-fields {
  max-width: 400px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(232,226,214,0.18);
}
.room-time .door-fields label {
  margin: 0 0 8px;
}
.room-time .door-fields .door-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 8px;
}
.room-time .door-fields .door-pair label { margin: 0; }
.room-time .door-fields button { margin-top: 4px; }
.room-time[hidden] { display: none !important; }

.stage {
  margin: 8px 0 0;
  font-family: Outfit, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  color: #E8E2D6;
}

.meta {
  margin: 6px 0 0;
  font-family: Outfit, sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(232,226,214,0.72);
}
.meta[hidden] { display: none !important; }
.room-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 48px;
  align-items: start;
  padding-bottom: 80px;
}
.work { display: none; }
.work.has {
  display: block;
  position: relative;
  left: auto;
  width: auto;
  margin-left: 0;
  border-top: 1px solid rgba(232,226,214,0.55);
}
.work img { display: block; width: 100%; height: auto; margin: 0; }
.quiet {
  max-width: none;
  width: 400px;
  margin-top: 0;
  padding-bottom: 0;
  position: sticky;
  top: 28px;
  align-self: start;
  max-height: calc(100vh - 56px);
  overflow: auto;
  scrollbar-width: thin;
}
.quiet article { padding: 40px 0 0; margin: 0; border-top: 1px solid rgba(232,226,214,0.18); }
.quiet .kicker { font-size: 11px; letter-spacing: 0.22em; }
@media (max-width: 900px) {
  .room-body {
    display: block;
  }
  .quiet {
    width: auto;
    max-width: none;
    margin-top: 72px;
    position: static;
    max-height: none;
    overflow: visible;
  }
  .room-top { padding-bottom: 28px; }
  .room-time {
    padding-bottom: 48px;
  }
  .room-time .time-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
@media (max-width: 760px) {
  .room-top { padding-bottom: 72px; }
}


.quiet article[hidden] { display: none !important; }

.todo-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 12px;
  font-family: Outfit, sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.35;
  color: #E8E2D6;
}
.todo-row input {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin: 3px 0 0;
  flex: 0 0 14px;
  border: 1px solid #E8E2D6;
  background: transparent;
  border-radius: 0;
}
.todo-row input:checked {
  background: #E8E2D6;
}
.todo-row.is-done {
  opacity: 0.5;
}
.todo-row.is-done input {
  border-color: rgba(232,226,214,0.5);
}

.note { margin: 0 0 12px; }
.note .who {
  margin: 0 0 4px;
  font-family: Outfit, sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: none;
  color: #a48455;
}
.note .body {
  margin: 0;
  font-family: Outfit, sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.35;
  color: #E8E2D6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.note.is-old { opacity: 0.45; }

#history { list-style: none; padding: 0; margin: 0; }
.hist-row { margin: 0 0 12px; }
.hist-row .when {
  margin: 0 0 4px;
  font-family: Outfit, sans-serif;
  font-weight: 400;
  font-size: 11px;
  color: #a48455;
}
.hist-row .what {
  margin: 0;
  font-family: Outfit, sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.35;
  color: #E8E2D6;
}

.file-line {
  display: block;
  margin: 0 0 12px;
  font-family: Outfit, sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.35;
  color: #E8E2D6;
  text-decoration: none;
}
.file-line:hover { color: #a48455; }
.quiet .kicker.sub { margin-top: 20px; }

.door-fields { margin-top: 28px; }
.door-fields label {
  display: grid;
  gap: 0;
  font-family: Outfit, sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #a48455;
  margin: 0 0 16px;
}
.door-fields input {
  font-family: Outfit, sans-serif;
  font-weight: 300;
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
  color: #E8E2D6;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(232,226,214,0.35);
  padding: 8px 0;
  width: 100%;
}
.door-fields input::placeholder {
  color: rgba(232,226,214,0.35);
  opacity: 1;
  font-weight: 300;
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
}
.door-fields button {
  font-family: Outfit, sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #E8E2D6;
  background: none;
  border: 0;
  border-bottom: 1px solid #E8E2D6;
  padding: 0 0 4px;
  cursor: pointer;
}
.time-row { margin: 0 0 12px; }
.time-row .when {
  margin: 0 0 4px;
  font-family: Outfit, sans-serif;
  font-weight: 400;
  font-size: 11px;
  color: #a48455;
}
.time-row .what {
  margin: 0;
  font-family: Outfit, sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.35;
  color: #E8E2D6;
}

.portal-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 28px 0 0;
}
.portal-bar button {
  font-family: Outfit, sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #E8E2D6;
  background: none;
  border: 0;
  border-bottom: 1px solid #E8E2D6;
  padding: 0 0 4px;
  cursor: pointer;
}
.portal-bar .kicker { margin: 0; }


#welcome {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #141210;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  opacity: 1;
  transition: opacity 1s ease;
}
#welcome[hidden] { display: none !important; }
#welcome.is-out { opacity: 0; pointer-events: none; }
#welcome h1 {
  margin: 0 0 28px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: 0;
  color: #E8E2D6;
  text-align: center;
}
#welcome p {
  margin: 0 0 12px;
  max-width: 28em;
  font-family: Outfit, sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.45;
  color: #E8E2D6;
  text-align: center;
}
#welcome p:last-of-type { margin-bottom: 40px; }
#welcome button {
  font-family: Outfit, sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #E8E2D6;
  background: none;
  border: 0;
  border-bottom: 1px solid #E8E2D6;
  padding: 0 0 4px;
  cursor: pointer;
}
