/* [project]/apps/web/src/app/globals.css [app-client] (css) */
:root {
  --bg: #f7f8fa;
  --surface: #fff;
  --surface-2: #f1f4f9;
  --navy-900: #0b1f3a;
  --navy-700: #13315c;
  --accent: #2563eb;
  --accent-weak: #dbeafe;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --rag-green: #16a34a;
  --rag-yellow: #d97706;
  --rag-red: #dc2626;
  --wine: #7b2d43;
  --radius: 10px;
  --radius-sm: 8px;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  --shadow: 0 1px 2px #0b1f3a0f, 0 4px 16px #0b1f3a0d;
}

[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #111a2e;
  --surface-2: #16223c;
  --navy-900: #0b1f3a;
  --navy-700: #1b3a66;
  --accent: #3b82f6;
  --accent-weak: #14233f;
  --text: #e5eaf2;
  --muted: #94a3b8;
  --border: #22304a;
  --wine: #b05070;
  --shadow: none;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.45;
}

a {
  color: var(--accent);
  text-decoration: none;
}

h1, h2, h3 {
  letter-spacing: -.01em;
  color: var(--text);
  margin: 0;
  font-weight: 650;
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

.btn {
  align-items: center;
  gap: var(--sp-2);
  height: 36px;
  padding: 0 var(--sp-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 550;
  transition: background .12s, border-color .12s;
  display: inline-flex;
}

.btn:hover {
  background: var(--surface-2);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.06);
  background: var(--accent);
}

.btn-ghost {
  background: none;
  border-color: #0000;
}

.btn-ghost:hover {
  background: var(--surface-2);
}

.input {
  width: 100%;
  height: 38px;
  padding: 0 var(--sp-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

textarea.input {
  resize: vertical;
  height: auto;
  min-height: 76px;
  padding-top: 8px;
  padding-bottom: 8px;
  line-height: 1.45;
}

.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
  outline: none;
}

.label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  display: block;
}

.field {
  margin-bottom: var(--sp-4);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.error {
  color: var(--rag-red);
  margin-top: var(--sp-2);
  font-size: 13px;
}

.rag {
  white-space: nowrap;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  background: color-mix(in srgb, currentColor 12%, transparent);
  border-radius: 999px;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
}

.rag .glyph {
  font-size: 10px;
}

.chip {
  white-space: nowrap;
  background: var(--surface-2);
  height: 22px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 550;
  display: inline-flex;
}

.chip.overdue {
  color: var(--rag-red);
  border-color: color-mix(in srgb, var(--rag-red) 35%, transparent);
  background: color-mix(in srgb, var(--rag-red) 10%, transparent);
}

.shell {
  grid-template-columns: 232px 1fr;
  min-height: 100vh;
  display: grid;
}

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

.rail {
  background: var(--navy-900);
  color: #cdd9ec;
  padding: var(--sp-4) var(--sp-3);
  gap: var(--sp-2);
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #ffffff40 transparent;
  flex-direction: column;
  height: 100vh;
  transition: transform .18s;
  display: flex;
  position: sticky;
  top: 0;
  overflow-y: auto;
}

.shell.nav-collapsed .rail {
  z-index: 60;
  width: 232px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  box-shadow: 4px 0 24px #00000059;
}

.shell.nav-collapsed .rail.tucked {
  transform: translateX(-100%);
}

.shell.nav-collapsed .rail.peek {
  transform: translateX(0);
}

.nav-puller {
  z-index: 55;
  cursor: pointer;
  background: linear-gradient(90deg, var(--navy-700), var(--navy-900));
  color: #cdd9ec;
  border: 0;
  justify-content: center;
  align-items: center;
  width: 16px;
  padding: 0;
  display: flex;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
}

.nav-puller:hover {
  background: linear-gradient(90deg, var(--navy-700), var(--navy-700));
  color: #fff;
}

.nav-puller-grip {
  writing-mode: vertical-rl;
  letter-spacing: 2px;
  opacity: .8;
  font-size: 13px;
  font-weight: 800;
}

.rail-toggle {
  color: #cdd9ec;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: #ffffff14;
  border: 0;
  width: 26px;
  height: 26px;
  font-size: 13px;
  line-height: 1;
}

.rail-toggle:hover {
  color: #fff;
  background: #ffffff2e;
}

.rail .brand {
  color: #fff;
  letter-spacing: -.02em;
  padding: var(--sp-2) var(--sp-2) var(--sp-4);
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  display: flex;
}

.rail a {
  color: #cdd9ec;
  border-radius: var(--radius-sm);
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  font-weight: 550;
  display: flex;
}

.rail a:hover {
  color: #fff;
  background: #ffffff12;
}

.rail a.active {
  background: var(--navy-700);
  color: #fff;
}

.main {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.topbar {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
  gap: var(--sp-3);
  height: 56px;
  padding: 0 var(--sp-6);
  z-index: 45;
  display: flex;
  position: sticky;
  top: 0;
}

.topbar .spacer {
  flex: 1;
}

.content {
  padding: var(--sp-6);
  min-width: 0;
}

.auth-wrap {
  min-height: 100vh;
  padding: var(--sp-6);
  background: radial-gradient(1200px 600px at 50% -10%, color-mix(in srgb, var(--navy-700) 18%, var(--bg)), var(--bg));
  place-items: center;
  display: grid;
}

.auth-card {
  width: 100%;
  max-width: 392px;
  padding: var(--sp-8);
}

.auth-card .brand {
  letter-spacing: -.02em;
  font-size: 24px;
  font-weight: 750;
}

.auth-card .sub {
  color: var(--muted);
  margin: 4px 0 var(--sp-6);
}

.page-head {
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  display: flex;
}

.page-head h1 {
  font-size: 24px;
}

.proj-grid {
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  display: grid;
}

.proj-card {
  padding: var(--sp-4);
  gap: var(--sp-3);
  cursor: pointer;
  flex-direction: column;
  transition: border-color .12s, transform .12s;
  display: flex;
}

.proj-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.proj-card .code {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 12px;
}

.proj-card .name {
  font-size: 16px;
  font-weight: 650;
}

.proj-card .foot {
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  row-gap: 6px;
  margin-top: auto;
  display: flex;
}

.proj-header {
  align-items: flex-start;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
  display: flex;
}

.proj-header-mini {
  margin-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
  background: var(--bg, var(--surface));
  z-index: 10;
  align-items: center;
  gap: 12px;
  padding: 6px 2px;
  display: flex;
  position: sticky;
  top: 0;
}

.proj-header-mini .mini-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 40ch;
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
}

.proj-header .code {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 12px;
}

.proj-header h1 {
  font-size: 22px;
}

.health-row {
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  flex-wrap: wrap;
  display: flex;
}

.tabs {
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-4);
  gap: 2px;
  display: flex;
}

.tab {
  height: 38px;
  padding: 0 var(--sp-4);
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 2px solid #0000;
  font-weight: 600;
}

.tab[aria-disabled="true"] {
  opacity: .5;
  cursor: default;
}

.tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.grid-table {
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  overflow: hidden;
}

.grid-table th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  padding: 10px var(--sp-3);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 11px;
  font-weight: 650;
}

