/* Meeting Hub — warm paper, ink rules, red / yellow / blue accents. */
:root {
  --paper: #EFE3C8;
  --surface: #FFFDF9;
  --surface-2: #F2EDE4;
  --ink: #211F1D;
  --muted: #6E675F;
  --faint: #9A9289;
  --line: #E6DFD4;
  --hair: rgba(33, 31, 29, .12);
  --rule: #211F1D;
  --accent: #C8473B;
  --accent-2: #AE3B30;
  --on-accent: #FFFFFF;
  --red: #C8473B;
  --yellow: #E4B04A;
  --blue: #3B63A6;
  --ok: #3B63A6;
  --warn: #B7861C;
  --lift: 0 1px 2px rgba(33, 31, 29, .05), 0 12px 32px -14px rgba(33, 31, 29, .26);
  --r: 16px;
  --r-sm: 10px;
  --display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    color-scheme: dark;
    --paper: #161514; --surface: #201F1D; --surface-2: #2A2826;
    --ink: #EFEAE2; --muted: #ADA59A; --faint: #7F786F; --line: #35322F;
    --hair: rgba(239, 234, 226, .12); --rule: #EFEAE2;
    --accent: #E0675B; --accent-2: #EA7D72;
    --red: #E0675B; --yellow: #E9BD5F; --blue: #86A6DC; --ok: #86A6DC; --warn: #E9BD5F;
    --lift: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .6);
  }
}
:root[data-theme=dark] {
  color-scheme: dark;
  --paper: #161514; --surface: #201F1D; --surface-2: #2A2826;
  --ink: #EFEAE2; --muted: #ADA59A; --faint: #7F786F; --line: #35322F;
  --hair: rgba(239, 234, 226, .12); --rule: #EFEAE2;
  --accent: #E0675B; --accent-2: #EA7D72;
  --red: #E0675B; --yellow: #E9BD5F; --blue: #86A6DC; --ok: #86A6DC; --warn: #E9BD5F;
  --lift: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .6);
}

[hidden] { display: none !important; }
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--display); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.eyebrow, .field label, .lbl {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}

/* ---------- masthead ---------- */
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.masthead { display: flex; align-items: center; gap: 12px 40px; padding: 26px 0 18px; flex-wrap: wrap; }
.wordmark { font-weight: 800; font-size: 30px; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); text-decoration: none; }
.wordmark .dot { color: var(--red); }
.mainnav { display: flex; gap: 28px; flex: 1; min-width: 0; font-size: 16px; }
.mainnav a {
  color: var(--ink); text-decoration: underline; text-decoration-color: transparent;
  text-decoration-thickness: 2px; text-underline-offset: 7px; padding: 4px 0; white-space: nowrap;
}
.mainnav a:hover { text-decoration-color: var(--faint); }
.mainnav a[aria-current=page] { text-decoration-color: var(--red); }
.who { display: flex; align-items: center; gap: 10px; }
.who .name { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* the red / yellow / blue divider */
.shaperule { display: flex; align-items: center; gap: 8px; margin: 0 0 28px; }
.shaperule i { display: block; flex: none; width: 11px; height: 11px; }
.shaperule i:nth-child(1) { background: var(--red); border-radius: 50%; }
.shaperule i:nth-child(2) { background: var(--yellow); }
.shaperule i:nth-child(3) { background: var(--blue); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.shaperule span { flex: 1; height: 1px; background: var(--ink); margin-left: 6px; }

/* ---------- buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: var(--r-sm); padding: 9px 14px; font-weight: 600; font-size: 14px;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--faint); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); border-color: var(--line); }
.btn.danger:hover { color: var(--red); border-color: var(--red); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.iconbtn { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.iconbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.chip {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted);
}
.chip.open { color: var(--warn); border-color: currentColor; }
.chip.done { color: var(--ok); border-color: currentColor; }
.chip.urgent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 500; }
.chip.late { color: var(--accent); border-color: currentColor; }

/* ---------- layout bits ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-weight: 700; font-size: 44px; line-height: 1.05; letter-spacing: -.02em; }
.page-head .sub { color: var(--muted); margin-top: 6px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.section { border-top: 5px solid var(--rule); padding-top: 20px; margin-top: 40px; }
.section:first-of-type { margin-top: 0; }
.section-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.section-h h2 { font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: .04em; }
.count { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-left: 6px; }

.grid2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0 48px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--lift); }
.empty { color: var(--muted); padding: 22px 0; }

.list { list-style: none; margin: 0; padding: 0; }
.row {
  display: flex; gap: 16px; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none;
}
.row:last-child { border-bottom: 0; }
a.row:hover .row-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.row-title { font-weight: 600; font-size: 18px; line-height: 1.25; }
.row-meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--muted); margin-top: 3px; }
.row-side { display: flex; gap: 8px; align-items: center; flex: none; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- forms ---------- */
.field { margin-bottom: 14px; min-width: 0; }
.field label { display: block; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--hair); background: var(--surface);
  border-radius: var(--r-sm); padding: 10px 12px; font-size: 16px;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field textarea.tall { min-height: 280px; font-family: var(--mono); font-size: 14px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: color-mix(in srgb, var(--ink) 35%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 8%, transparent);
}
.field .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 14px; }
.checks { display: flex; gap: 8px; flex-wrap: wrap; }
.checks label {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px 6px 10px;
  font-family: var(--display); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--surface);
}
.checks input { width: auto; accent-color: var(--accent); }
.dl-rows { display: grid; gap: 10px; margin-bottom: 12px; }
.dl-row {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto auto; gap: 8px; align-items: center;
}
.dl-row .urg { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-family: var(--display); font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); white-space: nowrap; cursor: pointer; }
.dl-row .urg input { width: auto; accent-color: var(--accent); }
.dl-row input, .dl-row select {
  width: 100%; border: 1px solid var(--hair); background: var(--surface); border-radius: var(--r-sm); padding: 9px 11px; font-size: 15px;
}
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

