/* ===== Tokens ===== */
:root {
  --accent: #7f00ff;
  --accent-bg: rgba(127, 0, 255, 0.1);
  --accent-strong: #6900d4;
  --bg: #ffffff;
  --bg-2: #fcfaf8;
  --elev: #ffffff;
  --hover: rgba(0, 0, 0, 0.045);
  --btn-bg: #f2f2f2;
  --text: #202020;
  --text-2: #666666;
  --text-3: #9b9b9b;
  --divider: #f0f0f0;
  --border: #e3e3e3;
  --c-today: #058527;
  --c-tomorrow: #ad6200;
  --c-week: #692ec2;
  --c-overdue: #d1453b;
  --c-later: #666666;
  --c-deadline: #246fe0;
  --banner-bg: #fff4e5;
  --banner-fg: #8a4b00;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
  color-scheme: light;
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
  :root {
    --accent-bg: color-mix(in srgb, var(--accent) 12%, transparent);
    --accent-strong: color-mix(in srgb, var(--accent) 82%, black);
  }
}
:root[data-theme='dark'] {
  --bg: #1e1e1e;
  --bg-2: #262626;
  --elev: #2a2a2a;
  --hover: rgba(255, 255, 255, 0.06);
  --btn-bg: #363636;
  --text: rgba(255, 255, 255, 0.88);
  --text-2: #a3a3a3;
  --text-3: #737373;
  --divider: #2f2f2f;
  --border: #3d3d3d;
  --c-today: #25b84c;
  --c-tomorrow: #ff9a14;
  --c-week: #a970ff;
  --c-overdue: #ff7066;
  --c-later: #a3a3a3;
  --c-deadline: #5b9aff;
  --banner-bg: #3a2a12;
  --banner-fg: #ffcf8a;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
  :root[data-theme='dark'] {
    --accent-bg: color-mix(in srgb, var(--accent) 20%, transparent);
    --accent-strong: color-mix(in srgb, var(--accent) 75%, white);
  }
}

/* ===== Base ===== */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}
button { font-family: inherit; }
a { color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; background: var(--hover); padding: 1px 4px; border-radius: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.hidden { display: none !important; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--text-2); }
.row-gap { display: flex; gap: 8px; flex-wrap: wrap; }
.boot { display: flex; align-items: center; justify-content: center; height: 100vh; color: var(--text-3); }
.fatal { max-width: 480px; margin: 15vh auto; padding: 0 20px; }
.icon { display: block; flex: none; }

