:root {
  color-scheme: light;
  --paper: #f6f4ed;
  --white: #fffcf6;
  --ink: #1e2b25;
  --muted: #5f6c62;
  --line: #dadfd3;
  --accent: #a0442c;
  --brand: #233a2e;
  --brand-hover: #344f40;
  --brand-ink: #31513e;
  --brand-soft: #e5eddf;
  --brand-line: #abbdaa;
  --on-brand: #fff9ee;
  --rail: #efeee4;
  --radius: 12px;
  --status-tone: #637184;
  --shadow-card: 0 1px 2px #1426380b;
  --shadow-layer: 0 12px 32px #14263820, 0 2px 6px #14263812;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
:root[lang="zh-Hant"] { font-family: "Avenir Next", "PingFang TC", "Microsoft JhengHei", sans-serif; }

[data-theme="arcview"] {
  --paper: #f5f7fb;
  --white: #fff;
  --ink: #182c40;
  --muted: #4d6376;
  --line: #d8e2ec;
  --brand: #14689f;
  --brand-hover: #144f7b;
  --brand-ink: #155582;
  --brand-soft: #e6f0fa;
  --brand-line: #a6bfd6;
  --on-brand: #fff;
  --rail: #edf2f7;
}
@supports (color: oklch(52% .143 249)) {
  [data-theme="arcview"] { --brand: oklch(52% .143 249); }
}
[data-theme="sdlg"] {
  --paper: #faf8f2;
  --white: #fffefa;
  --ink: #302817;
  --muted: #655a44;
  --line: #e6dec9;
  --brand: #f7c520;
  --brand-hover: #e6b40f;
  --brand-ink: #684b00;
  --brand-soft: #fff1bf;
  --brand-line: #c4a04b;
  --on-brand: #2b240e;
  --rail: #f5efdd;
}
[data-theme="powersports"] {
  --paper: #faf6f6;
  --white: #fff;
  --ink: #322326;
  --muted: #6c565a;
  --line: #e7dadd;
  --brand: #b22638;
  --brand-hover: #921b2a;
  --brand-ink: #982437;
  --brand-soft: #fbe9ec;
  --brand-line: #d4a3ac;
  --on-brand: #fff;
  --rail: #f3e9eb;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; min-height: 100vh; color: var(--ink); background: var(--paper); font-size: 13px; line-height: 1.45; touch-action: pan-x pan-y; overscroll-behavior-x: none; }
button, select, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.masthead {
  position: relative;
  background: var(--white);
  border-top: 2px solid var(--brand);
  border-bottom: 1px solid var(--line);
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
}
.wordmark {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 700;
  font-size: 14px;
}
.wordmark > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.personal-work-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding-inline: 11px;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  color: var(--brand-ink);
  background: var(--brand-soft);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.personal-work-link:hover { border-color: var(--brand-ink); }
.personal-work-icon {
  position: relative;
  width: 12px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}
.personal-work-icon::after {
  content: "";
  position: absolute;
  inset: 3px 2px;
  border-block: 1px solid currentColor;
}
.mark {
  display: grid;
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  align-items: start;
  padding: 5px;
  border-radius: 7px;
  color: var(--on-brand);
  background: var(--brand);
}
.mark::before, .mark::after {
  content: "";
  width: 100%;
  height: 100%;
  border-radius: 1px;
  background: currentColor;
}
.mark::after { height: 68%; box-shadow: 5px 0 0 currentColor; }

.mode { font-size: 11px; color: var(--muted); white-space: nowrap; }
.session, .board-switcher { position: relative; }
.session { margin-left: auto; min-width: 0; max-width: min(25vw, 220px); }
.session > summary, .board-switcher > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  min-height: 44px;
  cursor: pointer;
}
.session > summary::-webkit-details-marker, .board-switcher > summary::-webkit-details-marker { display: none; }
.session > summary::after, .board-switcher > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  margin: -4px 3px 0 0;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.session > summary { padding: 0 9px; border-radius: 8px; }
.session > summary:hover, .session[open] > summary { background: var(--rail); }
.session-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-panel {
  position: absolute;
  z-index: 6;
  top: calc(100% + 4px);
  left: 0;
  display: grid;
  width: min(220px, calc(100vw - 28px));
  gap: 3px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-layer);
}
details:not([open]) > .menu-panel { display: none; }
.session-panel { left: auto; right: 0; width: min(210px, calc(100vw - 26px)); }
.menu-action { display: block; width: 100%; min-height: 44px; border: 0; border-radius: 7px; text-align: left; padding: 8px 10px; background: transparent; cursor: pointer; }
.menu-action:hover { background: var(--brand-soft); }
.board-switcher { display: none; }