/* "find a meeting time" poll */
.poll { margin-top: 12px; }
.props { border-top: 1px solid var(--rule); }
.prop { display: flex; gap: 14px 20px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.prop.all-in .prop-when { color: var(--ok); }
.prop-when { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; font-size: 18px; }
.prop-note { color: var(--muted); margin-top: 2px; }
.prop-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.votes { display: flex; gap: 6px 14px; flex-wrap: wrap; margin-top: 8px; }
.vote { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--muted); }
.vote.yes { color: var(--ok); }
.vote.no { color: var(--accent); }
.vote-btn[aria-pressed=true].yes { background: var(--ok); border-color: var(--ok); color: #fff; }
.vote-btn[aria-pressed=true].no { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.poll-add { margin-top: 12px; }
.draft-rows { display: grid; gap: 8px; margin-bottom: 10px; }
.draft-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 8px; align-items: center; }
.draft-row input { width: 100%; border: 1px solid var(--hair); background: var(--surface); border-radius: var(--r-sm); padding: 9px 11px; font-size: 15px; }
.notice { margin-top: 12px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface-2); border-left: 4px solid var(--ok); }
.notice p { margin: 4px 0 8px; }
.review ul { margin: 8px 0; padding-left: 20px; }
.review li { margin: 3px 0; font-weight: 600; }
.confirmed-time { font-size: 22px; font-weight: 700; margin: 4px 0; }
@media (max-width: 760px) { .draft-row { grid-template-columns: 1fr auto; } .draft-row input[type=text] { grid-column: 1 / -1; order: 3; } }

/* agenda list inside the New meeting form */
.agenda-panel { box-shadow: none; padding: 14px 18px; }
.agenda-panel ul { margin: 0 0 12px; padding-left: 20px; }
.agenda-panel li { margin: 3px 0; }

/* on/off pill used for "Show others' deliverables" */
.pill-toggle {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none;
  border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px 6px 10px;
  background: var(--surface); font-size: 14px; font-weight: 500; white-space: nowrap;
}
.pill-toggle:hover { border-color: var(--faint); }
.pill-toggle input { margin: 0; accent-color: var(--accent); }

/* segmented pills */
.seg { display: flex; border: 2px solid var(--rule); border-radius: 999px; overflow: hidden; width: fit-content; max-width: 100%; flex-wrap: wrap; }
.seg button { border: 0; background: var(--surface); padding: 7px 16px; font-weight: 600; font-size: 14px; }
.seg button + button { border-left: 2px solid var(--rule); }
.seg button[aria-pressed=true] { background: var(--rule); color: var(--paper); }
.filters { display: flex; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 8px; }

/* ---------- meeting page ---------- */
.notes { font-size: 17px; line-height: 1.6; max-width: 70ch; }
.notes h3 { font-weight: 700; font-size: 22px; margin: 22px 0 6px; letter-spacing: -.01em; }
.notes h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 20px 0 6px; font-weight: 500; }
.notes p { margin: 0 0 12px; }
.notes ul, .notes ol { margin: 0 0 12px; padding-left: 22px; }
.notes li { margin: 3px 0; }
.notes li > ul, .notes li > ol { margin: 4px 0 6px; }
.notes code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); padding: 1px 6px; border-radius: 5px; }
.notes > :first-child { margin-top: 0; }

.deliv { border-bottom: 1px solid var(--rule); padding: 16px 0; }
.deliv:last-child { border-bottom: 0; }
.deliv-top { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.deliv-title { font-weight: 600; font-size: 19px; line-height: 1.25; }
.deliv-desc { color: var(--muted); margin-top: 4px; white-space: pre-wrap; }
.deliv-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.submission {
  margin-top: 12px; padding: 14px 16px; background: var(--surface-2); border-radius: var(--r-sm);
  border-left: 4px solid var(--blue);
}
.submission p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.submission .links { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 8px; font-weight: 600; }
.subform { margin-top: 12px; padding: 16px; border: 1px dashed var(--faint); border-radius: var(--r-sm); background: var(--surface); }
.inline-edit { margin-top: 12px; }

/* ---------- sign in ---------- */
.signin { max-width: 440px; margin: 9vh auto 0; padding: 0 24px; }
.signin h1 { font-weight: 800; font-size: 54px; letter-spacing: -.03em; line-height: 1; margin-bottom: 8px; }
.signin h1 .dot { color: var(--red); }
.signin p { color: var(--muted); margin: 0 0 22px; }
.error { color: var(--accent); font-weight: 600; margin: 0 0 12px; min-height: 1.2em; }

/* ---------- toasts ---------- */
#toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 50; width: min(440px, calc(100% - 32px)); }
.toast { background: var(--ink); color: var(--paper); border-radius: var(--r-sm); padding: 12px 16px; font-weight: 500; box-shadow: var(--lift); }
.toast.err { background: var(--accent); color: var(--on-accent); }

.foot { margin: 56px 0 40px; color: var(--muted); font-size: 13px; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .masthead { padding: 16px 0 12px; }
  .wordmark { font-size: 24px; flex: 1; }
  .mainnav { order: 3; flex-basis: 100%; gap: 22px; font-size: 15px; overflow-x: auto; }
  .who .name { display: none; }
  .page-head h1 { font-size: 34px; }
  .grid2 { grid-template-columns: 1fr; }
  .dl-row { grid-template-columns: 1fr 1fr; }
  .dl-row input:first-child { grid-column: 1 / -1; }
  .row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .row-side { justify-content: flex-start; }
}
