:root {
  color-scheme: light;
  --ink: #17202b;
  --ink-soft: #3f4a56;
  --muted: #66717e;
  --faint: #98a2ae;
  --bg: #f5f7fa;
  --surface: #fefefe;
  --surface-2: #eef3f7;
  --surface-3: #e8eef4;
  --line: #dce3eb;
  --line-strong: #c7d1dc;
  --charcoal: #121a23;
  --charcoal-2: #18222d;
  --blue: #2168c9;
  --blue-hover: #115cc7;
  --blue-soft: #e8f1ff;
  --teal: #13806d;
  --teal-soft: #e1f4ef;
  --saffron: #b7791f;
  --saffron-soft: #fff2d9;
  --tomato: #bd433b;
  --tomato-soft: #ffe8e5;
  --violet: #6454bb;
  --violet-soft: #eeeaff;
  --radius: 8px;
  --radius-sm: 6px;
  --control-radius: 12px;
  --control-min-height: 42px;
  --control-border: 1.5px solid var(--line-strong);
  --shadow: 0 14px 34px rgba(18, 26, 35, 0.10);
  --shadow-tight: 0 1px 2px rgba(18, 26, 35, 0.06), 0 1px 8px rgba(18, 26, 35, 0.04);
  --control-bg-top: #fcfdfe;
  --control-bg-bottom: #f7f9fc;
  --control-bg-hover: #ffffff;
  --control-border-hover: #9eacbb;
  --hover-surface: #f8fafc;
  --header-bg: rgba(245, 247, 250, 0.96);
  --header-border: rgba(220, 227, 235, 0.72);
  --panel-soft: #f8fafc;
  --glass-panel: rgba(255, 255, 255, 0.9);
  --workspace-overlay-top: rgba(245, 247, 250, 0.94);
  --workspace-overlay-bottom: rgba(245, 247, 250, 0.9);
  --workspace-overlay-custom-top: rgba(245, 247, 250, 0.82);
  --workspace-overlay-custom-bottom: rgba(245, 247, 250, 0.72);
  --dropdown-bg: rgba(255, 255, 255, 0.98);
  --dropdown-hover: #f2f6fb;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

body.theme-slate {
  --charcoal: #121a23;
  --charcoal-2: #18222d;
  --blue: #2168c9;
  --blue-hover: #115cc7;
  --bg: #f5f7fa;
}

body.theme-emerald {
  --charcoal: #10201c;
  --charcoal-2: #152b25;
  --blue: #13806d;
  --blue-hover: #0d6d5d;
  --bg: #f3f8f6;
}

body.theme-amber {
  --charcoal: #241b12;
  --charcoal-2: #302417;
  --blue: #b7791f;
  --blue-hover: #9b6417;
  --bg: #faf7f1;
}

body.mode-dark {
  color-scheme: dark;
  --ink: #e8edf3;
  --ink-soft: #c0cad6;
  --muted: #93a0ae;
  --faint: #6b7785;
  --surface: #171d26;
  --surface-2: #1c2430;
  --surface-3: #232d3b;
  --line: #2d3846;
  --line-strong: #3b4858;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
  --shadow-tight: 0 1px 2px rgba(0, 0, 0, 0.32), 0 1px 8px rgba(0, 0, 0, 0.24);
  --teal-soft: #17332c;
  --saffron-soft: #3d3018;
  --tomato-soft: #3d2420;
  --violet-soft: #2a2545;
  --blue-soft: #1a2a42;
  --control-bg-top: #1f2834;
  --control-bg-bottom: #171d26;
  --control-bg-hover: #242e3c;
  --control-border-hover: #566574;
  --hover-surface: #222b38;
  --header-bg: rgba(15, 20, 28, 0.96);
  --header-border: rgba(44, 54, 68, 0.82);
  --panel-soft: #151b24;
  --glass-panel: rgba(23, 29, 38, 0.88);
  --workspace-overlay-top: rgba(15, 20, 28, 0.92);
  --workspace-overlay-bottom: rgba(15, 20, 28, 0.88);
  --workspace-overlay-custom-top: rgba(15, 20, 28, 0.78);
  --workspace-overlay-custom-bottom: rgba(15, 20, 28, 0.68);
  --dropdown-bg: rgba(23, 29, 38, 0.98);
  --dropdown-hover: #273140;
}

body.mode-dark .danger-button:hover {
  background: #4d2f2b;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

html.app-secured,
html.app-secured body {
  -webkit-user-select: none;
  user-select: none;
}

html.app-secured input,
html.app-secured textarea,
html.app-secured select,
html.app-secured [contenteditable="true"],
html.app-secured .task-card,
html.app-secured .list-table,
html.app-secured .daily-item,
html.app-secured .modal-card,
html.app-secured .help-body,
html.app-secured .license-body,
html.app-secured .confirm-body {
  -webkit-user-select: text;
  user-select: text;
}

html.app-secured img {
  -webkit-user-drag: none;
  user-drag: none;
}

body {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.workspace-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: var(--bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  transition: background-image 0.35s ease;
}

.workspace-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--workspace-overlay-top), var(--workspace-overlay-bottom));
  transition: background 0.35s ease;
}

body.has-custom-background .workspace-background::after {
  background:
    linear-gradient(180deg, var(--workspace-overlay-custom-top), var(--workspace-overlay-custom-bottom)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 42%);
  backdrop-filter: blur(1px);
}

body.has-custom-background .workspace {
  background: transparent;
}

body.has-custom-background .settings-panel,
body.has-custom-background .team-panel,
body.has-custom-background .board-wrap,
body.has-custom-background .list-wrap,
body.has-custom-background .daily-wrap,
body.has-custom-background .column,
body.has-custom-background .empty-state {
  background: var(--glass-panel);
  backdrop-filter: blur(8px);
}

button,
input,
select,
textarea {
  font: inherit;
}

input,
select,
textarea {
  font-size: inherit;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]):not(#globalSearch),
select,
textarea {
  min-height: var(--control-min-height);
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 620;
  background: linear-gradient(180deg, var(--control-bg-top) 0%, var(--control-bg-bottom) 100%);
  border: var(--control-border);
  border-radius: var(--control-radius);
  box-shadow: inset 0 1px 2px rgba(18, 26, 35, 0.04);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    transform 0.12s ease;
}

select {
  padding-right: 38px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--control-bg-bottom);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2366717e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]):not(#globalSearch)::placeholder,
textarea::placeholder {
  color: var(--faint);
  font-weight: 560;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]):not(#globalSearch):hover,
textarea:hover {
  border-color: var(--control-border-hover);
  background: var(--control-bg-hover);
  box-shadow:
    inset 0 1px 2px rgba(18, 26, 35, 0.03),
    0 1px 0 rgba(255, 255, 255, 0.72);
}

select:hover {
  border-color: var(--control-border-hover);
  background-color: var(--control-bg-hover);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233f4a56' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  box-shadow:
    inset 0 1px 2px rgba(18, 26, 35, 0.03),
    0 1px 0 rgba(255, 255, 255, 0.72);
}

button {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]):not(#globalSearch):focus-visible,
textarea:focus-visible {
  border-color: var(--blue);
  background: var(--control-bg-hover);
  box-shadow:
    0 0 0 3px rgba(33, 104, 201, 0.16),
    inset 0 1px 2px rgba(18, 26, 35, 0.03);
}

select:focus-visible {
  border-color: var(--blue);
  background-color: var(--control-bg-hover);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232168c9' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  box-shadow:
    0 0 0 3px rgba(33, 104, 201, 0.16),
    inset 0 1px 2px rgba(18, 26, 35, 0.03);
}

select:open {
  border-color: var(--blue);
  background-color: var(--control-bg-hover);
  box-shadow:
    0 0 0 3px rgba(33, 104, 201, 0.16),
    inset 0 1px 2px rgba(18, 26, 35, 0.03);
}

select option {
  min-height: 38px;
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 620;
  background: var(--control-bg-hover);
}

select option:checked {
  color: var(--blue);
  font-weight: 720;
  background: var(--blue-soft);
}

.select-control {
  position: relative;
  width: 100%;
}

.select-control-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.select-control-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: var(--control-min-height);
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 680;
  text-align: left;
  background: linear-gradient(180deg, var(--control-bg-top) 0%, var(--control-bg-bottom) 100%);
  border: var(--control-border);
  border-radius: var(--control-radius);
  box-shadow: inset 0 1px 2px rgba(18, 26, 35, 0.04);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    transform 0.12s ease;
}

