:root {
  --axiset-bg: #eef3f8;
  --axiset-bg-elevated: #ffffff;
  --axiset-canvas-a: rgba(6, 182, 212, 0.09);
  --axiset-canvas-b: rgba(99, 102, 241, 0.07);
  --axiset-canvas-c: #edf2f8;
}

:root.dark {
  --axiset-bg: #050814;
  --axiset-bg-elevated: #0b102b;
  --axiset-canvas-a: rgba(34, 211, 238, 0.2);
  --axiset-canvas-b: rgba(99, 102, 241, 0.2);
  --axiset-canvas-c: #050814;
}

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

.axiset-body {
  margin: 0;
  background-color: var(--axiset-bg);
  color: #0b1324;
}

.app-canvas {
  background-image:
    radial-gradient(circle at top left, var(--axiset-canvas-a), transparent 45%),
    radial-gradient(circle at top right, var(--axiset-canvas-b), transparent 42%),
    linear-gradient(to bottom, var(--axiset-bg-elevated), var(--axiset-canvas-c));
}

.axiset-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(5, 8, 20, 0.55);
  backdrop-filter: blur(2px);
}

:root:not(.dark) .axiset-modal {
  background: rgba(11, 19, 36, 0.28);
}

.axiset-modal__panel {
  width: min(100%, 720px);
}

.min-h-24 {
  min-height: 6rem;
}

.goal-card {
  border-color: rgba(255, 255, 255, 0.1);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.goal-card__checkbox {
  appearance: none;
  -webkit-appearance: none;
  height: 1.25rem;
  width: 1.25rem;
  flex: 0 0 auto;
  border: 1.5px solid rgba(148, 163, 184, 0.7);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.goal-card__checkbox:checked {
  border-color: rgba(8, 145, 178, 0.95);
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.98), rgba(8, 145, 178, 0.98));
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.95),
    0 0 0 1px rgba(8, 145, 178, 0.18);
}

.goal-card__checkbox:focus-visible {
  outline: 2px solid rgba(6, 182, 212, 0.35);
  outline-offset: 2px;
}

:root.dark .goal-card__checkbox {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

:root.dark .goal-card__checkbox:checked {
  border-color: rgba(34, 211, 238, 0.9);
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.96), rgba(8, 145, 178, 0.96));
  box-shadow:
    inset 0 0 0 3px rgba(5, 8, 20, 0.88),
    0 0 0 1px rgba(34, 211, 238, 0.18);
}

.goal-card--selected {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.25);
}

:root:not(.dark) .goal-card--selected {
  border-color: rgba(8, 145, 178, 0.45);
  background-color: rgba(6, 182, 212, 0.05);
  box-shadow: inset 0 0 0 1px rgba(8, 145, 178, 0.18);
}

.initiative-goal-chip {
  background-color: rgba(255, 255, 255, 0.04);
}

.sidebar-link {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  min-height: 3.5rem;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}

.sidebar-link__label {
  min-width: 0;
  display: flex;
  align-items: center;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.sidebar-link__status {
  display: inline-flex;
  height: 1.9rem;
  width: 1.9rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  align-self: center;
}

.sidebar-brand {
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.sidebar-link--neutral {
  color: rgba(229, 236, 255, 0.84);
}

.sidebar-link--neutral:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f8fbff;
}

.sidebar-link--completed {
  color: #dcfbff;
  border-color: transparent;
  background: transparent;
}

.sidebar-link--completed .sidebar-link__status {
  border-color: rgba(34, 211, 238, 0.32);
  background: rgba(34, 211, 238, 0.16);
}

.sidebar-link--skipped {
  color: #f7e6b0;
  border-color: transparent;
  background: transparent;
}

.sidebar-link--skipped .sidebar-link__status {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.12);
}

.sidebar-link--locked {
  cursor: not-allowed;
  opacity: 0.56;
  color: rgba(203, 213, 238, 0.72);
  border-color: rgba(148, 163, 184, 0.14);
  border-style: dashed;
  background: rgba(255, 255, 255, 0.015);
}

.sidebar-link--locked .sidebar-link__status {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.02);
}

