:root {
  color-scheme: light;
  --bg: #f4f6f1;
  --bg-accent: #eef4ef;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-soft: rgba(246, 250, 246, 0.88);
  --text: #17211a;
  --muted: #5f6c61;
  --line: rgba(23, 33, 26, 0.08);
  --shadow: 0 18px 48px rgba(30, 53, 37, 0.08);
  --shadow-soft: 0 10px 24px rgba(30, 53, 37, 0.06);
  --primary: #0f7b66;
  --primary-strong: #0a6453;
  --primary-soft: rgba(15, 123, 102, 0.12);
  --info: #1665d8;
  --info-soft: rgba(22, 101, 216, 0.12);
  --success: #167d4b;
  --success-soft: rgba(22, 125, 75, 0.12);
  --warning: #b36b00;
  --warning-soft: rgba(179, 107, 0, 0.12);
  --danger: #b6442c;
  --danger-soft: rgba(182, 68, 44, 0.12);
  --violet: #7357ff;
  --violet-soft: rgba(115, 87, 255, 0.14);
  --rose: #c1577f;
  --rose-soft: rgba(193, 87, 127, 0.12);
  --teal: #19807e;
  --teal-soft: rgba(25, 128, 126, 0.13);
  --slate: #526173;
  --slate-soft: rgba(82, 97, 115, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-sans: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(125, 205, 175, 0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(154, 210, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #f7f8f4 0%, #eff3ef 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 33, 26, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 26, 0.022) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 75%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings:
    "FILL" 0,
    "wght" 500,
    "GRAD" 0,
    "opsz" 24;
}

#app {
  min-height: 100vh;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100vh;
  padding: 22px 16px;
  background: rgba(246, 249, 244, 0.78);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(24px);
}

.brand-card,
.card,
.board-column,
.org-node,
.marketing-card,
.template-option,
.mini-report,
.health-card,
.opportunity-row,
.task-card,
.toast {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.brand-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
}

.brand-mark,
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, rgba(15, 123, 102, 0.18), rgba(22, 101, 216, 0.12));
  color: var(--primary-strong);
}

.brand-card .brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
}

.brand-card h2 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.brand-card .eyebrow {
  margin-bottom: 3px;
}

.brand-card .muted {
  margin: 0;
  font-size: 0.78rem;
}

.avatar-soft {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.sidebar-nav {
  display: grid;
  gap: 6px;
}

.nav-link {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 14px;
  color: var(--muted);
  transition: 180ms ease;
}

.nav-link span:nth-child(2) {
  min-width: 0;
}

.nav-badge {
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 0.76rem;
  font-weight: 800;
}

.nav-link .material-symbols-rounded {
  font-size: 1.2rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px rgba(15, 123, 102, 0.12);
}

.sidebar-foot {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mini-stat {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.65);
  text-align: center;
}

.mini-stat span {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
}

.mini-stat small,
.muted {
  color: var(--muted);
}

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

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 26px 34px 8px;
}

.topbar h1,
.hero-card h2,
.section-card h2,
.landing-left h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.topbar-copy {
  max-width: 720px;
  color: var(--muted);
  margin: 8px 0 0;
}

.topbar-actions,
.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-content {
  display: grid;
  gap: 22px;
  padding: 14px 34px 34px;
}

.card,
.hero-card,
.section-card,
.setup-card,
.loading-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 24px;
  backdrop-filter: blur(18px);
}

.hero-card,
.section-card {
  padding: 28px;
}

.hero-card {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
}

.dashboard-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 24px 26px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.94), rgba(236, 247, 241, 0.86)),
    var(--surface);
}

.dashboard-intro h2 {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  letter-spacing: -0.035em;
}

