:root {
  --wine: #661629; --brass: #AF9570; --brass-ink: #7A5F3A; --charcoal: #2D2D2D;
  --cream: #F2EDEE; --oat: #E6DCCB; --frame: #EFE6D8; --ground: #F7F5F1; --white: #FFFFFF;
  --sea: #A8BEC0; --rose: #C99A94; --olive: #98A08D; --muted: #6B5B52; --body: #4A4A4A;
  --serif: "Cormorant Garamond", Georgia, serif; --sans: Poppins, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); }
body { font-family: var(--sans); font-weight: 300; color: var(--charcoal); font-size: 15px; line-height: 1.7; }
a { color: var(--wine); }
a:hover { color: #3A2A24; }
img { max-width: 100%; }

.topbar { border-top: 4px solid var(--wine); border-bottom: 1px solid var(--oat); background: var(--ground); }
.topbar .inner { max-width: 1180px; margin: 0 auto; padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand small { font-size: 14px; letter-spacing: .3em; margin-bottom: 2px; text-transform: uppercase; color: var(--brass-ink); }
.brand span { font-family: var(--serif); font-weight: 600; font-size: 26px; letter-spacing: .16em; text-transform: uppercase; color: var(--wine); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.nav a { color: var(--charcoal); text-decoration: none; }
.nav a.on { color: var(--wine); border-bottom: 1px solid var(--brass); padding-bottom: 3px; font-weight: 500; }
.monogram { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--brass); color: var(--wine); font-family: var(--serif); font-weight: 600; font-size: 15px; letter-spacing: .08em; background: none; cursor: pointer; }

.eventbar { background: var(--white); border-bottom: 1px solid var(--oat); }
.eventbar .inner { max-width: 1180px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }

main.wrap { max-width: 1180px; margin: 0 auto; padding: 52px 24px 80px; display: flex; flex-direction: column; gap: 36px; }
main.narrow { max-width: 860px; }

.eyebrow { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--brass-ink); font-weight: 400; margin: 0; }
h1.display, h2.display { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; text-transform: uppercase; letter-spacing: .06em; color: var(--wine); }
h1.display em, h2.display em, h2.title em { text-transform: none; letter-spacing: .01em; }
h2.title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 30px; letter-spacing: .08em; text-transform: uppercase; color: var(--charcoal); }
h3.sub { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: .08em; text-transform: uppercase; }
.rule { width: 64px; height: 1px; background: var(--brass); }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lead { font-family: var(--serif); font-size: 23px; line-height: 1.45; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
p { margin: 0; }

.card { background: var(--white); border: 1px solid var(--oat); padding: 40px 44px; display: flex; flex-direction: column; gap: 14px; }
.card.framed { outline: 1px solid var(--frame); outline-offset: -10px; }
.card.tight { padding: 28px 30px; }
.band { border-top: 1px solid var(--brass); border-bottom: 1px solid var(--brass); padding: 26px 6px; display: flex; flex-direction: column; gap: 10px; }
.wine { background: var(--wine); color: var(--cream); outline: 1px solid var(--brass); outline-offset: -10px; padding: 40px; }
.dark { background: var(--charcoal); color: var(--cream); padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 24px; }
.row > * { flex: 1 1 320px; min-width: 0; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.split { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; }
.split > .main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.split > .side { flex: 1 1 290px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.item { padding: 14px 0; border-top: 1px solid var(--cream); }
.item:first-of-type { border-top: 0; }

.btn { display: inline-block; background: var(--brass); color: var(--charcoal); text-decoration: none; border: 0; border-radius: 40px; padding: 12px 28px; min-height: 46px; font-family: var(--serif); font-weight: 700; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.btn:hover { background: #A2865F; color: var(--charcoal); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn.wine { background: var(--wine); color: #fff; outline: 0; padding: 12px 28px; }
.btn.ghost { background: transparent; color: var(--wine); border: 1px solid var(--wine); font-family: var(--sans); font-weight: 400; font-size: 11px; letter-spacing: .2em; padding: 11px 20px; }
.link { background: none; border: 0; padding: 2px 0; font-family: var(--sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--brass); color: var(--wine); cursor: pointer; }

.pill { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 24px; border-radius: 40px; padding: 0 9px; font-size: 10px; font-weight: 500; letter-spacing: .12em; }
.evbtn { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--body); border: 1px solid var(--oat); border-radius: 40px; padding: 6px 16px 6px 8px; min-height: 40px; font-family: var(--sans); font-size: 13px; cursor: pointer; }
.evbtn.on { background: var(--ground); color: var(--charcoal); border-color: var(--wine); }

.status { display: inline-block; border-radius: 40px; padding: 2px 12px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.s-decided, .s-complete { background: var(--wine); color: #fff; }
.s-underway, .s-progress { background: var(--brass); color: var(--charcoal); }
.s-waiting { background: var(--sea); color: var(--charcoal); }
.s-unknown, .s-notstarted { background: #fff; color: var(--charcoal); border: 1px solid var(--charcoal); padding: 1px 11px; }
.s-na { color: var(--muted); padding-left: 0; }

label.q { font-weight: 400; display: block; }
.hint { font-size: 14px; color: var(--muted); display: block; margin-top: 2px; }
.deeper { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-ink); margin-left: 8px; }
textarea, input[type=text], input[type=email], input[type=date], select { width: 100%; border: 1px solid var(--oat); background: #FDFCFA; padding: 12px 14px; font-family: var(--sans); font-weight: 300; font-size: 14px; color: var(--charcoal); border-radius: 0; }
textarea { resize: vertical; min-height: 84px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.fieldgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 20px; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px 18px; font-size: 14px; }
.checks label { display: flex; gap: 8px; align-items: flex-start; }
.choices { display: flex; flex-wrap: wrap; gap: 6px; }
.choice { background: #fff; color: var(--body); border: 1px solid var(--oat); border-radius: 40px; padding: 6px 14px; min-height: 36px; font-family: var(--sans); font-size: 11px; letter-spacing: .1em; cursor: pointer; }
.choice.on { background: var(--wine); color: #fff; border-color: var(--wine); }
.arearow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 0; border-top: 1px solid var(--cream); }
.arearow .name { font-family: var(--serif); font-size: 20px; flex: 1 1 180px; }

.loading { display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brass); animation: pulse 1.2s infinite ease-in-out; }
.dot:nth-child(2) { animation-delay: .2s; } .dot:nth-child(3) { animation-delay: .4s; }
@keyframes pulse { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.error { background: var(--cream); border: 1px solid var(--rose); padding: 16px 20px; font-size: 14px; }
.notice { background: var(--cream); border: 1px solid var(--oat); padding: 16px 20px; font-size: 14px; }

.tabs { display: flex; flex-wrap: wrap; gap: 4px 24px; border-bottom: 1px solid var(--oat); }
.tab { background: transparent; color: var(--body); border: 0; border-bottom: 2px solid transparent; padding: 12px 2px; min-height: 44px; font-family: var(--sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; cursor: pointer; }
.tab.on { color: var(--wine); border-bottom-color: var(--wine); font-weight: 500; }

.cal { min-width: 760px; border-top: 1px solid var(--oat); border-left: 1px solid var(--oat); }
.cal .week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal .wd { padding: 8px 10px; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--brass-ink); border-right: 1px solid var(--oat); border-bottom: 1px solid var(--oat); background: var(--ground); }
.cal .day { min-height: 112px; padding: 8px; border-right: 1px solid var(--oat); border-bottom: 1px solid var(--oat); display: flex; flex-direction: column; gap: 4px; background: #fff; }
.cal .day.out { background: var(--ground); }
.cal .day .num { font-family: var(--serif); font-size: 17px; }
.cal .day.out .num { color: #B9A894; }
.chip { font-size: 11px; line-height: 1.35; padding: 3px 6px; }
.chip.hard { background: var(--wine); color: #fff; }
.chip.msg { background: var(--cream); border: 1px solid var(--rose); padding: 2px 5px; }
.chip.ev { background: var(--brass); color: var(--charcoal); font-weight: 500; }
.chip.task { border-left: 2px solid var(--muted); color: var(--body); padding: 0 0 0 5px; }
.scrollx { overflow-x: auto; }

table.list { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; color: var(--brass-ink); font-size: 10px; text-transform: uppercase; letter-spacing: .2em; font-weight: 500; padding: 10px 12px; }
table.list td { padding: 12px; border-top: 1px solid var(--cream); vertical-align: top; }
table.list tr.group td { font-family: var(--serif); font-size: 18px; letter-spacing: .12em; text-transform: uppercase; color: var(--wine); padding-top: 22px; border-top: 0; }
.gantt { min-width: 1100px; font-size: 12px; }
.gantt .g { display: grid; align-items: center; min-height: 30px; border-top: 1px solid var(--ground); }
.gantt .bar { height: 14px; }
.money { font-family: var(--serif); font-weight: 700; color: var(--brass-ink); margin-left: 6px; }

.datecard { flex: 0 0 76px; text-align: center; border: 1px solid var(--oat); padding: 6px 0; }
.datecard .m { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--brass-ink); }
.datecard .d { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--wine); }

footer.foot { border-top: 1px solid var(--oat); padding: 28px 24px; text-align: center; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.hidden { display: none !important; }

@media print {
  .topbar .nav, .eventbar, .noprint, footer.foot { display: none !important; }
  body { background: #fff; }
  .card, .wine { break-inside: avoid; }
  main.wrap { padding-top: 16px; }
}

.evcard { transition: box-shadow .2s ease, transform .2s ease; }
.evcard:hover { box-shadow: 0 10px 28px rgba(58,42,36,.10); transform: translateY(-2px); }
.evcard .wine { outline-offset: -8px; }

.savedgroup summary::-webkit-details-marker { display: none; }
.savedgroup[open] .savedtoggle { font-size: 0; }
.savedgroup[open] .savedtoggle::after { content: "Hide"; font-size: 11px; letter-spacing: .22em; }
.chip.hol { background: #E6DCCB; color: #3A2A24; }

/* Action rail: the tool's buttons, kept in view on the right on wide screens */
@media (min-width: 1000px) { .split > .side { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; } }
.rail { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.rail .btn { width: 100%; text-align: center; }
.rail .railnote { font-size: 13px; color: var(--muted); line-height: 1.5; }
.rail select { width: 100%; }

/* Text size: members can make everything larger from the header */
.textsize { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--oat); border-radius: 40px; padding: 2px 4px; background: #fff; }
.textsize button { background: none; border: 0; border-radius: 40px; padding: 2px 8px; font-family: var(--serif); color: var(--muted); cursor: pointer; line-height: 1.4; }
.textsize button.on { background: var(--cream); color: var(--wine); }
html[data-ts="1"] body { zoom: 1.12; }
html[data-ts="2"] body { zoom: 1.25; }
@media print { html[data-ts] body { zoom: 1; } }
.btn.danger { background: transparent; color: #8A2B2B; border: 1px solid #C99A94; font-family: var(--sans); font-weight: 400; font-size: 11px; letter-spacing: .2em; padding: 11px 20px; }
.btn.danger:hover { background: #F2EDEE; }
table.list .status { white-space: nowrap; }
table.list .ownerpick { max-width: 140px; }
.display em.cap, .title em.cap { text-transform: lowercase; }
.calmenu { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--oat); background: var(--ground, #F7F5F1); }
.calmenu.hidden { display: none; }
.calsteps:empty { display: none; }