.grid-table td {
  padding: 8px var(--sp-3);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.grid-table tr:last-child td {
  border-bottom: none;
}

.grid-table tr:hover td {
  background: var(--surface-2);
}

.grid-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.grid-table th .col-resize {
  cursor: col-resize;
  -webkit-user-select: none;
  user-select: none;
  width: 8px;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
}

.grid-table th .col-resize:hover {
  background: color-mix(in srgb, var(--accent) 45%, transparent);
}

.tree-toggle {
  cursor: pointer;
  color: var(--muted);
  background: none;
  border: none;
  width: 18px;
}

.title-cell {
  align-items: flex-start;
  gap: 6px;
  display: flex;
}

.cell-input {
  color: var(--text);
  font: inherit;
  background: none;
  border: 1px solid #0000;
  border-radius: 6px;
  width: 100%;
  padding: 4px 6px;
}

.cell-input:hover {
  border-color: var(--border);
}

.cell-input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-weak);
  outline: none;
}

select.cell-input {
  cursor: pointer;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: var(--sp-8);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.spinner {
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: .7s linear infinite spin;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.bar {
  background: var(--surface-2);
  border-radius: 999px;
  min-width: 64px;
  height: 6px;
  overflow: hidden;
}

.bar > span {
  background: var(--accent);
  height: 100%;
  display: block;
}

.kanban {
  gap: var(--sp-3);
  padding-bottom: var(--sp-2);
  grid-auto-columns: minmax(248px, 1fr);
  grid-auto-flow: column;
  display: grid;
  overflow-x: auto;
}

.kcol {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-direction: column;
  min-height: 120px;
  display: flex;
}

.kcol > header {
  align-items: center;
  gap: var(--sp-2);
  padding: 10px var(--sp-3);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 650;
  display: flex;
  position: sticky;
  top: 0;
}

.kcol .wip {
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-left: auto;
  padding: 1px 8px;
  font-size: 12px;
}

.kcol.drop-target {
  outline: 2px dashed var(--accent);
  outline-offset: -3px;
}

.klist {
  gap: var(--sp-2);
  padding: var(--sp-2);
  flex-direction: column;
  flex: 1;
  display: flex;
}

.kcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  cursor: grab;
  padding: 10px;
}

.kcard:active {
  cursor: grabbing;
}

.kcard .kt {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

.kcard .kmeta {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  display: flex;
}

.kcol .empty-col {
  color: var(--muted);
  padding: var(--sp-3);
  text-align: center;
  font-size: 12px;
}

.prio {
  text-transform: uppercase;
  letter-spacing: .03em;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 650;
}

.prio.low {
  color: #2563eb;
  background: #2563eb18;
}

.prio.medium {
  color: var(--muted);
  background: var(--surface-2);
}

.prio.high {
  color: var(--rag-yellow);
  background: #d9770618;
}

.prio.critical {
  color: var(--rag-red);
  background: #dc262618;
}

.gantt {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  grid-template-columns: 240px 1fr;
  display: grid;
  overflow: hidden;
}

.gantt .names {
  border-right: 1px solid var(--border);
}

.gantt .names .ghead, .gantt .gchart .ghead {
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  height: 28px;
}

.gantt .names .gname {
  height: 34px;
  padding: 0 var(--sp-3);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  text-overflow: ellipsis;
  align-items: center;
  font-size: 13px;
  display: flex;
  overflow: hidden;
}

.gantt .scroll {
  overflow-x: auto;
}

.gantt .gchart, .gantt .ghead {
  position: relative;
}

.gantt .gtick {
  border-left: 1px solid var(--border);
  height: 100%;
  color: var(--muted);
  align-items: center;
  padding-left: 4px;
  font-size: 11px;
  display: flex;
  position: absolute;
  top: 0;
}

.gantt .grow {
  border-bottom: 1px solid var(--border);
  height: 34px;
  position: relative;
}

.gantt .gbar {
  background: var(--accent);
  border-radius: 5px;
  height: 16px;
  position: absolute;
  top: 9px;
  overflow: hidden;
}

.gantt .gbar .fill {
  background: #ffffff61;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

.gantt .gbaseline {
  background: var(--muted);
  opacity: .35;
  border-radius: 3px;
  height: 6px;
  position: absolute;
  top: 25px;
}

.gantt .gtoday {
  background: var(--rag-red);
  opacity: .7;
  width: 2px;
  position: absolute;
  top: 0;
  bottom: 0;
}

.gantt .gdeps {
  pointer-events: none;
  position: absolute;
  top: 28px;
  left: 0;
}

.cal-head {
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  display: flex;
}

.cal-head h2 {
  min-width: 180px;
  font-size: 16px;
}

.cal-grid {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  grid-template-columns: repeat(7, 1fr);
  display: grid;
  overflow: hidden;
}

.cal-grid .dow {
  background: var(--surface-2);
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  text-align: right;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 650;
}

.cal-cell {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  gap: 3px;
  min-height: 104px;
  padding: 4px;
  display: flex;
}

.cal-cell:nth-child(7n) {
  border-right: none;
}

.cal-cell.out {
  background: var(--surface-2);
}

.cal-cell.today .daynum {
  background: var(--accent);
  color: #fff;
}

.cal-cell.drop-target {
  outline: 2px dashed var(--accent);
  outline-offset: -3px;
}

.cal-cell .daynum {
  color: var(--muted);
  border-radius: 999px;
  align-self: flex-end;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 12px;
  font-weight: 600;
  display: grid;
}

.cal-item {
  background: var(--accent-weak);
  color: var(--text);
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: grab;
  border: 1px solid #0000;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 12px;
  overflow: hidden;
}

.cal-item.overdue {
  background: color-mix(in srgb, var(--rag-red) 12%, transparent);
  color: var(--rag-red);
}

.cal-item.ms {
  background: color-mix(in srgb, var(--navy-700) 14%, transparent);
  font-weight: 600;
}

.cal-item.ms:before {
  content: "◆";
  color: var(--navy-700);
  margin-right: 4px;
}

.cal-more {
  color: var(--muted);
  padding-left: 4px;
  font-size: 11px;
}

.dash {
  gap: var(--sp-4);
  display: grid;
}

.kpis {
  gap: var(--sp-3);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  display: grid;
}

.kpi {
  padding: var(--sp-4);
  flex-direction: column;
  gap: 4px;
  display: flex;
}

.kpi .v {
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  font-size: 28px;
  font-weight: 700;
}

.kpi .k {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 12px;
  font-weight: 600;
}

.kpi.alert .v {
  color: var(--rag-red);
}

.dash-2 {
  gap: var(--sp-4);
  grid-template-columns: 1.4fr 1fr;
  align-items: start;
  display: grid;
}

@media (max-width: 880px) {
  .dash-2 {
    grid-template-columns: 1fr;
  }
}

.panel {
  padding: var(--sp-4);
}

.panel h3 {
  margin-bottom: var(--sp-3);
  font-size: 14px;
}

.stat-row {
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: 10px;
  display: flex;
}

.stat-row .lbl {
  width: 96px;
  color: var(--muted);
  font-size: 13px;
}

.stat-row .track {
  background: var(--surface-2);
  border-radius: 999px;
  flex: 1;
  height: 10px;
  overflow: hidden;
}

.stat-row .track > span {
  border-radius: 999px;
  height: 100%;
  display: block;
}

.stat-row .n {
  text-align: right;
  font-variant-numeric: tabular-nums;
  width: 28px;
  font-weight: 600;
}

.attn {
  flex-direction: column;
  display: flex;
}

.attn .row {
  align-items: center;
  gap: var(--sp-2);
  border-bottom: 1px solid var(--border);
  padding: 9px 0;
  font-size: 13px;
  display: flex;
}

.attn .row:last-child {
  border-bottom: none;
}

.attn .row .t {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  overflow: hidden;
}

.ring {
  --p: 0;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-2) 0);
  border-radius: 50%;
  place-items: center;
  width: 84px;
  height: 84px;
  display: grid;
}

.ring > div {
  background: var(--surface);
  border-radius: 50%;
  place-items: center;
  width: 64px;
  height: 64px;
  font-size: 18px;
  font-weight: 700;
  display: grid;
}

.health-summary {
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  display: flex;
}

.ai-scrim {
  z-index: 40;
  background: #0b122061;
  animation: .12s fade;
  position: fixed;
  inset: 0;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.ai-drawer {
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 41;
  flex-direction: column;
  width: min(440px, 96vw);
  animation: .16s slidein;
  display: flex;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  box-shadow: -8px 0 32px #0b1f3a2e;
}

@keyframes slidein {
  from {
    opacity: .6;
    transform: translateX(16px);
  }
}

.ai-drawer header {
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4);
  border-bottom: 1px solid var(--border);
  display: flex;
}

.ai-drawer header .title {
  font-size: 15px;
  font-weight: 700;
}

.ai-drawer header .spacer {
  flex: 1;
}

.ai-note {
  color: var(--muted);
  padding: 8px var(--sp-4);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.ai-tabs {
  padding: var(--sp-2) var(--sp-4) 0;
  border-bottom: 1px solid var(--border);
  gap: 2px;
  display: flex;
}

.ai-tab {
  height: 34px;
  padding: 0 var(--sp-3);
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 2px solid #0000;
  font-weight: 600;
}

.ai-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.ai-body {
  padding: var(--sp-4);
  gap: var(--sp-3);
  flex-direction: column;
  flex: 1;
  display: flex;
  overflow-y: auto;
}

.ai-body textarea {
  resize: vertical;
  width: 100%;
  min-height: 76px;
  padding: 10px var(--sp-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.ai-body textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
  outline: none;
}

.ai-answer {
  padding: var(--sp-3);
}

.ai-answer .grounded {
  color: var(--muted);
  margin-top: 8px;
  font-size: 12px;
}

.scard {
  padding: var(--sp-3);
  flex-direction: column;
  gap: 8px;
  display: flex;
}

.scard .shead {
  align-items: center;
  gap: 8px;
  display: flex;
}

.scard .kind {
  font-size: 13px;
  font-weight: 650;
}

.sbadge {
  text-transform: uppercase;
  letter-spacing: .03em;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 650;
}

.sbadge.proposed, .sbadge.edited {
  color: var(--accent);
  background: var(--accent-weak);
  border-color: #0000;
}

.sbadge.approved {
  color: var(--rag-yellow);
  background: #d9770618;
  border-color: #0000;
}

.sbadge.executed {
  color: var(--rag-green);
  background: #16a34a18;
  border-color: #0000;
}

.sbadge.rejected, .sbadge.undone {
  color: var(--muted);
}

.scard .otext {
  color: var(--text);
  font-size: 13px;
}

.scard .plist {
  color: var(--muted);
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
}

.scard .plist li {
  margin: 2px 0;
}

.scard .acts {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.scard .acts .btn {
  height: 30px;
  padding: 0 10px;
  font-size: 13px;
}

.btn-danger {
  color: var(--rag-red);
  border-color: color-mix(in srgb, var(--rag-red) 35%, var(--border));
  background: none;
}

.btn-danger:hover {
  background: color-mix(in srgb, var(--rag-red) 10%, transparent);
}

.ai-section-label {
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-top: 4px;
  font-size: 11px;
  font-weight: 650;
}

.doc-toolbar {
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  flex-wrap: wrap;
  display: flex;
}

.doc-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  flex-direction: column;
  display: flex;
  overflow: hidden;
}

.doc-row {
  align-items: center;
  gap: var(--sp-3);
  padding: 10px var(--sp-4);
  border-bottom: 1px solid var(--border);
  display: flex;
}

.doc-row:last-child {
  border-bottom: none;
}

.doc-row:hover {
  background: var(--surface-2);
}

.doc-row .nm {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
}

.doc-row .meta {
  align-items: center;
  gap: 8px;
  display: flex;
}

.doc-row .acts {
  gap: 6px;
  display: flex;
}

.doc-row .acts .btn {
  height: 30px;
  padding: 0 10px;
  font-size: 13px;
}

.doc-detail {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: var(--sp-3) var(--sp-4);
  font-size: 13px;
}

.doc-detail h4 {
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin: 0 0 6px;
  font-size: 12px;
}

.doc-detail .vrow {
  gap: var(--sp-3);
  color: var(--muted);
  padding: 3px 0;
  display: flex;
}

.tagline {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.kb-chip {
  color: var(--navy-700);
  background: color-mix(in srgb, var(--navy-700) 12%, transparent);
  border-radius: 5px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 650;
}

.formrow {
  gap: var(--sp-3);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  display: grid;
}

.create-card {
  padding: var(--sp-4);
  margin-bottom: var(--sp-3);
}

.search-form {
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  flex-wrap: wrap;
  align-items: flex-end;
  display: flex;
}

.search-form .grow {
  flex: 1;
  min-width: 220px;
}

.search-form .f {
  min-width: 120px;
}

.search-results {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  flex-direction: column;
  display: flex;
  overflow: hidden;
}

.sresult {
  align-items: center;
  gap: var(--sp-3);
  padding: 10px var(--sp-4);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  display: flex;
}

.sresult:last-child {
  border-bottom: none;
}

.sresult:hover {
  background: var(--surface-2);
}

.sresult .nm {
  flex: 1;
  font-weight: 600;
}

.sresult .sub {
  color: var(--muted);
  font-size: 12px;
}

.health-bar {
  border: 1px solid var(--border);
  border-radius: 999px;
  height: 14px;
  display: flex;
  overflow: hidden;
}

.health-bar > span {
  display: block;
}

.health-legend {
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 13px;
  display: flex;
}

.health-legend .lg {
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.dot {
  border-radius: 3px;
  width: 10px;
  height: 10px;
  display: inline-block;
}

.pf-table {
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  overflow: hidden;
}

.pf-table th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  padding: 10px var(--sp-3);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 11px;
  font-weight: 650;
}

.pf-table td {
  padding: 9px var(--sp-3);
  border-bottom: 1px solid var(--border);
}

.pf-table tr:last-child td {
  border-bottom: none;
}

.pf-table tbody tr {
  cursor: pointer;
}

.pf-table tbody tr:hover td {
  background: var(--surface-2);
}

.pf-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.pf-table .danger {
  color: var(--rag-red);
  font-weight: 600;
}

.var-pos {
  color: var(--rag-red);
}

.var-neg {
  color: var(--rag-green);
}

.admin-tabs {
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-4);
  flex-wrap: wrap;
  gap: 2px;
  display: flex;
}

.admin-tab {
  height: 38px;
  padding: 0 var(--sp-4);
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 2px solid #0000;
  font-weight: 600;
}

.admin-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.utable {
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  overflow: hidden;
}

.utable th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  padding: 10px var(--sp-3);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 11px;
  font-weight: 650;
}

.utable td {
  padding: 9px var(--sp-3);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.utable tr:last-child td {
  border-bottom: none;
}

.role-chip {
  background: var(--accent-weak);
  color: var(--text);
  border: 1px solid #0000;
  border-radius: 6px;
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 550;
  display: inline-flex;
}

.role-chip button {
  cursor: pointer;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  line-height: 1;
}

.role-chip button:hover {
  color: var(--rag-red);
}

.role-cell {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  display: flex;
}

.kind-tag {
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 650;
}

.kind-tag.external {
  color: var(--rag-yellow);
  background: #d9770618;
}

.org-grid {
  gap: var(--sp-4);
  grid-template-columns: 1fr 1fr;
  align-items: start;
  display: grid;
}

@media (max-width: 820px) {
  .org-grid {
    grid-template-columns: 1fr;
  }
}

.simple-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.simple-list .li {
  padding: 9px var(--sp-3);
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: 8px;
  display: flex;
}

.simple-list .li:last-child {
  border-bottom: none;
}

.inline-form {
  margin-top: var(--sp-2);
  gap: 8px;
  display: flex;
}

.inline-form .input {
  height: 34px;
}

.menu-row {
  text-align: left;
  cursor: pointer;
  width: 100%;
  font: inherit;
  color: var(--text);
  background: none;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  display: block;
}

.menu-row:hover {
  background: var(--surface-2);
}

.person-proj-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  display: grid;
}

.pcard {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  display: flex;
}

.pcard:hover {
  border-color: var(--accent);
}

.pcard.restricted {
  cursor: default;
  background: var(--surface-2);
}

.pcard.restricted:hover {
  border-color: var(--border);
}

.pcard-icon {
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
}

.pcard-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
}

.pcard-sub {
  color: var(--muted);
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 12px;
  display: flex;
}

.sresult.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-weak);
}