.dashboard-intro p:not(.eyebrow) {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.attention-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.attention-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 122px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.attention-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.attention-card > .material-symbols-rounded {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(23, 33, 26, 0.06);
}

.attention-card p,
.attention-card small {
  display: block;
  margin: 0;
  color: var(--muted);
}

.attention-card strong {
  display: block;
  margin: 2px 0;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.attention-warning > .material-symbols-rounded {
  color: var(--warning);
  background: var(--warning-soft);
}

.attention-danger > .material-symbols-rounded {
  color: var(--danger);
  background: var(--danger-soft);
}

.attention-info > .material-symbols-rounded {
  color: var(--info);
  background: var(--info-soft);
}

.attention-success > .material-symbols-rounded {
  color: var(--success);
  background: var(--success-soft);
}

.quiet-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  color: var(--muted);
}

.quiet-state .material-symbols-rounded {
  font-size: 2.2rem;
  color: var(--success);
}

.health-list,
.department-row {
  display: grid;
}

.health-list {
  gap: 8px;
}

.health-row,
.department-row {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  transition: background 160ms ease;
}

.health-row:hover,
.department-row:hover {
  background: rgba(15, 123, 102, 0.06);
}

.health-row small,
.department-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.health-score-small {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--primary-strong);
  background: var(--primary-soft);
  font-weight: 700;
}

.hero-card p,
.section-head p,
.card p,
.landing-copy {
  color: var(--muted);
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), #0c6654);
  box-shadow: 0 12px 28px rgba(15, 123, 102, 0.22);
}

.button-secondary {
  background: white;
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(23, 33, 26, 0.08);
}

.text-link {
  color: var(--primary-strong);
  font-weight: 600;
}

.section-head,
.list-card-head,
.card-title-row,
.task-card-head,
.board-column-head,
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.metric-grid,
.content-grid,
.cards-grid,
.health-grid,
.landing-feature-grid,
.template-grid,
.report-grid,
.detail-grid,
.board-grid {
  display: grid;
  gap: 18px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card h3 {
  margin: 8px 0 10px;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.content-grid-dashboard {
  grid-template-columns: 1.3fr 1fr;
}

.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(170px, 220px)) auto;
  gap: 12px;
  align-items: end;
  margin: 22px 0;
  padding: 14px;
  border-radius: 20px;
  background: rgba(242, 247, 243, 0.82);
  border: 1px solid var(--line);
}

.filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(23, 33, 26, 0.1);
  border-radius: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
}

.search-control {
  position: relative;
}

.search-control .material-symbols-rounded {
  position: absolute;
  left: 13px;
  bottom: 12px;
  z-index: 1;
  color: var(--muted);
  font-size: 1.1rem;
}

.search-control input {
  padding-left: 40px;
}

.result-count {
  min-width: max-content;
  padding: 13px 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.filter-bar-compact {
  grid-template-columns: minmax(0, 1fr) minmax(170px, 220px) auto;
  margin-top: 0;
}

.stack-list {
  display: grid;
  gap: 14px;
}

.operations-control-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(15, 123, 102, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 10%, rgba(15, 123, 102, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(242, 247, 243, 0.82));
  box-shadow: var(--shadow-soft);
}

.operations-control-card h3 {
  margin: 4px 0 6px;
}

.operations-control-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.operations-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.goal-execution-list {
  display: grid;
  gap: 14px;
}

.goal-execution-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 18px;
  align-items: end;
  padding: 18px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(242, 247, 243, 0.72)),
    white;
}

.goal-execution-card h4 {
  margin: 5px 0 8px;
  font-size: 1.05rem;
}

.goal-execution-controls {
  display: grid;
  gap: 10px;
}

.goal-execution-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.goal-execution-controls select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(23, 33, 26, 0.1);
  border-radius: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
}

.list-card {
  padding: 18px;
}

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

.detail-line {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(23, 33, 26, 0.06);
}

.detail-label {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.chip-row,
.task-chip-list,
.stacked-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip,
.task-chip {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(15, 123, 102, 0.08);
  color: var(--primary-strong);
  font-size: 0.9rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.badge-neutral {
  background: rgba(23, 33, 26, 0.07);
  color: var(--text);
}

.badge-info {
  background: var(--info-soft);
  color: var(--info);
}

.badge-success {
  background: var(--success-soft);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-soft);
  color: var(--warning);
}

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

.simple-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}

.card-footer {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.task-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
}

.task-card.compact {
  padding: 16px;
}

.task-focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 14px;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(260px, 1fr));
  gap: 14px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 8px;
}

.kanban-column {
  min-width: 260px;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  border-radius: 22px;
  background: rgba(242, 247, 243, 0.72);
}

