:root {
  color-scheme: light;
  --paper: #faf7ee;
  --ink: #24263d;
  --muted: #5d5d70;
  --line: #e6e0d4;
  --chrome: #fffcf5;
  --panel: #fffcf5;
  --panel-border: #dcd5c7;
  --field: #fff;
  --field-border: #cfc8ba;
  --accent: #3f5fcc;
  --primary: #3c58d4;
  --primary-hover: #324dc7;
  --primary-edge: #273b9d;
  --primary-on: #fff;
  --secondary: #eef2ff;
  --secondary-hover: #e1e8ff;
  --secondary-edge: #c9d4f8;
  --secondary-ink: #3047a5;
  --hover: #ffffff65;
  --icon-inset: #ffffff64;
  --close-face: #eeeae0;
  --focus: #262947;
  --saved: #397758;
  --danger: #922d2d;
  --danger-hover: #fae4e0;
  --backdrop: #22264170;
  --intro-face: #e8edff;
  --intro-edge: #d0d9fb;
  --intro-period: #f06357;
  --intro-art: radial-gradient(#9daee65c 1.25px, transparent 1.25px);
  --intro-art-size: 17px 17px;
  --tile-edge: #d5cdbb;
  --tile-face: #fffcf552;
  --tile-hover: #f1edff;
  --tile-icon: #e8edff;
  --display: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100vh; background-image: var(--page-art, none); background-size: var(--page-art-size, auto); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .43; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; display: block; }
.shell { width: min(1120px, calc(100% - 72px)); margin-inline: auto; }
main { padding-bottom: 42px; }
.top { border-bottom: 1px solid var(--line); background: var(--chrome); }
.top-inner { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.secondary { min-height: 38px; padding: 6px 12px; border: 1px solid var(--secondary-edge); border-radius: 10px; background: var(--secondary); color: var(--secondary-ink); font-size: .88rem; font-weight: 750; }
.secondary:hover:not(:disabled) { background: var(--secondary-hover); }
.brand { display: inline-flex; gap: 11px; align-items: center; text-decoration: none; color: var(--ink); font-size: 1.43rem; font-weight: 850; letter-spacing: -.065em; }
.brand > span:last-child > span { color: var(--accent); }
.brand-mark { display: grid; grid-template-columns: repeat(2, 12px); gap: 3px; transform: rotate(-9deg); }
.brand-mark i { height: 12px; border-radius: 3px; background: var(--red-mark, #fa6c62); box-shadow: inset 0 -2px #26294726; }
.brand-mark i:nth-child(2) { background: var(--blue-mark, #719df8); }
.brand-mark i:nth-child(3) { background: var(--yellow-mark, #ffce44); }
.brand-mark i:nth-child(4) { background: var(--green-mark, #70d4ab); }
.storage { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 30px; padding: 7px 12px; background: var(--field); color: var(--muted); font-size: .81rem; font-weight: 700; }
.storage svg { width: 16px; height: 16px; color: var(--saved); flex: none; }
.storage[data-error] { color: var(--danger); }
.storage[data-error] svg { display: none; }
.banner-art { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.banner-art::before { content: ""; position: absolute; inset: 0; background-color: var(--intro-face); background-image: var(--intro-art); background-size: var(--intro-art-size); opacity: .35; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 850; }
.toy-stack { position: absolute; z-index: 1; width: 91px; height: 49px; right: 23px; bottom: 2px; opacity: .75; }
.toy { position: absolute; display: block; border-radius: min(var(--toy-radius, 7px), 9px); border: 1px solid var(--rim); background: var(--face); box-shadow: inset 0 2px #ffffff80, inset 0 -3px #1716441c, 0 2px var(--rim), 0 4px 6px #3b458022; }
.toy::before, .toy::after { content: ""; position: absolute; top: 20%; width: 31%; aspect-ratio: 1; border-radius: 50%; background: var(--stud); box-shadow: inset 0 1px #ffffff77, 0 1px var(--rim); }
.toy::before { left: 13%; }
.toy::after { right: 13%; }
.toy-blue { --face: var(--blue-face, #7ba3ff); --rim: var(--blue-edge, #476acb); --stud: var(--blue-mark, #9dbbff); width: 45px; height: 25px; left: 3px; top: 18px; transform: rotate(-13deg); }
.toy-red { --face: var(--red-face, #ff7467); --rim: var(--red-edge, #d6544d); --stud: var(--red-mark, #ff9a87); width: 44px; height: 25px; left: 36px; top: 21px; transform: rotate(13deg); }
.toy-yellow { --face: var(--yellow-face, #ffd455); --rim: var(--yellow-edge, #dca731); --stud: var(--yellow-mark, #ffe487); width: 37px; height: 22px; left: 23px; top: 4px; transform: rotate(-12deg); }
.toy-spark { position: absolute; top: 2px; right: 0; color: var(--accent); font-size: .82rem; line-height: 1; }
.board-heading { margin: 21px 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.board-picker { position: relative; display: grid; width: min(100%, 360px); min-width: 0; }
.board-picker::after { content: ""; position: absolute; right: 16px; top: calc(50% - 6px); width: 8px; height: 8px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); pointer-events: none; }
.board-picker select { appearance: none; width: 100%; min-height: 44px; padding: 5px 35px 5px 12px; border: 1px solid var(--field-border); border-radius: 11px; background: var(--field); font-size: 1.2rem; font-weight: 850; text-overflow: ellipsis; cursor: pointer; }
.board-tools { display: flex; flex: none; align-items: center; flex-wrap: wrap; gap: 8px; }
.board-help { margin: 0 0 14px; font-size: .92rem; color: var(--muted); font-weight: 600; }
.primary { display: inline-flex; justify-content: center; align-items: center; gap: 7px; white-space: nowrap; padding: 10px 17px; min-height: 44px; border: 1px solid var(--primary-edge); border-radius: 12px; background: var(--primary); color: var(--primary-on); box-shadow: 0 3px var(--primary-edge); font-weight: 750; font-size: .91rem; }
.primary:hover { background: var(--primary-hover); }
.primary:active { translate: 0 2px; box-shadow: 0 1px var(--primary-edge); }
.board { --board-columns: 3; position: relative; display: grid; grid-template-columns: repeat(var(--board-columns), minmax(0, 1fr)); align-items: start; gap: 20px; }
.board.free-board { display: block; height: var(--canvas-height); isolation: isolate; }
.free-board > .block, .free-board > .add-tile { position: absolute; }
.free-board > .block { width: var(--free-width); left: var(--free-left); top: var(--free-top); }
.free-board > .add-tile { left: 0; }
.free-board > .block:focus-within { z-index: 1; }
.free-board > .block.is-manipulating { z-index: 2; user-select: none; }
.free-board > .block.is-snapped { outline: 2px solid var(--focus); outline-offset: 3px; }
[data-color="red"]    { --face: var(--red-face, #ff8276); --edge: var(--red-edge, #de5d54); --well: var(--red-well, #55343d); --surface: var(--red-surface, #fff0e9); --tint: var(--red-tint, #ffe0d9); }
[data-color="blue"]   { --face: var(--blue-face, #86aafa); --edge: var(--blue-edge, #6488e0); --well: var(--blue-well, #2f457c); --surface: var(--blue-surface, #f1f5ff); --tint: var(--blue-tint, #dce8ff); }
[data-color="yellow"] { --face: var(--yellow-face, #ffda65); --edge: var(--yellow-edge, #d9ad39); --well: var(--yellow-well, #574729); --surface: var(--yellow-surface, #fff9df); --tint: var(--yellow-tint, #fff0b4); }
[data-color="green"]  { --face: var(--green-face, #83d9b6); --edge: var(--green-edge, #54ac8c); --well: var(--green-well, #274e45); --surface: var(--green-surface, #effff5); --tint: var(--green-tint, #d3f6e5); }
[data-color="purple"] { --face: var(--purple-face, #c6abff); --edge: var(--purple-edge, #a185df); --well: var(--purple-well, #493867); --surface: var(--purple-surface, #faf1ff); --tint: var(--purple-tint, #ecdeff); }
.block { --block-min-width: 220px; position: relative; display: flex; flex-direction: column; min-width: 0; min-height: var(--block-height, 0px); padding: 15px 15px 30px; border: 1.5px solid var(--edge); border-radius: var(--block-radius, 22px); background: var(--face); box-shadow: var(--block-shadow, inset 0 2px #ffffff66, 0 5px var(--edge)); }
.block[data-type="calendar"] { --block-min-width: 242px; }
.block[data-type="pickleball"] { --block-min-width: 248px; }
.board > .block { grid-column: span min(var(--board-columns), var(--block-columns, var(--default-columns, 1))); }
.block[data-type="notes"] { --default-columns: 2; }
.block-header { display: flex; align-items: center; margin-bottom: 13px; gap: 8px; min-width: 0; }
.block-type-icon { display: grid; place-items: center; flex: none; width: 35px; height: 35px; border-radius: 10px; background: var(--icon-inset); }
.block-header h2 { flex: 1; min-width: 0; font-size: 1.09rem; letter-spacing: -.025em; overflow-wrap: anywhere; }
.icon-button { display: grid; place-items: center; padding: 0; width: 34px; height: 35px; flex: none; border: 1px solid transparent; background: transparent; border-radius: 9px; }
.icon-button:hover { background: var(--hover); }
.drag-handle { cursor: grab; touch-action: none; }
.drag-handle:active { cursor: grabbing; }
.resize-handle { position: absolute; right: 7px; bottom: 2px; width: 30px; height: 27px; cursor: nwse-resize; touch-action: none; }
.resize-handle svg { width: 16px; height: 16px; }
.block-body { flex: 1; display: flex; flex-direction: column; }
.block:not([data-custom-height]) .block-body { min-height: 144px; }
.block[data-type="banner"] { isolation: isolate; padding: 12px 13px 25px; }
.block[data-type="banner"] .block-header { position: relative; z-index: 1; margin-bottom: 0; }
.block[data-type="banner"] .block-header h2 { font-size: clamp(1.25rem, 2.6vw, 1.85rem); letter-spacing: -.06em; }
.block[data-type="banner"] .block-type-icon { display: none; }
.block[data-type="banner"] .block-body { position: absolute; z-index: 0; inset: 0; min-height: 0; border-radius: inherit; pointer-events: none; }
.block[data-type="banner"] .resize-handle { z-index: 1; }
.timer-display { flex: 1; display: grid; align-content: center; background: var(--well); color: var(--surface); text-align: center; border-radius: 13px; padding: 8px 4px 10px; box-shadow: inset 0 3px #0002; }
.digits { font-size: clamp(1.85rem, 4.1vw, 3rem); line-height: 1.08; font-weight: 800; letter-spacing: -.065em; font-variant-numeric: tabular-nums; }
.timer-status { display: block; font-size: .74rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; margin-top: 4px; }
.timer-controls { display: grid; grid-template-columns: 1fr 45px; gap: 8px; margin-top: 10px; }
.countup { flex: 1; display: grid; grid-template-rows: 1fr auto; }
.countup-display { display: grid; align-content: center; padding: 8px 10px; background: var(--well); color: var(--surface); border-radius: 13px; box-shadow: inset 0 3px #0002; text-align: center; }
.countup-calendar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.countup-calendar > div + div { border-inline-start: 1px solid #ffffff48; }
.countup-calendar .digits { display: block; font-size: clamp(1.6rem, 3.1vw, 2.45rem); overflow-wrap: anywhere; }
.countup-unit { font-size: .76rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.countup-time { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 7px; padding: 5px 0; border-radius: 8px; background: #ffffff16; font-size: 1.18rem; line-height: 1.12; font-weight: 750; font-variant-numeric: tabular-nums; }
.countup-time .countup-unit { display: block; margin-top: 3px; font-size: .7rem; letter-spacing: .04em; }
.countup-since { padding-top: 6px; text-align: center; font-size: .82rem; font-weight: 700; color: var(--well); }
.toy-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 5px 9px; background: var(--surface); color: var(--ink); border: 1px solid #0002; border-radius: 10px; box-shadow: 0 2px #0003; font-size: .9rem; font-weight: 750; }
.toy-button:hover:not(:disabled) { background: var(--control-hover, #fff); }
.toy-button:active:not(:disabled) { translate: 0 1px; box-shadow: 0 1px #0003; }
.toy-button svg { width: 17px; height: 17px; }
.clock { flex: 1; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(8px, 1.5vw, 17px); padding: 10px; background: var(--surface); border-radius: 13px; box-shadow: inset 0 2px #00000014; }
.clock-face { position: relative; width: clamp(64px, 8vw, 97px); aspect-ratio: 1; flex: none; border: 3px solid var(--well); border-radius: 50%; background: var(--field); box-shadow: 0 3px #0002; }
.clock-face::after { content: ""; position: absolute; z-index: 2; width: 8%; aspect-ratio: 1; border-radius: 50%; background: var(--well); top: 50%; left: 50%; translate: -50% -50%; }
.tick { position: absolute; width: 3%; height: 7%; background: var(--well); top: 6%; left: 48.5%; transform-origin: 50% 630%; border-radius: 4px; }
.hand { position: absolute; bottom: 50%; left: 50%; width: 4%; height: 29%; border-radius: 5px; background: var(--well); transform-origin: center bottom; transform: translateX(-50%) rotate(var(--angle, 0deg)); }
.hand.minute { height: 39%; width: 3%; }
.hand.second { height: 40%; width: 2%; background: var(--intro-period); }
.clock-copy { min-width: 0; }
.clock-copy time { display: block; white-space: nowrap; font-size: clamp(1.5rem, 2.75vw, 2.25rem); }
.clock-copy time small { font-size: .46em; letter-spacing: 0; margin-left: 4px; }
.clock-copy p { margin-top: 5px; color: var(--well); font-size: .82rem; font-weight: 700; }
.calendar { flex: 1; display: flex; flex-direction: column; padding: 10px; border-radius: 13px; background: var(--surface); box-shadow: inset 0 2px #00000014; }
.calendar table { flex: 1; width: 100%; table-layout: fixed; border-collapse: collapse; text-align: center; }
.calendar caption { padding-bottom: 7px; color: var(--well); font-weight: 850; font-size: 1.02rem; }
.calendar th { height: 24px; padding: 0; color: var(--well); font-size: .72rem; font-weight: 750; }
.calendar td { height: 28px; padding: 0; font-size: .86rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.calendar td time { display: inline-grid; place-items: center; width: min(100%, 27px); height: 25px; border-radius: 8px; }
.calendar [aria-current="date"] { color: var(--surface); background: var(--well); font-weight: 850; }
.calendar-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 7px; }
.calendar-controls .toy-button { min-height: 34px; padding-inline: 3px; background: var(--tint); font-size: .81rem; }
.habit { flex: 1; display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: start; gap: 8px; padding: 13px 10px 12px; background: var(--surface); border-radius: 13px; box-shadow: inset 0 2px #00000014; }
.habit .toy-button { align-self: start; margin-top: 7px; background: var(--tint); }
.habit:has(progress[hidden]) { align-content: center; }
.habit:has(progress[hidden]) .toy-button { align-self: center; margin-top: 0; }
.habit .increment { background: var(--well); color: var(--surface); }
.habit .increment:hover:not(:disabled) { background: var(--ink); }
.habit-count { text-align: center; min-width: 0; }
.habit-count .digits { overflow-wrap: anywhere; }
.habit-count p { font-size: .79rem; color: var(--well); font-weight: 750; margin-top: 5px; overflow-wrap: anywhere; }
.habit progress { grid-column: 1 / -1; align-self: end; width: 100%; height: 9px; border: 0; border-radius: 10px; background: var(--tint); color: var(--well); overflow: hidden; }
.habit progress::-webkit-progress-bar { background: var(--tint); }
.habit progress::-webkit-progress-value { background: var(--well); border-radius: 10px; }
.habit progress::-moz-progress-bar { background: var(--well); border-radius: 10px; }
.habit-group { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 8px; border-radius: 13px; background: var(--surface); box-shadow: inset 0 2px #00000014; }
.habit-group-list { max-height: max(154px, calc(var(--block-height, 310px) - 108px)); overflow-y: auto; display: grid; gap: 6px; min-width: 0; margin: 0; padding: 4px; list-style: none; }
.habit-group-list:empty { display: none; }
.habit-group-row { display: grid; grid-template-columns: minmax(0, 1fr) 32px minmax(34px, auto) 32px; align-items: center; gap: 5px; padding: 5px; border-radius: 9px; background: var(--tint); }
.habit-group-name { font-size: .86rem; font-weight: 800; overflow-wrap: anywhere; }
.habit-group-value { display: grid; text-align: center; color: var(--well); font-variant-numeric: tabular-nums; }
.habit-group-count { font-size: 1.1rem; font-weight: 850; line-height: 1.15; }
.habit-group-goal { font-size: .75rem; font-weight: 700; }
.habit-group-goal:empty { display: none; }
.habit-group-row .toy-button { min-height: 32px; padding: 0; }
.habit-group-row .toy-button:focus-visible { outline-offset: 1px; }
.habit-group-row .habit-group-plus { background: var(--well); color: var(--surface); }
.habit-group-row .habit-group-plus:hover:not(:disabled) { background: var(--ink); }
.habit-group-empty { display: grid; flex: 1; place-items: center; }
.habit-group-settings { min-width: 0; margin: 0 0 16px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; }
.habit-group-settings legend { font-size: .92rem; font-weight: 800; }
.habit-group-settings-list { display: grid; gap: 8px; }
.habit-group-settings-list:not(:empty) { margin-bottom: 9px; }
.habit-group-setting { display: grid; grid-template-columns: minmax(0, 1fr) 5rem 34px; align-items: center; gap: 6px; }
.habit-group-setting input { min-width: 0; min-height: 38px; padding: 5px 8px; border: 1px solid var(--field-border); border-radius: 8px; background: var(--field); font-size: .88rem; }
.habit-group-settings p { margin-top: 7px; color: var(--muted); font-size: .82rem; }
.habit-history { margin-bottom: 13px; padding: 8px 10px; border: 1px solid var(--field-border); border-radius: 9px; background: var(--field); }
.habit-history summary { cursor: pointer; font-size: .91rem; font-weight: 800; }
.habit-history-empty { margin-top: 8px; color: var(--muted); font-size: .82rem; }
.habit-history-list { display: grid; gap: 8px; max-height: min(36dvh, 15rem); overflow: auto; margin: 8px 0 0; padding: 0; list-style: none; }
.habit-history-list:empty { display: none; }
.habit-history-list li { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.habit-history-list time { color: var(--muted); font-size: .82rem; }
.habit-history-count { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; font-size: .86rem; overflow-wrap: anywhere; }
.habit-history-count strong { font-variant-numeric: tabular-nums; }
.notes { flex: 1; width: 100%; min-height: 76px; border: 1px solid #0002; border-radius: 12px; background: repeating-linear-gradient(to bottom, transparent 0 27px, var(--tint) 27px 28px), var(--surface); background-position: 0 11px; color: var(--ink); padding: 10px 13px; line-height: 28px; resize: none; }
.notes::placeholder { color: var(--note-placeholder, #52685f); opacity: 1; }
.todo { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 10px; border-radius: 13px; background: var(--surface); box-shadow: inset 0 2px #00000014; }
.todo-form { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 6px; }
.todo-form input { min-width: 0; padding: 6px 8px; border: 1px solid var(--edge); border-radius: 9px; background: var(--field); font-size: .9rem; }
.todo-form input::placeholder { color: var(--muted); opacity: 1; }
.todo-form .toy-button { min-height: 36px; padding: 0; color: var(--surface); background: var(--well); }
.todo-form .toy-button:hover { background: var(--ink); }
.todo-list { min-width: 0; max-height: max(92px, calc(var(--block-height, 258px) - 154px)); overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.todo-list:empty { display: none; }
.todo-item { display: flex; align-items: center; min-width: 0; padding: 2px 3px; border-bottom: 1px solid var(--tint); }
.todo-item label { display: flex; flex: 1; align-items: flex-start; gap: 7px; min-width: 0; padding: 5px 1px; font-size: .87rem; cursor: pointer; }
.todo-item input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--well); }
.todo-item label span { overflow-wrap: anywhere; }
.todo-item input:checked + span { color: var(--muted); text-decoration: line-through; }
.todo-remove { flex: none; width: 31px; height: 31px; }
.todo-remove:hover { background: var(--tint); }
.todo-remove svg { width: 16px; height: 16px; }
.todo-item :focus-visible { outline-offset: 0; }
.todo-empty { color: var(--muted); font-size: .86rem; padding: 3px 1px; }
.pickleball { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 13px; background: var(--surface); box-shadow: inset 0 2px #00000014; }
.pickleball-scores, .pickleball-actions, .pickleball-fields, .pickleball-roster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pickleball-scores { flex: 1; }
.pickleball-side { display: grid; align-content: start; gap: 5px; min-width: 0; padding: 6px; border: 1px solid var(--edge); border-radius: 10px; background: var(--tint); text-align: center; }
.pickleball-side[data-serving] { border-color: var(--well); box-shadow: inset 0 0 0 1px var(--well); }
.pickleball-name { color: var(--well); font-size: .9rem; font-weight: 800; overflow-wrap: anywhere; }
.pickleball-score { overflow-wrap: anywhere; }
.pickleball-side .toy-button { min-height: 37px; padding-inline: 2px; font-size: .82rem; }
.pickleball-readout { padding: 7px 8px; border-radius: 8px; background: var(--well); color: var(--surface); font-size: .81rem; line-height: 1.4; overflow-wrap: anywhere; }
.pickleball-serving, .pickleball-call { font-weight: 800; }
.pickleball-receiving:empty { display: none; }
.pickleball-actions .toy-button { min-height: 33px; padding-inline: 4px; font-size: .8rem; }
.pickleball-save { grid-column: 1 / -1; background: var(--well); color: var(--surface); }
.pickleball-save:hover:not(:disabled) { background: var(--ink); }
.pickleball-save:disabled { opacity: 1; background: var(--tint); color: var(--well); box-shadow: none; }
.pickleball-save-error { color: var(--danger); font-size: .82rem; }
.pickleball-fields, .pickleball-roster { column-gap: 10px; }
.pickleball-roster, .pickleball-roster .pickleball-setting-note { grid-column: 1 / -1; }
.pickleball-setting-note { margin-bottom: 9px; color: var(--muted); font-size: .85rem; }
.pickleball-history { margin-bottom: 13px; padding: 8px 10px; border: 1px solid var(--field-border); border-radius: 9px; background: var(--field); }
.pickleball-history summary { cursor: pointer; font-size: .91rem; font-weight: 800; }
.pickleball-history-count { margin-inline-start: 4px; color: var(--muted); }
.pickleball-history-empty, .pickleball-history-meta { color: var(--muted); font-size: .82rem; }
.pickleball-history-empty { margin-top: 8px; }
.pickleball-history-list { display: grid; gap: 8px; max-height: min(36dvh, 15rem); overflow: auto; margin: 8px 0 0; padding: 0; list-style: none; }
.pickleball-history-list:empty { display: none; }
.pickleball-history-list li { padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); font-size: .86rem; overflow-wrap: anywhere; }
.pickleball-history-list p { margin-top: 3px; }
.add-tile { min-height: 213px; background: var(--tile-face); border: 2px dashed var(--tile-edge); border-radius: 22px; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--ink); }
.add-tile:hover { background: var(--tile-hover); border-color: var(--accent); }
.add-tile .add-icon { width: 43px; height: 43px; display: grid; place-items: center; color: var(--accent); border-radius: 12px; background: var(--tile-icon); margin-bottom: 2px; }
.add-tile strong { font-size: 1rem; }
.add-tile small { color: var(--muted); font-size: .84rem; }
.undo-toast { position: fixed; z-index: 5; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 36px); padding: 10px 12px 10px 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); box-shadow: 0 5px 16px #24263d29; font-size: .9rem; font-weight: 700; }
.undo-toast span { overflow-wrap: anywhere; }
.undo-toast button { border: 0; padding: 7px 10px; border-radius: 7px; background: var(--secondary); color: var(--secondary-ink); font-weight: 800; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
dialog { width: min(470px, calc(100vw - 30px)); max-height: calc(100dvh - 30px); padding: 24px; border: 1px solid var(--panel-border); border-radius: 22px; color: var(--ink); background: var(--panel); box-shadow: 0 12px 28px #24263d38; }
dialog::backdrop { background: var(--backdrop); }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 18px; gap: 8px; }
.dialog-heading h2 { font-size: 1.65rem; letter-spacing: -.045em; }
.dialog-heading p { color: var(--muted); margin-top: 4px; }
.backup-section { display: grid; justify-items: start; gap: 12px; }
.backup-section + .backup-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.backup-section p { color: var(--muted); font-size: .9rem; }
.backup-section .field { width: 100%; margin: 0; min-width: 0; }
.backup-section input::file-selector-button { margin-inline-end: 8px; font: inherit; }
.backup-message[data-error] { color: var(--danger); }
.close { background: var(--close-face); }
.block-choices { display: grid; gap: 8px; }
.choice { display: flex; text-align: left; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid var(--edge); border-radius: 12px; background: var(--surface); }
.choice:hover { background: var(--tint); }
.choice .block-type-icon { background: var(--face); }
.choice small { display: block; font-size: .82rem; color: var(--well); margin-top: 2px; }
.field { display: grid; gap: 6px; margin-bottom: 13px; font-size: .92rem; font-weight: 700; }
.field input, .field select { width: 100%; border: 1px solid var(--field-border); border-radius: 9px; min-height: 42px; padding: 7px 10px; background: var(--field); }
.color-field { margin: 0; padding: 0; border: 0; font-weight: 700; font-size: .92rem; }
#colors { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 18px; }
.swatch { display: grid; place-items: center; width: 37px; height: 37px; background: var(--face); border: 1px solid var(--edge); border-radius: 10px; cursor: pointer; }
.swatch svg { visibility: hidden; }
.swatch:has(input:checked) { outline: 2px solid var(--ink); outline-offset: 2px; }
.swatch:has(input:checked) svg { visibility: visible; }
.swatch:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.dialog-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.board-name-actions { justify-content: flex-end; }
.remove { border: 0; border-radius: 8px; padding: 10px 5px; color: var(--danger); background: transparent; font-weight: 750; }
.remove:hover { background: var(--danger-hover); }
@media (max-width: 920px) {
  .shell { width: calc(100% - 48px); }
  .board { --board-columns: 2; }
  .block[data-type="notes"] { --default-columns: 1; }
}
@media (max-width: 600px) {
  .shell { width: calc(100% - 30px); }
  .top-inner { min-height: 61px; height: auto; padding-block: 8px; flex-wrap: wrap; }
  .board-heading { margin-top: 17px; flex-wrap: wrap; gap: 9px; }
  .board-picker { width: 100%; }
  .board-tools { flex-shrink: 1; }
  .board-help { font-size: .83rem; }
  .board { --board-columns: 1; gap: 16px; }
  .clock-face { width: 90px; }
  .digits { font-size: 2.65rem; }
  .clock-copy time { font-size: 2rem; }
  .add-tile { min-height: 145px; }
}
@media (max-width: 395px) {
  .board-heading .primary { padding-inline: 10px; }
}

.theme-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; border: 0; }
.theme-option { display: grid; min-width: 0; overflow: hidden; border: 1px solid var(--panel-border); border-radius: 14px; background: var(--field); cursor: pointer; }
.theme-option:hover { border-color: var(--accent); }
.theme-option:has(input:checked) { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.theme-label { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 40px; padding: 7px 9px; color: var(--ink); font-size: .86rem; font-weight: 800; }
.theme-label svg { width: 17px; height: 17px; flex: none; color: var(--accent); visibility: hidden; }
.theme-option:has(input:checked) .theme-label svg { visibility: visible; }
.theme-preview { display: flex; align-items: flex-end; justify-content: center; gap: 6px; height: 76px; padding: 10px; background-color: var(--intro-face); background-image: var(--intro-art); background-size: var(--intro-art-size); border-bottom: 1px solid var(--intro-edge); }
.theme-preview i { width: 23%; height: 27px; border: 1px solid; border-radius: var(--toy-radius, 7px); box-shadow: inset 0 2px #ffffff30, 0 3px #0002; }
.theme-preview i:nth-child(1) { background: var(--red-face); border-color: var(--red-edge); height: 32px; }
.theme-preview i:nth-child(2) { background: var(--blue-face); border-color: var(--blue-edge); }
.theme-preview i:nth-child(3) { background: var(--yellow-face); border-color: var(--yellow-edge); height: 40px; }
.theme-preview[data-theme-preview="toy-box"] {
  --intro-face: #e8edff; --intro-art: radial-gradient(#9daee65c 1.25px, transparent 1.25px); --intro-art-size: 17px 17px; --intro-edge: #d0d9fb; --toy-radius: 7px;
  --red-face: #ff8276; --red-edge: #de5d54; --blue-face: #86aafa; --blue-edge: #6488e0; --yellow-face: #ffda65; --yellow-edge: #d9ad39;
}
@media (max-width: 520px) {
  .top-actions .storage:not([data-error]) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .top-actions { gap: 6px; flex-wrap: wrap; }
  .top-actions .secondary { padding-inline: 9px; }
}