.select-control-value {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select-control-chevron {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2366717e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
  transition: transform 0.18s ease;
}

.select-control-trigger:hover {
  border-color: var(--control-border-hover);
  background: var(--control-bg-hover);
  box-shadow:
    inset 0 1px 2px rgba(18, 26, 35, 0.03),
    0 1px 0 rgba(255, 255, 255, 0.72);
}

.select-control-trigger:focus-visible,
.select-control.open .select-control-trigger {
  border-color: var(--blue);
  background: var(--control-bg-hover);
  box-shadow:
    0 0 0 3px rgba(33, 104, 201, 0.16),
    inset 0 1px 2px rgba(18, 26, 35, 0.03);
}

.select-control.open .select-control-chevron {
  transform: rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232168c9' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.select-control-menu {
  position: fixed;
  z-index: 200;
  display: none;
  gap: 4px;
  max-height: min(260px, 42vh);
  padding: 6px;
  overflow: auto;
  pointer-events: none;
  background: var(--dropdown-bg);
  border: var(--control-border);
  border-radius: var(--control-radius);
  box-shadow:
    0 18px 42px rgba(18, 26, 35, 0.16),
    0 4px 12px rgba(18, 26, 35, 0.08);
  backdrop-filter: blur(10px);
}

.select-control.open .select-control-menu,
.select-control-menu.is-open {
  display: grid;
  pointer-events: auto;
}

.select-control-option {
  display: block;
  width: 100%;
  padding: 11px 12px;
  color: var(--ink);
  font-weight: 620;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 9px;
  transition:
    background-color 0.14s ease,
    color 0.14s ease,
    transform 0.12s ease;
}

.select-control-option:hover,
.select-control-option:focus-visible {
  color: var(--ink);
  background: var(--dropdown-hover);
  outline: none;
}

.select-control-option.is-selected {
  color: var(--blue);
  font-weight: 760;
  background: linear-gradient(180deg, #f3f8ff 0%, var(--blue-soft) 100%);
  box-shadow: inset 0 0 0 1px rgba(33, 104, 201, 0.12);
}

.select-control-option:active {
  transform: scale(0.99);
}

svg {
  display: block;
  flex: 0 0 auto;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #b9c4d0;
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: content-box;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  grid-template-rows: 52px minmax(0, 1fr);
  height: 100vh;
  width: 100vw;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}

.topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 14px;
  background: var(--charcoal);
  color: #fbfcfd;
  border-bottom: 1px solid rgba(251, 252, 253, 0.08);
  z-index: 40;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 172px;
  color: inherit;
  text-decoration: none;
}

.brand strong {
  display: block;
  font-size: 14px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0;
}

.brand-x {
  margin: 0 1px;
  color: #f1b32b;
  font-family: "Brush Script MT", "Lucida Handwriting", "Dancing Script", cursive;
  font-size: 1.55em;
  font-weight: 400;
  line-height: 0.82;
  font-style: italic;
  display: inline-block;
  transform: translateY(1px);
}

.brand-pages {
  margin-left: 1px;
  color: rgba(251, 252, 253, 0.92);
  font-size: 0.94em;
  font-weight: 760;
  letter-spacing: 0.01em;
}

.brand strong {
  white-space: nowrap;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 10.5px;
  line-height: 1;
}

.brand-logo {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 1px solid rgba(251, 252, 253, 0.18);
  background: #101820;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.topbar-menu {
  display: inline-grid;
}

.topbar-menu[aria-expanded="false"] {
  color: rgba(251, 252, 253, 0.64);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(430px, 42vw);
  height: 32px;
  padding: 0 11px;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
}

.topbar-search-slot {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
}

.search-box input {
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  color: #fff;
  font-weight: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 13px;
}

.search-box input:hover,
.search-box input:focus,
.search-box input:focus-visible {
  color: #fff;
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: none;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.48);
  font-weight: inherit;
}

.topbar-actions,
.project-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.topbar-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  max-width: 190px;
  padding: 0 10px;
  color: rgba(251, 252, 253, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  font-weight: 680;
  transition:
    transform 0.16s ease,
    background-color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease;
}

.topbar-user:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.topbar-user:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.11);
}

.topbar-user:focus-visible {
  outline: none;
  border-color: rgba(47, 255, 184, 0.55);
  box-shadow: 0 0 0 3px rgba(31, 212, 157, 0.22);
}

.topbar-user span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-button {
  color: rgba(251, 252, 253, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.primary-button,
.ghost-button,
.icon-button,
.sidebar-add,
.side-link,
.view-tab,
.mobile-nav button,
.project-pill,
.danger-button {
  border: 0;
  text-decoration: none;
}

.primary-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-weight: 680;
  font-size: 12.5px;
  line-height: 1;
  white-space: nowrap;
}

.primary-button {
  color: #fbfcfd;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(33, 104, 201, 0.22);
}

.primary-button:hover {
  background: var(--blue-hover);
}

.ghost-button {
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
}

.topbar .ghost-button {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.ghost-button:hover {
  border-color: var(--line-strong);
  background: var(--hover-surface);
}

.topbar .ghost-button:hover {
  background: rgba(255, 255, 255, 0.13);
}

.danger-button {
  color: var(--tomato);
  background: var(--tomato-soft);
}

.danger-button:hover {
  background: #ffd8d3;
}

.danger-button[hidden] {
  display: none;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: inherit;
  background: transparent;
  border-radius: var(--radius-sm);
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.10);
}

.icon-button.topbar-search-toggle {
  display: none;
}

.icon-lines,
.icon-lines::before,
.icon-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 3px;
  content: "";
}

.icon-lines::before {
  transform: translateY(-6px);
}

.icon-lines::after {
  transform: translateY(4px);
}