/* ===== Buttons & inputs ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 6px 12px; border-radius: 5px; border: 0; background: var(--btn-bg); color: var(--text);
  font-size: 13px; font-weight: 600; line-height: 20px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { filter: brightness(0.96); }
.btn .icon { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; filter: none; }
.btn-danger { background: #d1453b; color: #fff; }
.btn-small { padding: 4px 8px; font-size: 12px; }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--hover); filter: none; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none;
  border: 0; border-radius: 5px; background: none; color: var(--text-2); cursor: pointer; padding: 0;
}
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn .icon { width: 18px; height: 18px; }
.icon-btn.disabled { opacity: 0.3; pointer-events: none; }
.link-btn { border: 0; background: none; color: var(--accent); font-weight: 600; font-size: 13px; cursor: pointer; padding: 0; }
.input {
  width: 100%; padding: 7px 10px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 14px;
}
.input:focus { outline: none; border-color: var(--text-3); }
textarea.input { resize: vertical; }

/* ===== Layout ===== */
.app { display: flex; height: 100vh; height: 100dvh; overflow: hidden; }
.sidebar {
  width: 280px; flex: none; background: var(--bg-2); overflow-y: auto; padding: 10px 10px 12px;
  display: flex; flex-direction: column; gap: 1px;
}
.app.sb-collapsed .sidebar, .app.mobile .sidebar { display: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; background: var(--bg); }
.topbar { height: 44px; flex: none; display: flex; align-items: center; gap: 4px; padding: 0 12px; }
.content { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
.view { max-width: 840px; margin: 0 auto; padding: 0 56px 140px; }
.view-board { max-width: none; padding-right: 24px; }
.view-header { padding: 4px 0 14px; }
.view-title-row { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.view-title { flex: 1; min-width: 0; margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.view-actions { display: flex; align-items: center; gap: 2px; }
.view-sub { color: var(--text-2); font-size: 13px; display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.view-sub .icon { width: 14px; height: 14px; }
.view-sub > span { display: inline-flex; align-items: center; gap: 4px; }
.title-with-icon { display: inline-flex; align-items: center; gap: 8px; }
.title-with-icon .icon { width: 22px; height: 22px; }
.view-btn .icon { width: 18px; height: 18px; }
.banner { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--banner-bg); color: var(--banner-fg); font-size: 13px; }
.banner .icon { width: 18px; height: 18px; }

/* ===== Sidebar ===== */
.sb-top { display: flex; align-items: center; gap: 2px; padding: 2px 2px 8px 6px; }
.sb-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.sb-logo { width: 24px; height: 24px; border-radius: 6px; }
.sb-add {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 36px; padding: 0 8px; border: 0; background: none;
  color: var(--accent-strong); font-size: 14px; font-weight: 600; border-radius: 6px; cursor: pointer; text-align: left;
}
.sb-add:hover { background: var(--hover); }
.sb-add-ic { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; }
.sb-add-ic .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.sb-nav { display: flex; flex-direction: column; gap: 1px; }
.nav-item {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 34px; padding: 0 6px 0 calc(8px + var(--indent, 0) * 16px);
  border: 0; border-radius: 6px; background: none; color: var(--text); font-size: 14px; text-decoration: none; cursor: pointer; text-align: left;
}
.nav-item:hover { background: var(--hover); }
.nav-item.active { background: var(--accent-bg); color: var(--accent-strong); }
.nav-icon { display: flex; width: 24px; justify-content: center; color: var(--text-2); }
.nav-icon .icon { width: 20px; height: 20px; }
.nav-item.active .nav-icon { color: var(--accent-strong); }
.nav-item .nav-icon .icon[style*='color'] { opacity: 1; }
.nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-count { font-size: 12px; color: var(--text-3); padding: 0 4px; }
.nav-tools { display: flex; align-items: center; }
.nav-more { width: 24px; height: 24px; display: none; }
.nav-project:hover .nav-more { display: inline-flex; }
.nav-project:hover .nav-count { display: none; }
.nav-toggle { border: 0; background: none; color: var(--text-3); width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; border-radius: 4px; }
.nav-toggle:hover { background: var(--hover); }
.nav-toggle .icon { width: 16px; height: 16px; }
.sb-section { margin-top: 14px; }
.sb-heading { display: flex; align-items: center; gap: 2px; height: 32px; padding: 0 6px 0 8px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.sb-heading-btn { width: 24px; height: 24px; opacity: 0; }
.sb-heading:hover .sb-heading-btn { opacity: 1; }
.sb-empty { color: var(--text-3); font-size: 13px; padding: 4px 12px; }
.sb-foot { margin-top: auto; padding-top: 12px; }

/* ===== Groups / sections ===== */
.task-group { scroll-margin-top: 120px; }
.group-header {
  display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 14px 0 6px;
  border-bottom: 1px solid var(--divider); font-weight: 700; font-size: 14px;
}
.group-count { color: var(--text-3); font-weight: 400; font-size: 12px; }
.group-toggle { margin-left: -32px; width: 24px; height: 24px; }
.group-menu { opacity: 0; width: 24px; height: 24px; }
.group-header:hover .group-menu { opacity: 1; }
.add-task-btn {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 0; border: 0; background: none;
  color: var(--text-2); font-size: 14px; cursor: pointer; text-align: left;
}
.add-task-btn:hover { color: var(--accent); }
.add-plus { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.add-plus .icon { width: 16px; height: 16px; stroke-width: 2.2; }
.add-task-btn:hover .add-plus { background: var(--accent); color: #fff; }
.add-section-divider {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 0; border: 0; background: none;
  color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; opacity: 0; transition: opacity 0.15s;
}
.add-section-divider::before, .add-section-divider::after { content: ''; flex: 1; height: 1px; background: var(--accent); }
.add-section-divider:hover { opacity: 1; }
.add-section-divider.last { opacity: 1; color: var(--text-3); margin-top: 8px; }
.add-section-divider.last::before, .add-section-divider.last::after { background: var(--divider); }
.add-section-divider.last:hover { color: var(--accent); }
.add-section-form { margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.inline-editor { margin: 6px 0 10px; }
.load-more { width: 100%; margin: 16px 0; }

/* ===== Task rows ===== */
.drop-zone { min-height: 2px; }
.task { position: relative; padding-left: calc(var(--depth, 0) * 32px); }
.task-inner {
  position: relative; display: flex; align-items: flex-start; gap: 6px; min-height: 24px; padding: 8px 0;
  border-bottom: 1px solid var(--divider); background: var(--bg); cursor: pointer;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: pan-y;
}
.drag-handle {
  width: 24px; height: 24px; margin-left: -28px; margin-right: 4px; display: flex; align-items: center; justify-content: center;
  color: var(--text-3); cursor: grab; opacity: 0; flex: none;
}
.drag-handle .icon { width: 16px; height: 16px; }
.drag-spacer { display: none; }
.task-inner:hover .drag-handle { opacity: 1; }
.collapse-toggle {
  position: absolute; left: -54px; top: 8px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 4px;
  background: none; color: var(--text-2); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.collapse-toggle:hover { background: var(--hover); }
.collapse-toggle .icon { width: 16px; height: 16px; }
.check {
  --pc: var(--text-2);
  flex: none; width: 18px; height: 18px; margin-top: 1px; padding: 0; border-radius: 50%;
  border: 1px solid var(--pc); background: transparent; color: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.15s;
}
.check .icon { width: 12px; height: 12px; stroke-width: 3; }
.check:hover .icon { color: var(--pc); }
.check.p1 { --pc: #d1453b; border-width: 2px; background: rgba(209, 69, 59, 0.1); }
.check.p2 { --pc: #eb8909; border-width: 2px; background: rgba(235, 137, 9, 0.1); }
.check.p3 { --pc: #246fe0; border-width: 2px; background: rgba(36, 111, 224, 0.1); }
.check.p4 { --pc: var(--text-3); }
.task.checked .check, .task.completing .check, .check.done { background: var(--pc); border-color: var(--pc); color: #fff; }
.check.done { --pc: #8a8a8a; cursor: default; }
.check.done:not(:disabled) { cursor: pointer; }
.task.checked .task-content { text-decoration: line-through; color: var(--text-2); }
.task.completing .task-inner { opacity: 0.45; transition: opacity 0.25s; }
.task-body { flex: 1; min-width: 0; }
.task-content { font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.task-content a { color: inherit; text-decoration: underline; text-decoration-color: var(--text-3); }
.task-content code { font-size: 12px; }
/* Client pill before the task name: tinted fill, text in the client colour nudged towards the text colour for contrast. */
.client-tag {
  /* overflow:hidden puts an inline-block's baseline at its bottom edge, so drop it below the text baseline. */
  display: inline-block; vertical-align: -0.3em; margin-right: 6px; padding: 0 6px; border-radius: 4px;
  font-size: 11px; line-height: 16px; font-weight: 600; white-space: nowrap; max-width: 12em; overflow: hidden; text-overflow: ellipsis;
  color: color-mix(in srgb, var(--cc) 72%, var(--text)); background: color-mix(in srgb, var(--cc) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cc) 28%, transparent);
}
.app.mobile .client-tag { font-size: 12px; line-height: 18px; }
/* Project mark in the sidebar / Browse: the client tag as a short code, the same footprint as the # icon. */
.proj-tag {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 16px; border-radius: 4px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.02em; line-height: 1; white-space: nowrap; overflow: hidden;
  color: color-mix(in srgb, var(--cc) 72%, var(--text)); background: color-mix(in srgb, var(--cc) 18%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cc) 30%, transparent);
}
.proj-tag.long { font-size: 7.5px; letter-spacing: 0; }
.browse-row > .proj-tag { width: 22px; height: 17px; font-size: 9.5px; }
.browse-row > .proj-tag.long { font-size: 8px; }
.task.checked .client-tag { opacity: 0.6; }
.task-desc { font-size: 12px; line-height: 18px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 12px; color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 2px 10px; flex: 1; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 3px; line-height: 16px; white-space: nowrap; }
.chip .icon { width: 12px; height: 12px; }
.chip .icon.rec { width: 11px; height: 11px; }
.chip-due.overdue { color: var(--c-overdue); }
.chip-due.today { color: var(--c-today); }
.chip-due.tomorrow { color: var(--c-tomorrow); }
.chip-due.week { color: var(--c-week); }
.chip-due.later { color: var(--c-later); }
.chip-deadline.deadline { color: var(--c-deadline); }
.chip-deadline.overdue { color: var(--c-overdue); }
.task-project { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; max-width: 45%; color: var(--text-2); white-space: nowrap; }
.proj-name { overflow: hidden; text-overflow: ellipsis; }
.proj-hash { font-weight: 700; }
.proj-ic { width: 12px; height: 12px; }
.task-actions { display: flex; gap: 0; margin: -4px -4px 0 0; opacity: 0; }
.task-inner:hover .task-actions { opacity: 1; }
.task-actions .icon-btn { width: 28px; height: 28px; }

/* swipe */
.swipe-bg { position: absolute; inset: 0 0 1px 0; left: calc(var(--depth, 0) * 32px); display: none; align-items: center; justify-content: space-between; padding: 0 22px; color: #fff; }
.task.swiping .swipe-bg { display: flex; }
.task.swipe-r .swipe-bg { background: var(--sw-r, #058527); }
.task.swipe-l .swipe-bg { background: var(--sw-l, #692ec2); }
.task.swiping:not(.armed) .swipe-bg { filter: saturate(0.5) brightness(1.1); }
.task.swipe-r .swipe-icon-left, .task.swipe-l .swipe-icon-right { visibility: hidden; }
.swipe-icon .icon { width: 24px; height: 24px; transition: transform 0.15s; }
.task.armed .swipe-icon .icon { transform: scale(1.2); }

/* drag */
body.dragging, body.dragging * { cursor: grabbing !important; }
.drag-ghost { position: fixed; z-index: 1300; pointer-events: none; padding-left: 0 !important; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); background: var(--bg); opacity: 0.96; }
.drag-ghost .task-inner { border-bottom: 0; padding: 8px 10px; border-radius: 8px; }
.drag-ghost .drag-handle, .drag-ghost .task-actions, .drag-ghost .collapse-toggle { display: none; }
.drag-placeholder .task-inner { visibility: hidden; }
.drag-placeholder::after {
  content: ''; position: absolute; top: 3px; bottom: 3px; right: 0; left: calc(var(--depth, 0) * 32px);
  border: 1px dashed var(--accent); background: var(--accent-bg); border-radius: 6px;
}

/* board */
.board { display: flex; align-items: flex-start; gap: 16px; overflow-x: auto; padding-bottom: 24px; scroll-snap-type: x proximity; }
.board-col { width: 272px; flex: none; scroll-snap-align: start; }
.board-col .group-header { border-bottom: 0; padding-top: 4px; }
.board-col .group-toggle { display: none; }
.drop-zone.cards { display: flex; flex-direction: column; gap: 8px; min-height: 28px; }
.task.card { padding-left: 0; }
.task.card .task-inner { border: 1px solid var(--border); border-radius: 8px; padding: 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
.task.card .drag-handle { display: none; }
.task.card .task-actions { position: absolute; top: 6px; right: 8px; background: var(--bg); border-radius: 6px; }
.task.card .swipe-bg { left: 0; border-radius: 8px; }
.add-section-btn { display: flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--text-2); font-weight: 600; font-size: 14px; cursor: pointer; padding: 8px 0; }
.add-section-btn:hover { color: var(--accent); }
.add-section-btn .icon { width: 18px; height: 18px; }

/* ===== Upcoming ===== */
.up-sticky { position: sticky; top: 0; z-index: 5; background: var(--bg); padding-bottom: 6px; border-bottom: 1px solid var(--divider); }
.up-nav { display: flex; align-items: center; gap: 4px; padding: 2px 0 6px; }
.up-month { font-weight: 700; font-size: 14px; }
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ws-day { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 8px; border: 0; border-radius: 6px; background: none; color: var(--text); cursor: pointer; }
.ws-day:hover:not(:disabled) { background: var(--hover); }
.ws-wd { font-size: 11px; color: var(--text-2); }
.ws-num { font-size: 14px; font-weight: 600; }
.ws-day.is-today .ws-num { color: var(--accent); }
.ws-day.past { opacity: 0.4; cursor: default; }
.ws-dot { position: absolute; bottom: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); }

/* ===== Empty / lists ===== */
.empty { text-align: center; padding: 56px 16px; color: var(--text-2); }
.empty-art .icon { width: 64px; height: 64px; margin: 0 auto; color: var(--accent); opacity: 0.6; stroke-width: 1.1; }
.empty-title { font-weight: 700; color: var(--text); margin-top: 12px; font-size: 15px; }
.empty-sub { font-size: 13px; margin-top: 4px; }
.fl-section { margin-bottom: 28px; }
.fl-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--divider); text-decoration: none; color: var(--text); }
.fl-row:hover { background: var(--hover); }
.fl-row > .icon { width: 20px; height: 20px; }
.fl-count { color: var(--text-3); font-size: 12px; }
.fl-menu { opacity: 0; }
.fl-row:hover .fl-menu { opacity: 1; }
.fl-empty { color: var(--text-3); padding: 12px 4px; font-size: 13px; }
.filter-error { color: var(--c-overdue); padding: 12px 0; display: flex; align-items: center; gap: 6px; }
.filter-error .icon { width: 18px; height: 18px; }
.filter-query { font-size: 12px; }
.done-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--divider); }
.done-content { text-decoration: line-through; color: var(--text-2); overflow-wrap: anywhere; }
.done-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.done-body { flex: 1; min-width: 0; }
.search-box { display: flex; align-items: center; gap: 8px; padding: 0 10px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }
.search-box .icon { width: 18px; height: 18px; color: var(--text-3); }
.search-input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 10px 0; background: none; color: var(--text); font: inherit; font-size: 15px; }
.search-hint { color: var(--text-3); font-size: 13px; padding: 8px 0; }
.search-links { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip-link { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 14px; color: var(--text); text-decoration: none; font-size: 13px; }
.chip-link .icon { width: 16px; height: 16px; }

/* ===== Browse (mobile) ===== */
.browse-card { border: 1px solid var(--divider); border-radius: 12px; overflow: hidden; margin-bottom: 16px; background: var(--bg-2); }
.browse-row {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--divider);
  background: none; color: var(--text); font-size: 16px; text-decoration: none; text-align: left; cursor: pointer;
}
.browse-row:last-child { border-bottom: 0; }
.browse-row > .icon { width: 22px; height: 22px; }
.browse-row .chev { width: 16px; height: 16px; color: var(--text-3); }
.browse-label { display: flex; align-items: center; margin: 10px 4px 6px; font-size: 13px; font-weight: 700; color: var(--text-2); }

/* ===== Task editor ===== */
.task-editor { border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.task-editor:focus-within { border-color: var(--text-3); }
.quickadd-modal .task-editor, .quickadd-sheet .task-editor { border: 0; border-radius: 0; background: transparent; }
.te-fields { padding: 10px 12px 8px; }
.te-input-wrap { position: relative; }
.te-input, .te-highlight {
  display: block; width: 100%; margin: 0; padding: 0; border: 0;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 22px; letter-spacing: normal;
  white-space: pre-wrap; overflow-wrap: break-word; word-break: normal;
}
.te-highlight { position: absolute; top: 0; left: 0; right: 0; color: var(--text); pointer-events: none; overflow: hidden; }
.te-input { position: relative; resize: none; background: transparent; color: transparent; caret-color: var(--text); outline: none; overflow: hidden; min-height: 22px; }
.te-input::placeholder { color: var(--text-3); }
.te-input::selection { color: transparent; background: rgba(36, 111, 224, 0.25); }
mark.tok { background: var(--accent-bg); color: var(--accent-strong); border-radius: 3px; }
.te-desc { display: block; width: 100%; margin-top: 4px; padding: 0; border: 0; outline: 0; resize: none; background: transparent; color: var(--text); font: inherit; font-size: 13px; line-height: 18px; overflow: hidden; }
.te-desc::placeholder { color: var(--text-3); }
.te-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.te-chip { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 5px; color: var(--text-2); font-size: 13px; background: var(--bg); }
.te-chip-main { display: flex; align-items: center; gap: 5px; padding: 3px 8px; border: 0; background: none; color: inherit; font-size: 13px; cursor: pointer; border-radius: 5px; }
.te-chip-main:hover { background: var(--hover); }
.te-chip .icon { width: 15px; height: 15px; }
.te-chip.set { color: var(--text); }
.te-chip.due.today { color: var(--c-today); }
.te-chip.due.tomorrow { color: var(--c-tomorrow); }
.te-chip.due.week { color: var(--c-week); }
.te-chip.due.overdue { color: var(--c-overdue); }
.te-chip.deadline { color: var(--c-deadline); }
.te-chip-x { display: flex; align-items: center; padding: 0 5px 0 0; border: 0; background: none; color: var(--text-3); cursor: pointer; }
.te-chip-x .icon { width: 13px; height: 13px; }
.te-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.te-thumbs:empty { display: none; }
.te-thumb { position: relative; width: 56px; height: 56px; border-radius: 6px; overflow: hidden; background: var(--hover); }
.te-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.te-thumb-x { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.te-thumb-x .icon { width: 12px; height: 12px; }
.te-footer { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--divider); }
.te-project { display: flex; align-items: center; gap: 5px; min-width: 0; max-width: 60%; padding: 4px 6px; border: 0; border-radius: 5px; background: none; color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.te-project span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.te-project .icon { width: 16px; height: 16px; }
.te-project:hover:not(:disabled) { background: var(--hover); }
.te-project:disabled { cursor: default; }
.te-buttons { margin-left: auto; display: flex; gap: 8px; }
.te-sheet .te-footer { border-top: 0; padding-bottom: 10px; }
.te-sheet .te-submit { width: 36px; height: 36px; padding: 0; border-radius: 50%; }
.te-sheet .te-submit .icon { width: 20px; height: 20px; stroke-width: 2.4; }
.te-ac { position: absolute; top: 100%; left: 0; z-index: 20; min-width: 220px; max-width: 100%; margin-top: 4px; padding: 4px; background: var(--elev); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); }
.te-ac-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 5px; background: none; color: var(--text); font-size: 13px; text-align: left; cursor: pointer; }
.te-ac-item .icon { width: 16px; height: 16px; }
.te-ac-item.active, .te-ac-item:hover { background: var(--hover); }

/* ===== Overlays ===== */
.pop-backdrop { position: fixed; inset: 0; z-index: 1000; }
.popover:focus, .modal:focus, .sheet:focus, .lightbox:focus { outline: none; }
.popover { position: fixed; z-index: 1001; min-width: 200px; max-height: calc(100vh - 16px); overflow: auto; background: var(--elev); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); }
.menu { padding: 4px; min-width: 250px; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 10px; border: 0; border-radius: 5px; background: none; color: var(--text); font-size: 13px; text-align: left; cursor: pointer; }
.menu-item:hover { background: var(--hover); }
.menu-item:disabled { opacity: 0.5; cursor: default; }
.menu-item .icon { width: 18px; height: 18px; color: var(--text-2); }
.menu-item.danger, .menu-item.danger .icon { color: #d1453b; }
.menu-label { flex: 1; }
.menu-hint { color: var(--text-3); font-size: 12px; }
.menu-item .menu-check { color: var(--accent); }
.menu-sep { height: 1px; margin: 4px 0; background: var(--divider); }
.menu-heading { padding: 6px 10px 2px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.menu-block { padding: 4px 10px 6px; }
.menu-block-label { margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.menu-icons { display: flex; gap: 4px; }
.menu-icon-btn { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 5px; background: none; color: var(--text-2); cursor: pointer; }
.menu-icon-btn:hover, .menu-icon-btn.on { background: var(--hover); }
.menu-icon-btn .icon { width: 20px; height: 20px; }
.c-today { color: var(--c-today); }
.c-tomorrow { color: var(--c-tomorrow); }
.c-weekend { color: #246fe0; }
.c-nextweek { color: var(--c-week); }
.c-nodate { color: var(--text-2); }

.modal-backdrop { position: fixed; inset: 0; z-index: 940; background: rgba(0, 0, 0, 0.4); }
.modal-wrap { position: fixed; inset: 0; z-index: 941; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; overflow: auto; }
.modal { width: 100%; max-width: 550px; background: var(--elev); border-radius: 12px; box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3); }
.modal-wide { max-width: 880px; }
.modal-small { max-width: 420px; }
.modal-settings { max-width: 580px; }
.modal-wrap:has(.detail-modal) { padding-top: 5vh; }
.quickadd-modal { max-width: 560px; }

.sheet-backdrop { position: fixed; inset: 0; z-index: 960; background: rgba(0, 0, 0, 0); transition: background 0.2s; }
.sheet-backdrop.open { background: rgba(0, 0, 0, 0.35); }
.sheet {
  position: fixed; left: 0; right: 0; bottom: var(--kb, 0px); z-index: 961; display: flex; flex-direction: column;
  max-height: calc(100% - var(--kb, 0px) - env(safe-area-inset-top) - 16px);
  padding-bottom: env(safe-area-inset-bottom); background: var(--elev); border-radius: 14px 14px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15); transform: translateY(105%); transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sheet.open { transform: translateY(0); }
.sheet-full { height: calc(100% - var(--kb, 0px) - env(safe-area-inset-top) - 10px); }
.sheet > * { flex: none; }
.sheet > :last-child { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet-grip { display: flex; justify-content: center; padding: 8px 0 4px; }
.sheet-grip span { width: 36px; height: 5px; border-radius: 3px; background: var(--border); }
.sheet-title { padding: 0 16px 8px; text-align: center; font-weight: 700; font-size: 15px; }
.sheet .menu { min-width: 0; padding: 4px 8px 8px; }
.sheet .menu-item { padding: 12px; font-size: 16px; }
.sheet .menu-icon-btn { width: 44px; height: 44px; }
.sheet .picker { width: auto; max-height: none; }
.sheet .picker-row { padding: 12px; font-size: 16px; }
.sheet .dp-quick-item { padding: 10px 8px; font-size: 16px; }
.sheet .dp-day { width: 40px; height: 40px; font-size: 16px; }
.sheet .dp-input { font-size: 16px; }

.dialog { padding: 16px 20px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; }
.dialog-title { margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.dialog-head .dialog-title { margin: 0; }
.dialog-body { font-size: 14px; color: var(--text); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.field { display: block; margin-bottom: 14px; }
.field-label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; }
.field-error { margin-top: 4px; color: #d1453b; font-size: 12px; }
.field-error:empty { display: none; }
.field-help { margin-top: 4px; color: var(--text-2); font-size: 12px; }
.color-select { display: flex; align-items: center; gap: 8px; }
.color-dot { width: 12px; height: 12px; flex: none; border-radius: 50%; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0 12px; font-size: 14px; cursor: pointer; }
.switch { position: relative; width: 36px; height: 20px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; border-radius: 20px; background: var(--border); transition: 0.2s; }
.slider::before { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: 0.2s; }
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(16px); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 2px; border-radius: 6px; background: var(--hover); }
.seg-item { position: relative; display: flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 5px; font-size: 13px; cursor: pointer; }
.seg-item input { position: absolute; opacity: 0; pointer-events: none; }
.seg-item:has(input:checked) { background: var(--bg); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.seg-item .icon { width: 16px; height: 16px; }

.toast {
  position: fixed; left: 20px; bottom: 20px; z-index: 1200; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 40px);
  padding: 10px 6px 10px 14px; border-radius: 8px; background: #202020; color: #fff; font-size: 13px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  opacity: 0; transform: translateY(16px); transition: opacity 0.2s, transform 0.2s;
}
:root[data-theme='dark'] .toast { background: #3a3a3a; }
.toast.show { opacity: 1; transform: none; }
.toast-msg { flex: 1; min-width: 0; }
.toast-action { border: 0; background: none; color: #c08cff; font-weight: 700; font-size: 13px; cursor: pointer; padding: 4px 6px; }
.toast-close { color: #aaa; }
.toast-close:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

.lightbox { position: fixed; inset: 0; z-index: 1100; display: flex; background: rgba(0, 0, 0, 0.92); }
.lightbox-scroll { flex: 1; display: flex; align-items: center; justify-content: center; overflow: auto; touch-action: pinch-zoom pan-x pan-y; }
.lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); color: #fff; }

/* ===== Pickers ===== */
.popover.dp-popover { width: 290px; }
.datepicker { font-size: 13px; }
.dp-top { padding: 10px 12px; border-bottom: 1px solid var(--divider); }
.dp-input { width: 100%; padding: 0; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 14px; }
.dp-preview { margin-top: 6px; }
.dp-preview:empty { display: none; }
.dp-preview-btn { display: flex; align-items: center; gap: 6px; width: 100%; padding: 6px 8px; border: 0; border-radius: 5px; background: var(--hover); color: var(--text); font-size: 13px; text-align: left; cursor: pointer; }
.dp-preview-btn .icon { width: 16px; height: 16px; }
.dp-quick { padding: 4px; border-bottom: 1px solid var(--divider); }
.dp-quick-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 0; border-radius: 5px; background: none; color: var(--text); font-size: 13px; cursor: pointer; }
.dp-quick-item:hover { background: var(--hover); }
.dp-qicon { display: flex; }
.dp-qicon .icon { width: 18px; height: 18px; }
.dp-qlabel { flex: 1; text-align: left; font-weight: 600; }
.dp-qhint { color: var(--text-3); font-size: 12px; }
.dp-cal { padding: 8px 12px; }
.dp-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; font-weight: 700; }
.dp-nav { display: flex; align-items: center; }
.dp-today-dot .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dp-names span { padding: 2px 0; font-size: 11px; color: var(--text-3); }
.dp-day { width: 30px; height: 30px; margin: auto; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text); font-size: 13px; cursor: pointer; }
.dp-day:hover { background: var(--hover); }
.dp-day.out, .dp-day.past { color: var(--text-3); }
.dp-day.is-today { color: var(--accent); font-weight: 700; }
.dp-day.selected { background: var(--accent); color: #fff; }
.dp-footer { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--divider); }
.dp-time-row { display: flex; align-items: center; gap: 6px; padding: 0 12px 10px; }
.dp-time { flex: 1; min-width: 0; padding: 4px 6px; border: 1px solid var(--border); border-radius: 5px; background: var(--bg); color: var(--text); font: inherit; }
.picker { width: 300px; max-height: 420px; display: flex; flex-direction: column; }
.picker-search { padding: 10px 12px; border: 0; border-bottom: 1px solid var(--divider); outline: 0; background: none; color: var(--text); font: inherit; font-size: 14px; }
.picker-list { overflow-y: auto; padding: 4px; }
.picker-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 12px; border: 0; border-radius: 5px; background: none; color: var(--text); font-size: 13px; text-align: left; cursor: pointer; }
.picker-row:hover { background: var(--hover); }
.picker-row > .icon { width: 18px; height: 18px; }
.picker-row.on { font-weight: 600; }
.picker-row.create { color: var(--accent); }
.entity-row .grow { display: flex; flex-direction: column; min-width: 0; }
.picker-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-sub { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; }
.entity-row .row-edit { width: 26px; height: 26px; opacity: 0; }
.entity-row:hover .row-edit, .entity-row:focus-within .row-edit { opacity: 1; }
@media (hover: none) { .entity-row .row-edit { opacity: 0.7; } }
.picker-empty { padding: 12px; color: var(--text-3); font-size: 13px; }
.checkbox { width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--text-3); border-radius: 4px; }
.checkbox.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.checkbox .icon { width: 12px; height: 12px; stroke-width: 3; }
.view-options { display: flex; flex-direction: column; gap: 12px; min-width: 270px; padding: 12px; }
.vo-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0; font-size: 13px; }
.vo-row select { width: auto; }
.vo-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vo-layout-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: none; color: var(--text); font-size: 12px; cursor: pointer; }
.vo-layout-btn.on { border-color: var(--accent); color: var(--accent); }
.sync-pop { display: flex; flex-direction: column; gap: 8px; min-width: 240px; padding: 12px; font-size: 13px; }
.sync-pop-title { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.sync-pop-title .icon { width: 18px; height: 18px; }
.sync-ind.syncing .icon { animation: spin 1s linear infinite; }
.sync-ind.ok, .sync-ind.offline { color: var(--text-3); }
.sync-ind.pending { color: var(--c-tomorrow); }
.sync-ind.auth, .sync-ind.error { color: #d1453b; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Task detail ===== */
.detail { display: flex; flex-direction: column; min-height: 0; max-height: 88vh; }
.detail-head { display: flex; align-items: center; gap: 2px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--divider); }
.crumb { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 6px; border: 0; border-radius: 5px; background: none; color: var(--text-2); font-size: 13px; cursor: pointer; }
.crumb span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb .icon { width: 16px; height: 16px; }
.crumb:hover { background: var(--hover); }
.detail-body { display: flex; flex: 1; min-height: 0; }
.detail-main { flex: 1; min-width: 0; padding: 16px 24px 28px; overflow-y: auto; }
.detail-side { width: 270px; flex: none; padding: 12px 16px; overflow-y: auto; background: var(--bg-2); border-radius: 0 0 12px 0; }
.detail-side.inline { display: none; }
.side-row { padding: 8px 0; border-bottom: 1px solid var(--divider); }
.side-label { margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.side-value { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: calc(100% + 12px); margin-left: -6px; padding: 4px 6px; border: 0; border-radius: 5px; background: none; color: var(--text); font-size: 13px; text-align: left; cursor: pointer; }
.side-value:hover { background: var(--hover); }
.side-value .icon { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; }
.side-value span { display: inline-flex; align-items: center; gap: 4px; }
.side-foot { padding-top: 12px; font-size: 12px; }
.set-logo { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; background: var(--hover); }
.logo-ctl { align-items: center; justify-content: flex-end; }
.side-value:disabled { cursor: default; opacity: 0.6; }
.side-value:disabled:hover { background: none; }
.side-static { padding: 4px 0; font-size: 13px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; }
.detail-title-row { display: flex; align-items: flex-start; gap: 10px; }
.check.big { width: 22px; height: 22px; margin-top: 5px; }
.check.big .icon { width: 14px; height: 14px; }
.detail-text { flex: 1; min-width: 0; }
.detail-title { display: block; width: calc(100% + 8px); margin-left: -4px; padding: 2px 4px; border: 0; border-radius: 5px; outline: 0; resize: none; overflow: hidden; background: none; color: var(--text); font: inherit; font-size: 20px; font-weight: 700; line-height: 1.35; }
.detail-title:focus, .detail-desc:focus { background: var(--hover); }
.detail-desc { display: block; width: calc(100% + 8px); min-height: 26px; margin: 2px 0 0 -4px; padding: 2px 4px; border: 0; border-radius: 5px; outline: 0; resize: none; overflow: hidden; background: none; color: var(--text); font: inherit; font-size: 14px; line-height: 1.5; }
.detail-desc::placeholder { color: var(--text-3); }
.parent-link { display: flex; align-items: center; gap: 6px; max-width: 100%; padding: 0 0 8px; border: 0; background: none; color: var(--text-2); font-size: 13px; cursor: pointer; }
.parent-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.parent-link .icon { width: 16px; height: 16px; }
.detail-sec-head { display: flex; align-items: center; padding: 18px 0 6px; border-bottom: 1px solid var(--divider); font-size: 14px; font-weight: 700; }
.detail-subs .task { padding-left: calc(var(--depth, 0) * 28px); }
.detail-sec-head .muted { margin-left: 6px; font-weight: 400; font-size: 13px; }
.detail-sec-head .icon-btn { width: 26px; height: 26px; }
.md-hint { font-size: 12px; font-weight: 400; color: var(--text-3); }
.md-unsaved { color: var(--warn, #d97706); }
.draft-list { display: grid; gap: 10px; margin: 8px 0 14px; }
.detail .draft-list { padding: 0 16px 16px; }
.draft-card { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; display: grid; gap: 8px; }
.draft-card-head { font-size: 13px; }
.draft-card-text { white-space: pre-wrap; font-size: 13px; max-height: 160px; overflow: auto; background: var(--bg-2, rgba(127,127,127,.08)); border-radius: 6px; padding: 8px; }
.md-unsaved .link-btn { font-size: 12px; }

/* Details: rendered markdown */
.detail-details { margin-top: 4px; }
.md-view { min-height: 32px; margin: 4px -8px 0; padding: 6px 8px; border-radius: 6px; font-size: 14px; line-height: 1.55; cursor: text; overflow-wrap: anywhere; }
.md-view:hover { background: var(--hover); }
.md-view.empty { color: var(--text-3); }
.md-view > :first-child { margin-top: 0; }
.md-view > :last-child { margin-bottom: 0; }
.md-view p { margin: 0 0 0.6em; }
.md-view h1, .md-view h2, .md-view h3, .md-view h4, .md-view h5, .md-view h6 { margin: 0.9em 0 0.4em; line-height: 1.3; }
.md-view h1 { font-size: 1.45em; }
.md-view h2 { font-size: 1.25em; }
.md-view h3 { font-size: 1.1em; }
.md-view h4, .md-view h5, .md-view h6 { font-size: 1em; }
.md-view ul, .md-view ol { margin: 0.3em 0 0.6em; padding-left: 1.5em; }
.md-view li { margin: 0.15em 0; }
.md-view li > ul, .md-view li > ol { margin: 0.15em 0; }
.md-view li.task-item { list-style: none; margin-left: -1.5em; display: block; }
.md-view li.task-item > span { vertical-align: middle; }
.md-view li.task-item.done > span { color: var(--text-3); text-decoration: line-through; }
.md-view .md-check { width: 16px; height: 16px; margin: 0 6px 0 0; vertical-align: middle; accent-color: var(--accent); cursor: pointer; }
.md-view blockquote { margin: 0.4em 0 0.6em; padding: 2px 0 2px 12px; border-left: 3px solid var(--border); color: var(--text-2); }
.md-view pre { margin: 0.4em 0 0.7em; padding: 10px 12px; border-radius: 6px; background: var(--hover); overflow-x: auto; }
.md-view pre code { padding: 0; background: none; font-size: 12.5px; line-height: 1.5; }
.md-view code { font-size: 12.5px; }
.md-view hr { margin: 0.8em 0; border: 0; border-top: 1px solid var(--divider); }
.md-view a { color: var(--accent-strong); }
.md-view mark { background: rgba(255, 214, 0, 0.4); color: inherit; border-radius: 2px; padding: 0 2px; }
.md-view img { max-width: 100%; border-radius: 6px; }
.md-view .md-table { overflow-x: auto; margin: 0.4em 0 0.7em; }
.md-view table { border-collapse: collapse; font-size: 13px; }
.md-view th, .md-view td { padding: 5px 10px; border: 1px solid var(--border); text-align: left; }
.md-view th { background: var(--hover); font-weight: 600; }
.details-input {
  display: block; width: 100%; min-height: 140px; margin-top: 6px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 14px; line-height: 1.55; resize: none; overflow: hidden; outline: none;
}
.details-input:focus { border-color: var(--accent); }

/* Task attachments */
.att-wrap { position: relative; }
.att-del {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, 0.6); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0;
}
.att-del .icon { width: 13px; height: 13px; }
.att-wrap:hover .att-del, .att-del:focus-visible { opacity: 1; }
@media (hover: none) { .att-del { opacity: 1; } }
.detail-atts { margin-top: 4px; }
.detail-md { margin-top: 4px; }
.detail-sec-head .sec-ic { width: 16px; height: 16px; margin-right: 6px; color: var(--text-3); }
/* Notes look like a note card (amber tint + left rule) so they read differently from Details. */
.md-notes { --note: #e0a100; }
.md-notes .detail-sec-head .sec-ic { color: var(--note); }
.md-notes .md-view {
  margin: 8px 0 0; padding: 10px 14px; border-radius: 0 8px 8px 0; border-left: 3px solid var(--note);
  background: color-mix(in srgb, var(--note) 9%, var(--bg)); font-size: 13.5px; color: color-mix(in srgb, var(--text) 88%, var(--note));
}
.md-notes .md-view:hover { background: color-mix(in srgb, var(--note) 14%, var(--bg)); }
.md-notes .md-view.empty { color: var(--text-3); font-style: italic; }
.md-notes .details-input { border-left: 3px solid var(--note); background: color-mix(in srgb, var(--note) 6%, var(--bg)); }
.md-notes .details-input:focus { border-color: var(--note); }
/* Task timers */
.detail-time { margin-top: 4px; }
.detail-time .detail-sec-head .timer-live, .detail-time .detail-sec-head > .muted { margin-left: 8px; font-weight: 500; font-size: 13px; font-variant-numeric: tabular-nums; }
.timer-start { gap: 4px; }
.timer-start .icon, .timer-stop .icon { width: 13px; height: 13px; }
.timer-empty { padding: 10px 0 4px; font-size: 13px; }
.timer-list { display: flex; flex-direction: column; }
.timer-row { padding: 8px 0 6px; border-bottom: 1px solid var(--divider); }
.timer-line { display: flex; align-items: center; gap: 8px; min-height: 28px; font-size: 13px; }
.timer-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--text-3); }
.timer-row.running .timer-dot { background: #058527; box-shadow: 0 0 0 3px color-mix(in srgb, #058527 25%, transparent); animation: timer-pulse 1.6s ease-in-out infinite; }
@keyframes timer-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, #058527 0%, transparent); } }
.timer-range { color: var(--text-2); min-width: 0; }
.timer-cap { margin-left: 6px; padding: 0 5px; border-radius: 4px; background: var(--hover); color: var(--text-2); font-size: 11px; }
.timer-dur { font-weight: 600; font-variant-numeric: tabular-nums; }
.timer-row.running .timer-dur { color: #058527; }
.timer-stop { gap: 4px; color: #d1453b; }
.timer-del { width: 26px; height: 26px; opacity: 0.6; }
.timer-note {
  display: block; width: calc(100% - 16px); margin: 4px 0 0 16px; padding: 4px 8px; border: 1px solid transparent; border-radius: 6px;
  background: none; color: var(--text); font: inherit; font-size: 13px; line-height: 1.45; resize: none; overflow: hidden; outline: none;
}
.timer-note:hover { background: var(--hover); }
.timer-note:focus { border-color: var(--accent); background: var(--bg); }
.chip-timer .timer-live { font-variant-numeric: tabular-nums; }
.chip-timer.running { color: #058527; font-weight: 600; }
.chip-wt .icon { width: 13px; height: 13px; }
.work-type .icon { vertical-align: -2px; }
.work-type.wt-drive, .work-type.wt-fly { color: var(--accent-strong); }
/* Markup: Select tool */
.mk-canvas.select { cursor: default; }
.mk-hint {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 12.5px; white-space: nowrap; pointer-events: none;
}
.mk-hint[hidden] { display: none; }
.mk-btn.mk-del { color: #ff6b5f; }
/* Dashed drop box for attachments */
.att-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 96px;
  padding: 14px; border: 1.5px dashed var(--border); border-radius: 10px; background: none; color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer;
}
.att-drop:hover, .drop-over .att-drop { border-color: var(--accent); color: var(--accent-strong); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.att-drop .att-drop-ic { width: 22px; height: 22px; }
.att-drop .att-drop-sub { font-size: 12px; color: var(--text-3); }
.att-drop.tile { width: 110px; min-height: 0; height: 110px; padding: 8px; align-self: stretch; }
.att-drop.tile .att-drop-text { font-size: 12px; text-align: center; }
.detail-empty { padding: 40px; text-align: center; color: var(--text-2); }
.comments { display: flex; flex-direction: column; gap: 14px; padding: 12px 0; }
.comments:empty { display: none; }
.comment { display: flex; gap: 10px; }
.avatar { width: 28px; height: 28px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: #fff; }
.avatar .icon { width: 16px; height: 16px; }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.comment-menu { width: 24px; height: 24px; opacity: 0.6; }
.comment-text { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.md p { margin: 0; }
.md p.blank { height: 0.6em; }
.md ul { margin: 4px 0; padding-left: 20px; }
.attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.att { position: relative; display: block; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--hover); cursor: pointer; }
.att-img { display: block; max-width: 240px; max-height: 240px; min-width: 60px; min-height: 60px; object-fit: cover; }
.att-file { display: flex; align-items: center; gap: 6px; padding: 8px 10px; color: var(--text); text-decoration: none; font-size: 13px; }
.att-file .icon { width: 16px; height: 16px; }
.att-status { position: absolute; left: 4px; bottom: 4px; display: flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 11px; }
.att-file .att-status { position: static; background: none; color: var(--text-2); }
.att-status .icon { width: 12px; height: 12px; }
.att-status.att-error { background: rgba(209, 69, 59, 0.9); color: #fff; }
.att-file .att-status.att-error { background: none; color: #d1453b; }
.show-older { display: block; margin: 16px auto 32px; }
.att-retry { margin-left: 6px; padding: 0 6px; border-radius: 4px; border: 1px solid currentColor; font-weight: 600; cursor: pointer; }
.att-retry:hover { background: rgba(255, 255, 255, 0.2); }
.composer { margin-top: 4px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; }
.composer:focus-within { border-color: var(--text-3); }
.comment-input { display: block; width: 100%; min-height: 22px; padding: 0; border: 0; outline: 0; resize: none; overflow: hidden; background: none; color: var(--text); font: inherit; font-size: 14px; }
.composer-bar { display: flex; align-items: center; gap: 4px; margin-top: 6px; }

/* ===== Settings ===== */
.settings { max-height: 70vh; overflow-y: auto; padding-bottom: 8px; }
.set-h { margin: 18px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); }
.set-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 9px 0; border-bottom: 1px solid var(--divider); }
.set-label { font-size: 14px; }
.set-hint { font-size: 12px; color: var(--text-3); }
.set-control { display: flex; justify-content: flex-end; }
.set-control select { width: auto; }
.accent-grid { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.accent { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--border); border-radius: 6px; background: none; color: var(--text); font-size: 12px; cursor: pointer; }
.accent.on { border-color: var(--accent); font-weight: 700; }
.accent-sw { width: 12px; height: 12px; border-radius: 50%; }
.set-foot { margin-top: 16px; font-size: 12px; text-align: center; }

/* A non-live copy (TASKR_ENV, e.g. UAT; see env.js): an orange frame round every screen and a
   label at the top. Neither takes clicks, so the app works exactly as usual underneath. */
body.env-copy::after {
  content: ''; position: fixed; inset: 0; z-index: 10000; pointer-events: none;
  border: 4px solid #ea580c;
}
#env-label {
  position: fixed; z-index: 10001; pointer-events: none;
  top: calc(env(safe-area-inset-top, 0px) + 4px); left: 50%; transform: translateX(-50%);
  background: #ea580c; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em;
  padding: 2px 10px; border-radius: 0 0 8px 8px; white-space: nowrap; opacity: .95;
}

/* ===== Pull to refresh ===== */
.ptr-indicator { height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; transition: height 0.15s; }
.ptr-indicator::after { content: ''; width: 20px; height: 20px; border: 2px solid var(--text-3); border-top-color: transparent; border-radius: 50%; opacity: 0.6; }
.ptr-indicator.armed::after { border-color: var(--accent); border-top-color: transparent; opacity: 1; }
.ptr-indicator.loading { height: 44px !important; }
.ptr-indicator.loading::after { animation: spin 0.8s linear infinite; }

/* ===== Mobile tab bar / FAB ===== */
.tabbar, .fab { display: none; }

/* ===== Touch devices ===== */
@media (hover: none) {
  .task-actions, .drag-handle { display: none; }
  .group-menu, .fl-menu, .sb-heading-btn { opacity: 1; }
  .add-section-divider:not(.last) { display: none; }
}

/* ===== Phone layout ===== */
.app.mobile .topbar { height: calc(44px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(8px, env(safe-area-inset-right)) 0 max(8px, env(safe-area-inset-left)); }
.app.mobile .back-btn { width: auto; padding: 0 8px 0 2px; gap: 2px; color: var(--accent); font-size: 16px; }
.app.mobile .back-btn .icon { width: 22px; height: 22px; }
.app.mobile .content { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
.app.mobile .view { padding: 0 max(16px, env(safe-area-inset-right)) 140px max(16px, env(safe-area-inset-left)); }
.app.mobile .view-title { font-size: 28px; font-weight: 800; }
.app.mobile .hide-sm { display: none; }
.app.mobile .task { padding-left: calc(var(--depth, 0) * 24px); }
.app.mobile .task-inner { gap: 12px; padding: 11px 0; }
.app.mobile .task-content { font-size: 16px; line-height: 22px; }
.app.mobile .task-desc { font-size: 13px; }
.app.mobile .task-meta { font-size: 13px; }
.app.mobile .chip .icon { width: 13px; height: 13px; }
.app.mobile .check { width: 22px; height: 22px; margin-top: 0; }
.app.mobile .check .icon { width: 14px; height: 14px; }
.app.mobile .collapse-toggle { position: static; order: 5; width: 28px; height: 28px; margin: -3px -4px 0 0; }
.app.mobile .group-toggle { margin-left: -6px; }
.app.mobile .group-header { font-size: 15px; }
.app.mobile .swipe-bg { left: calc(var(--depth, 0) * 24px); }
.app.mobile .drag-placeholder::after { left: calc(var(--depth, 0) * 24px); }
.app.mobile .add-task-btn { font-size: 16px; padding: 12px 0; }
.app.mobile .board-col { width: 82vw; }
.app.mobile .up-sticky { top: 0; }
.app.mobile .tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; height: calc(54px + env(safe-area-inset-bottom));
  padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  border-top: 1px solid var(--divider); background: var(--bg);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .app.mobile .tabbar { background: color-mix(in srgb, var(--bg) 85%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--text-2); font-size: 10px; font-weight: 600; text-decoration: none; }
.tab .icon { width: 25px; height: 25px; }
.tab.active { color: var(--accent); }
.app.mobile .fab {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 31;
  display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border: 0; border-radius: 50%;
  background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); cursor: pointer;
}
.app.mobile .fab .icon { width: 28px; height: 28px; stroke-width: 2.3; }
.app.mobile .fab.hidden { display: none; }
.app.mobile .main { transition: transform 0.2s; }

@media (max-width: 767px) {
  .toast { left: 12px; right: 12px; max-width: none; bottom: calc(78px + env(safe-area-inset-bottom)); }
  .detail { max-height: none; flex: 1; }
  .detail-body { flex-direction: column; }
  .detail-main { padding: 8px 16px 40px; overflow: visible; }
  .detail-side:not(.inline) { display: none; }
  .detail-side.inline { display: block; width: auto; margin: 10px 0 4px; padding: 0; background: none; border-radius: 0; border-top: 1px solid var(--divider); }
  .detail-side.inline .side-row { display: flex; align-items: center; gap: 12px; padding: 2px 0; }
  .detail-side.inline .side-label { width: 76px; flex: none; margin: 0; }
  .detail-side.inline .side-value { width: auto; flex: 1; margin: 0; padding: 8px 6px; font-size: 15px; }
  .detail-side.inline .side-static { flex: 1; padding: 8px 6px; font-size: 15px; }
  .detail-title { font-size: 20px; }
  .detail-desc, .comment-input { font-size: 16px; }
  .detail-head { padding: 0 8px 8px 12px; border-bottom: 0; }
  .sheet .detail { overflow-y: auto; }
  .te-input, .te-highlight { font-size: 17px; line-height: 24px; }
  .te-desc { font-size: 15px; line-height: 20px; }
  .te-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -12px; padding-right: 12px; }
  .te-chips::-webkit-scrollbar { display: none; }
  .te-chip { flex: none; }
  .te-chip-main { padding: 6px 10px; font-size: 14px; }
  .input, .search-input, .picker-search { font-size: 16px; }
  .dialog { padding: 4px 16px 16px; }
  .settings { max-height: none; }
  .modal-wrap { padding: 0; }
  .view-options { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ===== Clients & sites manager ===== */
.client-card { margin-bottom: 14px; padding: 4px 12px 8px; border: 1px solid var(--divider); border-radius: 10px; background: var(--bg); }
.client-head { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.client-head > .icon { width: 22px; height: 22px; flex: none; }
.client-title { min-width: 0; }
.client-name { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.client-meta { font-size: 12px; color: var(--text-3); }
.client-projects { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 8px; }
.client-projects .chip-link.archived { opacity: 0.6; }
.site-list { border-top: 1px solid var(--divider); }
.site-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--divider); }
.site-row > .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--text-2); }
.site-text { min-width: 0; }
.site-name { font-size: 14px; font-weight: 600; }
.site-addr { font-size: 13px; color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; }
.site-row .icon-btn { width: 30px; height: 30px; flex: none; }

/* Project dialog client picker */
.client-btn { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; cursor: pointer; }
.client-btn .icon { width: 16px; height: 16px; flex: none; }
.client-btn .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.color-select select:disabled { opacity: 0.6; }

/* Project header: client chip, archived banner, info panel */
.proj-client { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); text-decoration: none; }
.proj-client:hover { color: var(--text); }
.archived-banner { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; background: var(--hover); color: var(--text-2); font-size: 13px; }
.archived-banner .icon { width: 18px; height: 18px; flex: none; }
.archived-row .muted { font-size: 12px; }
.archived-row .btn { flex: none; }
.pi-title { color: var(--text); font-weight: 600; cursor: default; }
.pi-title:hover { background: none; }
.badge { padding: 1px 6px; border-radius: 4px; background: var(--hover); color: var(--text-2); font-size: 11px; font-weight: 600; }
.pi-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.pi-client { background: none; cursor: pointer; font: inherit; font-size: 13px; }
.pi-client:hover { background: var(--hover); }

/* Lightbox actions + photo markup editor (markup.js) */
.lightbox { flex-direction: column; }
.lightbox-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); }
.lightbox-act { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 14px; font-weight: 600; }
.lightbox-act:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox-act .icon { width: 18px; height: 18px; }
.att-badge { position: absolute; right: 4px; top: 4px; display: flex; padding: 3px; border-radius: 6px; background: rgba(0, 0, 0, 0.6); color: #fff; }
.att-badge .icon { width: 13px; height: 13px; }
.markup { position: fixed; inset: 0; z-index: 1150; display: flex; flex-direction: column; background: #111; color: #fff; overscroll-behavior: contain; user-select: none; -webkit-user-select: none; }
.mk-top { display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; }
.mk-title { flex: 1; text-align: center; font-weight: 700; }
.mk-cancel { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: transparent; }
.mk-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mk-canvas { display: block; touch-action: none; cursor: crosshair; box-shadow: 0 2px 16px rgba(0, 0, 0, 0.5); }
.mk-text { position: absolute; z-index: 2; min-width: 60px; margin: 0; padding: 0 2px; border: 1px dashed rgba(255, 255, 255, 0.8); border-radius: 3px; background: rgba(0, 0, 0, 0.25); font-weight: 600; line-height: 1.2; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; resize: none; overflow: hidden; outline: none; user-select: text; -webkit-user-select: text; }
.mk-bar { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 8px calc(10px + env(safe-area-inset-bottom)); background: #1b1b1b; }
.mk-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; max-width: 100%; }
.mk-sep { width: 1px; height: 22px; margin: 0 4px; background: rgba(255, 255, 255, 0.2); }
.mk-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: #ddd; }
.mk-btn .icon { width: 22px; height: 22px; }
.mk-btn.on { background: var(--accent); color: #fff; }
.mk-btn:disabled { opacity: 0.35; }
.mk-color { width: 28px; height: 28px; margin: 4px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); }
.mk-color.on { outline: 2px solid #fff; outline-offset: 2px; border-color: #111; }
.mk-size { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; }
.mk-size.on { background: rgba(255, 255, 255, 0.18); }
.mk-dot { display: block; border-radius: 50%; background: #fff; }
.mk-confirm { position: absolute; left: 50%; top: calc(56px + env(safe-area-inset-top)); z-index: 3; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; width: min(92vw, 340px); padding: 14px 16px; border-radius: 12px; background: #2a2a2a; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6); }
.mk-confirm .row-gap { justify-content: flex-end; }
.mk-btn, .mk-size { border: 0; background: none; padding: 0; }
.mk-color { padding: 0; }
.mk-row { flex-wrap: nowrap; gap: 2px; }
@media (max-width: 420px) {
  .mk-btn { width: 36px; height: 36px; }
  .mk-btn .icon { width: 20px; height: 20px; }
  .mk-color { width: 24px; height: 24px; margin: 3px; }
  .mk-size { width: 30px; height: 30px; }
  .mk-sep { margin: 0 2px; }
}

/* Drag & drop attachments (fileDropTarget in files.js) */
.drop-target { position: relative; }
.drop-over::after { content: attr(data-drop-label); position: absolute; inset: 6px; z-index: 20; display: flex; align-items: center; justify-content: center; border: 2px dashed var(--accent); border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, var(--bg) 86%); color: var(--text); font-weight: 700; font-size: 17px; pointer-events: none; }

/* Addresses open in Apple Maps (mapsLink in util.js) */
a.addr-link { display: block; color: var(--accent); text-decoration: none; cursor: pointer; }
a.addr-link:hover { text-decoration: underline; }
.addr-ic { width: 13px; height: 13px; margin-left: 4px; vertical-align: -1px; }