.kanban-column-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.kanban-column-head h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.kanban-column-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.kanban-column-list {
  display: grid;
  gap: 10px;
}

.kanban-task-card {
  display: grid;
  gap: 11px;
  padding: 14px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.kanban-task-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.kanban-task-head h4 {
  margin: 0;
  font-size: 0.98rem;
}

.kanban-task-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.kanban-meta {
  display: grid;
  gap: 7px;
}

.kanban-meta span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

.kanban-meta strong {
  color: var(--text);
  font-weight: 700;
}

.kanban-task-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.kanban-empty {
  padding: 18px 12px;
  border: 1px dashed rgba(23, 33, 26, 0.14);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
  font-size: 0.88rem;
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.workflow-step {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.workflow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -11px;
  width: 11px;
  height: 1px;
  background: rgba(23, 33, 26, 0.14);
}

.workflow-step strong {
  font-size: 1.25rem;
}

.workflow-step span {
  color: var(--muted);
  font-size: 0.86rem;
}

.workflow-waiting_for_approval {
  color: var(--warning);
}

.workflow-blocked {
  color: var(--danger);
}

.workflow-completed {
  color: var(--success);
}

.task-card h4,
.list-card h3,
.board-column h3,
.health-card h4,
.opportunity-row h4,
.report-card h3 {
  margin: 0 0 6px;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.opportunity-row,
.mini-report,
.health-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.health-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.health-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: center;
}

.health-score {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(15, 123, 102, 0.12), rgba(22, 101, 216, 0.08));
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-strong);
}

.org-map {
  display: grid;
  gap: 24px;
}

.empty-node,
.empty-state {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 150px;
  color: var(--muted);
  border: 1px dashed rgba(23, 33, 26, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.5);
  padding: 24px;
}

.org-map-radial {
  gap: 20px;
}

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

.map-stat-card {
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-soft);
}

.map-stat-card strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.map-stat-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.radial-map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.radial-map-stage,
.map-explainer {
  border: 1px solid rgba(23, 33, 26, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-soft);
}

.radial-map-stage {
  position: relative;
  min-height: clamp(560px, calc(100vh - 285px), 720px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 42%, rgba(15, 123, 102, 0.08), transparent 20%),
    radial-gradient(circle at 22% 30%, rgba(22, 101, 216, 0.06), transparent 16%),
    radial-gradient(circle at 76% 72%, rgba(115, 87, 255, 0.08), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 248, 245, 0.72));
}

.radial-map-stage::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.68), transparent 58%),
    linear-gradient(135deg, rgba(15, 123, 102, 0.04), rgba(22, 101, 216, 0.04));
  transform: perspective(1200px) rotateX(62deg);
  pointer-events: none;
}

.radial-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(23, 33, 26, 0.08);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-12deg) scaleY(0.62);
  pointer-events: none;
}

.radial-ring-outer {
  width: 82%;
  height: 82%;
}

.radial-ring-middle {
  width: 64%;
  height: 64%;
  border-style: dashed;
  border-color: rgba(23, 33, 26, 0.1);
}

.radial-ring-inner {
  width: 40%;
  height: 40%;
  border-color: rgba(15, 123, 102, 0.12);
}

.radial-link-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.radial-link {
  stroke-width: 0.25;
  stroke-linecap: round;
  stroke-dasharray: 1.2 1.8;
  opacity: 0.68;
}

.radial-link-emerald {
  stroke: rgba(15, 123, 102, 0.45);
}

.radial-link-blue {
  stroke: rgba(22, 101, 216, 0.42);
}

.radial-link-violet {
  stroke: rgba(115, 87, 255, 0.4);
}

.radial-link-rose {
  stroke: rgba(193, 87, 127, 0.42);
}

.radial-link-amber {
  stroke: rgba(179, 107, 0, 0.44);
}

.radial-link-teal {
  stroke: rgba(25, 128, 126, 0.42);
}

.radial-link-slate {
  stroke: rgba(82, 97, 115, 0.4);
}

.ceo-core,
.department-orbit-node {
  position: absolute;
  border: 0;
  text-align: center;
}

