@font-face {
  font-family: "TT Days Sans";
  src: url("assets/fonts/TTDaysSans-Regular.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Days Sans";
  src: url("assets/fonts/TTDaysSans-Bold.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "F37 Ginger";
  src: url("assets/fonts/F37GingerCyrillic-VF.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-ui: "TT Days Sans", "Montserrat", system-ui, sans-serif;
  --font-display: "F37 Ginger", "TT Days Sans", system-ui, sans-serif;
  --ink: #07111f;
  --cream: #f6f4ef;
  --paper: #ffffff;
  --muted: #6b7280;
  --line: rgba(7, 17, 31, 0.1);
  --line-strong: rgba(7, 17, 31, 0.16);
  --blue: #246bfe;
  --amber: #f2a62b;
  --violet: #7a5af8;
  --coral: #ef6a68;
  --emerald: #21b66f;
  --lime: #c8ff5a;
  --shadow-soft: 0 14px 44px rgba(7, 17, 31, 0.08);
  --shadow-card: 0 6px 16px rgba(7, 17, 31, 0.06);
  --drawer-width: 450px;
}

* { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(42, 171, 238, 0.12), transparent 26rem),
    radial-gradient(circle at 82% 2%, rgba(33, 182, 111, 0.1), transparent 23rem),
    var(--cream);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

body.drawer-open { padding-right: var(--drawer-width); }

button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, a, label { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(36, 107, 254, 0.32);
  outline-offset: 2px;
}

.topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  height: 72px;
  display: grid;
  grid-template-columns: max-content minmax(280px, 1fr) max-content;
  align-items: center;
  gap: 20px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(7, 17, 31, 0.08);
  background: rgba(246, 244, 239, 0.9);
  backdrop-filter: blur(18px);
  transition: padding-right 0.24s ease;
}

body.drawer-open .topbar { padding-right: calc(var(--drawer-width) + 28px); }

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

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 9px 20px rgba(7, 17, 31, 0.2);
}
.brand-name { font-family: var(--font-display); font-size: 24px; font-weight: 760; letter-spacing: -0.035em; }
.brand-caption { overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }

.search {
  width: 100%;
  max-width: 640px;
  justify-self: center;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 3px 12px rgba(7, 17, 31, 0.03);
}

.search-icon { position: relative; width: 15px; height: 15px; flex: 0 0 auto; border: 1.8px solid #87909e; border-radius: 50%; }
.search-icon::after { position: absolute; width: 6px; height: 1.8px; right: -5px; bottom: -2px; content: ""; border-radius: 99px; background: #87909e; transform: rotate(45deg); }
.search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.search input::placeholder { color: #9299a5; }
.search kbd { padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; color: #8b929c; background: #f8f8f6; font-family: inherit; font-size: 9px; font-weight: 600; }

.top-actions { min-width: max-content; display: flex; align-items: center; justify-content: flex-end; gap: 10px; white-space: nowrap; }
.save-state { display: flex; align-items: center; gap: 7px; color: #5f6976; font-size: 11px; font-weight: 600; white-space: nowrap; }
.save-state i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px rgba(33, 182, 111, 0.12); }
.save-state[data-state="saving"] i { background: var(--amber); box-shadow: 0 0 0 4px rgba(242, 166, 43, 0.13); animation: pulse 1s infinite; }
.save-state[data-state="error"] { color: #a44240; }
.save-state[data-state="error"] i { background: var(--coral); box-shadow: 0 0 0 4px rgba(239, 106, 104, 0.12); }
@keyframes pulse { 50% { opacity: .45; } }

.icon-button, .primary-button, .secondary-button, .label-library-button, .grid-button, .text-button, .collapsible-title, .dialog-close, .drawer-close, .danger-button, .add-project-wide, .add-card, .project-menu-button, .card, .height-preset, .menu-danger, .file-download, .file-remove, .drawer-label-option, .label-row-delete, .card-label, .card-label-add, .filter-label-option, .card-popover-option, .card-popover-manage {
  border: 0;
  cursor: pointer;
}

.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, 0.82); font-size: 18px; }
.label-library-button { min-height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, 0.82); font-size: 10px; font-weight: 700; }
.label-library-button i { width: 9px; height: 9px; border-radius: 4px; background: linear-gradient(135deg, var(--blue) 0 50%, var(--violet) 50%); transform: rotate(45deg); }
.label-filter-wrap { position: relative; }
.label-library-button[aria-expanded="true"] { border-color: var(--blue); background: #eef4ff; }
.toolbar-count { min-width: 17px; padding: 2px 5px; border-radius: 99px; color: #1a5bc9; background: #e7efff; font-size: 8px; }
.grid-button { min-height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, 0.82); font-size: 10px; font-weight: 700; }
.grid-button i { width: 12px; height: 12px; border: 1.5px solid #747d89; border-radius: 3px; background: linear-gradient(90deg, transparent 43%, #747d89 43% 57%, transparent 57%), linear-gradient(transparent 43%, #747d89 43% 57%, transparent 57%); }
.grid-button[aria-pressed="true"] { border-color: var(--violet); color: #5c43c6; background: #f0ecff; }
.grid-button[aria-pressed="true"] i { border-color: var(--violet); background: linear-gradient(90deg, transparent 43%, var(--violet) 43% 57%, transparent 57%), linear-gradient(transparent 43%, var(--violet) 43% 57%, transparent 57%); }
.label-filter-popover { position: absolute; z-index: 80; top: calc(100% + 9px); right: 0; width: 280px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: 0 20px 52px rgba(7,17,31,.18); }
.filter-popover-head { display: grid; gap: 9px; margin-bottom: 10px; }
.filter-popover-head strong { display: block; font-size: 10px; }
.filter-popover-head span { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.filter-actions { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.filter-actions button { min-height: 28px; padding: 4px 8px; border: 0; border-radius: 8px; color: var(--blue); background: #edf3ff; font-size: 8px; font-weight: 700; cursor: pointer; }
.filter-label-list { max-height: 290px; display: grid; gap: 5px; overflow-y: auto; scrollbar-width: thin; }
.filter-label-option { --label-color: var(--blue); width: 100%; min-height: 32px; display: grid; grid-template-columns: 15px 10px 1fr; align-items: center; gap: 7px; padding: 0 8px; border: 1px solid var(--line); border-radius: 9px; background: white; text-align: left; font-size: 8.5px; font-weight: 650; }
.filter-label-option::before { width: 13px; height: 13px; display: grid; place-items: center; content: ""; border: 1px solid #c8cdd3; border-radius: 4px; }
.filter-label-option.is-active::before { content: "✓"; color: white; border-color: var(--label-color); background: var(--label-color); font-size: 8px; }
.filter-label-option i { width: 8px; height: 8px; border-radius: 3px; background: var(--label-color); }
.primary-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border-radius: 13px; color: white; background: var(--ink); box-shadow: 0 9px 22px rgba(7, 17, 31, 0.16); font-size: 12px; font-weight: 700; }
.secondary-button { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 13px; background: white; font-size: 12px; font-weight: 650; }
.avatar { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; color: white; background: linear-gradient(150deg, #8469ff, #3d55d7); box-shadow: 0 7px 18px rgba(51, 64, 149, 0.2); font-size: 12px; font-weight: 700; }

main { padding: 18px 28px 70px; transition: padding-right 0.24s ease; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.page-heading h1 { margin: 0 0 6px; font-family: var(--font-display); font-size: clamp(28px, 2.4vw, 36px); font-weight: 760; line-height: 1.05; letter-spacing: -0.045em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.summary { display: flex; align-items: center; gap: 15px; }
.summary-item { display: grid; gap: 2px; padding-left: 15px; border-left: 1px solid var(--line-strong); }
.summary-item:first-child { border-left: 0; }
.summary-item strong { font-size: 14px; }
.summary-item span { color: var(--muted); font-size: 9px; white-space: nowrap; }

.project-stack { display: grid; gap: 18px; }
.project {
  --project-accent: var(--blue);
  position: relative;
  overflow: visible;
  border: 1px solid rgba(7, 17, 31, 0.09);
  border-left: 6px solid var(--project-accent);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-soft);
}
.project-head { position: relative; z-index: 8; min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 7px 12px 7px 16px; border-radius: 23px 23px 0 0; border-bottom: 1px solid rgba(7, 17, 31, 0.08); background: rgba(255, 255, 255, 0.82); }
.project-title-wrap { min-width: 0; flex: 1; display: flex; align-items: center; gap: 9px; }
.project-glyph { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: var(--project-accent); background: color-mix(in srgb, var(--project-accent) 12%, white); font-family: var(--font-display); font-size: 15px; font-weight: 760; text-transform: uppercase; }
.project-name { min-width: 80px; width: min(620px, 100%); height: 30px; overflow: hidden; margin: 0; padding: 0 7px; border: 1px solid transparent; border-radius: 8px; outline: 0; color: var(--ink); background: transparent; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.project-name:hover { background: rgba(255,255,255,.72); }
.project-name:focus { border-color: color-mix(in srgb, var(--project-accent) 40%, var(--line)); background: white; box-shadow: 0 0 0 3px color-mix(in srgb, var(--project-accent) 12%, transparent); }
.project-tools { position: relative; display: flex; align-items: center; gap: 8px; }
.project-menu-button { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: white; }
.project-menu-button::before { width: 7px; height: 7px; content: ""; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .18s ease; }
.project.is-menu-open .project-menu-button::before { transform: translateY(2px) rotate(225deg); }

.project-popover { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; width: 300px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 20px 52px rgba(7,17,31,.18); }
.popover-title { margin: 0 0 11px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.project-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.project-stat { display: grid; gap: 3px; padding: 10px; border-radius: 11px; background: #f5f5f3; }
.project-stat strong { font-size: 15px; }
.project-stat span { color: var(--muted); font-size: 8px; }
.popover-section { padding-top: 13px; margin-top: 13px; border-top: 1px solid var(--line); }
.height-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.height-preset { height: 34px; border: 1px solid var(--line); border-radius: 9px; background: white; font-size: 9px; font-weight: 650; }
.height-preset.is-active { border-color: var(--project-accent); color: color-mix(in srgb, var(--project-accent) 75%, var(--ink)); background: color-mix(in srgb, var(--project-accent) 8%, white); }
.menu-danger { width: 100%; min-height: 34px; border-radius: 9px; color: #a44240; background: #fdebea; font-size: 9px; font-weight: 650; }

.project-board { height: var(--board-height, 340px); overflow: auto; border-radius: 0 0 22px 22px; scrollbar-color: rgba(7, 17, 31, 0.28) rgba(7, 17, 31, 0.045); scrollbar-width: thin; }
.project-board::-webkit-scrollbar { width: 9px; height: 9px; }
.project-board::-webkit-scrollbar-track { background: rgba(7, 17, 31, 0.045); }
.project-board::-webkit-scrollbar-thumb { border: 2px solid rgba(255,255,255,.45); border-radius: 99px; background: rgba(7, 17, 31, 0.25); }
.columns { min-width: 980px; min-height: calc(var(--board-height, 340px) + 70px); display: grid; grid-template-columns: repeat(5, minmax(178px, 1fr)); gap: 9px; padding: 10px 12px 22px 16px; }

.column { --status: var(--blue); min-width: 0; align-self: stretch; overflow: hidden; border: 1px solid rgba(7, 17, 31, 0.07); border-radius: 15px; background: rgba(248, 248, 247, 0.86); }
.column[data-status="consider"] { --status: var(--amber); }
.column[data-status="doing"] { --status: var(--violet); }
.column[data-status="questions"] { --status: var(--coral); }
.column[data-status="done"] { --status: var(--emerald); }
.column-head { position: sticky; z-index: 5; top: 0; min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 5px 9px; border-top: 3px solid var(--status); border-bottom: 1px solid rgba(7, 17, 31, 0.07); background: color-mix(in srgb, var(--status) 7%, white); backdrop-filter: blur(10px); }
.column-title { min-width: 0; display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 700; }
.status-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--status); box-shadow: 0 0 0 3px color-mix(in srgb, var(--status) 16%, transparent); }
.column-count { min-width: 18px; padding: 2px 5px; border-radius: 99px; color: color-mix(in srgb, var(--status) 80%, #07111f); background: color-mix(in srgb, var(--status) 13%, white); text-align: center; font-size: 8px; font-weight: 700; }
.card-list { position: relative; min-height: 70px; display: grid; align-content: start; gap: 7px; padding: 8px; }
.card-list.is-drop-target { border-radius: 11px; background: color-mix(in srgb, var(--status) 8%, transparent); }

.card { position: relative; width: 100%; display: grid; gap: 8px; padding: 10px 10px 11px; border: 1px solid rgba(7, 17, 31, 0.08); border-radius: 11px; color: var(--ink); background: white; box-shadow: var(--shadow-card); text-align: left; cursor: grab; transform-origin: top; transition: padding-bottom .18s ease, border-color .16s ease, box-shadow .16s ease, opacity .16s ease; }
.card:hover { padding-bottom: 15px; border-color: color-mix(in srgb, var(--status) 35%, transparent); box-shadow: 0 10px 24px rgba(7, 17, 31, 0.09); }
.card:active { cursor: grabbing; }
.card.is-dragging { position: absolute; opacity: 0; pointer-events: none; transform: none; }
.card.is-selected { border-color: var(--status); box-shadow: 0 0 0 2px color-mix(in srgb, var(--status) 13%, transparent), 0 10px 26px rgba(7,17,31,.09); }
.card.is-urgent { border: 2px solid #ff3030; box-shadow: 0 0 0 3px rgba(255,48,48,.12), 0 8px 22px rgba(164,28,28,.15); }
.card.is-urgent:hover { border-color: #ff2020; box-shadow: 0 0 0 4px rgba(255,48,48,.15), 0 11px 28px rgba(164,28,28,.2); }
.card-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding-right: 17px; }
.card-labels:not(:has(.card-label)) { display: none; }
.card-label { --label-color: var(--blue); max-width: 120px; overflow: hidden; padding: 3px 6px; border-radius: 5px; color: color-mix(in srgb, var(--label-color) 78%, #07111f); background: color-mix(in srgb, var(--label-color) 12%, white); font-size: 8px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.card-label-add { display: none; padding: 2px 5px; border: 1px dashed var(--line-strong); border-radius: 5px; color: var(--muted); background: white; font-size: 8px; }
.card:hover .card-labels:has(.card-label), .card-labels:focus-within { display: flex; }
.card:hover .card-label-add, .card-labels:focus-within .card-label-add { display: inline-flex; }
.card h3 { margin: 0; padding-right: 13px; font-size: 10.5px; font-weight: 650; line-height: 1.35; }
.card-subtitle { display: -webkit-box; overflow: hidden; margin: -2px 0 0; color: var(--muted); font-size: 8.5px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-subtitle.is-empty { display: none; }
.card-footer { display: flex; align-items: center; justify-content: flex-start; gap: 7px; color: #808792; font-size: 8px; }
.due { padding: 3px 5px; border-radius: 5px; color: #68717d; background: #f2f3f4; font-size: 7.5px; font-weight: 700; }
.due.is-overdue { color: #a44240; background: #fdeae9; }
.due.is-done { color: #147849; background: #e4f7ec; }
.card-placeholder { width: 100%; min-height: 62px; contain: layout paint; border: 2px dashed color-mix(in srgb, var(--status) 58%, #8390a0); border-radius: 11px; background: color-mix(in srgb, var(--status) 7%, white); box-shadow: inset 0 0 0 3px rgba(255,255,255,.6); pointer-events: none; }

body.grid-mode .card-list { gap: 6px; padding: 7px; }
body.grid-mode .card { height: 92px; min-height: 92px; grid-template-rows: 15px 15px 12px 18px; align-content: start; gap: 5px; padding: 7px 10px 8px; }
body.grid-mode .card:hover { padding-bottom: 8px; }
body.grid-mode .card .card-labels { min-width: 0; min-height: 15px; display: flex; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
body.grid-mode .card-label { flex: 0 0 auto; }
body.grid-mode .card-label-add { display: none; }
body.grid-mode .card h3, body.grid-mode .card-subtitle { display: block; overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; }
body.grid-mode .card-subtitle.is-empty { display: block; visibility: hidden; }
body.grid-mode .card-footer { min-height: 18px; }

.add-card { width: calc(100% - 16px); min-height: 32px; display: flex; align-items: center; gap: 6px; margin: 0 8px 8px; padding: 0 9px; border: 1px dashed rgba(7, 17, 31, 0.15); border-radius: 9px; color: #67717d; background: rgba(255,255,255,.64); font-size: 9px; font-weight: 650; }
.project-resize { position: absolute; z-index: 7; right: 50%; bottom: -5px; width: 62px; height: 12px; border: 0; border-radius: 99px; background: transparent; cursor: ns-resize; transform: translateX(50%); touch-action: none; }
.project-resize::after { position: absolute; width: 36px; height: 4px; inset: 4px auto auto 13px; content: ""; border-radius: 99px; background: rgba(7,17,31,.2); transition: background .16s ease, width .16s ease, left .16s ease; }
.project-resize:hover::after, .project.is-resizing .project-resize::after { width: 46px; left: 8px; background: var(--project-accent); }

.add-project-wide { width: 100%; min-height: 66px; display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 18px; border: 1px dashed rgba(7, 17, 31, .17); border-radius: 20px; color: #68717d; background: rgba(255,255,255,.34); font-size: 12px; font-weight: 650; }
.empty-state { display: grid; place-items: center; gap: 10px; min-height: 260px; padding: 36px; border: 1px dashed var(--line-strong); border-radius: 22px; background: rgba(255,255,255,.5); text-align: center; }
.empty-state strong { font-family: var(--font-display); font-size: 23px; }
.empty-state span { color: var(--muted); font-size: 11px; }

.drawer { position: fixed; z-index: 60; inset: 0 0 0 auto; width: var(--drawer-width); display: grid; grid-template-rows: auto 1fr; border-left: 1px solid rgba(7,17,31,.12); background: white; box-shadow: -24px 0 70px rgba(7,17,31,.14); transform: translateX(105%); transition: transform .24s ease; }
body.drawer-open .drawer { transform: translateX(0); }
.drawer-head { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.drawer-breadcrumb { min-width: 0; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; font-weight: 600; }
.drawer-breadcrumb > span:first-child { overflow: hidden; max-width: 175px; text-overflow: ellipsis; white-space: nowrap; }
.drawer-status-pill { --pill: var(--violet); display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 99px; color: color-mix(in srgb, var(--pill) 75%, var(--ink)); background: color-mix(in srgb, var(--pill) 12%, white); font-size: 8.5px; font-weight: 700; }
.drawer-status-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--pill); }
.drawer-close { width: 35px; height: 35px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; color: #66707c; background: #f3f4f4; font-size: 23px; line-height: 1; }
.drawer-scroll { overflow-y: auto; padding: 19px 22px 28px; scrollbar-color: rgba(7,17,31,.22) transparent; scrollbar-width: thin; }
.field-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.drawer-title-input { width: 100%; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-family: var(--font-display); font-size: 25px; font-weight: 730; line-height: 1.12; letter-spacing: -0.035em; }
.subtitle-label { margin-top: 18px; }
.drawer-subtitle-input { width: 100%; height: 39px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: #44505e; background: #fafaf9; font-size: 10px; }
.drawer-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 18px 0 4px; }
.drawer-meta-field { display: grid; gap: 6px; }
.drawer-meta-field span { color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.drawer-meta-field select, .drawer-meta-field input { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fafaf9; font-size: 9.5px; }
.urgent-toggle { grid-column: 1 / -1; display: grid; grid-template-columns: 20px 1fr; align-items: center; gap: 9px; min-height: 48px; padding: 8px 10px; border: 1px solid rgba(255,48,48,.2); border-radius: 11px; background: #fff7f7; cursor: pointer; }
.urgent-toggle input { position: absolute; opacity: 0; }
.urgent-toggle i { width: 20px; height: 20px; display: grid; place-items: center; border: 1.5px solid #ef8c8c; border-radius: 6px; background: white; }
.urgent-toggle input:checked + i { border-color: #ff3030; background: #ff3030; }
.urgent-toggle input:checked + i::after { content: "✓"; color: white; font-size: 11px; font-style: normal; font-weight: 800; }
.urgent-toggle span { display: grid; gap: 2px; }
.urgent-toggle strong { color: #b72d2b; font-size: 9.5px; }
.urgent-toggle small { color: #9c6767; font-size: 7.8px; }
.card-label-section { padding: 17px 0 18px; }
.text-button { padding: 0; color: var(--blue); background: transparent; font-size: 8.5px; font-weight: 700; }
.collapsible-title { display: inline-flex; align-items: center; gap: 7px; padding: 0; background: transparent; }
.collapsible-title h2 { margin: 0; font-size: 11px; }
.collapsible-title i { width: 6px; height: 6px; margin-top: -3px; border-right: 1.3px solid var(--muted); border-bottom: 1.3px solid var(--muted); transform: rotate(45deg); transition: transform .16s ease, margin .16s ease; }
.collapsible-title[aria-expanded="true"] i { margin-top: 3px; transform: rotate(225deg); }
.drawer-label-list { display: flex; flex-wrap: wrap; gap: 7px; }
.drawer-label-option { --label-color: var(--blue); min-height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 9px; border: 1px solid color-mix(in srgb, var(--label-color) 18%, var(--line)); border-radius: 8px; color: color-mix(in srgb, var(--label-color) 76%, #07111f); background: color-mix(in srgb, var(--label-color) 7%, white); font-size: 8.5px; font-weight: 700; }
.drawer-label-option::before { width: 7px; height: 7px; content: ""; border: 1.5px solid var(--label-color); border-radius: 2px; background: white; }
.drawer-label-option.is-active { border-color: var(--label-color); background: color-mix(in srgb, var(--label-color) 15%, white); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--label-color) 15%, transparent); }
.drawer-label-option.is-active::before { border-color: var(--label-color); background: var(--label-color); box-shadow: inset 0 0 0 2px white; }
.drawer-label-chip { --label-color: var(--blue); padding: 4px 7px; border-radius: 6px; color: color-mix(in srgb, var(--label-color) 78%, #07111f); background: color-mix(in srgb, var(--label-color) 12%, white); font-size: 8.5px; font-weight: 700; }
.drawer-section { padding: 18px 0; border-top: 1px solid var(--line); }
.drawer-section:first-of-type { margin-top: 16px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.section-title h2 { margin: 0; font-size: 11px; font-weight: 700; }
.section-title span { color: #8b929b; font-size: 8.5px; }
.description-section { position: relative; }
.rich-editor-shell { position: relative; overflow: visible; border: 1px solid var(--line); border-radius: 13px; background: #fafaf9; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.rich-editor-shell:focus-within { border-color: rgba(36,107,254,.42); background: white; box-shadow: 0 0 0 3px rgba(36,107,254,.08); }
.editor-toolbar { min-height: 44px; display: flex; align-items: center; gap: 4px; padding: 5px 7px; border-bottom: 1px solid var(--line); background: rgba(245,246,246,.88); border-radius: 12px 12px 0 0; }
.editor-toolbar button { width: 34px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 9px; color: #59636f; background: transparent; font-size: 15px; line-height: 1; cursor: pointer; }
.editor-toolbar button:hover, .editor-toolbar button.is-active { border-color: #d8dce1; color: var(--ink); background: white; box-shadow: 0 2px 7px rgba(7,17,31,.06); }
.editor-toolbar-separator { width: 1px; height: 22px; margin: 0 4px; background: #d9dde1; }
.editor-glyph { width: 18px; height: 18px; display: grid; place-items: center; font-family: Arial, sans-serif; font-size: 15px; line-height: 18px; }
.editor-glyph.is-bold { font-weight: 800; }
.editor-glyph.is-italic { padding-right: 2px; font-family: Georgia, serif; font-style: italic; font-weight: 700; }
.editor-glyph.is-strike { font-weight: 600; text-decoration: line-through; text-decoration-thickness: 1.6px; }
.editor-glyph.is-underline { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.6px; text-underline-offset: 2px; }
.editor-link-glyph { position: relative; width: 19px; height: 18px; display: block; }
.editor-link-glyph::before, .editor-link-glyph::after { position: absolute; top: 6px; width: 10px; height: 5px; content: ""; border: 1.7px solid currentColor; border-radius: 6px; transform: rotate(-40deg); }
.editor-link-glyph::before { left: 0; }
.editor-link-glyph::after { right: 0; }
.editor-emoji-fallback { width: 18px; height: 18px; display: grid; place-items: center; font-size: 18px; line-height: 1; }
.editor-toolbar #editorEmojiButton .apple-emoji { width: 18px; height: 18px; margin: 0; vertical-align: 0; }
.description-editor { width: 100%; min-height: 150px; max-height: 340px; overflow-y: auto; padding: 12px 13px 16px; border: 0; border-radius: 0 0 12px 12px; outline: 0; color: #3f4956; background: transparent; font-size: 10.5px; line-height: 1.62; white-space: pre-wrap; overflow-wrap: anywhere; scrollbar-width: thin; }
.description-editor:empty::before { content: attr(data-placeholder); color: #9aa1aa; pointer-events: none; }
.description-editor a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.description-editor img, .description-editor .apple-emoji { user-select: all; }
.editor-link-popover { position: absolute; z-index: 31; top: 43px; left: 8px; width: min(320px, calc(100% - 16px)); padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 15px 38px rgba(7,17,31,.16); }
.editor-link-popover > label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.editor-link-popover > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.editor-link-popover input { min-width: 0; height: 34px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 9px; outline: 0; font-size: 9.5px; }
.editor-link-popover input:focus { border-color: rgba(36,107,254,.55); box-shadow: 0 0 0 3px rgba(36,107,254,.08); }
.editor-link-popover button { min-height: 34px; padding: 0 11px; border-radius: 9px; color: white; background: var(--ink); font-size: 8.5px; font-weight: 700; }
.editor-link-popover .editor-link-remove { width: 100%; min-height: 28px; margin-top: 6px; color: #8d4745; background: #fdebea; }
.emoji-picker { position: absolute; z-index: 30; top: 43px; right: 8px; width: min(366px, calc(100% - 16px)); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 18px 48px rgba(7,17,31,.2); }
.emoji-picker-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 9px; border-bottom: 1px solid var(--line); }
.emoji-picker-head label { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid var(--line); border-radius: 10px; background: #f7f7f6; }
.emoji-picker-head label .search-icon { width: 12px; height: 12px; }
.emoji-picker-head input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font-size: 9.5px; }
.emoji-picker-head > button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #6d7580; background: #f1f2f2; font-size: 17px; }
.emoji-categories { display: flex; gap: 3px; overflow-x: auto; padding: 7px 8px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.emoji-categories::-webkit-scrollbar { display: none; }
.emoji-category { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid transparent; border-radius: 8px; color: #7b838d; background: transparent; font-size: 14px; }
.emoji-category:hover, .emoji-category.is-active { border-color: #dbe3f3; background: #eef3ff; }
.emoji-grid { height: 246px; display: grid; grid-template-columns: repeat(8, 1fr); align-content: start; gap: 3px; overflow-y: auto; padding: 8px; scrollbar-width: thin; }
.emoji-option { min-width: 0; height: 36px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 9px; background: transparent; }
.emoji-option:hover, .emoji-option:focus-visible { border-color: #dce2e9; background: #f3f5f7; outline: 0; transform: scale(1.06); }
.emoji-option .apple-emoji { width: 25px; height: 25px; }
.emoji-picker-foot { min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px; border-top: 1px solid var(--line); color: #8a929c; font-size: 7.5px; }
.apple-emoji { display: inline-block; width: 1.2em; height: 1.2em; margin: 0 .03em; background-image: url("assets/emoji/apple/apple-emoji-32.png"); background-repeat: no-repeat; background-size: 6200% 6200%; background-position: var(--emoji-position-x) var(--emoji-position-y); vertical-align: -.22em; }
.file-list { display: grid; gap: 7px; }
.file-row { display: grid; grid-template-columns: 35px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 9px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.file-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; color: #235fc6; background: #eaf2ff; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.file-copy { min-width: 0; display: grid; gap: 2px; }
.file-copy strong { overflow: hidden; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.file-copy span { color: var(--muted); font-size: 8px; }
.file-actions { display: flex; gap: 3px; }
.file-download, .file-remove { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: #68717c; background: #f2f3f3; font-size: 12px; }
.file-remove { color: #a44240; }
.file-add { width: 100%; min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 8px; border: 1px dashed rgba(7,17,31,.18); border-radius: 11px; color: #66707b; background: #fafaf9; cursor: pointer; font-size: 9.5px; font-weight: 650; }
.empty-copy { padding: 13px; border-radius: 11px; color: var(--muted); background: #f7f7f5; text-align: center; font-size: 9px; }
.danger-button { width: 100%; min-height: 38px; margin-top: 4px; border-radius: 11px; color: #a44240; background: #fdebea; font-size: 9.5px; font-weight: 700; }

.app-dialog { width: min(520px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 23px; color: var(--ink); background: white; box-shadow: 0 30px 90px rgba(7,17,31,.25); }
.app-dialog::backdrop { background: rgba(7,17,31,.36); backdrop-filter: blur(4px); }
.app-dialog form { padding: 22px; }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.dialog-head h2 { margin: 5px 0 0; font-family: var(--font-display); font-size: 25px; letter-spacing: -.035em; }
.eyebrow { color: var(--blue); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dialog-close { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; background: #f2f3f3; font-size: 23px; }
.dialog-field { display: grid; gap: 7px; margin-top: 22px; }
.dialog-field span, .color-picker legend { color: var(--muted); font-size: 9px; font-weight: 700; }
.dialog-field input { height: 45px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 12px; outline: 0; font-size: 12px; }
.color-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 18px 0 0; padding: 0; border: 0; }
.color-picker legend { margin-bottom: 8px; }
.color-picker label { position: relative; display: grid; justify-items: center; gap: 5px; padding: 9px 5px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; font-size: 8px; }
.color-picker input { position: absolute; opacity: 0; }
.color-picker i { width: 22px; height: 22px; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 3px white, 0 0 0 4px transparent; }
.color-picker input:checked + i { box-shadow: 0 0 0 3px white, 0 0 0 4px var(--swatch); }
.color-picker label:has(input:checked) { background: #f7f7f5; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }

.confirm-dialog { width: min(420px, calc(100% - 32px)); }
.confirm-dialog form { display: grid; justify-items: center; padding: 28px; text-align: center; }
.confirm-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 15px; color: #b72d2b; background: #fdebea; box-shadow: inset 0 0 0 1px rgba(183,45,43,.08); font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.confirm-copy h2 { margin: 6px 0 0; font-family: var(--font-display); font-size: 24px; letter-spacing: -.035em; }
.confirm-copy p { max-width: 330px; margin: 9px auto 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.confirm-actions { width: 100%; justify-content: stretch; margin-top: 22px; }
.confirm-actions > * { flex: 1; }
.confirm-danger-button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 13px; color: white; background: #c83d3a; box-shadow: 0 9px 22px rgba(164,28,28,.18); font-size: 11px; font-weight: 700; cursor: pointer; }
.confirm-danger-button:hover { background: #b63331; }

.labels-dialog { width: min(650px, calc(100% - 32px)); }
.labels-dialog-content { padding: 22px; }
.labels-dialog .dialog-head p { max-width: 410px; margin: 7px 0 0; color: var(--muted); font-size: 9.5px; line-height: 1.5; }
.label-manager-list { max-height: min(420px, 52vh); display: grid; gap: 7px; overflow-y: auto; margin-top: 20px; padding-right: 3px; scrollbar-width: thin; }
.label-manager-row { --label-color: var(--blue); display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fafaf9; }
.label-color-input { width: 34px; height: 34px; overflow: hidden; padding: 0; border: 0; border-radius: 10px; background: var(--label-color); cursor: pointer; }
.label-color-input::-webkit-color-swatch-wrapper { padding: 0; }
.label-color-input::-webkit-color-swatch { border: 0; border-radius: 9px; }
.label-name-input { min-width: 0; height: 34px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; outline: 0; background: transparent; font-size: 10px; font-weight: 650; }
.label-name-input:hover, .label-name-input:focus { border-color: var(--line); background: white; }
.label-row-delete { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: #a44240; background: #fdebea; font-size: 17px; }
.label-create-form { display: grid; grid-template-columns: minmax(0, 1fr) 75px auto; align-items: end; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.label-create-form label { display: grid; gap: 6px; }
.label-create-form label > span { color: var(--muted); font-size: 8.5px; font-weight: 700; }
.label-create-form input[type="text"] { height: 40px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 11px; outline: 0; font-size: 10px; }
.label-color-field input { width: 75px; height: 40px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: white; cursor: pointer; }

.card-label-popover { position: fixed; z-index: 95; width: 270px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 20px 52px rgba(7,17,31,.2); }
.card-popover-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.card-popover-title strong { font-size: 10px; }
.card-popover-title span { color: var(--muted); font-size: 7.5px; }
.card-popover-list { max-height: 230px; display: grid; gap: 5px; overflow-y: auto; scrollbar-width: thin; }
.card-popover-option { --label-color: var(--blue); min-height: 32px; display: grid; grid-template-columns: 14px 9px 1fr; align-items: center; gap: 7px; padding: 0 8px; border: 1px solid var(--line); border-radius: 9px; background: white; text-align: left; font-size: 8.5px; font-weight: 650; }
.card-popover-option::before { width: 12px; height: 12px; content: ""; border: 1px solid #c8cdd3; border-radius: 4px; }
.card-popover-option.is-active::before { content: "✓"; display: grid; place-items: center; color: white; border-color: var(--label-color); background: var(--label-color); font-size: 7px; }
.card-popover-option i { width: 8px; height: 8px; border-radius: 3px; background: var(--label-color); }
.card-popover-manage { width: 100%; min-height: 34px; margin-top: 9px; border-top: 1px solid var(--line); border-radius: 9px; color: var(--blue); background: #edf3ff; font-size: 8.5px; font-weight: 700; }

.toast-region { position: fixed; z-index: 100; right: 18px; bottom: 18px; display: grid; gap: 8px; pointer-events: none; }
.toast { max-width: 330px; padding: 11px 14px; border-radius: 12px; color: white; background: var(--ink); box-shadow: 0 12px 32px rgba(7,17,31,.23); font-size: 10px; animation: toast-in .2s ease both; }
.toast.is-error { background: #9d3837; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* Dispatcher redesign — flat, dense and intentionally technical. */
:root {
  --cream: #f8f9fa;
  --paper: #ffffff;
  --muted: #6d7785;
  --line: #dce1e7;
  --line-strong: #cbd2da;
  --blue: #246bfe;
  --amber: #f2a62b;
  --violet: #246bfe;
  --coral: #ef525f;
  --emerald: #20aa67;
  --shadow-soft: none;
  --shadow-card: 0 1px 2px rgba(7, 17, 31, 0.035);
}

body {
  background: #fbfbfa;
}

.topbar {
  height: 82px;
  grid-template-columns: max-content minmax(300px, 630px) minmax(0, 1fr);
  gap: 22px;
  padding: 0 22px;
  border: 0;
  background: #fff;
  backdrop-filter: none;
}

body.drawer-open .topbar { padding-right: calc(var(--drawer-width) + 22px); }

.brand { gap: 10px; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 5px;
  box-shadow: none;
}
.brand-name { font-size: 24px; font-weight: 780; }
.brand-caption { display: none; }

.search {
  max-width: 630px;
  justify-self: start;
  height: 46px;
  gap: 11px;
  padding: 0 13px;
  border-color: #d6dce3;
  border-radius: 5px;
  background: #fff;
  box-shadow: none;
}
.search-icon {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  color: #667283;
  font-size: 19px;
  line-height: 1;
}
.search-icon::after { display: none; }
.search input { font-size: 13px; }
.search kbd {
  padding: 3px 6px;
  border-radius: 4px;
  background: #fbfbfa;
  font-size: 9px;
}

.top-actions { gap: 9px; }
.save-state { gap: 8px; color: #536071; font-size: 10.5px; }
.save-state i { width: 7px; height: 7px; box-shadow: 0 0 0 3px rgba(32, 170, 103, 0.1); }

.icon-button,
.label-library-button,
.grid-button {
  min-height: 42px;
  border-color: #d8dde4;
  border-radius: 5px;
  background: #fff;
  box-shadow: none;
}
.icon-button { width: 42px; height: 42px; font-size: 17px; }
.label-library-button,
.grid-button { gap: 7px; padding: 0 12px; font-size: 10px; }
.label-library-button > i,
.grid-button > i {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  color: #344155;
  background: none;
  font-size: 16px;
  line-height: 1;
  transform: none;
}
.label-library-button[aria-expanded="true"],
.grid-button[aria-pressed="true"] {
  border-color: #9eb9f5;
  color: #174fae;
  background: #f5f8ff;
}
.grid-button[aria-pressed="true"] > i { border: 0; color: var(--blue); background: none; }
.toolbar-count {
  min-width: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 8px;
}
.primary-button {
  min-height: 42px;
  gap: 7px;
  padding: 0 14px;
  border-radius: 5px;
  box-shadow: none;
  font-size: 11px;
}
.primary-button > i { font-size: 15px; }
.avatar {
  width: 42px;
  height: 42px;
  border: 1px solid #d8dde4;
  border-radius: 5px;
  color: #0d1a2d;
  background: #fff;
  box-shadow: none;
  font-size: 11px;
}

.label-filter-popover,
.project-popover {
  border-color: #cfd5dc;
  border-radius: 6px;
  box-shadow: 0 18px 46px rgba(7, 17, 31, 0.14);
}
.filter-actions button,
.filter-label-option,
.height-preset,
.menu-danger { border-radius: 4px; }

main { padding: 12px 20px 48px; }
.project-stack { min-width: 0; gap: 0; }

.project {
  min-width: 0;
  width: 100%;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.project-head {
  min-height: 62px;
  padding: 9px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: grab;
}
.project-head:active { cursor: grabbing; }
.project-head input,
.project-head button { cursor: revert; }
.project-reordering,
.project-reordering * {
  cursor: grabbing !important;
  user-select: none !important;
}
.project.is-project-dragging {
  opacity: .24;
  filter: saturate(.55);
}
.project-drag-placeholder {
  position: relative;
  height: 12px;
  margin: -1px 0;
  border: 1px dashed #7c8796;
  background: rgba(36, 107, 254, .055);
  pointer-events: none;
}
.project-drag-placeholder::before {
  position: absolute;
  top: 50%;
  left: -1px;
  width: 42px;
  height: 2px;
  content: "";
  background: #246bfe;
  transform: translateY(-50%);
}
.project-title-wrap { gap: 0; }
.project-glyph { display: none; }
.project-name {
  width: min(720px, 100%);
  height: 38px;
  padding: 0;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.012em;
}
.project-name:hover { background: transparent; }
.project-name:focus {
  padding-inline: 8px;
  border-color: #9eb9f5;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(36, 107, 254, 0.09);
}
.project-menu-button {
  width: 34px;
  height: 34px;
  border-color: #d6dce3;
  border-radius: 5px;
  color: #203047;
  background: #fff;
  font-size: 17px;
}
.project-menu-button::before { display: none; }
.project-menu-button > i { transition: transform .18s ease; }
.project.is-menu-open .project-menu-button > i { transform: rotate(180deg); }

.project-stats { gap: 6px; }
.project-stat { border-radius: 4px; background: #f4f5f6; }
.height-preset.is-active {
  border-color: #91a8ce;
  color: #1c4d9c;
  background: #f3f7fd;
}

.project-board {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: var(--board-height, 340px);
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: #fff;
  overscroll-behavior: contain;
  scrollbar-color: #aeb6c1 #eef0f2;
}
.project-board::-webkit-scrollbar { width: 8px; height: 8px; }
.project-board::-webkit-scrollbar-track { background: #eef0f2; }
.project-board::-webkit-scrollbar-thumb {
  border: 2px solid #eef0f2;
  border-radius: 8px;
  background: #aeb6c1;
}
.columns {
  min-width: 1040px;
  min-height: 100%;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 0;
  padding: 0;
  background: #fff;
}
.column {
  --status: #7d8796;
  min-width: 0;
  min-height: 100%;
  overflow: visible;
  border: 0;
  border-right: 1px solid #d4d9e2;
  border-bottom: 1px solid #d4d9e2;
  border-radius: 0;
  background: color-mix(in srgb, var(--status) 10%, #fff);
}
.column:first-child { border-left: 1px solid #d4d9e2; }
.column[data-status="consider"] { --status: var(--amber); }
.column[data-status="doing"] { --status: var(--blue); }
.column[data-status="questions"] { --status: var(--coral); }
.column[data-status="done"] { --status: var(--emerald); }
.column-head {
  top: 0;
  min-height: 44px;
  padding: 0 12px;
  border-top: 2px solid var(--status);
  border-bottom: 1px solid #d4d9e2;
  background: color-mix(in srgb, var(--status) 7%, #fff);
  backdrop-filter: none;
}
.column-title {
  gap: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.018em;
  text-transform: uppercase;
}
.status-dot { display: none; }
.column-count {
  min-width: auto;
  padding: 0;
  border-radius: 0;
  color: #172337;
  background: transparent;
  font-size: 9px;
}
.card-list {
  min-height: 70px;
  gap: 9px;
  padding: 10px;
}
.card-list.is-drop-target {
  border-radius: 0;
  background: color-mix(in srgb, var(--status) 11%, transparent);
}
.card {
  min-height: 60px;
  gap: 9px;
  padding: 12px 12px 13px;
  border-color: #d8dde4;
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  transition: padding-bottom .18s ease, border-color .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.card:hover {
  padding-bottom: 17px;
  border-color: color-mix(in srgb, var(--status) 42%, #cbd2da);
  box-shadow: 0 5px 14px rgba(7, 17, 31, 0.07);
}
.card.is-selected {
  border-color: var(--status);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--status) 12%, transparent);
}
.card.is-urgent { border: 2px solid #ff3030; }
.card-labels { gap: 7px; padding-right: 0; }
.card-label {
  max-width: 130px;
  padding: 0;
  border-radius: 0;
  color: var(--label-color);
  background: transparent;
  font-size: 8.5px;
  font-weight: 700;
}
.card-label:hover { text-decoration: underline; text-underline-offset: 2px; }
.card h3 {
  padding-right: 0;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}
.card-subtitle { padding-right: 18px; color: #687486; font-size: 8.5px; }
.card-footer { padding-right: 18px; color: #667183; }
.due {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  border-radius: 0;
  color: #5e6979;
  background: transparent;
  white-space: nowrap;
}
.due.is-overdue { color: #c73d48; background: transparent; }
.due.is-done { color: #148b52; background: transparent; }
.card-placeholder {
  min-height: 62px;
  border: 1px dashed color-mix(in srgb, var(--status) 68%, #7c8795);
  border-radius: 4px;
  background: color-mix(in srgb, var(--status) 10%, #fff);
  box-shadow: none;
}

.card:has(.card-footer) { min-height: 72px; }
.card:has(.card-label) { min-height: 108px; }

body.grid-mode .card-list { gap: 8px; padding: 9px; }
body.grid-mode .card {
  height: 96px;
  min-height: 96px;
  grid-template-rows: 14px 15px 12px 18px;
  gap: 5px;
  padding: 8px 10px;
}
body.grid-mode .card:hover { padding-bottom: 8px; }
body.grid-mode .card:has(.card-label),
body.grid-mode .card:has(.card-footer) { min-height: 96px; }

.add-card {
  width: calc(100% - 20px);
  min-height: 38px;
  margin: 0 10px 10px;
  padding: 0 11px;
  border-color: #cdd3da;
  border-radius: 4px;
  color: #657083;
  background: rgba(255, 255, 255, .62);
  font-size: 9px;
}
.add-card > i { font-size: 13px; }
.project-resize::after { height: 3px; border-radius: 2px; background: #b8bec7; }
.project-resize:hover::after,
.project.is-resizing .project-resize::after { background: #667284; }
.add-project-wide {
  min-height: 56px;
  margin-top: 14px;
  border-color: #cbd2da;
  border-radius: 0;
  color: #657083;
  background: #fff;
  font-size: 10.5px;
}
.add-project-wide > i { font-size: 14px; }

.editor-link-glyph::before {
  position: static;
  display: inline-block;
  width: auto;
  height: auto;
  content: "\eeaf";
  border: 0;
  border-radius: 0;
  transform: none;
}
.editor-link-glyph::after { display: none; }
.editor-link-glyph { display: grid; place-items: center; font-size: 18px; }

/* Card workspace — continuation of the dispatcher logbook system */
.drawer {
  --drawer-accent: var(--blue);
  border-left-color: #cbd2da;
  background: #fdfdfc;
  box-shadow: -12px 0 32px rgba(7, 17, 31, .055);
}
.drawer::before {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  height: 2px;
  content: "";
  background: var(--drawer-accent);
}
.drawer-head {
  min-height: 56px;
  padding: 9px 13px 8px 17px;
  border-bottom-color: #cfd5dc;
  background: #fff;
}
.drawer-breadcrumb {
  gap: 5px;
  color: #697485;
  font-size: 8px;
  font-weight: 680;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.drawer-breadcrumb > span:first-child { max-width: 205px; }
.drawer-breadcrumb > .ri-arrow-right-s-line { color: #9aa2ad; font-size: 13px; }
.drawer-status-pill {
  gap: 0;
  padding: 1px 0 1px 7px;
  border-left: 2px solid var(--pill);
  border-radius: 0;
  color: color-mix(in srgb, var(--pill) 78%, #07111f);
  background: transparent;
  font-size: 8px;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.drawer-status-pill > i { display: none; }
.drawer-close {
  width: 32px;
  height: 32px;
  border: 1px solid #d4d9df;
  border-radius: 2px;
  color: #566170;
  background: #fff;
  font-size: 18px;
}
.drawer-close:hover { border-color: #aeb6c1; color: var(--ink); background: #f6f7f7; }
.drawer-scroll {
  padding: 0 18px 24px;
  scrollbar-color: #aeb5bf transparent;
}
.drawer-scroll > .field-label:first-child { margin-top: 17px; }
.field-label {
  margin-bottom: 6px;
  color: #737d8b;
  font-size: 7.5px;
  letter-spacing: .075em;
}
.drawer-title-input {
  min-height: 42px;
  padding: 0 0 8px;
  border-bottom: 1px solid #cfd5dc;
  border-radius: 0;
  font-size: 21px;
  font-weight: 740;
  line-height: 1.16;
}
.drawer-title-input:focus { border-bottom-color: var(--drawer-accent); }
.subtitle-label { margin-top: 15px; }
.drawer-subtitle-input {
  height: 36px;
  padding: 0 10px;
  border-color: #d2d7de;
  border-radius: 2px;
  background: #fff;
  font-size: 9.5px;
}
.drawer-subtitle-input:focus,
.drawer-meta-field select:focus,
.drawer-meta-field input:focus {
  border-color: var(--drawer-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--drawer-accent) 10%, transparent);
  outline: 0;
}
.drawer-meta-grid {
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 16px -18px 0;
  border-top: 1px solid #cfd5dc;
  border-bottom: 1px solid #cfd5dc;
  background: #fff;
}
.drawer-meta-field {
  gap: 5px;
  padding: 10px 18px 11px;
}
.drawer-meta-field + .drawer-meta-field { border-left: 1px solid #d9dde3; }
.drawer-meta-field span {
  color: #737d8b;
  font-size: 7.5px;
  letter-spacing: .065em;
}
.drawer-meta-field select,
.drawer-meta-field input {
  height: 32px;
  padding: 0 7px;
  border-color: #d2d7de;
  border-radius: 2px;
  background: #fbfbfa;
  font-size: 9px;
}
.drawer-time-row {
  grid-column: 1 / -1;
  min-height: 49px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  align-items: center;
  gap: 14px;
  padding: 8px 18px;
  border-top: 1px solid #d9dde3;
}
.drawer-time-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  cursor: pointer;
}
.drawer-time-toggle input { position: absolute; opacity: 0; }
.drawer-time-toggle > i {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid #aeb7c3;
  border-radius: 2px;
  background: #fff;
}
.drawer-time-toggle input:checked + i { border-color: var(--drawer-accent); background: var(--drawer-accent); }
.drawer-time-toggle input:checked + i::after { content: "✓"; color: #fff; font-size: 10px; font-style: normal; font-weight: 800; }
.drawer-time-toggle > span { display: grid; gap: 2px; }
.drawer-time-toggle strong { color: #364151; font-size: 9px; }
.drawer-time-toggle small { color: #87909d; font-size: 7.5px; }
.drawer-time-row > input[type="time"] {
  width: 104px;
  height: 32px;
  padding: 0 7px;
  border: 1px solid #d2d7de;
  border-radius: 2px;
  outline: 0;
  color: var(--ink);
  background: #fbfbfa;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
.drawer-time-row > input[type="time"]:focus { border-color: var(--drawer-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--drawer-accent) 10%, transparent); }
.drawer-time-row.is-disabled { background: #fafafa; }
.drawer-time-row.is-disabled .drawer-time-toggle { cursor: not-allowed; opacity: .55; }
.urgent-toggle {
  grid-column: 1 / -1;
  min-height: 46px;
  gap: 9px;
  padding: 8px 18px;
  border: 0;
  border-top: 1px solid #ead5d7;
  border-radius: 0;
  background: #fff8f8;
}
.urgent-toggle > i {
  width: 18px;
  height: 18px;
  border-width: 1px;
  border-radius: 2px;
}
.urgent-toggle strong { font-size: 9px; }
.urgent-toggle small { font-size: 7.5px; }
.card-label-section {
  margin: 0 -18px;
  padding: 14px 18px 15px;
  border-bottom: 1px solid #cfd5dc;
  background: #fff;
}
.section-title { margin-bottom: 9px; }
.section-title h2,
.collapsible-title h2 {
  font-size: 9px;
  font-weight: 760;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.section-title > span { font-size: 7.5px; }
.text-button { color: #285fb8; font-size: 8px; }
.collapsible-title { gap: 4px; }
.collapsible-title > i {
  width: auto;
  height: auto;
  margin: 0;
  border: 0;
  color: #7c8694;
  font-size: 14px;
  line-height: 1;
  transform: none;
  transition: transform .16s ease;
}
.collapsible-title[aria-expanded="true"] > i { margin: 0; transform: rotate(180deg); }
.drawer-label-list { gap: 6px; }
.drawer-label-chip {
  padding: 3px 7px 3px 6px;
  border-left: 2px solid var(--label-color);
  border-radius: 0;
  font-size: 8px;
}
.drawer-label-option {
  min-height: 28px;
  padding: 0 8px;
  border-radius: 2px;
  font-size: 8px;
}
.drawer-label-option::before { border-radius: 1px; }
.drawer-section {
  margin: 0 -18px;
  padding: 15px 18px 16px;
  border-top: 0;
  border-bottom: 1px solid #cfd5dc;
  background: #fdfdfc;
}
.drawer-section:first-of-type { margin-top: 0; }
.rich-editor-shell {
  border-color: #cfd5dc;
  border-radius: 2px;
  background: #fff;
}
.rich-editor-shell:focus-within {
  border-color: var(--drawer-accent);
  background: #fff;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--drawer-accent) 9%, transparent);
}
.editor-toolbar {
  min-height: 38px;
  gap: 2px;
  padding: 3px 5px;
  border-radius: 1px 1px 0 0;
  background: #f5f6f4;
}
.editor-toolbar button {
  width: 30px;
  height: 30px;
  border-radius: 2px;
  font-size: 14px;
}
.editor-toolbar button > [class^="ri-"] { font-size: 16px; line-height: 1; }
.editor-toolbar button:hover,
.editor-toolbar button.is-active {
  border-color: #cfd5dc;
  background: #fff;
  box-shadow: none;
}
.editor-toolbar-separator { height: 18px; margin: 0 3px; }
.editor-glyph { width: 16px; height: 16px; font-size: 14px; line-height: 16px; }
.editor-link-glyph { width: 16px; height: 16px; font-size: 16px; }
.editor-emoji-fallback { width: 17px; height: 17px; font-size: 17px; }
.editor-toolbar #editorEmojiButton .apple-emoji { width: 17px; height: 17px; }
.description-editor {
  min-height: 138px;
  padding: 11px 12px 14px;
  border-radius: 0 0 1px 1px;
  color: #3f4956;
  background: #fff;
  font-size: 10px;
  line-height: 1.58;
}
.editor-link-popover,
.emoji-picker {
  border-color: #c6cdd6;
  border-radius: 2px;
  box-shadow: 0 16px 36px rgba(7, 17, 31, .15);
}
.editor-link-popover input,
.editor-link-popover button,
.emoji-picker-head label,
.emoji-picker-head > button,
.emoji-category,
.emoji-option { border-radius: 2px; }
.emoji-picker-head,
.emoji-categories,
.emoji-picker-foot { border-color: #cfd5dc; }
.file-list { gap: 6px; }
.file-row {
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 7px;
  border-color: #d3d8de;
  border-radius: 2px;
  box-shadow: none;
}
.file-icon {
  width: 32px;
  height: 32px;
  border-radius: 2px;
  font-size: 7.5px;
}
.file-download,
.file-remove { width: 26px; height: 26px; border-radius: 2px; }
.file-add {
  min-height: 36px;
  border-color: #cbd2da;
  border-radius: 2px;
  background: #fff;
  font-size: 9px;
}
.empty-copy {
  padding: 11px;
  border: 1px dashed #d4d9df;
  border-radius: 0;
  background: transparent;
  font-size: 8.5px;
}
.danger-button {
  min-height: 36px;
  margin-top: 16px;
  border: 1px solid #e4b8bb;
  border-radius: 2px;
  color: #a43138;
  background: #fffafa;
  font-size: 9px;
}
.danger-button:hover { border-color: #cd7378; background: #fff2f2; }

@media (max-width: 1500px) {
  :root { --drawer-width: 420px; }
  .topbar { grid-template-columns: max-content minmax(240px, 1fr) max-content; gap: 20px; padding-inline: 20px; }
  body.drawer-open .topbar { padding-right: calc(var(--drawer-width) + 20px); }
  .brand-caption { display: none; }
  main { padding-inline: 20px; }
}

@media (max-width: 1180px) {
  body.drawer-open { padding-right: 0; }
  body.drawer-open .topbar { padding-right: 18px; }
  .topbar { grid-template-columns: max-content minmax(220px, 1fr) auto; padding-inline: 18px; }
  .save-state span { display: none; }
  .top-actions .icon-button, .top-actions .avatar { display: none; }
  .drawer { width: min(450px, 100%); }
  .summary { display: none; }
}

@media (max-width: 760px) {
  .topbar { height: auto; grid-template-columns: 1fr auto; gap: 10px; padding-block: 11px; }
  .brand-name { font-size: 21px; }
  .brand-mark { width: 34px; height: 34px; }
  .search { grid-column: 1 / -1; grid-row: 2; }
  .top-actions .save-state { display: none; }
  .label-library-button, .grid-button { width: 40px; padding: 0; justify-content: center; font-size: 0; }
  .toolbar-count { display: none; }
  .primary-button { padding-inline: 11px; }
  main { padding: 22px 14px 56px; }
  .page-heading { align-items: start; }
  .page-heading h1 { font-size: 29px; }
  .page-heading p { max-width: 420px; line-height: 1.5; }
  .project-head { padding-left: 0; }
  .project-popover { position: fixed; inset: auto 14px 18px; width: auto; }
  .project-board { height: min(var(--board-height, 340px), 70vh); }
  .project-resize { display: none; }
  .drawer-meta-grid { grid-template-columns: 1fr; }
  .drawer-meta-field + .drawer-meta-field { border-top: 1px solid #d9dde3; border-left: 0; }
  .drawer-scroll { padding-inline: 14px; }
  .drawer-meta-grid,
  .card-label-section,
  .drawer-section { margin-inline: -14px; }
  .drawer-meta-field,
  .drawer-time-row,
  .urgent-toggle,
  .card-label-section,
  .drawer-section { padding-inline: 14px; }
  .label-create-form { grid-template-columns: 1fr auto; }
  .label-create-form > label:first-child { grid-column: 1 / -1; }
}

/* Account and sign-in */
.account-wrap {
  position: relative;
  flex: 0 0 auto;
}

button.avatar {
  padding: 0;
  cursor: pointer;
}

button.avatar:hover,
button.avatar[aria-expanded="true"] {
  border-color: #9eb9f5;
  color: #174fae;
  background: #f5f8ff;
}

.account-popover {
  position: absolute;
  z-index: 90;
  top: calc(100% + 9px);
  right: 0;
  width: 260px;
  overflow: hidden;
  border: 1px solid #cfd5dc;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(7, 17, 31, 0.14);
}

.account-popover[hidden],
.auth-gate[hidden] { display: none; }

.account-summary {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 13px;
  border-bottom: 1px solid #e0e4e8;
}

.account-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: #0d1a2d;
  background: #eef3fa;
  font-size: 10px;
  font-weight: 750;
}

.account-summary > span:last-child { min-width: 0; }
.account-summary strong,
.account-summary small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-summary strong { color: #0d1a2d; font-size: 10px; }
.account-summary small { margin-top: 3px; color: #778293; font-size: 8px; }

.account-popover > button {
  width: 100%;
  min-height: 38px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 13px;
  border: 0;
  color: #3f4b5b;
  background: #fff;
  font: inherit;
  font-size: 9px;
  text-align: left;
  cursor: pointer;
}
.account-popover > button:hover { color: #a43138; background: #fff7f7; }

.auth-gate {
  position: fixed;
  z-index: 70;
  inset: 82px 0 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(125, 135, 150, .045) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(rgba(125, 135, 150, .045) 1px, transparent 1px) 0 0 / 72px 72px,
    #f8f9f7;
}

.auth-card {
  width: min(430px, 100%);
  padding: 38px 38px 34px;
  border: 1px solid #cfd5dc;
  border-top: 3px solid #0d1a2d;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(7, 17, 31, .08);
}

.auth-card > img {
  width: 58px;
  height: 58px;
  display: block;
  margin-bottom: 26px;
  border-radius: 5px;
}

.auth-eyebrow {
  display: block;
  margin-bottom: 9px;
  color: #687485;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.auth-card h1 {
  margin: 0;
  color: #0d1a2d;
  font-family: var(--font-display);
  font-size: 31px;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.auth-card > p:not(.auth-status) {
  max-width: 340px;
  margin: 14px 0 25px;
  color: #657183;
  font-size: 11px;
  line-height: 1.55;
}

.google-signin {
  min-height: 44px;
  display: flex;
  align-items: center;
  opacity: 1;
  transition: opacity .16s ease;
}
.google-signin.is-busy { opacity: .45; pointer-events: none; }

.auth-status {
  min-height: 16px;
  margin: 14px 0 0;
  color: #7a8594;
  font-size: 8px;
  line-height: 1.45;
}

body[data-auth="required"] main,
body[data-auth="loading"] main { visibility: hidden; }
body[data-auth="required"] .search,
body[data-auth="required"] .top-actions,
body[data-auth="loading"] .search,
body[data-auth="loading"] .top-actions { visibility: hidden; }

@media (max-width: 760px) {
  .auth-gate { inset: 60px 0 0; padding: 14px; }
  .auth-card { padding: 28px 24px 25px; }
  .auth-card h1 { font-size: 28px; }
}

/* Final workspace controls */
.topbar {
  box-shadow: 0 5px 18px rgba(7, 17, 31, .075);
}

.project-tools {
  display: flex;
  align-items: center;
  gap: 7px;
}

.project-collapse-button,
.project-delete-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d6dce3;
  border-radius: 5px;
  color: #354255;
  background: #fff;
  font: inherit;
  font-size: 9px;
  font-weight: 680;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.project-collapse-button {
  width: 34px;
  padding: 0;
  font-size: 17px;
}
.project-collapse-button:hover { border-color: #aeb8c5; color: #0d1a2d; background: #f8f9fa; }
.project-delete-button { gap: 6px; padding: 0 11px; }
.project-delete-button > i { font-size: 13px; }
.project-delete-button:hover { border-color: #efb8bc; color: #b1323d; background: #fff7f7; }
.project.is-collapsed .project-head { min-height: 50px; }
.project-board[hidden] { display: none !important; }

.site-footer {
  position: fixed;
  z-index: 38;
  inset: auto 0 0;
  height: 6px;
  min-height: 0;
  display: grid;
  grid-template-columns: max-content minmax(240px, 1fr) max-content;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0 22px;
  overflow: hidden;
  border-top: 0;
  color: #6c7786;
  background: #f6f7f6;
  box-shadow: 0 -5px 18px rgba(7, 17, 31, 0);
  font-size: 9px;
  transition: height .26s ease, padding .26s ease, box-shadow .26s ease, right .24s ease;
}
.site-footer::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, #c3ff4f 0 70px, #62d2ff 70px 140px, #0d1a2d 140px 100%);
}
.site-footer.is-expanded {
  height: 82px;
  padding: 16px 22px 18px;
  box-shadow: 0 -9px 28px rgba(7, 17, 31, .09);
}
.site-footer > * {
  opacity: 0;
  transform: translateY(9px);
  transition: opacity .16s ease, transform .2s ease;
}
.site-footer.is-expanded > * {
  opacity: 1;
  transform: translateY(0);
}
.footer-brand { display: flex; align-items: baseline; gap: 9px; white-space: nowrap; }
.footer-brand strong { color: #0d1a2d; font-size: 13px; letter-spacing: -.015em; }
.footer-brand span { color: #87909c; }
.site-footer p { max-width: 520px; margin: 0; line-height: 1.55; }
.site-footer nav { display: flex; align-items: center; gap: 18px; }
.site-footer a { color: #3f526c; font-weight: 680; text-underline-offset: 3px; }
.site-footer a:hover { color: #174fae; }
.site-footer .footer-site-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border-radius: 5px;
  color: #fff;
  background: #0d1a2d;
  text-decoration: none;
}
.site-footer .footer-site-link:hover { color: #0d1a2d; background: #c3ff4f; }
.site-footer .footer-site-link > i { font-size: 13px; }
body.drawer-open .site-footer { right: var(--drawer-width); }
main { padding-bottom: 112px; }
body[data-auth="required"] .site-footer,
body[data-auth="loading"] .site-footer { visibility: hidden; }

.tour-overlay {
  position: fixed;
  z-index: 140;
  inset: 0;
  pointer-events: auto;
}
.tour-overlay[hidden] { display: none; }
.tour-spotlight {
  position: fixed;
  z-index: 1;
  border: 2px solid rgba(195, 255, 79, .95);
  border-radius: 7px;
  background: rgba(255, 255, 255, .025);
  box-shadow: 0 0 0 9999px rgba(5, 13, 24, .66), 0 0 0 5px rgba(195, 255, 79, .12);
  pointer-events: none;
  transition: left .2s ease, top .2s ease, width .2s ease, height .2s ease, opacity .15s ease;
}
.tour-card {
  position: fixed;
  z-index: 2;
  width: min(360px, calc(100vw - 24px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 7px;
  color: #eef4fc;
  background: #0b1727;
  box-shadow: 0 20px 58px rgba(0, 0, 0, .34);
}
.tour-progress { display: grid; grid-template-columns: max-content 1fr; align-items: center; gap: 10px; margin-bottom: 15px; }
.tour-progress > span { color: #a9b6c7; font-size: 8px; font-weight: 720; letter-spacing: .08em; }
.tour-progress > i { height: 2px; overflow: hidden; background: rgba(255,255,255,.13); }
.tour-progress b { height: 100%; display: block; background: #c3ff4f; transition: width .2s ease; }
.tour-card h2 { margin: 0; color: #fff; font-family: var(--font-display); font-size: 19px; line-height: 1.15; letter-spacing: -.025em; }
.tour-card p { min-height: 54px; margin: 10px 0 18px; color: #b9c5d4; font-size: 10px; line-height: 1.55; }
.tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tour-actions > div { display: flex; gap: 7px; }
.tour-actions button {
  min-height: 35px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 5px;
  color: #e8eef7;
  background: transparent;
  font: inherit;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}
.tour-actions button:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
.tour-actions .tour-skip { padding-inline: 0; border-color: transparent; color: #8f9caf; }
.tour-actions .tour-next { border-color: #c3ff4f; color: #08111e; background: #c3ff4f; }
.tour-actions .tour-next:hover { border-color: #d1ff77; background: #d1ff77; }
.tour-actions button:focus-visible { outline: 2px solid #62d2ff; outline-offset: 2px; }

@media (min-width: 761px) and (max-width: 1100px) {
  .site-footer { grid-template-columns: max-content 1fr; }
  .site-footer.is-expanded { height: 112px; }
  .site-footer nav { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .site-footer { grid-template-columns: 1fr; gap: 10px; padding-inline: 16px; }
  .site-footer.is-expanded { height: 174px; padding-block: 16px; }
  .site-footer nav { flex-wrap: wrap; gap: 12px 18px; }
  body.drawer-open .site-footer { right: 0; }
  .tour-card { padding: 16px; }
  .tour-card p { min-height: 0; }
}

/* One rectangular geometry across every Potok surface */
:root { --ui-radius: 3px; }

button,
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea,
dialog,
[contenteditable="true"],
.brand-mark,
.search,
.label-filter-popover,
.filter-label-option,
.card,
.card-placeholder,
.add-project-wide,
.empty-state,
.drawer,
.rich-editor-shell,
.editor-link-popover,
.emoji-picker,
.card-label-popover,
.account-popover,
.account-avatar,
.auth-card,
.auth-card > img,
.label-manager-row,
.confirm-icon,
.toast,
.tour-spotlight,
.tour-card,
.site-footer .footer-site-link {
  border-radius: var(--ui-radius) !important;
}

.editor-toolbar { border-radius: 2px 2px 0 0 !important; }
.description-editor { border-radius: 0 0 2px 2px !important; }
.filter-label-option::before,
.card-popover-option::before,
.drawer-time-toggle > i,
.urgent-toggle > i { border-radius: 2px !important; }

.card-list > .add-card {
  width: 100%;
  min-height: 46px;
  margin: 0;
  flex: 0 0 auto;
  border-color: #cbd2da;
  background: rgba(255, 255, 255, .72);
}

/* Card focus mode */
.card-focus-button {
  position: absolute;
  z-index: 4;
  top: auto;
  right: 13px;
  bottom: 13px;
  width: 8px;
  height: 8px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #8a95a5;
  border-radius: 50% !important;
  color: #0d1a2d;
  background: rgba(255, 255, 255, .9);
  box-shadow: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: scale(.7);
  transition: opacity .1s ease, border-color .1s ease, background .1s ease, transform .1s ease;
}
.card-focus-button::before {
  position: absolute;
  inset: -5px;
  content: "";
}
.card:hover .card-focus-button,
.card:focus-within .card-focus-button {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.card-focus-button:hover {
  border-color: #0d1a2d;
  background: #fff;
  transform: scale(1.08);
}
.card-focus-button:focus-visible {
  outline: 2px solid #246bfe;
  outline-offset: 2px;
}
.card-focus-button[aria-pressed="true"] {
  border-color: #0d1a2d;
  background: #0d1a2d;
}
body.focus-mode .card-focus-button {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(.7);
}

body.focus-mode::after {
  position: fixed;
  z-index: 110;
  inset: 0;
  content: "";
  background: rgba(248, 249, 247, .8);
  pointer-events: auto;
}
body.focus-mode .card.is-focused {
  position: relative;
  z-index: 120;
  box-shadow: 0 16px 42px rgba(7, 17, 31, .2);
  cursor: default;
}
body.focus-mode .card.is-focused:hover { padding-bottom: 13px; }
body.grid-mode.focus-mode .card.is-focused:hover { padding-bottom: 8px; }
