/* Look and feel follows chebahut.com: cream paper, black 2px outlines, rounded cards with
   bright cyan/yellow header bands, green pill buttons, chunky all-caps display headings.
   Display font is Rubik Mono One, a free stand-in for the brand's licensed headline face. */
:root {
  --cream: #f7eac9;
  --cream-2: #fff6df;
  --ink: #000000;
  --ink-2: #4a4336;
  --rule: #d9c79a;
  --line: #000000;
  --cyan: #3dccea;
  --yellow: #ffb800;
  --green: #00b24f;
  --pink: #ff5c8a;
  --orange: #ff7a1a;
  /* Rating colors used by the board and the pills */
  --rA: var(--green);
  --rB: var(--yellow);
  --rBC: var(--orange);
  --rC: var(--pink);
  --panel: var(--cream-2);
  --display: "Rubik Mono One", "Arial Black", system-ui, sans-serif;
  --serif: var(--display);
  --sans: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 23px;
  color-scheme: light;
}

body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 15px; font-weight: 500; line-height: 1.5; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 16px 16px 56px; }

/* Black rounded top bar, like the site's nav */
.bar { background: #000; color: var(--cream); border-radius: 14px; padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.brand { font-family: var(--display); color: var(--yellow); font-size: 15px; letter-spacing: 0.02em; text-transform: uppercase; }
.who { display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 600; color: var(--cream); }

header.top { margin: 6px 0 22px; text-align: center; }
.eyebrow { margin: 0 0 8px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; }
.eyebrow span { background: var(--yellow); border: 2px solid var(--line); border-radius: 999px; padding: 3px 12px; }
h1 { margin: 14px 0 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(24px, 5vw, 44px); line-height: 1.1; }
.lede { margin: 12px auto 0; max-width: 60ch; font-size: 16px; }

.grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.grid.solo { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 880px) { .grid { grid-template-columns: minmax(0, 1fr); } }

/* Cards: black outline, big radius, colored header band */
.card { background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius); min-width: 0; overflow: hidden; }
.card-head { background: var(--cyan); border-bottom: 2px solid var(--line); padding: 16px 20px 14px; }
.card-head.yellow { background: var(--yellow); }
.card-head.green { background: var(--green); }
.card h2 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 20px; line-height: 1.15; }
.card .sub { margin: 6px 0 0; font-size: 13px; font-weight: 600; }
.card-body { padding: 18px 20px 20px; }
.signin { max-width: 440px; margin: 0 auto; }

.board { margin-bottom: 20px; }
.board .card-body { position: relative; }
.board svg { width: 100%; max-width: 680px; height: auto; display: block; margin: 0 auto; }
.board svg text { font-family: var(--sans); font-weight: 700; }
.tip { position: absolute; pointer-events: none; background: #000; color: var(--cream); padding: 7px 11px; border-radius: 10px; font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); z-index: 2; }
.empty { margin: 14px 0 0; padding: 14px; border: 2px dashed var(--line); border-radius: 14px; font-size: 14px; }
.key { margin: 14px 0 0; font-size: 13px; color: var(--ink-2); }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line); vertical-align: -1px; margin-right: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.filters { display: flex; flex-direction: column; gap: 12px; }
.filters button { align-self: flex-start; }

/* Rating pills: brand color, black outline, black text */
.pill { display: inline-block; min-width: 2.6em; text-align: center; padding: 1px 9px; border-radius: 999px; border: 2px solid var(--line); color: #000; font-weight: 800; font-size: 13px; }
.r-A { background: var(--rA); } .r-B { background: var(--rB); } .r-BC { background: var(--rBC); } .r-C { background: var(--rC); }

form { display: grid; gap: 14px; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 420px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
label { display: grid; gap: 5px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; min-width: 0; }
.hint { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink-2); font-size: 12px; }
input, textarea, select { font: inherit; font-size: 15px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 8px 12px; width: 100%; min-width: 0; }
input:focus-visible, textarea:focus-visible, button:focus-visible, select:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
textarea { min-height: 84px; resize: vertical; }

.picker { position: relative; display: block; }
.picker-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 3; margin: 0; padding: 4px 0; list-style: none; background: #fff; border: 2px solid var(--line); border-radius: 12px; max-height: 240px; overflow: auto; text-transform: none; letter-spacing: 0; }
.picker-list li { padding: 8px 12px; cursor: pointer; font-weight: 600; font-size: 14px; }
.picker-list li small { color: var(--ink-2); margin-left: 6px; font-weight: 500; }
.picker-list li[aria-selected="true"], .picker-list li:hover { background: var(--cream); }

.preview { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--cream); border: 2px solid var(--line); font-size: 13px; font-weight: 600; }
.preview strong { font-weight: 800; }

.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
/* Green pill buttons, all caps */
button { font: inherit; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; border-radius: 999px; padding: 10px 20px; cursor: pointer; border: 2px solid var(--line); background: var(--green); color: #000; }
button:hover { background: #00c95a; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button.quiet { background: var(--cream); padding: 6px 14px; font-size: 12px; }
button.quiet:hover { background: var(--yellow); }
.bar button.quiet { background: transparent; color: var(--cream); border-color: var(--cream); }
.bar button.quiet:hover { background: var(--yellow); color: #000; border-color: var(--yellow); }
button.danger { background: var(--pink); }

.status { min-height: 1.4em; font-size: 13px; font-weight: 700; margin: 0; }
.status.bad { color: #c4003a; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px; border-bottom: 2px solid var(--rule); vertical-align: top; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; white-space: nowrap; border-bottom-color: var(--line); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { font-variant-numeric: tabular-nums; text-align: right; }
td.plan { min-width: 180px; color: var(--ink-2); white-space: pre-wrap; }
td.person, td.date { white-space: nowrap; }
td.person { font-weight: 700; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