.ceo-core {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 224px;
  min-height: 224px;
  padding: 26px 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  gap: 8px;
  color: var(--text);
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.98), rgba(244, 250, 247, 0.96)),
    linear-gradient(135deg, rgba(15, 123, 102, 0.18), rgba(22, 101, 216, 0.08));
  box-shadow:
    0 22px 48px rgba(30, 53, 37, 0.12),
    inset 0 0 0 1px rgba(15, 123, 102, 0.12);
  z-index: 3;
}

.ceo-core .material-symbols-rounded {
  font-size: 2.45rem;
  color: var(--primary-strong);
}

.ceo-core small,
.ceo-core span {
  color: var(--muted);
}

.ceo-core strong {
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.ceo-core-halo {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px solid rgba(15, 123, 102, 0.14);
  box-shadow: 0 0 0 12px rgba(15, 123, 102, 0.04);
}

.department-orbit-node {
  transform: translate(-50%, -50%);
  width: 152px;
  min-height: 144px;
  padding: 16px 14px 18px;
  border-radius: 28px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 20px 30px rgba(30, 53, 37, 0.08),
    inset 0 0 0 1px rgba(23, 33, 26, 0.07);
  z-index: 2;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  animation: orbitFloat 7s ease-in-out infinite;
}

.department-orbit-node:hover {
  transform: translate(-50%, calc(-50% - 5px));
  box-shadow:
    0 26px 38px rgba(30, 53, 37, 0.12),
    inset 0 0 0 1px rgba(23, 33, 26, 0.07);
}

.department-orbit-node strong {
  font-size: 1rem;
  line-height: 1.15;
}

.department-orbit-node span:last-child {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--muted);
}

.department-orbit-node.outer {
  width: 164px;
}

.department-symbol {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: inline-grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.department-symbol.large {
  width: 66px;
  height: 66px;
  border-radius: 22px;
}

.department-symbol .material-symbols-rounded {
  font-size: 1.8rem;
}

.department-symbol-emerald,
.department-orbit-emerald {
  background: linear-gradient(180deg, rgba(15, 123, 102, 0.16), rgba(255, 255, 255, 0.92));
}

.department-symbol-blue,
.department-orbit-blue {
  background: linear-gradient(180deg, rgba(22, 101, 216, 0.15), rgba(255, 255, 255, 0.92));
}

.department-symbol-violet,
.department-orbit-violet {
  background: linear-gradient(180deg, rgba(115, 87, 255, 0.16), rgba(255, 255, 255, 0.92));
}

.department-symbol-rose,
.department-orbit-rose {
  background: linear-gradient(180deg, rgba(193, 87, 127, 0.14), rgba(255, 255, 255, 0.92));
}

.department-symbol-amber,
.department-orbit-amber {
  background: linear-gradient(180deg, rgba(179, 107, 0, 0.14), rgba(255, 255, 255, 0.92));
}

.department-symbol-teal,
.department-orbit-teal {
  background: linear-gradient(180deg, rgba(25, 128, 126, 0.16), rgba(255, 255, 255, 0.92));
}

.department-symbol-slate,
.department-orbit-slate {
  background: linear-gradient(180deg, rgba(82, 97, 115, 0.14), rgba(255, 255, 255, 0.92));
}

.department-symbol-emerald .material-symbols-rounded,
.department-orbit-emerald .material-symbols-rounded {
  color: var(--primary-strong);
}

.department-symbol-blue .material-symbols-rounded,
.department-orbit-blue .material-symbols-rounded {
  color: var(--info);
}

.department-symbol-violet .material-symbols-rounded,
.department-orbit-violet .material-symbols-rounded {
  color: var(--violet);
}

.department-symbol-rose .material-symbols-rounded,
.department-orbit-rose .material-symbols-rounded {
  color: var(--rose);
}

.department-symbol-amber .material-symbols-rounded,
.department-orbit-amber .material-symbols-rounded {
  color: var(--warning);
}

.department-symbol-teal .material-symbols-rounded,
.department-orbit-teal .material-symbols-rounded {
  color: var(--teal);
}

.department-symbol-slate .material-symbols-rounded,
.department-orbit-slate .material-symbols-rounded {
  color: var(--slate);
}

.map-explainer {
  padding: 22px;
  align-content: start;
}

.map-explainer h3 {
  margin: 0 0 10px;
}

.empty-orbit-state {
  position: absolute;
  left: 50%;
  top: 74%;
  transform: translate(-50%, -50%);
  width: min(84%, 420px);
  padding: 22px;
  border-radius: 24px;
  border: 1px dashed rgba(23, 33, 26, 0.12);
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
  color: var(--muted);
}

.panel-backdrop-map {
  background: rgba(17, 24, 19, 0.06);
}

.panel-map {
  width: min(100%, 560px);
  background: rgba(248, 251, 248, 0.98);
}

.map-panel-heading {
  display: flex;
  gap: 14px;
  align-items: center;
}

.panel-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.panel-section {
  display: grid;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid rgba(23, 33, 26, 0.08);
}

.panel-section h3,
.panel-section h4 {
  margin: 0;
}

.panel-list {
  display: grid;
  gap: 12px;
}

.panel-row-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
}

