:root {
  --petrol: #2f6f7e;
  --petrol-dark: #255c69;
  --night: #1f2430;
  --blue: #7fb8c9;
  --bg: #f3f5f7;
  --panel: #f6f8f9;
  --field-line: #dfe3e6;
  --ink: var(--night);
  --muted: #5b6672;
  --line: #e0e6e8;
  --card: #ffffff;
  --accent: var(--primary);
  --accent-dark: #3d8496;
  --accent-soft: rgba(95, 163, 184, 0.18);
  --accent-ink: #ffffff;
  --petrol-soft: rgba(47, 111, 126, 0.12);
  --primary: #5fa3b8;
  --danger: #c43a22;
  --sans: "Outfit", "Inter", system-ui, "Segoe UI", sans-serif;
  --serif: var(--sans);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.18);
  /* Lavender swap: --loose-bg #e6e1f5; --loose-on #564583; --loose-detail-a #564583; --loose-detail-b #443571; */
  --loose-bg: #dcebf0;
  --loose-ink: var(--ink);
  --loose-muted: var(--muted);
  --loose-tile: #fff;
  --loose-on: #3a7a8e;
  --loose-on-ink: #fff;
  --loose-detail-a: #3a7a8e;
  --loose-detail-b: #2f6577;
  --loose-detail-ink: #fff;
  --loose-idea: rgba(0, 0, 0, 0.12);
  --loose-pill: #fff;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.in { padding-bottom: env(safe-area-inset-bottom); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--petrol-soft); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: white;
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { left: 12px; }

.login {
  min-height: 100dvh;
  display: grid;
  align-content: center;
  gap: 28px;
  padding: calc(28px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom));
  max-width: 1080px;
  margin: 0 auto;
}
.kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--petrol);
}
.login-title {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.login-lede {
  max-width: 34ch;
  margin: 16px 0 0;
  font-size: 1.12rem;
  color: var(--muted);
}
.card-panel {
  background: var(--card);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field span, .label {
  font-size: 0.82rem;
  color: var(--muted);
}
.field input, .field textarea, .field select, .ask-row input, .ask-row textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--field-line);
  background: #fff;
  padding: 11px 12px;
  font-size: 16px;
}
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible,
.ask-row input:focus-visible, .ask-row textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
.field textarea { min-height: 88px; resize: vertical; }
.form-error { color: var(--danger); margin: 0 0 12px; min-height: 0; }
.demo { margin-top: 18px; }
.demo summary { cursor: pointer; color: var(--muted); }
.demo-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  border: 0;
  background: transparent;
  border-top: 1px solid var(--line);
  padding: 10px 0;
}
.demo-row strong { display: block; }
.demo-row em { font-style: normal; color: var(--muted); font-size: 0.88rem; }