.status-dot {
  background: var(--muted);
  border-radius: 50%;
  width: 8px;
  height: 8px;
  display: inline-block;
}

.status-dot.in_progress {
  background: var(--accent);
}

.status-dot.active {
  background: var(--rag-green);
}

.status-dot.blocked, .status-dot.on_hold {
  background: var(--rag-yellow);
}

.status-dot.done, .status-dot.closed {
  background: var(--rag-green);
}

.status-dot.cancelled {
  background: var(--rag-red);
}

.notice {
  background: color-mix(in srgb, var(--rag-green) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--rag-green) 40%, var(--border));
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13px;
}

.attn .row.clickable {
  cursor: pointer;
  border-radius: var(--radius-sm);
  margin: 0 -6px;
  padding-left: 6px;
  padding-right: 6px;
}

.attn .row.clickable:hover {
  background: var(--surface-2);
}

.attn .row.clickable .t {
  color: var(--accent);
}

.confirm-scrim {
  z-index: 90;
  background: #00000073;
  justify-content: center;
  align-items: center;
  padding: 20px;
  display: flex;
  position: fixed;
  inset: 0;
}

.confirm-dialog {
  border-radius: var(--radius);
  width: min(420px, 100%);
  padding: 20px;
  animation: .14s ease-out confirm-pop;
  box-shadow: 0 16px 48px #00000052;
}