.sidebar {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 10px;
  color: rgba(255, 255, 255, 0.82);
  background: var(--charcoal-2);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-shell.sidebar-collapsed .sidebar {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
}

.sidebar-scroll {
  min-height: 0;
  overflow: auto;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-section + .sidebar-section {
  margin-top: 20px;
}

.section-label {
  margin: 0 8px 7px;
  color: rgba(255, 255, 255, 0.40);
  font-size: 10.5px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-list,
.sidebar-section {
  display: grid;
  gap: 4px;
}

.project-pill,
.side-link,
.sidebar-add {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  padding: 7px 8px;
  color: rgba(255, 255, 255, 0.70);
  background: transparent;
  border-radius: var(--radius-sm);
  text-align: left;
}

.project-pill:hover,
.side-link:hover,
.sidebar-add:hover {
  color: #fbfcfd;
  background: rgba(255, 255, 255, 0.07);
}

.project-pill.active,
.side-link.active {
  color: #fbfcfd;
  background: var(--blue);
}

.project-swatch {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 3px;
  background: var(--project-color, var(--blue));
}

.project-pill-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 680;
}

.project-pill-count {
  margin-left: auto;
  padding: 1px 7px;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  font: 11px var(--mono);
}

.sidebar-add {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12.5px;
  font-weight: 680;
}

.help-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  color: #fbfcfd;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-sm);
  font-weight: 760;
  font-size: 12.5px;
}

.help-button:hover {
  background: var(--blue);
}

.side-empty {
  padding: 8px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
}

.settings-wrap {
  padding: 12px 20px 18px;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  gap: 12px;
  align-items: start;
}

.settings-col {
  display: grid;
  gap: 12px;
}

.settings-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-tight);
}

.settings-panel-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.settings-panel-head h2 {
  margin: 0;
  font-size: 14px;
}

.settings-panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11.5px;
}

.settings-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.settings-row {
  display: grid;
  gap: 7px;
}

.settings-row label,
.settings-row > span {
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 760;
  letter-spacing: 0.01em;
}

.settings-row input,
.settings-row select {
  width: 100%;
}

.theme-picker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-row .theme-picker-input {
  width: 52px;
  min-width: 52px;
  height: 42px;
  min-height: 42px;
  padding: 4px;
  border-radius: 10px;
}

.theme-picker-preview {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: var(--control-min-height);
  padding: 0 14px;
  background: linear-gradient(180deg, var(--control-bg-top) 0%, var(--control-bg-bottom) 100%);
  border: var(--control-border);
  border-radius: var(--control-radius);
  box-shadow: inset 0 1px 2px rgba(18, 26, 35, 0.04);
}

.theme-picker-preview span {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  background: var(--theme-color);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 32, 0.16);
}

.theme-picker-preview strong {
  color: var(--ink-soft);
  font: 11.5px var(--mono);
  letter-spacing: 0;
}

.background-picker {
  display: grid;
  gap: 10px;
}

.background-preview {
  position: relative;
  min-height: 132px;
  border-radius: 14px;
  border: var(--control-border);
  background:
    linear-gradient(135deg, rgba(23, 105, 224, 0.08), rgba(23, 105, 224, 0.02)),
    repeating-linear-gradient(45deg, rgba(16, 24, 32, 0.04) 0 8px, transparent 8px 16px);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.background-preview.has-image {
  border-color: rgba(23, 105, 224, 0.22);
}

.background-preview span {
  position: absolute;
  inset: auto 12px 12px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.background-meta {
  display: grid;
  gap: 3px;
}

.background-meta strong {
  font-size: 12px;
  font-weight: 760;
  color: var(--ink);
}

.background-meta small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.background-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.background-upload {
  cursor: pointer;
}

.background-actions .ghost-button:disabled {
  opacity: 0.45;
  pointer-events: none;
}

.appearance-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: calc(var(--control-radius) + 2px);
  box-shadow: inset 0 1px 2px rgba(18, 26, 35, 0.04);
}

.appearance-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 12px;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 720;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

.appearance-option:hover {
  color: var(--ink);
  background: var(--hover-surface);
}

.appearance-option.active {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-tight);
}

.appearance-option:active {
  transform: scale(0.985);
}

.appearance-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-stat {
  display: grid;
  gap: 8px;
  padding: 11px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.settings-stat strong {
  font-size: 18px;
}

.settings-stat span {
  color: var(--muted);
  font-size: 11.5px;
}

/* ── Pro Access Panel ─────────────────────────────────── */

.settings-panel-access {
  display: flex;
  flex-direction: column;
}

.settings-panel-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.access-brand-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 760;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.access-brand-inline strong {
  color: var(--blue);
}

.access-pro-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  background: var(--blue);
  color: #fff;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.access-settings-body {
  flex: 1;
}

.access-slots-panel {
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 4px;
}

.access-slots-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.access-slots-label {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 720;
}

.access-slots-count {
  font-size: 12.5px;
  font-weight: 760;
}

.access-slots-count strong {
  color: var(--ink);
}

.access-slots-count span {
  color: var(--muted);
  font-size: 11px;
}

.access-slots-bar {
  height: 5px;
  background: var(--surface-3);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.access-slots-bar span {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: inherit;
  transition: width 0.3s ease;
}

.access-slots-note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.access-pro-active-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--teal);
  font-weight: 720;
}

.access-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.access-step:first-of-type {
  margin-top: 4px;
}

.access-step-num {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  color: #fff;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 760;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.access-step-body h3 {
  margin: 3px 0 5px;
  font-size: 13px;
  font-weight: 760;
}

.access-step-body > p {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.access-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  font-size: 12px;
}

.access-contact div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.access-contact span:first-child {
  flex-shrink: 0;
  color: var(--muted);
}

.access-contact span {
  color: var(--muted);
  font-size: 10.5px;
}

.access-contact strong {
  color: var(--ink);
  font-size: 12px;
}

.access-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.access-mailto {
  text-decoration: none;
}

.access-token-field {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.access-token-field input {
  width: 100%;
}

.access-token-error {
  min-height: 16px;
  color: var(--tomato);
  font-size: 11.5px;
}

/* Access gate modal (from project/member limit) */
.access-gate .modal-header {
  background: var(--charcoal-2);
  color: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
}

.access-gate .modal-header h2 {
  color: #fff;
}

.access-gate .modal-header p {
  color: rgba(255,255,255,0.6);
}

.access-gate .modal-header .modal-close {
  color: rgba(255,255,255,0.7);
}

.access-gate .modal-header .modal-close:hover {
  color: #fff;
}

.access-gate-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 760;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.access-gate-brand strong {
  color: #7fb3ff;
}

.access-gate-body {
  padding: 16px;
  display: grid;
  gap: 0;
}

.local-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c8ffe9;
  font-size: 11.5px;
  font-weight: 760;
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: #1fd49d;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(31, 212, 157, 0.16);
  animation: status-dot-pulse 2.4s ease-in-out infinite;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(47, 255, 184, 0.22);
  opacity: 0.7;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

@keyframes status-dot-pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(31, 212, 157, 0.16);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(31, 212, 157, 0.08);
    transform: scale(1.08);
  }
}

.topbar-user:hover .status-dot,
.topbar-user:focus-visible .status-dot {
  animation: none;
  background: #2dffb8;
  transform: scale(1.22);
  box-shadow: 0 0 0 9px rgba(31, 212, 157, 0.24);
}

.topbar-user:hover .status-dot::after,
.topbar-user:focus-visible .status-dot::after {
  opacity: 1;
  transform: scale(1.08);
}

.topbar-user:active .status-dot {
  transform: scale(1.1);
  box-shadow: 0 0 0 6px rgba(31, 212, 157, 0.2);
}

.local-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.local-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 31px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 720;
}

