/* Agendr app styles. Colours are tokens on :root; dark mode redefines them. */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #ffffff;
  --side: #f8f8f8;
  --raised: #ffffff;
  --line: #ebebeb;
  --line-soft: #f2f2f2;
  --text: #141414;
  --text-2: #555555;
  --text-3: #8c8c8c;
  --field: #f2f2f2;
  --field-line: #e4e4e4;
  --hover: #f1f1f1;
  --press: #e8e8e8;
  --nav-on: #111111;
  --nav-on-text: #ffffff;
  --hatch: #efefef;
  --hatch-bg: #fbfbfb;
  --shadow: 0 10px 30px rgba(0, 0, 0, .10), 0 2px 6px rgba(0, 0, 0, .06);
  --danger: #d92d20;
  --danger-soft: #fdecea;
  --ok: #1f8a46;
  --scrim: rgba(0, 0, 0, .32);
  --radius: 10px;
  --side-w: 300px;
  --hour: 180px;
  --gutter: 122px;
  --col: 190px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: "cv11", "ss01";
}

/* Accent from the theme swatches. */
:root, [data-accent="blue"] { --accent: #2f54eb; --accent-soft: #f4f7ff; --accent-mid: #dfe6fd; }
[data-accent="green"]  { --accent: #1f9d4c; --accent-soft: #f2faf4; --accent-mid: #d7efdf; }
[data-accent="orange"] { --accent: #e8622c; --accent-soft: #fff6f1; --accent-mid: #fbe0d3; }
[data-accent="amber"]  { --accent: #e09a1f; --accent-soft: #fffaf0; --accent-mid: #f9ebc9; }
[data-accent="red"]    { --accent: #dc3545; --accent-soft: #fff4f5; --accent-mid: #f9d9dc; }

/* Item colours: border, background, title, subtitle, button, solid. */
.c-blue   { --cb: #b4c4f8; --cbg: #eff3fe; --ct: #2446c7; --cs: #3d5bd1; --cd: #dfe6fc; --ci: #3355e6; }
.c-green  { --cb: #a9dcb8; --cbg: #eff8f2; --ct: #1b7a3c; --cs: #2a8a4c; --cd: #d9efe0; --ci: #22a04b; }
.c-orange { --cb: #f4c3ad; --cbg: #fdf1ec; --ct: #c2491a; --cs: #c95a2a; --cd: #fadfd2; --ci: #e8622c; }
.c-amber  { --cb: #f3d6a2; --cbg: #fdf5e6; --ct: #b0741a; --cs: #b98228; --cd: #f8e7c4; --ci: #f0a531; }
.c-red    { --cb: #f1b9bf; --cbg: #fdeff1; --ct: #b3263a; --cs: #bf3a4c; --cd: #f9dade; --ci: #dc3b4b; }
.c-grey   { --cb: #d8d8d8; --cbg: #f7f7f7; --ct: #2e2e2e; --cs: #5f5f5f; --cd: #e9e9e9; --ci: #6b6b6b; }

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121212;
  --side: #191919;
  --raised: #222222;
  --line: #2b2b2b;
  --line-soft: #222222;
  --text: #f2f2f2;
  --text-2: #b3b3b3;
  --text-3: #868686;
  --field: #232323;
  --field-line: #303030;
  --hover: #262626;
  --press: #2e2e2e;
  --nav-on: #f2f2f2;
  --nav-on-text: #111111;
  --hatch: #1f1f1f;
  --hatch-bg: #151515;
  --shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .4);
  --danger: #ff6b5e;
  --danger-soft: #3a1f1c;
  --ok: #4cc47a;
  --scrim: rgba(0, 0, 0, .55);
}
:root[data-theme="dark"], :root[data-theme="dark"][data-accent="blue"] { --accent: #6d8bff; --accent-soft: #171c2c; --accent-mid: #263256; }
:root[data-theme="dark"][data-accent="green"]  { --accent: #4cc47a; --accent-soft: #14201a; --accent-mid: #1f3a2a; }
:root[data-theme="dark"][data-accent="orange"] { --accent: #ff8a57; --accent-soft: #241913; --accent-mid: #46281b; }
:root[data-theme="dark"][data-accent="amber"]  { --accent: #f5b94a; --accent-soft: #231d12; --accent-mid: #43351a; }
:root[data-theme="dark"][data-accent="red"]    { --accent: #ff6b78; --accent-soft: #241517; --accent-mid: #47232a; }
[data-theme="dark"] .c-blue   { --cb: #34437a; --cbg: #1a2036; --ct: #a9bbff; --cs: #8ea3f2; --cd: #27315a; }
[data-theme="dark"] .c-green  { --cb: #2c5a3c; --cbg: #15241b; --ct: #8fdcaa; --cs: #74c592; --cd: #1f3a29; }
[data-theme="dark"] .c-orange { --cb: #6a3d2a; --cbg: #2a1a13; --ct: #ffb08d; --cs: #f29a74; --cd: #45281c; }
[data-theme="dark"] .c-amber  { --cb: #65502a; --cbg: #282013; --ct: #f7cf83; --cs: #e8bb68; --cd: #43361d; }
[data-theme="dark"] .c-red    { --cb: #6a2f37; --cbg: #2a1619; --ct: #ffa3ad; --cs: #f28b97; --cd: #47232a; }
[data-theme="dark"] .c-grey   { --cb: #3a3a3a; --cbg: #1e1e1e; --ct: #e6e6e6; --cs: #b0b0b0; --cd: #2e2e2e; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 14px 10px; }
[hidden] { display: none !important; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic .f, .ic-fill { fill: currentColor; stroke: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Layout */
.app { display: grid; grid-template-columns: var(--side-w) 1fr; height: 100vh; height: 100dvh; }
.side { background: var(--side); padding: 18px 14px; display: flex; flex-direction: column; overflow-y: auto; border-right: 1px solid var(--line-soft); }
.main { min-width: 0; display: flex; flex-direction: column; overflow: hidden; }

.brand { display: flex; align-items: center; gap: 10px; padding: 0 1px; margin-bottom: 22px; height: 36px; }
.brand img { width: 36px; height: 36px; flex: none; }
.brand-name { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }

.search { position: relative; display: flex; align-items: center; height: 44px; padding: 0 12px; gap: 10px; background: var(--field); border: 1px solid var(--field-line); border-radius: 8px; margin-bottom: 26px; color: var(--text-3); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font-size: 15px; height: 100%; }
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { display: none; }
.search:focus-within { border-color: var(--accent); }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; background: var(--raised); border-radius: 10px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 6px; max-height: 60vh; overflow-y: auto; }
.search-results button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; text-align: left; color: var(--text); }
.search-results button:hover, .search-results button.is-on { background: var(--hover); }
.search-results .sr-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ci); flex: none; }
.search-results .sr-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.search-results .sr-when { color: var(--text-3); font-size: 13px; white-space: nowrap; }
.search-results .sr-empty { padding: 10px; color: var(--text-3); }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a, .side-row { display: flex; align-items: center; gap: 13px; height: 46px; padding: 0 14px; border-radius: 8px; color: var(--text); font-size: 15.5px; width: 100%; text-align: left; }
.nav a .ic, .side-row .ic { color: var(--text-2); }
.nav a:hover, button.side-row:hover { background: var(--hover); }
.nav a.is-on { background: var(--nav-on); color: var(--nav-on-text); }
.nav a.is-on .ic { color: var(--nav-on-text); }
.side-rows { display: flex; flex-direction: column; gap: 4px; }
.side-row > span { flex: 1; }
label.side-row { cursor: pointer; }
.swatches { display: flex; gap: 6px; margin-right: -2px; }
.swatch { width: 18px; height: 18px; border-radius: 50%; background: var(--sw); position: relative; }
.swatch[aria-checked="true"] { background: var(--side); box-shadow: inset 0 0 0 3px var(--sw); }
.swatch[aria-checked="true"]::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--side); }
.sw-blue { --sw: #2f54eb; } .sw-green { --sw: #22a04b; } .sw-orange { --sw: #e8622c; } .sw-amber { --sw: #f0a531; } .sw-red { --sw: #dc3b3b; }
.swatch::before { content: ""; position: absolute; inset: -8px; }

.switch { appearance: none; -webkit-appearance: none; width: 42px; height: 25px; border-radius: 13px; background: var(--press); position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; border: 1px solid var(--field-line); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch:checked { background: var(--accent); border-color: var(--accent); }
.switch:checked::after { transform: translateX(17px); }

/* Collapsed sidebar shows icons only. */
.is-collapsed { --side-w: 76px; }
.is-collapsed .brand-name, .is-collapsed .nav span, .is-collapsed .side-row > span, .is-collapsed .search input, .is-collapsed .swatches, .is-collapsed .side-row .switch { display: none; }
.is-collapsed .search { justify-content: center; padding: 0; cursor: pointer; }
.is-collapsed .nav a, .is-collapsed .side-row { justify-content: center; padding: 0; }
.is-collapsed .brand { justify-content: center; }
.is-collapsed #collapse .ic { transform: scaleX(-1); }
.is-collapsed hr { margin: 14px 4px; }

/* Header */
.top { display: flex; align-items: center; gap: 12px; height: 68px; padding: 0 22px; border-bottom: 1px solid var(--line); flex: none; }
.top h1 { font-size: 17px; font-weight: 600; margin: 0; letter-spacing: -.01em; flex: 1; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 40px; height: 40px; margin-left: -8px; border-radius: 8px; align-items: center; justify-content: center; }
.menu-btn:hover { background: var(--hover); }
.scrim { display: none; }

.view { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.view-scroll { flex: 1; min-height: 0; overflow-y: auto; }

/* Toolbar under the header */
.bar { display: flex; align-items: center; gap: 14px; height: 68px; padding: 0 22px; border-bottom: 1px solid var(--line); flex: none; }
.round { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--text); background: var(--bg); flex: none; }
.round:hover { background: var(--hover); }
.round:active { background: var(--press); }
.round .ic { width: 18px; height: 18px; stroke-width: 2; }
.bar-label { font-size: 17px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; padding: 6px 2px; border-radius: 6px; }
.bar-label .yr { color: var(--text-3); font-weight: 500; }
button.bar-label:hover { background: var(--hover); }
.bar-spacer { flex: 1; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 8px; font-weight: 600; font-size: 14.5px; border: 1px solid var(--line); background: var(--bg); color: var(--text); white-space: nowrap; }
.btn:hover { background: var(--hover); }
.btn:active { background: var(--press); }
.btn .ic { width: 18px; height: 18px; stroke-width: 2; }
.btn-primary { background: var(--nav-on); color: var(--nav-on-text); border-color: var(--nav-on); }
.btn-primary:hover { background: var(--nav-on); opacity: .9; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent); opacity: .92; }
.btn-danger { color: var(--danger); }
.btn-ghost { border-color: transparent; background: none; }
.btn-block { width: 100%; height: 46px; font-size: 15.5px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* Calendar */
.cal { flex: 1; min-height: 0; overflow: auto; position: relative; overscroll-behavior: contain; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); }
.ch:not(.ch-tz) { scroll-snap-align: start; }
.todo { scroll-snap-type: x mandatory; }
.tcol { scroll-snap-align: start; }
.cal-grid { display: grid; grid-template-columns: var(--gutter) repeat(7, minmax(var(--col), 1fr)); min-width: calc(var(--gutter) + 7 * var(--col)); position: relative; }
.cal-head { position: sticky; top: 0; z-index: 12; display: contents; }
.ch { position: sticky; top: 0; z-index: 12; height: 63px; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 14.5px; font-weight: 600; color: var(--text-2); letter-spacing: .02em; border-left: 1px solid var(--line-soft); }
.ch .dn { color: var(--text); }
.ch.is-today { color: var(--accent); background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--bg); }
.ch.is-today .dn { color: var(--accent); }
.ch.is-today::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--accent); }
.ch-tz { position: sticky; left: 0; top: 0; z-index: 14; justify-content: space-between; padding: 0 16px 0 22px; border-left: 0; color: var(--text); }
.tz-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 36px; border-radius: 6px; font-weight: 600; font-size: 14.5px; padding: 0 2px; }
.tz-btn:hover { background: var(--hover); }
.tz-btn .ic { width: 18px; height: 18px; stroke-width: 2; }

.gut { position: sticky; left: 0; z-index: 8; background: var(--bg); padding: 0 0 0 22px; font-size: 14px; font-weight: 500; color: var(--text); display: flex; align-items: center; }
.gut-tasks, .gut-allday { border-bottom: 1px solid var(--line); }
.gut-tasks, .gut-allday, .row-cell.tasks, .row-cell.allday { position: sticky; z-index: 10; }
.gut-tasks, .gut-allday { z-index: 11; }
.row-cell.tasks, .row-cell.allday { background-color: var(--bg); }
.row-cell.is-today-col { background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--bg); }
.row-cell.is-weekend { background: repeating-linear-gradient(135deg, var(--hatch) 0 1px, transparent 1px 12px), var(--hatch-bg); }
.cal-grid.has-allday .row-cell.allday { min-height: 144px; }
.row-cell { border-left: 1px solid var(--line-soft); border-bottom: 1px solid var(--line); padding: 10px 14px; min-height: 58px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.row-cell.tasks { max-height: 168px; overflow-y: auto; }
.row-cell.allday { min-height: 58px; justify-content: flex-start; padding-top: 14px; padding-bottom: 14px; }
.is-today-col { background: var(--accent-soft); }
.is-weekend { background: repeating-linear-gradient(135deg, var(--hatch) 0 1px, transparent 1px 12px), var(--hatch-bg); }
.row-cell.is-drop, .daycol.is-drop { box-shadow: inset 0 0 0 2px var(--accent); }

.times { grid-column: 1; position: sticky; left: 0; z-index: 8; background: var(--bg); }
.hour-lab { position: absolute; left: 22px; transform: translateY(-50%); font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap; }
.hour-lab.now { color: var(--accent); font-weight: 600; background: var(--bg); padding: 2px 0; z-index: 2; }
.daycol { position: relative; border-left: 1px solid var(--line-soft); }
.hours-bg { position: absolute; inset: 0; pointer-events: none; border-bottom: 1px solid var(--line); background-image: linear-gradient(var(--line) 0 1px, transparent 1px); background-size: 100% var(--hour); }
.times::after { content: ""; position: absolute; top: var(--bgpos, 0); bottom: var(--bgpos, 0); right: 0; width: 12px; background-image: linear-gradient(var(--line) 0 1px, transparent 1px); background-size: 100% var(--hour); }
.times .tick { position: absolute; right: 12px; width: 1px; height: 9px; background: var(--line); transform: translateY(-4px); }
.now-line { position: absolute; left: 0; right: 0; height: 0; border-top: 1.5px solid var(--accent); z-index: 6; pointer-events: none; opacity: .8; }
.times .now-seg { position: absolute; right: 0; width: 14px; border-top: 1.5px solid var(--accent); opacity: .8; }
.now-cap { position: absolute; top: -9px; height: 17px; width: 0; border-left: 2px solid var(--accent); }

/* Event cards */
.ev { position: absolute; left: 14px; right: 14px; border-radius: var(--radius); background: var(--cbg); border: 1.5px solid var(--cb); box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); color: var(--ct); padding: 12px 14px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; z-index: 4; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
[data-theme="dark"] .ev, [data-theme="dark"] .chip { box-shadow: none; }
.ev:hover { filter: saturate(1.15); }
.ev.is-done .ev-title { text-decoration: line-through; opacity: .7; }
.ev.is-drag { opacity: .85; z-index: 20; box-shadow: var(--shadow); cursor: grabbing; }
.ev-title { font-weight: 600; font-size: 15.5px; line-height: 1.3; letter-spacing: -.005em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative; z-index: 1; }
.ev-time { color: var(--cs); font-size: 14px; margin-top: 4px; white-space: nowrap; position: relative; z-index: 1; }
.ev-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--ci); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: auto; position: relative; z-index: 1; flex: none; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.ev-icon .ic { width: 20px; height: 20px; }
.ev-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; position: relative; z-index: 1; }
.ev-body { display: flex; flex-direction: column; min-width: 0; }
.ev-full .ev-body { margin-top: auto; padding-top: 10px; }
.dots { width: 28px; height: 28px; border-radius: 7px; background: var(--cd); color: var(--ct); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.dots .ic { width: 20px; height: 20px; }
.dots:hover, .dots.is-open { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--cb); }
.ev-line { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px 0 18px; }
.ev-line .ev-title { flex: 1; min-width: 0; }
.ev-full .ev-title, .ev-mid .ev-title, .chip .ev-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.chip-task .ev-title { line-height: 1.3; }
.ev-mid .ev-dots-abs { position: absolute; top: 12px; right: 12px; z-index: 2; }
.ev-mid .ev-title { padding-right: 34px; }
.ev-tiny { padding: 2px 8px 2px 12px; }
.ev-tiny .ev-title { font-size: 13px; }
.ev-tiny .dots { width: 22px; height: 18px; }
.ev-resize { position: absolute; left: 0; right: 0; bottom: 0; height: 9px; cursor: ns-resize; z-index: 3; }
.ev-bell { width: 15px; height: 15px; margin-left: 4px; vertical-align: -2px; stroke-width: 2; }

/* Map art on items with a place. */
.ev-map { position: absolute; top: 0; right: 0; width: 62%; height: 100%; max-height: 120px; pointer-events: none; color: var(--ci); -webkit-mask-image: linear-gradient(to left, #000 35%, transparent); mask-image: linear-gradient(to left, #000 35%, transparent); }
.ev-map svg { width: 100%; height: 100%; display: block; }
.ev-map .land { fill: currentColor; opacity: .16; }
.ev-map .road { fill: none; stroke: var(--cbg); stroke-width: 6; stroke-linecap: round; }
.ev-map .road2 { fill: none; stroke: var(--cbg); stroke-width: 2.5; opacity: .9; }
.ev-map .pin { fill: currentColor; }
.ev-map .pin-ring { fill: #fff; }

/* People */
.faces { display: flex; align-items: center; }
.face { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--cbg); margin-left: -7px; display: flex; align-items: center; justify-content: center; font-size: 11px; overflow: hidden; font-weight: 700; color: #fff; background: var(--fc); letter-spacing: 0; }
.face:first-child { margin-left: 0; }
.face-more { margin-left: -5px; height: 23px; padding: 0 7px; border-radius: 12px; background: var(--cd); color: var(--ct); font-size: 12px; font-weight: 600; display: flex; align-items: center; border: 2px solid var(--cbg); }

/* Chips in the Tasks and All day rows */
.chip { border-radius: var(--radius); background: var(--cbg); border: 1.5px solid var(--cb); box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); color: var(--ct); padding: 12px 14px; cursor: pointer; position: relative; overflow: hidden; user-select: none; -webkit-user-select: none; }
.chip-allday { min-height: 116px; display: flex; flex-direction: column; }
.chip-allday .ev-foot { margin-top: auto; }
.chip-allday .ev-time { margin-top: 6px; }
.chip-task { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; min-height: 40px; }
.chip-task .ev-title { flex: 1; min-width: 0; font-size: 14.5px; }
.chip.is-done .ev-title { text-decoration: line-through; opacity: .65; }
.chip.is-drag { opacity: .5; }
.tick-box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--cb, var(--text-2)); background: var(--bg); flex: none; display: inline-flex; align-items: center; justify-content: center; color: #fff; position: relative; }
.tick-box::before { content: ""; position: absolute; inset: -10px; }
.tick-box .ic { width: 14px; height: 14px; stroke-width: 2.6; opacity: 0; }
.is-done > .tick-box, .tick-box.on { background: var(--ci); border-color: var(--ci); }
.is-done > .tick-box .ic, .tick-box.on .ic { opacity: 1; }
.row-add { position: absolute; inset: 0; z-index: 0; }
.row-cell > .chip { z-index: 1; }

.is-drag-src { opacity: .35 !important; box-shadow: none !important; }
.drag-ghost { box-shadow: var(--shadow) !important; opacity: .97; cursor: grabbing; filter: none !important; }
body:has(.drag-ghost), body:has(.drag-ghost) * { cursor: grabbing !important; }

/* Floating menu */
.menu { position: fixed; z-index: 60; min-width: 196px; background: var(--raised); border-radius: 11px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 6px; animation: pop .14s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.menu button { display: flex; align-items: center; gap: 12px; width: 100%; height: 40px; padding: 0 10px; border-radius: 8px; font-size: 15px; color: var(--text); text-align: left; white-space: nowrap; }
.menu button:hover, .menu button.is-open { background: var(--hover); }
.menu button .ic { color: var(--text); width: 19px; height: 19px; }
.menu button .chev { margin-left: auto; width: 16px; height: 16px; stroke-width: 2; color: var(--text-2); }
.menu .is-danger, .menu .is-danger .ic { color: var(--danger); }
.menu .is-check::after { content: ""; margin-left: auto; width: 15px; height: 15px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4 4 10-10'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4 4 10-10'/%3E%3C/svg%3E") center / contain no-repeat; }
.menu hr { margin: 5px 4px; }
.menu-colours { display: flex; gap: 8px; padding: 8px 10px; }
.menu-colours button { width: 22px; height: 22px; padding: 0; border-radius: 50%; background: var(--ci); flex: none; }
.menu-colours button.is-on { box-shadow: 0 0 0 2px var(--raised), 0 0 0 4px var(--ci); }
.menu-colours button:hover { background: var(--ci); opacity: .85; }
.menu-tz { max-height: 340px; overflow-y: auto; }

/* Sheet (popup form) */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--scrim); animation: fade .16s ease-out; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 520px; max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--raised); border-radius: 16px; box-shadow: var(--shadow); padding: 22px; animation: rise .2s cubic-bezier(.2,.9,.3,1.1); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 10px; }
.sheet-head h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.x-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--field); display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); flex: none; }
.x-btn:hover { background: var(--press); }
.x-btn .ic { width: 17px; height: 17px; stroke-width: 2.2; }
.sheet-foot { display: flex; gap: 10px; margin-top: 20px; align-items: center; }
.sheet-foot .grow { flex: 1; }
.grabber { display: none; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.field input, .field select, .field textarea, .input { width: 100%; height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--field-line); background: var(--field); color: var(--text); font-size: 15px; outline: 0; }
.field textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--accent); background: var(--bg); }
.field .hint { font-size: 12.5px; color: var(--text-3); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.title-input { font-size: 18px !important; font-weight: 600; height: 50px !important; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--field); border: 1px solid var(--field-line); border-radius: 9px; padding: 3px; margin-bottom: 14px; }
.seg button { height: 36px; border-radius: 7px; font-size: 14px; font-weight: 500; color: var(--text-2); display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg button.is-on { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.1); font-weight: 600; }
.seg button .ic { width: 17px; height: 17px; }
.picker { display: flex; flex-wrap: wrap; gap: 8px; }
.picker .pk { width: 36px; height: 36px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--field-line); background: var(--field); color: var(--text-2); }
.picker .pk.is-on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.picker .pk .ic { width: 19px; height: 19px; }
.picker .pk-col { border: 0; background: var(--ci); }
.picker .pk-col.is-on { box-shadow: 0 0 0 2px var(--raised), 0 0 0 4px var(--ci); background: var(--ci); }
.form-err { color: var(--danger); font-size: 14px; margin: 4px 0 0; min-height: 0; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; background: var(--nav-on); color: var(--nav-on-text); border-radius: 10px; padding: 0 8px 0 16px; height: 46px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow); font-size: 14.5px; font-weight: 500; animation: rise .2s ease-out; max-width: calc(100vw - 32px); }
.toast button { font-weight: 600; color: var(--nav-on-text); padding: 8px 10px; border-radius: 7px; opacity: .85; }
.toast button:hover { opacity: 1; background: rgba(127,127,127,.25); }
.toast.no-action { padding-right: 16px; }

/* To do list */
.todo { flex: 1; min-height: 0; overflow: auto; }
.todo-grid { display: grid; grid-template-columns: repeat(7, minmax(180px, 1fr)); min-width: calc(7 * 180px); min-height: 100%; }
.tcol { border-left: 1px solid var(--line-soft); display: flex; flex-direction: column; min-width: 0; }
.tcol:first-child { border-left: 0; }
.tcol-head { position: sticky; top: 0; z-index: 3; height: 63px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--bg); font-size: 14.5px; font-weight: 600; color: var(--text-2); letter-spacing: .02em; }
.tcol-head .dn { color: var(--text); margin-left: 6px; }
.tcol-head .count { font-size: 12.5px; color: var(--text-3); font-weight: 500; letter-spacing: 0; }
.tcol.is-today .tcol-head { color: var(--accent); background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--bg); }
.tcol.is-today .tcol-head .dn { color: var(--accent); }
.tcol.is-today .tcol-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--accent); }
.tcol.is-today { background: var(--accent-soft); }
.tcol.is-past .tcol-head { color: var(--text-3); }
.tcol-body { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 200px; }
.tcol-body.is-drop { box-shadow: inset 0 0 0 2px var(--accent); }
.titem { display: flex; align-items: flex-start; gap: 10px; padding: 10px 10px 10px 12px; background: var(--cbg); border: 1.5px solid var(--cb); border-radius: var(--radius); color: var(--ct); cursor: pointer; user-select: none; -webkit-user-select: none; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
[data-theme="dark"] .titem { box-shadow: none; }
.titem .tick-box { margin-top: 1px; }
.titem-main { flex: 1; min-width: 0; }
.titem-title { font-weight: 600; font-size: 14.5px; line-height: 1.35; word-break: break-word; }
.titem-meta { font-size: 13px; color: var(--cs); margin-top: 3px; line-height: 1.4; }
.titem-meta .ic { width: 14px; height: 14px; stroke-width: 2; vertical-align: -2.5px; margin-right: 4px; }
.titem.is-done .titem-title { text-decoration: line-through; opacity: .6; }
.titem.is-done { opacity: .8; }
.titem.is-drag { opacity: .4; }
.titem .dots { width: 26px; height: 24px; margin: -2px -2px 0 0; }
.tadd { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: var(--radius); border: 1.5px dashed var(--field-line); color: var(--text-3); }
.tadd:focus-within { border-style: solid; border-color: var(--accent); background: var(--bg); color: var(--text); }
.tadd input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; height: 100%; font-size: 14.5px; color: var(--text); }
.tadd input::placeholder { color: var(--text-3); }
.tadd .ic { width: 17px; height: 17px; stroke-width: 2; }
.tempty { font-size: 13.5px; color: var(--text-3); padding: 4px 4px 0; }