.panel-row-card strong {
  display: block;
  margin-bottom: 6px;
}

.board-grid {
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  align-items: start;
}

.board-column {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  min-height: 360px;
}

.report-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.report-card {
  padding: 0;
  overflow: hidden;
}

.report-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
}

.report-summary::-webkit-details-marker {
  display: none;
}

.report-summary h3 {
  margin: 0 0 6px;
}

.report-summary p:not(.eyebrow) {
  margin: 0;
}

.report-summary-meta {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.report-toggle {
  color: var(--primary-strong);
  font-size: 0.86rem;
  font-weight: 600;
}

.report-card[open] .report-toggle {
  font-size: 0;
}

.report-card[open] .report-toggle::after {
  content: "Hide details";
  font-size: 0.86rem;
}

.report-body {
  padding: 0 22px 22px;
  border-top: 1px solid var(--line);
}

.report-publishing-panel {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(15, 123, 102, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(15, 123, 102, 0.07), rgba(22, 101, 216, 0.05)),
    rgba(255, 255, 255, 0.76);
}

.report-publishing-panel h4 {
  margin: 4px 0 6px;
}

.report-comment-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(23, 33, 26, 0.08);
}

.report-comment-box label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
}

.report-comment-box textarea {
  width: 100%;
  resize: vertical;
  min-height: 92px;
  padding: 12px 13px;
  border: 1px solid rgba(23, 33, 26, 0.1);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
  font: inherit;
}

.report-item-feedback {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(22, 101, 216, 0.1);
}

.report-item-feedback label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
}

.report-item-feedback textarea {
  width: 100%;
  resize: vertical;
  min-height: 92px;
  padding: 12px 13px;
  border: 1px solid rgba(23, 33, 26, 0.1);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  font: inherit;
}

.manager-chat-thread {
  display: grid;
  gap: 12px;
}

