/* IMPACT HQ styles. Design tokens (colors, radius, font sizes) are on :root at the top. */
:root {
  --bg: #f6f5fa;
  --surface: #fff;
  --fg: #1b1a2e;
  --muted: #6c6a84;
  --line: #e6e4ef;
  --soft: #f1effa;
  --c1: #e8456b;
  --c2: #e8930f;
  --c3: #1fa882;
  --c4: #2f8be0;
  --c5: #6e3ca0;
  --c5s: #f0eafa;
  --shadow: 0 1px 2px rgba(27, 26, 46, 0.04), 0 8px 24px -12px rgba(27, 26, 46, 0.12);
  --r: 14px;
  --fs-xs: 0.75rem;
  --fs-sm: 0.85rem;
  --fs-md: 0.92rem;
  --fs-base: 1rem;
  --fs-lg: 1.1rem;
  --fs-xl: 1.3rem;
  --fs-2xl: 1.8rem;
  --r-sm: 6px;
  --r-md: 10px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(27, 26, 46, 0.06), 0 2px 8px -2px rgba(27, 26, 46, 0.1);
  --shadow-lg: 0 14px 36px -8px rgba(27, 26, 46, 0.28);
  --red: #e5484d;
  --gold: #f5a623;
  --display: "Rubik", "Assistant", system-ui, sans-serif;
  --body: "Assistant", "Rubik", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121220;
    --surface: #1b1b2c;
    --fg: #f1f0f7;
    --muted: #a3a1b8;
    --line: #2f2e44;
    --soft: #262538;
    --c5: #a988e0;
    --c5s: #2b2541;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 8px -2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 14px 36px -8px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121220;
  --surface: #1b1b2c;
  --fg: #f1f0f7;
  --muted: #a3a1b8;
  --line: #2f2e44;
  --soft: #262538;
  --c5: #a988e0;
  --c5s: #2b2541;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 8px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 14px 36px -8px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}
:root[data-theme="light"] {
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: var(--fs-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--c5s);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px max(16px, env(safe-area-inset-right)) 120px max(16px, env(safe-area-inset-left));
}
header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 16px;
  padding-top: 4px;
}
header .tabs {
  grid-column: 1/-1;
  justify-self: start;
  max-width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}
.brand .lfull {
  height: 34px;
  width: auto;
  flex: none;
  display: block;
}
.brand .dk,
.brand .lmark {
  display: none;
}
.brand .lmark {
  height: 30px;
  width: auto;
  flex: none;
}
:root[data-theme="dark"] .brand .lt {
  display: none;
}
:root[data-theme="dark"] .brand .dk {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .lt {
    display: none;
  }
  :root:not([data-theme="light"]) .brand .dk {
    display: block;
  }
}
.brand .wm {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--fs-xl);
  letter-spacing: 0.06em;
  line-height: 1;
  direction: ltr;
}
.brand .hq {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  color: var(--c5);
  background: var(--c5s);
  border-radius: var(--r-sm);
  padding: 3px 6px;
  line-height: 1;
  direction: ltr;
}
.hdr-r {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  grid-row: 1;
  grid-column: 2;
  min-width: 0;
}
.wrap,
.panel {
  overflow-x: clip;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c5), var(--c4));
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-sm);
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.icobtn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: var(--fs-md);
  padding: 0;
}
.icobtn:hover {
  background: var(--soft);
}
h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--fs-2xl);
  margin: 0;
}
h1 b {
  background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3), var(--c4), var(--c5));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
#main {
  animation: fadeup 0.18s ease-out;
}
@keyframes fadeup {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.splash {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
}
.splash .brand .lfull {
  height: 56px;
}
.splash .brand .wm {
  font-size: var(--fs-2xl);
}
.spin {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--c5);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.sk {
  background: linear-gradient(90deg, var(--soft) 25%, var(--line) 50%, var(--soft) 75%);
  background-size: 200% 100%;
  animation: sk 1.2s infinite;
  border-radius: var(--r-md);
  height: 14px;
}
@keyframes sk {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cdd {
  position: relative;
  display: inline-block;
}
.cdd .car {
  font-size: 0.75em;
  opacity: 0.7;
  padding: 0 2px;
  margin-inline-start: 2px;
}
.cdm {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-start: 0;
  z-index: 60;
  width: 260px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: 8px;
}
.cdd.open .cdm {
  display: block;
}
.cdd::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 100%;
  height: 8px;
}
.cdm input {
  width: 100%;
  margin-bottom: 6px;
}
.cdl {
  max-height: 340px;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.cdm [data-cdc] {
  all: unset;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-weight: 500;
}
.cdm [data-cdc]:hover {
  background: var(--soft);
}
.cdm [data-cdc] small {
  background: var(--line);
  border-radius: var(--r-pill);
  padding: 1px 8px;
  font-size: var(--fs-xs);
}
.cdm .cdall {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0;
  justify-content: center;
  font-weight: 700;
  width: 100%;
}
.rnd {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 11px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}
.rnd b {
  color: var(--fg);
  font-weight: 700;
}
.pcdot {
  position: relative;
}
.pcdot i {
  position: absolute;
  bottom: 4px;
  inset-inline-end: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  border: 2px solid var(--surface);
}
.pcdot i.on {
  background: var(--c3);
}
.pcdot i.off {
  background: var(--c1);
}
.pcdot i.busy {
  background: var(--c2);
}
.rnd i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c5);
  display: inline-block;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}