/* Tasks list */
.tasks-wrap { flex: 1; min-height: 0; overflow-y: auto; }
.tasks-page { max-width: 760px; margin: 0 auto; padding: 24px 22px 120px; }
.tasks-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.tasks-head h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.tasks-head span { color: var(--text-3); font-size: 14px; }
.tlist { display: flex; flex-direction: column; gap: 6px; position: relative; }
.lrow { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 8px 6px 4px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); cursor: grab; position: relative; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.lrow:hover { background: var(--hover); }
.lrow.is-drag { z-index: 20; box-shadow: var(--shadow); cursor: grabbing; background: var(--raised); }
.lrow .grip { color: var(--text-3); opacity: 0; display: flex; width: 18px; justify-content: center; flex: none; }
.lrow .grip .ic { width: 16px; height: 16px; }
.lrow:hover .grip, .lrow.is-drag .grip { opacity: 1; }
.lrow .tick-box { border-color: var(--ci); opacity: .9; }
.lrow-title { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; line-height: 1.35; word-break: break-word; }
.lrow.is-done { cursor: pointer; }
.lrow.is-done .lrow-title { text-decoration: line-through; color: var(--text-3); }
.lrow-date { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-2); background: var(--field); border-radius: 6px; padding: 3px 7px; white-space: nowrap; flex: none; }
.lrow-date .ic { width: 13px; height: 13px; stroke-width: 2; }
.lrow-date.is-today { color: var(--accent); background: var(--accent-soft); }
.lrow-date.is-late { color: var(--danger); background: var(--danger-soft); }
.lrow .dots { background: transparent; color: var(--text-2); }
.lrow .dots:hover, .lrow .dots.is-open { background: var(--field); box-shadow: none; }
.drop-before::before, .tlist.drop-end::after { content: ""; position: absolute; left: 6px; right: 6px; height: 2px; border-radius: 1px; background: var(--accent); }
.drop-before::before { top: -5px; }
.tlist.drop-end::after { bottom: -5px; }
.next-task { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; margin-top: 6px; border-radius: 10px; border: 1.5px dashed var(--field-line); color: var(--text-3); cursor: text; }
.next-task:focus-within { border-style: solid; border-color: var(--accent); color: var(--accent); }
.next-task input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: none; font-size: 15px; color: var(--text); }
.next-task input::placeholder { color: var(--text-3); }
.next-task .ic { width: 18px; height: 18px; stroke-width: 2; }
.completed { margin-top: 26px; }
.completed-btn { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; color: var(--text-2); padding: 6px 4px; border-radius: 6px; margin-bottom: 8px; }
.completed-btn span { color: var(--text-3); font-weight: 500; }
.completed-btn .chev { width: 16px; height: 16px; stroke-width: 2.2; transition: transform .15s; }
.completed.is-open .completed-btn .chev { transform: rotate(90deg); }
.completed:not(.is-open) .tlist-done { display: none; }