.manager-chat-thread h5 {
  margin: 0 0 5px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.manager-chat-thread p {
  margin: 0;
  color: var(--muted);
}

.manager-chat-messages {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
  padding: 10px;
  border-radius: 16px;
  background: rgba(242, 247, 243, 0.76);
}

.manager-chat-message {
  width: min(92%, 680px);
  display: grid;
  gap: 5px;
  padding: 11px 13px;
  border-radius: 15px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.manager-chat-message p {
  color: var(--text);
  line-height: 1.45;
}

.manager-chat-message span {
  color: var(--muted);
  font-size: 0.76rem;
}

.manager-chat-ceo {
  justify-self: end;
  background: rgba(15, 123, 102, 0.1);
  border-color: rgba(15, 123, 102, 0.18);
}

.manager-chat-manager {
  justify-self: start;
}

.manager-chat-thinking {
  position: relative;
  border-color: rgba(22, 101, 216, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(235, 242, 255, 0.82));
}

.manager-chat-thinking strong::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  display: inline-block;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(22, 101, 216, 0.28);
  animation: thinking-pulse 1.35s ease-in-out infinite;
  vertical-align: middle;
}

.manager-chat-error {
  border-color: rgba(176, 64, 47, 0.24);
  background: rgba(255, 246, 242, 0.94);
}

.manager-chat-error strong {
  color: #9f3524;
}

.report-item-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.ceo-comment-history {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.ceo-comment-history h5 {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.ceo-comment-history div {
  display: grid;
  gap: 3px;
  padding-left: 10px;
  border-left: 3px solid rgba(22, 101, 216, 0.2);
}

.ceo-comment-history span {
  color: var(--muted);
  font-size: 0.8rem;
}

.report-publishing-actions {
  display: grid;
  grid-template-columns: auto minmax(190px, 240px) auto;
  gap: 12px;
  align-items: end;
}

.report-publishing-actions label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.report-publishing-actions select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(23, 33, 26, 0.1);
  border-radius: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
}

.approved-note {
  align-self: center;
  color: var(--success);
  font-weight: 700;
  font-size: 0.9rem;
}

.social-post-preview {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(23, 33, 26, 0.08);
}

.social-post-preview h4 {
  margin: 0;
}

.social-post-preview pre {
  margin: 0;
  white-space: pre-wrap;
  color: var(--text);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.55;
}

.social-post-preview small {
  color: var(--muted);
  line-height: 1.4;
}

.report-activity-log {
  display: grid;
  gap: 10px;
}

.report-activity-log div {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-left: 3px solid rgba(15, 123, 102, 0.26);
  background: rgba(255, 255, 255, 0.58);
  border-radius: 12px;
}

.report-activity-log span {
  color: var(--muted);
  font-size: 0.8rem;
}

.report-feature .report-card {
  border-color: rgba(15, 123, 102, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(235, 248, 242, 0.9));
}

.report-work-review {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
}

.report-work-list {
  display: grid;
  gap: 14px;
}

.report-work-item {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(242, 247, 243, 0.72);
  border: 1px solid rgba(23, 33, 26, 0.08);
}

.report-work-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.report-work-head h4 {
  margin: 0 0 5px;
}

.report-work-head p {
  margin: 0;
  color: var(--muted);
}

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

.report-work-grid h5 {
  margin: 0 0 8px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.report-work-grid pre {
  min-height: 120px;
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  margin: 0;
  padding: 13px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.5;
}

.automation-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.callout {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(15, 123, 102, 0.08);
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 33, 26, 0.06);
}

.landing-shell,
.loading-screen {
  min-height: 100vh;
  display: grid;
}

.landing-shell {
  grid-template-columns: 1.1fr 0.9fr;
  padding: 34px;
  gap: 26px;
}

.landing-left,
.landing-right {
  display: grid;
  align-content: center;
}

.landing-left {
  gap: 22px;
  padding: 18px 26px;
}

.brand-pill {
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--primary-strong);
  font-weight: 700;
}

.landing-copy {
  max-width: 650px;
  font-size: 1.08rem;
}

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

.marketing-card {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
}

.setup-card {
  width: min(100%, 720px);
  justify-self: end;
}

.company-form,
.panel-form {
  display: grid;
  gap: 16px;
}

.settings-form {
  margin-top: 8px;
  gap: 12px;
}

.integration-status-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
}

.integration-status-card > .material-symbols-rounded {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--primary-strong);
  background: var(--primary-soft);
}

.integration-status-card h3 {
  margin: 0 0 6px;
}

.integration-status-card p {
  margin: 0;
}

.integration-status-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.tool-settings-card,
.figma-status-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(15, 123, 102, 0.05), rgba(22, 101, 216, 0.04)),
    rgba(255, 255, 255, 0.72);
}

.tool-settings-card p,
.figma-status-card p {
  margin: 0;
  color: var(--muted);
}

.tool-settings-card small {
  color: var(--muted);
  line-height: 1.4;
}

.connected-account-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(15, 123, 102, 0.16);
  border-radius: 18px;
  background: rgba(15, 123, 102, 0.08);
}

.connected-account-card img,
.connected-account-card > .material-symbols-rounded {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.connected-account-card img {
  object-fit: cover;
}

.connected-account-card > .material-symbols-rounded {
  display: grid;
  place-items: center;
  background: rgba(15, 123, 102, 0.12);
  color: var(--green);
}

.connected-account-card div {
  min-width: 0;
  flex: 1;
}

.connected-account-card small {
  display: block;
  margin-top: 4px;
}

.settings-section,
.setup-advanced {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.64);
  overflow: hidden;
}

