/* PinSpot — its own look: evening plum, sunset coral, warm cream. Barlow type, 8px corners, big type. */
:root {
  /* Palette: the brand colors. Each palette below swaps these; plan colors (green, yellow, red) never change. */
  --band1: #7B3FA0; --band2: #4E2272; --band3: #2C1245; --btn1: #8A44B5; --btn2: #5E2A86;
  --link-l: #6E2FA0; --link-d: #DDB0F7; --sun: #FF7A59; --tag-l: #B3441F; --tag-d: #FF9C7E;
  --wash-l: #F6EEF8; --rule-l: #E4D4EA; --ink-l: #2A1638; --muted-l: #6B5577;
  --page-d: #170D21; --wash-d: #22142F; --card-d: #2E1C3F; --rule-d: #4A3360; --ink-d: #F5EEF9; --muted-d: #C9B5D4;
  --page: #FFFFFF; --wash: var(--wash-l); --card: #FFFFFF; --ink: var(--ink-l); --muted: var(--muted-l); --rule: var(--rule-l);
  --link: var(--link-l); --tag: var(--tag-l);
  --pick: #FFE3D8; --leaf: #23875C; --warn: #B3261E; --shadow: rgba(42, 22, 56, .10);
  --field: #FFFFFF; --scrim: rgba(20, 8, 30, .6);
  --cond: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --text: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  color-scheme: light;
}
:root[data-palette="teal"] {
  --band1: #138E99; --band2: #0A626B; --band3: #063E45; --btn1: #13909B; --btn2: #0B6670;
  --link-l: #0A6770; --link-d: #8FE0E6; --sun: #FF8A5B; --tag-l: #A8431D; --tag-d: #FFAA85;
  --wash-l: #EAF6F6; --rule-l: #CBE4E6; --ink-l: #0F2E33; --muted-l: #4E6A6E;
  --page-d: #0B1A1D; --wash-d: #102629; --card-d: #163236; --rule-d: #275055; --ink-d: #EAF7F8; --muted-d: #A9C9CC;
}
:root[data-palette="sunset"] {
  --band1: #E2643F; --band2: #B5432A; --band3: #6E2414; --btn1: #D9532F; --btn2: #A63B21;
  --link-l: #A63B21; --link-d: #FFB59C; --sun: #FFC247; --tag-l: #9E3518; --tag-d: #FFC08A;
  --wash-l: #FDF0EA; --rule-l: #F0D3C7; --ink-l: #3A1A10; --muted-l: #74503F;
  --page-d: #1E0F0A; --wash-d: #2B1710; --card-d: #3A2016; --rule-d: #5C3424; --ink-d: #FCEDE6; --muted-d: #D9B8A9;
}
:root[data-palette="navy"] {
  --band1: #3456A8; --band2: #1F3A7A; --band3: #10204A; --btn1: #3159B5; --btn2: #213F86;
  --link-l: #2649A0; --link-d: #A9C1FF; --sun: #FF7A59; --tag-l: #B3441F; --tag-d: #FF9C7E;
  --wash-l: #EEF2FB; --rule-l: #D3DCF0; --ink-l: #121C36; --muted-l: #505C78;
  --page-d: #0B1022; --wash-d: #121A33; --card-d: #1A2442; --rule-d: #2E3C66; --ink-d: #EEF2FD; --muted-d: #B1BCD9;
}
:root[data-palette="palm"] {
  --band1: #2F8F5B; --band2: #1E6B42; --band3: #113F27; --btn1: #2F8F5B; --btn2: #1F6E44;
  --link-l: #1C6A41; --link-d: #96E2B6; --sun: #FFB347; --tag-l: #96460F; --tag-d: #FFC27A;
  --wash-l: #EEF7F1; --rule-l: #CFE6D7; --ink-l: #132A1D; --muted-l: #4C6656;
  --page-d: #0A1A11; --wash-d: #10251A; --card-d: #173224; --rule-d: #275139; --ink-d: #EAF7EF; --muted-d: #A9CDB7;
}
@media (min-width: 601px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; } }
@media (min-width: 1920px) { :root { --gutter: 64px; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: var(--page-d); --wash: var(--wash-d); --card: var(--card-d); --ink: var(--ink-d); --muted: var(--muted-d); --rule: var(--rule-d);
    --link: var(--link-d); --tag: var(--tag-d); --pick: #5C2C20; --shadow: rgba(0, 0, 0, .4); --field: var(--wash-d); --warn: #FF8A80;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: var(--page-d); --wash: var(--wash-d); --card: var(--card-d); --ink: var(--ink-d); --muted: var(--muted-d); --rule: var(--rule-d);
  --link: var(--link-d); --tag: var(--tag-d); --pick: #5C2C20; --shadow: rgba(0, 0, 0, .4); --field: var(--wash-d); --warn: #FF8A80;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--text); font-size: 1.125rem; line-height: 1.55; }
@media (min-width: 1024px) { body { font-size: 1.25rem; } }
h1, h2, h3, h4 { text-wrap: balance; }
a { color: var(--link); }
.nw { white-space: nowrap; }
[hidden] { display: none !important; }
/* Wide screens: the whole app sits centered in a 1440px column (header included), like every site we build. */
.wrap { width: 100%; max-width: calc(1440px + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }

/* Header */
.bar { background: linear-gradient(135deg, var(--band1) 0%, var(--band2) 55%, var(--band3) 100%); color: #FFFFFF; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; min-height: 76px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--cond); font-weight: 700; font-size: 2.25rem; line-height: 1;
  letter-spacing: .01em; text-shadow: 0 2px 0 rgba(0, 0, 0, .16); }
.bar .btn { white-space: nowrap; flex: 0 0 auto; }
.bar .short { display: none; }
@media (max-width: 720px) { .bar .long, .bar .short { display: none; } .bar .btn { padding: 0 12px; min-width: 48px; } }
.brand svg { width: 42px; height: 42px; flex: 0 0 auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 8px;
  font: 700 1.125rem/1.2 var(--text); text-decoration: none; cursor: pointer; border: 2px solid transparent; text-align: center; }
.go { background: linear-gradient(180deg, var(--btn1) 0%, var(--btn2) 100%); color: #FFFFFF; border: 0;
  box-shadow: 0 6px 14px rgba(94, 42, 134, .30), inset 0 1px 0 rgba(255, 255, 255, .28); }
.sun { background: var(--sun); color: #2A1638; border: 0; box-shadow: 0 6px 14px rgba(0, 0, 0, .18); }
.see { background: var(--card); color: var(--link); border-color: var(--rule); }
.btn:disabled { opacity: .55; cursor: default; }
.btn svg, .ic { width: 22px; height: 22px; flex: 0 0 auto; }
.tog { background: var(--card); color: var(--ink); border-color: var(--rule); }
.tog[aria-pressed="true"] { background: var(--leaf); border-color: var(--leaf); color: #FFFFFF; }

/* Filter row */
.filters { display: flex; gap: 12px; padding-block: 16px; border-bottom: 1px solid var(--rule); background: var(--wash); }
.filters .wrap { display: flex; flex-direction: column; gap: 12px; }
.filters .times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 600px) { .filters .times { grid-template-columns: repeat(2, 1fr); } }
.filters .tod { flex-direction: column; gap: 2px; padding: 8px 10px; min-height: 60px; }
.filters .tod span { font-weight: 600; font-size: 1.0625rem; opacity: .9; }
.filters .tnote { margin: 0; color: var(--muted); font-weight: 600; }
.listhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 24px; }
.listhead h2 { margin: 0; font: 700 2rem/1.1 var(--cond); }
.listhead .chips { display: flex; flex-wrap: wrap; gap: 10px; flex: 1 1 auto; justify-content: flex-end; }
.listhead .tog { padding: 0 16px; gap: 8px; flex: 0 1 auto; min-width: 120px; }
@media (max-width: 600px) { .listhead .chips { justify-content: stretch; } .listhead .tog { flex: 1 1 calc(50% - 10px); } }
.filters .dates { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.filters .dfield { display: flex; flex-direction: column; gap: 4px; font-weight: 700; flex: 1 1 180px; }
.filters .dfield input { min-height: 48px; padding: 0 12px; border: 2px solid var(--rule); border-radius: 8px; background: var(--field); color: var(--ink); font: 600 1.125rem/1.2 var(--text); }
.filters #dClear { flex: 0 0 auto; }
#fGoing[aria-pressed="true"] { background: #23875C; border-color: #23875C; color: #FFFFFF; }
#fMaybe[aria-pressed="true"] { background: #F2B705; border-color: #F2B705; color: #2A1638; }
#fNo[aria-pressed="true"] { background: #B3261E; border-color: #B3261E; color: #FFFFFF; }
#fEnded[aria-pressed="true"] { background: var(--muted); border-color: var(--muted); color: #FFFFFF; }
#fGoing { border-color: #23875C; } #fMaybe { border-color: #D9A400; } #fNo { border-color: #B3261E; }

/* Board */
main { padding-bottom: 96px; }
.sec { margin-top: 28px; }
.sec h2 { margin: 0 0 14px; font-family: var(--cond); font-weight: 700; font-size: 2.1rem; line-height: 1.05; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; row-gap: 2px; }
.sec h2 .sub { font-family: var(--text); font-weight: 600; font-size: 1.0625rem; color: var(--muted); }
.grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .grid > .card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* Wide screens: three across, and a short last row stretches to fill it (no empty slot). */
@media (min-width: 1900px) { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid > .card { grid-column: span 2; }
  .grid > .card:last-child:nth-child(odd) { grid-column: span 2; }
  .grid > .card:nth-last-child(2):nth-child(3n+1), .grid > .card:last-child:nth-child(3n+2) { grid-column: span 3; }
  .grid > .card:last-child:nth-child(3n+1) { grid-column: 1 / -1; } }

.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden;
  box-shadow: 0 8px 22px var(--shadow); cursor: pointer; min-width: 0; }
.card:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.pic { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--band1), var(--band3)); overflow: hidden; flex: 0 0 auto; }
.pic img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; background: var(--wash); }
.pic .ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #FFFFFF;
  font-family: var(--cond); font-weight: 700; line-height: 1; text-align: center; }