.sidebar-link--active {
  border-color: rgba(34, 211, 238, 0.26);
  background: rgba(34, 211, 238, 0.08);
  color: #f8fbff;
  box-shadow:
    0 14px 28px rgba(5, 8, 20, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.sidebar-link--active .sidebar-link__status {
  border-color: rgba(34, 211, 238, 0.34);
  background: rgba(34, 211, 238, 0.14);
}

:root:not(.dark) .sidebar-link__status {
  border-color: rgba(9, 30, 66, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

:root:not(.dark) .sidebar-link--neutral {
  color: rgba(11, 19, 36, 0.78);
}

:root:not(.dark) .sidebar-link--neutral:hover {
  border-color: rgba(9, 30, 66, 0.12);
  background: rgba(9, 30, 66, 0.04);
  color: #0b1324;
}

:root:not(.dark) .sidebar-link--completed {
  color: #0e5566;
  border-color: transparent;
  background: transparent;
}

:root:not(.dark) .sidebar-link--completed .sidebar-link__status {
  border-color: rgba(8, 145, 178, 0.24);
  background: rgba(6, 182, 212, 0.14);
}

:root:not(.dark) .sidebar-link--skipped {
  color: #8a5a00;
  border-color: transparent;
  background: transparent;
}

:root:not(.dark) .sidebar-link--skipped .sidebar-link__status {
  border-color: rgba(245, 158, 11, 0.24);
  background: rgba(245, 158, 11, 0.12);
}

:root:not(.dark) .sidebar-link--locked {
  color: rgba(11, 19, 36, 0.42);
  border-color: rgba(9, 30, 66, 0.12);
  background: rgba(255, 255, 255, 0.5);
}

:root:not(.dark) .sidebar-link--active {
  border-color: rgba(8, 145, 178, 0.24);
  background: rgba(6, 182, 212, 0.08);
  color: #0b1324;
  box-shadow:
    0 14px 28px rgba(9, 30, 66, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

:root:not(.dark) .sidebar-link--active .sidebar-link__status {
  border-color: rgba(8, 145, 178, 0.24);
  background: rgba(6, 182, 212, 0.12);
}

.initiative-goal-chip--selected {
  border-color: rgba(34, 211, 238, 0.55) !important;
  background-color: rgba(34, 211, 238, 0.12);
}

:root:not(.dark) .initiative-goal-chip {
  background-color: #ffffff;
}

:root:not(.dark) .initiative-goal-chip--selected {
  border-color: rgba(8, 145, 178, 0.48) !important;
  background-color: rgba(6, 182, 212, 0.08);
}

:root.dark .field:focus {
  background-color: rgba(255, 255, 255, 0.08);
  color: #e5ecff;
}

:root.dark .field:-webkit-autofill,
:root.dark .field:-webkit-autofill:hover,
:root.dark .field:-webkit-autofill:focus {
  -webkit-text-fill-color: #e5ecff !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.08) inset !important;
  box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.08) inset !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
  caret-color: #e5ecff !important;
  -webkit-background-clip: text;
  transition: background-color 99999s ease-in-out 0s;
}

:root:not(.dark) .panel {
  background-color: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow:
    0 18px 34px rgba(15, 23, 42, 0.08),
    0 3px 8px rgba(15, 23, 42, 0.05);
  backdrop-filter: none;
}

:root:not(.dark) .sidebar-brand {
  border-bottom-color: rgba(15, 23, 42, 0.1);
}

:root:not(.dark) .field,
:root:not(.dark) .radio-card {
  background-color: #ffffff;
  border-color: rgba(15, 23, 42, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

:root:not(.dark) .field:focus,
:root:not(.dark) .radio-card:focus-within {
  border-color: rgba(8, 145, 178, 0.5);
  box-shadow:
    0 0 0 3px rgba(6, 182, 212, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

:root:not(.dark) .text-neutral-500 {
  color: rgba(15, 23, 42, 0.54) !important;
}

:root:not(.dark) .text-neutral-600 {
  color: rgba(15, 23, 42, 0.74) !important;
}

:root:not(.dark) .text-neutral-700 {
  color: rgba(15, 23, 42, 0.84) !important;
}

:root:not(.dark) .text-neutral-900 {
  color: #0f172a !important;
}

:root:not(.dark) .btn-secondary {
  border-color: rgba(15, 23, 42, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: #274060;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

:root:not(.dark) .btn-secondary:hover {
  border-color: rgba(8, 145, 178, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #eef9fc 100%);
  color: #0e5566;
}

:root:not(.dark) .btn-primary {
  box-shadow: 0 10px 18px rgba(79, 70, 229, 0.16);
}

.enterprise-table-shell {
  position: relative;
}

.enterprise-table thead {
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.enterprise-table thead th {
  background: rgba(255, 255, 255, 0.03);
}

.enterprise-table__row {
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.enterprise-table__row:last-child {
  border-bottom: 0;
}

.enterprise-card {
  background: rgba(255, 255, 255, 0.03);
}

.initiative-form__optional-row {
  display: grid;
  width: 100%;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 639px) {
  .initiative-form__optional-row {
    grid-template-columns: 1fr;
  }
}

:root:not(.dark) .enterprise-table thead {
  border-bottom-color: rgba(15, 23, 42, 0.1);
}

:root:not(.dark) .enterprise-table thead th {
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.9), rgba(248, 250, 252, 0.98));
}

:root:not(.dark) .enterprise-table__row {
  border-bottom-color: rgba(15, 23, 42, 0.09);
}

:root:not(.dark) .enterprise-table__row:nth-child(even) td {
  background: rgba(248, 250, 252, 0.72);
}

:root:not(.dark) .enterprise-card {
  border-color: rgba(15, 23, 42, 0.1) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.95));
}

:root:not(.dark) .fixed.inset-x-0.bottom-0 {
  border-top-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
}

@media (max-width: 767px) {
  .axiset-modal__panel {
    max-height: 90vh;
    overflow: auto;
  }
}
