/* The platform: design turns 2 to 10 of the Crest Hall handoff (design/platform),
   loaded after crest-hall.css, whose tokens it uses. Where these rules restate
   something from crest-hall.css, the platform handoff supersedes it. */

:root {
  --warm-red: #E9B7A8;
  --red: #C0563A;
  --live: #7FB98A;
  --parchment-82: rgba(232, 223, 200, .82);
  --panel: linear-gradient(180deg, rgba(35, 56, 44, .94), rgba(17, 27, 21, .94));
  --card: linear-gradient(180deg, rgba(35, 56, 44, .9), rgba(17, 27, 21, .9));
  --bar: rgba(13, 21, 15, .72);
  --row-rule: 1px solid rgba(201, 162, 74, .14);
}

/* ---------- buttons ---------- */
.btn-brass.sm { padding: 13px 26px; font-size: 13px; }
.btn-brass.xs { padding: 12px 22px; font-size: 12px; }
.btn-brass.full, .field.full { width: 100%; box-sizing: border-box; flex: none; }
.btn-line, .btn-quiet-line, .btn-danger { padding: 10px 18px; border-radius: 0; font-family: var(--caps); font-size: 12px; letter-spacing: .16em; cursor: pointer; white-space: nowrap; }
.btn-line { background: transparent; border: 1px solid var(--brass); color: var(--brass); }
.btn-line:hover { background: rgba(201, 162, 74, .15); color: var(--brass); }
.btn-quiet-line { background: transparent; border: 1px solid rgba(232, 223, 200, .4); color: rgba(232, 223, 200, .9); }
.btn-quiet-line:hover { border-color: var(--parchment); }
.btn-danger { background: var(--red); border: 0; color: #150C08; }
.btn-danger:hover { background: #D66A4C; }
button.linklike { padding: 0; border: 0; background: none; font: inherit; color: var(--brass); cursor: pointer; }
button.linklike:hover, a.quiet:hover, button.linklike.quiet:hover { color: var(--brass-bright); }
a.quiet, button.linklike.quiet { color: rgba(232, 223, 200, .7); }
.inline { display: inline; margin: 0; }

/* ---------- the signed-out screens (2a, 2b, 2c) ---------- */
.banner.slim { width: 430px; gap: 28px; padding: 42px 60px 38px; }
.banner.slim.wide { width: 470px; gap: 24px; padding: 40px 56px 36px; }
.banner.slim .form-block { width: 100%; }
.crest.small { width: 104px; height: 104px; }
.crest.small .glow { inset: -22px; }
.crest.small .ring-b { inset: 13px; }
.crest.small .ring-c { inset: 30px; }
.crest.small .diamond, .crest.small .square { width: 70px; height: 70px; }
.crest.small .inner { width: 34px; height: 34px; }
.crest.small .core { width: 12px; height: 12px; }
.crest.small .pip { display: none; }
.crest-block.small { gap: 26px; }
.wordmark.small { font-size: 14px; }
.stack { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.lede { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.gate-heading.big { font-size: 32px; }
.lede .gate-line { max-width: none; }
.gate-line.big { font-size: 17px; }
.hair { width: 56px; height: 1px; background: rgba(201, 162, 74, .5); }
.fine { margin: 0; font-size: 13px; line-height: 1.55; color: rgba(232, 223, 200, .6); text-align: center; }
.aside-link { font-size: 14px; font-style: italic; }
.or { font-size: 15px; color: rgba(232, 223, 200, .7); }
.field-code { font-size: 20px; letter-spacing: .42em; }

.providers { flex-direction: column; }
.btn-provider { height: auto; padding: 13px; gap: 12px; font-size: 15px; }
.btn-provider.is-google:hover { border-color: #E3E3E3; }
.btn-provider.is-discord { background: #5865F2; border: 0; color: #FFFFFF; }
.btn-provider.is-discord:hover { background: #6B76F5; color: #FFFFFF; }

.gate-error, .error-note { box-sizing: border-box; width: 100%; max-width: none; margin: 0; padding: 12px 14px; background: rgba(13, 21, 15, .8); border-left: 2px solid var(--red); font-size: 14px; line-height: 1.5; color: var(--warm-red); text-align: left; }
.note-block { box-sizing: border-box; margin: 0; padding: 14px 16px; background: rgba(13, 21, 15, .8); border-left: 2px solid var(--brass); font-size: 15px; line-height: 1.6; color: var(--parchment); }
.note-block.soft { border-left-color: rgba(201, 162, 74, .5); color: rgba(232, 223, 200, .9); }
.note-block.small { font-size: 14px; color: rgba(232, 223, 200, .85); }
.confirm-block { box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; padding: 16px; background: rgba(192, 86, 58, .14); border-left: 2px solid var(--red); }
.confirm-block p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--warm-red); }
.confirm-block .buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.confirm-block form { margin: 0; }

/* ---------- form panels (3b, 3c, 6b) ---------- */
.banner.form { align-items: stretch; gap: 26px; padding: 42px 52px 38px; width: 520px; }
.banner.form.wide { width: 560px; gap: 24px; padding: 40px 52px 36px; }
.banner.form form { display: flex; flex-direction: column; gap: 22px; margin: 0; }
.eyebrow { margin: 0; font-family: var(--caps); font-size: 11px; letter-spacing: .22em; color: var(--brass); }
.eyebrow.xs { font-size: 10px; }
.panel-head { display: flex; flex-direction: column; gap: 10px; }
.panel-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1.2; color: var(--parchment); }
.panel-lede { margin: 0; font-size: 16px; line-height: 1.6; color: var(--parchment-78); }
.fieldset { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.label, .fieldset legend { padding: 0; margin: 0 0 0; font-family: var(--caps); font-size: 11px; letter-spacing: .2em; color: rgba(232, 223, 200, .78); }
.label .aside { font-family: var(--body); font-size: 13px; letter-spacing: .04em; color: rgba(232, 223, 200, .58); }
.field.name { font-size: 17px; }
textarea.field { line-height: 1.6; resize: vertical; min-height: 5.2em; }
.hint { margin: 0; font-size: 14px; color: rgba(232, 223, 200, .62); overflow-wrap: anywhere; }
.hint .brass, .brass { color: var(--brass); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 4px; }
.form-foot .fine { text-align: left; max-width: 240px; }

/* Diamond checkboxes and radios: a real input, drawn as a gem */
.choices { display: flex; flex-direction: column; }
.choice { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line-field); font-size: 16px; color: rgba(232, 223, 200, .82); cursor: pointer; }
.choice + .choice { border-top: 0; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice .gem { flex: none; width: 15px; height: 15px; box-sizing: border-box; border: 1px solid rgba(232, 223, 200, .45); transform: rotate(45deg); }
.choice:has(input:checked) { background: rgba(201, 162, 74, .14); border-color: rgba(201, 162, 74, .45); color: var(--parchment); }
.choice + .choice:has(input:checked) { border-top: 0; }
.choice input:checked + .gem { background: var(--brass); border-color: var(--brass); }
.choice:has(input:focus-visible) { outline: 2px solid var(--brass-bright); outline-offset: 2px; }
.choice .aside { margin-left: auto; font-size: 13px; color: rgba(232, 223, 200, .75); }

/* ---------- interior pages: the bar and the switcher ---------- */
.is-room { background: radial-gradient(120% 80% at 50% -10%, #23382C 0%, #16241C 50%, #0D150F 100%); }
.bar { position: relative; z-index: 8; display: flex; align-items: center; justify-content: space-between; gap: 12px 22px; flex-wrap: wrap; padding: 18px 34px; background: var(--bar); border-bottom: 1px solid var(--hairline); }
.bar-left { display: flex; align-items: center; gap: 18px; min-width: 0; }
.bar-mark { flex: none; width: 22px; height: 22px; box-sizing: border-box; border: 1.2px solid var(--brass); transform: rotate(45deg); }
.bar-sep { flex: none; width: 1px; height: 20px; background: rgba(201, 162, 74, .25); }
.bar-label { font-family: var(--caps); font-size: 12px; letter-spacing: .2em; color: var(--brass); }
.bar-right { display: flex; align-items: center; gap: 22px; font-size: 14px; color: rgba(232, 223, 200, .8); }
.bar-right .who-name { color: var(--parchment); }
.chip { font-family: var(--caps); font-size: 10px; letter-spacing: .18em; color: var(--brass); border: 1px solid rgba(201, 162, 74, .5); padding: 3px 7px; white-space: nowrap; }
.chip.quiet { color: rgba(232, 223, 200, .75); border-color: rgba(232, 223, 200, .3); }
.tag { font-family: var(--caps); font-size: 10px; letter-spacing: .16em; color: var(--brass); white-space: nowrap; }
.tag.quiet { color: rgba(232, 223, 200, .6); }

.switcher { position: relative; min-width: 0; }
.switcher > summary { display: flex; align-items: center; gap: 10px; padding: 7px 12px; margin: -8px 0; border: 1px solid transparent; list-style: none; cursor: pointer; }
.switcher > summary::-webkit-details-marker { display: none; }
.switcher > summary:hover, .switcher[open] > summary { border-color: var(--brass); background: rgba(201, 162, 74, .12); }
.switch-names { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.switch-group { font-family: var(--display); font-size: 17px; line-height: 1.1; color: var(--parchment); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switch-campaign { font-size: 12px; color: rgba(232, 223, 200, .75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { flex: none; width: 7px; height: 7px; border-right: 1.5px solid rgba(201, 162, 74, .8); border-bottom: 1.5px solid rgba(201, 162, 74, .8); transform: rotate(45deg) translate(-2px, -2px); }
.switch-panel { position: absolute; z-index: 9; top: calc(100% + 17px); left: -40px; width: 376px; max-width: calc(100vw - 32px); background: linear-gradient(180deg, rgba(35, 56, 44, .98), rgba(17, 27, 21, .98)); border: 1px solid var(--line); border-top: 2px solid var(--brass); box-shadow: 0 26px 60px rgba(0, 0, 0, .7); }
.switch-panel .eyebrow { padding: 16px 20px 10px; }
.switch-table { display: flex; flex-direction: column; gap: 10px; padding: 12px 20px 14px; border-top: var(--row-rule); }
.switch-table.is-here { background: rgba(201, 162, 74, .07); }
.switch-table-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch-table-name { font-family: var(--display); font-size: 20px; color: rgba(232, 223, 200, .85); }
.is-here .switch-table-name, .switch-table-name:hover { color: var(--parchment); }
.switch-rows { display: flex; flex-direction: column; gap: 2px; padding-left: 2px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 22px; padding: 9px 12px; border-left: 2px solid transparent; font-size: 15px; color: rgba(232, 223, 200, .8); }
.switch-row:hover { background: rgba(201, 162, 74, .1); border-left-color: rgba(201, 162, 74, .5); color: var(--parchment); }
.switch-row.is-here { background: rgba(201, 162, 74, .16); border-left-color: var(--brass); color: var(--parchment); }
.switch-row.minor { font-size: 14px; color: rgba(232, 223, 200, .75); }
.switch-foot { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid rgba(201, 162, 74, .2); font-family: var(--caps); font-size: 12px; letter-spacing: .2em; color: var(--brass); }
.switch-foot:hover { background: rgba(201, 162, 74, .1); }
.switch-foot .plus { font-family: var(--display); font-size: 18px; letter-spacing: 0; }
.hall:has(.switcher[open]) .dims { opacity: .32; }

/* ---------- interior page bodies ---------- */
.room { position: relative; z-index: 7; flex: 1; display: flex; flex-direction: column; gap: 20px; padding: 30px 34px 34px; }
.room.narrow { width: 100%; max-width: 760px; box-sizing: border-box; margin: 0 auto; }
.room-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.room-head > div { display: flex; flex-direction: column; gap: 6px; }
.room-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1.05; color: var(--parchment); }
.room-sub { margin: 0; font-size: 15px; color: rgba(232, 223, 200, .78); }
.section { display: flex; flex-direction: column; gap: 8px; }
.list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); background: rgba(13, 21, 15, .55); }
.list.dashed { border: 1px dashed rgba(201, 162, 74, .45); background: rgba(13, 21, 15, .4); }
.list > li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 18px; border-bottom: var(--row-rule); font-size: 16px; color: var(--parchment); }
.list > li:last-child { border-bottom: 0; }
.list.tight > li { padding: 11px 14px; font-size: 15px; }
.list .muted { font-size: 14px; color: rgba(232, 223, 200, .8); }
.list .dim { font-size: 14px; color: rgba(232, 223, 200, .75); }
.list .warn { font-size: 14px; color: var(--warm-red); }
.list .you { font-size: 14px; color: rgba(232, 223, 200, .6); }
.actions { display: flex; gap: 16px; justify-content: flex-end; font-size: 14px; }
.actions form { margin: 0; }
.list.members > li { display: grid; grid-template-columns: 200px 1fr 150px 180px; }
.list.waiting > li { display: grid; grid-template-columns: 260px 1fr 190px 180px; }
.list.members .who, .list.waiting .who { display: flex; align-items: center; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.room-foot { position: relative; z-index: 8; margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 15px 34px; background: var(--bar); border-top: 1px solid var(--hairline); font-size: 14px; color: rgba(232, 223, 200, .75); }

/* ---------- the campaign page (7a, 7c) ---------- */
.next-panel { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; background: rgba(13, 21, 15, .75); border: 1px solid rgba(201, 162, 74, .35); }
.next-panel p { margin: 0; }
.next-panel .value { font-family: var(--display); font-size: 25px; line-height: 1.1; color: var(--parchment); }
.next-panel .aside { font-size: 14px; color: rgba(232, 223, 200, .85); }
.card-left { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-left: 2px solid var(--brass); }
.spoke-links { display: flex; gap: 10px; }
.spoke-link { flex: 1; min-height: 20px; padding: 13px 10px; text-align: center; border: 1px solid var(--line-field); font-size: 15px; color: rgba(232, 223, 200, .9); }
.spoke-link:hover { border-color: var(--brass); color: var(--parchment); }
.spoke-link.is-soon { border-style: dashed; border-color: rgba(201, 162, 74, .4); color: rgba(232, 223, 200, .75); }
.spoke-link .tag { display: block; margin-top: 4px; }

/* ---------- empty states (10b) ---------- */
.empty-card { box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; max-width: 420px; padding: 26px 24px; background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--brass); }
.empty-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 25px; line-height: 1.2; color: var(--parchment); }
.empty-text { margin: 0; font-size: 15px; line-height: 1.65; color: var(--parchment-82); }
.empty-card .btn-brass, .empty-card form { align-self: flex-start; margin: 0; }
.empty-strip { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: rgba(13, 21, 15, .6); border: 1px solid var(--line); }

/* ---------- your account (6c) ---------- */
.account { display: flex; gap: 26px; align-items: flex-start; }
.account-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.account-side { width: 330px; flex: none; display: flex; flex-direction: column; gap: 20px; }
.inline-form { display: flex; gap: 10px; margin: 0; }
.inline-form .field { flex: 1; width: auto; }
.side-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: rgba(13, 21, 15, .6); border: 1px solid var(--line); }
.side-card p { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(232, 223, 200, .8); }
.side-card .line { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; }
.side-card .line .dim { font-size: 13px; color: rgba(232, 223, 200, .75); }
.side-card .sep-line { height: 1px; margin: 4px 0; background: rgba(201, 162, 74, .18); }
.side-card.danger { background: rgba(192, 86, 58, .1); border-color: rgba(192, 86, 58, .4); }
.side-card.danger .eyebrow { color: var(--warm-red); }
.side-card.danger p, .side-card.danger summary { color: rgba(233, 183, 168, .95); }
.side-card.danger summary { font-size: 14px; cursor: pointer; }
.mark { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; }
.mark.gem { box-sizing: border-box; width: 12px; height: 12px; margin: 0 2px; border: 1px solid rgba(201, 162, 74, .6); transform: rotate(45deg); }
.with-mark { display: flex; align-items: center; gap: 12px; }

/* ---------- the hub on tablets and phones (9a, 9b) ---------- */
.hub .status { order: 99; }
.door-go, .door-desc .short { display: none; }
.door-title span { display: block; }
@media (max-width: 1000px) {
  .hub .hero { align-items: flex-start; text-align: left; padding: 26px 24px 18px; }
  .hub .hero h1 { font-size: 34px; }
  .hub .hero p { font-size: 16px; }
  .hub .status { order: 0; margin: 0 24px 18px; border: 1px solid rgba(201, 162, 74, .35); background: rgba(13, 21, 15, .75); }
  .hub .status-half { padding: 16px 18px; }
  .hub .status-rule { display: none; }
  .hub .status-half + .status-rule + .status-half { flex: none; margin-left: auto; }
  .hub .status-half + .status-rule + .status-half .status-label, .hub .status-half + .status-rule + .status-half .status-aside { display: none; }
  .hub .status-half + .status-rule + .status-half .status-value { font-family: var(--body); font-size: 14px; color: rgba(232, 223, 200, .8); }
  .doors { grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 0 24px 26px; }
  .door { height: auto; box-sizing: border-box; flex-direction: row; align-items: center; gap: 14px; padding: 16px; border-top-width: 1px; border-left: 2px solid var(--brass); }
  .door.is-soon { border-left-color: rgba(201, 162, 74, .45); }
  .door-eyebrow { display: none; }
  .door-body { gap: 4px; min-width: 0; }
  .door-title { font-size: 20px; }
  .door-title span { display: inline; }
  .door-desc { font-size: 13px; }
  .door-go { display: block; margin-left: auto; font-family: var(--caps); font-size: 10px; letter-spacing: .16em; color: var(--brass); white-space: nowrap; }
  .door.is-soon .door-go { color: rgba(201, 162, 74, .6); }
  .door-more { grid-column: 1 / -1; height: auto; flex-direction: row; gap: 14px; padding: 18px; font-size: 15px; }
  .more-list br { display: none; }
  .more-soon { display: none; }
  .account { flex-direction: column; }
  .account-side { width: 100%; }
  .list.members > li, .list.waiting > li { grid-template-columns: 1fr auto; }
  .list.members > li > :nth-child(3), .list.waiting > li > :nth-child(3) { grid-column: 1; }
}
@media (max-width: 640px) {
  .banner.slim, .banner.slim.wide, .banner.form, .banner.form.wide { width: 100%; padding: 30px 20px 28px; }
  .bar { padding: 14px 16px; }
  .bar-mark, .bar-sep, .bar-right .said { display: none; }
  .hub .hero { display: none; }
  .hub .status { margin: 18px 16px 16px; flex-direction: column; }
  .hub .status-half { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  .hub .status-half + .status-rule + .status-half { display: none; }
  .hub .status-value { font-size: 26px; line-height: 1.1; }
  .doors { grid-template-columns: 1fr; gap: 10px; padding: 0 16px 20px; }
  .door-title span { display: inline; }
  .door-desc .long { display: none; }
  .door-desc .short { display: inline; }
  /* crest-hall.css gave phone cards a 150px floor; rows don't need it */
  .door { min-height: 0; gap: 14px; }
  .door-more { padding: 16px; font-size: 14px; }
  .room { padding: 18px 16px 24px; }
  .room-title { font-size: 30px; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .fine { max-width: none; }
  .list.members > li, .list.waiting > li { grid-template-columns: 1fr; gap: 6px; }
  .actions { justify-content: flex-start; }
  .spoke-links { flex-wrap: wrap; }
  .switch-panel { left: -8px; }
}

/* ---------- small pieces the templates share ---------- */
.hub-empty { position: relative; z-index: 7; display: flex; justify-content: center; padding: 0 34px 26px; }
.room .hub-empty { padding: 40px 0; }
.more-list span { display: block; }
.banner.form .aside-link { margin: 0; font-style: normal; }
.with-mark svg { flex: none; width: 16px; height: 16px; }
details.add { font-size: 14px; }
details.add > summary { display: inline-block; cursor: pointer; color: var(--brass); list-style: none; }
details.add > summary::-webkit-details-marker { display: none; }
details.add[open] > summary { margin-bottom: 10px; }
.side-card details form { margin-top: 12px; }
.side-card .check { color: rgba(233, 183, 168, .95); }
@media (max-width: 1000px) {
  .more-list span { display: inline; }
  .more-list span + span::before { content: " · "; }
}
@media (max-width: 640px) {
  .hub-empty { padding: 0 16px 16px; }
  .inline-form { flex-direction: column; }
}

/* one-time notices on the hub */
.hub-note { position: relative; z-index: 7; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 34px 20px; }
.hub-note > * { width: 100%; max-width: 720px; }
@media (max-width: 640px) { .hub-note { padding: 0 16px 16px; } }

/* your character, on a campaign's page */
.char-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.char-name { font-family: var(--display); font-size: 24px; color: var(--parchment); }
.card-left .dim { font-size: 14px; color: rgba(232, 223, 200, .8); }
a.muted { color: rgba(232, 223, 200, .85); }
a.muted:hover { color: var(--brass-bright); }

/* ---------- breadcrumbs, on sub-pages (4b) ---------- */
.bar-left.has-crumbs { gap: 14px; }
.crumbs { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; color: rgba(232, 223, 200, .75); }
.crumbs a { white-space: nowrap; }
.crumb-sep { color: rgba(232, 223, 200, .4); }
.crumb-here { min-width: 0; color: var(--parchment); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- House Notes: the wall (4a) ---------- */
.notes-lede { font-size: 16px; color: rgba(232, 223, 200, .75); }
.note-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.note-card { display: flex; flex-direction: column; gap: 12px; min-height: 200px; box-sizing: border-box; padding: 20px; background: var(--card); border: 1px solid var(--line); border-top: 2px solid var(--brass); color: var(--parchment); }
.note-card:hover { border-color: var(--brass); color: var(--parchment); }
.note-card-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.2; color: var(--parchment); overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.note-card-text { flex: 1; font-size: 14px; line-height: 1.6; color: rgba(232, 223, 200, .78); overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.note-card-sig { font-size: 12px; letter-spacing: .02em; color: rgba(232, 223, 200, .8); }
.note-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 200px; box-sizing: border-box; padding: 20px; border: 1px dashed rgba(201, 162, 74, .5); font-size: 14px; line-height: 1.5; text-align: center; color: rgba(232, 223, 200, .72); }
.note-add:hover { border-color: var(--brass); background: rgba(201, 162, 74, .06); color: var(--parchment); }
.note-add .plus { font-family: var(--display); font-size: 30px; line-height: 1; color: rgba(201, 162, 74, .7); }
.notes-empty .eyebrow { white-space: nowrap; }
.notes-empty p:not(.eyebrow) { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(232, 223, 200, .85); }
.notes-empty a { margin-left: auto; font-size: 15px; white-space: nowrap; }

/* ---------- House Notes: one note open (4b) ---------- */
.note-room { display: flex; gap: 24px; }
.note-main { flex: 1; min-width: 0; box-sizing: border-box; display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 26px 28px; background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--brass); }
.note-rail { width: 320px; flex: none; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; padding: 24px 22px; background: rgba(13, 21, 15, .6); border: 1px solid var(--line); }
.note-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1.15; color: var(--parchment); overflow-wrap: anywhere; }
.note-sig { margin: 0; font-size: 13px; color: rgba(232, 223, 200, .75); }
.note-body { max-width: 68ch; font-size: 16px; line-height: 1.7; color: var(--parchment); overflow-wrap: anywhere; }
.note-body p { margin: 0 0 .9em; }
.note-body p:last-child { margin-bottom: 0; }
.note-body a { text-decoration: underline; text-decoration-color: rgba(201, 162, 74, .45); text-underline-offset: 3px; }
.note-body .dim { color: rgba(232, 223, 200, .6); }
.note-actions { display: flex; gap: 10px; margin-top: 6px; }
.note-flag { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; margin: 0; padding: 12px 14px; background: rgba(13, 21, 15, .8); border-left: 2px solid var(--brass); font-size: 14px; line-height: 1.5; color: var(--parchment); }
.note-flag p, .note-flag form { margin: 0; }
.note-flag.soft { border-left-color: rgba(201, 162, 74, .5); color: rgba(232, 223, 200, .88); }
.note-flag-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

.note-editor .field { display: block; width: 100%; box-sizing: border-box; height: auto; flex: none; }
.note-editor .field::placeholder { letter-spacing: normal; }
.note-editor .note-title-field { padding: 12px 14px; font-family: var(--display); font-size: 26px; }
.note-editor .note-body-field { flex: 1 0 auto; min-height: 320px; padding: 14px; font-family: var(--body); font-size: 16px; line-height: 1.7; resize: vertical; }
.note-editor-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; }
.note-editor-foot .hint { font-size: 13px; color: rgba(232, 223, 200, .8); }
.note-editor-foot .buttons { display: flex; gap: 10px; }
.note-editor-foot .btn-quiet-line { padding: 12px 22px; font-size: 12px; border-color: rgba(232, 223, 200, .35); color: rgba(232, 223, 200, .85); }
.clash-banner { padding: 12px 14px; background: rgba(192, 86, 58, .14); border-left: 2px solid var(--red); }
.clash-banner p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--warm-red); }
.clash-banner a { color: var(--brass-bright); }
.note-clash { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid rgba(201, 162, 74, .18); }

.history { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.history-entry { display: flex; flex-direction: column; gap: 3px; padding-left: 14px; border-left: 2px solid rgba(201, 162, 74, .3); }
.history-entry:hover { border-left-color: var(--brass-bright); }
.history-entry.is-latest { border-left-color: var(--brass); }
.history-entry.is-shown { background: rgba(201, 162, 74, .1); }
.history-who { font-size: 15px; color: rgba(232, 223, 200, .9); }
.is-latest .history-who, .is-shown .history-who, .history-entry:hover .history-who { color: var(--parchment); }
.history-when { font-size: 13px; line-height: 1.45; color: rgba(232, 223, 200, .7); overflow-wrap: anywhere; }
.history-more { font-size: 13px; }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 8px; font-size: 14px; }
.rail-foot form { margin: 0; }
.rail-fine { margin: 0; font-size: 12px; line-height: 1.5; color: rgba(232, 223, 200, .6); }
.rail-text { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(232, 223, 200, .8); }

/* what changed between two versions */
.diff { display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.diff p { margin: 0; padding: 3px 10px; border-left: 2px solid transparent; }
.diff .same { color: rgba(232, 223, 200, .7); }
.diff .skip { font-size: 13px; font-style: italic; color: rgba(232, 223, 200, .6); }
.diff .gone { border-left-color: var(--red); background: rgba(192, 86, 58, .12); color: var(--warm-red); text-decoration: line-through; text-decoration-color: rgba(233, 183, 168, .55); }
.diff .new { border-left-color: var(--brass); background: rgba(201, 162, 74, .12); color: var(--parchment); }
.diff .changed { border-left-color: rgba(201, 162, 74, .5); color: var(--parchment); }
.diff del { background: rgba(192, 86, 58, .25); color: var(--warm-red); text-decoration: line-through; }
.diff ins { background: rgba(201, 162, 74, .22); color: var(--brass-bright); text-decoration: none; }
.diff .diff-title { color: var(--parchment); }
.note-main.compare { flex: none; }
.compare-pick { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px 16px; margin: 0; }
.compare-pick label { display: flex; flex-direction: column; gap: 6px; font-family: var(--caps); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(232, 223, 200, .78); }
.compare-pick select.field { width: auto; min-width: 230px; height: auto; flex: none; padding: 10px 12px; font-family: var(--body); font-size: 15px; letter-spacing: normal; text-transform: none; }

@media (max-width: 1000px) {
  .note-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .note-room { flex-direction: column; }
  .note-rail { width: 100%; }
}
@media (max-width: 640px) {
  .note-grid { grid-template-columns: 1fr; gap: 10px; }
  .note-card { min-height: 0; }
  .note-add { min-height: 0; flex-direction: row; justify-content: flex-start; gap: 14px; padding: 16px 20px; text-align: left; }
  .note-add br { display: none; }
  .notes-empty { flex-direction: column; align-items: flex-start; }
  .notes-empty a { margin-left: 0; }
  .note-main { padding: 20px 16px; }
  .note-title { font-size: 28px; }
  .note-editor .note-title-field { font-size: 22px; }
  .note-editor .note-body-field { min-height: 240px; }
  .note-editor-foot { flex-direction: column; align-items: stretch; }
  .note-editor-foot .buttons > * { flex: 1; text-align: center; }
}

/* ---------- the owner dashboard (not in the handoff) ---------- */
a.chip:hover { background: rgba(201, 162, 74, .15); color: var(--brass-bright); }
.stat-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-top: 2px solid var(--brass); }
.stat b { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; color: var(--parchment); font-variant-numeric: tabular-nums; }
.stat span { font-family: var(--caps); font-size: 10px; letter-spacing: .18em; color: rgba(232, 223, 200, .78); }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.admin-main, .admin-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.chart-fig { margin: 0; padding: 16px 18px 12px; background: rgba(13, 21, 15, .55); border: 1px solid var(--line); }
.chart { display: block; width: 100%; height: auto; }
.chart .bar, .hbar .bar { fill: var(--brass); }
.chart .bar.zero { fill: rgba(201, 162, 74, .22); }
.chart .axis { stroke: rgba(201, 162, 74, .3); stroke-width: 1; }
.chart text { fill: rgba(232, 223, 200, .75); font-family: var(--body); font-size: 12px; }
.chart-fig figcaption { margin-top: 8px; font-size: 13px; color: rgba(232, 223, 200, .78); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: rgba(13, 21, 15, .55); }
table.admin { width: 100%; border-collapse: collapse; font-size: 14px; }
table.admin th { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; font-family: var(--caps); font-weight: 400; font-size: 10px; letter-spacing: .16em; color: rgba(232, 223, 200, .75); white-space: nowrap; }
table.admin td { padding: 10px 14px; border-top: var(--row-rule); color: var(--parchment); vertical-align: top; }
table.admin tbody tr:first-child td { border-top: 0; }
table.admin .num { text-align: right; font-variant-numeric: tabular-nums; }
table.admin .dim { color: rgba(232, 223, 200, .75); overflow-wrap: anywhere; }
table.admin .sub { display: block; font-size: 12px; color: rgba(232, 223, 200, .6); }
table.admin .tag { margin-left: 6px; }
.row-actions { display: flex; gap: 14px; justify-content: flex-end; white-space: nowrap; }
.row-actions form { margin: 0; }
.admin-search { display: flex; gap: 8px; margin: 0; }
.admin-search .field { width: 220px; flex: none; padding: 9px 12px; font-size: 14px; letter-spacing: normal; }
.admin-search .field::placeholder { letter-spacing: normal; }
.dim-line { margin: 0; font-size: 14px; color: rgba(232, 223, 200, .72); }
.bar-rows { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; list-style: none; }
.bar-rows li { display: grid; grid-template-columns: 100px minmax(0, 1fr) 30px; align-items: center; gap: 10px; font-size: 13px; color: rgba(232, 223, 200, .85); }
.hbar { display: block; width: 100%; height: 8px; background: rgba(201, 162, 74, .12); }
.bar-n { text-align: right; font-variant-numeric: tabular-nums; }
.side-card .line b { font-weight: 400; color: var(--parchment); font-variant-numeric: tabular-nums; }
.side-card .addr { min-width: 0; overflow-wrap: anywhere; }
.admin-side .side-card form { margin: 0; }
.admin-side .btn-line, .admin-side .btn-quiet-line { align-self: flex-start; }
.feed { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; line-height: 1.5; color: rgba(232, 223, 200, .82); overflow-wrap: anywhere; }
.feed b { font-weight: 400; color: var(--parchment); }
.feed .when { display: block; font-size: 12px; color: rgba(232, 223, 200, .62); }
.rename { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 16px 18px; background: rgba(13, 21, 15, .55); border: 1px solid var(--line); }
.rename + .rename { margin-top: 12px; }
.rename .meta { margin: 0 0 4px; font-size: 14px; color: rgba(232, 223, 200, .78); }
.rename .btn-brass { align-self: flex-start; margin-top: 4px; }
.slug-field { display: flex; align-items: stretch; min-width: 0; }
.slug-prefix { display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--line-field); border-right: 0; font-size: 14px; color: rgba(232, 223, 200, .72); white-space: nowrap; }
.slug-field .field { flex: 1; width: auto; min-width: 0; }
@media (max-width: 1000px) {
  .stat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat b { font-size: 28px; }
  .admin-search { width: 100%; }
  .admin-search .field { width: auto; flex: 1; }
  .slug-field { flex-direction: column; }
  .slug-prefix { padding: 6px 10px; border-right: 1px solid var(--line-field); border-bottom: 0; }
}

/* renaming your own group, on the members page */
.rename.own { max-width: 560px; }

/* ---------- the privacy policy and terms ---------- */
.gate-legal { display: block; margin-top: 8px; font-size: 11px; letter-spacing: .2em; }
.gate-legal a { color: rgba(201, 162, 74, .85); }
.legal-nav a { color: rgba(232, 223, 200, .8); }
.legal-nav a[aria-current] { color: var(--parchment); }
.room.prose { display: block; }
.prose .updated { margin: 8px 0 26px; font-size: 14px; color: rgba(232, 223, 200, .62); }
.prose h2 { margin: 32px 0 10px; font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.2; color: var(--parchment); }
.prose p, .prose li { font-size: 16px; line-height: 1.7; color: rgba(232, 223, 200, .88); }
.prose p { max-width: 68ch; margin: 0 0 12px; }
.prose ul { max-width: 68ch; margin: 0 0 14px; padding-left: 1.2em; }
.prose li { margin: 0 0 6px; }
.prose li::marker { color: var(--brass); }
.prose strong { font-weight: 600; color: var(--parchment); }
.prose a { overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: rgba(201, 162, 74, .45); text-underline-offset: 3px; }