.local-actions button:hover {
  color: #fbfcfd;
  background: rgba(255, 255, 255, 0.13);
}

.storage-meter {
  height: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.storage-meter span {
  display: block;
  width: 12%;
  height: 100%;
  background: linear-gradient(90deg, #1fd49d, #1769e0);
  border-radius: inherit;
}

.workspace {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}

.project-header {
  position: sticky;
  top: 0;
  z-index: 25;
  padding: 14px 20px 0;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.project-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.breadcrumb {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.4;
}

.breadcrumb .breadcrumb-brand {
  color: var(--ink);
  text-transform: uppercase;
}

.breadcrumb .brand-x {
  margin: 0 1px;
  color: #c99212;
  font-family: "Brush Script MT", "Lucida Handwriting", "Dancing Script", cursive;
  font-size: 1.45em;
  font-weight: 400;
  line-height: 0.9;
  font-style: italic;
  display: inline-block;
  transform: translateY(1px);
  text-transform: none;
  letter-spacing: 0;
}

.breadcrumb .brand-pages {
  margin-left: 1px;
  color: var(--muted);
  font-size: 1em;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.breadcrumb .breadcrumb-sep {
  color: var(--line-strong);
  font-weight: 700;
}

.breadcrumb .breadcrumb-current {
  color: var(--ink-soft);
  font-weight: 800;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: 18px;
  line-height: 1.16;
  font-weight: 760;
  letter-spacing: 0;
}

.project-header p {
  max-width: 760px;
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.4;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(104px, 1fr));
  gap: 7px;
  margin: 10px 0 8px;
}

.metric {
  min-width: 0;
  padding: 9px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-tight);
  cursor: pointer;
  user-select: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.metric:hover {
  transform: translateY(-2px);
  background: var(--control-bg-hover);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.metric:active {
  transform: translateY(0) scale(0.985);
  box-shadow: var(--shadow-tight);
}

.metric:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(33, 104, 201, 0.14);
}

.metric:hover .metric-label,
.metric:focus-visible .metric-label {
  color: var(--ink-soft);
}

.metric:hover .metric-value,
.metric:focus-visible .metric-value {
  color: var(--blue);
}

.metric:hover .metric-label [data-icon],
.metric:focus-visible .metric-label [data-icon] {
  transform: scale(1.08);
  color: var(--blue);
}

.metric-label [data-icon] {
  transition: transform 0.18s ease, color 0.18s ease;
}

.metric:hover .progress-fill,
.metric:focus-visible .progress-fill {
  filter: brightness(1.05);
}

.metric-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 760;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.metric-value {
  margin-top: 5px;
  font-size: 16px;
  font-weight: 760;
  line-height: 1;
}

.metric-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
}

.progress-track {
  height: 6px;
  margin-top: 9px;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: 999px;
}

.progress-fill {
  display: block;
  height: 100%;
  width: var(--value, 0%);
  transition: width 0.28s ease, filter 0.18s ease;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  border-radius: inherit;
}

.view-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}

.view-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 8px 9px;
  color: var(--muted);
  background: transparent;
  border-bottom: 2px solid transparent;
  font-size: 12.5px;
  font-weight: 720;
  white-space: nowrap;
}

.view-tab:hover,
.view-tab.active {
  color: var(--blue);
}

.view-tab.active {
  border-bottom-color: var(--blue);
}

.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
}

.board-wrap {
  --board-height: min(calc(100vh - 52px - 145px), 600px);
  --column-width: 228px;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  height: var(--board-height);
  min-height: 340px;
  padding: 10px 16px 16px;
  overflow-x: auto;
  overflow-y: hidden;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

.board-wrap.single-empty {
  width: 100%;
}

.welcome-workspace {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 24px 16px 32px;
}

.welcome-panel {
  width: min(640px, 100%);
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-tight);
  text-align: left;
}

.welcome-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--blue-soft);
  border-radius: 999px;
}

.welcome-panel h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
}

.welcome-panel > p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.welcome-points {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.welcome-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 650;
}

.welcome-points [data-icon] {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 9px;
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-header.is-empty-workspace .metric-grid,
.project-header.is-empty-workspace .view-tabs {
  display: none;
}

.project-header.is-empty-workspace #editProjectButton {
  display: none;
}

.kanban-column {
  flex: 0 0 var(--column-width);
  width: var(--column-width);
  height: 100%;
  min-height: 0;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.column-head {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 8px 8px 6px;
}

.column-dot {
  width: 8px;
  height: 8px;
  background: var(--status-color, var(--muted));
  border-radius: 50%;
}

.column-title {
  font-size: 10.5px;
  font-weight: 780;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.column-count {
  padding: 1px 6px;
  color: var(--muted);
  background: rgba(16, 24, 32, 0.06);
  border-radius: 999px;
  font: 10px var(--mono);
}

.column-add {
  margin-left: auto;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}

.column-add:hover {
  color: var(--ink);
  background: rgba(16, 24, 32, 0.07);
}

.column-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(var(--board-height) - 38px);
  padding: 0 7px 7px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.kanban-column.drag-over {
  box-shadow: inset 0 0 0 2px rgba(23, 105, 224, 0.45);
}

.task-card {
  position: relative;
  display: grid;
  gap: 5px;
  width: 100%;
  margin-bottom: 6px;
  padding: 8px;
  text-align: left;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid rgba(199, 209, 220, 0.84);
  border-radius: calc(var(--radius) - 1px);
  box-shadow: var(--shadow-tight);
  cursor: grab;
}

.task-card:hover,
.task-card:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.task-card:focus-visible {
  outline: 3px solid rgba(23, 105, 224, 0.22);
  outline-offset: 2px;
}

.task-card.dragging {
  opacity: 0.46;
}

.task-card-quick-move {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}

.task-move-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition:
    background-color 0.14s ease,
    border-color 0.14s ease,
    color 0.14s ease,
    transform 0.12s ease;
}

.task-move-btn span {
  pointer-events: none;
}

.task-move-btn.active {
  color: var(--ink);
  background: color-mix(in srgb, var(--status-color) 14%, var(--surface));
  border-color: color-mix(in srgb, var(--status-color) 42%, var(--line));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--status-color) 18%, transparent);
}

.task-move-btn:active {
  transform: scale(0.97);
}

.task-card .mini-avatar {
  width: 20px;
  height: 20px;
  font-size: 9px;
}

.task-card-top,
.task-card-foot,
.task-meta-row,
.avatar-row,
.chip-row {
  display: flex;
  align-items: center;
}

.task-card-top,
.task-card-foot {
  justify-content: space-between;
  gap: 7px;
}

.task-id {
  color: var(--muted);
  font: 10px var(--mono);
}

.chip-row {
  gap: 5px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 18px;
  padding: 1px 6px;
  color: var(--chip-color, var(--ink-soft));
  background: var(--chip-bg, var(--surface-2));
  border-radius: 999px;
  font-size: 10px;
  font-weight: 720;
  white-space: nowrap;
}

.task-title {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 720;
}