.settings-section > summary,
.setup-advanced > summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.settings-section > summary::-webkit-details-marker,
.setup-advanced > summary::-webkit-details-marker {
  display: none;
}

.settings-section summary strong,
.settings-section summary small,
.setup-advanced summary strong,
.setup-advanced summary small {
  display: block;
}

.settings-section summary small,
.setup-advanced summary small {
  margin-top: 4px;
  color: var(--muted);
}

.settings-section[open] > summary .material-symbols-rounded,
.setup-advanced[open] > summary .material-symbols-rounded {
  transform: rotate(180deg);
}

.settings-section > .form-grid,
.setup-advanced > .company-form {
  padding: 0 20px 20px;
}

.company-form label small {
  color: var(--muted);
  line-height: 1.4;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

.ai-fill-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(15, 123, 102, 0.14);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(15, 123, 102, 0.08), rgba(22, 101, 216, 0.06)),
    rgba(255, 255, 255, 0.72);
}

.ai-fill-strip strong,
.ai-fill-strip small {
  display: block;
}

.ai-fill-strip small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.ai-fill-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.ai-fill-button .material-symbols-rounded {
  font-size: 1.15rem;
}

.task-output-block {
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
  margin: 8px 0 18px;
  padding: 14px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  border-radius: 16px;
  background: rgba(242, 247, 243, 0.72);
  color: var(--text);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.55;
}

.task-reference-upload {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px dashed rgba(15, 123, 102, 0.24);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(15, 123, 102, 0.06), rgba(237, 242, 231, 0.72)),
    rgba(255, 255, 255, 0.72);
}

.task-reference-upload strong {
  display: block;
  margin-bottom: 4px;
}

.task-reference-upload p,
.task-reference-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.task-reference-status[data-tone="success"] {
  color: var(--success);
}

.task-reference-status[data-tone="warning"] {
  color: var(--warning);
}

.task-reference-status[data-tone="danger"] {
  color: var(--danger);
}

.task-reference-picker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 123, 102, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--primary-strong);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(23, 33, 26, 0.06);
}

.task-reference-picker input {
  display: none;
}

.task-reference-list {
  display: grid;
  gap: 8px;
}

.task-reference-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.task-reference-item > .material-symbols-rounded {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--primary-strong);
  background: var(--primary-soft);
}

.task-reference-item strong,
.task-reference-item small {
  display: block;
}

.task-reference-item small {
  margin-top: 3px;
  color: var(--muted);
}

.task-reference-remove {
  min-width: auto;
  padding-inline: 12px;
}

.ai-fill-status[data-tone="success"] {
  color: var(--success);
}

.ai-fill-status[data-tone="warning"] {
  color: var(--warning);
}

.ai-fill-status[data-tone="danger"] {
  color: var(--danger);
}

.sticky-form-actions {
  position: sticky;
  bottom: 14px;
  display: flex;
  justify-content: flex-end;
  padding: 12px;
  border-radius: 18px;
  background: rgba(249, 251, 248, 0.88);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

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

.company-form label,
.panel-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
}

.company-form input,
.company-form textarea,
.company-form select,
.panel-form input,
.panel-form textarea,
.panel-form select {
  width: 100%;
  border: 1px solid rgba(23, 33, 26, 0.12);
  border-radius: 16px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  resize: vertical;
}

.panel-form .task-reference-picker {
  display: inline-flex;
  width: fit-content;
}

.template-picker {
  margin: 0;
  padding: 0;
  border: 0;
}

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

.template-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
}

.template-option input {
  width: 18px;
  margin-top: 4px;
}

.span-2 {
  grid-column: 1 / -1;
}

.checkbox-row {
  display: flex !important;
  gap: 12px !important;
  align-items: center;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.panel-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  padding: 18px;
  background: rgba(17, 24, 19, 0.18);
  backdrop-filter: blur(5px);
}

.panel {
  width: min(100%, 560px);
  height: 100%;
  overflow: auto;
  background: rgba(249, 251, 248, 0.96);
  border-radius: 32px;
  border: 1px solid rgba(23, 33, 26, 0.08);
  padding: 24px;
  box-shadow: 0 28px 60px rgba(20, 30, 22, 0.16);
}