.pic .ph b { font-size: 1.6rem; letter-spacing: .08em; }
.pic .ph strong { font-size: 4rem; }
.body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1 1 auto; min-width: 0; }
.when { margin: 0; font-weight: 700; color: var(--link); font-size: 1.0625rem; text-transform: uppercase; letter-spacing: .04em; }
.title { margin: 0; font-family: var(--cond); font-weight: 700; font-size: 2rem; line-height: 1.05; overflow-wrap: anywhere; }
.time { margin: 0; font-size: 1.25rem; }
.time .end { font-weight: 700; background: var(--pick); padding: 0 6px; border-radius: 4px; }
.where, .price { margin: 0; color: var(--muted); }
.plan-chip { align-self: flex-start; font-weight: 700; font-size: 1.0625rem; color: #FFFFFF; background: var(--leaf); border-radius: 6px; padding: 2px 10px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-top: 12px; }
.reading { display: flex; align-items: center; gap: 12px; margin: 0; font-weight: 600; }
.spin { width: 26px; height: 26px; border: 4px solid var(--rule); border-top-color: var(--btn1); border-radius: 50%; animation: spin 1s linear infinite; flex: 0 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.err { margin: 0; color: var(--warn); font-style: italic; }
@media (min-width: 700px) and (max-width: 1099px) {
  .card { flex-direction: row; }
  .card .pic { width: 40%; aspect-ratio: auto; min-height: 240px; }
}
@media (min-width: 1100px) {
  .grid > .card:last-child:nth-child(odd) { flex-direction: row; }
  .grid > .card:last-child:nth-child(odd) .pic { width: 45%; aspect-ratio: auto; min-height: 280px; }
}
@media (min-width: 1900px) {
  .grid > .card:last-child:nth-child(odd) { flex-direction: column; }
  .grid > .card:last-child:nth-child(odd) .pic { width: auto; aspect-ratio: 16 / 9; min-height: 0; }
  .grid > .card:last-child:nth-child(3n+1) { flex-direction: row; }
  .grid > .card:last-child:nth-child(3n+1) .pic { width: 40%; aspect-ratio: auto; min-height: 300px; }
}

.empty { margin-top: 40px; padding: 32px; background: var(--wash); border: 1px solid var(--rule); border-radius: 8px; text-align: center; }
.empty h2 { margin: 0 0 8px; font-family: var(--cond); font-size: 2.2rem; }
.empty p { margin: 0 0 20px; }
.past-row { margin-top: 32px; }
.past-row .btn { width: 100%; }

/* Sheets (add, details) */
dialog { border: 0; padding: 0; background: var(--page); color: var(--ink); width: min(100% - 2 * var(--gutter), 1100px); max-height: calc(100dvh - 48px);
  border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
dialog::backdrop { background: var(--scrim); }
@media (max-width: 699px) { dialog { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; } }
.sheet { display: flex; flex-direction: column; max-height: inherit; height: 100%; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--gutter); background: var(--wash); border-bottom: 1px solid var(--rule); }
.sheet-head h2 { margin: 0; font-family: var(--cond); font-size: 2rem; line-height: 1.1; }
.x { width: 48px; height: 48px; flex: 0 0 auto; border: 0; border-radius: 8px; background: var(--card); color: var(--ink); font-size: 1.9rem; line-height: 1; cursor: pointer; }
.sheet-body { padding: 20px var(--gutter) 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.sheet-body > * { flex-shrink: 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 10px 14px; border: 2px solid var(--rule); border-radius: 8px; background: var(--field);
  color: var(--ink); font: 400 1.125rem/1.4 var(--text); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--btn1); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.two > * { min-width: 0; }
.field input { min-width: 0; }
.shot-prev { position: relative; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: var(--wash); }
.shot-prev img { display: block; width: 100%; max-height: 360px; object-fit: contain; }
.shot-prev .x { position: absolute; top: 8px; right: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.drop { border: 3px dashed var(--btn1) !important; }
.wide { width: 100%; }

/* Details */
.d-pic { border-radius: 8px; overflow: hidden; background: var(--wash); }
.d-pic img { display: block; width: 100%; max-height: 420px; object-fit: cover; }
.d-title { margin: 0; font-family: var(--cond); font-size: 2.4rem; line-height: 1.05; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0; }
@media (min-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } .facts:has(> :last-child:nth-child(odd)) > :last-child { grid-column: 1 / -1; } }
.fact { background: var(--wash); border: 1px solid var(--rule); border-radius: 8px; padding: 12px 16px; }
.fact dt { font-weight: 700; color: var(--muted); font-size: 1.0625rem; text-transform: uppercase; letter-spacing: .04em; }
.fact dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.btn-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 600px) { .btn-row { grid-template-columns: repeat(2, 1fr); } .btn-row:has(> :last-child:nth-child(odd)) > :last-child { grid-column: 1 / -1; } }
.plan-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plan-row .tog[data-plan="going"] { border-color: #23875C; }
.plan-row .tog[data-plan="maybe"] { border-color: #D9A400; }
.plan-row .tog[data-plan="pass"] { border-color: #B3261E; }
.plan-row .tog[aria-pressed="true"][data-plan="going"] { background: #23875C; border-color: #23875C; color: #FFFFFF; }
.plan-row .tog[aria-pressed="true"][data-plan="maybe"] { background: #F2B705; border-color: #F2B705; color: #2A1638; }
.plan-row .tog[aria-pressed="true"][data-plan="pass"] { background: #B3261E; border-color: #B3261E; color: #FFFFFF; }
.shot-full img { display: block; width: 100%; border-radius: 8px; border: 1px solid var(--rule); }
.danger { background: var(--card); color: var(--warn); border-color: var(--warn); }
.danger.armed { background: var(--warn); color: #FFFFFF; }
.label { margin: 0; font-weight: 700; color: var(--muted); font-size: 1.0625rem; text-transform: uppercase; letter-spacing: .04em; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 12px;
  width: min(100% - 32px, 640px); padding: 10px 10px 10px 18px; background: #2A1638; color: #FFFFFF; border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.toast p { margin: 0; flex: 1 1 auto; }
.toast.bad p { font-style: italic; }
.toast .x { background: rgba(255, 255, 255, .14); color: #FFFFFF; }

/* Locked */
.lock { max-width: 640px; margin: 48px auto; padding: 28px; background: var(--wash); border: 1px solid var(--rule); border-radius: 8px; display: flex; flex-direction: column; gap: 16px; }
.lock h2 { margin: 0; font-family: var(--cond); font-size: 2.2rem; }

.filters .tod[aria-pressed="true"] { background: var(--btn2); border-color: var(--btn2); color: #FFFFFF; }
#addPlan .tog[data-p="going"] { border-color: #23875C; } #addPlan .tog[data-p="maybe"] { border-color: #D9A400; } #addPlan .tog[data-p="pass"] { border-color: #B3261E; }
#addPlan .tog[aria-pressed="true"][data-p="going"] { background: #23875C; color: #FFFFFF; }
#addPlan .tog[aria-pressed="true"][data-p="maybe"] { background: #F2B705; border-color: #F2B705; color: #2A1638; }
#addPlan .tog[aria-pressed="true"][data-p="pass"] { background: #B3261E; color: #FFFFFF; }

.more > summary { list-style: none; cursor: pointer; width: 100%; }
.more > summary::-webkit-details-marker { display: none; }
.more[open] > summary .chev { transform: rotate(180deg); }
.more .menu { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }

.listhead .viewsel { display: flex; align-items: center; gap: 12px; font-weight: 700; flex: 0 1 auto; }
.listhead select { min-height: 48px; min-width: 220px; padding: 0 40px 0 14px; border: 2px solid var(--rule); border-radius: 8px; background: var(--field); color: var(--ink); font: 700 1.125rem/1.2 var(--text); cursor: pointer; }
@media (max-width: 600px) { .listhead .viewsel { width: 100%; } .listhead select { flex: 1 1 auto; min-width: 0; } }

/* Fact labels (When, Where, Price...): a coral tag color and a thin coral edge, so they scan without shouting. */
.fact { border-left: 5px solid var(--sun); }
.fact dt { color: var(--tag); }

/* Pictures: logos sit whole on white; a small credit names the site the photo came from. */
.pic img.logo, .d-pic img.logo { object-fit: contain; padding: 20px; background: #FFFFFF; }
.pic .credit, .d-pic .credit { position: absolute; z-index: 2; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .6); color: #FFFFFF; font-size: 1.0625rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.d-pic { position: relative; }
.pic .ph.poster { align-items: flex-start; justify-content: flex-end; gap: 10px; padding: 18px 20px; text-align: left; background: linear-gradient(135deg, var(--band1), var(--band3)); }
.pic .ph.poster .pdate { display: flex; flex-direction: column; align-items: center; background: var(--sun); color: #2C1245; border-radius: 8px; padding: 6px 12px; line-height: 1; }
.pic .ph.poster .pdate b { font: 700 1.0625rem var(--cond); letter-spacing: .08em; }
.pic .ph.poster .pdate strong { font: 700 2rem var(--cond); }
.pic .ph.poster .ptitle { font: 700 1.9rem/1.05 var(--cond); color: #FFFFFF; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- motion: quick, small, and off for anyone who asks their device for less motion ---------- */
.btn { transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .12s ease, box-shadow .18s ease; }
.btn:active:not(:disabled) { transform: scale(.96); }
.btn.pop { animation: pop-btn .42s cubic-bezier(.3, 1.6, .5, 1); }
.btn.pop .ic { animation: pop-ic .42s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes pop-btn { 0% { transform: scale(.94); } 55% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes pop-ic { 0% { transform: scale(.4) rotate(-12deg); } 60% { transform: scale(1.35) rotate(4deg); } 100% { transform: scale(1) rotate(0); } }
.btn[data-d="read"]:disabled .ic { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.more[open] .menu { animation: drop .2s ease-out; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
dialog[open] { animation: sheet-in .22s ease-out; }
dialog[open]::backdrop { animation: fade-in .22s ease-out; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.card { transition: transform .18s ease, box-shadow .18s ease; }
@media (hover: hover) { .card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px var(--shadow); } }
.more > summary .chev { transition: transform .2s ease; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Dates & Times drawer ---------- */
.filters { position: relative; padding-block: 0; display: block; }
.filters .drawer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.filters.open .drawer { grid-template-rows: 1fr; }
.filters .drawer-in { overflow: hidden; min-height: 0; }
.filters .drawer-in > .wrap { padding-block: 16px 22px; }
.filters:not(.open) { border-bottom: 0; }
.drawer-tab { position: absolute; left: 50%; top: 100%; transform: translate(-50%, -1px); z-index: 5; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border: 1px solid var(--rule); border-top: 0; border-radius: 0 0 14px 14px; background: var(--wash); color: var(--ink);
  font: 700 1.0625rem/1 var(--text); cursor: pointer; box-shadow: 0 6px 12px var(--shadow); }
.drawer-tab .chev { width: 20px; height: 20px; transition: transform .25s ease; }
.filters.open .drawer-tab .chev { transform: rotate(180deg); }
.listhead { padding-top: 24px; }

/* ---------- Spot Check ---------- */
.spotcheck { padding-top: 8px; padding-bottom: 96px; }
.spot-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.spot-head h2 { margin: 0; font: 700 2rem/1.1 var(--cond); }
.spot-head .sub { margin: 4px 0 0; color: var(--muted); font-weight: 600; }
.spot-head .btn { min-width: 200px; }
.spot-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.spot-actions #placesBtn { min-width: 140px; }
.spot-intro { color: var(--muted); margin: 8px 0 14px; }
.spots { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.spot { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--rule);
  border-left: 5px solid var(--sun); border-radius: 8px; padding: 12px 16px; transition: opacity .25s ease, transform .25s ease; }
.spot.gone { opacity: 0; transform: translateX(24px); }
.sdate b { display: block; color: var(--tag); font-weight: 700; letter-spacing: .02em; }
.sdate span { color: var(--muted); font-weight: 600; }
.stitle h4 { margin: 0; font: 700 1.4rem/1.15 var(--cond); }
.stitle p { margin: 2px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.sbtn { display: flex; gap: 10px; }
.sbtn .btn { min-width: 110px; }
.sbtn .skip { min-width: 48px; padding: 0 12px; }
.spot-empty { color: var(--muted); padding: 12px 0; }
@media (max-width: 760px) { .spot { grid-template-columns: 1fr; gap: 8px; } .sbtn .btn { flex: 1 1 auto; } .sbtn .skip { flex: 0 0 56px; } }

/* Header buttons: Spot Check / My Board beside Save */
.bar-actions { display: flex; align-items: center; gap: 12px; }
.ghost { background: rgba(255, 255, 255, .12); color: #FFFFFF; border: 2px solid rgba(255, 255, 255, .55); position: relative; }
.ghost:hover { background: rgba(255, 255, 255, .2); }
.ghost[aria-pressed="true"] { background: #FFFFFF; color: #2C1245; border-color: #FFFFFF; }
.badge { position: absolute; top: -9px; right: -9px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: var(--sun); color: #2C1245;
  font: 700 .95rem/26px var(--text); text-align: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
@media (max-width: 459px) { .bar .wrap { gap: 10px; } .bar-actions { gap: 8px; } .bar .btn { padding: 0 12px; } .brand { font-size: 1.9rem; } .brand svg { width: 34px; height: 34px; } }
.spotcheck { padding-top: 28px; }
@media (max-width: 600px) { .spot-head > div, .spot-actions { width: 100%; } .spot-actions .btn { flex: 1 1 0; min-width: 0; } }

/* Sticky header */
.bar { position: sticky; top: 0; z-index: 40; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
@media (max-width: 400px) { .bar .wrap { gap: 8px; } .brand { font-size: 1.6rem; gap: 6px; } .brand svg { width: 30px; height: 30px; } .bar-actions { gap: 6px; } .bar .btn { padding: 0 10px; gap: 6px; } .bar .btn .ic, .bar .btn svg { width: 20px; height: 20px; } }

/* Card shows the chosen plan only; with none chosen, the link button runs full width. */
.actions > :only-child { grid-column: 1 / -1; }
.planchip { cursor: default; pointer-events: none; }
.planchip[data-plan="going"] { background: #23875C; border-color: #23875C; color: #FFFFFF; }
.planchip[data-plan="maybe"] { background: #F2B705; border-color: #F2B705; color: #2A1638; }
.planchip[data-plan="pass"] { background: #B3261E; border-color: #B3261E; color: #FFFFFF; }

/* Where Spot Check looks */
.watch { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--rule); }
.watch-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.watch-head h3 { margin: 0; font: 700 1.75rem/1.1 var(--cond); }
.watch-head .sub { margin: 0; color: var(--muted); font-weight: 600; }
.watch-group { margin-top: 18px; }
.watch-group h4 { margin: 0 0 10px; font: 700 1.25rem/1.2 var(--cond); letter-spacing: .02em; color: var(--tag); text-transform: uppercase; }
.watch-group h4 span { color: var(--muted); font-weight: 600; }
.watch-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 10px; }
.watch-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 12px 12px 12px 16px; }
.watch-list .wtext { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.watch-list .wtext b { font-size: 1.125rem; }
.watch-list .wtext a, .watch-list .wtext span { color: var(--link); overflow-wrap: break-word; }
.watch-list .wtext span { color: var(--muted); }
.watch-list .wtext em { font-style: normal; color: var(--muted); font-weight: 600; }
.watch-list .wtext em.up { color: var(--tag); }
.watch-list .skip { flex: 0 0 48px; min-width: 48px; padding: 0; }
.watch-add { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; margin-top: 22px; }
@media (max-width: 760px) { .watch-add { grid-template-columns: 1fr; } .watch-list { grid-template-columns: 1fr; } }

/* Filter button: icon only on small phones */
@media (max-width: 459px) { #filterBtn .long { display: none; } #filterBtn { padding: 0 12px; } }
@media (max-width: 300px) { .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .brand svg { width: 38px; height: 38px; } }

/* v27: Places is its own page; "more from this site" rows in Spot Check */
#places.watch { margin-top: 0; border-top: 0; padding-top: 28px; padding-bottom: 96px; }
.watch-head h2 { margin: 0; font: 700 2rem/1.1 var(--cond); }
.back { margin: 0 0 18px; }
.spot-more { margin: 24px 0 0; }
.spot-more .btn, .back .btn { min-height: 52px; font-size: 1.125rem; }
.spot.more-row { display: block; background: transparent; border: 1px dashed var(--rule); padding: 0; }
.spot.more-row button { width: 100%; min-height: 56px; background: none; border: 0; color: var(--link); font-family: inherit; font-weight: 700; font-size: 1.125rem; line-height: 1.3; cursor: pointer; padding: 12px 16px; text-align: left; }
.spot.more-row button:hover, .spot.more-row button:focus-visible { text-decoration: underline; }

/* Spot Check tips stay one per row; icons on the page buttons */
.spot-head .btn .ic, .back .btn .ic, .spot-more .btn .ic { width: 22px; height: 22px; }
.spot-head .btn, .back .btn, .spot-more .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

/* Places page */
.add-card { background: var(--card); border: 1px solid var(--rule); border-left: 5px solid var(--sun); border-radius: 8px; padding: 18px 20px; margin: 6px 0 8px; }
.add-card h3 { margin: 0 0 10px; font: 700 1.5rem/1.15 var(--cond); }
.add-card .watch-add { margin-top: 0; }
.watch-group { margin-top: 30px; }
.watch-group h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 700 1.5rem/1.2 var(--cond); color: var(--ink, inherit); }
.watch-group h3 .ic { width: 26px; height: 26px; color: var(--tag); }
.watch-group h3 span { color: var(--muted); font-weight: 600; }
.watch-list { grid-template-columns: 1fr; gap: 12px; }
.watch-list li { align-items: flex-start; padding: 16px 14px 16px 18px; }
.watch-list .wtext { gap: 4px; }
.watch-list .wtext b { font-size: 1.25rem; line-height: 1.25; }
.chip { align-self: flex-start; margin-top: 4px; padding: 3px 10px; border-radius: 6px; border: 1px solid var(--rule); font-style: normal; font-weight: 700; color: var(--muted); }
.chip.up { background: var(--sun); border-color: var(--sun); color: #2C1245; }
/* a lone card on a grid's last row spans the row (set by script, since column counts change by width) */
.watch-list > .span-row { grid-column: 1 / -1; }
.more-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px; padding: 0; background: none; border: 0; color: var(--link); font-family: inherit; font-weight: 700; font-size: 1.125rem; cursor: pointer; text-align: left; }
.more-link:hover, .more-link:focus-visible { text-decoration: underline; }
.watch-list .wtext a { display: inline-flex; align-items: center; min-height: 44px; }
/* v30: Check Now, tallies, quiet tag */
.check-note { margin: 0 0 14px; font-weight: 700; color: var(--ink); }
.watch-list .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.watch-list .tally { color: var(--muted); font-weight: 600; }
.chip.quiet { background: transparent; border-color: var(--warn); color: var(--warn); }
.checknow { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; }
.checknow .ic { width: 20px; height: 20px; }
.checknow:disabled { opacity: .55; cursor: not-allowed; }
/* Places: one place per row, like Spot Check tips (Nick, 2026-11-12: no card columns) */
.watch-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; border-left: 5px solid var(--rule); }
.watch-list .wbtn { display: flex; gap: 10px; align-items: center; }
.watch-list .wbtn .checknow { min-width: 160px; justify-content: center; }
.watch-list .wbtn .skip { min-width: 48px; padding: 0 12px; }
@media (max-width: 760px) { .watch-list li { grid-template-columns: 1fr; } .watch-list .wbtn .checknow { flex: 1 1 auto; } .watch-list .wbtn .skip { flex: 0 0 56px; } }
/* v31: Your Places */
.good-list { margin: 0 0 10px; padding-left: 1.3em; display: grid; gap: 4px; }
.good-list li { font-size: 1.125rem; }
.good-note { margin: 0 0 16px; color: var(--muted); }
.watch-group > h3 span { color: var(--muted); font-weight: 600; }
.watch-list .wbtn .btn.go, .watch-list .wbtn .btn.see:not(.skip) { min-width: 120px; min-height: 48px; }
/* v32: splash page, sign-in, account */
.splash { padding-top: 32px; padding-bottom: 96px; }
.splash-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: stretch; }
@media (min-width: 900px) { .splash-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; } }
.pitch { background: var(--wash); border: 1px solid var(--rule); border-left: 5px solid var(--sun); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.pitch h2 { margin: 0 0 18px; font: 700 clamp(2rem, 4vw, 3rem)/1.05 var(--cond); text-wrap: balance; }
.pitch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pitch-list li { font-size: 1.2rem; line-height: 1.5; }
.pitch-list b { display: block; font-family: var(--cond); font-size: 1.45rem; color: var(--tag); }
.authcard { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.authtabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.authtabs .btn { min-height: 52px; font-size: 1.125rem; }
.authform { display: flex; flex-direction: column; gap: 14px; }
.authform h3, .acct-card h3 { margin: 0; font: 700 1.6rem/1.15 var(--cond); }
.authform .btn.go { min-height: 54px; font-size: 1.15rem; }
.linkbtn { align-self: flex-start; min-height: 44px; padding: 0; background: none; border: 0; color: var(--link); font-family: inherit; font-weight: 700; font-size: 1.125rem; cursor: pointer; }
.linkbtn:hover, .linkbtn:focus-visible { text-decoration: underline; }
.okmsg { margin: 0; padding: 12px 14px; border-radius: 8px; background: var(--pick); color: #2C1245; font-weight: 700; }
.citypick { position: relative; display: flex; flex-direction: column; gap: 6px; }
.cityopts { list-style: none; margin: 0; padding: 6px; border: 2px solid var(--rule); border-radius: 8px; background: var(--card); display: grid; gap: 4px; }
.cityopt { width: 100%; min-height: 48px; text-align: left; padding: 10px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font-family: inherit; font-size: 1.0625rem; cursor: pointer; }
.cityopt:hover, .cityopt:focus-visible { background: var(--wash); }
.cityempty { color: var(--muted); padding: 8px 4px; }
.citynote { margin: 0; color: var(--muted); font-size: 1.0625rem; }
.account { padding-top: 28px; padding-bottom: 96px; }
.account > h2 { margin: 0 0 16px; font: 700 2rem/1.1 var(--cond); }
.acct-card { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 20px 22px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 12px; }
.acct-who, .acct-place { margin: 0; font-size: 1.15rem; }
.acct-help { margin: 0; color: var(--muted); }
.acct-row, .acct-home { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.acct-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.acct-btns .btn, .acct-row .btn, .acct-home .btn { min-height: 52px; }
@media (max-width: 600px) { .acct-row, .acct-home { grid-template-columns: 1fr; } .acct-btns .btn { flex: 1 1 100%; } }
.invite-list, .people-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.invite-list li, .people-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 8px; }
.invite-list .code { font-family: ui-monospace, Consolas, monospace; font-size: 1.3rem; letter-spacing: .06em; }
.invite-list span, .people-list span { color: var(--muted); }
.people-list li > div { display: flex; flex-direction: column; }
#acctBtn[aria-pressed="true"] { background: var(--card); color: var(--ink); }
@media (max-width: 400px) { .bar:has(#acctBtn:not([hidden])) .brand-name { display: none; } }
@media (max-width: 960px) { .bar .long, .bar .short { display: none; } .bar .btn { padding: 0 12px; min-width: 48px; } }
.badge { font-size: 1.0625rem; line-height: 28px; min-width: 28px; height: 28px; border-radius: 14px; top: -10px; right: -10px; }
.acct-home { display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 100%; }
.acct-home .acct-row { margin: 0; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 600px) { .acct-home .acct-row { grid-template-columns: 1fr; } }
/* v36: color choices on the Account page */
.palettes { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 700px) { .palettes { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.pal { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-height: 96px; padding: 10px; border: 2px solid var(--rule); border-radius: 8px; background: var(--card); color: var(--ink); font-family: inherit; font-weight: 700; font-size: 1.0625rem; cursor: pointer; text-align: left; }
.pal[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.pal .sw { display: grid; grid-template-columns: 2fr 1fr 1fr; height: 36px; border-radius: 6px; overflow: hidden; }
.pal .sw i { display: block; }
.pal .pname { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.acct-card h3 { display: flex; align-items: center; gap: 10px; }
.acct-card h3 .ic { width: 26px; height: 26px; color: var(--tag); flex: 0 0 auto; }
.pw-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.pw-form .btn { min-height: 52px; }
@media (max-width: 760px) { .pw-form { grid-template-columns: 1fr; } }
/* v38: tabs, logo, filter on My Pins, About */
.brand a { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 10px; flex: 0 0 auto; display: block; }
@media (max-width: 459px) { .brand img { width: 38px; height: 38px; } }
@media (max-width: 400px) { .brand img { width: 34px; height: 34px; } }
.bar .nav[aria-pressed="true"] { background: #FFFFFF; color: #2C1245; border-color: #FFFFFF; }
.listhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.listtools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.listtools #filterBtn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; position: relative; }
.listtools #filterBtn .ic { width: 22px; height: 22px; }
.listtools #filterBtn[aria-pressed="true"] { background: var(--btn2); border-color: var(--btn2); color: #FFFFFF; }
.about { padding-top: 28px; padding-bottom: 96px; }
.about-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.about-head img { width: 96px; height: 96px; border-radius: 22px; flex: 0 0 auto; }
.about-head h2 { margin: 0; font: 700 2.4rem/1.05 var(--cond); }
.about-head .sub { margin: 4px 0 0; color: var(--muted); font-size: 1.2rem; }
.about .acct-card p { margin: 0; font-size: 1.15rem; line-height: 1.6; }
@media (max-width: 500px) { .about-head img { width: 72px; height: 72px; border-radius: 16px; } .about-head h2 { font-size: 2rem; } }
.brand img, .about-head img { border-radius: 0; object-fit: contain; }