.task-desc {
  margin: -3px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.task-meta-row {
  gap: 7px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 10px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.meta-item.overdue {
  color: var(--tomato);
  font-weight: 720;
}

.meta-item.due-today {
  color: var(--saffron);
  font-weight: 720;
}

.meta-item.due-missing {
  color: var(--faint);
}

.due-cell {
  min-width: 108px;
}

.due-cell-inner {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

td.due-cell.overdue,
.due-cell.overdue {
  color: var(--tomato);
  font-weight: 720;
}

td.due-cell.due-today,
.due-cell.due-today {
  color: var(--saffron);
  font-weight: 720;
}

td.due-cell.due-missing,
.due-cell.due-missing {
  color: var(--faint);
  font-style: italic;
}

.due-tag {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 1px 7px;
  color: var(--tomato);
  background: var(--tomato-soft);
  border: 1px solid rgba(189, 67, 59, 0.18);
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 760;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.due-tag.due-tag-today {
  color: var(--saffron);
  background: var(--saffron-soft);
  border-color: rgba(183, 121, 31, 0.22);
}

th.due-col {
  min-width: 108px;
}

.list-filter-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 8px 11px;
  color: #84413b;
  background: var(--tomato-soft);
  border: 1px solid #f0b6b1;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 720;
}

.avatar-row {
  gap: 0;
}

.avatar,
.mini-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--member-color, var(--blue));
  border-radius: 50%;
  font-weight: 760;
  letter-spacing: 0;
}

.avatar {
  width: 32px;
  height: 32px;
  font-size: 11.5px;
}

.mini-avatar {
  width: 22px;
  height: 22px;
  font-size: 9.5px;
  border: 2px solid var(--surface);
}

.mini-avatar + .mini-avatar {
  margin-left: -8px;
}

.avatar img,
.mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 118px;
  padding: 16px 12px;
  color: var(--muted);
  font-size: 10.5px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: calc(var(--radius) - 1px);
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.list-wrap,
.daily-wrap,
.team-wrap {
  padding: 12px 20px 18px;
}

.table-shell {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-tight);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  background: #f8fafc;
  font-size: 10.5px;
  font-weight: 760;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover {
  background: #f7fbff;
}

td {
  font-size: 12.5px;
}

.table-title {
  min-width: 260px;
  font-weight: 720;
}

.mono {
  font-family: var(--mono);
}

.muted {
  color: var(--muted);
}

.daily-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 12px;
}

.daily-section,
.team-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-tight);
}

.daily-section {
  --daily-accent: var(--blue);
  --daily-soft: var(--blue-soft);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.daily-section:hover,
.daily-section:focus-within {
  transform: translateY(-2px);
  border-color: #c5d1de;
  box-shadow: 0 12px 28px rgba(18, 26, 35, 0.08);
}

.daily-section-plan {
  --daily-accent: var(--blue);
  --daily-soft: var(--blue-soft);
}

.daily-section-yesterday {
  --daily-accent: var(--teal);
  --daily-soft: var(--teal-soft);
}

.daily-section-progress {
  --daily-accent: var(--violet);
  --daily-soft: var(--violet-soft);
}

.daily-section-blockers {
  --daily-accent: var(--tomato);
  --daily-soft: var(--tomato-soft);
}

.daily-section-head,
.team-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--line);
}

.daily-section-head {
  position: relative;
  border-top: 0;
}

.daily-section-head::before,
.daily-section-head::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  border-radius: 0 3px 3px 0;
  pointer-events: none;
}

.daily-section-head::before {
  width: 30%;
  background: var(--daily-accent);
  transition: width 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.daily-section-head::after {
  width: 30%;
  background: var(--daily-accent);
  opacity: 0.28;
  filter: blur(5px);
  transition: width 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.daily-section:hover .daily-section-head::before,
.daily-section:hover .daily-section-head::after,
.daily-section:focus-within .daily-section-head::before,
.daily-section:focus-within .daily-section-head::after {
  width: 100%;
}

.daily-section-head .chip {
  color: var(--daily-accent);
  background: var(--daily-soft);
}

.daily-section-head h2,
.team-panel-head h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}

.daily-section-head small,
.team-panel-head small {
  color: var(--muted);
  font-size: 11.5px;
}

.daily-items {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.daily-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  gap: 9px;
  align-items: start;
  padding: 9px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.daily-toggle,
.daily-delete {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.daily-toggle.done {
  color: #fbfcfd;
  background: var(--teal);
  border-color: var(--teal);
}

.daily-content {
  min-width: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
}

.daily-content:hover p {
  color: var(--blue);
}

.daily-delete:hover {
  color: var(--tomato);
  border-color: #f0b6b1;
}

.daily-item p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
}

.daily-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
}

.daily-detail-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #fbfcfe 0%, #f3f7fb 100%);
  border: var(--control-border);
  border-radius: var(--control-radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.daily-detail-summary.full {
  grid-column: 1 / -1;
}

.daily-detail-summary span {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
}

.daily-detail-summary strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 760;
}

.help-manual {
  background: var(--surface);
}

.modal:has(.help-manual) {
  width: min(980px, 100%);
}

.modal:has(.license-panel) {
  width: min(760px, 100%);
}

.help-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), var(--blue-soft));
}

.help-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.help-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  color: #fbfcfd;
  background: var(--charcoal);
  border-radius: var(--radius);
}