.icon-button {
  border: 0;
  background: white;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(23, 33, 26, 0.08);
}

.toast {
  position: fixed;
  right: 26px;
  bottom: 26px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(23, 33, 26, 0.92);
  color: white;
}

@keyframes orbitFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -6px;
  }
}

@keyframes thinking-pulse {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(22, 101, 216, 0.24);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 0 0 8px rgba(22, 101, 216, 0);
  }
}

.loading-screen {
  place-items: center;
  padding: 40px;
}

.loading-card {
  width: min(100%, 520px);
  text-align: center;
}

@media (max-width: 1200px) {
  .metric-grid,
  .board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid-dashboard,
  .landing-shell,
  .radial-map-shell {
    grid-template-columns: 1fr;
  }

  .setup-card {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    z-index: 20;
    width: 100%;
    min-width: 0;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
    background: rgba(247, 250, 246, 0.94);
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
  }

  .brand-card {
    flex: 0 0 auto;
    padding: 8px;
    box-shadow: none;
    background: transparent;
  }

  .brand-card > div:last-child,
  .sidebar-foot {
    display: none;
  }

  .sidebar-nav {
    display: flex;
    flex: 1;
    min-width: 0;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .topbar,
  .page-content,
  .landing-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .topbar,
  .hero-card,
  .section-head,
  .panel-head {
    flex-direction: column;
  }

  .metric-grid,
  .detail-grid,
  .report-grid,
  .landing-feature-grid,
  .board-grid,
  .map-command-strip,
  .panel-stat-grid,
  .filter-bar,
  .dashboard-intro {
    grid-template-columns: 1fr;
  }

  .dashboard-actions {
    justify-content: flex-start;
  }

  .filter-bar {
    align-items: stretch;
  }

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

  .operations-actions {
    justify-content: flex-start;
  }

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

  .report-publishing-actions {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .report-comment-box {
    grid-template-columns: 1fr;
  }

  .report-item-feedback {
    grid-template-columns: 1fr;
  }

  .report-work-head {
    display: grid;
  }

  .report-work-grid {
    grid-template-columns: 1fr;
  }

  .result-count {
    padding: 4px;
  }

  .workflow-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .workflow-step::after {
    display: none;
  }

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

  .ai-fill-strip {
    grid-template-columns: 1fr;
  }

  .ai-fill-button {
    justify-content: center;
    width: 100%;
  }

  .radial-map-stage {
    min-height: 680px;
  }
}

@media (max-width: 640px) {
  .card,
  .hero-card,
  .section-card,
  .setup-card,
  .loading-card,
  .panel {
    padding: 18px;
    border-radius: 24px;
  }

  .sidebar {
    padding: 10px 12px;
  }

  .topbar {
    padding-top: 20px;
  }

  .topbar h1 {
    font-size: 2rem;
  }

  .topbar-copy {
    font-size: 0.92rem;
  }

  .attention-grid,
  .metric-grid,
  .automation-summary {
    grid-template-columns: 1fr;
  }

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

  .map-command-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-step {
    padding: 11px 12px;
  }

  .section-card h2,
  .hero-card h2 {
    font-size: 1.85rem;
  }

  .attention-card {
    min-height: auto;
  }

  .task-focus-grid {
    grid-template-columns: 1fr;
  }

  .kanban-board {
    grid-template-columns: repeat(6, minmax(240px, 82vw));
  }

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

  .report-summary-meta {
    justify-items: start;
  }

  .dashboard-actions,
  .hero-actions,
  .task-actions {
    width: 100%;
  }

  .dashboard-actions .button,
  .hero-actions .button,
  .task-actions .button {
    flex: 1 1 auto;
    text-align: center;
  }

  .company-node {
    width: 100%;
  }

  .radial-map-stage {
    min-height: 620px;
  }

  .ceo-core {
    width: 176px;
    min-height: 176px;
    padding: 20px 18px;
  }

  .department-orbit-node,
  .department-orbit-node.outer {
    width: 128px;
    min-height: 118px;
    padding: 12px;
    border-radius: 22px;
  }

  .department-symbol {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }
}