@media (max-width: 640px) {
  .rnd .lbl {
    display: none;
  }
}
.tabs {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 4px;
  gap: 2px;
  box-shadow: var(--shadow);
}
.tab {
  border: 0;
  background: transparent;
  border-radius: var(--r-pill);
  padding: 7px 14px;
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
  transition:
    background 0.15s,
    color 0.15s;
}
.tab:hover {
  color: var(--fg);
  background: var(--soft);
}
.tab.on {
  background: var(--fg);
  color: var(--bg);
}
.tab .n {
  font-size: var(--fs-xs);
  background: var(--c1);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 1px 6px;
  margin-inline-start: 4px;
  vertical-align: 1px;
}
.bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.bar select,
.bar input {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 8px 10px;
}
.quick {
  display: flex;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
  transition: border-color 0.15s;
}
.quick:focus-within {
  border-color: var(--c5);
}
.quick input {
  flex: 1;
  min-width: 180px;
  border: 0;
  background: transparent;
  padding: 8px;
  outline: none;
}
.quick select,
.quick input[type="date"] {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--r-md);
  padding: 6px 8px;
}
.btn {
  border: 0;
  border-radius: var(--r-md);
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  background: var(--soft);
  transition:
    filter 0.12s,
    transform 0.08s;
}
.btn:hover {
  filter: brightness(0.96);
}
.btn:active {
  transform: translateY(1px);
}
.btn.primary {
  background: var(--c5);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
}
.btn.ghost:hover {
  background: var(--soft);
  filter: none;
}
.group {
  margin-bottom: 18px;
}
.ghead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-md);
  padding: 4px 4px 8px;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.ghead span:last-child {
  font-family: var(--body);
  font-weight: 600;
  font-size: var(--fs-xs);
  background: var(--soft);
  border-radius: var(--r-pill);
  padding: 1px 8px;
  min-width: 22px;
  text-align: center;
}
.ghead.late {
  color: var(--c1);
}
.list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.row {
  display: grid;
  grid-template-columns: 22px 6px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.row > * {
  min-width: 0;
}
.row strong,
.row small {
  overflow-wrap: anywhere;
}
.row:first-child {
  border-top: 0;
}
.row {
  transition: background 0.12s;
}
.row:hover {
  background: var(--soft);
}
.chk {
  width: 20px;
  height: 20px;
  border-radius: var(--r-sm);
  border: 2px solid var(--muted);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.chk.on {
  background: var(--c3);
  border-color: var(--c3);
}
.chk {
  position: relative;
  width: 22px;
  height: 22px;
}
.chk.st-in_progress {
  border-color: var(--c4);
  background: linear-gradient(to left, var(--c4) 50%, transparent 50%);
}
.chk.st-claude_working {
  border-color: var(--c5);
  background: color-mix(in srgb, var(--c5) 40%, transparent);
}
.chk.st-waiting_approval {
  border-color: var(--c2);
  background: color-mix(in srgb, var(--c2) 40%, transparent);
}
.chk.st-blocked {
  border-color: var(--c1);
  background: color-mix(in srgb, var(--c1) 30%, transparent);
}
.chk.st-done {
  background: var(--c3);
  border-color: var(--c3);
}
.chk.st-done::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}
.stpick {
  position: fixed;
  z-index: 40;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: flex;
  flex-direction: column;
  min-width: 190px;
}
.stpick button {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--r-md);
  cursor: pointer;
  font-weight: 600;
  text-align: start;
  color: var(--fg);
}
.stpick button:hover,
.stpick button.on {
  background: var(--soft);
}
.stpick i {
  width: 16px;
  height: 16px;
  border-radius: var(--r-sm);
  display: inline-block;
  flex: none;
}
.stpick input {
  margin: 4px 8px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 8px;
  background: var(--bg);
  color: var(--fg);
}
.stpick .sep {
  height: 1px;
  background: var(--line);
  margin: 4px 6px;
}
.qp {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 2px 9px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.qp:hover {
  border-color: var(--c5);
  color: var(--c5);
}
.qp.on {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.qp.ghost {
  opacity: 0;
  color: var(--muted);
}
.row:hover .qp.ghost {
  opacity: 0.75;
}
.qp.today {
  background: color-mix(in srgb, var(--c4) 12%, var(--surface));
  color: var(--c4);
  border-color: transparent;
}
.qp.over {
  background: color-mix(in srgb, var(--c1) 12%, var(--surface));
  color: var(--c1);
  border-color: transparent;
}
.qp.rem {
  background: color-mix(in srgb, var(--c2) 15%, var(--surface));
  color: var(--c2);
  border-color: transparent;
}
.peek {
  display: block;
  color: var(--muted);
  font-size: var(--fs-sm);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 520px;
}
@media (hover: none) {
  .qp.ghost {
    display: none;
  }
}
.chip.prog {
  background: color-mix(in srgb, var(--c4) 15%, var(--surface));
  color: var(--c4);
}
.pri {
  width: 6px;
  height: 30px;
  border-radius: var(--r-sm);
}
.p1 {
  background: var(--c1);
}
.p2 {
  background: var(--c2);
}
.p3 {
  background: var(--c4);
}
.p4 {
  background: var(--line);
}
.row strong {
  display: block;
  font-weight: 700;
}
.row small {
  color: var(--muted);
  font-size: var(--fs-sm);
}
.row.done strong {
  text-decoration: line-through;
  color: var(--muted);
}
.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.chip {
  font-size: var(--fs-xs);
  font-weight: 700;
  border-radius: var(--r-pill);
  padding: 2px 9px;
  white-space: nowrap;
  background: var(--soft);
  color: var(--muted);
}
.chip.claude {
  background: color-mix(in srgb, var(--c5) 15%, var(--surface));
  color: var(--c5);
}
.chip.ok {
  background: color-mix(in srgb, var(--c3) 15%, var(--surface));
  color: var(--c3);
}
.chip.warn {
  background: color-mix(in srgb, var(--c2) 18%, var(--surface));
  color: var(--c2);
}
.chip.bad {
  background: color-mix(in srgb, var(--c1) 15%, var(--surface));
  color: var(--c1);
}
.chip.late {
  background: color-mix(in srgb, var(--c1) 15%, var(--surface));
  color: var(--c1);
}
.chip.rec {
  background: color-mix(in srgb, var(--c2) 15%, var(--surface));
  color: var(--c2);
}
.empty {
  color: var(--muted);
  padding: 14px;
  text-align: center;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.tile {
  padding: 14px 16px;
}
.tile small {
  color: var(--muted);
  font-weight: 600;
  font-size: var(--fs-sm);
}
.tile .v {
  font-family: var(--display);
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1.2;
  margin-top: 2px;
}
.rtab {
  overflow-x: auto;
}
.rtab table {
  width: 100%;
  border-collapse: collapse;
}
.rtab th {
  text-align: start;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--muted);
  font-weight: 600;
  background: var(--soft);
}
.rtab td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.rtab tr:last-child td {
  border-bottom: 0;
}
@media (max-width: 640px) {
  .rtab thead {
    display: none;
  }
  .rtab tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }
  .rtab td {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 0;
    border: 0;
    font-size: var(--fs-md);
  }
  .rtab td:first-child {
    grid-column: 1/-1;
    font-size: var(--fs-base);
    padding-bottom: 4px;
  }
  .rtab td::before {
    content: attr(data-l);
    color: var(--muted);
    font-size: var(--fs-sm);
  }
  .rtab td:first-child::before {
    display: none;
  }
}
.mitem {
  all: unset;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 10px;
  border-radius: var(--r-md);
  cursor: pointer;
  color: var(--fg);
}
.mitem:hover,
.mitem:active {
  background: var(--soft);
}
.mitem .mi {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--soft);
  display: grid;
  place-items: center;
  font-size: var(--fs-lg);
  flex: none;
}
.mitem b {
  display: block;
  font-family: var(--display);
}
.mitem small {
  color: var(--muted);
  font-size: var(--fs-sm);
}
.sset {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 4px;
}
.sset > label {
  font-family: var(--display);
  font-weight: 700;
  color: var(--fg);
  font-size: var(--fs-md);
  margin-bottom: 8px;
}
.asgs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.asg {
  cursor: pointer;
  margin: 0;
}
.asg input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.asg span {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  transition: all 0.12s;
}
.asg:has(input:checked) span {
  background: var(--c5s);
  border-color: var(--c5);
  color: var(--c5);
}
.asg:has(input:focus-visible) span {
  outline: 2px solid var(--c5);
  outline-offset: 2px;
}
.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.ptile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
.ptile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.ptile.need {
  border-color: var(--c5);
  box-shadow: 0 0 0 2px var(--c5s);
}
.pmedia {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--soft);
  overflow: hidden;
}
.pmedia img,
.pmedia video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pnone {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: var(--fs-2xl);
  opacity: 0.5;
}
.pmulti {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  padding: 2px 8px;
  font-weight: 700;
}
.pst {
  position: absolute;
  bottom: 8px;
  inset-inline-start: 8px;
  backdrop-filter: blur(6px);
}
.pbody {
  padding: 10px 12px;
}
.pbody small {
  color: var(--muted);
  font-size: var(--fs-xs);
  display: block;
}
.pcap {
  font-weight: 600;
  font-size: var(--fs-md);
  line-height: 1.35;
  margin: 3px 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
@media (max-width: 640px) {
  .pgrid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .pbody {
    padding: 8px 10px;
  }
  .pcap {
    font-size: var(--fs-sm);
  }
}
.krow {
  grid-template-columns: minmax(140px, 1fr) auto;
  cursor: default;
}
.krow .chips {
  justify-content: flex-end;
}
.krow .chips .btn {
  font-size: var(--fs-sm);
  padding: 6px 10px;
}
@media (max-width: 640px) {
  .krow {
    grid-template-columns: 1fr !important;
  }
  .krow .chips {
    justify-content: flex-start;
  }
}
.ibx {
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
details.ibxd {
  display: block;
  padding: 0;
}
details.ibxd > .ibxb {
  padding: 0 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ibxs {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  min-width: 0;
}
.ibxs::-webkit-details-marker {
  display: none;
}
.ibxs b {
  flex: none;
  max-width: 40%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ibxt {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: var(--fs-sm);
}
.ibxc {
  flex: none;
  color: var(--muted);
  transition: transform 0.15s;
}
details.ibxd[open] .ibxc {
  transform: rotate(180deg);
}
details.ibxd[open] > .ibxs {
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.golinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.golink {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--fg);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}
.golink:hover {
  border-color: var(--c5);
  color: var(--c5);
}
a[data-go] {
  color: var(--c5);
  font-weight: 600;
}
.quote {
  border-inline-start: 3px solid var(--c5);
  background: var(--soft);
  padding: 8px 10px;
  border-radius: var(--r-sm);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: var(--fs-md);
}
.quote small {
  display: block;
  color: var(--muted);
  font-size: var(--fs-xs);
  margin-bottom: 2px;
}
.flash {
  animation: flash 2.6s ease;
}
@keyframes flash {
  0%,
  45% {
    box-shadow: 0 0 0 3px var(--c5);
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}
.thread {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bub {
  max-width: 85%;
  padding: 8px 11px;
  border-radius: var(--r);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: var(--fs-md);
  line-height: 1.45;
}
.bub small {
  display: block;
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-top: 3px;
}
.bub.in {
  align-self: flex-start;
  background: var(--soft);
}
.bub.out {
  align-self: flex-end;
  background: color-mix(in srgb, var(--c5) 14%, var(--surface));
}
.bub.on {
  box-shadow: 0 0 0 2px var(--c5);
}
.rel {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(6, minmax(200px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  align-items: start;
}
.kcol {
  background: var(--soft);
  border-radius: var(--r);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
  transition: outline 0.1s;
}
.kcol.over {
  outline: 2px dashed var(--c5);
}
.khead {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: 2px 4px;
}
.khead i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.khead span {
  margin-inline-start: auto;
  color: var(--muted);
  font-weight: 600;
}
.kempty {
  color: var(--muted);
  text-align: center;
  font-size: var(--fs-sm);
  padding: 6px;
}
.lcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.lcard:hover {
  border-color: var(--c5);
}
.lchips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.lchip {
  --sc: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
}
.lchip span {
  font-size: var(--fs-xs);
  color: var(--muted);
  font-weight: 700;
}
.lchip:hover {
  border-color: var(--sc);
}
.lchip.on {
  background: color-mix(in srgb, var(--sc) 14%, var(--surface));
  border-color: color-mix(in srgb, var(--sc) 45%, transparent);
  color: var(--sc);
}
.lchip.on span {
  color: inherit;
}
@media (max-width: 760px) {
  .lchips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .lchip {
    flex: none;
  }
}
.lrows {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.lrow,
.lhead {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 160px minmax(0, 1.5fr) 84px 124px;
  gap: 16px;
  align-items: center;
  padding: 12px 18px;
}
.lhead {
  padding: 9px 18px;
  background: var(--soft);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line);
}
.lrow {
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.12s;
}
.lrow:last-child {
  border-bottom: 0;
}
.lrow:hover {
  background: color-mix(in srgb, var(--c5) 5%, var(--surface));
}
.lrow.cold::before {
  content: "";
  position: absolute;
  inset-block: 10px;
  inset-inline-start: 0;
  width: 3px;
  border-radius: 3px;
  background: var(--c1);
}
.lrow.closed {
  opacity: 0.6;
}
.lrow .lname {
  min-width: 0;
}
.lrow b {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: var(--fs-md, 1rem);
}
.lrow small {
  display: block;
  color: var(--muted);
  font-size: var(--fs-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.lrow select.lst {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 32px;
  border-radius: var(--r-pill);
  padding: 0 28px 0 12px;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  text-align: center;
  text-align-last: center;
  color: var(--sc);
  background-color: color-mix(in srgb, var(--sc) 13%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--sc) 30%, transparent);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 11px center;
}
.lrow select.lst:hover {
  border-color: var(--sc);
}
.lrow .lnx {
  min-width: 0;
  font-size: var(--fs-sm);
}
.lrow .ldt {
  text-align: center;
}
.lrow .lnx .t {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--fg);
}
.lrow .ldt .d {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--soft);
  color: var(--muted);
}
.lrow .ldt.od .d {
  background: color-mix(in srgb, var(--c1) 14%, var(--surface));
  color: var(--c1);
}
.lrow .lnx.none .t {
  color: var(--muted);
}
.lrow .lact {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.lrow .lact button,
.lrow .lact i {
  width: 36px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-md);
  cursor: pointer;
  font-size: 0.95rem;
  font-style: normal;
}
.lrow .lact i {
  visibility: hidden;
}
.lrow .lact button:hover {
  border-color: var(--c5);
  background: var(--soft);
}
.lrow .mdt {
  display: none;
}
@media (max-width: 760px) {
  .lhead {
    display: none;
  }
  .lrow {
    grid-template-columns: minmax(0, 1fr) 118px;
    grid-template-areas: "name st" "nx act";
    gap: 10px 10px;
    padding: 12px 14px;
  }
  .lrow .lname {
    grid-area: name;
  }
  .lrow select.lst {
    grid-area: st;
  }
  .lrow .lnx {
    grid-area: nx;
  }
  .lrow .ldt {
    display: none;
  }
  .lrow .lact {
    grid-area: act;
  }
  .lrow .mdt {
    display: inline;
    font-weight: 700;
    color: var(--muted);
  }
  .lrow .ldt.od + * {
  }
}
.lafter {
  position: fixed;
  bottom: 16px;
  inset-inline: 16px;
  max-width: 640px;
  margin: 0 auto;
  z-index: 60;
  background: var(--surface);
  border: 1px solid var(--c5);
  border-radius: var(--r);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lafter .row2 {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.lafter input {
  flex: 1;
  min-width: 200px;
}
@media (max-width: 760px) {
  .lrow {
    grid-template-columns: 1fr auto;
  }
  .lrow .lnx {
    grid-column: 1;
    min-width: 0;
  }
  .lrow select.lst {
    grid-row: 1;
    grid-column: 2;
  }
  .lrow .lact {
    grid-column: 2;
    justify-content: flex-end;
  }
}
.lcard.cold {
  border-inline-start: 3px solid var(--c1);
}
.lcard small {
  color: var(--muted);
  font-size: var(--fs-xs);
  overflow-wrap: anywhere;
}
.lcard .lwant {
  color: var(--fg);
}
.lnext {
  color: var(--c5) !important;
  font-weight: 600;
}
.lq {
  align-self: flex-start;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--lq);
  background: color-mix(in srgb, var(--lq) 12%, var(--surface));
  border-radius: var(--r-pill);
  padding: 2px 9px;
  margin-top: 2px;
}
.lnext.od {
  color: var(--c1) !important;
}
.lfoot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.lfoot small {
  flex: 1;
}
.lstages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.jpre {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 2px;
}
.jpre span {
  font-size: var(--fs-xs);
  color: var(--muted);
  background: var(--soft);
  border-radius: 99px;
  padding: 2px 9px;
}
.jpre span.ok {
  color: var(--c3);
}
.journey {
  border: 1px solid color-mix(in srgb, var(--c5) 35%, var(--line));
  border-radius: var(--r);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: color-mix(in srgb, var(--c5) 5%, var(--surface));
}
.jsteps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  font-size: var(--fs-xs);
}
.jsteps li {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  background: var(--soft);
  border-radius: var(--r-pill);
  padding: 3px 9px 3px 7px;
  font-weight: 700;
}
.jsteps li.ok {
  color: var(--c3);
  background: color-mix(in srgb, var(--c3) 12%, var(--surface));
}
.jsteps li.now {
  color: #fff;
  background: var(--c5);
}
.jsteps li span {
  font-weight: 600;
}
.jnow {
  font-size: var(--fs-md);
  line-height: 1.5;
}
.prep {
  font-size: var(--fs-md);
  line-height: 1.55;
}
.prep h4 {
  margin: 10px 0 4px;
  color: var(--c5);
  font-size: var(--fs-md);
}
.prep p {
  margin: 0 0 6px;
}
.prep li {
  margin: 0 0 3px;
  margin-inline-start: 18px;
  list-style: disc;
}
.spin.sm {
  width: 14px;
  height: 14px;
  border-width: 2px;
  display: inline-block;
  vertical-align: -2px;
}
.review {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.review > div {
  background: var(--soft);
  border-radius: var(--r-md);
  padding: 8px 10px;
}
.review b {
  display: block;
  font-size: var(--fs-sm);
  color: var(--c5);
}
.review span {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.review em {
  color: var(--muted);
  font-style: normal;
}
@media (max-width: 760px) {
  .kanban {
    grid-template-columns: 1fr;
    overflow: visible;
  }
  .kcol {
    min-height: 0;
  }
}
.tgroup {
  margin-bottom: 16px;
}
.tgroup > .list {
  margin-bottom: 6px;
  border-color: color-mix(in srgb, var(--c5) 35%, var(--line));
}
.titems {
  padding-inline-start: 12px;
  border-inline-start: 3px solid color-mix(in srgb, var(--c5) 30%, transparent);
}
.infos {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
details.infos > summary {
  cursor: pointer;
  list-style: none;
  padding: 8px 12px;
  border-radius: var(--r-md);
  background: var(--soft);
  font-weight: 700;
  font-size: var(--fs-md);
  color: var(--muted);
}
details.infos > summary::-webkit-details-marker {
  display: none;
}
details.infos[open] > summary {
  margin-bottom: 6px;
}
.why {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}
.why input {
  flex: 1;
  min-width: 140px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 6px 8px;
  background: var(--bg);
}
.home {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.home > * {
  min-width: 0;
}
.hbox {
  overflow: hidden;
}
.hh {
  flex-wrap: wrap;
  row-gap: 4px;
}
.hrow {
  min-width: 0;
}
.hbox {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.hh {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 700;
  margin-bottom: 6px;
}
.hh b {
  background: var(--c5);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  padding: 1px 8px;
}
.hh .golink,
.hh .rowact {
  margin-inline-start: auto;
}
.hrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-top: 1px solid var(--line);
  font-size: var(--fs-md);
}
.hrow:first-of-type {
  border-top: 0;
}
.hrow span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hneed {
  border-color: color-mix(in srgb, var(--c5) 45%, var(--line));
}
.hneed.folded .hh {
  margin-bottom: 0;
}
.hh .ibxc {
  margin-inline-start: auto;
  color: var(--muted);
}
.hh .hsnz {
  font-size: var(--fs-xs);
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}
.hh .hsnz + .ibxc,
.hh .hurg + .ibxc {
  margin-inline-start: 0;
}
.hh .hsnz {
  margin-inline-start: auto;
}
.hurg {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--red);
  background: color-mix(in srgb, var(--red) 12%, transparent);
  border-radius: var(--r-pill);
  padding: 2px 8px;
}
.hrow.urg span {
  font-weight: 600;
}
.hrow.snzd {
  opacity: 0.55;
}
.hrow .qp {
  flex: none;
}
.snzpick button {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
}
.hmorning {
  background: color-mix(in srgb, var(--gold) 10%, var(--surface));
}
.hwork .hrow span {
  color: var(--muted);
}
.hcalm {
  font-size: var(--fs-sm);
  color: var(--muted);
  padding: 8px 12px;
  margin-bottom: 12px;
  border-radius: var(--r-md);
  background: var(--soft);
}
#newver {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  border: 0;
  border-radius: var(--r-pill);
  padding: 11px 18px;
  font: inherit;
  font-weight: 700;
  background: var(--c5);
  color: #fff;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}
.info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: var(--soft);
  border-radius: var(--r-md);
  padding: 8px 10px;
  font-size: var(--fs-sm);
}
.info > span {
  flex: 1 1 200px;
}
.info .golinks {
  flex: 0 1 auto;
}
.ibx textarea,
.ibx input[data-sub] {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px;
  background: var(--bg);
  width: 100%;
  line-height: 1.5;
}
.ibx textarea:focus,
.ibx input:focus {
  border-color: var(--c5);
  background: var(--surface);
}
.drawer {
  position: fixed;
  inset: 0;
  background: rgba(14, 12, 30, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: flex-start;
  z-index: 20;
  animation: fadein 0.15s;
}
@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.panel {
  background: var(--surface);
  width: min(540px, 100%);
  height: 100%;
  overflow: auto;
  padding: 20px max(16px, env(safe-area-inset-right)) 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: slidein 0.2s ease-out;
  box-shadow: var(--shadow-lg);
}
@keyframes slidein {
  from {
    transform: translateX(-24px);
    opacity: 0.6;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.drawer.sheet .panel {
  animation: slideup 0.22s ease-out;
}
@keyframes slideup {
  from {
    transform: translateY(30px);
    opacity: 0.6;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.phead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: sticky;
  top: -20px;
  background: var(--surface);
  margin: -20px -20px 0 -16px;
  padding: 14px 20px 10px 16px;
  z-index: 3;
  border-bottom: 1px solid var(--line);
}
.phead .ttl {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-md);
  color: var(--muted);
}
.xbtn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-size: var(--fs-lg);
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--muted);
}
.xbtn:hover {
  background: var(--soft);
  color: var(--fg);
}
.qa {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.qa .btn {
  font-size: var(--fs-sm);
  padding: 7px 11px;
}
.panel h2 {
  font-family: var(--display);
  margin: 0;
  font-size: var(--fs-xl);
}
.panel label,
.scard label {
  font-size: var(--fs-sm);
  color: var(--muted);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
.fld,
.panel input,
.panel select,
.panel textarea,
.scard input,
.scard select,
.scard textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 8px 10px;
  background: var(--bg);
  flex: none;
}
.panel > * {
  flex: none;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.checkitem {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 4px 0;
}
.comment {
  background: var(--soft);
  border-radius: var(--r-md);
  padding: 8px 10px;
  font-size: var(--fs-md);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.comment b {
  font-size: var(--fs-sm);
  color: var(--muted);
}
.feed .item {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-md);
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  overflow-wrap: anywhere;
}
.feed .item:first-child {
  border-top: 0;
}
.feed .who {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  font-family: var(--display);
  background: var(--soft);
  color: var(--muted);
}
.feed .who.claude {
  background: var(--c5s);
  color: var(--c5);
}
.feed .who.me {
  background: linear-gradient(135deg, var(--c5), var(--c4));
  color: #fff;
}
.feed time {
  color: var(--muted);
  font-size: var(--fs-xs);
  white-space: nowrap;
  padding-top: 2px;
}
.feed .dh {
  padding: 10px 14px 4px;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--muted);
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.feed .dh:first-child {
  border-top: 0;
}
.login {
  max-width: 360px;
  margin: 12vh auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.login input {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px;
  background: var(--bg);
}
.err {
  color: var(--c1);
  font-size: var(--fs-md);
}
.toast {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: var(--fg);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: var(--r-md);
  font-weight: 600;
  z-index: 30;
  box-shadow: var(--shadow-lg);
  animation: toastin 0.2s ease-out;
  max-width: min(92vw, 520px);
  text-align: center;
}
@keyframes toastin {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
@media (max-width: 520px) {
  .grid2 {
    grid-template-columns: 1fr;
  }
}
.quick .more {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--r-md);
  padding: 6px 10px;
  cursor: pointer;
}
.quick .opts {
  display: contents;
}
.cal .day .cnt {
  display: none;
  background: var(--c5);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  padding: 0 6px;
  margin-top: 4px;
}
/* phone: single scrollable rows instead of stacking */
@media (max-width: 640px) {
  .tabs,
  .bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .tabs::-webkit-scrollbar,
  .bar::-webkit-scrollbar {
    display: none;
  }
  .tab {
    white-space: nowrap;
    flex: none;
  }
  .bar > * {
    flex: none;
  }
  .bar input#fq {
    min-width: 120px;
  }
  .quick .opts {
    display: none;
    width: 100%;
    gap: 8px;
    flex-wrap: wrap;
  }
  .quick.open .opts {
    display: flex;
  }
  .quick .more {
    display: inline-flex;
  }
  .row {
    grid-template-columns: 22px 6px minmax(0, 1fr);
    row-gap: 6px;
  }
  .row .chips {
    grid-column: 2/4;
    justify-content: flex-start;
  }
  .panel {
    padding-bottom: 40px;
  }
  .cal .day {
    min-height: 52px;
  }
  .cal .day .ev {
    display: none;
  }
  .cal .day .cnt {
    display: inline-block;
  }
}
.day.sel {
  background: color-mix(in srgb, var(--c5) 12%, var(--surface));
}
.savebar {
  position: sticky;
  bottom: -40px;
  margin: 8px -20px -40px -16px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.savebar .btn {
  flex: 1;
}
.rowact {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: var(--fs-base);
  padding: 2px 4px;
  opacity: 0.55;
  border-radius: var(--r-sm);
}
.row .rowact[data-share],
.row .rowact[data-claude] {
  opacity: 0;
}
.row:hover .rowact[data-share],
.row:hover .rowact[data-claude] {
  opacity: 0.6;
}
@media (hover: none) {
  .row .rowact[data-share],
  .row .rowact[data-claude] {
    display: none;
  }
}
.rowact:hover {
  opacity: 1;
}
.hint {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin: 0;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--c5);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.seg button {
  border: 0;
  background: var(--surface);
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
}
.seg button.on {
  background: var(--fg);
  color: var(--bg);
}
.board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.col {
  background: var(--soft);
  border-radius: var(--r);
  padding: 8px;
  min-height: 200px;
}
.col h3 {
  font-family: var(--display);
  font-size: var(--fs-md);
  margin: 4px 6px 8px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 8px 10px;
  margin-bottom: 8px;
  cursor: grab;
  font-size: var(--fs-md);
}
.card small {
  display: block;
  color: var(--muted);
}
.col.over,
.day.over {
  outline: 2px dashed var(--c5);
}
.cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.cal .hd {
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  font-size: var(--fs-sm);
}
.day {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  min-height: 86px;
  padding: 4px;
  font-size: var(--fs-xs);
  overflow: hidden;
}
.day.other {
  opacity: 0.45;
}
.day.today {
  border-color: var(--c5);
  border-width: 2px;
}
.day .n {
  font-weight: 700;
  font-size: var(--fs-sm);
}
.day .ev {
  background: var(--soft);
  border-radius: var(--r-sm);
  padding: 1px 4px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.fh {
  cursor: grab;
  color: var(--muted);
  opacity: 0.45;
  font-size: var(--fs-base);
  line-height: 1;
  padding: 2px 4px;
  margin-inline-end: 2px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.fh:hover {
  opacity: 1;
}
summary .fh {
  margin-inline-start: -6px;
}
.shead .fh {
  align-self: center;
}
body.moving * {
  cursor: grabbing !important;
}
header .tabs .tab {
  touch-action: pan-x;
}
.group.slim {
  margin-bottom: 6px;
}
.group.slim .ghead {
  padding-bottom: 4px;
  opacity: 0.7;
}
.group.slim .list .empty {
  padding: 7px 12px;
  font-size: var(--fs-sm);
}
.dropbar {
  display: none;
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 20px));
  z-index: 60;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  animation: dbin 0.15s ease-out;
}
@keyframes dbin {
  from {
    opacity: 0;
    transform: translate(-50%, -8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
.sortable-fallback {
  opacity: 0.97 !important;
  box-shadow: var(--shadow-lg) !important;
  transform: rotate(-1.2deg) scale(1.02);
  border-radius: var(--r-md);
  background: var(--surface) !important;
  pointer-events: none;
  list-style: none;
}
details.fold > summary {
  touch-action: pan-y;
}
body.dragging-task .dropbar {
  display: flex;
}
.dropbar .dbl {
  font-size: var(--fs-sm);
  color: var(--muted);
  font-weight: 700;
}
.dz {
  flex: 1 1 84px;
  min-height: 46px;
  background: var(--bg);
  transition:
    background 0.12s,
    border-color 0.12s;
  border: 2px dashed var(--line);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: 700;
  overflow: hidden;
  padding: 4px 6px;
  text-align: center;
}
.dz.sortable-over,
.dz:has(.dzghost) {
  border-color: var(--c5);
  background: color-mix(in srgb, var(--c5) 12%, var(--surface));
  color: var(--c5);
}
.dz .row,
.dz .dzghost {
  display: none !important;
}
.dghost {
  opacity: 0.35;
  background: color-mix(in srgb, var(--c5) 14%, var(--surface)) !important;
}
.dchosen {
  box-shadow: var(--shadow-lg);
}
body.dragging-task .list .empty {
  border: 2px dashed var(--line);
  border-radius: var(--r-md);
  margin: 6px;
}
.row[data-id] {
  touch-action: pan-y;
}
.bulk {
  position: sticky;
  bottom: calc(10px + env(safe-area-inset-bottom));
  background: var(--fg);
  color: var(--bg);
  border-radius: var(--r);
  padding: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  z-index: 5;
}
.bulk select,
.bulk input,
.bulk button {
  border-radius: var(--r-sm);
  border: 0;
  padding: 6px 10px;
}
.row.dragging {
  opacity: 0.4;
}
a.btn {
  color: var(--fg);
  text-decoration: none;
}
a.btn.primary {
  color: #fff;
}
.quick input[type="date"],
.quick input[type="time"] {
  flex: 0 0 auto;
  min-width: 0;
}
.ev.mtg {
  background: color-mix(in srgb, var(--c4) 18%, var(--surface));
  color: var(--fg);
}
.bnav {
  display: none;
}
.mbdg {
  background: var(--c1);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  padding: 1px 7px;
  margin-inline-start: 4px;
  vertical-align: middle;
}
.fpad {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.panel details.fold {
  margin: 0;
}
.addfold > summary {
  list-style: none;
  cursor: pointer;
  color: var(--c5);
  font-weight: 700;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}
.addfold > summary::-webkit-details-marker {
  display: none;
}
.addfold[open] > summary {
  color: var(--muted);
}
@media (max-width: 640px) {
  .tabs {
    display: none;
  }
  .bnav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    z-index: 15;
  }
  .bnav button {
    flex: 1;
    border: 0;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: var(--fs-xs);
    color: var(--muted);
    font-weight: 600;
    padding: 4px 0;
    position: relative;
    cursor: pointer;
  }
  .bnav button.on {
    color: var(--c5);
  }
  .bnav .bdg {
    position: absolute;
    top: 0;
    inset-inline-start: calc(50% + 6px);
    background: var(--c1);
    color: #fff;
    border-radius: var(--r-pill);
    font-size: var(--fs-xs);
    min-width: 17px;
    height: 17px;
    line-height: 17px;
    padding: 0 4px;
  }
  .wrap {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
  .toast {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
  .bulk {
    bottom: calc(76px + env(safe-area-inset-bottom));
  }
  header {
    margin-bottom: 10px;
    gap: 8px;
  }
  .brand .wm {
    font-size: var(--fs-lg);
  }
  .brand {
    flex: none;
  }
  .rnd {
    padding: 5px 9px;
    font-size: var(--fs-xs);
  }
  .rnd .tm,
  #thm {
    display: none;
  }
  .quick.compact {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
  }
  .quick.compact > input:first-child {
    grid-column: 1/-1;
  }
  .quick.compact input[type="date"],
  .quick.compact select {
    width: 100%;
    min-width: 0;
  }
  .drawer.sheet {
    align-items: flex-end;
  }
  .drawer.sheet .panel {
    height: auto;
    border-radius: var(--r) var(--r) 0 0;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
}
details.fold {
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}
details.fold > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  user-select: none;
}
details.fold > summary::-webkit-details-marker {
  display: none;
}
details.fold > summary .fcount {
  margin-inline-start: auto;
  color: var(--muted);
  font-family: var(--body);
  font-weight: 600;
  font-size: var(--fs-md);
}
details.fold > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s;
}
details.fold[open] > summary::after {
  transform: rotate(-135deg) translateY(-2px);
}
details.fold > .foldbody {
  border-top: 1px solid var(--line);
}
details.fold > .foldbody > .list {
  border: 0;
  border-radius: 0;
}
.chead {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.chead::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--c5), var(--c4));
}
.clrow {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
}
.clav {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  color: #fff;
  font-size: var(--fs-base);
}
.links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.lnk {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  background: var(--bg);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  font-size: var(--fs-md);
}
.lnk i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.lnk:hover {
  border-color: var(--c5);
}

.know {
  margin: 0;
  padding: 10px 12px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--soft);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--muted);
}
/* studio */
.studio {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
@media (max-width: 900px) {
  .studio {
    grid-template-columns: minmax(0, 1fr);
  }
}
.scard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.shead {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.shead h3 {
  margin: 0 0 2px;
  font-family: var(--display);
  font-size: var(--fs-lg);
}
.sic {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: var(--c5s);
  display: grid;
  place-items: center;
  font-size: var(--fs-xl);
  flex: none;
}
.srow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.srow > div {
  flex: 1;
  min-width: 130px;
}
.drop {
  border: 2px dashed var(--line);
  border-radius: var(--r);
  padding: 22px 12px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.drop span {
  color: var(--muted);
  font-size: var(--fs-sm);
}
.drop:hover,
.drop.over,
.drop:focus-visible {
  border-color: var(--c5);
  background: var(--c5s);
  outline: none;
}
.job {
  border-top: 1px solid var(--line);
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.jrow {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.jsrc {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fs-md);
}
.jrow small {
  color: var(--muted);
  font-size: var(--fs-sm);
}
/* 16.11: reels were 96px wide, impossible to watch. Now ~220px, one per row in narrow columns */
.reels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 260px));
  gap: 14px;
  justify-content: start;
}
.reel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.reel video {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  border-radius: var(--r-md);
  background: #1b1a2e;
}
.reel small {
  font-size: var(--fs-sm);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.btn.sm {
  font-size: var(--fs-sm);
  padding: 5px 9px;
}
.tform > * {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.perms {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.perm {
  all: unset;
  cursor: pointer;
  font-size: var(--fs-sm);
  padding: 5px 11px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
}
.perm.on {
  background: var(--c5);
  border-color: var(--c5);
  color: #fff;
}
.perm:disabled {
  opacity: 0.5;
}
.tform {
  gap: 10px !important;
}
.tform input {
  border: 1px solid var(--line) !important;
  border-radius: var(--r-md);
  padding: 10px 12px;
  background: var(--bg);
}
@media (max-width: 600px) {
  .tform {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
input[dir="ltr"]::placeholder {
  direction: rtl;
  text-align: right;
}
.ropts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0;
}
.ck {
  display: flex !important;
  gap: 8px;
  align-items: flex-start;
  font-size: var(--fs-md);
  cursor: pointer;
  flex-direction: row !important;
}
.ck input {
  margin: 3px 0 0 !important;
  flex: none !important;
  width: auto !important;
  min-width: 0 !important;
}
.props {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.prop {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--bg);
}
.prop input[data-pnote] {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 6px 8px;
  background: var(--surface);
  font-size: var(--fs-sm);
}
.phook {
  font-size: var(--fs-md);
  color: var(--fg);
  font-style: italic;
}
.ptext {
  white-space: pre-wrap;
  font-size: var(--fs-sm);
  color: var(--muted);
  max-height: 180px;
  overflow: auto;
  border-inline-start: 3px solid var(--line);
  padding-inline-start: 8px;
}
.brule {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.brule span {
  flex: 1;
}
.rbtns {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.rbtns .btn {
  flex: 1 1 45%;
  padding: 5px 4px;
}
.rfixbox {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rfixbox textarea {
  font-size: var(--fs-sm);
}
.fxbtns {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.fxb {
  border: 1px solid var(--line);
  background: var(--bg);
  color: inherit;
  border-radius: 999px;
  padding: 4px 10px;
  font: inherit;
  font-size: var(--fs-sm);
  cursor: pointer;
}
.fxb.on {
  background: var(--c5);
  border-color: var(--c5);
  color: #fff;
}
.fxfast {
  font-size: 0.75em;
  opacity: 0.8;
}
.fxhint:empty {
  display: none;
}
.btn.rec {
  background: var(--red);
  color: #fff;
  border: 0;
}
.recbox {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.recon {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--red) 10%, var(--surface));
}
.recon .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.2s infinite;
}
.recon b {
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-lg);
}
.recon small {
  color: var(--muted);
}
.recon .btn {
  margin-inline-start: auto;
}
.rmeters {
  display: grid;
  gap: 6px;
  width: 100%;
}
.rmeter {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 84px;
  gap: 8px;
  align-items: center;
}
.rmeter canvas {
  width: 100%;
  height: 34px;
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--fg) 5%, transparent);
}
.rml {
  display: flex;
  gap: 6px;
  align-items: center;
  font-weight: 600;
  font-size: 0.88rem;
}
.rmd {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b9bbc9;
}
.rmd.on {
  background: #2fb36b;
}
.rmeter small {
  color: var(--muted);
  font-size: 0.78rem;
}
.rmeter small.bad {
  color: var(--red);
  font-weight: 600;
}
.rsave {
  color: var(--muted);
  font-size: 0.78rem;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
.mrow {
  all: unset;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.mrow:hover {
  background: var(--soft);
}
.mrow b {
  flex: 1;
  min-width: 0;
}
.mrow small {
  color: var(--muted);
  font-size: var(--fs-sm);
}
.qchip {
  all: unset;
  cursor: pointer;
  font-size: var(--fs-sm);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
}
.qchip:hover {
  border-color: var(--c5);
  color: var(--c5);
}
.mout {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mreq {
  font-size: var(--fs-sm);
  color: var(--c5);
  font-weight: 700;
}
.mres {
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: var(--fs-md);
  overflow-wrap: anywhere;
}
#refreshBtn {
  font-size: var(--fs-base);
  line-height: 1;
}
#refreshBtn.spin {
  animation: rfspin 0.8s linear infinite;
}
@keyframes rfspin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .brand .hq {
    display: none;
  }
  header .brand .lfull {
    display: none !important;
  }
  header .brand .lmark {
    display: block;
  }
}
/* ---- design cleanup: icons, late box, keyboard focus, client columns, desktop sidebar ---- */
.ico {
  display: inline-block;
  vertical-align: -3px;
  flex: none;
}
.btn .ico,
.qp .ico,
.chip .ico,
.hh .ico,
.hurg .ico {
  margin-inline-end: 2px;
}
.icobtn .ico {
  vertical-align: 0;
}
.qp .ico,
.chip .ico {
  vertical-align: -2px;
}
.tab .tic {
  display: none;
}
.group.glate {
  background: color-mix(in srgb, var(--c1) 6%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--c1) 30%, var(--line));
  border-radius: var(--r);
  padding: 8px 8px 4px;
}
.group.glate .ghead {
  color: var(--c1);
}
.group.glate .list {
  box-shadow: none;
}
.row.kfocus {
  background: var(--soft);
  box-shadow: inset 3px 0 0 var(--c5);
}
.cgrid {
  display: block;
}
@media (min-width: 1100px) {
  .cgrid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 16px;
    align-items: start;
  }
  .cside details.fold > summary {
    padding: 11px 14px;
  }
  #ctf.quick.compact {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
  }
  #ctf.quick.compact > input:first-child {
    flex: 1;
  }
  body {
    padding-inline-start: 232px;
  }
  .wrap {
    max-width: 1200px;
  }
  header .tabs {
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    width: 232px;
    z-index: 12;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 2px;
    border-radius: 0;
    border: 0;
    border-inline-end: 1px solid var(--line);
    box-shadow: none;
    padding: 84px 12px 16px;
    background: var(--surface);
    overflow: visible;
  }
  header .tabs .tab {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: start;
    border-radius: var(--r-md);
    padding: 9px 12px;
    font-size: var(--fs-md);
  }
  header .tabs .cdd {
    display: block;
    width: 100%;
  }
  header .tabs .tab .tic {
    display: inline-flex;
    color: var(--muted);
  }
  header .tabs .tab .tl {
    flex: 1;
  }
  header .tabs .tab.on {
    background: color-mix(in srgb, var(--c5) 12%, transparent);
    color: var(--c5);
  }
  header .tabs .tab.on .tic {
    color: var(--c5);
  }
  header .tabs .tab .tl {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  header .tabs .cdd .car {
    display: none;
  }
  header .tabs .cdm {
    top: 0;
    inset-inline-start: calc(100% + 8px);
  }
  .brand {
    position: fixed;
    top: 22px;
    inset-inline-start: 24px;
    z-index: 13;
  }
  header .brand .lfull {
    height: 28px;
  }
  header {
    grid-template-columns: 1fr auto;
    min-height: 40px;
  }
  /* 16.11: the sidebar can fold into a narrow strip of icons (remembered per browser) */
  header .tabs .navtog {
    display: flex;
    margin-top: auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: 0;
    background: none;
    color: var(--muted);
    cursor: pointer;
    padding: 9px 12px;
    border-radius: var(--r-md);
    font: inherit;
    font-size: var(--fs-sm);
  }
  header .tabs .navtog:hover {
    background: var(--soft);
    color: inherit;
  }
  body.navmini {
    padding-inline-start: 68px;
  }
  body.navmini header .tabs {
    width: 68px;
    padding: 76px 8px 16px;
  }
  body.navmini header .tabs .tab {
    justify-content: center;
    padding: 10px 0;
    position: relative;
  }
  body.navmini header .tabs .tab .tl {
    font-size: 0;
    flex: none;
    gap: 0;
  }
  body.navmini header .tabs .tab .n {
    font-size: 10px;
    position: absolute;
    top: 3px;
    inset-inline-end: 6px;
    min-width: 16px;
    padding: 0 4px;
  }
  body.navmini header .tabs .navtog span {
    display: none;
  }
  body.navmini .brand {
    inset-inline-start: 17px;
  }
  body.navmini .brand .wm,
  body.navmini .brand .hq,
  body.navmini .brand .lfull {
    display: none !important;
  }
  body.navmini .brand .lmark {
    display: block;
  }
}
.navtog {
  display: none;
}

/* ---- 18.11: favorites ★, copy link 🔗, recently opened ---- */
.entbtns {
  display: inline-flex;
  gap: 6px;
  margin-inline-start: auto;
  align-items: center;
}
.entbar {
  display: inline-flex;
  margin-inline-start: auto;
}
.entbar .entbtns {
  margin: 0;
}
.icobtn.fav.on {
  color: var(--gold);
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
}
.icobtn.fav.on svg {
  fill: currentColor;
}
.navsec {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
  padding: 12px 12px 4px;
}
.favlink {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: var(--fs-sm);
  text-align: start;
  padding: 7px 12px;
  border-radius: var(--r-md);
  cursor: pointer;
  min-width: 0;
}
.favlink svg {
  color: var(--muted);
  flex: none;
}
.favlink span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.favlink:hover {
  background: var(--soft);
}
.navfavs {
  display: none;
}
@media (min-width: 1100px) {
  .navfavs {
    display: block;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
    overflow-y: auto;
    min-height: 0;
  }
  .navfavs:empty {
    display: none;
  }
  body.navmini .navfavs {
    display: none;
  }
}

/* ---- 18.11: small shared helpers instead of inline styles ---- */
.phead h2 {
  font-family: var(--display);
  font-size: 1.05rem;
  margin: 0;
}
.panel input[type="checkbox"],
.panel input[type="radio"],
.scard input[type="checkbox"],
.scard input[type="radio"] {
  width: auto;
}
.muted {
  color: var(--muted);
}
.danger {
  color: var(--c1);
}
.skel-list {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skel-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.skel-box {
  width: 22px;
  height: 22px;
  border-radius: 7px;
}

/* ---- 18.11: search everything ---- */
.drawer.search {
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 16px 16px;
}
.spal {
  width: min(640px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 70vh;
}
.sinp {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.sinp input {
  flex: 1;
  border: 0;
  outline: 0;
  background: none;
  font-size: var(--fs-lg);
  color: var(--fg);
  min-width: 0;
}
.sinp kbd {
  font: inherit;
  font-size: var(--fs-xs);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 1px 6px;
}
.sres {
  overflow-y: auto;
  padding: 4px 6px 10px;
}
.sitem {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
  padding: 9px 10px;
  border-radius: var(--r-md);
  cursor: pointer;
}
.sitem svg {
  color: var(--muted);
  flex: none;
}
.sitem span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sitem small {
  color: var(--muted);
  flex: none;
  max-width: 40%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sitem.on,
.sitem:hover {
  background: var(--soft);
}
.sitem.on svg {
  color: var(--c5);
}

/* 18.11: empty days further ahead are hidden (less noise); while dragging, the drop bar offers every day */
#tv .group.slim {
  display: none;
}

/* ---- 18.11: timeline (lead card, client page) ---- */
.tlbox {
  max-height: 420px;
  overflow-y: auto;
}
.tl {
  display: flex;
  flex-direction: column;
  padding: 2px 6px 8px;
}
.tl-day {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--muted);
  padding: 10px 8px 4px;
  position: sticky;
  top: 0;
  background: var(--surface);
}
.tl-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: var(--fs-sm);
  text-align: start;
  padding: 6px 8px;
  border-radius: var(--r-md);
  border-inline-start: 2px solid var(--line);
  margin-inline-start: 6px;
}
button.tl-row {
  cursor: pointer;
}
button.tl-row:hover {
  background: var(--soft);
}
.tl-row svg {
  color: var(--muted);
  flex: none;
}
.tl-row .tl-t {
  flex: 1;
  min-width: 0;
}
.tl-row small {
  color: var(--muted);
  flex: none;
}
.tl-msg_in {
  border-inline-start-color: var(--c3);
}
.tl-task_done {
  border-inline-start-color: var(--ok, #22a06b);
}
.tl-meeting,
.tl-roadmap {
  border-inline-start-color: var(--c5);
}
.tl-more summary {
  cursor: pointer;
  color: var(--muted);
  font-size: var(--fs-sm);
  padding: 6px 14px;
}
.toast.undo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.toast.undo button {
  border: 0;
  background: none;
  color: var(--gold);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  padding: 2px 4px;
}

/* ---- 18.11: saved views ---- */
.svbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.svbtn.on {
  color: var(--gold);
}
.svbtn.on svg {
  fill: currentColor;
}
/* proposals (16-proposals.js): service checkboxes per tier */
.pkeys {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 8px;
}
.pkey {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  margin: 0;
}
.pkey input {
  width: auto;
  margin: 0;
}
.pkey:has(input:checked) {
  border-color: var(--c4);
  background: color-mix(in srgb, var(--c4) 12%, transparent);
}


/* Page header (26.11.2026): title + one line, with the logo's colors as a thin bar */
.phd {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0 16px;
  position: relative;
  padding-bottom: 12px;
}
.phd h1 {
  font-family: var(--display);
  font-size: var(--fs-xl);
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.phd p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}
.phd-ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--c5s);
  color: var(--c5);
  flex: none;
}
.phd-bar {
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 112px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--c4) 0 20%, var(--c3) 20% 40%, var(--c2) 40% 60%, var(--c1) 60% 80%, var(--c5) 80% 100%);
}
[dir="rtl"] .phd-bar {
  background: linear-gradient(270deg, var(--c4) 0 20%, var(--c3) 20% 40%, var(--c2) 40% 60%, var(--c1) 60% 80%, var(--c5) 80% 100%);
}
@media (max-width: 700px) {
  .phd {
    margin-bottom: 12px;
    padding-bottom: 10px;
    gap: 10px;
  }
  .phd h1 {
    font-size: var(--fs-lg);
  }
  .phd-ic {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .phd-tasks {
    display: none;
  }
}

/* ---------- 26.11.2026 round 2: sales rows, scheduled WhatsApp, tiles ---------- */
.lgrp {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px 6px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.lgrp span {
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0 7px;
  line-height: 18px;
}
.lgrp.od {
  color: var(--c1);
  background: color-mix(in srgb, var(--c1) 7%, var(--surface));
}
.lrow .lnx[data-lnp],
.lrow .ldt[data-lnp] {
  cursor: pointer;
  border-radius: var(--r-md);
}
.lrow .lnx[data-lnp]:hover .t {
  color: var(--c5);
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.lrow .lnx.none .t {
  color: var(--c5);
  font-weight: 600;
}
.lrow .ldt .d.add {
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--muted);
}
.lrow .ldt[data-lnp]:hover .d {
  outline: 2px solid color-mix(in srgb, var(--c5) 35%, transparent);
}
.lsch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c3);
  background: color-mix(in srgb, var(--c3) 11%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--c3) 28%, transparent);
  border-radius: var(--r-pill);
  padding: 1px 8px;
  cursor: pointer;
}
.lsch:hover {
  border-color: var(--c3);
}
.lrow .lact .ltel {
  width: 36px;
  height: 32px;
  display: none;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-md);
  color: var(--c3);
}
@media (pointer: coarse) {
  .lrow .lact .ltel {
    display: grid;
  }
}
.tile .tsub {
  display: block;
  font-weight: 500;
  font-size: var(--fs-xs);
  margin-top: 2px;
  opacity: 0.85;
}
@media (max-width: 700px) {
  .tiles {
    gap: 8px;
    margin-bottom: 10px;
  }
  .tile {
    padding: 10px 12px;
  }
  .tile .v {
    font-size: var(--fs-xl);
  }
  .tile .tsub {
    display: none;
  }
  .lafter {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    inset-inline: 10px;
  }
}
/* scheduled WhatsApp list (inbox) and its quick-time pills */
.wq {
  padding: 0;
  overflow: hidden;
}
.wqrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.12s;
}
.wqrow:last-child {
  border-bottom: 0;
}
.wqrow:hover {
  background: color-mix(in srgb, var(--c5) 5%, var(--surface));
}
.wqt {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--c3);
  background: color-mix(in srgb, var(--c3) 11%, var(--surface));
  border-radius: var(--r-pill);
  padding: 4px 10px;
  min-width: 104px;
  justify-content: center;
}
.wqt.late {
  color: var(--c2);
  background: color-mix(in srgb, var(--c2) 13%, var(--surface));
}
.wqm {
  flex: 1;
  min-width: 0;
}
.wqm small {
  color: var(--muted);
}
.wqm .wqb {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: var(--fs-sm);
  margin-top: 1px;
}
.wqgo {
  flex: none;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c5);
}
.wqq {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}
@media (max-width: 700px) {
  .wqrow {
    flex-wrap: wrap;
    gap: 6px 10px;
  }
  .wqt {
    order: 2;
    min-width: 0;
  }
  .wqm {
    order: 1;
    flex-basis: 100%;
  }
  .wqgo {
    order: 3;
    margin-inline-start: auto;
  }
}
.lafter .wqq input { flex: none; min-width: 0; }
@media (max-width: 760px) {
  .lrow select.lst {
    min-width: 136px;
  }
}
.wqdt {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 8px;
}
#main > .list + section.group,
#main > p.hint + .list + section.group {
  margin-top: 18px;
}
@media (max-width: 700px) {
  .seg {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .seg button {
    white-space: nowrap;
    padding: 8px 11px;
    font-size: var(--fs-sm);
  }
}
.bulkbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 8px 0;
  padding: 10px 14px;
  border-radius: var(--r);
  background: color-mix(in srgb, var(--c3) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--c3) 25%, transparent);
  font-weight: 700;
}
.bulkbar .hint {
  flex-basis: 100%;
  margin: 0;
  font-weight: 500;
}

/* =====================================================================
   DESIGN LAYER (26.11.2026): one calm, premium finish on top of everything above.
   Soft neutral canvas, frosted navigation, hairline cards, iOS-style segmented controls,
   one focus ring everywhere, and the logo's five colors used as accents (not as decoration).
   ===================================================================== */
:root {
  --bg: #f5f5f8;
  --line: #e7e6ee;
  --soft: #f0eff6;
  --r: 16px;
  --r-md: 11px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow: 0 0 0 1px rgba(27, 26, 46, 0.02), 0 1px 2px rgba(27, 26, 46, 0.04), 0 10px 28px -14px rgba(40, 24, 80, 0.14);
  --shadow-sm: 0 1px 2px rgba(27, 26, 46, 0.06), 0 3px 10px -4px rgba(40, 24, 80, 0.12);
  --glass: color-mix(in srgb, var(--surface) 76%, transparent);
  --ring: 0 0 0 3px color-mix(in srgb, var(--c5) 22%, transparent);
  --brandbar: linear-gradient(90deg, var(--c5) 0 20%, var(--c1) 20% 40%, var(--c2) 40% 60%, var(--c3) 60% 80%, var(--c4) 80% 100%);
}
:root[data-theme="dark"] {
  --bg: #111119;
  --line: #2a2a3c;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111119;
    --line: #2a2a3c;
  }
}
body {
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}
/* thin scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--muted) 35%, transparent) transparent;
}
/* one focus ring for every control */
:where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
:where(.panel input, .panel select, .panel textarea, .fld, .bar input, .bar select):focus {
  border-color: color-mix(in srgb, var(--c5) 55%, var(--line)) !important;
  box-shadow: var(--ring);
  outline: none;
}
/* page header: bigger, tighter, calmer */
.phd h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.phd p {
  font-size: var(--fs-md);
}
.phd-ic {
  background: linear-gradient(140deg, color-mix(in srgb, var(--c5) 16%, var(--surface)), color-mix(in srgb, var(--c4) 12%, var(--surface)));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c5) 14%, transparent);
}
.phd-bar {
  width: 96px;
  height: 3px;
  background: var(--brandbar) !important;
}
@media (max-width: 700px) {
  .phd h1 {
    font-size: 1.3rem;
  }
}
/* cards */
.list,
.lrows,
.tile {
  border-color: var(--line);
  border-radius: var(--r);
}
.tile {
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.tile[data-lf]:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow), 0 14px 30px -18px rgba(40, 24, 80, 0.3);
}
.tile .v {
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ghead {
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
}
/* buttons */
.btn {
  min-height: 38px;
  border-radius: var(--r-md);
  transition:
    filter 0.15s,
    transform 0.12s var(--ease),
    box-shadow 0.15s,
    background 0.15s;
}
.btn.primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--c5) 86%, #fff), var(--c5));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 1px 2px rgba(40, 24, 80, 0.2),
    0 6px 16px -8px color-mix(in srgb, var(--c5) 70%, transparent);
}
.btn.primary:hover {
  filter: brightness(1.06);
}
.btn:not(.primary):not(.ghost) {
  background: var(--soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
}
/* iOS-style segmented control (was black on white) */
.seg {
  background: var(--soft);
  border: 0;
  padding: 3px;
  gap: 2px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent);
}
.seg button {
  background: transparent;
  border-radius: 9px;
  color: var(--muted);
  transition:
    background 0.18s var(--ease),
    color 0.18s,
    box-shadow 0.18s;
}
.seg button:hover {
  color: var(--fg);
}
.seg button.on {
  background: var(--surface);
  color: var(--fg);
  box-shadow: var(--shadow-sm);
}
/* filter tabs inside screens (not the sidebar) */
#main .tab.on,
.bar .tab.on {
  background: var(--c5s);
  color: var(--c5);
}
/* quick add: a Spotlight-like bar */
.quick {
  border-radius: 18px;
  padding: 10px;
  transition:
    border-color 0.15s,
    box-shadow 0.2s var(--ease);
}
.quick:focus-within {
  border-color: color-mix(in srgb, var(--c5) 45%, var(--line));
  box-shadow: var(--shadow), var(--ring);
}
.quick #qt {
  font-size: 1.02rem;
}
.qparse {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 6px;
  order: 5;
}
.qparse:empty {
  display: none;
}
.qpc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid color-mix(in srgb, var(--c5) 25%, transparent);
  background: var(--c5s);
  color: var(--c5);
  font-size: var(--fs-xs);
  font-weight: 700;
  border-radius: var(--r-pill);
  padding: 3px 10px;
  cursor: pointer;
  animation: fadeup 0.15s ease-out;
}
.qpc i {
  font-style: normal;
  opacity: 0.55;
  font-size: 0.7rem;
}
.qpc:hover i {
  opacity: 1;
}
.qpc.hint {
  background: transparent;
  border-style: dashed;
}
/* frosted navigation: sidebar on desktop, bottom bar on phone */
@media (min-width: 1100px) {
  header .tabs {
    background: var(--glass) !important;
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    backdrop-filter: blur(22px) saturate(170%);
  }
  header .tabs .tab {
    transition:
      background 0.15s,
      color 0.15s,
      box-shadow 0.15s;
  }
  header .tabs .tab.on {
    background: var(--surface) !important;
    color: var(--fg) !important;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
  }
  header .tabs .tab.on .tic {
    color: var(--c5) !important;
  }
  header .tabs::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 3px;
    background: var(--brandbar);
  }
}
.bnav {
  background: var(--glass) !important;
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent) !important;
}
/* header buttons */
.icobtn {
  transition:
    background 0.15s,
    transform 0.12s var(--ease);
}
.icobtn:active {
  transform: scale(0.95);
}
/* drawers: softer edge, smoother entrance */
.drawer .panel {
  box-shadow: -24px 0 60px -30px rgba(20, 12, 50, 0.35);
}
.phead h2 {
  letter-spacing: -0.01em;
}
/* toast: a dark frosted pill */
.toast {
  background: color-mix(in srgb, #15131f 88%, transparent);
  color: #fff;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: var(--r-pill);
  padding: 11px 20px;
  font-weight: 600;
  box-shadow: 0 12px 34px -10px rgba(0, 0, 0, 0.45);
  bottom: calc(22px + env(safe-area-inset-bottom));
}
@media (max-width: 1099px) {
  .toast {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
}
/* rows: a touch more air */
.row {
  padding: 12px 16px;
}
.chip {
  font-weight: 600;
}
/* empty states feel intentional */
.empty {
  font-size: var(--fs-md);
}
/* 26.11.2026: "בתהליך" as a quiet sub-section of the same card */
.hsub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 2px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.hwork.slim .hsub {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.hsub + .hrow {
  border-top: 0;
}
.hsub ~ .hrow {
  font-size: var(--fs-sm);
  color: var(--muted);
}
.hwork.slim {
  padding: 10px 14px;
}
/* dark mode: the primary button kept white text on a light lilac. A deeper purple there. */
:root[data-theme="dark"] .btn.primary {
  background: linear-gradient(180deg, #8a5cd0, #6c3fb3);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn.primary {
    background: linear-gradient(180deg, #8a5cd0, #6c3fb3);
  }
}
:root[data-theme="dark"] .quick .more {
  background: var(--soft);
  border-color: var(--line);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .quick .more {
    background: var(--soft);
    border-color: var(--line);
  }
}
/* phone: rows that scroll sideways fade out at the edge, so they read as "more this way" and not as cut off */
@media (max-width: 640px) {
  .bar {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px);
    mask-image: linear-gradient(to right, transparent 0, #000 28px);
  }
}

/* ---------- 26.11.2026: sales rows and lead card, from the approved design direction ---------- */
.lav {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  color: color-mix(in srgb, var(--sc) 85%, #000);
  background: color-mix(in srgb, var(--sc) 14%, var(--surface));
}
.lrow .lname {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lpipe {
  display: flex;
  gap: 3px;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  margin: 2px 0 10px;
}
.lpipe i {
  display: block;
  min-width: 6px;
}
/* lead card header */
.lhd {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.lhd .lav {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  font-size: 1.25rem;
}
.lhd h2 {
  margin: 0;
  font-size: 1.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lhd small {
  display: block;
  color: var(--muted);
  font-size: var(--fs-sm);
}
/* the three big actions */
.lacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  grid-auto-flow: column;
  gap: 8px;
}
.lac {
  min-height: 60px;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s var(--ease, ease), box-shadow 0.15s;
}
.lac:active {
  transform: scale(0.97);
}
.lac.call {
  background: color-mix(in srgb, var(--c3) 12%, var(--surface));
  color: color-mix(in srgb, var(--c3) 80%, #000);
  box-shadow: none;
}
.lac.cl {
  background: var(--c5s);
  color: var(--c5);
  box-shadow: none;
}
/* the next-step card */
.lnext2 {
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lnext2.od {
  box-shadow: var(--shadow), inset 0 0 0 1.5px color-mix(in srgb, var(--c1) 45%, transparent);
}
.lnh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.lnext2.od .lnh {
  color: var(--c1);
}
.lnd {
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 10px;
  background: var(--soft);
  color: var(--fg);
}
.lnext2.od .lnd {
  background: color-mix(in srgb, var(--c1) 12%, var(--surface));
  color: var(--c1);
}
.lnt {
  all: unset;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.35;
}
.lnt:hover {
  color: var(--c5);
}
.lnb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lnb .qp {
  min-height: 36px;
  padding: 0 14px;
  font-weight: 700;
}
.qp.dark {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* 26.11.2026: "רך" look: warm paper instead of bright white, softer ink, same brand colors */
:root[data-theme="soft"] {
  color-scheme: light;
  --bg: #eeeae3;
  --surface: #f9f6f1;
  --fg: #2b2836;
  --muted: #6c6676;
  --line: #e1dbd0;
  --soft: #e9e4db;
  --c5s: #ece3f2;
  --glass: color-mix(in srgb, #f9f6f1 82%, transparent);
  --shadow: 0 0 0 1px rgba(70, 50, 30, 0.03), 0 1px 2px rgba(70, 50, 30, 0.05), 0 10px 28px -14px rgba(70, 45, 25, 0.16);
  --shadow-sm: 0 1px 2px rgba(70, 50, 30, 0.07), 0 3px 10px -4px rgba(70, 45, 25, 0.13);
}
:root[data-theme="soft"] .lrow:hover,
:root[data-theme="soft"] .wqrow:hover {
  background: color-mix(in srgb, var(--c5) 4%, var(--surface));
}

/* lead: open the chat in the WhatsApp app (in addition to the in-system message window) */
.lrow .lact .lwapp {
  width: 36px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-md);
  color: var(--c3);
}
.lrow .lact .lwapp:hover {
  border-color: var(--c3);
  background: color-mix(in srgb, var(--c3) 10%, var(--surface));
}
.lac.wapp {
  color: color-mix(in srgb, var(--c3) 80%, #000);
}