/* Tabs (Workflow: Day and Week) */
.tabs { display: inline-flex; background: var(--field); border: 1px solid var(--field-line); border-radius: 9px; padding: 3px; gap: 2px; }
.tabs button { height: 32px; padding: 0 14px; border-radius: 7px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.tabs button[aria-selected="true"] { background: var(--bg); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.wf.is-weeks .wf-head { flex-direction: column; gap: 0; line-height: 1.2; }
.wf.is-weeks .wf-head .dn { font-size: 12px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.wf.is-weeks .wf-col.is-today .wf-head .dn { color: var(--accent); }

/* Workflow board */
.wf { flex: 1; min-height: 0; display: grid; grid-template-columns: 280px minmax(0, 1fr); }
.wf { grid-template-columns: 240px minmax(0, 1fr); }
.wf-tray { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--side); }
.wf-tray.is-drop { box-shadow: inset 0 0 0 2px var(--accent); }
.wf-tray-head { display: flex; align-items: baseline; justify-content: space-between; height: 44px; padding: 0 12px; border-bottom: 1px solid var(--line); align-items: center; flex: none; }
.wf-tray-head h3 { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--text-2); }
.wf-tray-head span { font-size: 12.5px; color: var(--text-3); }
.wf-tray-list { flex: 1; min-height: 0; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.wf-tray-list .wcard { position: relative; top: auto; left: auto; right: auto; min-height: 34px; }
.wf-empty { color: var(--text-3); font-size: 13.5px; margin: 4px; line-height: 1.5; }
.wf-add { margin: 0 8px 8px; background: var(--bg); min-height: 38px; }
.wf-add input { height: 36px; font-size: 13.5px; }
.wf-board { min-width: 0; min-height: 0; overflow: auto; scroll-snap-type: x mandatory; overscroll-behavior: contain; }
.wf-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-height: 100%; }
.wf-col { border-left: 1px solid var(--line-soft); scroll-snap-align: start; min-width: 0; }
.wf-col:first-child { border-left: 0; }
.wf-head { position: sticky; top: 0; z-index: 5; height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text-2); letter-spacing: .02em; }
.wf-head .dn { color: var(--text); }
.wf-col.is-today .wf-head { color: var(--accent); background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--bg); }
.wf-col.is-today .wf-head .dn { color: var(--accent); }
.wf-col.is-today .wf-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--accent); }
.wf-col.is-today { background: var(--accent-soft); }
.wf-col.is-weekend { background: repeating-linear-gradient(135deg, var(--hatch) 0 1px, transparent 1px 12px), var(--hatch-bg); }
.wf-col { display: flex; flex-direction: column; transition: box-shadow .12s, background-color .12s; }
.wf-day { flex: 1; display: flex; flex-direction: column; gap: 5px; padding: 6px; min-height: 240px; }
.wf-col.is-target { box-shadow: inset 0 0 0 2px var(--accent); background-color: var(--accent-soft); }
.wf-col.is-target .wf-head { color: var(--accent); background: linear-gradient(var(--accent-mid), var(--accent-mid)), var(--bg); }
.wf-col.is-target .wf-head .dn { color: var(--accent); }
.wcard { position: relative; min-height: 34px; flex: none; display: flex; align-items: center; gap: 7px; padding: 6px 4px 6px 8px; border-radius: 8px; background: var(--cbg); border: 1.5px solid var(--cb); box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); color: var(--ct); cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; z-index: 2; }
[data-theme="dark"] .wcard { box-shadow: none; }
.wcard:hover { filter: saturate(1.15); }
.wcard.is-drag { z-index: 30; box-shadow: var(--shadow); cursor: grabbing; opacity: .95; }
.wcard .tick-box { width: 16px; height: 16px; border-radius: 5px; }
.wcard .tick-box .ic { width: 11px; height: 11px; }
.wcard-title { flex: 1; min-width: 0; font-weight: 600; font-size: 13px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.wcard.is-done .wcard-title { text-decoration: line-through; opacity: .6; }
.wcard .dots { width: 22px; height: 20px; border-radius: 5px; }
.wcard .dots .ic { width: 16px; height: 16px; }
.wcard-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.wcard-tray .wcard-title { -webkit-line-clamp: 2; padding: 0; }
.wcard-days { font-size: 11.5px; color: var(--cs); display: flex; align-items: center; gap: 4px; }
.wcard-days .ic { width: 12px; height: 12px; stroke-width: 2; }
.wcard-tray { padding-left: 10px; }
.wcard.is-locked { cursor: default; }
.wcard.is-locked:hover { filter: none; }
.wcard.is-locked .wcard-title { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.titem.is-locked { cursor: default; }
.is-lifted { display: none !important; }
.wf-ghost { flex: none; border-radius: 8px; border: 2px dashed var(--accent); background: var(--accent-soft); opacity: .8; pointer-events: none; z-index: 1; }

/* Overview */
.ov { padding: 24px 22px 40px; display: grid; gap: 18px; max-width: 1400px; }
.ov-hello h2 { margin: 0; font-size: 26px; letter-spacing: -.02em; font-weight: 700; }
.ov-hello p { margin: 4px 0 0; color: var(--text-2); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--bg); display: flex; flex-direction: column; gap: 6px; min-width: 0; text-align: left; }
button.tile:hover { background: var(--hover); }
.tile-lab { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; font-weight: 500; }
.tile-lab .ic { width: 18px; height: 18px; }
.tile-num { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.tile-sub { color: var(--text-3); font-size: 13.5px; }
.tile.is-alert .tile-num { color: var(--danger); }
.meter { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 4px; }
.meter > i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.ov-cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); gap: 10px; }
.panel-head h3 { margin: 0; font-size: 15.5px; font-weight: 600; }
.panel-head a, .panel-head button { font-size: 14px; color: var(--accent); font-weight: 500; }
.panel-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.panel-empty { color: var(--text-3); padding: 6px 4px; font-size: 14px; }
.agenda { display: flex; gap: 14px; align-items: stretch; }
.agenda-time { width: 76px; flex: none; font-size: 13.5px; color: var(--text-2); font-weight: 500; padding-top: 11px; text-align: right; }
.agenda .titem { flex: 1; }
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; padding: 14px; }
.ws-day { border: 1px solid var(--line); border-radius: 10px; padding: 10px 8px; text-align: center; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.ws-day:hover { background: var(--hover); }
.ws-day.is-today { border-color: var(--accent); background: var(--accent-soft); }
.ws-name { font-size: 12.5px; font-weight: 600; color: var(--text-2); letter-spacing: .03em; }
.ws-num { font-size: 18px; font-weight: 700; }
.ws-day.is-today .ws-name, .ws-day.is-today .ws-num { color: var(--accent); }
.ws-dots { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; min-height: 6px; }
.ws-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ci); }
.ws-count { font-size: 12px; color: var(--text-3); }