.shell { min-height: 100dvh; }
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 264px;
  max-width: 82vw;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
  overflow: hidden;
  background: var(--card);
  border-right: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: translateX(-104%);
  transition: transform 0.22s ease;
}
.shell.is-menu .sidebar { transform: none; }
.menu-back {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(16, 24, 40, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.shell.is-menu .menu-back { opacity: 1; pointer-events: auto; }
.main { padding: 0 0 24px; min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-top));
  margin: 0 0 16px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.menu-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card);
  color: var(--ink);
}
.menu-btn svg { width: 22px; height: 22px; }
.top-filters {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.top-filters .search { flex: 1 1 140px; min-width: 0; }
.top-filters select {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 44vw;
  border-radius: 12px;
  border: 1px solid var(--field-line);
  background: #fff;
  padding: 9px 10px;
  font-size: 0.92rem;
}
.top-filters .kicker { margin: 0; }
.search {
  border-radius: 12px;
  border: 1px solid var(--field-line);
  background: #fff;
  padding: 9px 12px;
  font-size: 0.95rem;
}
.search:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.brand strong { display: block; font-family: var(--sans); font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.05; }
.brand em { display: block; font-style: normal; color: var(--muted); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; }
.side-quiet { display: grid; gap: 3px; }
.nav-btn {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  text-align: left;
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--muted);
  font-weight: 600;
}
.nav-btn svg { width: 20px; height: 20px; flex: none; }
.nav-btn.is-on { background: var(--accent-soft); color: #1a5568; border-radius: 12px; }
.nav-btn.is-on svg { color: #1a5568; }
.nav-count, .nav-badge { margin-left: auto; color: #1a5568; font-size: 0.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(95, 163, 184, 0.45);
}
.sidebar .btn.primary { margin-top: 12px; justify-content: center; }
.side-scroll { flex: 1; min-height: 0; overflow: auto; }
.side-foot { flex: none; display: flex; align-items: center; gap: 8px; padding-top: 10px; }
.side-foot .btn.primary { flex: 1; margin-top: 0; }
.side-customer { display: block; margin: 0 2px 8px; }
.side-customer select {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 10px 12px;
}
.side-customer-name { margin: 0 8px 8px; font-weight: 700; }
.side-label-row { display: flex; align-items: center; gap: 8px; }
.side-label-row .side-label { margin-right: auto; }
.side-add {
  border: 0;
  background: transparent;
  color: #1a5568;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0 8px;
}
.side-project-row {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.side-project-row .side-project {
  flex: 1;
  min-width: 0;
}
.side-project-manage {
  flex: none;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1;
  opacity: 0.55;
}
.side-project-row:hover .side-project-manage,
.side-project-row:focus-within .side-project-manage,
.side-project-manage:focus-visible {
  opacity: 1;
  background: var(--panel);
  color: var(--ink);
}
.side-more { margin-top: 2px; }
.side-more summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 650;
  list-style: none;
}
.side-more summary::-webkit-details-marker { display: none; }
.gear-wrap { position: relative; flex: none; }
.gear-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
.gear-btn svg { width: 20px; height: 20px; }
.gear-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 5;
  min-width: 196px;
  padding: 6px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.rail-btn {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 1.4rem;
  line-height: 1;
}
.rail-only { display: none; }
.side-label {
  margin: 16px 12px 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5c6770;
}
.mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 800;
  font-size: 1.15rem;
}
.top-tools { display: flex; align-items: center; gap: 8px; }
.bell {
  position: relative;
  border: 0;
  background: transparent;
  font-weight: 600;
  padding: 8px 4px;
  border-radius: 999px;
}
.bell-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.3rem;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.35rem;
}
.questions { display: grid; gap: 8px; margin: 8px 0 4px; }
.question { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.question-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.question-head strong { font-size: 0.85rem; }
.question-edit { border: 0; background: transparent; color: var(--muted); font-size: 0.82rem; font-weight: 600; padding: 0; }
.question-form textarea {
  width: 100%;
  margin-top: 8px;
  min-height: 140px;
  border-radius: 12px;
  border: 1px solid var(--field-line);
  background: #fff;
  padding: 12px;
  font-size: 16px;
  line-height: 1.45;
  resize: vertical;
}
.question-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.question p { margin: 4px 0 0; }
.ask-row { display: flex; gap: 8px; align-items: flex-end; }
.ask-row textarea { flex: 1; min-width: 0; min-height: 96px; resize: vertical; line-height: 1.45; }
.question-body p, .question-body ul, .question-body ol, .question-body h3 { margin: 4px 0 0; }
.question-body pre { margin: 6px 0 0; }
.question-body h3.fmt-h, .task-read h3.fmt-h, .brief-read h3.fmt-h, .report-text h3.fmt-h, .draft-briefing h3.fmt-h {
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 14px 0 8px;
}
.fmt-count {
  margin: 4px 2px 0;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.fmt-count.is-over { color: var(--danger); }
.fmt-table-wrap {
  max-width: 100%;
  margin: 8px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.fmt-table {
  border-collapse: collapse;
  width: max-content;
  min-width: min(100%, 36rem);
  font-size: 0.92em;
}
.fmt-table th, .fmt-table td {
  border: 1px solid #e7dfd6;
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
  background: #fff;
  min-width: 7rem;
  max-width: 11rem;
  overflow-wrap: anywhere;
}
.fmt-table th { background: #f6f1ea; font-weight: 700; }
.fmt-table tbody tr:nth-child(even) td { background: #fbf8f4; }
.fmt-hr {
  border: 0;
  border-top: 1px solid #e7dfd6;
  margin: 12px 0;
  height: 0;
}
.question-body .fmt-hr, .task-read .fmt-hr, .brief-read .fmt-hr, .report-text .fmt-hr, .draft-briefing .fmt-hr {
  margin: 10px 0;
}
.fmt-img {
  display: block;
  max-width: min(100%, 28rem);
  height: auto;
  margin: 8px 0;
  border-radius: 10px;
}
.fmt { min-width: 0; }
.fmt.is-over,
.week-goal.is-over {
  box-shadow: inset 0 0 0 2px var(--primary);
  border-radius: 10px;
}
.fmt:has(textarea[hidden]) { display: none; }
.fmt-bar {
  display: none;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 6px;
}
.fmt:focus-within > .fmt-bar { display: flex; }
.fmt-bar button {
  border: 0;
  background: #f6f1ea;
  color: #3c4a52;
  border-radius: 999px;
  padding: 3px 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
}
.fmt-bar button:hover,
.fmt-bar button:focus-visible { background: #efe4d6; }
.fmt-checks { list-style: none; padding-left: 0; }
.fmt-checks li { display: flex; align-items: flex-start; gap: 8px; margin: 2px 0; }
.fmt-box {
  width: 15px;
  height: 15px;
  margin-top: 0.2em;
  flex: none;
  border-radius: 4px;
  border: 1.5px solid #c5b8aa;
  background: #fff;
}
.fmt-checks li.is-on .fmt-box { background: #e7f6ee; border-color: #3d9a62; }
.fmt-checks li.is-on .fmt-box::after {
  content: "";
  display: block;
  width: 7px;
  height: 4px;
  margin: 3px 0 0 3px;
  border-left: 2px solid #3d9a62;
  border-bottom: 2px solid #3d9a62;
  transform: rotate(-45deg);
}
.notice-list { display: grid; gap: 8px; }
.notice {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  border: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.notice.is-new { background: var(--card); box-shadow: inset 3px 0 0 var(--accent); }
.notice.is-approval { background: #fde8e2; box-shadow: inset 3px 0 0 var(--danger); }
.notice small { color: var(--muted); }
.pill.report { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.plus {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1;
}
.me-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 4px;
  border-radius: 999px;
}
.me-chip .who { font-weight: 600; }
.page-head { display: grid; gap: 10px; margin-bottom: 16px; padding: 0 14px; }
.content { padding: 0 14px; }
.chips { padding-left: 14px; padding-right: 14px; }
.page-title {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.page-sub { margin: 6px 0 0; color: var(--muted); max-width: 46ch; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: 0 0 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip, .nav-btn, .status, .choice, .person, .seg button, .tab {
  border: 0;
  background: transparent;
}
.chip {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 13px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font-weight: 500;
}
.chip.is-on { background: var(--accent); color: #fff; box-shadow: none; }

.stack { display: grid; gap: 18px; }
.stack-h {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.board-scroll { overflow-x: auto; width: 100%; max-width: 100%; padding-bottom: 12px; }
.board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: start;
  gap: 16px;
  width: max-content;
  min-width: 100%;
}
.board > .col {
  flex: 0 0 300px;
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  overflow: hidden;
}
.board > .col-add {
  flex: 0 0 168px;
  width: 168px;
  min-width: 168px;
  max-width: 168px;
}
.board .col-list {
  min-height: 88px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  grid-template-columns: minmax(0, 1fr);
}
.add-lane {
  width: 100%;
  min-height: 140px;
  border: 1.5px dashed rgba(27, 25, 20, 0.28);
  border-radius: 18px;
  background: transparent;
  font-weight: 600;
}
.col-name {
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--serif);
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}
.board .card, .board .card .card-hit { cursor: grab; }
.board .card .status { cursor: pointer; }
.board .card.is-dragging, .board .card.is-dragging .card-hit { cursor: grabbing; opacity: 0.45; }
.board .col.is-drop {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.45);
  outline: 1.5px dashed rgba(27, 25, 20, 0.38);
  outline-offset: 6px;
}
.col-h {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  align-items: center;
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 560;
  min-width: 0;
}
.col-h[draggable="true"] { cursor: grab; }
.col-h.is-lane-from { opacity: 0.45; }
.col-grip {
  flex: none;
  width: 18px;
  height: 22px;
  margin: 0 2px 0 -4px;
  color: var(--muted);
  cursor: grab;
  background: radial-gradient(circle, currentColor 1.15px, transparent 1.25px) 3px 3px / 6px 5px;
}
.board > .col.is-lane-drop { box-shadow: inset 3px 0 0 var(--ink); border-radius: 16px; }
.col-h .col-count {
  margin-left: auto;
  min-width: 1.5rem;
  padding: 1px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--field-line);
  color: #1a5568;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}
.col-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.ask-bubble {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  border: 0;
  border-radius: 999px;
  padding: 2px 8px;
  background: #e7e4df;
  color: #5c584f;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}
.ask-bubble.is-hot { background: #f3c3b4; color: #8a3b2a; }
.ask-bubble.is-out { background: #cfe3ea; color: var(--petrol-dark); }
.ask-pulse {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #e07a62;
  box-shadow: 0 0 0 0 rgba(224, 122, 98, 0.65);
  animation: ask-pulse 1.6s ease-out infinite;
}
.ask-pulse.is-out {
  background: var(--petrol);
  box-shadow: 0 0 0 0 rgba(47, 111, 126, 0.55);
  animation-name: ask-pulse-out;
}
@keyframes ask-pulse {
  70% { box-shadow: 0 0 0 6px rgba(224, 122, 98, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 122, 98, 0); }
}
@keyframes ask-pulse-out {
  70% { box-shadow: 0 0 0 6px rgba(47, 111, 126, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 111, 126, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .ask-pulse { animation: none; }
}
.wait-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--field-line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px 6px 12px;
  font: inherit;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
}
.wait-filter .who-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0 6px;
  border-radius: 999px;
  background: #e7e4df;
  color: #5c584f;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.45;
}
.wait-filter.is-on:not(.is-hot):not(.is-out) { background: #f4f1ec; border-color: #cfc9c0; }
.wait-filter.done-filter.is-on {
  background: var(--petrol-soft);
  border-color: var(--petrol);
  color: var(--petrol-dark);
}
.wait-filter.done-filter.is-on .who-n { background: #fff; color: var(--petrol-dark); }
.wait-filter.is-hot {
  background: #fff6f2;
  border-color: #e07a62;
  color: #8a3b2a;
}
.wait-filter.is-hot .who-n { background: #f3c3b4; color: #8a3b2a; }
.wait-filter.is-hot.is-on {
  background: #e07a62;
  border-color: #c4563f;
  color: #fff;
}
.wait-filter.is-hot.is-on .who-n { background: #fff; color: #8a3b2a; }
.wait-filter.is-hot.is-on .ask-pulse {
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.75);
  animation-name: ask-pulse-light;
}
.wait-filter.is-out {
  background: #eef6f8;
  border-color: #7fb8c9;
  color: var(--petrol-dark);
}
.wait-filter.is-out .who-n { background: #cfe3ea; color: var(--petrol-dark); }
.wait-filter.is-out.is-on {
  background: var(--petrol);
  border-color: var(--petrol-dark);
  color: #fff;
}
.wait-filter.is-out.is-on .who-n { background: #fff; color: var(--petrol-dark); }
.wait-filter.is-out.is-on .ask-pulse {
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.75);
  animation-name: ask-pulse-light;
}
@keyframes ask-pulse-light {
  70% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .wait-filter .ask-pulse { animation: none; }
}
.board-tools { margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ask-read { margin-left: auto; }
.card.is-ask { background: #fff6f2; box-shadow: inset 4px 0 0 #e07a62, var(--shadow); }
.card.is-ask-out { background: #eef6f8; box-shadow: inset 4px 0 0 var(--petrol), var(--shadow); }
.card.is-approval { background: #fde8e2; box-shadow: inset 4px 0 0 var(--danger), var(--shadow); }
.card {
  text-align: left;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  background: var(--card);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.card-top, .card-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.card-top > *, .card-foot > * { min-width: 0; max-width: 100%; }
.who-line { display: flex; align-items: flex-start; gap: 8px; min-width: 0; max-width: 100%; color: var(--muted); font-size: 0.88rem; }
.who-line > span { min-width: 0; overflow-wrap: anywhere; }
.card-hit {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 0 4px;
  white-space: normal;
}
.card-title {
  margin: 0;
  font-family: var(--sans);
  font-weight: 650;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.filters { display: grid; gap: 8px; }
.filters select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
  font-size: 16px;
}
.drop {
  border: 1.5px dashed rgba(21, 20, 15, 0.22);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  background: var(--card);
  margin: 4px 0 12px;
}
.drop.is-over { background: #f0efea; border-color: var(--ink); }
.drop p { margin: 0; color: var(--muted); }
.drop button { border: 0; background: transparent; padding: 0; font-weight: 600; text-decoration: underline; cursor: pointer; }
.thumbs, .card-images { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs { margin: 0 0 12px; }
.thumbs figure { position: relative; margin: 0; }
.thumb-open {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 12px;
  cursor: zoom-in;
}
.thumbs img, .card-images img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: var(--panel);
}
.file-row { position: relative; max-width: 100%; }
.file-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 280px;
  padding: 8px 28px 8px 8px;
  border-radius: 12px;
  background: var(--panel);
  color: inherit;
  text-decoration: none;
}
.file-pdf {
  flex: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 7px 5px;
  border-radius: 6px;
  background: #f3d6d0;
  color: #6d2c24;
}
.file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.file-size { flex: none; color: var(--muted); font-size: 12px; }
.file-row .thumb-x { top: 50%; right: 4px; transform: translateY(-50%); }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 28px 20px;
  background: rgba(27, 25, 20, 0.86);
}
.lightbox img {
  max-width: calc(100vw - 48px);
  max-height: calc(100dvh - 80px);
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}
.lightbox-x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 99px;
  background: #fff;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
}
.card-images { margin: 10px 0 0; }
.card-images img { width: 72px; height: 52px; }
.thumb-x {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 99px;
  background: rgba(27, 25, 20, 0.78);
  color: #fff;
  line-height: 1;
}
.card-note {
  margin: 6px 0 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.card-note p, .card-note ul, .card-note ol, .card-note pre { margin: 0 0 4px; }
.card-note p:last-child, .card-note ul:last-child, .card-note ol:last-child, .card-note pre:last-child { margin: 0; }
.card-note code, .note-preview code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: rgba(27, 25, 20, 0.06);
  padding: 0.08em 0.32em;
  border-radius: 5px;
}
.card-note pre, .note-preview pre {
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 12px;
  overflow: auto;
  background: rgba(27, 25, 20, 0.04);
}
.card-note pre code, .note-preview pre code { background: transparent; padding: 0; white-space: pre; }
.card-note a, .note-preview a, .question-body a, .task-read a, .brief-read a, .report-text a, .draft-briefing a, .topic-docs a { color: var(--primary); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; max-width: 100%; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  border-radius: 999px;
  padding: 4px 9px 4px 7px;
  background: color-mix(in srgb, var(--c) 16%, white);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: normal;
  overflow-wrap: anywhere;
}
.dot { width: 8px; height: 8px; border-radius: 99px; background: var(--c); display: inline-block; }
.lock { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  max-width: 100%;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: normal;
  overflow-wrap: anywhere;
  background: var(--panel);
  color: var(--night);
}
.status[data-kind="open"] { background: var(--panel); color: var(--night); }
.status[data-kind="doing"], .status[data-kind="ask"] { background: #d7e9ef; color: var(--petrol-dark); }
.status[data-kind="live"] { background: var(--petrol-soft); color: var(--petrol-dark); }
.status[data-kind="skip"] { background: #e7e9ec; color: #6b7280; }
.status[data-kind="done"] { background: var(--petrol); color: #fff; }
.card.is-done { opacity: 0.72; }
.avatars { display: flex; }
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  color: #f7f4ee;
  font-size: 0.68rem;
  font-weight: 600;
  border: 2px solid var(--card);
  margin-left: -6px;
}
.avatars .avatar:first-child { margin-left: 0; }
.avatar.more { background: var(--panel); color: var(--ink); }
.due { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; max-width: 100%; overflow-wrap: anywhere; }
.due.overdue { color: var(--danger); font-weight: 600; }
.due.today { color: #8a4e10; font-weight: 600; }
.empty {
  padding: 28px 8px 12px;
  max-width: 36ch;
}
.empty h2 { font-family: var(--serif); font-weight: 560; font-size: 2rem; margin: 0 0 8px; letter-spacing: -0.03em; }
.empty p { color: var(--muted); margin: 0 0 16px; }

.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 600;
  background: transparent;
}
.btn.primary { background: var(--primary); color: #fff; }
.btn.ghost { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.btn.danger { color: var(--danger); padding-left: 0; }
.sheet-bar .btn.danger {
  padding: 12px 16px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--danger) 55%, transparent);
}
.btn.wide { width: 100%; }
.btn:disabled { opacity: 0.55; }

.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}
.tab svg { width: 22px; height: 22px; }
.tab.is-on { color: var(--ink); background: rgba(255,255,255,.8); }

.sheet-back {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(28, 24, 18, 0.38);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet {
  width: min(640px, 100%);
  max-height: min(92dvh, 880px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 24px 24px 0 0;
  box-shadow: var(--shadow-lg);
  padding: 0;
}
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px 0; flex: none; }
.sheet-scroll { overflow: auto; padding: 4px 18px 12px; }
.sheet-bar {
  flex: none;
  display: grid;
  gap: 8px;
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--card);
}
.sheet-head h2 { margin: 0; font-family: var(--sans); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; }
.title-input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 8px 0 12px;
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sheet-scroll.is-todo { padding: 6px 22px 20px; }
.sheet-scroll.is-todo .title-input {
  border-bottom: 1px solid var(--line);
  margin: 0 0 18px;
  padding-bottom: 14px;
}
.sheet-scroll.is-todo .field span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sheet-scroll.is-todo .field { margin-bottom: 12px; }
.sheet-scroll.is-todo .field input,
.sheet-scroll.is-todo .field textarea,
.sheet-scroll.is-todo .field select {
  background: #fff;
  border-color: var(--field-line);
}
.sheet-scroll.is-todo .field textarea { min-height: 108px; }
.note-stack { margin: -4px 0 16px; }
.sheet-scroll.is-todo .note-input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 148px;
  resize: vertical;
  line-height: 1.45;
}
.note-stack .questions { margin: 2px 0 12px; }
.card-note ul, .card-note ol, .question-body ul, .question-body ol { padding-left: 1.2em; }
.question-body ul.fmt-checks, .task-read ul.fmt-checks, .brief-read ul.fmt-checks, .report-text ul.fmt-checks, .draft-briefing ul.fmt-checks { padding-left: 0; }
.note-stack .drop {
  margin-top: -2px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px dashed rgba(27, 25, 20, 0.22);
}
.note-stack .thumbs { margin: 10px 0 4px; }
.sheet-block {
  margin: 0 0 12px;
  padding: 14px 14px 8px;
  background: var(--panel);
  border-radius: 18px;
}
.sheet-block .kicker { margin-bottom: 10px; }
.sheet-block .choice-grid,
.sheet-block .people { margin: 0 0 10px; }
.sheet-scroll.is-todo .seg {
  margin: 0 0 6px;
  padding: 0;
  gap: 8px;
  background: transparent;
}
.sheet-scroll.is-todo .seg button {
  flex: 0 0 auto;
  border: 0;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 500;
}
.sheet-scroll.is-todo .seg button.is-on {
  background: var(--accent);
  color: var(--accent-ink);
}
.sheet-scroll.is-todo .choice,
.sheet-scroll.is-todo .person {
  background: #fff;
  border-color: transparent;
  box-shadow: 0 0 0 1px rgba(27, 25, 20, 0.06);
}
.sheet-scroll.is-todo .choice.is-on,
.sheet-scroll.is-todo .person.is-on {
  outline: none;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--c, var(--ink));
}
.who-groups { display: flex; flex-direction: column; gap: 14px; margin: 2px 0 10px; }
.who-group .kicker { margin: 0 0 8px; }
.who-group .people { margin: 0; }
.person .avatar { margin-left: 0; border-color: #fff; }
.who-block .coverage {
  margin: 2px 0 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(27, 25, 20, 0.08);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}
.coverage {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.92rem;
}
.sheet-scroll.is-todo .switch {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
@media (max-width: 560px) {
  .pair { grid-template-columns: 1fr; }
}
.choice-grid, .people { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.choice, .person {
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 500;
}
.choice.is-on, .person.is-on {
  outline: 2px solid var(--c, var(--ink));
  background: color-mix(in srgb, var(--c, #1b1914) 14%, white);
}
.person { display: inline-flex; align-items: center; gap: 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 16px; }
.seg button { flex: 1 1 120px; border-radius: 12px; padding: 10px 6px; background: #fff; border: 1px solid var(--line); font-weight: 600; }
.seg button.is-on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.switch {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 4px 0 16px;
}
.switch input { width: 18px; height: 18px; margin-top: 3px; }
.swatches { display: flex; gap: 8px; margin: 8px 0 16px; }
.swatch {
  width: 28px; height: 28px; border-radius: 99px; border: 2px solid white;
  box-shadow: 0 0 0 1px rgba(27,25,20,.15);
}
.swatch.is-on { box-shadow: 0 0 0 2px var(--ink); }
.cluster-grid { display: grid; gap: 18px; }
.cluster-card {
  text-align: left;
  border-radius: var(--radius);
  padding: 18px;
  background: var(--card);
  border: 0;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--c);
}
.cluster-card h3 { margin: 0; font-family: var(--serif); font-size: 1.6rem; font-weight: 560; }
.cluster-card p { margin: 4px 0 12px; color: var(--muted); }
.link-list { max-width: 720px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.link-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.link-row a {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.link-row strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 560; }
.link-row small { color: var(--muted); display: block; }
.link-go {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--panel);
  flex: 0 0 auto;
}
.link-tools { display: flex; gap: 4px; flex: 0 0 auto; }
.link-tools button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 10px;
}
.link-tools button:hover { background: var(--panel); color: var(--ink); }
.link-tools button:disabled { opacity: 0.35; }

.person-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.person-row .grow { flex: 1; min-width: 0; }
.person-row small { color: var(--muted); display: block; }
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  z-index: 40;
  max-width: min(90vw, 420px);
}
.banner {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.top-tools .excel-btn { padding: 8px 12px; }
.ext-no { color: var(--muted); font-weight: 600; margin-right: 6px; font-variant-numeric: tabular-nums; }
.sheet.is-excel { width: min(960px, 100%); }
.hint { color: var(--muted); font-size: 0.82rem; margin: 0 0 8px; }
.map-list { display: grid; gap: 10px; }
.map-row { display: grid; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.map-row select { width: 100%; border-radius: 12px; border: 1px solid var(--field-line); background: #fff; padding: 12px; }
.badge { display: inline-block; border-radius: 999px; padding: 2px 8px; background: #dcebf0; color: var(--petrol-dark); font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.badge.is-new { background: #dce8e1; }
.badge.is-update { background: #f3e0c8; }
.table-h { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; font-family: var(--serif); font-weight: 560; font-size: 1.35rem; letter-spacing: -0.03em; flex-wrap: wrap; }
.table-h .count { margin-left: auto; color: var(--muted); font-family: var(--sans); font-size: 0.85rem; font-weight: 600; }
.table-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-bottom: 8px; }
.view-switch { display: flex; flex-wrap: wrap; gap: 6px; }
.view-switch button { border: 0; border-radius: 999px; padding: 8px 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.view-switch button.is-on { background: var(--primary); color: #fff; box-shadow: none; }
.theme-wall { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; }
.theme-card {
  display: grid;
  align-content: start;
  align-self: start;
  min-width: 0;
  gap: 10px;
  text-align: left;
  background: var(--tint, #f4f0fc);
  border: 0;
  border-radius: 15px;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(31, 36, 48, 0.05);
  color: var(--tint-ink, var(--ink));
  font: inherit;
}
.theme-hit { display: grid; gap: 10px; min-width: 0; cursor: pointer; }
.theme-card h2 { margin: 0; font-family: var(--sans); font-weight: 650; font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1.2; color: var(--tint-ink, var(--ink)); }
.theme-top { display: flex; align-items: flex-start; gap: 10px; }
.theme-top h2 { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.theme-title { min-width: 0; }
.theme-card .geschafft { flex: none; padding: 1px 7px; font-size: 0.68rem; }
.theme-card.is-done { background-image: linear-gradient(155deg, rgba(255, 255, 255, 0.62), transparent 48%); }
.theme-archive {
  margin: 0 16px 12px;
  border: 0;
  background: transparent;
  color: #5c6770;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.theme-card.is-archived { box-shadow: none; }
.btn.ghost.is-on { box-shadow: inset 0 0 0 1px #8aa0ad; }
.theme-ring { flex: none; width: 44px; height: 44px; }
.theme-ring-track { fill: none; stroke: color-mix(in srgb, var(--tint-ink) 22%, white); stroke-width: 4; }
.theme-ring-value {
  fill: none;
  stroke: var(--tint-ink);
  stroke-width: 4;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 22px 22px;
  stroke-dasharray: var(--ring-len);
  stroke-dashoffset: var(--ring-off);
  animation: theme-ring-draw 0.7s ease forwards;
}
.theme-ring.is-full .theme-ring-track { fill: var(--tint-ink); stroke: var(--tint-ink); }
.theme-ring-label {
  fill: var(--tint-ink);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-anchor: middle;
  dominant-baseline: central;
}
.theme-ring-check {
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  animation: theme-check-in 0.25s ease 0.5s forwards;
}
.theme-ring.is-drawn .theme-ring-value,
.theme-ring.is-drawn .theme-ring-check { animation: none; }
.theme-ring.is-drawn .theme-ring-value { stroke-dashoffset: var(--ring-off); }
.theme-ring.is-drawn .theme-ring-check { opacity: 1; }
.theme-meter { display: grid; gap: 6px; }
.theme-bar { height: 3px; border-radius: 999px; background: color-mix(in srgb, var(--tint-ink) 16%, white); overflow: hidden; }
.theme-bar span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: var(--tint-ink);
  transform: scaleX(var(--bar));
  transform-origin: left center;
  animation: theme-bar-grow 0.7s ease forwards;
}
.theme-bar.is-drawn span { animation: none; }
.theme-stand { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.theme-chip { border-radius: 999px; padding: 1px 7px; font-size: 0.72rem; font-weight: 700; line-height: 1.4; }
.theme-chip.is-late { background: #f8e8e4; color: var(--danger); }
.theme-chip.is-work { background: var(--petrol-soft); color: var(--petrol-dark); }
.theme-note { color: var(--muted); font-size: 0.78rem; }
.theme-faces { display: flex; margin: 0; }
.theme-faces .avatar { width: 22px; height: 22px; font-size: 0.58rem; border-color: rgba(255, 255, 255, 0.85); }
@keyframes theme-ring-draw { from { stroke-dashoffset: var(--ring-len); } to { stroke-dashoffset: var(--ring-off); } }
@keyframes theme-check-in { to { opacity: 1; } }
@keyframes theme-bar-grow { from { transform: scaleX(0); } to { transform: scaleX(var(--bar)); } }
@media (prefers-reduced-motion: reduce) {
  .theme-ring-value, .theme-ring-check, .theme-bar span { animation: none; }
  .theme-ring-value { stroke-dashoffset: var(--ring-off); }
  .theme-ring-check { opacity: 1; }
  .theme-bar span { transform: scaleX(var(--bar)); }
}
.theme-card.is-drop {
  background: #fff;
  outline: 1.5px dashed rgba(27, 25, 20, 0.45);
  outline-offset: 4px;
}
.theme-goal, .theme-who, .theme-stand { margin: 0; }
.theme-hit + .theme-mini { margin-top: 2px; }
.theme-mini {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--muted);
}
.theme-mini-label { flex: 0 0 auto; font-weight: 600; }
.theme-mini-names {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  min-width: 0;
  overflow: hidden;
}
.theme-name {
  flex: 0 0 auto;
  max-width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-weight: 500;
  line-height: inherit;
  white-space: nowrap;
  cursor: pointer;
}
.theme-name + .theme-name::before,
.theme-name + .theme-more::before {
  content: "·";
  margin: 0 0.45em;
  font-weight: 500;
}
.theme-name:hover { text-decoration: underline; }
.theme-name.is-on { color: var(--tint-ink, var(--ink)); font-weight: 650; }
.theme-name.is-clip { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.theme-more { flex: 0 0 auto; white-space: nowrap; }
.subtheme {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 8px 10px;
  background: #fff;
  color: var(--tint-ink, var(--ink));
  font: inherit;
  font-size: 0.85rem;
  font-weight: 650;
  text-align: left;
}
.subtheme > span:first-child { min-width: 0; }
.subtheme-n { flex: 0 0 auto; font-variant-numeric: tabular-nums; font-size: 0.75rem; font-weight: 700; }
.subtheme-list { display: grid; gap: 8px; }
.subtheme { border: 1px solid var(--field-line); background: var(--panel); color: var(--ink); border-radius: 14px; padding: 12px 14px; }
.subtheme.is-on { background: #5fa3b8; border-color: #5fa3b8; color: #fff; }
.table-nest.is-child { margin-left: 22px; }
.draft-box { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: none; border: 1px solid var(--field-line); }
.draft-label, .draft-goal, .draft-note, .draft-who, .draft-kicker, .draft-briefing { margin: 0; }
.draft-kicker { color: var(--muted); font-size: 0.75rem; font-weight: 650; }
.draft-briefing p { margin: 0 0 0.6em; white-space: pre-wrap; }
.draft-briefing p:last-child { margin-bottom: 0; }
.cursor-order { white-space: pre-wrap; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--panel); box-shadow: none; font: inherit; }
.cursor-result-text { margin: 4px 0 0; line-height: 1.5; }
.cursor-block { display: grid; gap: 10px; }
.cursor-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cursor-head .kicker { margin: 0; }
.cursor-badge { flex: 0 0 auto; border-radius: 999px; padding: 2px 10px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; background: var(--panel); color: var(--muted); }
.cursor-badge.is-freigegeben { background: var(--accent-soft); color: var(--primary); }
.cursor-badge.is-laeuft { background: var(--accent-soft); color: var(--primary); }
.cursor-badge.is-fertig { background: var(--petrol-soft); color: var(--petrol); }
.ticket-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 3px; }
.ticket-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.ticket-label { flex: 0 0 auto; min-width: 92px; font-weight: 700; text-transform: uppercase; font-size: 0.7em; letter-spacing: 0.04em; color: var(--muted); }
.ticket-text { flex: 1; min-width: 0; }
.ticket-check {
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.ticket-check .draft-label { margin: 0; }
.ticket-check .hint,
.ticket-check .form-error { margin: 6px 0 0; }
.ticket-check .check-stored { margin: 6px 0 0; padding: 0; background: transparent; }
.ticket-status {
  flex: none;
  border-radius: 999px;
  padding: 1px 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--line);
}
.ticket-line.is-found .ticket-status { background: var(--petrol-soft); color: var(--petrol-dark); box-shadow: none; }
.ticket-line.is-miss .ticket-status { background: #f8e8e4; color: var(--danger); box-shadow: none; }
.check-ticket { display: block; background: var(--panel); border: 0; border-radius: 12px; padding: 10px 12px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.check-list li { background: var(--panel); border: 0; border-radius: 12px; padding: 8px 12px; }
.check-list li.check-row { display: flex; align-items: center; gap: 8px; }
.check-list li.check-miss { color: var(--muted); }
.check-open { flex: 1; text-align: left; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; color: inherit; font: inherit; }
.check-open:hover { text-decoration: underline; }
.check-where { color: inherit; text-decoration: underline; white-space: nowrap; }
.check-stored { display: block; background: var(--panel); border: 0; border-radius: 12px; padding: 10px 12px; margin: 6px 0; }
.check-stored p { margin: 0 0 2px; }
.check-stored.check-miss strong { color: var(--muted); }
.check-when { color: var(--muted); font-size: 0.8rem; }
.check-finish { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.check-stored .check-finish { margin-top: 8px; }
.check-ask { font-weight: 650; }
.check-finish button { border: 1px solid var(--line, #d9d9e3); border-radius: 999px; padding: 3px 12px; background: #fff; cursor: pointer; font: inherit; }
.check-finish .check-yes { background: var(--accent, #2d6cdf); border-color: var(--accent, #2d6cdf); color: #fff; }
.check-finish button:hover { filter: brightness(0.96); }
.check-all { padding: 8px 10px; border-radius: 10px; background: var(--accent-soft, #eef3ff); border: 1px solid var(--accent, #2d6cdf); margin-bottom: 10px; }
.draft-label { font-weight: 650; }
.draft-note, .draft-who { color: var(--muted); }
.draft-work { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.draft-work li { display: flex; justify-content: space-between; gap: 12px; }
.theme-card > .btn {
  justify-self: start;
  align-self: start;
  width: auto;
  height: auto;
  max-width: 100%;
}
.theme-who span { display: block; color: var(--tint-ink, var(--muted)); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.04em; margin-bottom: 2px; }
.theme-card .draft-box, .theme-card .draft-box .draft-note, .theme-card .draft-box .draft-label { color: var(--ink); }
.theme-card .draft-box .draft-note { color: var(--muted); }
.loose-panel {
  position: relative;
  margin-top: 42px;
  padding: 28px 16px 16px;
  border-radius: 28px;
  background: var(--loose-bg);
  color: var(--loose-ink);
}
.loose-seg {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--loose-pill);
  box-shadow: 0 8px 22px rgba(31, 36, 48, 0.12);
}
.loose-seg button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  padding: 8px 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.loose-seg button.is-on { background: var(--loose-on); color: var(--loose-on-ink); }
.loose-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.loose-head h2 { margin: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; color: var(--loose-ink); }
.loose-head h2 span { margin-left: 6px; color: var(--loose-muted); font-variant-numeric: tabular-nums; }
.loose-icons { display: flex; gap: 8px; }
.loose-icons button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: var(--loose-tile);
  color: var(--loose-ink);
  font-size: 1.1rem;
  box-shadow: 0 1px 2px rgba(31, 36, 48, 0.06);
}
.loose-icons svg { width: 18px; height: 18px; }
.loose-split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 14px; align-items: start; }
.loose-col { display: grid; gap: 8px; }
.loose-ticket {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 16px;
  padding: 10px 12px;
  background: var(--loose-tile);
  color: var(--loose-ink);
  cursor: pointer;
}
.loose-ticket.is-on { background: var(--loose-on); color: var(--loose-on-ink); }
.loose-ticket .avatar { flex: 0 0 auto; }
.loose-copy { min-width: 0; display: grid; }
.loose-title {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.loose-title:hover { text-decoration: underline; }
.loose-copy small { color: var(--loose-muted); }
.loose-ticket.is-on small { color: var(--loose-on-ink); }
.loose-detail {
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(160deg, var(--loose-detail-a), var(--loose-detail-b));
  color: var(--loose-detail-ink);
}
.loose-kicker { margin: 0 0 4px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.8; }
.loose-detail h3 { margin: 0 0 8px; font-size: 1.25rem; letter-spacing: -0.02em; }
.loose-note { margin: 0 0 12px; line-height: 1.45; }
.loose-detail dl { display: flex; gap: 18px; margin: 0 0 14px; }
.loose-detail dt { font-size: 0.72rem; opacity: 0.75; }
.loose-detail dd { margin: 0; font-weight: 700; }
.loose-ideas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.loose-idea {
  border: 0;
  border-radius: 14px;
  padding: 10px;
  text-align: left;
  background: var(--loose-idea);
  color: var(--loose-detail-ink);
  cursor: pointer;
}
.loose-idea strong, .loose-idea small { display: block; }
.loose-idea small { opacity: 0.75; font-size: 0.72rem; }
.loose-idea.is-on { background: #fff; color: var(--ink); }
.loose-idea.is-new { border: 1.5px dashed #fff; background: transparent; font-weight: 700; }
.loose-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.loose-open {
  flex: 1 0 100%;
  text-align: center;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}
.loose-go { background: #fff; color: var(--ink); }
.loose-second { background: transparent; color: var(--loose-detail-ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7); }
.loose-empty { margin: 0; color: var(--loose-muted); }
.loose-inline { display: none; }
@media (max-width: 800px) {
  .loose-split { grid-template-columns: 1fr; }
  .loose-side { display: none; }
  .loose-inline { display: block; margin: 8px 0; }
  .loose-seg { max-width: calc(100% - 24px); overflow: auto; }
}
.loose-group h2 { font-family: var(--serif); font-weight: 560; font-size: 1.45rem; letter-spacing: -0.03em; margin: 0 0 8px; }
.loose-list { list-style: none; margin: 0; padding: 0; }
.loose-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.loose-handle { display: grid; gap: 2px; min-width: 0; cursor: grab; }
.loose-handle.is-dragging { opacity: 0.45; cursor: grabbing; }
.loose-row .text-btn { cursor: pointer; }
.loose-row div { min-width: 0; }
.loose-row span { color: var(--muted); font-size: 0.85rem; }
.release-block { display: grid; gap: 12px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.release-line { margin: 0; font-size: 1.08rem; }
.topic-q { display: grid; gap: 12px; }
.topic-q h2 { font-family: var(--sans); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; margin: 14px 0 0; }
.who-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.who-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--field-line);
  border-radius: 999px;
  padding: 3px 9px;
  background: #fff;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.35;
}
.who-pill .who-n { font-variant-numeric: tabular-nums; font-weight: 700; }
.who-pill.is-on { background: #5fa3b8; border-color: #5fa3b8; color: #fff; }
.who-pill.is-quiet { background: transparent; color: var(--muted); cursor: default; }
.topic-hero h1 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.05rem); letter-spacing: -0.03em; line-height: 1.15; }
.topic-lead { margin: 6px 0 0; font-size: 1.05rem; }
.topic-project { margin: 4px 0 0; color: var(--muted); font-size: 0.85rem; font-weight: 650; }
.topic-filters { display: grid; gap: 8px; }
.topic-filters .who-pills { margin: 0; }
.topic-work { display: grid; gap: 12px; }
.topic-work > h2 { margin: 0; font-family: var(--sans); font-weight: 700; font-size: 1.2rem; }
.topic-fold { align-self: start; height: auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.topic-fold > summary { cursor: pointer; padding: 14px 18px; font-weight: 700; }
.topic-fold:not([open]) > .topic-fold-body { display: none; }
.topic-fold-body { display: grid; gap: 12px; padding: 0 18px 18px; }
.topic-save-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; }
.topic-save-row .form-error { margin: 0; margin-right: auto; }
.topic-fold .topic-card { box-shadow: none; padding: 0; background: transparent; }
.topic-more { position: relative; margin-left: auto; }
.topic-more > summary {
  list-style: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--field-line);
  font-weight: 700;
}
.topic-more > summary::-webkit-details-marker { display: none; }
.topic-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 4;
  min-width: 11rem;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.work-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.work-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.work-row.is-ask { background: #fff6f2; box-shadow: inset 4px 0 0 #e07a62; }
.work-row.is-ask-out { background: #eef6f8; box-shadow: inset 4px 0 0 var(--petrol); }
.work-row.is-approval { background: #fde8e2; box-shadow: inset 4px 0 0 var(--danger); }
.work-main { min-width: 0; display: grid; gap: 2px; }
.work-task { border: 0; background: transparent; text-align: left; padding: 0; min-width: 0; font-weight: 600; }
.work-person { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.work-result { display: block; color: var(--muted); font-size: 0.78rem; }
@media (max-width: 640px) {
  .view-switch button { flex: 1 1 auto; text-align: center; padding: 8px 8px; }
  .work-row { grid-template-columns: 1fr auto auto; }
  .work-main { grid-column: 1 / -1; }
  .work-person { grid-column: 1; }
  .loose-row { align-items: flex-start; flex-direction: column; }
  .table-nest.is-child { margin-left: 8px; }
}
.table-topic { border: 0; background: transparent; padding: 0; font: inherit; color: inherit; text-align: left; }
.text-btn { border: 0; background: transparent; padding: 0; color: var(--muted); font-weight: 650; font-size: 0.82rem; }
.topic-chip { border: 0; background: var(--petrol-soft); color: var(--accent); border-radius: 999px; padding: 3px 8px; font-size: 0.78rem; font-weight: 650; max-width: 100%; }
.topic-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 8px; font-family: var(--sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.topic-badge.is-briefing_fehlt { background: #f3e2c4; color: #7a4e12; }
.topic-badge.is-in_arbeit { background: #d9e6f2; color: #1e4f86; }
.topic-badge.is-zur_freigabe { background: #f6dfc8; color: #8a4b12; }
.topic-badge.is-freigegeben { background: #d7eee4; color: #14624a; }
.topic-badge.is-nachbesserung { background: #f8d9d2; color: #8d2f24; }
.topic-page { display: grid; gap: 18px; width: 100%; min-width: 0; align-items: start; }
.topic-split { display: grid; gap: 18px; align-items: start; width: 100%; min-width: 0; }
.topic-brief {
  display: grid;
  align-content: start;
  align-self: start;
  gap: 0;
  min-width: 0;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0;
}
.topic-brief > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
}
.topic-brief > summary::-webkit-details-marker { display: none; }
.topic-brief > summary::marker { content: ''; }
.topic-brief .brief-summary-main {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  flex: 1 1 12rem;
}
.topic-brief .brief-summary-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.topic-brief .brief-summary-title::before {
  content: '';
  width: 0.45em;
  height: 0.45em;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform 0.16s ease;
}
.topic-brief[open] .brief-summary-title::before { transform: rotate(45deg); }
.topic-brief .brief-hint {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 550;
}
.topic-brief .brief-hint.is-empty { font-style: italic; }
.topic-brief .brief-body {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
}
.topic-brief:not([open]) > .brief-body { display: none; }
.topic-brief .field { margin: 0; }
.topic-work { align-self: start; min-width: 0; }
.topic-cols { display: grid; gap: 18px; align-items: start; }
.topic-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
  background: var(--card);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.topic-card > h2 { font-family: var(--sans); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; margin: 0; }
.topic-card .field { margin-bottom: 0; }
#briefing .field textarea { min-height: 12rem; }
#briefing.is-empty .field textarea { min-height: 4.5rem; }
@media (min-width: 760px) and (max-width: 1099px) {
  .topic-cols { grid-template-columns: 1fr 1fr; }
  .topic-cols > #rueckmeldung,
  .topic-cols > #wer-macht-was,
  .topic-cols > #darf-das-raus { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .topic-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topic-cols > #wer-macht-was { grid-column: span 2; }
}
.topic-page .field input, .topic-page .field select, .topic-page .field textarea { width: 100%; border-radius: 12px; border: 1px solid var(--field-line); background: #fff; padding: 11px 12px; font-size: 16px; }
.topic-page .field textarea { min-height: 160px; line-height: 1.45; resize: vertical; }
.topic-bar, .topic-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.topic-decision, .topic-tasks-wrap { display: grid; gap: 10px; }
.topic-decision h2, .topic-tasks-wrap h2 { font-family: var(--serif); font-size: 1.35rem; font-weight: 560; margin: 8px 0 0; }
.topic-note { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin: 0; }
.topic-docs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.topic-docs li { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--card); border-radius: 12px; padding: 10px 12px; }
.topic-docs a { font-weight: 650; }
.topic-tasks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.topic-tasks li { display: flex; gap: 8px; align-items: center; }
.topic-task { flex: 1; min-width: 0; text-align: left; border: 0; background: var(--card); border-radius: 14px; padding: 10px 12px; display: grid; gap: 2px; }
.topic-task small { color: var(--muted); }
.topic-actions .grow { flex: 1; min-width: 180px; }
.table-wrap { overflow: auto; background: var(--card); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.grid-table, .diff-table { width: 100%; border-collapse: collapse; }
.grid-table { min-width: 720px; }
.grid-table th, .diff-table th { text-align: left; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 10px; font-weight: 600; }
.grid-table td, .diff-table td { padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.grid-table tr.is-overdue { background: rgba(156, 59, 50, 0.08); }
.grid-table tr.is-done { opacity: 0.72; }
.grid-table .num, .diff-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-hit { border: 0; background: transparent; padding: 0; text-align: left; font-weight: 600; }
.grid-table select { border-radius: 12px; border: 1px solid var(--field-line); background: #fff; padding: 6px 8px; max-width: 9rem; }
.list-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.list-title-row .search { flex: 0 1 280px; }
.stage-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.stage-tile {
  display: grid;
  gap: 4px;
  text-align: left;
  border: 0;
  border-radius: 18px;
  background: #fff;
  padding: 12px 14px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  cursor: pointer;
}
.stage-tile span { font-size: 0.78rem; font-weight: 700; }
.stage-tile strong { font-size: 1.85rem; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stage-tile small { color: var(--muted); font-size: 0.72rem; }
.stage-tile.is-on { box-shadow: inset 0 0 0 2px var(--night); }
.list-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.list-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 6px 12px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 650;
}
.list-pill select {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--muted);
  padding-right: 2px;
  max-width: 11rem;
}
.list-pill.is-toggle { cursor: pointer; color: var(--muted); }
.list-pill.is-toggle.is-on { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--night); }
.list-card { background: #fff; border-radius: 22px; box-shadow: var(--shadow); overflow: auto; }
.list-table { width: 100%; border-collapse: collapse; }
.list-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--muted);
  background: #f6f8f9;
  padding: 12px 16px;
}
.list-table td {
  padding: 10px 16px;
  height: 60px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.list-row { cursor: pointer; }
.list-row.is-ask { background: #fff6f2; }
.list-row.is-ask td:first-child { box-shadow: inset 4px 0 0 #e07a62; }
.list-row.is-ask-out { background: #eef6f8; }
.list-row.is-ask-out td:first-child { box-shadow: inset 4px 0 0 var(--petrol); }
.list-row.is-approval { background: #fde8e2; }
.list-row.is-approval td:first-child { box-shadow: inset 4px 0 0 var(--danger); }
.list-row:hover { background: rgba(95, 163, 184, 0.1); }
.list-row.is-ask:hover { background: #fff1ea; }
.list-row.is-ask-out:hover { background: #e4f0f4; }
.list-row.is-approval:hover { background: #fbd9d0; }
.list-row.is-done { opacity: 0.72; }
.list-title { display: block; font-weight: 700; letter-spacing: -0.01em; }
.ticket-id {
  margin-right: 6px;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.week-rank {
  color: var(--petrol);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.list-theme { display: block; margin-top: 2px; color: var(--muted); font-size: 0.78rem; }
.list-who { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.list-person { display: flex; align-items: center; gap: 8px; min-width: 0; }
.list-person span:last-child { min-width: 0; }
.list-person.is-empty { color: var(--muted); }
.list-due { display: flex; gap: 6px; align-items: baseline; font-variant-numeric: tabular-nums; white-space: nowrap; }
.list-due em { font-style: normal; color: var(--muted); font-size: 0.78rem; }
.list-due em.is-late, .due-meter.is-late i { color: var(--danger); }
.due-meter { display: block; width: 72px; height: 4px; margin-top: 6px; border-radius: 99px; background: #e6ebed; overflow: hidden; }
.due-meter i { display: block; height: 100%; border-radius: inherit; background: #5fa3b8; }
.due-meter.is-late i { background: var(--danger); }
.list-status-cell { position: relative; white-space: nowrap; }
.list-badge { cursor: pointer; white-space: nowrap; }
.list-menu {
  position: absolute;
  z-index: 5;
  right: 12px;
  top: calc(100% - 8px);
  min-width: 10rem;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.list-menu button { display: block; width: 100%; border: 0; background: transparent; text-align: left; padding: 8px 10px; border-radius: 8px; font-weight: 650; }
.list-menu button:hover { background: var(--panel); }
.list-hint { color: var(--muted); font-size: 0.8rem; max-width: 16rem; }
.list-band td { height: auto; padding: 8px 16px; background: #f3f5f7; border-top: 0; }
.list-band-name { border: 0; background: transparent; padding: 0; font: inherit; font-weight: 700; color: var(--muted); }
button.list-band-name { cursor: pointer; }
.list-band-n { margin-left: 8px; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 650; }
@media (max-width: 900px) {
  .stage-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .list-title-row { align-items: stretch; flex-direction: column; }
  .list-title-row .search { flex-basis: auto; width: 100%; }
  .list-table thead { display: none; }
  .list-table, .list-table tbody, .list-table tr, .list-table td { display: block; width: auto; }
  .list-card { background: transparent; box-shadow: none; overflow: visible; }
  .list-table tr.list-row {
    margin: 0 0 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .list-table tr.list-row.is-ask {
    background: #fff6f2;
    box-shadow: inset 4px 0 0 #e07a62, var(--shadow);
  }
  .list-table tr.list-row.is-ask-out {
    background: #eef6f8;
    box-shadow: inset 4px 0 0 var(--petrol), var(--shadow);
  }
  .list-table tr.list-row.is-approval {
    background: #fde8e2;
    box-shadow: inset 4px 0 0 var(--danger), var(--shadow);
  }
  .list-table tr.list-row td { height: auto; border: 0; padding: 4px 0; }
  .list-table tr.list-row td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .list-band td { border-radius: 12px; margin-bottom: 8px; }
  .list-status-cell { white-space: normal; }
  .list-menu { right: 0; left: 0; }
}
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

@media (min-width: 720px) {
  .sheet-back { align-items: center; padding: 24px; }
  .sheet { border-radius: 24px; max-height: min(86dvh, 840px); }
  .sheet-bar { padding-bottom: 16px; }
}
@media (min-width: 960px) {
  body.in { padding-bottom: 0; }
  .shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 20px; padding: 20px; align-items: start; }
  .shell.is-rail { grid-template-columns: 76px minmax(0, 1fr); }
  .main { min-width: 0; width: 100%; padding: 0; }
  .content { width: 100%; min-width: 0; }
  .sidebar {
    position: sticky;
    z-index: 5;
    top: 20px;
    left: auto;
    width: auto;
    max-width: none;
    height: calc(100dvh - 40px);
    gap: 4px;
    padding: 20px 14px 18px;
    border: 0;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
    transform: none;
    transition: none;
  }
  .topbar {
    position: static;
    padding: 14px 20px;
    margin-bottom: 20px;
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--card);
    backdrop-filter: none;
  }
  .page-head, .content { padding: 0; }
  .chips { padding-left: 0; padding-right: 0; }
  .nav-btn { padding: 10px 12px; }
  .nav-btn.is-on, .side-cluster.is-on { background: var(--accent-soft); color: #1a5568; }
  .nav-btn.is-on svg { color: #1a5568; }
  .side-cluster {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    text-align: left;
    border: 0;
    background: transparent;
    border-radius: 12px;
    padding: 8px 12px;
    font-weight: 500;
  }
  .side-label { margin: 18px 12px 6px; }
  .side-quiet { display: grid; gap: 3px; }
  .side-quiet .nav-btn.is-on { color: #1a5568; }
  .page-head .view-switch { justify-self: start; }
  .page-head { grid-template-columns: 1fr; align-items: start; }
  .board { align-items: start; }
  .nav-btn svg { width: 20px; height: 20px; flex: none; }
  .nav-btn { gap: 10px; }
  .rail-btn {
    margin-left: auto;
    border: 0;
    background: transparent;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 1.3rem;
    line-height: 1;
  }
  .rail-only { display: none; }
  .shell.is-rail .brand-words,
  .shell.is-rail .nav-label,
  .shell.is-rail .nav-count,
  .shell.is-rail .nav-badge,
  .shell.is-rail .side-label,
  .shell.is-rail .cname { display: none; }
  .shell.is-rail .rail-only { display: inline; }
  .shell.is-rail .nav-btn,
  .shell.is-rail .side-cluster { justify-content: center; padding-left: 8px; padding-right: 8px; }
  .shell.is-rail .brand { justify-content: center; }
  .shell.is-rail .rail-btn { margin-left: 0; }
  .shell.is-rail .sidebar .btn.primary { padding: 12px 0; }
  .shell.is-rail .side-customer,
  .shell.is-rail .side-projects,
  .shell.is-rail .side-label-row,
  .shell.is-rail .side-project-manage,
  .shell.is-rail .gear-menu { display: none; }
  .shell.is-rail .side-foot { flex-direction: column; }
  .mobile-only { display: none !important; }
  .tabbar { display: none; }
  .toast { bottom: 24px; }
  .cluster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 959px) {
  .desktop-only { display: none !important; }
  .me-chip .who { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .topbar { flex-wrap: wrap; }
  .topbar .search { flex: 1 1 100%; }
  .board-scroll { overflow: visible; }
  .board { display: flex; flex-direction: column; width: 100%; min-width: 0; }
  .board > .col, .board > .col-add { width: 100%; min-width: 0; max-width: none; flex: none; }
}
@media (hover: hover) {
  .card:hover { transform: translateY(-1px); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

.hub { display: grid; gap: 20px; }
.load-tools { display: flex; align-items: center; gap: 8px; }
.load-mode { color: var(--muted); font-size: 0.78rem; font-weight: 650; }
.load-bar { display: flex; height: 18px; border-radius: 999px; overflow: hidden; background: #efece6; }
.load-bar i { display: block; height: 100%; }
.load-list { display: grid; gap: 2px; margin-top: 12px; }
.load-row { display: grid; grid-template-columns: 14px 12px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; text-align: left; padding: 8px; border-radius: 12px; color: inherit; }
.ampel { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.ampel.is-green { background: #3d9a62; }
.ampel.is-yellow { background: #e0a100; }
.ampel.is-red { background: #d24b3a; }
.ampel-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 12px 0 0; color: var(--muted); font-size: 0.8rem; }
.ampel-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wait-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.pipe-card { border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; min-width: 0; display: grid; gap: 10px; align-content: start; }
.pipe-card.is-tint-0 { background: #f4f0fc; }
.pipe-card.is-tint-1 { background: #fdf3ec; }
.pipe-card.is-tint-2 { background: #eefaf4; }
.pipe-card.is-tint-3 { background: #fdf0f3; }
.pipe-card.is-tint-4 { background: #f1f8fb; }
.pipe-card.is-ask { background: #fff6f2; box-shadow: inset 0 0 0 1px #f3c3b4, var(--shadow); }
.pipe-card.is-ask .pipe-count { color: #8a3b2a; }
.pipe-card.is-ask .pipe-icon { color: #c4563f; }
.pipe-card.is-ask .pipe-row { box-shadow: inset 4px 0 0 #e07a62; }
.pipe-card.is-ask .pipe-row.is-approval { background: #fde8e2; box-shadow: inset 4px 0 0 var(--danger); }
.pipe-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.pipe-icon { width: 36px; height: 36px; border-radius: 12px; background: #fff; color: var(--petrol-dark); display: grid; place-items: center; }
.pipe-icon svg { width: 20px; height: 20px; }
.pipe-copy h3 { margin: 0; font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.pipe-copy p { margin: 4px 0 0; color: var(--muted); font-size: 0.84rem; line-height: 1.35; }
.pipe-count { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.pipe-row { display: grid; gap: 6px; background: #fff; border-radius: 12px; padding: 10px; }
.pipe-row + .pipe-row { margin-top: 0; }
.pipe-title { border: 0; background: transparent; padding: 0; text-align: left; font: inherit; font-weight: 650; color: inherit; cursor: pointer; }
.pipe-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.pipe-chip { border-radius: 999px; background: var(--petrol-soft); color: var(--petrol-dark); padding: 2px 8px; font-size: 0.74rem; font-weight: 650; }
.pipe-due, .pipe-age { color: var(--muted); font-size: 0.78rem; }
.pipe-due.is-late { color: var(--danger); font-weight: 650; }
.pipe-act { display: flex; flex-wrap: wrap; gap: 6px; }
.pipe-act .btn, .wait-person { font-size: 0.82rem; }
.wait-person { width: 100%; border-radius: 10px; border: 1px solid var(--field-line); background: #fff; padding: 7px 8px; }
.pipe-more { justify-self: start; border: 0; background: transparent; color: var(--petrol-dark); font: inherit; font-weight: 700; padding: 2px 0; cursor: pointer; }
.pipe-empty { margin: 0; color: var(--muted); font-size: 0.88rem; }
.dev-pipe { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: stretch; }
.dev-arrow { align-self: center; color: var(--muted); font-size: 1.3rem; font-weight: 700; }
.dev-pr { color: var(--petrol-dark); font-size: 0.82rem; font-weight: 700; }
.wall-gap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--muted); }
.theme-project { margin: 0 0 6px; color: var(--petrol-dark); font-size: 0.78rem; font-weight: 700; }
.deadline-list { display: grid; gap: 12px; }
.deadline-day { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 8px 12px; align-items: start; }
.deadline-when { margin: 4px 0 0; font-size: 0.82rem; font-weight: 700; color: var(--petrol-dark); }
.deadline-items, .deadline-miles { display: flex; flex-wrap: wrap; gap: 6px; }
.deadline-miles { margin-top: 14px; align-items: center; }
.deadline-miles .deadline-when { margin: 0; }
.deadline-chip { border: 0; background: #fff; border-radius: 999px; padding: 5px 10px; color: var(--ink); font: inherit; font-size: 0.82rem; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.deadline-chip:hover { background: var(--panel); }
.deadline-kind { margin-right: 6px; color: var(--petrol-dark); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.hub .play-band { margin-bottom: 0; }
.stuck-group + .stuck-group { margin-top: 14px; }
.stuck-group h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.stuck-meta { flex: 0 0 auto; color: var(--muted); font-size: 0.78rem; }
.team-list { display: grid; gap: 4px; }
.team-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; border: 0; background: transparent; text-align: left; padding: 8px; border-radius: 12px; color: inherit; }
.team-row.is-hot { background: #fdf3ec; }
.team-face .avatar { width: 32px; height: 32px; }
.team-copy { display: flex; align-items: center; gap: 8px; min-width: 0; }
.team-name { font-weight: 650; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-pill { flex: 0 0 auto; border-radius: 999px; background: #f6d7b8; color: #8a4b12; padding: 2px 8px; font-size: 0.72rem; font-weight: 700; }
.team-counts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 10px; color: var(--muted); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.team-counts b { color: var(--ink); font-weight: 700; }
.team-counts .is-late, .team-counts .is-late b { color: var(--danger); }
.trend { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; align-items: start; }
.trend-grid { position: absolute; left: 0; right: 0; top: 0; height: 168px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; z-index: 0; }
.trend-grid span { display: block; border-top: 1px solid rgba(31, 36, 48, 0.08); }
.trend-line { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 168px; z-index: 1; pointer-events: none; overflow: visible; }
.trend-line polyline { fill: none; stroke: #6aa3b0; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.trend-col { position: relative; z-index: 2; min-width: 0; display: grid; justify-items: center; gap: 4px; }
.trend-plot { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 5px; width: 100%; height: 168px; }
.trend-pair { position: relative; flex: 1 1 0; width: auto; max-width: 22px; min-width: 0; height: 100%; display: flex; align-items: flex-end; }
.trend-bar { display: block; width: 100%; border-radius: 7px 7px 3px 3px; min-height: 0; }
.trend-legend .trend-bar { width: 12px; height: 12px; min-height: 0; border-radius: 3px; }
.trend-bar.is-new { background: #7eb8c4; }
.trend-bar.is-done { background: #8dcea6; }
.trend-val { position: absolute; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; color: #3c4a52; }
.trend-val.is-new { color: #3d7482; }
.trend-val.is-done { color: #3d7a52; }
.trend-dot { position: absolute; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #6aa3b0; transform: translateY(50%); z-index: 3; pointer-events: none; }
.trend-label { font-size: 0.78rem; font-weight: 700; color: var(--muted); text-align: center; white-space: nowrap; }
.trend-import { display: flex; flex-direction: column; align-items: center; min-height: 2.2em; font-size: 10px; font-weight: 700; line-height: 1.15; color: #7a6248; text-align: center; }
.trend-import b { font-weight: 700; font-variant-numeric: tabular-nums; }
.trend-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; color: var(--muted); font-size: 0.8rem; }
.trend-legend span { display: inline-flex; align-items: center; gap: 6px; }
.trend-swatch-line { width: 16px; height: 0; border-top: 2px solid #6aa3b0; border-radius: 2px; }
.trend-swatch-import { width: 12px; height: 12px; border-radius: 3px; background: #f3e6d4; box-shadow: inset 0 0 0 1px #e4d3bc; }
.trend-note { margin: 8px 0 0; font-weight: 650; }
.trend-note.is-shrink { color: #1f7a64; }
.trend-note.is-grow { color: #c4563f; }
.dev-card { background: var(--card); }
.report-sheet { width: min(640px, 100%); display: flex; flex-direction: column; max-height: min(860px, calc(100dvh - 32px)); }
.report-text { flex: 1; min-height: 240px; margin: 0 18px 12px; border: 1px solid var(--field-line); border-radius: 12px; padding: 12px; font: inherit; line-height: 1.45; overflow: auto; background: #fff; color: var(--ink); }
.report-text p { margin: 0 0 0.75em; }
.report-text p:last-child { margin: 0; }
.report-text ul, .report-text ol { margin: 0 0 0.75em; padding-left: 1.2em; }
.recap-card .card-head { align-items: center; }
button.load-row { cursor: pointer; }
button.load-row:hover { background: var(--panel); }
.load-row .grow { display: flex; flex-direction: column; min-width: 0; }
.load-row small { color: var(--muted); font-size: 0.82rem; }
.load-swatch { width: 14px; height: 14px; border-radius: 4px; }
.load-pct { font-variant-numeric: tabular-nums; font-weight: 700; }
.load-edit { display: grid; gap: 8px; }
.load-edit-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; align-items: center; }
.load-edit-row select { width: 100%; border-radius: 12px; border: 1px solid var(--field-line); background: #fff; padding: 8px 10px; }
.load-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 14px; }
#load-sum { margin-right: auto; font-variant-numeric: tabular-nums; font-weight: 700; }
#load-sum.is-bad { color: var(--danger); }
.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.kpi-tile { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: grid; gap: 6px; align-content: start; }
.kpi-label { margin: 0; color: var(--muted); font-size: 0.82rem; }
.kpi-value { margin: 0; font-size: 2.1rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.kpi-foot { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 0.8rem; }
.kpi-delta { font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi-delta.is-up { color: var(--petrol-dark); }
.kpi-delta.is-down, .kpi-delta.is-flat { color: var(--muted); }
.kpi-tile.is-danger .kpi-delta.is-up { color: var(--danger); }
.kpi-tile.is-danger .kpi-delta.is-down { color: var(--petrol-dark); }
.kpi-note { color: var(--muted); }

.hub-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.hub-side { display: grid; gap: 20px; align-content: start; }
.hub-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; min-width: 0; }
.neu-card {
  background: #f3f8fa;
  box-shadow: inset 0 0 0 1px rgba(47, 111, 126, 0.16), var(--shadow);
}
.neu-count {
  min-width: 1.6rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--petrol);
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.neu-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 8px;
}
.neu-card .hub-line {
  margin: 0;
  background: #fff;
  box-shadow: inset 3px 0 0 var(--bar, var(--petrol));
}
.neu-card .hub-line:hover { background: #fff; }
.neu-card .hub-line .grow { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.neu-card .neu-open {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.neu-card .neu-open strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.neu-chip {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  align-self: flex-start;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--chip, #e5f2f5);
  color: var(--petrol-dark);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}
.neu-side { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.neu-card .hub-line time { flex: none; color: var(--muted); font-size: 0.82rem; }
.neu-dismiss {
  flex: none;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: #f4f7f8;
  box-shadow: inset 0 0 0 1px #d5e0e4;
  color: #3c4a52;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.neu-dismiss:hover,
.neu-dismiss:focus-visible { background: #fdecea; color: #8a3b2a; box-shadow: inset 0 0 0 1px #e7b2a6; }
.neu-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.neu-clear { cursor: pointer; }
.neu-more { margin: 0; color: var(--muted); font-size: 0.82rem; }
.hub.is-slim {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 100%;
  align-items: start;
}
.created-card {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.created-card .card-head {
  margin-bottom: 10px;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.created-card .card-head h2 {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.25;
}
.created-card .neu-count { flex: none; }
.created-card .overview-sort {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}
.created-row .rank-bits { margin-left: 6px; vertical-align: middle; }
.created-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.created-row.hub-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 8px 6px;
}
.created-row.is-done { opacity: 0.72; }
.created-row .grow,
.created-open {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.created-open {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.created-open strong,
.created-place {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.created-place {
  color: var(--muted);
  font-size: 0.78rem;
}
.created-row .status,
.created-row .created-meta {
  justify-self: end;
  align-self: center;
  flex: none;
  white-space: nowrap;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
}
.created-meta {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--panel);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.created-foot { display: flex; justify-content: flex-end; margin-top: 8px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2 { margin: 0; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.deadline-card .card-head { align-items: center; }
.scope-switch { display: inline-flex; align-items: center; padding: 2px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.scope-switch button { border: 0; background: transparent; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 13px; font-weight: 650; color: var(--muted); cursor: pointer; }
.scope-switch button.is-on { background: var(--ink); color: #fff; }
.hub-sub { margin: 0; color: var(--muted); font-size: 0.82rem; }
.hub-empty { margin: 0; color: var(--muted); font-size: 0.9rem; }
.mine-themes .card-head { margin-bottom: 4px; }
.mine-themes .hub-sub { margin-bottom: 12px; }
.mine-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.mine-tile { display: flex; flex-direction: column; height: 100%; min-width: 0; background: #fff; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.mine-tile::before { content: ""; display: block; height: 4px; flex: 0 0 4px; background: #8dcea6; }
.mine-tile.is-red::before { background: #e07a62; }
.mine-tile.is-yellow::before { background: #e0b15a; }
.mine-tile.is-green::before { background: #8dcea6; }
.mine-hit { position: relative; flex: 1 1 auto; width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: left; background: transparent; border: 0; padding: 12px 12px 8px; color: inherit; font: inherit; cursor: pointer; }
.mine-hit:hover { background: rgba(47, 111, 126, 0.04); }
.mine-name { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.mine-name .ampel { margin-top: 5px; flex: 0 0 auto; }
.mine-title { font-weight: 700; line-height: 1.25; min-width: 0; }
.mine-crumb { color: var(--muted); font-size: 0.75rem; line-height: 1.35; }
.mine-meter { display: grid; gap: 4px; width: 100%; margin-top: 4px; }
.mine-due { font-size: 0.78rem; color: var(--muted); }
.mine-due.is-late { color: #d24b3a; font-weight: 700; }
.mine-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mine-chip { border-radius: 999px; padding: 2px 8px; font-size: 0.75rem; font-weight: 650; }
.mine-chip.is-late { background: #fde8e4; color: #8a3b2a; }
.mine-chip.is-ask { background: #fff6f2; color: #8a3b2a; }
.mine-chip.is-open { background: #f1f8fb; color: #255c69; }
.mine-chip.is-brief { background: #f4f0fc; color: #564583; }
.mine-progress { display: block; height: 8px; border-radius: 999px; background: #efece6; overflow: hidden; }
.mine-progress i { display: block; height: 100%; background: #8dcea6; }
.mine-progress-label { font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.mine-acts { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 0 12px 12px; }
.mine-assign-btn { border: 0; background: #f1f8fb; color: #255c69; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 0.75rem; font-weight: 650; cursor: pointer; }
.mine-assign-btn.is-on { background: #e7f2f6; }
.mine-brief { font-size: 0.75rem; }
.mine-pop { flex: 1 0 100%; display: grid; gap: 8px; padding: 8px; border-radius: 10px; background: #f7f8f9; }
.mine-assign { display: grid; gap: 4px; min-width: 0; }
.mine-assign span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.78rem; }
.mine-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 1099px) {
  .mine-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .mine-list { grid-template-columns: 1fr; }
}

.chart { display: flex; align-items: flex-end; gap: 10px; height: 220px; }
.chart-col { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; justify-items: center; align-items: end; gap: 6px; height: 100%; min-width: 0; }
.chart-num { font-size: 0.72rem; color: var(--muted); font-variant-numeric: tabular-nums; align-self: start; }
.chart-bar { width: 100%; max-width: 40px; background: var(--primary); border-radius: 8px 8px 0 0; min-height: 4px; align-self: end; }
.chart-week { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }

.hub-line { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; text-align: left; padding: 10px 10px; border-radius: 12px; margin: 0; }
.hub-line + .hub-line { margin-top: 2px; }
.hub-line:hover { background: var(--panel); }
.hub-line strong { font-weight: 600; }
.hub-pill { flex: 0 0 auto; border-radius: 999px; background: var(--petrol-soft); color: var(--petrol-dark); padding: 3px 10px; font-size: 0.74rem; font-weight: 650; white-space: nowrap; }

.hub-shop { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.hub-shop:first-of-type { border-top: 0; padding-top: 0; }
.hub-shop-name { font-weight: 650; }
.hub-shop-stats { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 0.9rem; }
.hub-shop-stats strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.hub-shop-off { font-weight: 600; color: var(--muted); }
.hub-shop-note { color: var(--muted); font-size: 0.78rem; }
.hub-shop.is-off .hub-shop-name { color: var(--ink); }

.hub-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hub-tool { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px; border-radius: 12px; background: var(--panel); text-decoration: none; color: inherit; font-weight: 600; }
.hub-tool:hover { background: var(--accent-soft); }
.hub-tool-go { color: var(--primary); font-weight: 700; }
.hub-tool.is-off { color: var(--muted); font-weight: 500; flex-direction: column; align-items: flex-start; gap: 2px; }
.hub-tool.is-off .hub-tool-name { color: var(--ink); font-weight: 600; }
.hub-tool-miss { font-size: 0.78rem; color: var(--muted); }

.hub-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.hub-filter { border: 1px solid var(--field-line); background: #fff; color: var(--muted); border-radius: 999px; padding: 5px 12px; font-size: 0.8rem; font-weight: 600; }
.hub-filter.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.hub-table-card .grid-table { min-width: 560px; }

@media (min-width: 960px) {
  .hub.is-slim { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (min-width: 1280px) {
  .hub.is-slim { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 959px) {
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .hub-grid { grid-template-columns: 1fr; }
  .wait-groups { grid-template-columns: 1fr; }
  .dev-pipe { grid-template-columns: 1fr; }
  .dev-arrow { transform: rotate(90deg); justify-self: center; }
  .deadline-day { grid-template-columns: 1fr; gap: 4px; }
  .team-row { grid-template-columns: auto minmax(0, 1fr); }
  .team-counts { grid-column: 2; justify-content: flex-start; }
  .trend { gap: 4px; }
  .trend-grid, .trend-line, .trend-plot { height: 148px; }
  .trend-pair { max-width: 16px; }
  .trend-plot { gap: 3px; }
  .trend-val { font-size: 11px; }
  .trend-label { font-size: 0.68rem; }
  .trend-import { font-size: 9px; }
  .trend-note { font-size: 0.92rem; }
}

.welcome { display: grid; line-height: 1.15; flex: 0 1 auto; min-width: 0; }
.welcome span { font-size: 0.78rem; color: #5c6770; }
.welcome strong { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; }
.topbar .search { flex: 1 1 180px; min-width: 0; border-radius: 999px; background: #fff; border: 1px solid var(--field-line); }
.facepile { display: flex; align-items: center; }
.facepile .avatar { width: 32px; height: 32px; font-size: 0.72rem; border-color: #fff; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-row select { border-radius: 12px; border: 1px solid var(--field-line); background: #fff; padding: 9px 12px; font-size: 0.92rem; }

.board > .col { background: rgba(255, 255, 255, 0.88); border-radius: 18px; padding: 12px; }
.col-h { font-family: var(--sans); font-size: 1rem; font-weight: 700; }
.board .card.is-ask {
  background: #fff6f2;
  box-shadow: inset 4px 0 0 #e07a62, 0 8px 20px rgba(31, 36, 48, 0.05);
}
.board .card.is-ask-out {
  background: #eef6f8;
  box-shadow: inset 4px 0 0 var(--petrol), 0 8px 20px rgba(31, 36, 48, 0.05);
}
.board .card.is-approval {
  background: #fde8e2;
  box-shadow: inset 4px 0 0 var(--danger), 0 8px 20px rgba(31, 36, 48, 0.05);
}
.board .card {
  background: var(--tint, #e7eef2);
  color: var(--tint-ink, #1e3d4a);
  border: 0;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(31, 36, 48, 0.05);
}
.board .card-title,
.board .card-note,
.board .ext-no,
.board .progress,
.board .due { color: var(--tint-ink, #1e3d4a); }
.board .due.overdue { color: #7a1d12; }
.board .due.today { color: #8a4e10; }
.board .tags { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.board .tag,
.board .tag.status,
.board .status[data-kind] {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 3px 9px;
  background: #fff;
  color: var(--tint-ink, #1e3d4a);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0;
  text-align: left;
}
.board .progress { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 0.78rem; font-weight: 650; }
.board .pdots { display: inline-flex; gap: 5px; align-items: center; }
.board .pdots i { width: 8px; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--tint-ink) 28%, #fff); }
.board .pdots i.is-on { background: var(--tint-ink); }
.board .avatar { border-color: #fff; }
.board .avatar.more { background: #fff; color: var(--tint-ink); }
.board .card-note { -webkit-line-clamp: 3; }

.kpi-tile.is-tint-0, .hub-card.is-tint-0 { background: #f4f0fc; }
.kpi-tile.is-tint-1, .hub-card.is-tint-1 { background: #fdf3ec; }
.kpi-tile.is-tint-2, .hub-card.is-tint-2 { background: #eefaf4; }
.kpi-tile.is-tint-3, .hub-card.is-tint-3 { background: #fdf0f3; }
.kpi-tile.is-tint-4, .hub-card.is-tint-4 { background: #f1f8fb; }
.hub-card .hub-tool { background: #fff; border: 1px solid var(--field-line); }
.hub-card .hub-tool:hover { background: var(--accent-soft); }
.hub-tool-go { color: #1a5568; }
.theme-card .field input,
.theme-card .field textarea,
.theme-card .field select,
.topic-page .field input,
.topic-page .field textarea,
.topic-page .field select { background: #fff; border: 1px solid var(--field-line); color: var(--ink); }

.topic-page { gap: 16px; }
.topic-crumb-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.topic-crumb-row .view-switch { margin-left: auto; }
.topic-crumb-row .view-switch button {
  padding: 4px 8px;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.icon-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}
.topic-glyph { width: 16px; height: 16px; display: block; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.crumb button { border: 0; background: transparent; padding: 0; color: #1a5568; font-weight: 650; cursor: pointer; }
.crumb-sep { color: var(--muted); }
.topic-hero { display: grid; gap: 16px; }
.topic-hero-row { display: grid; gap: 12px; }
.topic-hero h1 { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
button.topic-lead {
  display: block;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
}
.topic-bar .btn.quiet,
.sheet.is-task .task-tools .btn.quiet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
  font-weight: 650;
}
.sheet.is-task .task-tools .btn.quiet:hover { filter: brightness(0.96); }
.sheet.is-task .task-tools .btn.quiet:disabled { cursor: progress; }
.topic-bar .btn.primary { padding: 8px 16px; }
.topic-more > summary.icon-btn { list-style: none; }
.topic-more > summary.icon-btn::-webkit-details-marker { display: none; }
.topic-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  background: color-mix(in srgb, var(--loose-bg) 72%, #fff);
  border: 1px solid color-mix(in srgb, var(--petrol) 14%, var(--line));
  border-radius: 14px;
  overflow: hidden;
}
.topic-meta > div {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 12px 16px;
  border-right: 1px solid color-mix(in srgb, var(--petrol) 10%, var(--line));
  border-bottom: 1px solid color-mix(in srgb, var(--petrol) 10%, var(--line));
}
.topic-meta > div:nth-child(2n) { border-right: 0; }
.topic-meta > div:nth-last-child(-n + 2) { border-bottom: 0; }
.topic-meta dt {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--petrol) 55%, var(--muted));
}
.topic-meta dd {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.25;
  min-width: 0;
}
.topic-meta-who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.topic-meta-who > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topic-meta-who .avatar {
  width: 28px;
  height: 28px;
  font-size: 11px;
  flex: none;
}
.topic-meta .topic-badge {
  font-size: 0.8rem;
  padding: 4px 10px;
}
.topic-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.topic-kpis .kpi-tile {
  position: relative;
  background: #fff;
  border: 0;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 12px 16px;
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
}
.topic-kpis .face-stack {
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: flex;
}
.topic-kpis .face-stack .avatar {
  color: #f7f4ee;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  opacity: 1;
  border: 2px solid #fff;
}
.topic-kpis .face-stack .avatar.more {
  background: var(--panel);
  color: var(--ink);
}
.topic-kpis button.kpi-tile { cursor: pointer; }
.topic-kpis .kpi-tile.is-on { box-shadow: inset 0 0 0 2px var(--night); }
.topic-kpis .kpi-tile > span:not(.face-stack) { font-size: 11px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.topic-kpis .kpi-tile strong { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.topic-kpis .kpi-tile.is-late strong { color: #7a1d12; }
.topic-meter { grid-column: 1 / -1; position: relative; height: 8px; border-radius: 999px; background: #e7eef1; overflow: visible; }
.topic-meter span, .topic-meter-fill { display: block; height: 100%; background: #5fa3b8; border-radius: inherit; }
.topic-mark { position: absolute; top: -3px; width: 2px; height: 14px; margin-left: -1px; background: rgba(30, 41, 48, 0.4); pointer-events: none; }
.topic-mark.is-end { margin-left: -2px; }
.topic-split { gap: 16px; }
.topic-card { border-radius: 16px; padding: 16px; }
.topic-card.topic-brief { padding: 0; gap: 0; }
.topic-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.topic-card-head h2, .topic-work > h2, .topic-brief .brief-summary-title { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.topic-count { font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; margin-right: 4px; }
.list-search {
  width: min(220px, 100%);
  border: 0;
  border-radius: 999px;
  background: var(--panel);
  padding: 8px 12px;
  font-size: 14px;
}
.topic-card.topic-work {
  background: var(--loose-bg);
  color: var(--loose-ink);
}
.topic-work .topic-card-head h2 { color: var(--loose-ink); }
.topic-work .list-search {
  background: var(--loose-pill);
  color: var(--loose-ink);
  box-shadow: 0 1px 2px rgba(31, 36, 48, 0.06);
}
.topic-work .list-search::placeholder { color: var(--loose-muted); }
.topic-filters { gap: 8px; }
.filter-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-label { font-size: 11px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rank-filters { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.rank-filters .who-pills { margin: 0; }
.rank-bits { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.prio-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 1px 7px; font-size: 11px; font-weight: 700; line-height: 1.45; white-space: nowrap; }
.prio-badge.is-sofort { background: #f6d5d1; color: #8a2218; }
.prio-badge.is-dringlich { background: #fde3d0; color: #8a4e10; }
.prio-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.prio-dot.is-normal { background: #8aa0ad; }
.prio-dot.is-niedrig { background: #c5cdd4; }
.prio-swatch { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.prio-swatch.is-sofort { background: #c4453c; }
.prio-swatch.is-dringlich { background: #e07a2f; }
.prio-swatch.is-normal { background: #8aa0ad; }
.prio-swatch.is-niedrig { background: #c5cdd4; }
.effort-dots { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.effort-dots i { display: block; width: 3px; border-radius: 1px; background: #d5dde3; }
.effort-dots i:nth-child(1) { height: 4px; }
.effort-dots i:nth-child(2) { height: 7px; }
.effort-dots i:nth-child(3) { height: 10px; }
.effort-dots i.is-on { background: #3d6d7d; }
.topic-head-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.sort-toggle { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--loose-pill, #eef2f4); }
.sort-toggle button { border: 0; background: transparent; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12px; font-weight: 650; color: var(--loose-muted, #667); cursor: pointer; }
.sort-toggle button.is-on { background: #fff; color: var(--loose-ink, #1c2430); }
.topic-work .filter-label,
.topic-work .hint,
.topic-work .filter-reset { color: var(--loose-muted); }
.topic-filters .who-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border-radius: 0; background: transparent; }
.topic-filters .who-pill {
  border: 0;
  background: var(--loose-pill);
  color: var(--loose-ink);
  padding: 6px 12px;
  font-size: 13px;
  box-shadow: 0 1px 2px rgba(31, 36, 48, 0.06);
}
.topic-filters .who-pill.is-on { background: var(--loose-on); color: var(--loose-on-ink); box-shadow: none; }
.topic-filters .who-pill.is-add { background: transparent; color: var(--loose-muted); box-shadow: none; padding-left: 4px; padding-right: 4px; }
.topic-filters .child-name {
  border: 0;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 10px;
  font: inherit;
  font-size: 13px;
  min-width: 9rem;
}
.topic-filters .who-pill-wrap { display: inline-flex; align-items: center; gap: 0; }
.topic-filters .chip-x {
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  padding: 0;
  font-size: 14px;
  line-height: 1;
}
.child-delete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: var(--ink); font-size: 14px; }
.filter-reset { font-size: 13px; }
.bereich-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
.bereich-tab,
.filter-btn,
.filter-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  white-space: nowrap;
  cursor: pointer;
}
.bereich-tab .who-n,
.pop-count { font-variant-numeric: tabular-nums; font-weight: 700; }
.bereich-tab.is-on,
.filter-btn.is-on {
  background: #5fa3b8;
  color: #fff;
  box-shadow: none;
}
.bereich-tab.is-add {
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  padding-left: 8px;
  padding-right: 8px;
}
.topic-work .bereich-tab,
.topic-work .filter-btn,
.topic-work .filter-chip {
  background: #f4f6f8;
  box-shadow: none;
  color: var(--loose-ink);
}
.topic-work .bereich-tab.is-on,
.topic-work .filter-btn.is-on {
  background: #5fa3b8;
  color: #fff;
}
.topic-work .bereich-tab.is-add { background: transparent; color: var(--loose-muted); }
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.topic-filters .filter-bar { margin: 0; }
.filter-pop { position: relative; flex: none; }
.filter-btn .pill-chevron { width: 12px; height: 12px; flex: none; opacity: 0.72; }
.filter-search { flex: 1 1 160px; min-width: 140px; margin: 0; }
.filter-active {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
}
.topic-filters .filter-active { margin: 0; }
.filter-chip span { color: var(--muted); font-weight: 500; }
.topic-work .filter-chip span { color: var(--loose-muted); }
.meta-panel.is-float .pop-count { margin-left: auto; color: var(--muted); font-weight: 650; }
.meta-panel.is-float .pop-opt.is-on .pop-count { color: rgba(255, 255, 255, 0.85); }
.fuer-filters { margin-bottom: 12px; }
.fuer-filters .filter-active { margin: 8px 0 0; }
.brief-tools { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.brief-tools .text-btn:disabled { opacity: 0.55; cursor: default; }
.brief-saved { color: var(--muted); font-size: 0.75rem; font-weight: 650; }
.brief-read {
  font-size: 15px;
  line-height: 1.55;
  min-height: 8rem;
  max-height: 720px;
  max-width: 68ch;
  overflow: auto;
  resize: vertical;
  white-space: pre-wrap;
}
.brief-read p { margin: 0 0 0.85em; white-space: pre-wrap; }
.brief-read p:last-child { margin-bottom: 0; }
.brief-read ul, .brief-read ol { margin: 0 0 0.85em; padding-left: 1.2em; }
.brief-read ul.fmt-checks { padding-left: 0; }
.brief-read p.brief-blank { margin: 0; height: 0.85em; }
.brief-write {
  width: 100%;
  max-width: 68ch;
  min-height: 8rem;
  max-height: 720px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  resize: vertical;
  line-height: 1.55;
  font-size: 15px;
}
#briefing .fmt { max-width: 68ch; }
.topic-work .work-list { gap: 8px; }
.topic-work .work-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: center;
  min-height: 56px;
  padding: 10px 12px;
  background: var(--loose-tile);
  border: 0;
  border-radius: 16px;
  box-shadow: none;
  color: var(--loose-ink);
}
.topic-work .work-row:hover { background: color-mix(in srgb, var(--loose-on) 12%, var(--loose-tile)); }
.topic-work .work-row.is-ask,
.topic-work .work-row.is-ask:hover { background: #fff6f2; box-shadow: inset 4px 0 0 #e07a62; }
.topic-work .work-row.is-ask-out,
.topic-work .work-row.is-ask-out:hover { background: #eef6f8; box-shadow: inset 4px 0 0 var(--petrol); }
.topic-work .work-row.is-approval,
.topic-work .work-row.is-approval:hover { background: #fde8e2; box-shadow: inset 4px 0 0 var(--danger); }
.topic-work .work-row.is-on,
.topic-work .work-row.is-on:hover { background: var(--loose-on); color: var(--loose-on-ink); }
.topic-work .work-row.is-on.is-ask,
.topic-work .work-row.is-on.is-ask:hover { box-shadow: inset 4px 0 0 #e07a62; }
.topic-work .work-row.is-on.is-ask-out,
.topic-work .work-row.is-on.is-ask-out:hover { box-shadow: inset 4px 0 0 var(--petrol); }
.topic-work .work-row.is-on.is-approval,
.topic-work .work-row.is-on.is-approval:hover { box-shadow: inset 4px 0 0 var(--danger); }
.topic-work .work-row.is-on .work-task,
.topic-work .work-row.is-on .work-result,
.topic-work .work-row.is-on .due,
.topic-work .work-row.is-on .due.overdue,
.topic-work .work-row.is-on .row-more > summary { color: var(--loose-on-ink); }
.work-avatars { display: flex; align-items: center; }
.work-avatars .avatar { width: 28px; height: 28px; font-size: 11px; }
.avatar.is-none { background: var(--panel); color: var(--muted); }
.work-meta { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.work-meta .due { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.work-meta .due.overdue { color: #7a1d12; font-weight: 650; }
.work-meta .due.is-none { color: var(--muted); }
.row-more { position: relative; }
.row-more > summary {
  list-style: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
}
.row-more > summary::-webkit-details-marker { display: none; }
.row-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 5;
  min-width: 8rem;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.row-more-menu button { width: 100%; border: 0; background: transparent; text-align: left; padding: 8px; border-radius: 8px; font-weight: 650; cursor: pointer; }
@media (max-width: 719px) {
  .topic-kpis .kpi-tile:nth-child(5) { grid-column: 1 / -1; }
}
@media (min-width: 720px) {
  .topic-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .topic-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 800px) {
  .topic-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .topic-meta > div { border-bottom: 0; }
  .topic-meta > div:nth-child(2n) { border-right: 1px solid color-mix(in srgb, var(--petrol) 10%, var(--line)); }
  .topic-meta > div:last-child { border-right: 0; }
}
@media (min-width: 960px) {
  .topic-hero-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
  .topic-hero-copy { min-width: 0; }
  .topic-bar { margin-left: auto; justify-content: flex-end; }
}
@media (max-width: 640px) {
  .brief-read, .brief-write { height: auto !important; max-height: none; resize: none; }
  .topic-hero h1 { font-size: 28px; }
  .topic-crumb-row .view-switch { margin-left: 0; width: 100%; }
  .topic-crumb-row .view-switch button { flex: 0 0 auto; }
  .topic-work .work-row { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 10px 12px; }
  .topic-work .work-main { grid-column: auto; }
  .work-meta { justify-content: flex-start; }
}

.sheet.is-task {
  width: min(760px, 100%);
  background: var(--bg);
}
.sheet.is-task .task-head {
  align-items: center;
  flex-wrap: wrap;
  row-gap: 8px;
  padding: 16px 16px 0;
  background: transparent;
}
.sheet.is-task .task-kicker {
  margin: 0;
  min-width: 0;
  flex: 1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--petrol);
}
.sheet.is-task .task-no {
  margin-left: 8px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.sheet.is-task .task-by {
  margin-left: 6px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 550;
  color: var(--muted);
}
.sheet.is-task .ticket-copy {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 650;
}
.sheet.is-task .task-tools { display: flex; align-items: center; gap: 8px; }
.sheet.is-task .task-tools .icon-btn { font-size: 18px; line-height: 1; background: #fff; }
.sheet.is-task .task-menu { position: relative; }
.sheet.is-task .sheet-scroll {
  flex: 1 1 auto;
  min-height: 0;
}
.sheet.is-task .sheet-scroll.is-todo {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 16px 16px 24px;
}
.sheet.is-task .task-hero { position: relative; z-index: 3; display: grid; gap: 8px; flex: none; padding: 8px 16px 0; }
.sheet.is-task .task-tabs {
  flex: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  overflow-x: auto;
  margin: 18px 16px 0;
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.sheet.is-task .task-tabs::-webkit-scrollbar { display: none; }
.sheet.is-task .task-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 -1px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 8px 12px 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}
.sheet.is-task .task-tab.is-on {
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--petrol);
}
.sheet.is-task .task-tab-badge {
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--petrol);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.sheet.is-task .task-tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--petrol);
}
.sheet.is-task .task-test { display: grid; gap: 12px; }
.sheet.is-task .task-test-intro { margin: 0; font-size: 15px; line-height: 1.45; }
.sheet.is-task .task-test-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: test-step;
}
.sheet.is-task .task-test-steps li {
  counter-increment: test-step;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 650;
}
.sheet.is-task .task-test-steps li::before {
  content: counter(test-step);
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--petrol);
  color: #fff;
  font-size: 11px;
}
.sheet.is-task .task-test-actions { display: flex; }
.sheet.is-task .task-title {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  resize: none;
  overflow: hidden;
  background: transparent;
  color: var(--ink);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.sheet.is-task .task-title::placeholder { color: var(--muted); }
.sheet.is-task .task-title.is-invalid,
.sheet.is-task textarea.is-invalid,
.sheet.is-task input.is-invalid,
.sheet.is-task select.is-invalid,
.topic-page .is-invalid,
.load-card .is-invalid {
  color: var(--danger);
  background: #fdf4f1;
  box-shadow: inset 0 0 0 1.5px var(--danger);
  border-radius: 10px;
}
.sheet.is-task .task-title.is-invalid { padding: 4px 8px; }
.sheet.is-task .task-title.is-invalid::placeholder { color: color-mix(in srgb, var(--danger) 70%, white); }
.field-hint,
.sheet-alert {
  color: var(--danger);
  font-weight: 650;
}
.field-hint { margin: 6px 0 0; }
.sheet-alert {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8e8e4;
}
.sheet.is-task .save-note {
  margin-right: auto;
  color: var(--danger);
  font-weight: 650;
}
.sheet.is-task .task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
}
.sheet.is-task .task-meta-main,
.sheet.is-task .task-meta-rank {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}
.sheet.is-task .meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  max-width: none;
  white-space: nowrap;
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--loose-bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}
.sheet.is-task .meta-pill:hover {
  filter: brightness(0.96);
}
.sheet.is-task .pill-chevron {
  width: 12px;
  height: 12px;
  flex: none;
  opacity: 0.72;
}
.sheet.is-task .meta-pop,
.sheet.is-task .task-menu { position: relative; }
.sheet.is-task .meta-pill > span { min-width: 0; white-space: nowrap; }
.sheet.is-task .pill-prefix {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.sheet.is-task .meta-pill.status[data-kind="doing"] .pill-prefix,
.sheet.is-task .meta-pill.status[data-kind="ask"] .pill-prefix,
.sheet.is-task .meta-pill.status[data-kind="live"] .pill-prefix,
.sheet.is-task .meta-pill.status[data-kind="done"] .pill-prefix,
.sheet.is-task .meta-pill.status[data-kind="skip"] .pill-prefix,
.sheet.is-task .meta-pill.is-late .pill-prefix,
.sheet.is-task .meta-pill.is-today .pill-prefix,
.sheet.is-task .meta-pill.is-prio.is-sofort .pill-prefix,
.sheet.is-task .meta-pill.is-prio.is-dringlich .pill-prefix,
.sheet.is-task .meta-pill.is-prio.is-niedrig .pill-prefix {
  color: inherit;
  opacity: 0.75;
}
.sheet.is-task .pill-value { min-width: 0; }
.sheet.is-task .meta-pill .avatar {
  width: 22px;
  height: 22px;
  margin: 0;
  border: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #f7f4ee;
}
.sheet.is-task .meta-pill.status { box-shadow: none; }
.sheet.is-task .meta-pill.status[data-kind="open"] { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.sheet.is-task .meta-pill.status[data-kind="doing"],
.sheet.is-task .meta-pill.status[data-kind="ask"] { background: #d7e9ef; color: var(--petrol-dark); }
.sheet.is-task .meta-pill.status[data-kind="live"] { background: var(--petrol-soft); color: var(--petrol-dark); }
.sheet.is-task .meta-pill.status[data-kind="done"] { background: var(--loose-on); color: #fff; }
.sheet.is-task .meta-pill.status[data-kind="skip"] { background: #e7e9ec; color: #5b6672; }
.sheet.is-task .meta-pill.is-late { background: #f8e4df; color: #7a1d12; }
.sheet.is-task .meta-pill.is-today { background: #f8efe2; color: #8a4e10; }
.sheet.is-task .meta-pill.is-prio.is-sofort { background: #f6d5d1; color: #8a2218; }
.sheet.is-task .meta-pill.is-prio.is-dringlich { background: #fde3d0; color: #8a4e10; }
.sheet.is-task .meta-pill.is-prio.is-niedrig { background: #e7e9ec; color: #5b6672; }
.sheet.is-task .meta-pill.is-theme,
.sheet.is-task .meta-pill.is-who,
.sheet.is-task .meta-pill.is-report { max-width: min(280px, 78vw); }
.sheet.is-task .meta-pill.is-theme > .pill-value,
.sheet.is-task .meta-pill.is-who > .pill-value,
.sheet.is-task .meta-pill.is-report > .pill-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sheet.is-task .meta-panel,
.meta-panel.is-float {
  position: absolute;
  z-index: 6;
  top: calc(100% + 8px);
  left: 0;
  width: min(360px, 88vw);
  max-height: 320px;
  overflow: auto;
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.meta-panel.is-float { position: fixed; z-index: 80; }
.sheet.is-task .meta-panel.is-up { top: auto; bottom: calc(100% + 8px); }
.sheet.is-task .task-menu .meta-panel { left: auto; right: 0; top: calc(100% + 8px); width: 200px; }
.sheet.is-task .pop-opt,
.meta-panel.is-float .pop-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}
.sheet.is-task .pop-opt.is-on,
.meta-panel.is-float .pop-opt.is-on { background: var(--loose-on); color: #fff; }
.sheet.is-task .pop-opt.is-danger,
.meta-panel.is-float .pop-opt.is-danger { color: var(--danger); }
.sheet.is-task .pop-opt .avatar,
.meta-panel.is-float .pop-opt .avatar {
  width: 22px;
  height: 22px;
  margin: 0;
  border: 0;
  font-size: 10px;
  color: #f7f4ee;
}
.sheet.is-task .pop-label,
.meta-panel.is-float .pop-label {
  margin: 8px 8px 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.sheet.is-task .pop-search,
.meta-panel.is-float .pop-search {
  position: sticky;
  top: -8px;
  z-index: 1;
  margin: -8px -8px 4px;
  padding: 8px 8px 6px;
  background: #fff;
}
.sheet.is-task .pop-search input,
.meta-panel.is-float .pop-search input {
  width: 100%;
  border: 1px solid var(--field-line);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.sheet.is-task .pop-project,
.meta-panel.is-float .pop-project {
  margin: 10px 8px 2px;
  font-size: 12px;
  font-weight: 750;
  color: var(--petrol-dark);
}
.sheet.is-task .pop-opt.is-nested,
.meta-panel.is-float .pop-opt.is-nested {
  align-items: flex-start;
  border-radius: 12px;
  padding-left: calc(12px + (var(--indent, 1) * 14px));
}
.sheet.is-task .pop-opt-copy,
.meta-panel.is-float .pop-opt-copy { display: grid; gap: 1px; min-width: 0; }
.sheet.is-task .pop-path,
.meta-panel.is-float .pop-path {
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
  line-height: 1.3;
}
.sheet.is-task .pop-opt.is-on .pop-path,
.meta-panel.is-float .pop-opt.is-on .pop-path { color: rgba(255, 255, 255, 0.82); }
.sheet.is-task .meta-panel .choice-grid,
.sheet.is-task .meta-panel .people,
.sheet.is-task .meta-panel .seg,
.sheet.is-task .meta-panel .who-groups,
.meta-panel.is-float .choice-grid,
.meta-panel.is-float .people,
.meta-panel.is-float .seg,
.meta-panel.is-float .who-groups { margin: 0; }
.sheet.is-task .meta-panel .coverage,
.meta-panel.is-float .coverage { margin: 8px 8px 4px; font-size: 13px; }
.sheet.is-task .meta-panel .field,
.meta-panel.is-float .field { margin: 0; }
.meta-panel.is-float .task-empty { margin: 0; color: var(--muted); font-size: 14px; }
.sheet.is-task .task-note,
.sheet.is-task .task-details,
.sheet.is-task .cursor-block,
.sheet.is-task .bubble-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.sheet.is-task .task-note,
.sheet.is-task .task-details,
.sheet.is-task .cursor-block { padding: 16px; margin: 0; }
.sheet.is-task .task-details { position: relative; z-index: 2; }
.sheet.is-task .task-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}
.sheet.is-task .task-section-head h3 { margin: 0; font-size: 15px; font-weight: 700; }
.sheet.is-task .task-section-head .text-btn { margin-left: auto; }
.sheet.is-task .task-count {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--loose-bg);
  color: var(--loose-on);
  font-size: 12px;
  font-weight: 700;
}
.sheet.is-task .task-empty { margin: 0; color: var(--muted); font-size: 14px; }
.sheet.is-task .task-note-meta { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.sheet.is-task .task-read,
.sheet.is-task .question-body { font-size: 15px; line-height: 1.5; min-width: 0; }
.sheet.is-task .task-read p,
.sheet.is-task .question-body p { margin: 0 0 8px; }
.sheet.is-task .task-read p:last-child,
.sheet.is-task .question-body p:last-child { margin: 0; }
.sheet.is-task .task-read ul,
.sheet.is-task .task-read ol,
.sheet.is-task .question-body ul,
.sheet.is-task .question-body ol { margin: 0 0 8px; padding-left: 1.2em; }
.sheet.is-task .task-read ul.fmt-checks,
.sheet.is-task .question-body ul.fmt-checks { padding-left: 0; }
.sheet.is-task .task-read h3,
.sheet.is-task .question-body h3 { margin: 0 0 6px; }
.sheet.is-task .sheet-scroll.is-todo .note-input {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 96px;
  max-height: 360px;
  overflow: auto;
  resize: vertical;
  line-height: 1.5;
}
.sheet.is-task .task-note.is-over { box-shadow: inset 0 0 0 2px var(--primary); }
.sheet.is-task .note-attach { display: grid; gap: 8px; margin-top: 12px; }
.sheet.is-task .note-shots { display: grid; grid-template-columns: 1fr; gap: 8px; }
.sheet.is-task .note-shots.is-pair { grid-template-columns: 1fr 1fr; }
.sheet.is-task .note-shots figure { position: relative; margin: 0; }
.sheet.is-task .note-shots .thumb-open,
.sheet.is-task .note-shots img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--panel);
}
.sheet.is-task .note-pdfs { display: grid; gap: 8px; }
.sheet.is-task .note-pdfs .file-chip { max-width: none; padding-right: 12px; }
.sheet.is-task .note-pdfs .file-row:has(.thumb-x) .file-chip { padding-right: 36px; }
.sheet.is-task .note-pdfs .file-row:has(.note-confirm) .file-chip { padding-right: 104px; }
.sheet.is-task .note-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.sheet.is-task .note-tools .icon-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: var(--panel);
  font-size: 16px;
  cursor: pointer;
}
.sheet.is-task .note-tools .icon-btn:disabled { opacity: 0.55; cursor: progress; }
.sheet.is-task .note-shots .note-confirm,
.sheet.is-task .note-pdfs .note-confirm {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  border: 0;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  cursor: pointer;
}
.sheet.is-task .note-pdfs .file-row { position: relative; }
.sheet.is-task .note-pdfs .note-confirm { top: 50%; right: 8px; transform: translateY(-50%); }
.sheet.is-task .task-thread { display: flex; flex-direction: column; gap: 8px; }
.sheet.is-task .bubble {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}
.sheet.is-task .bubble > .avatar {
  width: 32px;
  height: 32px;
  margin: 0;
  border: 0;
  font-size: 11px;
  color: #f7f4ee;
}
.sheet.is-task .bubble-card { padding: 8px 12px; }
.sheet.is-task .bubble-shots { display: grid; gap: 8px; margin-top: 8px; }
.sheet.is-task .bubble-shots figure { position: relative; margin: 0; }
.sheet.is-task .bubble-shots .thumb-open,
.sheet.is-task .bubble-shots img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 12px;
}
.sheet.is-task .bubble-files { display: grid; gap: 8px; margin-top: 8px; }
.sheet.is-task .bubble-files .file-chip { max-width: none; }
.sheet.is-task .thread-files { margin: 0; }
.sheet.is-task .bubble-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}
.sheet.is-task .bubble-meta strong { color: var(--ink); font-size: 13px; }
.sheet.is-task .bubble-badge {
  align-self: center;
  border-radius: 999px;
  padding: 1px 7px;
  background: #e7eaee;
  color: #3d4752;
  font-size: 11px;
  font-weight: 700;
}
.sheet.is-task .bubble-badge.is-soft { background: transparent; color: var(--muted); font-weight: 650; padding-left: 0; }
.sheet.is-task .bubble.is-note .bubble-card {
  background: #f4f6f8;
  border: 1px dashed #b7c0c8;
  box-shadow: none;
}
.sheet.is-task .bubble.is-approval .bubble-card {
  background: #fdf4f1;
  box-shadow: inset 0 0 0 1.5px var(--danger);
}
.sheet.is-task .bubble.is-approval .bubble-badge { background: var(--danger); color: #fff; }
.sheet.is-task .bubble .question-form textarea {
  min-height: 72px;
  max-height: 60vh;
  margin-top: 4px;
  overflow: auto;
}
.sheet.is-task .composer.drop {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: left;
}
.sheet.is-task .composer.drop > * {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.sheet.is-task .composer.drop > input { width: auto; }
.sheet.is-task .composer.drop:focus-within {
  box-shadow: inset 0 0 0 1px var(--petrol), 0 0 0 3px var(--petrol-soft);
}
.sheet.is-task .composer.drop.is-over {
  box-shadow: inset 0 0 0 2px var(--petrol);
  background: #f4fafb;
}
.sheet.is-task .composer .thumbs { width: 100%; margin: 0; }
.sheet.is-task .composer .thumbs:empty { display: none; }
.sheet.is-task .composer .thumbs img { width: 64px; height: 64px; }
.sheet.is-task .composer.drop > .composer-modes {
  display: inline-flex;
  justify-self: start;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 3px;
  border-radius: 999px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}
.sheet.is-task .composer-mode {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  padding: 7px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.sheet.is-task .composer-mode.is-on {
  background: #fff;
  color: var(--petrol-dark);
  box-shadow: 0 1px 2px rgba(31, 36, 48, 0.05), inset 0 0 0 1px rgba(47, 111, 126, 0.2);
}
.sheet.is-task .composer-field { min-width: 0; width: 100%; }
.sheet.is-task .composer .fmt {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}
.sheet.is-task .composer .fmt-bar {
  display: none;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  width: 100%;
  max-width: 100%;
  margin: 0 0 4px;
  padding: 2px;
  overflow-x: auto;
  border-radius: 12px;
  background: #eef4f6;
}
.sheet.is-task .composer .fmt:focus-within > .fmt-bar { display: flex; }
.sheet.is-task .composer .fmt-bar button {
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: transparent;
  color: var(--petrol-dark);
}
.sheet.is-task .composer .fmt-bar button svg { width: 15px; height: 15px; display: block; }
.sheet.is-task .composer .fmt-bar button:hover,
.sheet.is-task .composer .fmt-bar button:focus-visible {
  background: #fff;
  color: var(--petrol-dark);
}
.sheet.is-task .composer textarea,
.sheet.is-task .composer-hint {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 88px;
  margin: 0;
  border: 0;
  border-radius: 12px;
  resize: none;
  overflow: auto;
  max-height: 60vh;
  padding: 8px 4px 2px;
  background: transparent;
  font-size: 16px;
  line-height: 1.45;
}
.sheet.is-task .composer textarea.is-invalid { background: #fdf4f1; }
.sheet.is-task .composer textarea:focus,
.sheet.is-task .composer textarea:focus-visible { outline: none; }
.sheet.is-task .composer button:focus-visible {
  outline: 2px solid var(--petrol);
  outline-offset: 2px;
}
.sheet.is-task .composer-hint { color: var(--muted); font-size: 14px; padding: 6px 2px; }
.sheet.is-task .composer-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 32px;
}
.sheet.is-task .composer-approve {
  height: 32px;
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  border: 1px solid #e07a62;
  border-radius: 999px;
  background: #fff;
  color: #8a3b2a;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  padding: 0 12px;
  cursor: pointer;
  white-space: nowrap;
}
.sheet.is-task .composer-approve.is-on {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.sheet.is-task .composer .icon-btn {
  width: 32px;
  height: 32px;
  flex: none;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  font-size: 16px;
}
.sheet.is-task .composer .icon-btn.is-send { margin-left: 0; background: var(--petrol); color: #fff; }
.sheet.is-task .composer button { text-decoration: none; }
.sheet.is-task .composer .icon-btn svg { width: 16px; height: 16px; display: block; }
.sheet.is-task .task-details summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 8px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}
.sheet.is-task .task-details summary::-webkit-details-marker { display: none; }
.sheet.is-task .task-details summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
}
.sheet.is-task .task-details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.sheet.is-task .task-sum {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.sheet.is-task .task-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  padding-top: 8px;
}
.sheet.is-task .task-grid .is-wide { grid-column: 1 / -1; }
.sheet.is-task .task-grid .field { margin: 0; }
.sheet.is-task .task-grid .field > span,
.sheet.is-task .task-grid .field > label > span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.sheet.is-task .value-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  border: 1px solid var(--field-line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.sheet.is-task .value-btn > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sheet.is-task .value-btn:hover {
  border-color: var(--ink);
}
.sheet.is-task .task-grid .switch {
  margin: 0;
  padding: 0;
  border: 0;
}
.sheet.is-task .cursor-block textarea { max-height: 240px; overflow: auto; }
.sheet.is-task .sheet-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  background: var(--bg);
  border-top-color: var(--line);
}
.sheet.is-task .dup-box {
  flex: 1 0 100%;
  margin: 0 0 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--petrol-soft);
  text-align: left;
}
.sheet.is-task .dup-box.is-strong {
  background: #fdf4f1;
  box-shadow: inset 0 0 0 1px #e7b2a6;
}
.sheet.is-task .dup-head { margin: 0; font-weight: 700; }
.sheet.is-task .dup-note { margin: 2px 0 8px; color: var(--muted); font-size: 13px; }
.sheet.is-task .dup-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sheet.is-task .dup-box li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 10px;
  padding: 6px 8px;
}
.sheet.is-task .dup-open {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.sheet.is-task .dup-pct {
  flex: none;
  color: var(--petrol-dark);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.sheet.is-task .save-ask {
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 650;
}
.sheet.is-task .sheet-bar .btn.primary { min-width: 140px; padding: 10px 18px; }
.sheet.is-task textarea.theme-brief {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 72px;
  max-height: 280px;
  overflow: auto;
  resize: vertical;
}
@media (max-width: 560px) {
  .sheet.is-task .task-grid { grid-template-columns: 1fr; }
}
@media (max-width: 719px) {
  .sheet-back:has(.sheet.is-task) { align-items: stretch; padding: 0; }
  .sheet.is-task {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }
  .sheet.is-task .task-head { padding-top: calc(12px + env(safe-area-inset-top)); }
  .sheet.is-task .sheet-bar .btn.ghost,
  .sheet.is-task .sheet-bar .btn.primary { width: 100%; }
}
.play-band { display: grid; gap: 12px; margin-bottom: 16px; }
.play-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.streak-line { margin: 0; font-weight: 650; }
.recap-list { margin: 8px 0 0; padding-left: 1.1rem; }
.recap-list li { margin: 4px 0; }
.goal-count { margin: 8px 0; }
.goal-count strong { font-size: 1.6rem; letter-spacing: -0.03em; }
.goal-meter { height: 8px; border-radius: 999px; background: #e7eef1; overflow: hidden; }
.goal-meter span { display: block; height: 100%; background: #5fa3b8; }
.geschafft { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 8px; background: #e7f6ec; color: #1f6b3a; font-size: 0.78rem; font-weight: 650; }
.hub-done-line { margin: 14px 2px 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.hub-done-label { font-weight: 650; margin-right: 4px; }
.hub-done-link { border: 0; padding: 0; background: transparent; color: var(--muted); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.hub-done-link:hover { color: var(--ink); }
.hub-done-sep { margin: 0 6px; }
.theme-done { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; }
.hub-line .geschafft, .hub-line .avatars { flex: none; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.badge-chip { font-size: 0.75rem; border-radius: 999px; padding: 2px 8px; background: #e7eef1; color: var(--ink); }
.thanks { border: 0; background: transparent; color: var(--muted); cursor: pointer; font: inherit; padding: 0 4px; line-height: 1; }
.thanks.is-on, .thanks:hover { color: #c4475d; }
.mine-play { margin-bottom: 16px; display: grid; gap: 8px; }
.thanks-notes { display: grid; gap: 6px; }
.thanks-note { display: flex; flex-direction: column; align-items: flex-start; text-align: left; border: 0; background: var(--card); border-radius: 12px; padding: 8px 12px; cursor: pointer; box-shadow: var(--shadow); }
.thanks-note span { color: var(--muted); }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 70; }
.confetti i { position: absolute; top: -14px; width: 8px; height: 12px; border-radius: 2px; animation-name: confetti-fall; animation-timing-function: ease-in; animation-fill-mode: forwards; }
@keyframes confetti-fall { to { transform: translateY(100vh) rotate(180deg); opacity: 0.15; } }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } }
.sheet.is-task .task-fund {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px;
  display: grid;
  gap: 10px;
}
.sheet.is-task .task-fund .task-section-head { margin: 0; }
.fund-counts { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.fund-count {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  background: var(--petrol-soft);
  color: var(--petrol-dark);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.fund-count.is-bestaetigt,
.fund-count.is-behoben { background: var(--petrol); color: #fff; }
.fund-count.is-noch { background: #f8e8e4; color: var(--danger); }
.fund-count.is-unklar,
.fund-count.is-verworfen { background: #eef1f3; color: var(--muted); }
.fund-search { display: flex; gap: 8px; align-items: center; }
.fund-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  background: var(--panel);
  padding: 8px 12px;
  font: inherit;
  color: var(--ink);
}
.fund-search .btn.quiet {
  flex: none;
  border-radius: 999px;
  background: var(--petrol);
  color: #fff;
  box-shadow: none;
}
.fund-search .btn.quiet:disabled { opacity: 0.7; cursor: progress; }
.fund-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fund-list:empty { display: none; }
.fund-row {
  display: grid;
  gap: 6px;
  background: var(--panel);
  border-radius: 12px;
  padding: 10px 12px;
}
.fund-row-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.fund-url { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.fund-snippet { margin: 0; font-size: 14px; line-height: 1.45; }
.fund-snippet mark { background: var(--petrol-soft); color: var(--petrol-dark); border-radius: 4px; padding: 0 2px; }
.fund-expect { margin: 0; color: var(--muted); font-size: 13px; }
.fund-shot { width: 160px; max-width: 100%; border-radius: 10px; }
.fund-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fund-yes,
.fund-no {
  border: 0;
  border-radius: 999px;
  padding: 4px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.fund-yes { background: var(--petrol); color: #fff; }
.fund-no { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.fund-yes:hover,
.fund-no:hover { filter: brightness(0.96); }
.fund-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fund-add { display: grid; gap: 8px; }
.fund-add .field { margin: 0; }
.task-fund .hint,
.task-fund .form-error,
.task-fund .task-empty { margin: 0; }
.week-card.is-due { background: #fdf4f1; box-shadow: inset 0 0 0 1.5px var(--danger); }
.week-card.is-due h2 { color: var(--danger); }
.week-page { display: grid; gap: 18px; }
.week-page .hub-sub { margin: 0; max-width: 66ch; color: var(--muted); }
.week-steps { display: flex; flex-wrap: wrap; gap: 4px 18px; border-bottom: 1px solid var(--line); }
.week-step { border: 0; background: transparent; color: var(--muted); border-radius: 0; padding: 8px 0 10px; font: inherit; cursor: pointer; box-shadow: inset 0 -2px 0 transparent; }
.week-step.is-on { color: var(--petrol-dark); font-weight: 700; background: transparent; box-shadow: inset 0 -2px 0 var(--petrol); }
.week-body { display: grid; gap: 6px; }
.week-sec { padding: 4px 0 8px; }
.week-review { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 22px; align-items: start; }
.week-review > .week-sec { min-width: 0; padding-top: 0; }
.week-review .week-sec-head { margin-top: 0; }
.week-review .week-title, .week-review .week-meta { overflow-wrap: anywhere; }
.week-sec-head { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 2px; }
.week-sec.is-done .week-sec-head { background: #e7f6ec; border-radius: 12px; padding: 8px 12px; margin: 8px 0 4px; }
.week-sec.is-done .week-sec-head h2 { color: #1f6b3a; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.week-done-mark { display: inline-flex; align-items: center; justify-content: center; width: 1.15rem; height: 1.15rem; border-radius: 999px; background: #1f6b3a; color: #fff; font-size: 0.72rem; font-weight: 700; line-height: 1; }
.week-done-line { margin: 2px 0 8px; color: #1f6b3a; font-size: 0.88rem; }
.week-sec.is-done .week-row { box-shadow: none; }
.week-sec.is-done .week-title { font-weight: 550; color: var(--ink); }
.week-sec-head h2, .week-theme h2, .week-load h2 { margin: 0; font-size: 0.98rem; font-weight: 700; }
.week-theme h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.week-archived-chip { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; background: var(--panel); color: var(--muted); font-size: 0.72rem; font-weight: 650; letter-spacing: 0; text-transform: none; line-height: 1.5; }
.week-count { color: var(--muted); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.week-theme, .week-goal { background: transparent; box-shadow: none; border-radius: 0; padding: 0 0 16px; }
.week-theme + .week-theme { border-top: 1px solid var(--line); padding-top: 16px; }
.week-outcome { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.week-outcome p { margin: 0; }
.week-block { color: var(--danger); font-weight: 650; font-size: 0.78rem; }
.week-item-tools, .week-bar, .week-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.week-row .week-actions { margin-top: 4px; max-height: none; opacity: 1; overflow: visible; pointer-events: auto; }
.week-bar { justify-content: space-between; margin-top: 4px; }
.week-shift { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.week-shift input, .week-field input, .week-field select, .week-goal textarea { font: inherit; border: 0; background: var(--panel); border-radius: 8px; padding: 8px 10px; }
.week-cols, .week-assign { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.week-assign { grid-template-columns: minmax(200px, 260px) 1fr; align-items: start; }
.week-bin { background: var(--panel); border-radius: 12px; padding: 10px 12px 6px; min-height: 88px; }
.week-bin[data-week-bin="now"] { background: var(--petrol-soft); }
.week-bin.is-over { box-shadow: inset 0 0 0 1.5px var(--petrol); }
.week-bin h3 { margin: 0 0 6px; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--petrol-dark); }
.week-item, .week-assign-row { display: grid; gap: 4px 10px; background: transparent; border-radius: 0; padding: 8px 0; margin: 0; box-shadow: none; }
.week-item { grid-template-columns: auto minmax(0, 1fr); align-items: start; border-top: 1px solid rgba(47, 111, 126, 0.14); }
.week-item-tools { grid-column: 2; }
.week-item-tools .btn { padding: 4px 10px; }
.week-grip { color: var(--petrol); opacity: 0.55; cursor: grab; letter-spacing: -2px; line-height: 1.4; }
.week-item.is-dragging { opacity: 0.45; }
.week-empty { color: var(--muted); margin: 2px 0 8px; font-size: 0.88rem; }
.week-item-copy { display: grid; gap: 2px; min-width: 0; }
.week-assign-row { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(8rem, 1fr)); align-items: end; border-top: 1px solid var(--line); }
.week-field { display: grid; gap: 4px; font-size: 0.78rem; color: var(--muted); }
.week-field.is-missing select, .week-field.is-missing input { background: #fdf4f1; color: var(--danger); }
.week-goal { display: grid; gap: 6px; }
.week-goal span { font-weight: 650; }
.week-goal textarea { width: 100%; resize: vertical; }
.week-load { background: transparent; padding: 0; }
.week-load-row { display: grid; gap: 4px; margin: 0 0 12px; }
.week-load-name { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.week-load-name span { color: var(--muted); font-size: 0.78rem; }
.week-load-row.is-over .week-load-name strong, .week-load-row.is-over .week-load-name span { color: var(--danger); }
.week-load-bar { height: 8px; border-radius: 999px; background: var(--panel); overflow: hidden; }
.week-load-bar i { display: block; height: 100%; background: var(--petrol); border-radius: inherit; }
.week-load-row.is-over .week-load-bar i { background: var(--danger); }
.week-outcome .btn.week-act.is-on { background: var(--petrol-soft); border-color: var(--petrol); color: var(--petrol-dark); box-shadow: none; }
.week-title { border: 0; background: transparent; padding: 0; margin: 0; font: inherit; font-weight: 650; text-align: left; color: var(--ink); cursor: pointer; }
.week-title:hover { color: var(--petrol); }
.week-row { display: grid; gap: 2px; padding: 8px 0 8px 10px; border-top: 1px solid var(--line); }
.week-row.is-accent, .week-item.is-accent, .week-assign-row.is-accent { box-shadow: inset 3px 0 0 var(--danger); }
.week-row.is-approval { background: #fde8e2; box-shadow: inset 3px 0 0 var(--danger); }
.week-meta { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin: 0; color: var(--muted); font-size: 0.78rem; }
.week-meta .due.overdue, .week-prio.is-hot, .week-block { color: var(--danger); }
.week-dot { color: var(--muted); }
.week-bulk { margin: 0 0 6px; }
.week-page .btn.week-act,
.week-bulk-btn {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(47, 111, 126, 0.38);
  background: var(--card);
  color: var(--petrol-dark);
  border-radius: 999px;
  padding: 4px 10px;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
}
.week-page .btn.week-act:hover,
.week-bulk-btn:hover { background: var(--petrol-soft); color: var(--petrol-dark); }
.week-page .btn.week-act.is-go,
.week-bulk-btn.is-go { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.week-page .btn.week-act.is-go:hover,
.week-bulk-btn.is-go:hover { background: var(--petrol-dark); border-color: var(--petrol-dark); color: #fff; }
.week-page .btn.week-act.is-stop { background: var(--card); color: var(--danger); border-color: rgba(196, 58, 34, 0.35); }
.week-page .btn.week-act.is-stop:hover { background: #fdf4f1; color: var(--danger); }
.week-page .btn.week-act:disabled,
.week-bulk-btn:disabled { opacity: 0.5; cursor: default; }
.week-ack { margin: 0; color: var(--petrol-dark); font-weight: 700; font-size: 0.82rem; }
.week-person { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 550; font-size: 0.75rem; }
.week-person select {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-weight: 650;
  font-size: 0.75rem;
  color: var(--ink);
  background-color: var(--card);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2.2 4.2 6 8l3.8-3.8' fill='none' stroke='%232f6f7e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px 10px;
  border: 1px solid rgba(47, 111, 126, 0.38);
  border-radius: 999px;
  padding: 4px 26px 4px 10px;
  max-width: 9.5rem;
  box-shadow: none;
  cursor: pointer;
}
.week-mine { margin: 0 0 16px; }
@media (max-width: 1100px) {
  .week-review { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .week-cols, .week-assign, .week-assign-row, .week-review { grid-template-columns: 1fr; }
  .week-load { order: -1; }
  .week-item-tools { grid-column: 1 / -1; }
  .week-row .week-actions { max-height: none; opacity: 1; overflow: visible; pointer-events: auto; }
}