@keyframes confirm-pop {
  from {
    opacity: .6;
    transform: scale(.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.drawer-scrim {
  z-index: 50;
  background: #0006;
  justify-content: flex-end;
  display: flex;
  position: fixed;
  inset: 0;
}

.drawer-panel {
  border-radius: 0;
  width: min(700px, 100%);
  height: 100%;
  padding: 20px;
  animation: .16s ease-out drawer-in;
  overflow-y: auto;
  box-shadow: -8px 0 24px #0000002e;
}

@keyframes drawer-in {
  from {
    opacity: .6;
    transform: translateX(24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.title-cell .title-input {
  background: none;
  border: 1px solid #0000;
  padding: 4px 6px;
}

.title-cell .title-input:hover {
  border-color: var(--border);
}

.title-cell .title-input:focus {
  border-color: var(--accent);
  background: var(--surface);
}

.more-btn {
  color: var(--muted);
  flex-shrink: 0;
  padding: 2px 6px;
  line-height: 1;
}

.more-btn:hover {
  color: var(--accent);
}

.grid-table tfoot td {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.add-row-btn {
  color: var(--accent);
  border-style: dashed;
}

.draft-row td {
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}

.nav-badge {
  color: #fff;
  vertical-align: middle;
  background: #d64545;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 8px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
}

.notif-card {
  cursor: pointer;
  position: relative;
}

.notif-card[data-unread="true"] {
  border-left: 3px solid #d64545;
}

.notif-dot {
  background: #d64545;
  border-radius: 50%;
  flex: none;
  width: 8px;
  height: 8px;
}

.notif-pop {
  z-index: 30;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  white-space: pre-wrap;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  display: none;
  position: absolute;
  top: calc(100% - 6px);
  left: 12px;
  right: 12px;
  box-shadow: 0 6px 18px #00000040;
}

.notif-card:hover .notif-pop, .notif-card:focus .notif-pop {
  display: block;
}

.drag-handle {
  cursor: grab;
  color: var(--muted);
  -webkit-user-select: none;
  user-select: none;
  flex-shrink: 0;
  padding: 0 4px 0 0;
  font-size: 12px;
}

.drag-handle:active {
  cursor: grabbing;
}

tr:hover .drag-handle {
  color: var(--text);
}

.nav-group-head {
  cursor: pointer;
  color: #cdd9ec;
  border-radius: var(--radius-sm);
  width: 100%;
  font-weight: 550;
  font-size: inherit;
  background: none;
  border: 0;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  font-family: inherit;
  display: flex;
}

.nav-group-head:hover {
  color: #fff;
  background: #ffffff12;
}

.nav-group-head.active {
  color: #fff;
}

.nav-sub {
  gap: var(--sp-2);
  flex-direction: column;
  display: flex;
}

.nav-sub a {
  padding-left: 24px;
  font-size: 13.5px;
}

.gantt-proj-row:hover {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.title-cell .title-input {
  resize: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.35;
  display: block;
  overflow: hidden;
}

.drawer-actions {
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 5;
  align-items: center;
  gap: 8px;
  margin: 14px -20px -20px;
  padding: 12px 20px;
  display: flex;
  position: sticky;
  bottom: -20px;
}

.grid-viewport {
  overscroll-behavior: contain;
  overflow: auto;
}

.grid-table thead th {
  z-index: 12;
  background: var(--surface);
  box-sizing: border-box;
  height: 34px;
  position: sticky;
  top: 0;
}

.grid-table thead tr.filter-row th {
  z-index: 11;
  height: 36px;
  top: 34px;
}

.grid-table .ws-section-row td {
  top: var(--band-top, 34px);
  z-index: 10;
  position: sticky;
}

.ws-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  align-items: center;
  padding: 2px 10px;
  display: inline-flex;
}

.star-on {
  color: #f0b429;
}

.star-toggle {
  cursor: pointer;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 3px;
  padding: 2px 3px;
  font-size: 14px;
  line-height: 1;
}

.star-toggle:hover {
  color: #f0b429;
  background: #f0b4291f;
}

.star-toggle[aria-pressed="true"] {
  color: #f0b429;
}

.drag-ghost {
  pointer-events: none;
  z-index: 9999;
  background: var(--surface);
  border: 1px solid var(--accent);
  opacity: .96;
  table-layout: fixed;
  border-radius: 10px;
  position: fixed;
  top: -1200px;
  left: 0;
  overflow: hidden;
  box-shadow: 0 14px 34px #00000059;
}

.drag-ghost td {
  background: var(--surface);
}

.drop-slot-row td {
  background: none;
}

.drop-slot {
  border: 2px dashed var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  height: 38px;
  color: var(--accent);
  letter-spacing: .02em;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  margin: 3px 6px;
  font-size: 12px;
  font-weight: 650;
  animation: .16s ease-out slot-open;
  display: flex;
}

@keyframes slot-open {
  from {
    opacity: 0;
    height: 0;
    margin-top: 0;
    margin-bottom: 0;
  }

  to {
    opacity: 1;
    height: 38px;
  }
}

.prio-chip {
  border: 1px solid var(--border);
  white-space: nowrap;
  background: var(--surface-2);
  height: 22px;
  color: var(--text);
  border-radius: 999px;
  flex-shrink: 0;
  align-items: center;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 650;
  display: inline-flex;
}

.prio-chip[data-p="critical"] {
  color: var(--rag-red);
  border-color: color-mix(in srgb, var(--rag-red) 45%, transparent);
  background: color-mix(in srgb, var(--rag-red) 12%, transparent);
}

.prio-chip[data-p="high"] {
  color: #b47d0e;
  background: #f0b42929;
  border-color: #f0b4298c;
}

.prio-chip[data-p="medium"] {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.prio-chip[data-p="low"] {
  color: var(--muted);
}

select.prio-chip {
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, #0000 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, #0000 50%);
  background-position: calc(100% - 12px) 9px, calc(100% - 8px) 9px;
  background-repeat: no-repeat;
  background-size: 4px 4px;
  padding-right: 22px;
}

.hlu-card {
  border-radius: 12px;
  padding: 0;
  overflow: auto;
}

.hlu-table thead th {
  background: var(--surface-2);
  border-bottom: 2px solid var(--border);
}

.hlu-table th.hlu-col-over {
  box-shadow: inset 3px 0 0 var(--accent);
}

.hlu-table tbody tr:nth-child(2n) td {
  background: color-mix(in srgb, var(--surface-2) 45%, transparent);
}

.hlu-table tbody tr:hover td {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.hlu-table td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.hlu-note {
  resize: none;
  width: 100%;
  min-height: 56px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 13px;
  line-height: 1.45;
  overflow: hidden;
}

.hlu-note::placeholder {
  color: var(--muted);
  opacity: .8;
}

.hlu-note:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.hlu-note:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
  outline: none;
}

.hlu-progress {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  min-width: 84px;
  height: 18px;
  position: relative;
  overflow: hidden;
}

.hlu-progress-fill {
  background: color-mix(in srgb, var(--accent) 70%, transparent);
  border-radius: 999px;
  position: absolute;
  inset: 0 auto 0 0;
}

.hlu-progress-label {
  font-variant-numeric: tabular-nums;
  justify-content: center;
  align-items: center;
  height: 100%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  position: relative;
}

.hlu-milestone {
  margin-bottom: 5px;
  font-size: 12.5px;
  line-height: 1.4;
}

.slide-canvas {
  aspect-ratio: 16 / 9;
  background: repeating-conic-gradient(color-mix(in srgb, var(--surface-2) 70%, transparent) 0% 25%, var(--surface) 0% 50%) 50% / 22px 22px;
  border: 1px solid var(--border);
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  border-radius: 10px;
  width: 100%;
  max-width: 1160px;
  position: relative;
  overflow: hidden;
}

.slide-canvas-note {
  text-align: center;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  pointer-events: none;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 11px;
  position: absolute;
  inset: auto 8px 8px;
}

.slide-box {
  border: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  cursor: grab;
  border-radius: 6px;
  align-items: flex-start;
  padding: 4px 6px;
  display: flex;
  position: absolute;
  overflow: hidden;
}

.slide-box:active {
  cursor: grabbing;
}

.slide-box-sel {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
  z-index: 2;
}

.slide-box span {
  pointer-events: none;
  width: 100%;
  line-height: 1.25;
  overflow: hidden;
}

.slide-box-resize {
  cursor: nwse-resize;
  border-right: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  border-radius: 0 0 5px;
  width: 14px;
  height: 14px;
  position: absolute;
  bottom: -1px;
  right: -1px;
  pointer-events: auto !important;
}

.slide-box-progress {
  pointer-events: none;
  border-radius: 6px;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.slide-box-progress span {
  color: #333;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  position: absolute;
  inset: 0;
}

.slide-box-gauge {
  pointer-events: none;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
}

.slide-box-gauge-arc {
  aspect-ratio: 2;
  border-radius: 999px 999px 0 0;
  width: min(100%, 200px);
  -webkit-mask: radial-gradient(closest-side at 50% 100%, #0000 54%, #000 55%);
  mask: radial-gradient(closest-side at 50% 100%, #0000 54%, #000 55%);
}

.slide-box-gauge span {
  text-align: center;
  color: #595959;
  font-size: 12px;
  font-weight: 700;
  position: absolute;
  bottom: 8%;
  left: 0;
  right: 0;
}

.slide-box-onimg {
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  -webkit-backdrop-filter: blur(.5px);
  backdrop-filter: blur(.5px);
}

.slide-box-prg {
  pointer-events: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
}

.slide-box-prg-title {
  color: #222;
  font-size: 10px;
  font-weight: 700;
}

.prg-ring {
  aspect-ratio: 1;
  width: min(72%, 90px);
  position: relative;
}

.prg-ring i {
  border-radius: 50%;
  position: absolute;
  inset: 0;
  -webkit-mask: radial-gradient(closest-side, #0000 62%, #000 63%);
  mask: radial-gradient(closest-side, #0000 62%, #000 63%);
}

.prg-ring span, .prg-gauge span {
  color: #595959;
  justify-content: center;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  position: absolute;
  inset: 0;
}

.prg-gauge {
  aspect-ratio: 2;
  width: min(90%, 130px);
  position: relative;
}

.prg-gauge i {
  border-radius: 999px 999px 0 0;
  position: absolute;
  inset: 0;
  -webkit-mask: radial-gradient(closest-side at 50% 100%, #0000 54%, #000 55%);
  mask: radial-gradient(closest-side at 50% 100%, #0000 54%, #000 55%);
}

.prg-gauge span {
  align-items: flex-end;
  padding-bottom: 2%;
}

.prg-seg {
  gap: 2px;
  width: 92%;
  height: 12px;
  display: flex;
}

.prg-seg i {
  border-radius: 4px;
  flex: 1;
}

.prg-pill {
  background: #f1f1f1;
  border-radius: 999px;
  width: 92%;
  height: 12px;
  overflow: hidden;
}

.prg-pill i {
  border-radius: 999px;
  height: 100%;
  display: block;
}

.prg-steps {
  align-items: flex-end;
  gap: 3px;
  width: 70%;
  height: 70%;
  display: flex;
}

.prg-steps i {
  border-radius: 3px;
  flex: 1;
}

.cal-scope {
  border: 1px solid var(--border);
  border-radius: 8px;
  display: inline-flex;
  overflow: hidden;
}

.cal-scope-btn {
  background: var(--surface);
  cursor: pointer;
  color: var(--text);
  border: none;
  padding: 6px 12px;
  font-size: 13px;
}

.cal-scope-btn + .cal-scope-btn {
  border-left: 1px solid var(--border);
}

.cal-scope-btn.active {
  background: var(--accent);
  color: #fff;
}

.cal-grid {
  grid-template-columns: repeat(7, 1fr);
  padding: 0;
  display: grid;
  overflow: hidden;
}

.cal-head {
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 6px 8px;
  font-size: 11.5px;
  font-weight: 700;
}

.cal-day {
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  min-height: 108px;
  padding: 4px;
}

.cal-day:nth-child(7n) {
  border-right: none;
}

.cal-day-out {
  background: color-mix(in srgb, var(--surface-2, #f5f5f5) 55%, transparent);
}

.cal-day-out .cal-daynum {
  color: var(--muted);
}

.cal-day-today {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.cal-daynum {
  margin: 2px 4px 4px;
  font-size: 12px;
  font-weight: 600;
}

.cal-items {
  flex-direction: column;
  gap: 3px;
  display: flex;
}

.cal-chip {
  color: var(--text);
  background: color-mix(in srgb, var(--surface-2, #eef1f5) 80%, transparent);
  border-left: 3px solid var(--rag-green);
  white-space: nowrap;
  text-overflow: ellipsis;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11.5px;
  line-height: 1.25;
  text-decoration: none;
  display: block;
  overflow: hidden;
}

.cal-chip:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.cal-chip.rag-yellow {
  border-left-color: var(--rag-amber, #f0b429);
}

.cal-chip.rag-red {
  border-left-color: var(--rag-red);
}

.cal-chip-done {
  opacity: .55;
  text-decoration: line-through;
}

.cal-chip-proj {
  color: var(--muted);
  margin-left: 6px;
  font-size: 10px;
}

.slide-pill-preview {
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 8px;
  font-weight: 700;
  display: inline-flex;
  overflow: hidden;
}

.hlu-col-resize {
  cursor: col-resize;
  z-index: 3;
  width: 7px;
  height: 100%;
  position: absolute;
  top: 0;
  right: -3px;
}

.hlu-col-resize:hover {
  background: color-mix(in srgb, var(--accent) 35%, transparent);
}

.hover-pop {
  display: inline-flex;
  position: relative;
}

.hover-pop-card {
  z-index: 70;
  background: var(--surface);
  min-width: 220px;
  max-width: 340px;
  color: var(--ink, inherit);
  border: 1px solid var(--border);
  white-space: pre-line;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.45;
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  box-shadow: 0 10px 28px #00000038;
}

.hover-pop:hover .hover-pop-card {
  display: block;
}

.insert-slot td {
  height: 6px;
  border: 0 !important;
  padding: 0 !important;
}

.insert-slot .insert-slot-name {
  position: relative;
}

.insert-slot button {
  border: 1px solid var(--accent);
  background: var(--surface);
  width: 20px;
  height: 20px;
  color: var(--accent);
  cursor: pointer;
  opacity: 0;
  z-index: 5;
  border-radius: 50%;
  padding: 0;
  font-size: 13px;
  line-height: 1;
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translate(0, -50%);
}

.insert-slot:after {
  content: "";
  background: color-mix(in srgb, var(--accent) 45%, transparent);
  opacity: 0;
  height: 2px;
  position: absolute;
  top: 50%;
  left: 8px;
  right: 8px;
}

.insert-slot {
  position: relative;
}

.insert-slot:hover button, .insert-slot:hover:after {
  opacity: 1;
}

.row-tools {
  flex-direction: column;
  flex-shrink: 0;
  align-items: center;
  gap: 3px;
  display: inline-flex;
}

.indent-arrows {
  flex-direction: column;
  gap: 2px;
  margin-top: 3px;
  display: flex;
}

.indent-arrows button {
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  padding: 1px 3px;
  font-size: 13px;
  line-height: 1;
}

.indent-arrows button:hover:not(:disabled) {
  color: var(--accent);
}

.indent-arrows button:disabled {
  opacity: .25;
  cursor: default;
}

.color-pop {
  z-index: 95;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 216px;
  padding: 10px;
  position: fixed;
  box-shadow: 0 12px 30px #0000003d;
}

.color-tabs {
  gap: 4px;
  margin-bottom: 8px;
  display: flex;
}

.color-tabs button {
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  background: none;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
}

.color-tabs button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.honeycomb {
  flex-direction: column;
  gap: 0;
  display: flex;
}

.honey-row {
  justify-content: center;
  gap: 2px;
  margin-top: -5px;
  display: flex;
}

.honey-row:first-child {
  margin-top: 0;
}

.honeycomb button:hover {
  z-index: 2;
  position: relative;
  transform: scale(1.18);
}

.hue-slider {
  appearance: none;
  background: linear-gradient(to right, red, #ff0, #0f0, #0ff, #00f, #f0f, red);
  border-radius: 6px;
  outline: none;
  width: 100%;
  height: 12px;
}

.hue-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  cursor: pointer;
  background: #fff;
  border: 1px solid #0006;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  box-shadow: 0 1px 3px #0000004d;
}

.hue-slider::-moz-range-thumb {
  cursor: pointer;
  background: #fff;
  border: 1px solid #0006;
  border-radius: 50%;
  width: 14px;
  height: 14px;
}

body.row-dragging, body.row-dragging * {
  cursor: grabbing !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}

.drag-card {
  z-index: 120;
  pointer-events: none;
  background: var(--surface);
  border: 1px solid var(--accent);
  opacity: .96;
  border-radius: 10px;
  align-items: center;
  gap: 8px;
  max-width: 460px;
  padding: 9px 12px;
  display: flex;
  position: fixed;
  transform: rotate(1.2deg);
  box-shadow: 0 14px 34px #0000004d;
}

.drag-card-grip {
  color: var(--muted);
  font-size: 13px;
}

.drag-card-title {
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
}

.drag-slot-row td {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface)) !important;
}

.drag-slot-row {
  outline: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: -2px;
}

.drag-handle {
  cursor: grab;
  touch-action: none;
}

.row-selected td {
  background: color-mix(in srgb, var(--accent) 9%, var(--surface)) !important;
}

.row-selected td:first-child {
  box-shadow: inset 3px 0 0 var(--accent);
}

.select-bar {
  z-index: 110;
  background: var(--surface);
  border: 1px solid var(--accent);
  white-space: nowrap;
  border-radius: 999px;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 13px;
  display: flex;
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 10px 28px #00000040;
}

.row-openable {
  cursor: pointer;
}

.row-openable:hover td {
  background: color-mix(in srgb, var(--accent) 4%, transparent);
}

.row-openable input, .row-openable textarea {
  cursor: text;
}

.row-openable select, .row-openable button {
  cursor: pointer;
}

.report-filter {
  align-items: center;
  gap: 4px;
  display: inline-flex;
  position: relative;
}

.report-filter .filter-active {
  background: var(--accent, #2563eb);
  color: #fff;
  border-color: #0000;
}

.filter-clear-x {
  color: var(--muted, #64748b);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 6px;
  padding: 2px 5px;
  font-size: 15px;
  line-height: 1;
}

.filter-clear-x:hover {
  color: #111827;
  background: #64748b24;
}

.filter-pop {
  z-index: 70;
  width: 320px;
  max-height: 440px;
  padding: 14px;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  overflow-y: auto;
  box-shadow: 0 12px 34px #0f172a2e;
}

.filter-heading {
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
}

.filter-section + .filter-section {
  border-top: 1px solid var(--line, #e2e8f0);
  margin-top: 14px;
  padding-top: 12px;
}

.filter-org-list {
  flex-direction: column;
  gap: 2px;
  max-height: 190px;
  display: flex;
  overflow-y: auto;
}

.filter-check {
  cursor: pointer;
  border-radius: 6px;
  align-items: center;
  gap: 8px;
  padding: 3px 2px;
  font-size: 13px;
  display: flex;
}

.filter-check:hover {
  background: #64748b14;
}

.filter-unit-name {
  font-weight: 650;
}

.filter-dept {
  margin-left: 22px;
}

.filter-dates {
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  display: flex;
}

.filter-dates input[type="date"] {
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 8px;
  flex: 1;
  min-width: 0;
  padding: 5px 7px;
  font-size: 13px;
}

.filter-actions {
  border-top: 1px solid var(--line, #e2e8f0);
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  display: flex;
}

.topbar-feedback {
  margin-right: 4px;
}

.modal-backdrop {
  z-index: 80;
  background: #0f172a73;
  justify-content: center;
  align-items: flex-start;
  padding: 7vh 16px 16px;
  display: flex;
  position: fixed;
  inset: 0;
}

.modal.feedback-modal {
  width: min(560px, 96vw);
  max-height: 84vh;
  padding: 20px 22px;
  overflow-y: auto;
}

.feedback-pick {
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 4px;
  display: flex;
}

.feedback-pick-card {
  text-align: left;
  border: 1px solid var(--line, #e2e8f0);
  background: var(--surface, #fff);
  cursor: pointer;
  border-radius: 12px;
  flex-direction: column;
  gap: 3px;
  padding: 14px;
  display: flex;
}

.feedback-pick-card:hover {
  border-color: var(--accent, #2563eb);
  box-shadow: 0 2px 10px #2563eb1f;
}

.feedback-q {
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
  display: flex;
}

.feedback-q-text {
  font-size: 13.5px;
  font-weight: 600;
}

.feedback-q textarea, .feedback-q input[type="text"], .feedback-q select {
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 8px;
  width: 100%;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13.5px;
}

.feedback-scale {
  align-items: center;
  gap: 8px;
  display: flex;
}

.feedback-dot {
  border: 1px solid var(--line, #e2e8f0);
  background: var(--surface, #fff);
  cursor: pointer;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-weight: 650;
}

.feedback-dot:hover {
  border-color: var(--accent, #2563eb);
}

.feedback-dot.sel {
  background: var(--accent, #2563eb);
  color: #fff;
  border-color: #0000;
}

.feedback-scale-hint {
  margin-left: 6px;
}

.feedback-actions {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  display: flex;
}

.fb-metrics {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  display: flex;
}

.fb-metric {
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 10px;
  min-width: 130px;
  padding: 10px 14px;
}

.fb-metric b {
  font-size: 19px;
  display: block;
}

.fb-metric span {
  color: var(--muted, #64748b);
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 11px;
}

.fb-row {
  border-top: 1px solid var(--line, #e2e8f0);
  padding: 10px 2px;
}

.fb-row-head {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.fb-kind {
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
}

.fb-kind.feedback {
  color: #3730a3;
  background: #e0eaff;
}

.fb-kind.bug {
  color: #b91c1c;
  background: #fee2e2;
}

.fb-kind.enhancement {
  color: #15803d;
  background: #dcfce7;
}

.fb-age {
  color: var(--muted, #64748b);
  margin-left: auto;
  font-size: 12px;
}

.fb-thread {
  border-left: 2px solid var(--line, #e2e8f0);
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 0 12px;
  padding-left: 12px;
  display: flex;
}

.fb-response-box {
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  display: flex;
}

.fb-response-box textarea {
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 8px;
  flex: 1;
  min-height: 56px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
}

.btn-link {
  color: var(--accent, #2563eb);
  cursor: pointer;
  font-size: inherit;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
}

.btn-link:hover {
  text-decoration: underline;
}

.topbar-logo {
  object-fit: contain;
  max-width: 220px;
  height: 34px;
  display: block;
}

.logo-admin-preview {
  object-fit: contain;
  border: 1px solid var(--line, #e2e8f0);
  background: #fff;
  border-radius: 8px;
  max-width: 260px;
  height: 44px;
  padding: 4px 8px;
}

.tpl-callout {
  border: 2px solid var(--accent, #2563eb);
  background: color-mix(in srgb, var(--accent, #2563eb) 6%, var(--surface, #fff));
  border-radius: 12px;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  display: flex;
}

.tpl-callout .label {
  color: var(--accent, #2563eb);
}

.tpl-callout-step {
  background: var(--accent, #2563eb);
  color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 800;
  display: flex;
}

.roi-costs {
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  display: flex;
}

.roi-cost-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 160px;
  padding: 10px 14px;
}

.roi-cost-card b {
  font-size: 18px;
  display: block;
}

.roi-cost-card span {
  color: var(--muted);
  font-size: 11.5px;
}

.roi-cost-card.sel {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.roi-cost-card[role="button"] {
  cursor: pointer;
}

.roi-q {
  border-top: 1px solid var(--border);
  padding: 12px 2px;
}

.roi-q-head {
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.roi-yesno {
  gap: 6px;
  display: flex;
}

.roi-q-body {
  border-left: 2px solid var(--border);
  margin-top: 10px;
  padding-left: 10px;
}

.roi-benefit {
  border: 1px solid var(--border);
  border-radius: 10px;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
  padding: 12px;
  display: flex;
}

.roi-benefit-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  display: grid;
}

.roi-field {
  flex-direction: column;
  gap: 3px;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
}

.roi-field .input {
  font-weight: 400;
}

.roi-bool {
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
}

.roi-schedule {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.roi-year-cell {
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.roi-table td {
  text-align: right;
}

.roi-table td:first-child {
  text-align: left;
}

.roi-reco {
  border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  border-radius: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
}

.roi-sum-line {
  border-top: 1px dashed var(--border);
  padding: 6px 0;
  font-size: 13px;
}

.roi-sum-line.excluded {
  opacity: .55;
}

.icon-btn {
  justify-content: center;
  align-items: center;
  padding: 6px 9px;
  line-height: 1;
  display: inline-flex;
}

.icon-btn svg {
  display: block;
}

.region-modal {
  z-index: 300;
  background: color-mix(in srgb, var(--bg) 88%, black);
  justify-content: center;
  align-items: center;
  padding: 40px;
  display: flex;
  position: fixed;
  inset: 0;
}

.region-modal-body {
  justify-content: center;
  align-items: center;
  width: min(1200px, 92vw);
  max-height: 92vh;
  display: flex;
}

.region-modal-close {
  z-index: 320;
  position: fixed;
  top: 14px;
  right: 16px;
}

.floating-card {
  z-index: 310;
  width: 240px;
  position: fixed;
  box-shadow: 0 12px 32px #00000059;
}

.floating-card-head {
  cursor: grab;
  border-bottom: 1px solid var(--border);
  -webkit-user-select: none;
  user-select: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
}

.floating-card-head:active {
  cursor: grabbing;
}

.hamburger, .nav-scrim {
  display: none;
}

@media (max-width: 700px) {
  .shell, .shell.nav-collapsed {
    grid-template-columns: 1fr;
  }

  .rail {
    z-index: 70;
    width: min(280px, 84vw);
    height: 100dvh;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
  }

  .shell.mobile-nav-open .rail {
    transform: none;
    box-shadow: 4px 0 24px #00000059;
  }

  .shell.nav-collapsed .rail.tucked, .shell.nav-collapsed .rail.peek {
    transform: translateX(-100%);
  }

  .shell.mobile-nav-open.nav-collapsed .rail.tucked, .shell.mobile-nav-open.nav-collapsed .rail.peek {
    transform: none;
  }

  .nav-puller, .rail-toggle {
    display: none;
  }

  .hamburger {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    width: 36px;
    height: 36px;
    color: var(--ink);
    cursor: pointer;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    display: inline-flex;
  }

  .nav-scrim {
    z-index: 65;
    cursor: pointer;
    background: #00000073;
    border: 0;
    display: block;
    position: fixed;
    inset: 0;
  }

  .content {
    padding: var(--sp-3);
  }

  .topbar {
    padding: 0 var(--sp-3);
    gap: var(--sp-2);
  }

  .page-head h1, h1 {
    font-size: 20px;
  }

  .card {
    max-width: 100% !important;
  }

  .card, .panel {
    overflow-x: auto;
  }

  .fb-metrics {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
  }

  .fb-metric {
    min-width: 0;
  }

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

  .drawer-panel {
    width: 100%;
  }

  .region-modal {
    padding: 8px;
  }
}

/*# sourceMappingURL=apps_web_src_app_globals_1wvyn-h.css.map*/