.panel-note { color: var(--text-3); font-size: 13.5px; }
.ov-split { grid-template-columns: 320px minmax(0, 1fr); align-items: start; max-width: none; }
.ov-side .panel-head { flex-wrap: wrap; row-gap: 2px; }
.ov-side .panel-note { font-size: 12.5px; }
.ov-wf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ov-wf-day { border-left: 1px solid var(--line-soft); min-width: 0; display: flex; flex-direction: column; }
.ov-wf-day:first-child { border-left: 0; }
.ov-wf-head { height: 48px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text-2); letter-spacing: .02em; border-bottom: 1px solid var(--line); width: 100%; position: relative; }
.ov-wf-head:hover { background: var(--hover); }
.ov-wf-head .dn { color: var(--text); }
.ov-wf-day.is-today { background: var(--accent-soft); }
.ov-wf-day.is-today .ov-wf-head, .ov-wf-day.is-today .ov-wf-head .dn { color: var(--accent); }
.ov-wf-day.is-today .ov-wf-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--accent); }
.ov-wf-list { padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.ov-wf-list .panel-empty { font-size: 13px; text-align: center; padding: 8px 0; }

/* Settings and help */
.page { padding: 24px 22px 48px; max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.page .panel-body { padding: 18px; gap: 0; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.set-row:last-child { border-bottom: 0; }
.set-row .lab { font-weight: 500; }
.set-row .sub { color: var(--text-3); font-size: 13.5px; margin-top: 2px; }
.set-row select { height: 40px; border-radius: 8px; border: 1px solid var(--field-line); background: var(--field); padding: 0 10px; max-width: 240px; }
.set-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 6px; }
.faq details { border-bottom: 1px solid var(--line-soft); padding: 4px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 500; padding: 12px 28px 12px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p { margin: 0 0 12px; color: var(--text-2); line-height: 1.55; }

/* Sign in screens */
body.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--side); }
.auth-card { width: 100%; max-width: 400px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 32px 28px 26px; }
.auth-logo { display: block; margin-bottom: 18px; }
.auth-card h1 { font-size: 24px; margin: 0; letter-spacing: -.02em; }
.auth-sub { color: var(--text-2); margin: 6px 0 22px; }
.auth-msg { background: var(--accent-soft); border: 1px solid var(--accent-mid); padding: 10px 12px; border-radius: 8px; margin: 0 0 16px; font-size: 14.5px; }
.auth-msg.is-error { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.auth-row { display: flex; justify-content: space-between; align-items: center; margin: 2px 0 18px; font-size: 14px; gap: 10px; }
.auth-row a, .auth-foot a { color: var(--accent); font-weight: 500; }
.auth-foot { text-align: center; margin: 20px 0 0; color: var(--text-2); font-size: 14.5px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); margin: 0; }

.loading { padding: 40px; color: var(--text-3); text-align: center; }

/* Phone and small tablet */
@media (max-width: 900px) {
  :root { --gutter: 74px; --col: 72vw; --hour: 150px; }
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; top: 0; bottom: 0; left: 0; width: min(300px, 86vw); z-index: 45; transform: translateX(-102%); transition: transform .26s cubic-bezier(.2,.8,.2,1); padding-top: max(18px, env(safe-area-inset-top)); }
  .menu-open .side { transform: none; box-shadow: var(--shadow); }
  .menu-open .scrim { display: block; position: fixed; inset: 0; z-index: 44; background: var(--scrim); }
  .menu-btn { display: inline-flex; }
  #collapse { display: none; }
  .is-collapsed { --side-w: 300px; }
  .is-collapsed .brand-name, .is-collapsed .nav span, .is-collapsed .side-row > span, .is-collapsed .search input, .is-collapsed .swatches, .is-collapsed .side-row .switch { display: revert; }
  .is-collapsed .nav a, .is-collapsed .side-row { justify-content: flex-start; padding: 0 14px; }
  .top { padding: 0 16px; height: 58px; padding-top: env(safe-area-inset-top); box-sizing: content-box; }
  .bar { padding: 0 16px; height: 60px; gap: 8px; }
  .bar-label { font-size: 15px; }
  .bar [data-new] { width: 40px; padding: 0; }
  .bar [data-new] span, .bar .btn[data-week] { display: none; }
  .chip-allday { min-height: 0; }
  .chip-allday .ev-foot { padding-top: 6px; }
  .cal-grid.has-allday .row-cell.allday { min-height: 58px; }
  .ch-tz { padding: 0 6px 0 12px; }
  .gut { padding-left: 12px; font-size: 13px; }
  .hour-lab { left: 12px; font-size: 12.5px; }
  .todo { scroll-snap-type: none; }
  .todo-grid { grid-template-columns: 1fr; min-width: 0; }
  .tcol { border-left: 0; border-bottom: 1px solid var(--line); }
  .tcol-head { position: static; height: 50px; }
  .tcol-body { min-height: 0; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-wf { grid-template-columns: 1fr; }
  .ov-split { grid-template-columns: 1fr; }
  .ov-wf-day { border-left: 0; border-bottom: 1px solid var(--line-soft); }
  .ov-wf-head { justify-content: flex-start; padding: 0 14px; }
  .ov-wf-list { min-height: 0; }
  .ov-cols { grid-template-columns: 1fr; }
  .ov, .page { padding: 18px 16px 40px; }
  .week-strip { gap: 4px; padding: 10px; }
  .ws-day { padding: 8px 2px; }
  .sheet-wrap { align-items: flex-end; padding: 0; }
  .sheet { max-width: none; border-radius: 16px 16px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); max-height: 92dvh; }
  .grabber { display: block; width: 38px; height: 5px; border-radius: 3px; background: var(--press); margin: 0 auto 12px; }
  .field-row3 { grid-template-columns: 1fr 1fr; }
  .field-row3 > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .wf { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .wf-tray { border-right: 0; border-bottom: 1px solid var(--line); max-height: 34vh; }
  .wf-tray-head { height: 40px; }
  .wf-tray-list { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 10px 12px; }
  .wf-tray-list .wcard { min-width: 170px; max-width: 220px; }
  .wf-add { margin: 0 12px 10px; min-height: 42px; }
  .wf-add input { height: 40px; }
  .wf-head { height: 40px; }
  .tasks-page { padding: 18px 16px 120px; }
  .lrow .grip { display: none; }
  .lrow { padding-left: 10px; }
}
@media (max-width: 520px) {
  .tile-num { font-size: 24px; }
  .agenda-time { width: 58px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Compact cards in the Overview's Mon to Fri columns */
.ov-wf-list { padding: 6px; gap: 5px; }
.ov-wf-list .titem { padding: 7px 4px 7px 8px; gap: 7px; border-radius: 8px; }
.ov-wf-list .titem .tick-box { width: 16px; height: 16px; border-radius: 5px; margin-top: 1px; }
.ov-wf-list .titem .tick-box .ic { width: 11px; height: 11px; }
.ov-wf-list .titem-title { font-size: 13px; word-break: normal; overflow-wrap: anywhere; line-height: 1.3; }
.ov-wf-list .titem .dots { width: 20px; height: 18px; border-radius: 5px; }
.ov-wf-list .titem .dots .ic { width: 15px; height: 15px; }
.side > * { flex-shrink: 0; }

/* Tasks page, compact (2026-10-16), and subtasks */
.tasks-page { padding: 18px 22px 120px; max-width: 720px; }
.tasks-head { margin-bottom: 10px; }
.tasks-head h2 { font-size: 18px; }
.tasks-head span { font-size: 13px; }
.tlist { gap: 2px; }
.lrow { min-height: 36px; padding: 2px 6px 2px 2px; gap: 8px; border-radius: 8px; border-color: transparent; }
.lrow:hover { border-color: var(--line); }
.lrow .tick-box { width: 18px; height: 18px; border-radius: 5px; }
.lrow .tick-box .ic { width: 12px; height: 12px; }
.lrow-title { font-size: 14px; }
.lrow-date { font-size: 12px; padding: 2px 6px; }
.lrow-count { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; flex: none; }
.lrow .dots { width: 26px; height: 24px; opacity: 0; }
.lrow:hover .dots, .lrow .dots.is-open, .lrow:focus-within .dots { opacity: 1; }
@media (hover: none) { .lrow .dots { opacity: 1; } }
.drop-before::before { top: -2px; }
.next-task { min-height: 38px; margin-top: 8px; border-radius: 8px; }
.next-task input { height: 36px; font-size: 14px; }
.completed { margin-top: 18px; }
.completed-btn { font-size: 13.5px; margin-bottom: 4px; }
.lsubs { display: flex; flex-direction: column; padding-left: 46px; margin: -2px 0 4px; }
.lsub { display: flex; align-items: center; gap: 8px; min-height: 28px; font-size: 13.5px; color: var(--text-2); }
.lsub .tick-box { width: 15px; height: 15px; border-radius: 4px; border-color: var(--field-line); }
.lsub .tick-box .ic { width: 10px; height: 10px; }
.lsub .tick-box::before { inset: -6px; }
.lsub.is-done .tick-box { background: var(--text-3); border-color: var(--text-3); }
.lsub.is-done .tick-box .ic { opacity: 1; }
.lsub.is-done .lsub-title { text-decoration: line-through; color: var(--text-3); }
.lsub-title { flex: 1; min-width: 0; word-break: break-word; }
.lsub-del { width: 22px; height: 22px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-3); opacity: 0; }
.lsub:hover .lsub-del, .lsub-del:focus-visible { opacity: 1; }
@media (hover: none) { .lsub-del { opacity: 1; } }
.lsub-del:hover { background: var(--field); color: var(--danger); }
.lsub-del .ic { width: 13px; height: 13px; stroke-width: 2; }
.lsub-add { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 6px 0 2px; border-radius: 5px; font-size: 12.5px; color: var(--text-3); }
.lsub-add:hover { color: var(--accent); background: var(--accent-soft); }
.lsub-add .ic, .lsub-new .ic { width: 13px; height: 13px; stroke-width: 2.2; }
.lsub-new { color: var(--accent); }
.lsub-input { flex: 1; min-width: 0; height: 28px; border: 0; border-bottom: 1px solid var(--accent); outline: 0; background: none; font-size: 13.5px; color: var(--text); }
.tlist-done .lsub-add { display: none; }
.lsub .tick-box { border-color: var(--text-3); }
.lrow-sub { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px 0 5px; border-radius: 5px; font-size: 12px; color: var(--text-3); opacity: 0; flex: none; }
.lrow:hover .lrow-sub, .lrow-sub:focus-visible { opacity: 1; }
@media (hover: none) { .lrow-sub { opacity: 1; } }
.lrow-sub:hover { color: var(--accent); background: var(--accent-soft); }
.lrow-sub .ic { width: 12px; height: 12px; stroke-width: 2.2; }

/* Tasks page: list on the left with lines between tasks, today and this week on the right */
.tasks-layout { display: grid; grid-template-columns: minmax(0, 640px) 300px; gap: 32px; padding: 16px 22px 120px; align-items: start; }
.tasks-page { padding: 0; max-width: none; margin: 0; }
.tlist { gap: 0; }
.tlist > .lrow { border-radius: 0; border: 0; border-bottom: 1px solid var(--line-soft); min-height: 34px; }
.tlist > .lrow:hover { border-color: var(--line-soft); }
.tlist > .lsubs { border-bottom: 1px solid var(--line-soft); margin: 0; padding-bottom: 4px; }
.tlist > .lrow:has(+ .lsubs) { border-bottom: 0; }
.drop-before::before { top: -1px; }
.tasks-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.side-sec { border: 1px solid var(--line); border-radius: 10px; padding: 10px 10px 8px; background: var(--bg); }
.side-sec h3 { margin: 0 0 6px 4px; font-size: 12.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--text-2); display: flex; justify-content: space-between; }
.side-sec h3 span { color: var(--text-3); font-weight: 500; }
.srow { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 4px; border-radius: 6px; cursor: pointer; font-size: 13.5px; }
.srow:hover { background: var(--hover); }
.srow .tick-box { width: 16px; height: 16px; border-radius: 4px; border-color: var(--ci); }
.srow .tick-box .ic { width: 11px; height: 11px; }
.srow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ci); margin: 0 4px; flex: none; }
.srow-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow.is-done .srow-title { text-decoration: line-through; color: var(--text-3); }
.srow-meta { font-size: 12px; color: var(--text-3); flex: none; }
.side-empty { margin: 2px 4px 4px; font-size: 13px; color: var(--text-3); }
@media (max-width: 1100px) { .tasks-layout { grid-template-columns: minmax(0, 1fr); } .tasks-side { position: static; } }
@media (max-width: 900px) { .tasks-layout { padding: 12px 16px 120px; } }
.side-sec.is-drop, .side-sec.is-drop-soft { box-shadow: 0 0 0 2px var(--accent); background: var(--accent-soft); }
.side-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 0 0 6px; }
.side-day { display: flex; flex-direction: column; align-items: center; padding: 4px 0; border-radius: 6px; border: 1px dashed var(--field-line); font-size: 12px; color: var(--text-2); line-height: 1.2; }
.side-day b { font-size: 10.5px; font-weight: 600; color: var(--text-3); }
.side-day.is-today { border-color: var(--accent); color: var(--accent); }
.side-day.is-drop { background: var(--accent); border-color: var(--accent); color: #fff; }
.side-day.is-drop b { color: #fff; }
/* Tasks: the list fills the screen, today and this week locked to the far right */
.tasks-layout { grid-template-columns: minmax(0, 1fr) 300px; }
/* Inline name editing and subtask dragging on Tasks */
.lrow-title, .lsub-title { cursor: text; }
.ledit { flex: 1; min-width: 0; height: 28px; border: 0; border-bottom: 1.5px solid var(--accent); outline: 0; background: none; font-size: 14px; font-weight: 500; color: var(--text); padding: 0; }
.lsub-edit { font-size: 13.5px; font-weight: 400; height: 26px; }
.lsub { position: relative; cursor: grab; border-radius: 5px; padding-right: 2px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.lsub:hover { background: var(--hover); }
.lsub.lsub-new { cursor: text; }
.lsub.lsub-new:hover { background: none; }
.lsub.drop-before::before, .lsub.drop-after::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 1px; background: var(--accent); }
.lsub.drop-before::before { top: -1px; }
.lsub.drop-after::after { bottom: -1px; }
/* Tick boxes: stronger border and a bolder tick (Jake: "make tick more visible") */
.tick-box { border-width: 2px; border-color: var(--ci, var(--text-2)); }
.lrow .tick-box, .srow .tick-box, .wcard .tick-box, .titem .tick-box { opacity: 1; border-color: var(--ci); }
.lsub .tick-box { border-width: 1.5px; border-color: var(--text-2); }
.tick-box .ic { stroke-width: 3.2; }
.tick-box:hover { background: color-mix(in srgb, var(--ci, var(--text-2)) 14%, var(--bg)); }
.tick-box:hover .ic { opacity: .45; color: var(--ci, var(--text-2)); }
.is-done > .tick-box .ic, .tick-box.on .ic, .lsub.is-done .tick-box .ic { opacity: 1; color: #fff; }
/* Tasks: a bin instead of the menu */
.lrow-del { width: 26px; height: 24px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-3); opacity: 0; flex: none; }
.lrow:hover .lrow-del, .lrow-del:focus-visible { opacity: 1; }
@media (hover: none) { .lrow-del { opacity: 1; } }
.lrow-del:hover { background: var(--danger-soft); color: var(--danger); }
.lrow-del .ic { width: 16px; height: 16px; }
.lsub-del:hover { background: var(--danger-soft); }
.lsub-del .ic { width: 14px; height: 14px; stroke-width: 1.8; }

/* Prompts: columns that open to the right, then the prompt itself */
.pbrowser { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; }
.pcol { width: 260px; flex: none; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--side); min-height: 0; transition: box-shadow .12s; }
.pcol:first-child { background: var(--bg); }
.pcol.is-drop { box-shadow: inset 0 0 0 2px var(--accent); }
.pcol-head { display: flex; align-items: center; gap: 2px; height: 48px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--line); flex: none; }
.pcol-head h3 { flex: 1; min-width: 0; margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcol-list { flex: 1; min-height: 0; overflow-y: auto; padding: 6px; display: flex; flex-direction: column; gap: 1px; }
.ptool { width: 30px; height: 30px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); flex: none; }
.ptool:hover { background: var(--hover); color: var(--text); }
.ptool.is-danger:hover { background: var(--danger-soft); color: var(--danger); }
.ptool .ic { width: 18px; height: 18px; }
.pback { display: none; margin-left: -6px; }
.pitem { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 0 4px 0 9px; border-radius: 7px; cursor: pointer; font-size: 14px; color: var(--text); user-select: none; -webkit-user-select: none; }
.pitem > .ic { width: 18px; height: 18px; color: var(--text-2); }
.pitem:hover { background: var(--hover); }
.pitem.is-on { background: var(--accent-mid); }
.pitem.is-on > .ic { color: var(--accent); }
.pitem-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pitem .pchev { width: 15px; height: 15px; stroke-width: 2; color: var(--text-3); flex: none; }
.pitem-tools { display: none; }
.pitem:hover .pitem-tools, .pitem:focus-within .pitem-tools { display: inline-flex; }
@media (hover: none) { .pitem-tools { display: none !important; } }
.pitem-tools .ptool { width: 26px; height: 26px; }
.pitem-tools .ptool .ic { width: 15px; height: 15px; }
.pitem.is-renaming { cursor: default; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--accent); }
.pname-input { flex: 1; min-width: 0; height: 32px; border: 0; outline: 0; background: none; font-size: 14px; color: var(--text); }
.pempty { margin: 8px; font-size: 13px; color: var(--text-3); line-height: 1.5; }
.pfile { flex: 1; min-width: 380px; display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.pfile-head { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 14px 0 18px; border-bottom: 1px solid var(--line); flex: none; }
.pfile-head > .ic { width: 20px; height: 20px; color: var(--text-2); }
.pfile-name { flex: 1; min-width: 0; margin: 0; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: text; }
.pfile-name-input { font-size: 16px; font-weight: 600; border-bottom: 1.5px solid var(--accent); }
.pfile-status { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.pfile-text { flex: 1; min-height: 0; width: 100%; border: 0; outline: 0; resize: none; padding: 18px 22px; background: var(--bg); color: var(--text); font: 13.5px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; tab-size: 2; }
.pfile-foot { flex: none; padding: 8px 22px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--text-3); }
@media (max-width: 900px) {
  .pbrowser { overflow-x: hidden; }
  .pcol, .pfile { display: none; width: 100%; min-width: 0; border-right: 0; }
  .pbrowser:not(.has-file) .pcol:last-child, .pbrowser.has-file .pfile { display: flex; }
  .pback { display: inline-flex; }
  .pitem { min-height: 44px; }
  .pfile-head { padding: 0 10px; gap: 6px; }
}

/* Confirm dialog (deleting a folder) */
.sheet.confirm { max-width: 400px; text-align: center; padding: 26px 24px 20px; }
.confirm-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--danger-soft); color: var(--danger); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.confirm-icon .ic { width: 24px; height: 24px; }
.confirm-title { margin: 0 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.confirm-body { margin: 0 0 20px; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.confirm-foot { display: flex; gap: 10px; }
.confirm-foot .btn { height: 44px; }
.btn-delete { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-delete:hover { background: var(--danger); opacity: .9; }

/* Highlight colours for tasks and subtasks (right click to choose) */
:root {
  --hl-green: #e3f6e8;  --hl-green-line: #bfe6c9;
  --hl-orange: #fdeadc; --hl-orange-line: #f6cfa9;
  --hl-red: #fde4e4;    --hl-red-line: #f6c2c2;
  --hl-yellow: #fcf3cf; --hl-yellow-line: #f1e2a0;
  --hl-green-dot: #22a04b; --hl-orange-dot: #e8622c; --hl-red-dot: #dc3b3b; --hl-yellow-dot: #eab308;
}
:root[data-theme="dark"] {
  --hl-green: #1b3524;  --hl-green-line: #2d5a3c;
  --hl-orange: #3a2417; --hl-orange-line: #6a3d2a;
  --hl-red: #3a1f1f;    --hl-red-line: #6a3030;
  --hl-yellow: #38300f; --hl-yellow-line: #5f5320;
}
.lrow.hl-green, .lsub.hl-green { background: var(--hl-green); }
.lrow.hl-orange, .lsub.hl-orange { background: var(--hl-orange); }
.lrow.hl-red, .lsub.hl-red { background: var(--hl-red); }
.lrow.hl-yellow, .lsub.hl-yellow { background: var(--hl-yellow); }
.lrow[class*="hl-"] { border-radius: 8px; padding-left: 8px; }
.lrow.hl-green:hover { background: var(--hl-green); border-color: var(--hl-green-line); }
.lrow.hl-orange:hover { background: var(--hl-orange); border-color: var(--hl-orange-line); }
.lrow.hl-red:hover { background: var(--hl-red); border-color: var(--hl-red-line); }
.lrow.hl-yellow:hover { background: var(--hl-yellow); border-color: var(--hl-yellow-line); }
.lsub[class*="hl-"] { border-radius: 6px; padding-left: 7px; }
.lsub.hl-green:hover { background: var(--hl-green); }
.lsub.hl-orange:hover { background: var(--hl-orange); }
.lsub.hl-red:hover { background: var(--hl-red); }
.lsub.hl-yellow:hover { background: var(--hl-yellow); }

.hl-menu { padding: 8px; }
.hl-swatches { display: flex; gap: 8px; }
.hl-swatch { width: 28px; height: 28px; border-radius: 50%; flex: none; position: relative; border: 1.5px solid rgba(0,0,0,.12); }
.hl-swatch.hl-green { background: var(--hl-green-dot); }
.hl-swatch.hl-orange { background: var(--hl-orange-dot); }
.hl-swatch.hl-red { background: var(--hl-red-dot); }
.hl-swatch.hl-yellow { background: var(--hl-yellow-dot); }
.hl-swatch:hover { transform: scale(1.1); }
.hl-swatch.is-on { box-shadow: 0 0 0 2px var(--raised), 0 0 0 4px currentColor; }
.hl-swatch.hl-green.is-on { color: var(--hl-green-dot); }
.hl-swatch.hl-orange.is-on { color: var(--hl-orange-dot); }
.hl-swatch.hl-red.is-on { color: var(--hl-red-dot); }
.hl-swatch.hl-yellow.is-on { color: var(--hl-yellow-dot); }
.hl-clear { display: flex; align-items: center; width: 100%; height: 34px; margin-top: 6px; padding: 0 8px; border-radius: 7px; font-size: 14px; color: var(--text-2); }
.hl-clear:hover { background: var(--hover); color: var(--text); }