.help-kicker {
  display: block;
  margin-bottom: 8px;
  color: rgba(251, 252, 253, 0.64);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help-hero h3 {
  max-width: 680px;
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.help-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.help-section-label {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.help-section-label:first-child {
  margin-top: 0;
}

.help-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.help-card > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fbfcfd;
  background: var(--blue);
  border-radius: var(--radius-sm);
  font-weight: 800;
}

.help-card h4 {
  margin: 0 0 5px;
  font-size: 13px;
}

.help-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.help-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.help-strip div {
  padding: 11px;
  background: var(--blue-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.help-strip strong,
.help-strip span {
  display: block;
}

.help-strip strong {
  margin-bottom: 4px;
  font-size: 12.5px;
}

.help-strip span {
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.45;
}

.license-body {
  display: grid;
  gap: 0;
  padding: 0 20px 20px;
  max-height: 52vh;
  overflow-y: auto;
}

/* ── License Header ── */
.license-panel .license-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 20px 16px;
  background: linear-gradient(135deg, var(--charcoal) 0%, #1e2d42 100%);
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative;
}

.license-header-seal {
  flex-shrink: 0;
}

.license-seal-ring {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
}

.license-header-body {
  flex: 1;
  min-width: 0;
}

.license-badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  color: rgba(255,255,255,0.65);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.license-panel .license-header h2 {
  margin: 0 0 3px;
  color: #fff;
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.01em;
}

.license-panel .license-header p {
  margin: 0;
  color: rgba(255,255,255,0.5);
  font-size: 11.5px;
}

.license-close {
  color: rgba(255,255,255,0.6) !important;
  background: transparent !important;
  border-color: transparent !important;
}

.license-close:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.1) !important;
}

/* ── Meta strip ── */
.license-meta {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  padding: 8px 20px;
}

.license-meta span {
  flex: 1 1 auto;
  font-size: 10.5px;
  color: var(--muted);
  padding: 2px 12px 2px 0;
  white-space: nowrap;
}

.license-meta span strong {
  color: var(--ink-soft);
  font-size: 9.5px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1px;
}

/* ── Clauses ── */
.license-clause {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.license-clause:last-of-type {
  border-bottom: none;
}

.license-clause-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 7px;
}

.license-clause-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  color: #fff;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 760;
}

.license-clause-title {
  font-size: 10.5px;
  font-weight: 760;
  color: var(--ink);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.license-clause-body {
  margin: 0 0 0 32px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.license-email {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Signature block ── */
.license-signature {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.license-sig-name {
  font-size: 20px;
  font-weight: 700;
  font-family: "Dancing Script", cursive;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}

.license-sig-role {
  font-size: 11px;
  font-weight: 760;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.license-sig-date {
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--muted);
}

.license-sig-seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
}

.license-sig-seal-text {
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.license-sig-seal-sub {
  font-size: 7.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Footer bar ── */
.license-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  border-top: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 0 0 var(--radius) var(--radius);
}

.license-footer span {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.confirm-body {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
}

.confirm-warning {
  display: flex;
  gap: 10px;
  padding: 11px;
  color: var(--tomato);
  background: var(--tomato-soft);
  border: 1px solid #f0b6b1;
  border-radius: var(--radius);
}

.confirm-warning svg {
  flex: 0 0 auto;
}

.confirm-warning strong,
.confirm-warning p {
  display: block;
  margin: 0;
}

.confirm-warning p {
  margin-top: 4px;
  color: #84413b;
  font-size: 12px;
  line-height: 1.45;
}

.confirm-expected {
  color: var(--muted);
  font-size: 12px;
}

.confirm-detail {
  padding: 10px 12px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.confirm-expected strong {
  color: var(--ink);
}

.confirm-error {
  min-height: 18px;
  color: var(--tomato);
  font-size: 12px;
  font-weight: 720;
}

.daily-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 10px;
  padding: 0 10px 10px;
}

.daily-add-form input {
  min-width: 0;
}

.daily-add-form button {
  display: grid;
  place-items: center;
  min-height: var(--control-min-height);
  color: #fbfcfd;
  background: var(--charcoal);
  border: 0;
  border-radius: var(--control-radius);
  box-shadow: 0 4px 12px rgba(18, 26, 35, 0.18);
  transition: transform 0.12s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.daily-add-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(18, 26, 35, 0.22);
}

.daily-add-form button:active {
  transform: translateY(0);
}

.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 12px;
}

.member-list,
.insight-list {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.member-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(110px, 0.42fr) auto;
  grid-template-areas: "avatar info workload kick";
  gap: 10px 12px;
  align-items: center;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background-color 0.18s ease;
}

.member-row:hover {
  background: var(--control-bg-hover);
  border-color: #b7c5d4;
  box-shadow: 0 8px 20px rgba(18, 26, 35, 0.06);
  transform: translateY(-1px);
}

.member-row > :nth-child(1) {
  grid-area: avatar;
  align-self: start;
}

.member-row > :nth-child(2) {
  grid-area: info;
  min-width: 0;
}

.member-row > :nth-child(3) {
  grid-area: workload;
  min-width: 0;
}

.member-row > :nth-child(4) {
  grid-area: kick;
  justify-self: end;
}

.member-kick {
  min-height: 30px;
  padding: 0 10px;
  color: var(--tomato);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.02em;
  background: var(--tomato-soft);
  border: 1px solid rgba(189, 67, 59, 0.22);
  border-radius: 999px;
  transition:
    transform 0.14s ease,
    background-color 0.14s ease,
    border-color 0.14s ease,
    box-shadow 0.14s ease;
}

.member-kick:hover {
  color: #fff;
  background: var(--tomato);
  border-color: var(--tomato);
  box-shadow: 0 4px 12px rgba(189, 67, 59, 0.22);
  transform: translateY(-1px);
}

.member-kick:active {
  transform: translateY(0);
}

.member-kick:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(189, 67, 59, 0.18);
}

.member-row h3 {
  margin: 0;
  font-size: 13px;
}

.member-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11.5px;
}

.workload-bar {
  height: 7px;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: 999px;
}

.workload-bar span {
  display: block;
  width: var(--value, 0%);
  height: 100%;
  background: var(--member-color, var(--blue));
  border-radius: inherit;
}

.workload-meta {
  margin-top: 6px;
  color: var(--muted);
  font: 11px var(--mono);
  text-align: right;
}

.insight {
  padding: 11px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.insight-link {
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease;
}

.insight-link:hover,
.insight-link:focus-visible {
  background: var(--control-bg-hover);
  border-color: #b7c5d4;
  box-shadow: 0 8px 18px rgba(18, 26, 35, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.insight-link:active {
  transform: translateY(0);
}

.insight strong {
  display: block;
  margin-bottom: 5px;
  font-size: 12.5px;
}

.insight p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.modal-root.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 24, 32, 0.56);
  backdrop-filter: blur(12px);
}

.modal {
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  box-shadow: 0 28px 72px rgba(16, 24, 32, 0.30);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
}

.modal-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
}

.modal-close:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.field > span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.01em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.5;
  padding-top: 12px;
  padding-bottom: 12px;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--control-min-height);
  padding: 0 14px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 720;
  background: linear-gradient(180deg, #fbfcfe 0%, #f5f8fb 100%);
  border: var(--control-border);
  border-radius: var(--control-radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.form-grid > .checkbox-field {
  grid-column: 1 / -1;
}

.checkbox-field:hover {
  border-color: var(--control-border-hover);
  background: var(--control-bg-hover);
}

.checkbox-field:has(input:focus-visible) {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(33, 104, 201, 0.14);
}

.checkbox-field input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--blue);
  cursor: pointer;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.form-footer .right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: grid;
  gap: 8px;
  width: min(340px, calc(100vw - 36px));
}

.toast {
  padding: 11px 13px;
  color: #fbfcfd;
  background: rgba(16, 24, 32, 0.96);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 12.5px;
}

.mobile-nav {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

body.mobile-scroll-lock {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 1120px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(104px, 1fr));
  }

  .daily-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .member-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-areas:
      "avatar info kick"
      "avatar workload workload";
    gap: 8px 10px;
  }

  .member-row > :nth-child(4) {
    align-self: start;
  }
}