.layout {
  display: grid;
  grid-template-columns: 182px minmax(0, 1fr);
  min-height: calc(100vh - 58px);
}
.navigation { border-right: 1px solid var(--line); padding: 22px 12px; background: var(--white); }
.layout.single-board { grid-template-columns: minmax(0, 1fr); }
.nav-heading { display: flex; align-items: center; justify-content: space-between; color: var(--muted); padding: 0 9px 9px; font-size: 12px; font-weight: 650; }
#board-count { min-width: 20px; text-align: center; border-radius: 6px; background: var(--rail); font-variant-numeric: tabular-nums; }
.board-links { display: grid; gap: 4px; }
.board-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 9px;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 550;
  text-decoration: none;
}
.board-link[aria-current="page"] { border-color: var(--line); background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
.board-link:hover { background: var(--brand-soft); }
.board-dot { flex: 0 0 8px; height: 8px; border-radius: 50%; background: #14689f; }
[data-board="sdlg"] .board-dot { background: #e6b40f; }
[data-board="powersports"] .board-dot { background: #b22638; }
[data-board="accounting"] .board-dot { background: #496876; }

.workspace { padding: clamp(18px, 2vw, 32px); min-width: 0; }
.workspace, #board-content, #active-content { display: flex; flex-direction: column; }
#board-content, #active-content, .columns { flex: 1; }
.board-header { display: flex; justify-content: space-between; align-items: end; gap: 10px 16px; padding-bottom: 16px; }
.board-heading, .board-meta { min-width: 0; }
.board-context { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; margin-top: 5px; color: var(--muted); font-size: 12px; }
.domain { color: var(--muted); font-weight: 550; }
#board-date { font-variant-numeric: tabular-nums; white-space: nowrap; }
#board-date::before { content: "·"; margin-inline-end: 8px; }
h1 { line-height: 1.12; font-size: clamp(24px, 2.5vw, 35px); letter-spacing: -.035em; font-weight: 700; overflow-wrap: anywhere; }
.board-meta, .board-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.board-tools .subtle, #add-task { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; }
.plus-icon, .search-icon { position: relative; display: inline-block; flex: 0 0 14px; width: 14px; height: 14px; }
.plus-icon::before, .plus-icon::after { content: ""; position: absolute; inset: 6px 1px auto; height: 2px; border-radius: 2px; background: currentColor; }
.plus-icon::after { transform: rotate(90deg); }
.search-icon::before { content: ""; position: absolute; top: 0; left: 0; width: 8px; height: 8px; border: 1.5px solid currentColor; border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; top: 10px; left: 9px; width: 5px; height: 1.5px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.filters { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; margin: 12px 0; }
.filters label { display: grid; gap: 4px; color: var(--muted); }
.filters select {
  background-color: var(--white);
  color: var(--ink);
  border: 1px solid var(--brand-line);
  border-radius: 7px;
  min-height: 34px;
  min-width: 114px;
  max-width: 100%;
  padding: 6px 9px;
}
.board-toolbar, .period-tools, .week-nav, .board-filter, .category-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
}
.view-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 0 14px;
  padding: 10px 12px 7px;
  box-shadow: var(--shadow-card);
}
.due-reminders {
  margin: 0 0 10px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.due-reminders summary { min-height: 44px; padding: 11px 12px; font-weight: 700; cursor: pointer; }
.due-reminders ul { list-style: none; margin: 0; padding: 0 12px 6px; max-height: min(36vh, 320px); overflow: auto; }
.due-reminders li { display: flex; gap: 10px; align-items: center; justify-content: space-between; border-top: 1px solid var(--brand-line); }
.due-reminder-task { min-height: 44px; min-width: 0; padding: 4px 0; border: 0; background: transparent; color: var(--ink); text-align: start; overflow-wrap: anywhere; cursor: pointer; }
.due-reminder-task:hover { text-decoration: underline; }
.due-date { color: var(--brand-ink); font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.due-date[data-deadline="overdue"] { color: #922b21; }
.due-date[data-deadline="today"] { color: #795318; }
.board-toolbar { justify-content: space-between; }
.period-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-width: 0; }
.board-filter { position: relative; margin-left: auto; color: var(--muted); }
.board-filter::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 11px;
  width: 6px;
  height: 6px;
  border: solid var(--muted);
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
}
.board-filter select {
  appearance: none;
  -webkit-appearance: none;
  width: min(145px, 37vw);
  min-height: 36px;
  padding: 3px 24px 3px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  text-overflow: ellipsis;
}
.task-count { margin-left: auto; padding-inline-start: 4px; color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.segments { display: inline-flex; background: var(--rail); padding: 3px; border-radius: 8px; }
.compact-view {
  display: none;
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 3px 18px 3px 7px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(45deg, transparent 50%, var(--muted) 50%) right 11px center / 4px 4px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) right 7px center / 4px 4px no-repeat var(--white);
  color: var(--ink);
  font-size: 16px;
  text-overflow: ellipsis;
}
.linked-payment-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; }
.linked-payment-toolbar:has(button:not([hidden])) { margin: 0 0 9px; }
#linked-payment-queue[aria-pressed="true"] { color: var(--brand-ink); background: var(--brand-soft); border-color: var(--brand-line); }
.segments button, .week-nav button, .category-chip, .status-tab, .task-control {
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}
.segments button, .week-nav button { min-height: 32px; padding: 3px 10px; white-space: nowrap; }
.segments button[aria-pressed="true"] { background: var(--white); border-color: var(--line); color: var(--brand-ink); font-weight: 700; box-shadow: var(--shadow-card); }
.week-nav { gap: 4px; font-variant-numeric: tabular-nums; }
.week-nav button { background: var(--white); border-color: var(--line); }
#week-range { white-space: nowrap; }
.category-filter { margin-top: 8px; padding-top: 4px; border-top: 1px solid var(--line); flex-wrap: nowrap; }
#category-label { color: var(--muted); white-space: nowrap; }
.category-chips {
  display: flex;
  gap: 5px;
  min-width: 0;
  overflow-x: auto;
  padding: 4px;
  margin-inline: -4px;
  scrollbar-width: thin;
}
.category-chip { padding: 3px 9px; min-height: 30px; border-color: var(--line); background: var(--white); white-space: nowrap; }
.category-chip[data-tone] { color: var(--tag-color); }
.category-chip[data-tone][aria-pressed="true"] { background: var(--tag-bg); }
.category-chip[aria-pressed="true"], .status-tab[aria-pressed="true"] { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
.category-chip[data-tone][aria-pressed="true"] { border-color: var(--tag-color); }
.category-chip:hover, .week-nav button:hover, .status-tab:hover, .task-control:hover { border-color: var(--brand-line); }
#add-category { display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex: 0 0 auto; }
.custom-range { display: flex; flex-wrap: wrap; gap: 5px 9px; align-items: end; margin-top: 7px; }
.custom-range label { display: grid; gap: 3px; min-width: 0; color: var(--muted); }
.custom-range input {
  min-width: 0;
  min-height: 32px;
  padding: 3px 5px;
  border: 1px solid var(--brand-line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.custom-range .muted { align-self: center; }
.range-error { flex-basis: 100%; color: #943b29; }
.status-tabs { display: none; }

.columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.columns[data-linked-queue="true"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.columns[data-linked-queue="true"] .column[data-status="done"],
.viewing-linked-queue #status-tabs [data-drop-status="done"] { display: none; }
.column { min-width: 0; min-height: 190px; background: var(--rail); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 8px 8px; }
.column-title {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 3px 9px;
  border-radius: 10px 10px 0 0;
  background: var(--rail);
  font-size: 13px;
  font-weight: 700;
}
.column-title::before { content: ""; flex: 0 0 7px; height: 7px; border-radius: 50%; background: var(--status-tone); }
[data-status="doing"], [data-drop-status="doing"] { --status-tone: #246e9c; }
[data-status="waiting"], [data-drop-status="waiting"] { --status-tone: #9a5c13; }
[data-status="done"], [data-drop-status="done"] { --status-tone: #427249; }
.column-count {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  min-height: 19px;
  margin-left: auto;
  padding-inline: 4px;
  border-radius: 5px;
  background: var(--white);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.column-empty { padding: 18px 5px; text-align: center; color: var(--muted); }
.week-day { margin: 10px 3px 5px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 650; }
.column-title + .week-day { margin-top: 0; }

.task {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title controls" "meta controls";
  align-items: center;
  gap: 3px 9px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9px;
  min-height: 61px;
  padding: 8px 6px 8px 10px;
  box-shadow: var(--shadow-card);
  overflow-wrap: anywhere;
}
.task + .task { margin-top: 7px; }
.task.is-draggable { cursor: grab; user-select: none; -webkit-touch-callout: none; }
.task.is-draggable:active { cursor: grabbing; }
.task.linked-payment-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "meta"; cursor: pointer; }
.task:hover, .task:focus-within { border-color: var(--brand-line); }
.task-category { color: var(--brand-ink); font-size: 11px; }
.task-meta .task-category { background: var(--tag-bg); color: var(--tag-color); padding: 1px 6px; border-radius: 4px; }
[data-tone="0"] { --tag-bg: #e7eee4; --tag-color: #365d43; }
[data-tone="1"] { --tag-bg: #f2ead9; --tag-color: #795318; }
[data-tone="2"] { --tag-bg: #e6eef2; --tag-color: #3d5f70; }
[data-tone="3"] { --tag-bg: #edeae9; --tag-color: #624d47; }
[data-tone="4"] { --tag-bg: #f3e8e0; --tag-color: #855235; }
.task-title { grid-area: title; font-size: 14px; line-height: 1.35; font-weight: 680; }
.task-open {
  padding: 1px 0;
  border: 0;
  background: transparent;
  font-weight: inherit;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.task-open:hover { color: var(--brand-ink); text-decoration: underline; }
.task-meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; color: var(--muted); font-size: 11px; }
.task-meta time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.task-reference { color: var(--muted); font-family: ui-monospace, monospace; font-size: 10.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.task-control { width: 33px; height: 33px; padding: 0; display: grid; place-items: center; color: var(--brand-ink); font-size: 15px; }
.task-complete { grid-area: controls; align-self: start; position: relative; border: 0; border-radius: 50%; }
.task-complete::before { content: ""; position: absolute; inset: 3px; border: 1px solid var(--line); border-radius: 50%; pointer-events: none; }
.task-complete:hover, .task-complete:active { background: var(--brand-soft); }
.task-complete:hover::before { border-color: var(--brand-line); }
[data-status="done"] .task-open { color: var(--muted); }
.drag-source { opacity: .44; }
.column.drag-target, .status-tab.drag-target { border-color: var(--brand-ink); background: var(--brand-soft); outline: 2px solid var(--brand-ink); outline-offset: -2px; }
.drag-ghost {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 5;
  max-width: min(225px, 65vw);
  padding: 5px 8px;
  border: 1px solid var(--brand-line);
  border-radius: 7px;
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 2px 10px #2035282e;
  overflow-wrap: anywhere;
  pointer-events: none;
}
.overdue { color: var(--accent); font-weight: 650; }
.avatar { flex: 0 0 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%; background: #e4eadd; color: #334b3a; font-weight: 650; }
.feedback { color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 17px; }

.login-panel { max-width: 820px; padding: clamp(24px, 6vw, 64px) clamp(16px, 4vw, 42px); margin: 0 auto; }
.login-panel h1 { margin-bottom: 9px; }
.login-panel .feedback { margin-top: 21px; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.account-form { min-width: 0; }
.account-card {
  display: flex;
  width: 100%;
  min-height: 80px;
  gap: 12px;
  align-items: center;
  border: 1px solid #c7d1c3;
  background: var(--white);
  border-radius: var(--radius);
  text-align: left;
  padding: 11px 12px;
  cursor: pointer;
}
.account-card:hover { border-color: #6b886f; background: #f0f3e9; }
.account-detail { min-width: 0; display: grid; gap: 3px; overflow-wrap: anywhere; }
.account-detail .muted { font-size: 13px; }
.account-arrow { margin-left: auto; color: var(--accent); }

@media (max-width: 920px) {
  .layout { display: block; }
  .navigation { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; }
  .has-mobile-switcher .navigation { display: none; }
  .has-mobile-switcher #board-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .board-switcher { display: inline-block; max-width: 100%; vertical-align: top; }
  .board-switcher > summary { min-height: 40px; font-size: clamp(24px, 6vw, 30px); font-weight: 700; line-height: 1.1; letter-spacing: -.035em; }
  .board-switcher > summary::after { color: var(--brand-ink); margin-left: 3px; }
  .board-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-link { min-height: 44px; }
  .workspace { padding: 11px max(12px, env(safe-area-inset-right)) 24px max(12px, env(safe-area-inset-left)); }
  .masthead { min-height: 52px; gap: 6px; padding: env(safe-area-inset-top) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)); }
  .session { max-width: 32%; }
  .board-header { align-items: center; gap: 8px 10px; padding-bottom: 12px; }
  .board-context { margin-top: 0; }
  .board-meta, .board-tools { gap: 6px; }
  .status-tabs {
    position: sticky;
    top: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 8px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    box-shadow: var(--shadow-card);
  }
  .status-tab {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 44px;
    padding: 2px 1px 4px;
    border-radius: 7px;
    background: var(--white);
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.2;
  }
  .status-tab[aria-pressed="true"] { border-color: transparent; }
  .status-tab[aria-pressed="true"]::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 40%;
    height: 2px;
    border-radius: 2px;
    background: var(--status-tone);
  }
  .status-tab .column-count { margin-left: 0; min-height: 15px; background: transparent; color: var(--status-tone); }
  .status-tab.drag-target { border-color: var(--brand-ink); }
  html[lang="en"] .status-tab { flex-direction: column; gap: 1px; }

  .columns { display: block; }
  .columns > .column { display: none; }
  .columns[data-mobile-status="todo"] > [data-status="todo"],
  .columns[data-mobile-status="doing"] > [data-status="doing"],
  .columns[data-mobile-status="waiting"] > [data-status="waiting"],
  .columns[data-mobile-status="done"] > [data-status="done"] { display: block; }
  .column-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .column { min-height: 90px; padding: 0; background: transparent; border: 0; }
  .column-empty { padding: 22px 12px; border: 1px dashed var(--brand-line); border-radius: var(--radius); background: var(--white); }
  .task { min-height: 62px; padding: 8px 4px 8px 11px; }
  .task + .task { margin-top: 7px; }
  .task-title { font-size: 15px; }
  .task-meta { font-size: 11.5px; }
  .task-control { width: 44px; height: 44px; }
  .task-complete::before { inset: 7px; }
  .category-chip { min-height: 36px; }
}

@media (max-width: 560px) {
  .board-header { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; padding-bottom: 8px; }
  .board-meta { justify-content: space-between; }
  .board-tools { flex-wrap: nowrap; }
  .board-tools .subtle, #add-task { min-height: 44px; }
  #add-task { margin-left: auto; padding-inline: 10px; }
  #board-name { margin: 2px 0 3px; }
  .board-tools .subtle { padding-inline: 8px; text-align: center; }
  .view-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(86px, 31%); gap: 4px 7px; margin-bottom: 8px; padding: 7px 8px 4px; }
  .board-toolbar, .period-tools { display: contents; }
  .period-picker { grid-area: 1 / 1; flex-wrap: nowrap; gap: 5px; }
  .view-panel .segments { display: none; }
  .compact-view { display: block; }
  .personal-work-link { padding-inline: 7px; }
  .personal-work-icon { display: none; }
  .week-nav, .custom-range { grid-area: 3 / 1 / 4 / -1; }
  .board-filter { grid-area: 1 / 2; align-self: center; margin-left: 0; }
  .board-filter select { width: 100%; min-height: 44px; font-size: 16px; }
  .category-filter { grid-area: 2 / 1 / 3 / -1; column-gap: 5px; margin: 0; border-top: 0; padding: 0; }
  .category-chips { flex: 1 1 auto; }
  .category-chip { flex: 0 0 auto; padding-inline: 8px; }
  #category-label, #task-count, .category-add-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #add-category { width: 39px; min-height: 39px; padding: 0; }
}

@media (max-width: 360px) {
  #open-search { min-width: 44px; }
  #open-search span:last-child { display: none; }
  .board-tools, .board-meta { gap: 5px; }
  .board-tools .subtle, #add-task { padding-inline: 7px; }
}


@media (min-width: 561px) and (max-width: 920px) and (max-height: 450px) and (orientation: landscape) {
  .workspace { padding-top: 8px; }
  .board-header { padding-bottom: 8px; }
  .view-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 10px;
    margin-bottom: 8px;
    padding: 5px 8px;
  }
  .board-toolbar, .period-tools { display: contents; }
  .period-picker { grid-area: 1 / 1; flex-wrap: nowrap; }
  .view-panel .segments { display: none; }
  .compact-view { display: block; }
  .board-filter { grid-area: 1 / 3; margin-left: 0; }
  .board-filter select { width: clamp(86px, 15vw, 120px); min-height: 44px; font-size: 16px; }
  .week-nav, .custom-range { grid-area: 2 / 1 / 3 / -1; }
  .category-filter {
    grid-area: 1 / 2;
    gap: 6px;
    margin: 0;
    padding: 0 0 0 8px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .category-chips { flex: 1 1 auto; }
  .category-chip { min-height: 44px; }
  #category-label, #task-count, .category-add-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #add-category { width: 44px; min-height: 44px; padding: 0; }
}

@media (max-width: 490px) {
  .account-grid { grid-template-columns: minmax(0, 1fr); }
  .custom-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .custom-range input { font-size: 16px; width: 100%; min-height: 40px; }
  .custom-range button { justify-self: start; }
  .custom-range .range-error { grid-column: 1 / -1; }
  .filters { gap: 8px; }
  .filters label { flex: 1 1 115px; min-width: 0; }
  .filters select { width: 100%; min-width: 0; }
}

.primary, .subtle {
  min-height: 38px;
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: pointer;
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
#add-task { min-height: 44px; }
.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-weight: 700; }
.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.subtle:hover { background: var(--brand-soft); }
button:disabled { opacity: .55; cursor: default; }
.operation-message { margin: 0 0 14px; padding: 8px 12px; background: #e5eddf; border: 1px solid #b9c9b5; border-radius: 8px; }
.operation-message.error { background: #fbebe4; border-color: #e5bbae; color: #8d3728; }
#operation-message {
  position: fixed;
  z-index: 4;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  max-width: min(360px, calc(100% - 24px));
  margin: 0;
  box-shadow: 0 2px 12px #20352824;
  pointer-events: none;
}
.task-editor {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  width: min(540px, calc(100% - 24px));
  box-shadow: var(--shadow-layer);
  max-height: calc(100% - 24px);
  padding: clamp(14px, 4vw, 24px);
}
.task-editor::backdrop { background: #14263880; }
#task-editor { padding: 0; }
#task-editor[open] { display: flex; flex-direction: column; overflow: hidden; }
#task-editor > .editor-heading, #task-editor > .editor-actions { flex: 0 0 auto; padding: 10px 16px; margin: 0; }
#task-editor > .editor-heading { border-bottom: 1px solid var(--line); padding-block: 12px; }
#task-editor > .editor-actions { border-top: 1px solid var(--line); background: var(--white); }
#task-editor > .editor-actions button { min-height: 44px; min-width: 72px; }
.editor-body { min-height: 0; min-width: 0; overflow: auto; overscroll-behavior: contain; padding: 14px 16px 16px; }
.category-editor { width: min(368px, calc(100% - 24px)); }
.confirm-editor { width: min(380px, calc(100% - 24px)); }
.confirm-editor h2 { font-size: 19px; }
.confirm-task-title { font-weight: 650; margin: 9px 0 4px; overflow-wrap: anywhere; }
.confirm-editor button { min-height: 44px; }
.draft-conflict { margin: 0 0 12px; padding: 10px; border: 1px solid var(--brand-line); border-radius: 8px; background: var(--paper); }
.draft-conflict h3 { font-size: 15px; }
.draft-conflict ul { margin: 8px 0; padding-inline-start: 19px; }
.draft-conflict li { margin-block: 4px; overflow-wrap: anywhere; }
.draft-conflict li span { display: block; white-space: pre-wrap; }
.draft-conflict-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.draft-conflict-actions button { min-height: 44px; }
#manual-task-link { margin-bottom: 12px; }
#draft-confirm .muted { margin-top: 7px; }
#draft-confirm .editor-actions { flex-wrap: wrap; gap: 6px; }
#draft-confirm .editor-actions button { padding-inline: 8px; }
#reset-result { display: grid; gap: 6px; }
.search-editor { width: min(760px, calc(100% - 24px)); height: min(690px, calc(100% - 24px)); }
.search-editor[open] { display: flex; flex-direction: column; overflow: hidden; }
.search-editor .editor-heading, .search-form, .search-summary, .search-pages { flex: 0 0 auto; }
.search-form { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.search-form .search-icon { position: absolute; inset: 20px auto auto 13px; color: var(--muted); pointer-events: none; }
.search-form input[type="search"] { height: 54px; font-size: 16px; padding-inline: 36px 10px; }
.search-form button { min-width: 68px; font-size: 15px; }
.search-summary { margin: 11px 0 3px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.search-results { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; list-style: none; margin: 0 -5px; padding: 0 5px; }
.search-results li + li { border-top: 1px solid var(--line); }
.search-result { display: grid; gap: 3px; padding: 12px 8px; border-radius: 7px; text-decoration: none; overflow-wrap: anywhere; }
.search-result:hover, .search-result:focus-visible { background: var(--brand-soft); }
.result-title { font-size: 15px; font-weight: 700; }
.result-meta, .result-description { color: var(--muted); }
.result-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.search-pages { display: flex; justify-content: end; align-items: center; gap: 8px; margin-top: 9px; }
.search-pages button, #close-search, #close-editor { min-height: 44px; }
#category-error { margin: 7px 0 0; }
.editor-heading, .editor-actions { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.editor-heading { margin-bottom: 14px; }
.editor-heading h2 { font-size: 20px; line-height: 1.22; }
.editor-heading-actions { display: flex; align-items: center; gap: 6px; }
.editor-heading-actions button { min-height: 44px; }
#open-task-notes { color: var(--brand-ink); background: var(--brand-soft); border-color: var(--brand-line); }
#editor-heading:focus { outline: none; }
.editor-actions { justify-content: end; margin-top: 16px; }
.task-editor label { display: grid; gap: 5px; min-width: 0; color: var(--ink); font-weight: 600; }
.task-editor input, .task-editor select, .task-editor textarea {
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}
.task-editor input::placeholder, #task-description::placeholder { color: var(--muted); opacity: .92; }
.task-editor textarea { resize: vertical; min-height: 88px; }
#task-editor textarea { min-height: 64px; }
#task-editor .editor-fields { align-items: start; }
.editor-select, .date-control { position: relative; display: block; min-width: 0; }
.editor-select select, #task-editor input[type="date"] { display: block; min-height: 0; height: 42px; }
.editor-select select { appearance: none; -webkit-appearance: none; padding-inline-end: 25px; text-overflow: ellipsis; }
.editor-select::after, .date-control::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 6px;
  height: 6px;
  border: solid var(--muted);
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
}
.date-control {
  min-height: 42px;
  padding: 10px 22px 8px 8px;
  border: 1px solid var(--brand-line);
  border-radius: 7px;
  background: var(--white);
  line-height: 1.45;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.date-control { font-weight: 400; }
.date-control:focus-within { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
#task-editor input[type="date"] { position: absolute; inset: 0; max-width: 100%; opacity: 0; cursor: pointer; }
.text-action { align-self: end; justify-self: start; color: var(--brand-ink); background: transparent; border: 0; min-height: 30px; padding: 3px 0; text-decoration: underline; cursor: pointer; }
#task-description-field { margin-top: 10px; }
.quick-category { margin-top: 10px; }
.task-optional-fields { margin-top: 12px; }
.task-optional-fields > summary { min-height: 44px; padding: 9px; border-radius: 8px; background: var(--paper); cursor: pointer; }
#task-quick-defaults { display: block; margin-top: 2px; font-size: 12px; overflow-wrap: anywhere; }
#task-carry-note { margin-top: 8px; }
#follow-up-hint { margin-top: 5px; }
.editor-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
#editor-error { min-width: 0; flex: 1 1 auto; margin: 0; overflow-wrap: anywhere; }
.task-photos { margin: 12px 0 0; padding: 5px 0 0; border: 0; min-width: 0; }
:is(.task-collaboration, .task-options) { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
:is(.task-collaboration, .task-options) summary { min-height: 44px; padding: 11px 10px; cursor: pointer; }
#collaborator-summary, #extra-category-summary { margin-inline-start: 4px; font-size: 12px; }
.collaborator-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(118px, 100%), 1fr)); gap: 4px 8px; padding: 0 9px 8px; }
.task-editor .collaborator-choice { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 4px; overflow-wrap: anywhere; }
.task-editor .collaborator-choice input { flex: 0 0 18px; width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--brand-ink); }
.task-photos legend { padding: 0; }
.task-photos legend .muted { margin-inline-start: 5px; font-size: 12px; }
.photo-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.photo-actions button { min-height: 42px; }
.photo-list { display: flex; flex-wrap: wrap; gap: 7px; }
.photo-list:not(:empty) { margin: 0 0 8px; }
.photo-tile { display: grid; gap: 3px; width: 62px; }
.photo-preview { width: 62px; height: 62px; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); cursor: pointer; }
.photo-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-tile .text-action { justify-self: center; font-size: 12px; }
#photo-error { margin: 6px 0 0; }
.photo-viewer { width: min(640px, calc(100% - 24px)); }
.photo-stage {
  display: grid;
  place-items: center;
  min-height: 100px;
  margin-top: 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.photo-viewer img { display: block; max-width: 100%; max-height: 57vh; object-fit: contain; }
#photo-viewer-message { margin: 8px 0 0; }
#photo-change-preview { display: block; max-width: 100%; max-height: 33vh; margin: 12px auto; border-radius: 8px; object-fit: contain; }
#photo-viewer-actions { flex-wrap: wrap; justify-content: space-between; }
#photo-viewer-actions button { min-height: 44px; }
@media (max-width: 560px) {
  #photo-viewer-actions button { flex: 1 1 auto; }
}
#photo-manage-hint { margin: 0 0 8px; font-size: 12px; }
.history-description .photo-list { margin: 8px 0 0; }
.activity { border-top: 1px solid var(--line); margin-top: 17px; }
.activity summary { cursor: pointer; padding: 10px 0; min-height: 44px; }
.activity ul { margin: 0 0 5px; padding: 0; list-style: none; }
.activity li { border-top: 1px solid var(--line); padding: 7px 0; font-size: 15px; overflow-wrap: anywhere; }
.activity li time { margin-left: 6px; color: var(--muted); }

#board-view-link, #trash-link { justify-content: center; text-decoration: none; }
#trash-task { margin-inline-end: auto; }
.task-danger { color: #a32929; border-color: #e5b9b9; }
.task-danger:hover, .task-danger:focus-visible { background: #fceeee; }
#trash-confirm .editor-actions { flex-wrap: wrap; }
#trash-confirm-task { overflow-wrap: anywhere; }
.trash-task-info { min-width: 0; overflow-wrap: anywhere; }
.trash-item-meta { color: var(--muted); font-size: 13px; margin: 3px 0 0; }
.trash-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.trash-actions button { min-height: 44px; }
#linked-payment a { text-decoration: none; }
#linked-payment-title, .linked-payment-description { overflow-wrap: anywhere; }
.linked-payment-source { margin-block: 10px; }
.linked-payment-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 0; }
.linked-payment-fields dt { color: var(--muted); font-size: 12px; }
.linked-payment-fields dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.linked-payment-description { white-space: pre-wrap; margin: 14px 0 0; }
.history-custom { display: flex; flex-wrap: wrap; gap: 8px 16px; min-width: 0; }
.history-custom input {
  min-height: 44px;
  min-width: 0;
  max-width: 100%;
  padding: 6px 8px;
  font: inherit;
  color: var(--ink);
  border: 1px solid var(--brand-line);
  border-radius: 7px;
  background: var(--white);
}
.history-filters { padding: 12px; margin: 0 0 13px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-card); }
.history-filters :is(select, input, button) { min-height: 40px; }
.history-summary { margin-bottom: 8px; color: var(--muted); font-variant-numeric: tabular-nums; }
.history-items { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.history-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  overflow-wrap: anywhere;
}
.history-item .task-title { margin-bottom: 5px; }
.history-people, .history-completion { color: var(--muted); font-size: 13px; }
.history-description { margin-top: 5px; }
.history-description summary { cursor: pointer; color: var(--brand-ink); }
.history-description p { white-space: pre-wrap; margin: 3px 0; }
.history-completion { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 490px) {
  .history-completion { display: flex; flex: 1 1 100%; flex-wrap: wrap; gap: 2px 9px; padding-top: 6px; border-top: 1px solid var(--line); text-align: left; }
  .history-filters :is(select, input) { font-size: 16px; }
  .history-custom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 1 1 100%; gap: 8px; }
  .history-custom input { width: 100%; }
  #task-editor { width: calc(100% - 16px); max-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - env(safe-area-inset-bottom)); }
  #task-editor .editor-fields { gap: 9px; }
  #task-editor > .editor-heading, #task-editor > .editor-actions { padding: 9px 13px; }
  #task-editor > .editor-actions { flex-wrap: wrap; gap: 6px; }
  #task-editor > .editor-actions button { min-width: 0; padding-inline: 8px; }
  #task-editor > .editor-actions #save-task { min-width: 62px; }
  #editor-error { flex-basis: 100%; }
  .editor-body { padding: 11px 13px 13px; }
  .search-editor {
    width: calc(100% - 12px);
    max-width: none;
    height: calc(100% - 12px);
    height: calc(var(--search-height, 100dvh) - 12px);
    max-height: calc(100% - 12px);
    inset-block: 0 auto;
    margin-block: 6px auto;
    padding: 13px 12px;
  }
}

.email-panel { max-width: 540px; }
.sign-in-panel {
  width: min(420px, calc(100% - 32px));
  margin: clamp(40px, 11vh, 108px) auto 28px;
  padding: clamp(18px, 5vw, 30px);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
  box-shadow: var(--shadow-layer);
}
.sign-in-panel h1 { font-size: clamp(24px, 4vw, 30px); }
.sign-in-panel .email-form { margin-top: 16px; gap: 7px; }
.sign-in-panel .email-form label:not(:first-child) { margin-top: 3px; }
.sign-in-panel .email-form .primary { margin-top: 5px; min-height: 46px; }
.login-actions { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 14px; border-top: 1px solid var(--line); }
.activation-mode { min-height: 44px; padding: 0; border: 0; color: var(--brand-ink); background: transparent; cursor: pointer; font-weight: 650; }
.activation-mode:hover { text-decoration: underline; }
#reset-hint { margin: 0 0 3px; }
@media (max-width: 560px) {
  .sign-in-panel { margin-top: clamp(24px, 6vh, 46px); box-shadow: var(--shadow-card); }
}
.email-form { display: grid; gap: 9px; margin-top: 19px; }
.email-form label { font-weight: 650; }
.email-form input {
  min-width: 0;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: var(--white);
  font-size: 16px;
}
.email-form button { min-height: 44px; justify-self: start; }
.email-panel .email-form .primary { justify-self: stretch; }
.email-form button:disabled { cursor: default; opacity: .65; }
#login-status { margin: 10px 0 0; }
#account-form { margin-top: 0; }
#account-form .editor-actions { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.account-original {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 13px;
  padding: 10px 12px;
  margin: 0 0 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.account-original dt { color: var(--muted); }
.account-original dd { margin: 0; overflow-wrap: anywhere; font-weight: 650; }
.account-fields { display: grid; gap: 5px; min-width: 0; padding: 5px 0 2px; border: 0; margin: 0; }
.account-fields legend { padding: 0; margin-bottom: 3px; color: var(--brand-ink); font-weight: 700; }
.account-fields input + label { margin-top: 4px; }

.language-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 7px;
  min-height: 36px;
  margin-left: auto;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  white-space: nowrap;
}
.language-control:hover { border-color: var(--brand-line); background: var(--rail); }
.language-control:focus-within { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.language-control::after {
  content: "";
  flex: 0 0 5px;
  height: 5px;
  margin: -3px 1px 0 0;
  border: solid var(--muted);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.language-icon {
  position: relative;
  flex: 0 0 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  color: var(--brand-ink);
}
.language-icon::before {
  content: "";
  position: absolute;
  inset: -1px 2px;
  border-inline: 1px solid currentColor;
  border-radius: 50%;
}
.language-icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px solid currentColor;
}
.language-name { font-weight: 600; }
.language-control select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 16px;
}
.session:not([hidden]) ~ .language-control { margin-left: 0; }

@media (max-width: 560px) {
  .language-control { min-height: 44px; min-width: 100px; gap: 5px; padding-inline: 7px; }
  .masthead .mode { display: none; }
  .session { position: static; }
  .session-panel { right: max(12px, env(safe-area-inset-right)); }
  .wordmark { flex-shrink: 0; max-width: calc(100% - 112px); gap: 6px; font-size: 13px; }
  .session > summary { gap: 5px; padding-inline: 4px; }
}