@media (max-width: 900px) {
  html,
  body {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: calc(52px + env(safe-area-inset-top)) auto;
    height: auto;
    min-height: 100svh;
    min-height: 100dvh;
    width: 100%;
    overflow: visible;
    padding-bottom: calc(58px + env(safe-area-inset-bottom));
  }

  .topbar-menu {
    display: inline-grid;
  }

  .topbar {
    position: relative;
    top: auto;
    height: calc(52px + env(safe-area-inset-top));
    min-width: 0;
    padding-top: env(safe-area-inset-top);
    flex-shrink: 0;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .icon-button {
    width: 40px;
    height: 40px;
  }

  .brand {
    min-width: auto;
    max-width: 42vw;
  }

  .brand small,
  .hide-small {
    display: none;
  }

  .topbar-search-slot {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: calc(52px + env(safe-area-inset-top));
    z-index: 66;
    padding: 8px 10px 10px;
    background: rgba(16, 24, 32, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  }

  .topbar-search-slot .search-box {
    width: 100%;
    height: 44px;
    padding: 0 12px;
  }

  .topbar-search-slot .search-box input {
    font-size: 16px;
  }

  .app-shell.search-open .topbar-search-slot {
    display: flex;
  }

  .app-shell.search-open .workspace {
    padding-top: 52px;
  }

  .icon-button.topbar-search-toggle {
    display: inline-grid;
  }

  .app-shell.search-open .topbar-search-toggle {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 54;
    background: rgba(16, 24, 32, 0.52);
    backdrop-filter: blur(2px);
  }

  .sidebar-backdrop:not([hidden]) {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: calc(52px + env(safe-area-inset-top)) auto calc(68px + env(safe-area-inset-bottom)) 0;
    z-index: 55;
    width: min(310px, calc(100vw - 34px));
    padding: 12px 10px max(14px, env(safe-area-inset-bottom));
    transform: translateX(-104%);
    transition: transform 0.22s ease;
    box-shadow: 20px 0 60px rgba(16, 24, 32, 0.24);
  }

  .app-shell.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .app-shell.sidebar-collapsed .sidebar {
    opacity: 1;
    pointer-events: auto;
  }

  .workspace {
    grid-column: 1 / -1;
    grid-row: 2;
    display: block;
    min-height: 0;
    overflow: visible;
    padding-bottom: 12px;
  }

  .workspace:has(#view-settings.active) .project-header {
    display: none;
  }

  .project-header {
    position: relative;
    top: auto;
    z-index: 25;
    padding: 8px 12px 0;
  }

  .project-heading {
    display: grid;
    gap: 8px;
    align-items: start;
  }

  .project-heading > div:first-child {
    min-width: 0;
  }

  #projectDescription {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .view-tabs {
    display: none;
  }

  .view-panel.active {
    display: block;
    overflow: visible;
  }

  .site-footer {
    display: none;
  }

  .project-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-left: 0;
  }

  .project-actions .danger-button,
  .project-actions .ghost-button,
  .project-actions .primary-button {
    min-width: 0;
    min-height: 36px;
    flex: 0 1 auto;
    padding: 0 10px;
    white-space: nowrap;
    line-height: 1.1;
    text-align: center;
    font-size: 11.5px;
  }

  .metric-grid {
    display: flex;
    gap: 7px;
    margin: 6px -12px 4px;
    padding: 0 12px 2px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
    scroll-snap-type: x proximity;
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }

  .metric-grid::-webkit-scrollbar {
    display: none;
  }

  .metric {
    flex: 0 0 118px;
    padding: 7px 8px;
    scroll-snap-align: start;
  }

  .metric-value {
    font-size: 14px;
  }

  .metric-sub {
    font-size: 9.5px;
  }

  .board-wrap,
  .list-wrap,
  .daily-wrap,
  .team-wrap,
  .settings-wrap {
    padding: 8px 12px 12px;
  }

  #view-board.view-panel.active:not(:has(.welcome-workspace))::after {
    content: "Swipe sideways for more columns";
    display: block;
    padding: 0 12px 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 740;
    letter-spacing: 0.02em;
    text-align: center;
  }

  .board-wrap {
    --column-width: min(78vw, 248px);
    --board-height: clamp(300px, calc(100dvh - 250px - env(safe-area-inset-bottom)), 520px);
    width: 100%;
    max-width: 100%;
    height: var(--board-height);
    min-height: 280px;
    padding-bottom: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 12px;
    mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
  }

  .board-wrap.welcome-workspace,
  .board-wrap.single-empty {
    width: 100%;
    height: auto;
    min-height: 200px;
    overflow: visible;
    touch-action: auto;
    mask-image: none;
    -webkit-mask-image: none;
    scroll-snap-type: none;
  }

  .kanban-column {
    flex-basis: var(--column-width);
    width: var(--column-width);
    max-height: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .column-body {
    max-height: calc(var(--board-height) - 38px);
    touch-action: pan-y;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .settings-wrap {
    padding: 10px 12px calc(16px + env(safe-area-inset-bottom));
  }

  .settings-grid {
    gap: 10px;
  }

  .settings-panel-head {
    padding: 10px 12px;
  }

  .settings-body {
    padding: 12px;
  }

  .settings-actions {
    gap: 8px;
  }

  .access-step {
    padding: 12px;
  }

  .task-card {
    touch-action: pan-x pan-y;
    cursor: pointer;
  }

  .task-move-btn {
    min-height: 40px;
  }

  .column-add,
  .daily-toggle,
  .daily-delete {
    width: 40px;
    height: 40px;
  }

  .project-pill,
  .side-link,
  .sidebar-add,
  .help-button,
  .view-tab,
  .primary-button,
  .ghost-button,
  .danger-button {
    min-height: 44px;
  }

  .project-actions .danger-button,
  .project-actions .ghost-button,
  .project-actions .primary-button {
    min-height: 36px;
  }

  .table-shell {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: 12px;
  }

  .table-shell::after {
    content: "Swipe to see more";
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
  }

  .welcome-panel {
    padding: 22px 18px;
  }

  .welcome-panel h2 {
    font-size: 21px;
  }

  .welcome-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .welcome-actions .primary-button,
  .welcome-actions .ghost-button {
    width: 100%;
    min-height: 44px;
  }

  .empty-state {
    min-height: 220px;
    padding: 24px 16px;
  }

  .team-grid,
  .daily-layout,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .help-hero,
  .help-grid,
  .help-strip {
    grid-template-columns: 1fr;
  }

  .help-hero {
    display: grid;
  }

  .modal:has(.help-manual) {
    max-height: min(92svh, 860px);
  }

  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: calc(58px + env(safe-area-inset-bottom));
    padding: 6px max(8px, env(safe-area-inset-left)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
    background: rgba(16, 24, 32, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
  }

  .mobile-nav button {
    display: grid;
    place-items: center;
    gap: 2px;
    color: rgba(255, 255, 255, 0.56);
    background: transparent;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 720;
    min-width: 0;
    min-height: 48px;
    padding: 3px 2px;
  }

  .mobile-nav button:active {
    transform: scale(0.97);
    background: rgba(255, 255, 255, 0.08);
  }

  .mobile-nav button.active {
    color: #fbfcfd;
    background: rgba(255, 255, 255, 0.10);
  }

  .modal-backdrop {
    align-items: end;
    padding: 10px 10px max(10px, env(safe-area-inset-bottom));
  }

  .modal {
    width: 100%;
    max-height: min(90svh, 820px);
    border-radius: 16px 16px 12px 12px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .modal-header {
    padding: 14px;
  }

  .form-grid,
  .help-body,
  .confirm-body {
    padding: 14px;
  }

  .toast-region {
    right: 10px;
    bottom: calc(70px + env(safe-area-inset-bottom));
    width: calc(100vw - 20px);
  }
}

@media (max-width: 620px) {
  .topbar {
    padding: env(safe-area-inset-top) 10px 0;
    gap: 7px;
  }

  .brand {
    max-width: 30vw;
    gap: 7px;
  }

  .brand-logo {
    width: 28px;
    height: 28px;
  }

  .brand strong {
    font-size: 13.5px;
  }

  .topbar-actions {
    gap: 6px;
    min-width: 0;
  }

  .settings-button {
    display: none;
  }

  .mobile-nav button {
    font-size: 9.5px;
  }

  .topbar-user {
    max-width: 112px;
    min-height: 40px;
    padding: 0 8px;
    font-size: 12px;
  }

  .topbar-actions .primary-button {
    width: 38px;
    padding: 0;
    font-size: 0;
  }

  .topbar-actions .primary-button span {
    font-size: initial;
  }

  .topbar-actions .primary-button svg {
    width: 18px;
    height: 18px;
  }

  h1 {
    font-size: 16px;
    line-height: 1.2;
  }

  .breadcrumb {
    margin-bottom: 4px;
    font-size: 10px;
  }

  .project-header p {
    margin-top: 4px;
    font-size: 11px;
  }

  .project-actions .danger-button,
  .project-actions .ghost-button {
    min-height: 34px;
    padding: 0 9px;
    font-size: 11px;
  }

  .metric {
    flex-basis: 108px;
  }

  .metric-value {
    font-size: 13px;
  }

  .board-wrap {
    --column-width: min(82vw, 236px);
  }

  .task-card {
    padding: 8px;
  }

  .table-shell {
    margin: 0 -2px;
  }

  table {
    min-width: 720px;
  }

  th,
  td {
    padding: 11px 10px;
  }

  .daily-items {
    padding: 9px;
  }

  .daily-item {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    padding: 10px;
  }

  .settings-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .settings-actions .primary-button,
  .settings-actions .ghost-button,
  .settings-actions .danger-button {
    width: 100%;
    min-height: 44px;
  }

  .theme-picker {
    align-items: stretch;
  }

  .form-grid,
  .member-row {
    text-align: left;
  }

  .member-row {
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-areas:
      "avatar info"
      "workload workload"
      "kick kick";
    gap: 8px 10px;
    padding: 10px;
  }

  .member-row > :nth-child(4) {
    justify-self: stretch;
  }

  .member-kick {
    width: 100%;
    min-height: 44px;
    justify-self: stretch;
  }

  .workload-meta {
    text-align: left;
  }

  .form-footer {
    display: grid;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  }

  .form-footer .right {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .form-footer .right .primary-button,
  .form-footer .right .ghost-button,
  .form-footer .right .danger-button {
    width: 100%;
    min-height: 44px;
  }

  .appearance-option {
    min-height: 44px;
  }

  .background-actions .ghost-button,
  .background-upload {
    min-height: 44px;
  }

  .modal-header h2 {
    font-size: 16px;
  }

  .modal-header p {
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .brand span {
    display: none;
  }

  .brand {
    max-width: none;
  }

  .topbar-user {
    max-width: 96px;
    padding: 0 7px;
  }

  .topbar-actions {
    gap: 5px;
  }

  .breadcrumb {
    display: none;
  }

  .metric-grid {
    gap: 6px;
  }

  .metric {
    flex-basis: 100px;
  }

  .board-wrap {
    --column-width: min(86vw, 220px);
  }

  .daily-detail-summary {
    grid-template-columns: 1fr;
  }

  .help-card {
    grid-template-columns: 1fr;
  }

  .help-card > span {
    width: 28px;
    height: 28px;
  }

  .mobile-nav button {
    font-size: 9px;
  }

  .mobile-nav button svg {
    width: 15px;
    height: 15px;
  }

  .form-footer .right {
    grid-template-columns: 1fr;
  }
}

/* ── Site Footer ──────────────────────────────────────── */

.site-footer {
  margin: 16px 20px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-tight);
  overflow: hidden;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 16px 20px 14px;
  align-items: start;
}

/* Brand */
.footer-brand {
  padding-left: 10px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.footer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-tight);
}

.footer-brand-name {
  font-size: 22px;
  font-weight: 700;
  font-family: "Dancing Script", cursive;
  color: var(--ink);
  letter-spacing: 0.01em;
  line-height: 1;
}

.footer-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

/* Right column */
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.footer-section-label {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.1em;
}

/* Connect icons */
.footer-icons {
  display: flex;
  gap: 6px;
}

.footer-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  text-decoration: none;
}

.footer-icon-btn svg {
  width: 13px;
  height: 13px;
}

.footer-icon-btn:hover {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--blue-soft);
}

/* Tools — label + row, mirrors .footer-connect layout */
.footer-tools {
  display: flex;
  flex-direction: column;
}

.footer-tools-row {
  display: flex;
  flex-direction: row;
  gap: 7px;
  align-items: stretch;
}

/* ── WrittenX Pages ── */
.footer-tool-writtenx {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 8px 12px 7px;
  background: var(--control-bg-hover);
  border: 1px solid #e2d9cc;
  border-radius: 9px;
  text-decoration: none;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.footer-tool-writtenx:hover {
  border-color: #b7791f;
  box-shadow: 0 2px 8px rgba(183, 121, 31, 0.1);
}

.writtenx-logo {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #5c3d11;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.writtenx-underline {
  display: block;
  width: 36px;
  height: 2px;
  margin-top: 5px;
  background: #d9cfc4;
  border-radius: 2px;
}

/* ── NexaLibraryX Pages ── */
.footer-tool-nexalibrary {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 10px;
  background: #1a1f26;
  border: 1.5px solid rgba(96, 165, 250, 0.4);
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.07), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.footer-tool-nexalibrary:hover {
  border-color: rgba(96, 165, 250, 0.72);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.13), inset 0 1px 0 rgba(255,255,255,0.07);
  background: #1e252e;
}

.nexalibrary-logo {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -0.02em;
  line-height: 1.25;
  white-space: nowrap;
}

.nexalibrary-sub {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,0.42);
  font-weight: 500;
  white-space: nowrap;
}

/* ── TabStackX Pages ── */
.footer-tool-tabstack {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 8px 12px;
  background: #1a2240;
  border: 1.5px solid rgba(96, 130, 220, 0.3);
  border-bottom: 2.5px solid #b7791f;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: background 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.footer-tool-tabstack:hover {
  background: #1e2a4e;
  box-shadow: 0 0 0 2px rgba(96, 130, 220, 0.18), inset 0 1px 0 rgba(255,255,255,0.07);
  border-color: rgba(96, 130, 220, 0.55);
  border-bottom-color: #d4902a;
}

.tabstack-logo {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.tabstack-sub {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  white-space: nowrap;
}

/* Footer bottom bar */
.footer-bottom {
  padding: 8px 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-bottom p {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.footer-bottom p:last-child {
  margin-bottom: 0;
}

.footer-bottom a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.license-link {
  display: inline;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: inherit;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.license-link:hover,
.license-link:focus-visible {
  color: var(--blue);
}

/* Footer responsive */
@media (max-width: 900px) {
  .site-footer {
    margin: 12px 12px 10px;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 16px 12px;
  }

  .footer-tools-row {
    flex-wrap: wrap;
  }

  .footer-tools-row > a {
    flex: 1 1 calc(50% - 4px);
    min-width: 120px;
  }
}

@media (max-width: 620px) {
  .site-footer {
    margin: 10px 10px 8px;
  }

  .site-footer-inner {
    padding: 12px 14px 10px;
  }

  .footer-bottom {
    padding: 7px 14px;
  }

  .footer-tools-row > a {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot,
  .status-dot::after,
  .metric,
  .metric-label [data-icon],
  .progress-fill,
  .topbar-user,
  .daily-section,
  .daily-section-head::before,
  .daily-section-head::after,
  .member-row {
    animation: none;
    transition: none;
  }

  .daily-section:hover,
  .daily-section:focus-within,
  .member-row:hover {
    transform: none;
  }

  .daily-section:hover .daily-section-head::before,
  .daily-section:hover .daily-section-head::after,
  .daily-section:focus-within .daily-section-head::before,
  .daily-section:focus-within .daily-section-head::after {
    width: 100%;
  }
}
