:root {
  color-scheme: light;
  --background: #ffffff;
  --line: #314052;
  --text: #000000;
  --muted: rgba(0, 0, 0, 0.68);
  --danger: #8b1e1e;
  --success: #215f36;
  --font: Georgia, serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --background: #ffffff;
  --line: #314052;
  --text: #000000;
  --muted: rgba(0, 0, 0, 0.68);
  --danger: #8b1e1e;
  --success: #215f36;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #10110f;
  --line: #c9c4a7;
  --text: #f2f1dc;
  --muted: rgba(242, 241, 220, 0.7);
  --danger: #ff9a9a;
  --success: #9fd6ad;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --background: #10110f;
    --line: #c9c4a7;
    --text: #f2f1dc;
    --muted: rgba(242, 241, 220, 0.7);
    --danger: #ff9a9a;
    --success: #9fd6ad;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 352px;
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: var(--font);
  font-size: 13.2px;
  line-height: 1.35;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

body {
  min-height: 100vh;
  animation: page-refresh-enter 340ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: color 220ms ease, background 220ms ease, opacity 220ms ease, transform 220ms ease;
}

body.page-exit {
  opacity: 0;
  transform: translateY(5px);
}

body.phase-app-body {
  min-height: 100vh;
  background: #ffffff;
  animation: none;
  transform: none;
}

.motion-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
  transition-delay: var(--motion-delay, 0ms), var(--motion-delay, 0ms), 0ms, 0ms, 0ms;
  will-change: opacity, transform;
}

.motion-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: var(--line);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

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

button {
  color: inherit;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9.9px;
}

.brand-logo,
.phase-logo span {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-logo {
  width: 37.4px;
  height: 37.4px;
}

.phase-logo span {
  width: 30.3px;
  height: 30.3px;
}

.brand-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-logo-dark {
  display: none;
}

.brand-logo-light {
  display: block;
}

:root[data-theme="dark"] .brand-logo-dark {
  display: block;
}

:root[data-theme="dark"] .brand-logo-light {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo-dark {
    display: block;
  }

  :root:not([data-theme="light"]) .brand-logo-light {
    display: none;
  }
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
}

.brand strong {
  font-size: 15.4px;
  font-weight: 400;
}

.brand small,
.auth-heading p,
.auth-intro p,
.legal-summary,
.legal-section-list p,
.auth-switch,
.verification-email {
  color: var(--muted);
}

.phase-app {
  --phase-sidebar-width: 240px;
  --app-bg: #ffffff;
  --app-surface: rgba(255, 255, 255, 0.84);
  --app-surface-strong: #ffffff;
  --app-border: rgba(17, 19, 21, 0.1);
  --app-border-soft: rgba(17, 19, 21, 0.07);
  --app-text: #111315;
  --app-muted: #70757c;
  --app-soft: #f0f0ee;
  --app-accent: #4855d8;
  --app-accent-soft: #efedff;
  --app-accent-wash: rgba(239, 237, 255, 0.76);
  min-height: 100vh;
  color: var(--app-text);
  background:
    radial-gradient(circle at 45% 8%, rgba(255, 255, 255, 0.9), rgba(247, 247, 245, 0) 36%),
    var(--app-bg);
  font-family: Arial, Helvetica, sans-serif;
  transition: background 220ms ease, color 220ms ease;
}

:root[data-theme="dark"] .phase-app {
  --app-bg: #10110f;
  --app-surface: rgba(20, 21, 19, 0.86);
  --app-surface-strong: #151613;
  --app-border: rgba(242, 241, 220, 0.13);
  --app-border-soft: rgba(242, 241, 220, 0.08);
  --app-text: #f2f1dc;
  --app-muted: rgba(242, 241, 220, 0.66);
  --app-soft: rgba(242, 241, 220, 0.07);
  --app-accent: #aeb7ff;
  --app-accent-soft: rgba(102, 112, 255, 0.18);
  --app-accent-wash: rgba(102, 112, 255, 0.12);
}

.phase-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  width: var(--phase-sidebar-width);
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: color-mix(in srgb, var(--app-surface-strong) 88%, transparent);
  border-right: 1px solid var(--app-border);
  box-shadow: 18px 0 50px rgba(17, 19, 21, 0.045);
  backdrop-filter: blur(22px);
  transition: width 220ms ease, background 220ms ease, border-color 220ms ease;
}

.phase-sidebar-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  padding: 20px 18px 14px;
}

.phase-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.phase-logo span {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.phase-logo strong {
  overflow: hidden;
  color: var(--app-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phase-sidebar-menu,
.phase-icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  color: var(--app-text);
  background: color-mix(in srgb, var(--app-surface-strong) 72%, transparent);
  border: 1px solid var(--app-border-soft);
  border-radius: 9px;
  cursor: pointer;
}

.phase-sidebar-menu:hover,
.phase-icon-button:hover {
  background: var(--app-soft);
  border-color: var(--app-border-soft);
}

.phase-sidebar-menu:disabled,
.phase-sidebar-menu:disabled:hover,
.phase-icon-button:disabled,
.phase-icon-button:disabled:hover {
  color: color-mix(in srgb, var(--app-muted) 62%, transparent);
  background: color-mix(in srgb, var(--app-soft) 70%, transparent);
  border-color: var(--app-border-soft);
  cursor: not-allowed;
  opacity: 0.58;
}

.phase-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.phase-sidebar .phase-sidebar-menu {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.phase-sidebar .phase-sidebar-menu .phase-icon,
.phase-sidebar .phase-nav-link .phase-icon {
  width: 14px;
  height: 14px;
}

.phase-sidebar-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 3px 16px 18px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--app-border) transparent;
}

.phase-sidebar-scroll::-webkit-scrollbar {
  width: 4px;
}

.phase-sidebar-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.phase-sidebar-scroll::-webkit-scrollbar-thumb {
  background: var(--app-border);
  border: 0;
}

.phase-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.phase-nav-section {
  display: block;
  margin: 21px 12px 10px;
  color: var(--app-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.phase-nav-section-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.phase-nav-section-group + .phase-nav-section-group {
  margin-top: 4px;
  padding-top: 9px;
  border-top: 1px solid var(--app-border-soft);
}

.phase-nav-divider {
  height: 1px;
  margin: 14px 16px;
  background: var(--app-border);
}

.phase-nav-link {
  position: relative;
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  color: var(--app-text);
  background: transparent;
  border: 0;
  border-radius: 8px;
  appearance: none;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.phase-nav-link > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phase-nav-link:hover {
  background: var(--app-soft);
}

.phase-nav-link.active {
  color: var(--app-accent);
  background:
    linear-gradient(90deg, var(--app-accent-soft), var(--app-accent-wash));
  box-shadow: inset 0 0 0 1px rgba(72, 85, 216, 0.02);
}

.phase-nav-link.is-unavailable {
  color: color-mix(in srgb, var(--app-muted) 72%, transparent);
  cursor: not-allowed;
  opacity: 0.48;
}

.phase-nav-link.is-unavailable:hover {
  background: transparent;
}

.phase-bottom-nav {
  padding: 0 14px 12px;
}

.phase-bottom-nav .phase-nav-section {
  display: block;
  margin-top: 12px;
}

.phase-focus-mode {
  display: grid;
  gap: 8px;
  margin: 0 25px 24px;
  padding: 16px 13px 14px;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--app-surface-strong) 64%, transparent);
}

.phase-focus-mode > span {
  color: var(--app-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.phase-focus-mode strong {
  font-size: 13px;
}

.phase-focus-mode div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.phase-focus-mode b {
  color: var(--app-muted);
  font-size: 18px;
  font-weight: 400;
}

.phase-focus-mode button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--app-surface-strong);
  border: 1px solid var(--app-border);
  border-radius: 8px;
  cursor: pointer;
}

.phase-account-footer {
  min-height: 69px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 12px 18px;
  background: color-mix(in srgb, var(--app-surface-strong) 88%, transparent);
  border-top: 1px solid var(--app-border);
}

.phase-account-link {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--app-text);
}

.phase-account-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  color: var(--app-text);
  background: var(--app-soft);
  border: 1px solid var(--app-border-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.phase-account-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.phase-account-copy strong,
.phase-account-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phase-account-copy strong {
  font-size: 12px;
  font-weight: 600;
}

.phase-account-copy small {
  color: var(--app-muted);
  font-size: 11px;
}

.phase-account-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.phase-account-actions form {
  margin: 0;
}

.phase-account-action {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--app-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.phase-account-action:hover {
  color: var(--app-text);
  background: var(--app-soft);
  border-color: var(--app-border-soft);
}

.phase-account-action .phase-icon {
  width: 13px;
  height: 13px;
}

.phase-main {
  min-height: 100vh;
  margin-left: var(--phase-sidebar-width);
  background: transparent;
  transition: margin-left 220ms ease, background 220ms ease;
  scrollbar-width: thin;
  scrollbar-color: var(--app-border) transparent;
}

.phase-main::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}

.phase-main::-webkit-scrollbar-track {
  background: transparent;
}

.phase-main::-webkit-scrollbar-thumb {
  background: var(--app-border);
}

.phase-topbar {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 0 28px 0 36px;
  border-bottom: 1px solid var(--app-border);
  background: color-mix(in srgb, var(--app-surface) 88%, transparent);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease;
}

.phase-topbar h1 {
  margin: 0;
  color: var(--app-text);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.phase-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  min-width: 0;
}

.phase-search {
  width: min(100%, 320px);
  height: 40px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  color: var(--app-muted);
  background: var(--app-surface-strong);
  border: 1px solid var(--app-border);
  border-radius: 8px;
}

.phase-search input {
  min-width: 0;
  color: var(--app-text);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
}

.phase-search input::placeholder {
  color: var(--app-muted);
}

.phase-search kbd {
  padding: 3px 7px;
  color: var(--app-muted);
  background: var(--app-soft);
  border: 0;
  border-radius: 5px;
  font-size: 11px;
  font-family: inherit;
}

.phase-icon-button {
  background: var(--app-surface-strong);
  border-color: var(--app-border);
}

.phase-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--app-text);
}

.phase-profile-pill span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--app-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.phase-profile-pill .phase-icon {
  width: 15px;
  height: 15px;
}

.phase-profile-pill .phase-profile-avatar {
  overflow: hidden;
  border: 0;
}

.phase-content-stage {
  min-height: calc(100vh - 74px);
  contain: layout paint;
}

.phase-content-footer {
  width: min(100%, 1480px);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0 auto;
  padding: 0 28px 30px;
  color: color-mix(in srgb, var(--app-muted) 76%, transparent);
  font-size: 12px;
  line-height: 1.5;
}

.phase-content-footer span:first-child {
  font-weight: 600;
}

.phase-account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phase-page-content {
  padding: 22px 28px 34px;
  animation: app-content-enter 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: opacity 260ms ease, transform 260ms ease, padding 220ms ease;
}

.dashboard-redesign {
  width: min(100%, 1480px);
  margin: 0 auto;
}

.decision-dashboard,
.health-history-list,
.resource-summary-grid,
.resource-list {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.decision-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.85fr);
  gap: 18px;
}

.next-move-card,
.current-state-card,
.health-current-state,
.resource-summary-card,
.resource-row-card {
  min-width: 0;
  background: var(--app-surface-strong);
  border-color: var(--app-border);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(17, 19, 21, 0.035);
}

.next-move-card,
.current-state-card {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 22px;
}

.recommendation-label,
.resource-summary-card span,
.resource-row small,
.next-move-metrics span,
.state-metric-list span {
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.next-move-card h2,
.current-state-card h2,
.health-current-state h2 {
  margin: 0;
  color: var(--app-text);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
}

.next-move-reason {
  max-width: 680px;
  margin: 0;
  color: var(--app-muted);
}

.next-move-metrics,
.state-metric-list,
.resource-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

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

.next-move-metrics div,
.state-metric-list div,
.resource-summary-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: var(--app-soft);
  border-radius: 8px;
}

.next-move-metrics strong,
.state-metric-list strong,
.resource-summary-card strong {
  color: var(--app-text);
  font-size: 24px;
  font-weight: 600;
}

.next-move-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.health-current-state {
  width: min(100%, 1180px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto 18px;
  padding: 20px;
}

.health-history-list,
.resource-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.health-history-list article,
.resource-row-card {
  padding: 16px;
}

.health-history-list article,
.resource-row {
  display: grid;
  grid-template-columns: 120px repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 12px;
}

.health-history-list time,
.health-history-list span,
.resource-row p,
.resource-row i {
  color: var(--app-muted);
}

.health-history-list strong,
.resource-row strong,
.resource-row b {
  color: var(--app-text);
  font-weight: 600;
}

.resource-primary-action {
  width: min(100%, 1180px);
  display: flex;
  justify-content: flex-end;
  margin: 0 auto 18px;
}

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

.resource-summary-card p {
  margin: 0;
  color: var(--app-muted);
}

.resource-row {
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
}

.resource-row .nav-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--app-accent);
  background: var(--app-accent-soft);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.resource-row div {
  min-width: 0;
}

.resource-row p {
  margin: 4px 0 0;
}

.dashboard-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.dashboard-hero h2 {
  margin: 0 0 7px;
  color: var(--app-text);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.dashboard-hero p {
  margin: 0;
  color: var(--app-muted);
  font-size: 14px;
}

.dashboard-customize-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 14px;
  color: var(--app-text);
  background: var(--app-surface-strong);
  border: 1px solid var(--app-border);
  border-radius: 8px;
  cursor: pointer;
}

.dashboard-customize-button:hover {
  background: var(--app-soft);
}

.dashboard-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 18px;
}

.dashboard-card {
  min-width: 0;
  min-height: 265px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background: var(--app-surface-strong);
  border: 1px solid var(--app-border);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(17, 19, 21, 0.035);
}

:root[data-theme="dark"] .dashboard-card {
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.dashboard-card.wide {
  grid-column: span 2;
}

.dashboard-card-header {
  min-height: 53px;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.dashboard-card-header > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dashboard-card-header h2 {
  margin: 0;
  overflow: hidden;
  color: var(--app-text);
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-card-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.dashboard-card-body {
  position: relative;
  min-width: 0;
  padding: 0 20px 18px;
}

.dashboard-card-footer {
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 20px;
  color: var(--app-muted);
  border-top: 1px solid var(--app-border);
  font-size: 13px;
}

.dashboard-card-footer a:hover {
  color: var(--app-text);
}

.dashboard-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.dashboard-badge.planning,
.dashboard-badge.career {
  color: #245fc5;
  background: #e9f0ff;
}

.dashboard-badge.health,
.dashboard-badge.good,
.dashboard-badge.low {
  color: #159650;
  background: #e7f6ed;
}

.dashboard-badge.finance,
.dashboard-badge.financial,
.dashboard-badge.warning,
.dashboard-badge.medium {
  color: #d17500;
  background: #fff0d8;
}

.dashboard-badge.knowledge {
  color: #7350b6;
  background: #f0e9ff;
}

.dashboard-badge.risk,
.dashboard-badge.high {
  color: #c92727;
  background: #ffe8e8;
}

.dashboard-badge.neutral,
.dashboard-badge.operational {
  color: var(--app-muted);
  background: var(--app-soft);
}

.dashboard-priority-list,
.dashboard-calendar-list,
.dashboard-status-list,
.dashboard-recommendation-list,
.dashboard-operations-list,
.dashboard-risk-list,
.dashboard-resource-list,
.dashboard-goals-overview ul,
.dashboard-health-summary ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-priority-list {
  gap: 17px;
  padding-top: 10px;
}

.dashboard-priority-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 13px;
}

.dashboard-priority-list li > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-check {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  color: #ffffff;
  border: 1px solid rgba(17, 19, 21, 0.28);
  border-radius: 2px;
  font-size: 11px;
  line-height: 1;
}

.dashboard-check.checked {
  background: #111315;
  border-color: #111315;
}

.dashboard-check.checked::after {
  content: "";
  width: 6px;
  height: 3px;
  border-bottom: 1.5px solid #ffffff;
  border-left: 1.5px solid #ffffff;
  transform: rotate(-45deg) translate(0.5px, -0.5px);
}

.dashboard-calendar-card-heading {
  position: absolute;
  top: -35px;
  right: 20px;
  color: var(--app-muted);
  font-size: 12px;
}

.dashboard-calendar-list {
  gap: 18px;
  padding-top: 11px;
}

.dashboard-calendar-list li {
  display: grid;
  grid-template-columns: 56px 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.dashboard-calendar-list time,
.dashboard-calendar-list small {
  color: var(--app-muted);
}

.dashboard-calendar-list strong {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--app-muted);
}

.dashboard-dot.blue,
.dashboard-dot.planning {
  background: #3577d4;
}

.dashboard-dot.green,
.dashboard-dot.health {
  background: #26a765;
}

.dashboard-dot.orange,
.dashboard-dot.finance {
  background: #f08a1a;
}

.dashboard-dot.red,
.dashboard-dot.risk {
  background: #e42b3c;
}

.dashboard-dot.gray,
.dashboard-dot.neutral,
.dashboard-dot.knowledge {
  background: #7a57c7;
}

.dashboard-status-list li {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--app-border-soft);
  font-size: 13px;
}

.dashboard-status-list li:last-child {
  border-bottom: 0;
}

.dashboard-recommendation-list li {
  border-bottom: 1px solid var(--app-border-soft);
}

.dashboard-recommendation-list li:last-child {
  border-bottom: 0;
}

.dashboard-recommendation-list a {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
}

.dashboard-recommendation-list strong,
.dashboard-recommendation-list small {
  display: block;
}

.dashboard-recommendation-list strong {
  margin-bottom: 3px;
  font-weight: 500;
}

.dashboard-recommendation-list small {
  color: var(--app-muted);
}

.dashboard-goals-overview,
.dashboard-health-summary {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 172px;
}

.dashboard-progress-ring {
  --progress: 0%;
  position: relative;
  width: 126px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#26a765 var(--progress), #ececea 0);
}

:root[data-theme="dark"] .dashboard-progress-ring {
  background: conic-gradient(#33c979 var(--progress), rgba(242, 241, 220, 0.13) 0);
}

.dashboard-progress-ring::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--app-surface-strong);
}

.dashboard-progress-ring div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
  text-align: center;
}

.dashboard-progress-ring strong {
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.dashboard-progress-ring span {
  color: var(--app-muted);
  font-size: 11px;
}

.dashboard-goals-overview li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 31px;
  color: var(--app-muted);
  font-size: 13px;
}

.dashboard-goals-overview li strong {
  color: var(--app-text);
  font-weight: 500;
}

.dashboard-knowledge-map {
  width: 100%;
  height: 176px;
  display: block;
  margin-top: 2px;
}

.dashboard-knowledge-map path {
  fill: none;
  stroke: var(--app-border);
  stroke-width: 0.8;
}

.dashboard-knowledge-map circle {
  stroke: var(--app-surface-strong);
  stroke-width: 1.4;
}

.dashboard-knowledge-map .knowledge {
  fill: #7251c6;
}

.dashboard-knowledge-map .planning {
  fill: #3577d4;
}

.dashboard-knowledge-map .health {
  fill: #26a765;
}

.dashboard-knowledge-map .finance {
  fill: #2471c7;
}

.dashboard-knowledge-map .neutral {
  fill: #aab0b6;
}

.dashboard-finance-summary {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 172px;
  padding-top: 7px;
}

.dashboard-finance-summary > span {
  color: var(--app-muted);
  font-size: 13px;
}

.dashboard-finance-summary > strong {
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.dashboard-finance-summary p {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 22px;
  color: #159650;
  font-size: 13px;
}

.dashboard-finance-summary p .dashboard-card-icon {
  width: 14px;
  height: 14px;
}

.dashboard-finance-summary div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-finance-summary section {
  display: grid;
  gap: 6px;
}

.dashboard-finance-summary section span {
  color: var(--app-muted);
  font-size: 13px;
}

.dashboard-finance-summary section b {
  color: var(--app-text);
  font-size: 15px;
  font-weight: 500;
}

.dashboard-finance-summary section:first-child b {
  color: #159650;
}

.dashboard-health-summary ul {
  gap: 12px;
}

.dashboard-health-summary li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  color: var(--app-muted);
  font-size: 13px;
}

.dashboard-health-summary .dashboard-card-icon {
  width: 14px;
  height: 14px;
  color: #159650;
}

.dashboard-health-summary li strong {
  color: #159650;
  font-weight: 500;
}

.dashboard-operations-list {
  padding: 11px 0 0;
}

.dashboard-operations-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 110px;
  align-items: center;
  gap: 16px;
  min-height: 34px;
  font-size: 13px;
}

.dashboard-operations-list strong {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-operations-list time,
.dashboard-operations-list span {
  color: var(--app-muted);
}

.dashboard-operations-list span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.dashboard-risk-list {
  padding-top: 11px;
}

.dashboard-risk-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  font-size: 13px;
}

.dashboard-resource-list {
  padding-top: 6px;
}

.dashboard-resource-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 32px;
  font-size: 13px;
}

.dashboard-resource-list span {
  color: var(--app-muted);
}

.dashboard-resource-list strong {
  font-weight: 500;
}

@media (max-width: 1260px) {
  .dashboard-card-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }

  .dashboard-card.wide {
    grid-column: span 2;
  }
}

@media (max-width: 770px) {
  .phase-page-content {
    padding: 20px;
  }

  .dashboard-hero {
    flex-direction: column;
  }

  .dashboard-customize-button {
    width: 100%;
    justify-content: center;
  }

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

  .dashboard-card,
  .dashboard-card.wide {
    grid-column: span 1;
  }

  .dashboard-goals-overview,
  .dashboard-health-summary {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: left;
  }

  .dashboard-goals-overview ul,
  .dashboard-health-summary ul {
    width: 100%;
  }

  .dashboard-operations-list li,
  .dashboard-risk-list li {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 6px;
    padding: 8px 0;
  }

  .dashboard-finance-summary div {
    grid-template-columns: 1fr;
  }

  .decision-dashboard,
  .next-move-metrics,
  .state-metric-list,
  .resource-summary-grid,
  .health-history-list article,
  .resource-row {
    grid-template-columns: 1fr;
  }

  .health-current-state {
    align-items: flex-start;
    flex-direction: column;
  }

  .resource-primary-action {
    justify-content: stretch;
  }

  .resource-primary-action .button {
    width: 100%;
  }
}

.planning-workspace {
  width: min(1180px, 100%);
  margin-top: 24px;
}

.planning-dashboard {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1.1px solid var(--line);
  border-left: 1.1px solid var(--line);
  margin-bottom: 24px;
}

.planning-metric {
  min-height: 96px;
  display: grid;
  align-content: space-between;
  padding: 11px 13px 14px;
  border-right: 1.1px solid var(--line);
  border-bottom: 1.1px solid var(--line);
  transition: background 180ms ease;
}

.planning-metric:hover,
.planning-focus-panel:hover {
  background: rgba(49, 64, 82, 0.06);
}

:root[data-theme="dark"] .planning-metric:hover,
:root[data-theme="dark"] .planning-focus-panel:hover {
  background: rgba(242, 241, 220, 0.06);
}

.planning-metric span {
  color: var(--muted);
}

.planning-metric strong {
  font-size: 26px;
  font-weight: 400;
}

.planning-focus-panel {
  grid-column: span 3;
  min-width: 0;
  border-right: 1.1px solid var(--line);
  border-bottom: 1.1px solid var(--line);
  transition: background 180ms ease;
}

.planning-focus-panel header {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 10px 13px 12px;
  border-bottom: 1.1px solid var(--line);
}

.planning-focus-panel h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
}

.planning-mini-list {
  display: grid;
}

.planning-mini-list a,
.planning-mini-list p {
  min-height: 58px;
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 9px 13px 12px;
  border-bottom: 1.1px solid var(--line);
}

.planning-mini-list a:last-child,
.planning-mini-list p:last-child {
  border-bottom: 0;
}

.planning-mini-list span,
.planning-mini-list small,
.planning-mini-list p {
  color: var(--muted);
}

.planning-mini-list strong {
  font-size: 16px;
  font-weight: 400;
}

.planning-category-bars {
  display: grid;
  gap: 10px;
  padding: 12px 13px 15px;
}

.planning-category-bars div {
  display: grid;
  grid-template-columns: minmax(110px, 0.5fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.planning-category-bars span,
.planning-category-bars p {
  color: var(--muted);
}

.planning-category-bars i {
  height: 7px;
  display: block;
  background: rgba(49, 64, 82, 0.12);
}

.planning-category-bars b {
  height: 100%;
  display: block;
  background: var(--line);
}

:root[data-theme="dark"] .planning-category-bars i {
  background: rgba(242, 241, 220, 0.12);
}

.planning-category-bars strong {
  font-size: 15px;
  font-weight: 400;
}

.planning-timeline {
  border-top: 1.1px solid var(--line);
  border-left: 1.1px solid var(--line);
}

.planning-timeline header,
.planning-panel header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px 13px;
  border-right: 1.1px solid var(--line);
  border-bottom: 1.1px solid var(--line);
}

.planning-timeline h2,
.planning-panel h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
}

.planning-timeline header span,
.planning-panel header span {
  color: var(--muted);
}

.planning-unit-switch {
  display: flex;
  border: 1.1px solid var(--line);
}

.planning-type-switch {
  margin-left: auto;
}

.planning-unit-switch button,
.planning-panel header button,
.planning-row-actions button {
  min-height: 32px;
  padding: 3px 10px 7px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-right: 1.1px solid var(--line);
  cursor: pointer;
}

.planning-unit-switch button:last-child,
.planning-row-actions button:last-child {
  border-right: 0;
}

.planning-unit-switch button:hover,
.planning-unit-switch button.active,
.planning-panel header button:hover,
.planning-row-actions button:hover {
  background: rgba(49, 64, 82, 0.1);
}

:root[data-theme="dark"] .planning-unit-switch button:hover,
:root[data-theme="dark"] .planning-unit-switch button.active,
:root[data-theme="dark"] .planning-panel header button:hover,
:root[data-theme="dark"] .planning-row-actions button:hover {
  background: rgba(242, 241, 220, 0.1);
}

.planning-timeline-plot {
  position: relative;
  height: 330px;
  border-right: 1.1px solid var(--line);
  border-bottom: 1.1px solid var(--line);
  overflow: hidden;
}

.planning-timeline-grid {
  position: absolute;
  inset: 30px 30px 36px 48px;
  background-image:
    linear-gradient(to right, rgba(49, 64, 82, 0.16) 1px, transparent 1px),
    linear-gradient(to top, rgba(49, 64, 82, 0.16) 1px, transparent 1px);
  background-size: 20% 100%, 100% 20%;
  border-left: 1.1px solid var(--line);
  border-bottom: 1.1px solid var(--line);
}

:root[data-theme="dark"] .planning-timeline-grid {
  background-image:
    linear-gradient(to right, rgba(242, 241, 220, 0.14) 1px, transparent 1px),
    linear-gradient(to top, rgba(242, 241, 220, 0.14) 1px, transparent 1px);
}

.planning-axis-label {
  position: absolute;
  color: var(--muted);
  font-size: 13px;
}

.planning-axis-label.y {
  top: 18px;
  left: 14px;
}

.planning-axis-label.x {
  right: 18px;
  bottom: 12px;
}

.planning-goal-dot {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  transform: translate(-50%, 50%);
}

.planning-goal-dot span {
  width: 11px;
  height: 11px;
  display: block;
  background: var(--line);
  border: 1.1px solid var(--background);
  border-radius: 999px;
  transition: transform 180ms ease, background 180ms ease;
}

.planning-goal-dot:hover span {
  transform: scale(1.45);
}

.planning-goal-span {
  position: absolute;
  z-index: 1;
  height: 1.1px;
  display: block;
  background: var(--line);
  opacity: 0.45;
  transform: translateY(50%);
}

.planning-action-dot span {
  width: 10px;
  height: 10px;
  background: var(--background);
  border: 2px solid var(--line);
  border-radius: 0;
  transform: rotate(45deg);
}

.planning-action-dot:hover span {
  transform: rotate(45deg) scale(1.35);
}

.planning-action-dot.done {
  opacity: 0.45;
}

.planning-marker-dot span {
  width: 12px;
  height: 12px;
  background: transparent;
  border: 2px solid var(--line);
  border-radius: 999px;
}

.planning-marker-dot.marker-deadline span {
  border-radius: 0;
}

.planning-marker-dot.marker-event span,
.planning-marker-dot.marker-potential_event span {
  width: 14px;
  height: 8px;
  border-radius: 999px;
}

.planning-timeline-legend {
  position: absolute;
  left: 54px;
  bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.planning-timeline-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.planning-timeline-legend i {
  width: 10px;
  height: 10px;
  display: inline-block;
}

.planning-timeline-legend .goal-marker {
  background: var(--line);
  border-radius: 999px;
}

.planning-timeline-legend .action-marker {
  border: 2px solid var(--line);
  transform: rotate(45deg);
}

.planning-timeline-legend .item-marker {
  border: 2px solid var(--line);
  border-radius: 999px;
}

.planning-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  margin-top: 24px;
  border-top: 1.1px solid var(--line);
  border-left: 1.1px solid var(--line);
}

.planning-marker-layout {
  margin-top: 24px;
}

.planning-panel {
  min-width: 0;
  border-right: 1.1px solid var(--line);
  border-bottom: 1.1px solid var(--line);
}

.planning-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  padding: 14px;
}

.planning-form label {
  display: grid;
  gap: 6px;
}

.planning-form label > span {
  color: var(--muted);
}

.planning-form input,
.planning-form select,
.planning-form textarea {
  width: 100%;
  min-height: 36px;
  padding: 6px 8px 9px;
  color: var(--text);
  background: transparent;
  border: 1.1px solid var(--line);
  border-radius: 0;
  outline: none;
}

.planning-form textarea {
  resize: vertical;
}

.planning-form input:hover,
.planning-form select:hover,
.planning-form textarea:hover,
.planning-form input:focus,
.planning-form select:focus,
.planning-form textarea:focus {
  background: rgba(49, 64, 82, 0.08);
}

:root[data-theme="dark"] .planning-form input:hover,
:root[data-theme="dark"] .planning-form select:hover,
:root[data-theme="dark"] .planning-form textarea:hover,
:root[data-theme="dark"] .planning-form input:focus,
:root[data-theme="dark"] .planning-form select:focus,
:root[data-theme="dark"] .planning-form textarea:focus {
  background: rgba(242, 241, 220, 0.08);
}

.planning-form-wide,
.planning-checkbox,
.planning-form-actions {
  grid-column: 1 / -1;
}

.planning-checkbox {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
}

.planning-checkbox input {
  width: auto;
  min-height: auto;
}

.planning-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.planning-goal-list,
.goal-action-list {
  display: grid;
}

.planning-goal-row,
.goal-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 12px 14px 15px;
  border-bottom: 1.1px solid var(--line);
  transition: background 180ms ease;
}

.planning-goal-row:hover,
.goal-action-row:hover {
  background: rgba(49, 64, 82, 0.06);
}

:root[data-theme="dark"] .planning-goal-row:hover,
:root[data-theme="dark"] .goal-action-row:hover {
  background: rgba(242, 241, 220, 0.06);
}

.planning-goal-row a,
.goal-action-row strong {
  font-size: 18px;
  font-weight: 400;
}

.planning-goal-row p,
.goal-action-row p,
.planning-empty {
  margin: 5px 0 0;
  color: var(--muted);
}

.planning-goal-row small,
.goal-action-row small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.planning-row-actions {
  display: flex;
  align-items: start;
  border: 1.1px solid var(--line);
}

.planning-empty {
  padding: 14px;
}

.goal-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1.1px solid var(--line);
}

.planning-back-link {
  display: inline-flex;
  margin-bottom: 13px;
  color: var(--muted);
}

.goal-detail-hero h2 {
  margin: 0;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.05;
}

.goal-detail-hero p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.goal-detail-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1.1px solid var(--line);
  border-left: 1.1px solid var(--line);
}

.goal-detail-stats div {
  min-height: 82px;
  display: grid;
  align-content: space-between;
  padding: 10px 12px 13px;
  border-right: 1.1px solid var(--line);
  border-bottom: 1.1px solid var(--line);
}

.goal-detail-stats span {
  color: var(--muted);
}

.goal-detail-stats strong {
  font-size: 20px;
  font-weight: 400;
}

.goal-action-panel {
  margin-top: 24px;
  border-top: 1.1px solid var(--line);
  border-left: 1.1px solid var(--line);
}

.goal-action-row.done strong {
  color: var(--muted);
  text-decoration: line-through;
}

.knowledge-workspace {
  width: min(1180px, 100%);
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.knowledge-command-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.knowledge-dashboard {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1.1px solid var(--line);
  border-left: 1.1px solid var(--line);
}

.knowledge-dashboard article {
  min-height: 112px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 11px 13px 14px;
  border-right: 1.1px solid var(--line);
  border-bottom: 1.1px solid var(--line);
  transition: background 180ms ease;
}

.knowledge-dashboard article:hover,
.knowledge-panel:hover,
.knowledge-detail-panel:hover,
.knowledge-graph-panel:hover {
  background: rgba(49, 64, 82, 0.055);
}

:root[data-theme="dark"] .knowledge-dashboard article:hover,
:root[data-theme="dark"] .knowledge-panel:hover,
:root[data-theme="dark"] .knowledge-detail-panel:hover,
:root[data-theme="dark"] .knowledge-graph-panel:hover {
  background: rgba(242, 241, 220, 0.055);
}

.knowledge-dashboard span,
.knowledge-dashboard p,
.knowledge-panel header span,
.knowledge-panel header a,
.knowledge-graph-panel header span,
.knowledge-graph-panel header small,
.knowledge-detail-panel header span {
  color: var(--muted);
}

.knowledge-dashboard strong {
  font-size: 28px;
  font-weight: 400;
}

.knowledge-dashboard p {
  margin: 0;
}

.knowledge-map-layout,
.knowledge-secondary-layout,
.knowledge-entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: 24px;
  align-items: start;
}

.knowledge-secondary-layout,
.knowledge-entry-layout {
  grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.25fr);
}

.knowledge-graph-panel,
.knowledge-detail-panel,
.knowledge-panel {
  min-width: 0;
  border-top: 1.1px solid var(--line);
  border-left: 1.1px solid var(--line);
  transition: background 180ms ease;
}

.knowledge-graph-panel header,
.knowledge-detail-panel header,
.knowledge-panel header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 14px;
  border-right: 1.1px solid var(--line);
  border-bottom: 1.1px solid var(--line);
}

.knowledge-graph-panel h2,
.knowledge-detail-panel h2,
.knowledge-panel h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
}

.knowledge-graph-svg {
  width: 100%;
  height: 520px;
  display: block;
  border-right: 1.1px solid var(--line);
  border-bottom: 1.1px solid var(--line);
  background-image:
    linear-gradient(to right, rgba(49, 64, 82, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(49, 64, 82, 0.09) 1px, transparent 1px);
  background-size: 42px 42px;
}

:root[data-theme="dark"] .knowledge-graph-svg {
  background-image:
    linear-gradient(to right, rgba(242, 241, 220, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(242, 241, 220, 0.08) 1px, transparent 1px);
}

.knowledge-graph-links line {
  stroke: var(--line);
  stroke-width: 1.1;
  stroke-opacity: 0.34;
  vector-effect: non-scaling-stroke;
}

.knowledge-graph-links .relationship-parent_of {
  stroke-width: 1.8;
  stroke-opacity: 0.62;
}

.knowledge-map-node {
  color: var(--text);
  cursor: pointer;
  outline: none;
}

.knowledge-map-node circle {
  fill: var(--background);
  stroke: var(--line);
  stroke-width: 2;
  transition: fill 180ms ease, r 180ms ease, stroke-width 180ms ease;
  vector-effect: non-scaling-stroke;
}

.knowledge-map-node text {
  fill: var(--text);
  font-size: 15px;
  paint-order: stroke;
  stroke: var(--background);
  stroke-width: 4px;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.knowledge-map-node.selected circle,
.knowledge-map-node:focus circle,
.knowledge-map-node:hover circle {
  fill: var(--line);
  stroke-width: 2.4;
}

.knowledge-map-node.selected text,
.knowledge-map-node:focus text,
.knowledge-map-node:hover text {
  fill: var(--text);
  font-size: 17px;
}

:root[data-theme="dark"] .knowledge-map-node.selected text,
:root[data-theme="dark"] .knowledge-map-node:focus text,
:root[data-theme="dark"] .knowledge-map-node:hover text {
  fill: var(--background);
  stroke: var(--line);
}

.knowledge-detail-body {
  display: grid;
  gap: 14px;
  padding: 13px 14px 16px;
  border-right: 1.1px solid var(--line);
  border-bottom: 1.1px solid var(--line);
}

.knowledge-detail-meta,
.knowledge-reference-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.knowledge-detail-meta span,
.knowledge-reference-list button {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px 6px;
  color: var(--text);
  background: transparent;
  border: 1.1px solid var(--line);
}

.knowledge-reference-list button {
  cursor: default;
}

.knowledge-detail-body p,
.knowledge-detail-tasks p,
.knowledge-task-panel p,
.knowledge-empty-panel {
  margin: 0;
  color: var(--muted);
}

.knowledge-detail-body dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1.1px solid var(--line);
  border-left: 1.1px solid var(--line);
}

.knowledge-detail-body dl div {
  min-height: 62px;
  padding: 8px 9px 11px;
  border-right: 1.1px solid var(--line);
  border-bottom: 1.1px solid var(--line);
}

.knowledge-detail-body dt,
.knowledge-detail-body dd {
  margin: 0;
}

.knowledge-detail-body dt,
.knowledge-detail-tasks span {
  color: var(--muted);
}

.knowledge-detail-body dd {
  margin-top: 5px;
  font-size: 16px;
}

.knowledge-detail-tasks {
  display: grid;
  gap: 8px;
}

.knowledge-detail-tasks h3,
.knowledge-task-columns h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
}

.knowledge-detail-tasks a {
  display: grid;
  gap: 3px;
  padding: 8px 0 10px;
  border-top: 1.1px solid var(--line);
}

.knowledge-empty-panel {
  padding: 14px;
  border-right: 1.1px solid var(--line);
  border-bottom: 1.1px solid var(--line);
}

.knowledge-tree {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-right: 1.1px solid var(--line);
  border-bottom: 1.1px solid var(--line);
}

.knowledge-tree ul {
  margin: 0;
  padding: 0 0 0 18px;
  list-style: none;
}

.knowledge-tree button {
  width: 100%;
  min-height: 46px;
  display: grid;
  justify-items: start;
  gap: 3px;
  padding: 8px 10px 10px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1.1px solid var(--line);
  cursor: pointer;
  text-align: left;
}

.knowledge-tree button:hover,
.knowledge-tree button.active {
  background: rgba(49, 64, 82, 0.1);
}

:root[data-theme="dark"] .knowledge-tree button:hover,
:root[data-theme="dark"] .knowledge-tree button.active {
  background: rgba(242, 241, 220, 0.1);
}

.knowledge-tree small,
.knowledge-task-row small {
  color: var(--muted);
}

.knowledge-task-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-right: 1.1px solid var(--line);
  border-bottom: 1.1px solid var(--line);
}

.knowledge-task-columns > div {
  min-width: 0;
  padding: 12px;
  border-right: 1.1px solid var(--line);
}

.knowledge-task-columns > div:last-child {
  border-right: 0;
}

.knowledge-task-row {
  display: grid;
  gap: 4px;
  padding: 9px 0 11px;
  border-top: 1.1px solid var(--line);
}

.knowledge-task-row strong {
  font-size: 16px;
  font-weight: 400;
}

.knowledge-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  padding: 14px;
  border-right: 1.1px solid var(--line);
  border-bottom: 1.1px solid var(--line);
}

.knowledge-action-form {
  border-top: 1.1px solid var(--line);
}

.knowledge-form label {
  display: grid;
  gap: 6px;
}

.knowledge-form label > span {
  color: var(--muted);
}

.knowledge-form input,
.knowledge-form select,
.knowledge-form textarea {
  width: 100%;
  min-height: 36px;
  padding: 6px 8px 9px;
  color: var(--text);
  background: transparent;
  border: 1.1px solid var(--line);
  border-radius: 0;
  outline: none;
}

.knowledge-form textarea {
  resize: vertical;
}

.knowledge-form input:hover,
.knowledge-form select:hover,
.knowledge-form textarea:hover,
.knowledge-form input:focus,
.knowledge-form select:focus,
.knowledge-form textarea:focus {
  background: rgba(49, 64, 82, 0.08);
}

:root[data-theme="dark"] .knowledge-form input:hover,
:root[data-theme="dark"] .knowledge-form select:hover,
:root[data-theme="dark"] .knowledge-form textarea:hover,
:root[data-theme="dark"] .knowledge-form input:focus,
:root[data-theme="dark"] .knowledge-form select:focus,
:root[data-theme="dark"] .knowledge-form textarea:focus {
  background: rgba(242, 241, 220, 0.08);
}

.knowledge-form-wide,
.knowledge-form-actions {
  grid-column: 1 / -1;
}

.knowledge-form-actions {
  display: flex;
  justify-content: flex-end;
}

.knowledge-workspace {
  --knowledge-text: #111827;
  --knowledge-muted: #667085;
  --knowledge-subtle: #8b95a7;
  --knowledge-line: #dfe5ef;
  --knowledge-soft-line: #eef1f6;
  --knowledge-panel: #ffffff;
  --knowledge-primary: #5a55d6;
  --knowledge-primary-hover: #4944c9;
  --knowledge-primary-soft: #eeecff;
  --knowledge-blue: #4f87f7;
  --knowledge-blue-soft: #edf4ff;
  --knowledge-green: #2e9d62;
  --knowledge-green-soft: #eaf8ef;
  --knowledge-orange: #f49b35;
  --knowledge-orange-soft: #fff3df;
  --knowledge-red: #ee5757;
  --knowledge-red-soft: #fff0f0;
  --knowledge-shadow: 0 12px 30px rgba(17, 24, 39, 0.055);
  width: min(1500px, 100%);
  display: grid;
  gap: 22px;
  margin: 0 auto;
  padding: 24px clamp(14px, 2vw, 28px) 48px;
  color: var(--knowledge-text);
  background: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.knowledge-workspace * {
  letter-spacing: 0;
}

.knowledge-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.knowledge-icon svg {
  width: 100%;
  height: 100%;
}

.knowledge-command-row {
  width: fit-content;
  max-width: 100%;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  padding: 3px;
  background: #f7f8fb;
  border: 1px solid var(--knowledge-line);
  border-radius: 7px;
}

.knowledge-command-row .button {
  min-width: max-content;
  min-height: 36px;
  padding: 0 16px;
  color: #344054;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.knowledge-command-row .button:first-child {
  color: var(--knowledge-primary);
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.08);
}

.knowledge-command-row .button:hover {
  color: var(--knowledge-primary);
  background: #ffffff;
}

.knowledge-dashboard {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 16px;
  border: 0;
}

.knowledge-dashboard article,
.knowledge-card,
.knowledge-new-card,
.knowledge-graph-panel,
.knowledge-detail-panel,
.knowledge-panel {
  min-width: 0;
  background: var(--knowledge-panel);
  border: 1px solid var(--knowledge-line);
  border-radius: 8px;
  box-shadow: var(--knowledge-shadow);
}

.knowledge-dashboard article {
  min-height: 130px;
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border-right: 1px solid var(--knowledge-line);
  border-bottom: 1px solid var(--knowledge-line);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.knowledge-dashboard article:hover,
.knowledge-card:hover,
.knowledge-new-card:hover,
.knowledge-panel:hover,
.knowledge-detail-panel:hover,
.knowledge-graph-panel:hover {
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.075);
}

.knowledge-dashboard article > .knowledge-icon {
  width: 42px;
  height: 42px;
  padding: 10px;
  color: var(--knowledge-primary);
  background: var(--knowledge-primary-soft);
  border-radius: 8px;
}

.knowledge-dashboard article.question > .knowledge-icon {
  color: var(--knowledge-blue);
  background: var(--knowledge-blue-soft);
}

.knowledge-dashboard article.reference > .knowledge-icon {
  color: var(--knowledge-green);
  background: var(--knowledge-green-soft);
}

.knowledge-dashboard article.book > .knowledge-icon {
  color: var(--knowledge-orange);
  background: var(--knowledge-orange-soft);
}

.knowledge-dashboard article.note > .knowledge-icon {
  color: var(--knowledge-primary);
  background: #f1efff;
}

.knowledge-dashboard span,
.knowledge-dashboard p,
.knowledge-card-strip > header span,
.knowledge-panel header span,
.knowledge-graph-panel header span,
.knowledge-graph-panel header small,
.knowledge-detail-panel header span {
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.knowledge-dashboard strong {
  color: var(--knowledge-text);
  font-size: 28px;
  font-weight: 850;
  line-height: 1;
}

.knowledge-dashboard p {
  margin: 0;
  color: var(--knowledge-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.knowledge-card-strip {
  display: grid;
  gap: 12px;
}

.knowledge-card-strip > header span,
.knowledge-panel header span,
.knowledge-graph-panel header span,
.knowledge-detail-panel header span {
  color: #3f3b8f;
  text-transform: uppercase;
}

.knowledge-card-strip > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 18px;
}

.knowledge-card,
.knowledge-new-card {
  min-height: 210px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  color: var(--knowledge-text);
  text-align: left;
}

.knowledge-card {
  cursor: pointer;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.knowledge-card.selected,
.knowledge-card:focus {
  border-color: #bebaff;
  box-shadow: 0 0 0 3px rgba(90, 85, 214, 0.14), var(--knowledge-shadow);
}

.knowledge-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.knowledge-card strong {
  color: var(--knowledge-text);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.35;
}

.knowledge-card p {
  margin: 0;
  color: var(--knowledge-text);
  font-size: 13px;
  line-height: 1.5;
}

.knowledge-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.knowledge-card-tags span,
.knowledge-table-tags {
  width: fit-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  color: var(--knowledge-primary);
  background: var(--knowledge-primary-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.knowledge-card.reference .knowledge-card-tags span {
  color: var(--knowledge-green);
  background: var(--knowledge-green-soft);
}

.knowledge-card.question .knowledge-card-tags span {
  color: var(--knowledge-blue);
  background: var(--knowledge-blue-soft);
}

.knowledge-card.book .knowledge-card-tags span {
  color: #c06a12;
  background: var(--knowledge-orange-soft);
}

.knowledge-card footer {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px -16px -16px;
  padding: 0 16px;
  color: var(--knowledge-muted);
  border-top: 1px solid var(--knowledge-soft-line);
  font-size: 12px;
  font-weight: 700;
}

.knowledge-card footer .knowledge-icon {
  width: 17px;
  height: 17px;
}

.knowledge-new-card {
  justify-items: center;
  align-content: center;
  color: var(--knowledge-primary);
  background: #ffffff;
  border: 1px dashed #bfc5d6;
  cursor: pointer;
  text-align: center;
}

.knowledge-new-card .knowledge-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 4px;
}

.knowledge-new-card strong {
  color: var(--knowledge-primary);
  font-size: 11px;
  font-weight: 850;
}

.knowledge-new-card span {
  max-width: 160px;
  color: var(--knowledge-muted);
  font-size: 13px;
  line-height: 1.45;
}

.knowledge-type-badge {
  width: fit-content;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  color: var(--knowledge-primary);
  background: var(--knowledge-primary-soft);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.knowledge-type-badge .knowledge-icon {
  width: 15px;
  height: 15px;
}

.knowledge-type-badge.question {
  color: var(--knowledge-blue);
  background: var(--knowledge-blue-soft);
}

.knowledge-type-badge.reference {
  color: var(--knowledge-green);
  background: var(--knowledge-green-soft);
}

.knowledge-type-badge.book {
  color: #c06a12;
  background: var(--knowledge-orange-soft);
}

.knowledge-type-badge.note {
  color: var(--knowledge-primary);
  background: #f1efff;
}

.knowledge-insight-layout,
.knowledge-table-layout,
.knowledge-secondary-layout,
.knowledge-entry-layout {
  display: grid;
  gap: 22px;
  align-items: start;
}

.knowledge-insight-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.9fr);
}

.knowledge-table-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
}

.knowledge-secondary-layout,
.knowledge-entry-layout {
  grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.25fr);
}

.knowledge-insight-stack {
  display: grid;
  gap: 22px;
}

.knowledge-graph-panel,
.knowledge-detail-panel,
.knowledge-panel {
  border-top: 1px solid var(--knowledge-line);
  border-left: 1px solid var(--knowledge-line);
  overflow: hidden;
}

.knowledge-graph-panel header,
.knowledge-detail-panel header,
.knowledge-panel header {
  min-height: 58px;
  padding: 16px 18px;
  background: #ffffff;
  border-right: 0;
  border-bottom: 1px solid var(--knowledge-soft-line);
}

.knowledge-graph-panel h2,
.knowledge-detail-panel h2,
.knowledge-panel h2 {
  margin: 3px 0 0;
  color: var(--knowledge-text);
  font-size: 16px;
  font-weight: 850;
}

.knowledge-graph-panel header small {
  color: var(--knowledge-muted);
  text-transform: none;
}

.knowledge-graph-svg {
  width: 100%;
  height: 356px;
  display: block;
  border-right: 0;
  border-bottom: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(90, 85, 214, 0.07), transparent 42%),
    linear-gradient(to right, rgba(90, 85, 214, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(90, 85, 214, 0.07) 1px, transparent 1px),
    #ffffff;
  background-size: auto, 42px 42px, 42px 42px, auto;
}

.knowledge-graph-links line {
  stroke: #bec5d6;
  stroke-width: 1.2;
  stroke-opacity: 0.74;
}

.knowledge-graph-links .relationship-parent_of {
  stroke: var(--knowledge-primary);
  stroke-width: 1.9;
  stroke-opacity: 0.58;
}

.knowledge-map-node circle {
  fill: #ffffff;
  stroke: #c7cee0;
  stroke-width: 2;
}

.knowledge-map-node text {
  fill: #24304a;
  font-size: 14px;
  font-weight: 800;
  stroke: #ffffff;
  stroke-width: 5px;
}

.knowledge-map-node.selected circle,
.knowledge-map-node:focus circle,
.knowledge-map-node:hover circle {
  fill: var(--knowledge-primary);
  stroke: var(--knowledge-primary);
}

.knowledge-map-node.selected text,
.knowledge-map-node:focus text,
.knowledge-map-node:hover text {
  fill: var(--knowledge-primary);
  font-size: 16px;
}

.knowledge-recent-list {
  display: grid;
}

.knowledge-recent-list button {
  min-height: 58px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  color: var(--knowledge-text);
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--knowledge-soft-line);
  cursor: pointer;
  text-align: left;
}

.knowledge-recent-list button:hover {
  background: #fafbff;
}

.knowledge-recent-list button > .knowledge-icon {
  width: 32px;
  height: 32px;
  padding: 8px;
  color: var(--knowledge-primary);
  background: var(--knowledge-primary-soft);
  border-radius: 7px;
}

.knowledge-recent-list button span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.knowledge-recent-list strong,
.knowledge-task-row strong {
  overflow: hidden;
  color: var(--knowledge-text);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-recent-list small,
.knowledge-tree small,
.knowledge-task-row small {
  overflow: hidden;
  color: var(--knowledge-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.knowledge-metric-card {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--knowledge-soft-line);
  border-radius: 8px;
}

.knowledge-metric-card .knowledge-icon {
  width: 40px;
  height: 40px;
  padding: 10px;
  color: var(--knowledge-primary);
  background: var(--knowledge-primary-soft);
  border-radius: 8px;
}

.knowledge-metric-card.question .knowledge-icon {
  color: var(--knowledge-blue);
  background: var(--knowledge-blue-soft);
}

.knowledge-metric-card.reference .knowledge-icon {
  color: var(--knowledge-green);
  background: var(--knowledge-green-soft);
}

.knowledge-metric-card.book .knowledge-icon {
  color: var(--knowledge-orange);
  background: var(--knowledge-orange-soft);
}

.knowledge-metric-card strong {
  display: block;
  color: var(--knowledge-text);
  font-size: 20px;
  font-weight: 850;
}

.knowledge-metric-card span {
  color: var(--knowledge-muted);
  font-size: 12px;
  font-weight: 800;
}

.knowledge-trend-chart {
  min-height: 146px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  margin: 0 16px 16px;
  padding-top: 8px;
  background:
    linear-gradient(var(--knowledge-soft-line) 1px, transparent 1px) 0 0 / 100% 25%,
    #ffffff;
}

.knowledge-trend-chart svg {
  width: 100%;
  height: 104px;
}

.knowledge-trend-chart polyline {
  fill: none;
  stroke: var(--knowledge-primary);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.knowledge-trend-chart div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.knowledge-trend-chart span {
  overflow: hidden;
  color: var(--knowledge-muted);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-trend-chart.is-disabled {
  min-height: 146px;
  display: grid;
  place-items: center;
  background: #f8fafc;
  border: 1px dashed var(--knowledge-line);
  border-radius: 8px;
}

.knowledge-disabled-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px;
  color: var(--knowledge-subtle);
  text-align: center;
}

.knowledge-disabled-state .knowledge-icon {
  width: 38px;
  height: 38px;
  padding: 9px;
  color: #98a2b3;
  background: #edf0f5;
  border-radius: 8px;
}

.knowledge-disabled-state strong {
  color: #667085;
  font-size: 14px;
  font-weight: 850;
}

.knowledge-disabled-state span {
  max-width: 230px;
  color: #8b95a7;
  font-size: 12px;
  line-height: 1.45;
}

.knowledge-table-head,
.knowledge-table-body button {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) minmax(112px, 0.7fr) minmax(130px, 0.8fr) minmax(120px, 0.8fr) minmax(104px, 0.6fr) minmax(104px, 0.6fr);
  gap: 16px;
  align-items: center;
}

.knowledge-table-head {
  min-height: 44px;
  padding: 0 18px;
  color: var(--knowledge-muted);
  background: #f8fafc;
  border-bottom: 1px solid var(--knowledge-soft-line);
  font-size: 12px;
  font-weight: 850;
}

.knowledge-table-body {
  display: grid;
}

.knowledge-table-body button {
  min-height: 62px;
  padding: 12px 18px;
  color: var(--knowledge-text);
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--knowledge-soft-line);
  cursor: pointer;
  text-align: left;
}

.knowledge-table-body button:hover,
.knowledge-table-body button.active {
  background: #fafbff;
}

.knowledge-table-body button strong {
  overflow: hidden;
  color: var(--knowledge-text);
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-table-body button > span {
  min-width: 0;
  overflow: hidden;
  color: var(--knowledge-muted);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-detail-body {
  display: grid;
  gap: 14px;
  padding: 16px 18px 18px;
  border-right: 0;
  border-bottom: 0;
}

.knowledge-detail-meta,
.knowledge-reference-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.knowledge-detail-meta span,
.knowledge-reference-list button {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  color: var(--knowledge-primary);
  background: var(--knowledge-primary-soft);
  border: 0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.knowledge-detail-body p,
.knowledge-detail-tasks p,
.knowledge-task-panel p,
.knowledge-empty-panel {
  margin: 0;
  color: var(--knowledge-muted);
  font-size: 13px;
  line-height: 1.5;
}

.knowledge-detail-body dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  border: 0;
}

.knowledge-detail-body dl div {
  min-height: 62px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--knowledge-soft-line);
  border-radius: 7px;
}

.knowledge-detail-body dt,
.knowledge-detail-body dd {
  margin: 0;
}

.knowledge-detail-body dt,
.knowledge-detail-tasks span {
  color: var(--knowledge-muted);
  font-size: 12px;
  font-weight: 800;
}

.knowledge-detail-body dd {
  margin-top: 5px;
  color: var(--knowledge-text);
  font-size: 14px;
  font-weight: 800;
}

.knowledge-detail-tasks {
  display: grid;
  gap: 8px;
}

.knowledge-detail-tasks h3,
.knowledge-task-columns h3 {
  margin: 0;
  color: var(--knowledge-text);
  font-size: 14px;
  font-weight: 850;
}

.knowledge-detail-tasks a {
  display: grid;
  gap: 3px;
  padding: 9px 0;
  color: var(--knowledge-text);
  border-top: 1px solid var(--knowledge-soft-line);
}

.knowledge-empty-panel {
  padding: 16px 18px;
  border-right: 0;
  border-bottom: 0;
}

.knowledge-tree {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-right: 0;
  border-bottom: 0;
}

.knowledge-tree ul {
  margin: 0;
  padding: 0 0 0 18px;
  list-style: none;
}

.knowledge-tree button {
  width: 100%;
  min-height: 50px;
  display: grid;
  justify-items: start;
  gap: 3px;
  padding: 9px 18px;
  color: var(--knowledge-text);
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--knowledge-soft-line);
  border-radius: 0;
  cursor: pointer;
  text-align: left;
}

.knowledge-tree button:hover,
.knowledge-tree button.active {
  background: #fafbff;
}

.knowledge-tree button span {
  font-size: 13px;
  font-weight: 850;
}

.knowledge-task-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-right: 0;
  border-bottom: 0;
}

.knowledge-task-columns > div {
  min-width: 0;
  padding: 16px 18px;
  border-right: 1px solid var(--knowledge-soft-line);
}

.knowledge-task-columns > div:last-child {
  border-right: 0;
}

.knowledge-task-row {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid var(--knowledge-soft-line);
}

.knowledge-task-row:hover strong {
  color: var(--knowledge-primary);
}

.knowledge-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border-right: 0;
  border-bottom: 0;
}

.knowledge-action-form {
  border-top: 1px solid var(--knowledge-soft-line);
}

.knowledge-form label {
  display: grid;
  gap: 7px;
}

.knowledge-form label > span {
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.knowledge-form input,
.knowledge-form select,
.knowledge-form textarea {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  color: var(--knowledge-text);
  background: #ffffff;
  border: 1px solid #cfd6e3;
  border-radius: 6px;
  outline: none;
  font-size: 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.knowledge-form textarea {
  min-height: 92px;
  padding-top: 10px;
  resize: vertical;
}

.knowledge-form input:hover,
.knowledge-form select:hover,
.knowledge-form textarea:hover {
  background: #ffffff;
}

.knowledge-form input:focus,
.knowledge-form select:focus,
.knowledge-form textarea:focus {
  background: #ffffff;
  border-color: var(--knowledge-primary);
  box-shadow: 0 0 0 3px rgba(90, 85, 214, 0.16);
}

.knowledge-form-wide,
.knowledge-form-actions {
  grid-column: 1 / -1;
}

.knowledge-form-actions {
  display: flex;
  justify-content: flex-end;
}

.knowledge-workspace .button {
  min-height: 38px;
  padding: 0 14px;
  color: #ffffff;
  background: var(--knowledge-primary);
  border: 1px solid var(--knowledge-primary);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 850;
}

.knowledge-workspace .button:hover {
  background: var(--knowledge-primary-hover);
}

.knowledge-workspace .knowledge-command-row .button {
  color: #344054;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.knowledge-workspace .knowledge-command-row .button:first-child {
  color: var(--knowledge-primary);
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.08);
}

.knowledge-workspace .knowledge-command-row .button:hover {
  color: var(--knowledge-primary);
  background: #ffffff;
}

:root[data-theme="dark"] .knowledge-workspace {
  --knowledge-text: #f7f8fb;
  --knowledge-muted: #a9b2c0;
  --knowledge-subtle: #788393;
  --knowledge-line: rgba(169, 181, 198, 0.22);
  --knowledge-soft-line: rgba(169, 181, 198, 0.13);
  --knowledge-panel: rgba(16, 23, 31, 0.92);
  --knowledge-primary: #8b6fff;
  --knowledge-primary-hover: #9c86ff;
  --knowledge-primary-soft: rgba(139, 111, 255, 0.18);
  --knowledge-blue: #63a1ff;
  --knowledge-blue-soft: rgba(99, 161, 255, 0.16);
  --knowledge-green: #54d184;
  --knowledge-green-soft: rgba(84, 209, 132, 0.16);
  --knowledge-orange: #ffb33f;
  --knowledge-orange-soft: rgba(255, 179, 63, 0.16);
  --knowledge-red: #ff666d;
  --knowledge-red-soft: rgba(255, 102, 109, 0.16);
  --knowledge-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  background:
    radial-gradient(circle at 12% 0%, rgba(139, 111, 255, 0.14), transparent 31%),
    linear-gradient(135deg, #0a1016 0%, #071017 42%, #080d12 100%);
}

:root[data-theme="dark"] .knowledge-command-row {
  background: rgba(13, 20, 28, 0.9);
  border-color: var(--knowledge-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

:root[data-theme="dark"] .knowledge-workspace .knowledge-command-row .button {
  color: var(--knowledge-muted);
}

:root[data-theme="dark"] .knowledge-workspace .knowledge-command-row .button:first-child,
:root[data-theme="dark"] .knowledge-workspace .knowledge-command-row .button:hover {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(111, 91, 242, 0.94), rgba(80, 61, 202, 0.94));
  box-shadow: 0 8px 22px rgba(72, 54, 190, 0.36);
}

:root[data-theme="dark"] .knowledge-dashboard article,
:root[data-theme="dark"] .knowledge-card,
:root[data-theme="dark"] .knowledge-new-card,
:root[data-theme="dark"] .knowledge-graph-panel,
:root[data-theme="dark"] .knowledge-detail-panel,
:root[data-theme="dark"] .knowledge-panel {
  background:
    linear-gradient(180deg, rgba(18, 27, 36, 0.97), rgba(12, 18, 25, 0.97));
  border-color: var(--knowledge-line);
  box-shadow: var(--knowledge-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

:root[data-theme="dark"] .knowledge-dashboard article:hover,
:root[data-theme="dark"] .knowledge-card:hover,
:root[data-theme="dark"] .knowledge-new-card:hover,
:root[data-theme="dark"] .knowledge-panel:hover,
:root[data-theme="dark"] .knowledge-detail-panel:hover,
:root[data-theme="dark"] .knowledge-graph-panel:hover,
:root[data-theme="dark"] .knowledge-table-body button:hover,
:root[data-theme="dark"] .knowledge-table-body button.active,
:root[data-theme="dark"] .knowledge-tree button:hover,
:root[data-theme="dark"] .knowledge-tree button.active,
:root[data-theme="dark"] .knowledge-recent-list button:hover {
  background: rgba(22, 32, 42, 0.98);
}

:root[data-theme="dark"] .knowledge-dashboard span,
:root[data-theme="dark"] .knowledge-card-strip > header span,
:root[data-theme="dark"] .knowledge-panel header span,
:root[data-theme="dark"] .knowledge-graph-panel header span,
:root[data-theme="dark"] .knowledge-detail-panel header span,
:root[data-theme="dark"] .knowledge-form label > span {
  color: #b29dff;
}

:root[data-theme="dark"] .knowledge-dashboard p,
:root[data-theme="dark"] .knowledge-card p,
:root[data-theme="dark"] .knowledge-card footer,
:root[data-theme="dark"] .knowledge-new-card span,
:root[data-theme="dark"] .knowledge-recent-list small,
:root[data-theme="dark"] .knowledge-tree small,
:root[data-theme="dark"] .knowledge-task-row small,
:root[data-theme="dark"] .knowledge-table-body button > span,
:root[data-theme="dark"] .knowledge-detail-body p,
:root[data-theme="dark"] .knowledge-detail-tasks p,
:root[data-theme="dark"] .knowledge-task-panel p,
:root[data-theme="dark"] .knowledge-empty-panel,
:root[data-theme="dark"] .knowledge-trend-chart span,
:root[data-theme="dark"] .knowledge-graph-panel header small {
  color: var(--knowledge-muted);
}

:root[data-theme="dark"] .knowledge-dashboard strong,
:root[data-theme="dark"] .knowledge-card strong,
:root[data-theme="dark"] .knowledge-panel h2,
:root[data-theme="dark"] .knowledge-graph-panel h2,
:root[data-theme="dark"] .knowledge-detail-panel h2,
:root[data-theme="dark"] .knowledge-recent-list strong,
:root[data-theme="dark"] .knowledge-task-row strong,
:root[data-theme="dark"] .knowledge-table-body button strong,
:root[data-theme="dark"] .knowledge-detail-body dd,
:root[data-theme="dark"] .knowledge-detail-tasks h3,
:root[data-theme="dark"] .knowledge-task-columns h3,
:root[data-theme="dark"] .knowledge-metric-card strong {
  color: var(--knowledge-text);
}

:root[data-theme="dark"] .knowledge-dashboard article > .knowledge-icon,
:root[data-theme="dark"] .knowledge-card-tags span,
:root[data-theme="dark"] .knowledge-table-tags,
:root[data-theme="dark"] .knowledge-type-badge,
:root[data-theme="dark"] .knowledge-detail-meta span,
:root[data-theme="dark"] .knowledge-reference-list button {
  color: #b29dff;
  background: var(--knowledge-primary-soft);
}

:root[data-theme="dark"] .knowledge-dashboard article.question > .knowledge-icon,
:root[data-theme="dark"] .knowledge-type-badge.question,
:root[data-theme="dark"] .knowledge-card.question .knowledge-card-tags span {
  color: #8dbaff;
  background: var(--knowledge-blue-soft);
}

:root[data-theme="dark"] .knowledge-dashboard article.reference > .knowledge-icon,
:root[data-theme="dark"] .knowledge-type-badge.reference,
:root[data-theme="dark"] .knowledge-card.reference .knowledge-card-tags span {
  color: #7ee3a4;
  background: var(--knowledge-green-soft);
}

:root[data-theme="dark"] .knowledge-dashboard article.book > .knowledge-icon,
:root[data-theme="dark"] .knowledge-type-badge.book,
:root[data-theme="dark"] .knowledge-card.book .knowledge-card-tags span {
  color: #ffc96b;
  background: var(--knowledge-orange-soft);
}

:root[data-theme="dark"] .knowledge-card.selected,
:root[data-theme="dark"] .knowledge-card:focus {
  border-color: rgba(139, 111, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(139, 111, 255, 0.18), var(--knowledge-shadow);
}

:root[data-theme="dark"] .knowledge-new-card {
  border-style: dashed;
}

:root[data-theme="dark"] .knowledge-card footer,
:root[data-theme="dark"] .knowledge-graph-panel header,
:root[data-theme="dark"] .knowledge-detail-panel header,
:root[data-theme="dark"] .knowledge-panel header,
:root[data-theme="dark"] .knowledge-recent-list button,
:root[data-theme="dark"] .knowledge-table-head,
:root[data-theme="dark"] .knowledge-table-body button,
:root[data-theme="dark"] .knowledge-detail-body dl div,
:root[data-theme="dark"] .knowledge-tree button,
:root[data-theme="dark"] .knowledge-task-columns > div,
:root[data-theme="dark"] .knowledge-task-row,
:root[data-theme="dark"] .knowledge-action-form {
  background: rgba(10, 16, 23, 0.72);
  border-color: var(--knowledge-soft-line);
}

:root[data-theme="dark"] .knowledge-graph-svg {
  background:
    radial-gradient(circle at 50% 50%, rgba(139, 111, 255, 0.14), transparent 42%),
    linear-gradient(to right, rgba(139, 111, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(139, 111, 255, 0.08) 1px, transparent 1px),
    rgba(8, 13, 18, 0.42);
  background-size: auto, 42px 42px, 42px 42px, auto;
}

:root[data-theme="dark"] .knowledge-graph-links line {
  stroke: rgba(169, 181, 198, 0.52);
}

:root[data-theme="dark"] .knowledge-graph-links .relationship-parent_of {
  stroke: #8b6fff;
  stroke-opacity: 0.75;
}

:root[data-theme="dark"] .knowledge-map-node circle {
  fill: #101821;
  stroke: rgba(169, 181, 198, 0.5);
}

:root[data-theme="dark"] .knowledge-map-node text {
  fill: #dfe5f2;
  stroke: #080d12;
}

:root[data-theme="dark"] .knowledge-map-node.selected circle,
:root[data-theme="dark"] .knowledge-map-node:focus circle,
:root[data-theme="dark"] .knowledge-map-node:hover circle {
  fill: #6f55f2;
  stroke: #9c86ff;
}

:root[data-theme="dark"] .knowledge-map-node.selected text,
:root[data-theme="dark"] .knowledge-map-node:focus text,
:root[data-theme="dark"] .knowledge-map-node:hover text {
  fill: #ffffff;
  stroke: #151035;
}

:root[data-theme="dark"] .knowledge-metric-card {
  background: rgba(10, 16, 23, 0.72);
  border-color: var(--knowledge-soft-line);
}

:root[data-theme="dark"] .knowledge-metric-card .knowledge-icon,
:root[data-theme="dark"] .knowledge-recent-list button > .knowledge-icon,
:root[data-theme="dark"] .knowledge-disabled-state .knowledge-icon {
  color: #b29dff;
  background: var(--knowledge-primary-soft);
}

:root[data-theme="dark"] .knowledge-trend-chart {
  background:
    linear-gradient(var(--knowledge-soft-line) 1px, transparent 1px) 0 0 / 100% 25%,
    transparent;
}

:root[data-theme="dark"] .knowledge-trend-chart polyline {
  stroke: #8b6fff;
  filter: drop-shadow(0 0 12px rgba(139, 111, 255, 0.45));
}

:root[data-theme="dark"] .knowledge-trend-chart.is-disabled {
  background: rgba(11, 17, 24, 0.78);
  border-color: var(--knowledge-line);
}

:root[data-theme="dark"] .knowledge-disabled-state strong {
  color: #d9deea;
}

:root[data-theme="dark"] .knowledge-disabled-state span {
  color: var(--knowledge-muted);
}

:root[data-theme="dark"] .knowledge-form input,
:root[data-theme="dark"] .knowledge-form select,
:root[data-theme="dark"] .knowledge-form textarea {
  color: var(--knowledge-text);
  background: rgba(9, 15, 22, 0.9);
  border-color: var(--knowledge-line);
}

:root[data-theme="dark"] .knowledge-form input::placeholder,
:root[data-theme="dark"] .knowledge-form textarea::placeholder {
  color: #748091;
}

:root[data-theme="dark"] .knowledge-form input:hover,
:root[data-theme="dark"] .knowledge-form select:hover,
:root[data-theme="dark"] .knowledge-form textarea:hover,
:root[data-theme="dark"] .knowledge-form input:focus,
:root[data-theme="dark"] .knowledge-form select:focus,
:root[data-theme="dark"] .knowledge-form textarea:focus {
  background: rgba(9, 15, 22, 0.96);
  border-color: var(--knowledge-primary);
  box-shadow: 0 0 0 3px rgba(139, 111, 255, 0.2);
}

:root[data-theme="dark"] .knowledge-workspace .button {
  color: #ffffff;
  background: linear-gradient(180deg, #765dff, #5942d7);
  border-color: #765dff;
}

:root[data-theme="dark"] .knowledge-workspace .button:hover {
  background: linear-gradient(180deg, #8a76ff, #6550e5);
}

.finance-workspace {
  width: min(1180px, 100%);
  margin-top: 24px;
}

.finance-view-tabs {
  display: flex;
  flex-wrap: wrap;
  border-top: 1.1px solid var(--line);
  border-left: 1.1px solid var(--line);
}

.finance-view-tab {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 4px 12px 8px;
  border-right: 1.1px solid var(--line);
  border-bottom: 1.1px solid var(--line);
  color: var(--text);
  background: transparent;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.finance-view-tab:hover,
.finance-view-tab.active {
  background: rgba(49, 64, 82, 0.12);
}

:root[data-theme="dark"] .finance-view-tab:hover,
:root[data-theme="dark"] .finance-view-tab.active {
  background: rgba(242, 241, 220, 0.12);
}

.finance-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  margin-top: 24px;
  border-top: 1.1px solid var(--line);
  border-left: 1.1px solid var(--line);
}

.finance-cfo-panel {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 16px 18px;
  border-right: 1.1px solid var(--line);
  border-bottom: 1.1px solid var(--line);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.finance-cfo-panel:hover {
  background: rgba(49, 64, 82, 0.06);
}

:root[data-theme="dark"] .finance-cfo-panel:hover {
  background: rgba(242, 241, 220, 0.06);
}

.finance-cfo-panel > span,
.finance-entry-form header span,
.finance-ledger header span {
  color: var(--muted);
}

.finance-cfo-panel > strong {
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 400;
  line-height: 1;
}

.finance-graph {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.finance-graph-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) minmax(94px, auto);
  align-items: center;
  gap: 10px;
}

.finance-graph-row span,
.finance-graph-row b {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.finance-graph-row div {
  height: 22px;
  border: 1.1px solid var(--line);
}

.finance-graph-row i {
  height: 100%;
  display: block;
  background: rgba(49, 64, 82, 0.28);
  transition: width 220ms ease, background 180ms ease;
}

:root[data-theme="dark"] .finance-graph-row i {
  background: rgba(242, 241, 220, 0.28);
}

.finance-line-graph {
  min-height: 132px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  padding: 8px 8px 10px;
  border: 1.1px solid var(--line);
}

.finance-line-graph svg {
  width: 100%;
  height: 92px;
  overflow: visible;
}

.finance-line-graph polyline {
  fill: none;
  stroke: var(--line);
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
}

.finance-line-labels {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.finance-line-labels span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-cfo-panel p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

.finance-cfo-panel dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: auto 0 0;
  border-top: 1.1px solid var(--line);
  border-left: 1.1px solid var(--line);
}

.finance-cfo-panel dl div {
  padding: 9px 10px 13px;
  border-right: 1.1px solid var(--line);
  border-bottom: 1.1px solid var(--line);
}

.finance-cfo-panel dt,
.finance-cfo-panel dd {
  margin: 0;
}

.finance-cfo-panel dt {
  color: var(--muted);
}

.finance-cfo-panel dd {
  margin-top: 4px;
  font-size: 18px;
}

.finance-projection-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: auto;
  border-top: 1.1px solid var(--line);
  border-left: 1.1px solid var(--line);
}

.finance-projection-strip div {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 7px 9px 11px;
  border-right: 1.1px solid var(--line);
  border-bottom: 1.1px solid var(--line);
}

.finance-projection-strip span {
  color: var(--muted);
  font-size: 12px;
}

.finance-projection-strip b {
  font-weight: 400;
}

.finance-object-list {
  display: grid;
  margin-top: 24px;
  border-top: 1.1px solid var(--line);
  border-left: 1.1px solid var(--line);
}

.finance-object-list > header,
.finance-object-list article {
  border-right: 1.1px solid var(--line);
  border-bottom: 1.1px solid var(--line);
}

.finance-object-list > header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 14px;
}

.finance-object-list > header span,
.finance-object-list article span,
.finance-object-list article p {
  color: var(--muted);
}

.finance-object-list > header strong {
  font-size: 18px;
  font-weight: 400;
}

.finance-object-list article {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 10px 12px 14px;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.finance-object-list article:hover {
  background: rgba(49, 64, 82, 0.08);
}

:root[data-theme="dark"] .finance-object-list article:hover {
  background: rgba(242, 241, 220, 0.08);
}

.finance-object-list article strong,
.finance-object-list article p,
.finance-object-list article b {
  margin: 0;
}

.finance-object-list article strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 400;
}

.finance-object-list article p {
  margin-top: 4px;
}

.finance-object-list article b {
  font-size: 18px;
  font-weight: 400;
  white-space: nowrap;
}

.finance-entry-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.45fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.finance-entry-form,
.finance-ledger {
  border-top: 1.1px solid var(--line);
  border-left: 1.1px solid var(--line);
}

.finance-entry-form {
  display: grid;
}

.finance-entry-form header,
.finance-ledger header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 14px;
  border-right: 1.1px solid var(--line);
  border-bottom: 1.1px solid var(--line);
}

.finance-entry-form header strong,
.finance-ledger header strong {
  font-size: 18px;
  font-weight: 400;
}

.finance-entry-form label {
  display: grid;
  gap: 5px;
  padding: 10px 12px 14px;
  border-right: 1.1px solid var(--line);
  border-bottom: 1.1px solid var(--line);
}

.finance-entry-form label span {
  color: var(--muted);
}

.finance-entry-form input,
.finance-entry-form select,
.finance-entry-form textarea {
  width: 100%;
  min-height: 36px;
  padding: 6px 8px 8px;
  color: var(--text);
  background: transparent;
  border: 1.1px solid var(--line);
  border-radius: 0;
  outline: none;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.finance-entry-form input:focus,
.finance-entry-form select:focus,
.finance-entry-form textarea:focus {
  box-shadow: 0 0 0 2px rgba(49, 64, 82, 0.18);
}

:root[data-theme="dark"] .finance-entry-form input:focus,
:root[data-theme="dark"] .finance-entry-form select:focus,
:root[data-theme="dark"] .finance-entry-form textarea:focus {
  box-shadow: 0 0 0 2px rgba(242, 241, 220, 0.18);
}

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

.finance-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-right: 1.1px solid var(--line);
  border-bottom: 1.1px solid var(--line);
}

.finance-entry-form .form-error {
  margin: 12px 12px 0;
}

.finance-ledger-list {
  display: grid;
}

.finance-ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 72px;
  padding: 10px 12px 14px;
  border-right: 1.1px solid var(--line);
  border-bottom: 1.1px solid var(--line);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.finance-ledger-row:hover,
.finance-ledger-row.highlighted {
  background: rgba(49, 64, 82, 0.1);
}

:root[data-theme="dark"] .finance-ledger-row:hover,
:root[data-theme="dark"] .finance-ledger-row.highlighted {
  background: rgba(242, 241, 220, 0.1);
}

.finance-ledger-row strong,
.finance-ledger-row p,
.finance-ledger-row b {
  margin: 0;
}

.finance-ledger-row strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
  font-weight: 400;
}

.finance-ledger-row p {
  margin-top: 4px;
  color: var(--muted);
}

.finance-ledger-row b {
  font-size: 17px;
  font-weight: 400;
  white-space: nowrap;
}

.finance-ledger-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.finance-ledger-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.finance-ledger-actions button {
  min-height: 28px;
  padding: 2px 8px 5px;
  color: var(--text);
  background: transparent;
  border: 1.1px solid var(--line);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.finance-ledger-actions button:hover {
  background: rgba(49, 64, 82, 0.1);
}

:root[data-theme="dark"] .finance-ledger-actions button:hover {
  background: rgba(242, 241, 220, 0.1);
}

.finance-ledger-actions button.danger {
  color: var(--danger);
}

.finance-ledger-actions button:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.finance-ledger-search {
  width: min(320px, 52vw);
  min-height: 34px;
  padding: 5px 8px 8px;
  color: var(--text);
  background: transparent;
  border: 1.1px solid var(--line);
  outline: none;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.finance-ledger-search:focus {
  box-shadow: 0 0 0 2px rgba(49, 64, 82, 0.18);
}

:root[data-theme="dark"] .finance-ledger-search:focus {
  box-shadow: 0 0 0 2px rgba(242, 241, 220, 0.18);
}

.finance-list-controls {
  min-height: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 12px 12px;
  border-right: 1.1px solid var(--line);
  border-bottom: 1.1px solid var(--line);
}

.finance-list-controls > span,
.finance-list-controls label span {
  color: var(--muted);
}

.finance-list-controls label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.finance-list-controls select,
.finance-list-controls button {
  min-height: 30px;
  padding: 2px 8px 5px;
  color: var(--text);
  background: transparent;
  border: 1.1px solid var(--line);
  cursor: pointer;
}

.finance-list-controls button:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.finance-list-controls button:hover:not(:disabled),
.finance-list-controls select:hover {
  background: rgba(49, 64, 82, 0.08);
}

:root[data-theme="dark"] .finance-list-controls button:hover:not(:disabled),
:root[data-theme="dark"] .finance-list-controls select:hover {
  background: rgba(242, 241, 220, 0.08);
}

.finance-confirmation-list {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.finance-confirmation-list a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 9px 7px;
  border: 1.1px solid var(--line);
  color: var(--text);
  background: rgba(49, 64, 82, 0.045);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.finance-confirmation-list a:hover {
  background: rgba(49, 64, 82, 0.12);
}

:root[data-theme="dark"] .finance-confirmation-list a {
  background: rgba(242, 241, 220, 0.045);
}

:root[data-theme="dark"] .finance-confirmation-list a:hover {
  background: rgba(242, 241, 220, 0.12);
}

.finance-confirmation-image-link img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-right: 1.1px solid var(--line);
}

.finance-confirmation-image-link {
  padding-left: 0;
}

.finance-entry-type {
  color: var(--muted);
}

.finance-entry-type.positive {
  color: var(--success);
}

.finance-entry-type.negative {
  color: var(--danger);
}

.finance-empty {
  margin: 0;
  padding: 12px 12px 16px;
  color: var(--muted);
  border-right: 1.1px solid var(--line);
  border-bottom: 1.1px solid var(--line);
}

.finance-workspace {
  --finance-text: #111827;
  --finance-muted: #667085;
  --finance-subtle: #8b95a7;
  --finance-line: #dce2ed;
  --finance-soft-line: #eef1f6;
  --finance-panel: #ffffff;
  --finance-page: #ffffff;
  --finance-primary: #17234f;
  --finance-primary-hover: #223063;
  --finance-accent: #5a55d6;
  --finance-accent-soft: #eeecff;
  --finance-blue: #5d8df7;
  --finance-green: #22a35a;
  --finance-green-soft: #e9f8ef;
  --finance-red: #ef5252;
  --finance-red-soft: #fff0f0;
  --finance-yellow: #d99018;
  --finance-yellow-soft: #fff7df;
  --finance-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 24px clamp(14px, 2vw, 28px) 48px;
  color: var(--finance-text);
  background: var(--finance-page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.finance-workspace * {
  letter-spacing: 0;
}

.finance-view-tabs {
  width: fit-content;
  max-width: 100%;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  padding: 3px;
  background: #f7f8fb;
  border: 1px solid var(--finance-line);
  border-radius: 7px;
  scrollbar-width: thin;
}

.finance-view-tab {
  min-width: max-content;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #344054;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.finance-view-tab:hover {
  color: var(--finance-accent);
  background: #ffffff;
}

.finance-view-tab.active {
  color: var(--finance-accent);
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.08);
}

.finance-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.finance-icon svg {
  width: 100%;
  height: 100%;
}

.finance-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.finance-stat-card,
.finance-chart-card,
.finance-side-card,
.finance-entry-form,
.finance-ledger,
.finance-object-list,
.finance-cfo-panel {
  background: var(--finance-panel);
  border: 1px solid var(--finance-line);
  border-radius: 8px;
  box-shadow: var(--finance-shadow);
}

.finance-stat-card {
  min-height: 126px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
}

.finance-stat-card span,
.finance-chart-card header span,
.finance-side-card header span,
.finance-entry-form header span,
.finance-ledger header span,
.finance-object-list > header span {
  color: #475467;
  font-size: 12px;
  font-weight: 700;
}

.finance-stat-card strong {
  display: block;
  margin-top: 10px;
  color: var(--finance-text);
  font-size: clamp(23px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.08;
}

.finance-stat-card p {
  margin: 10px 0 0;
  color: var(--finance-muted);
  font-size: 13px;
}

.finance-stat-card .finance-icon {
  width: 46px;
  height: 46px;
  padding: 12px;
  color: var(--finance-accent);
  background: var(--finance-accent-soft);
  border-radius: 8px;
}

.finance-stat-card.primary .finance-icon {
  color: var(--finance-primary);
  background: #eef1ff;
}

.finance-stat-card.positive .finance-icon {
  color: var(--finance-green);
  background: var(--finance-green-soft);
}

.finance-stat-card.negative .finance-icon {
  color: var(--finance-red);
  background: var(--finance-red-soft);
}

.finance-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.finance-chart-card {
  min-height: 292px;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.finance-chart-card header,
.finance-side-card header {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 14px;
  border: 0;
}

.finance-chart-card header strong {
  color: var(--finance-text);
  font-size: 14px;
  font-weight: 800;
}

.finance-chart-card header span {
  color: #344054;
  font-size: 12px;
  font-weight: 600;
}

.finance-line-graph {
  min-height: 210px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
  padding: 12px 4px 0;
  border: 0;
  background:
    linear-gradient(var(--finance-soft-line) 1px, transparent 1px) 0 0 / 100% 25%,
    #ffffff;
}

.finance-line-graph svg {
  width: 100%;
  height: 172px;
  overflow: visible;
}

.finance-line-graph polyline {
  fill: none;
  stroke: var(--finance-accent);
  stroke-width: 2.8;
  vector-effect: non-scaling-stroke;
}

.finance-line-labels {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.finance-line-labels span {
  overflow: hidden;
  color: var(--finance-muted);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-donut-layout {
  display: grid;
  grid-template-columns: minmax(132px, 0.65fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  flex: 1;
}

.finance-donut {
  width: min(162px, 100%);
  aspect-ratio: 1;
  position: relative;
  border-radius: 50%;
  background: var(--finance-donut, #e8ebf2);
}

.finance-donut::after {
  content: "";
  position: absolute;
  inset: 30px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--finance-soft-line);
}

.finance-donut > div {
  position: absolute;
  inset: 38px;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.finance-donut strong {
  color: var(--finance-text);
  font-size: 16px;
  font-weight: 800;
}

.finance-donut span {
  color: var(--finance-muted);
  font-size: 11px;
  font-weight: 600;
}

.finance-donut-layout ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.finance-donut-layout li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto 36px;
  align-items: center;
  gap: 8px;
  color: var(--finance-muted);
  font-size: 12px;
}

.finance-donut-layout li i {
  width: 8px;
  height: 8px;
  background: #c4cad8;
  border-radius: 50%;
}

.finance-donut-layout li span {
  overflow: hidden;
  color: #344054;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-donut-layout li b,
.finance-donut-layout li em {
  color: var(--finance-text);
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.finance-donut-layout.is-disabled {
  opacity: 0.62;
  filter: grayscale(0.9);
}

.finance-bar-chart {
  display: grid;
  gap: 18px;
  flex: 1;
}

.finance-bar-chart.is-disabled {
  min-height: 220px;
  place-items: center;
  background: #f8fafc;
  border: 1px dashed var(--finance-line);
  border-radius: 8px;
}

.finance-chart-legend {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  color: #344054;
  font-size: 12px;
  font-weight: 600;
}

.finance-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.finance-chart-legend i {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 3px;
}

.finance-chart-legend i.income,
.finance-bar-group i.income {
  background: var(--finance-green);
}

.finance-chart-legend i.expense,
.finance-bar-group i.expense {
  background: var(--finance-red);
}

.finance-bars {
  min-height: 210px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  padding-top: 12px;
  background:
    linear-gradient(var(--finance-soft-line) 1px, transparent 1px) 0 0 / 100% 25%,
    #ffffff;
}

.finance-bar-group {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.finance-bar-group div {
  height: 164px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 7px;
  border-bottom: 1px solid var(--finance-line);
}

.finance-bar-group i {
  width: 13px;
  min-height: 0;
  display: block;
  border-radius: 4px 4px 0 0;
}

.finance-bar-group span {
  overflow: hidden;
  color: var(--finance-muted);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-secondary-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(260px, 1fr) minmax(240px, 0.9fr);
  gap: 22px;
  margin-top: 22px;
}

.finance-side-card {
  min-height: 174px;
  padding: 18px;
}

.finance-side-card.is-disabled {
  background: #f8fafc;
  border-style: dashed;
  box-shadow: none;
}

.finance-disabled-state {
  min-height: 142px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 18px;
  color: var(--finance-subtle);
  text-align: center;
}

.finance-disabled-state .finance-icon {
  width: 40px;
  height: 40px;
  padding: 10px;
  color: #98a2b3;
  background: #edf0f5;
  border-radius: 8px;
}

.finance-disabled-state strong {
  color: #667085;
  font-size: 14px;
  font-weight: 800;
}

.finance-disabled-state span {
  max-width: 230px;
  color: #8b95a7;
  font-size: 12px;
  line-height: 1.45;
}

.finance-account-surface {
  min-height: 190px;
  position: relative;
  overflow: hidden;
  padding: 18px;
  color: #ffffff;
  background: #17234f;
  border-radius: 8px;
}

.finance-account-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.finance-account-topline strong {
  display: block;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
}

.finance-account-topline span,
.finance-account-surface > p,
.finance-account-surface > span,
.finance-account-surface dt {
  color: rgba(255, 255, 255, 0.72);
}

.finance-account-topline b {
  padding: 4px 9px;
  color: #ffffff;
  background: rgba(90, 85, 214, 0.85);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.finance-account-surface > p {
  margin: 18px 0 18px;
}

.finance-account-surface > strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
}

.finance-account-surface dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.finance-account-surface dt,
.finance-account-surface dd {
  margin: 0;
}

.finance-account-surface dd {
  margin-top: 4px;
  color: #ffffff;
  font-weight: 700;
}

.finance-account-surface > .finance-icon {
  width: 54px;
  height: 54px;
  position: absolute;
  right: 18px;
  bottom: 54px;
  color: rgba(255, 255, 255, 0.2);
}

.finance-empty-panel {
  min-height: 154px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  padding: 18px;
  color: var(--finance-muted);
  background: #f8fafc;
  border: 1px dashed var(--finance-line);
  border-radius: 8px;
}

.finance-empty-panel .finance-icon {
  width: 42px;
  height: 42px;
  padding: 10px;
  color: var(--finance-accent);
  background: var(--finance-accent-soft);
  border-radius: 8px;
}

.finance-empty-panel strong,
.finance-empty-panel p {
  margin: 0;
}

.finance-empty-panel strong {
  color: var(--finance-text);
  font-size: 16px;
}

.finance-budget-card > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 14px;
  align-items: end;
}

.finance-budget-card > div span {
  grid-column: 1 / -1;
  color: var(--finance-text);
  font-size: 14px;
  font-weight: 800;
}

.finance-budget-card > div strong {
  color: var(--finance-text);
  font-size: 16px;
  font-weight: 800;
}

.finance-budget-card > div b {
  color: var(--finance-text);
  font-size: 13px;
}

.finance-budget-card meter {
  width: 100%;
  height: 10px;
  margin-top: 16px;
}

.finance-budget-card meter::-webkit-meter-bar {
  background: #edf0f5;
  border: 0;
  border-radius: 999px;
}

.finance-budget-card meter::-webkit-meter-optimum-value {
  background: var(--finance-accent);
  border-radius: 999px;
}

.finance-budget-card p {
  margin: 12px 0 0;
  color: var(--finance-muted);
  font-size: 13px;
}

.finance-quick-actions {
  display: grid;
  gap: 8px;
}

.finance-quick-actions a {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: #344054;
  background: #ffffff;
  border: 1px solid var(--finance-line);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.finance-quick-actions a:hover {
  color: var(--finance-accent);
  background: #f8f7ff;
  border-color: #c9c6ff;
}

.finance-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 24px;
  border: 0;
}

.finance-cfo-panel {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-right: 1px solid var(--finance-line);
  border-bottom: 1px solid var(--finance-line);
}

.finance-cfo-panel:hover {
  background: #ffffff;
}

.finance-cfo-panel > span {
  color: #475467;
  font-size: 12px;
  font-weight: 700;
}

.finance-cfo-panel > strong {
  color: var(--finance-text);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
}

.finance-graph {
  display: grid;
  gap: 10px;
}

.finance-graph-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(94px, auto);
  align-items: center;
  gap: 12px;
}

.finance-graph-row span,
.finance-graph-row b {
  color: var(--finance-muted);
  font-size: 12px;
  font-weight: 700;
}

.finance-graph-row div {
  height: 10px;
  overflow: hidden;
  background: #edf0f5;
  border: 0;
  border-radius: 999px;
}

.finance-graph-row i {
  height: 100%;
  display: block;
  background: var(--finance-accent);
  border-radius: 999px;
}

.finance-cfo-panel dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: auto 0 0;
  border: 0;
}

.finance-cfo-panel dl div {
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--finance-soft-line);
  border-radius: 7px;
}

.finance-cfo-panel dt,
.finance-cfo-panel dd {
  margin: 0;
}

.finance-cfo-panel dt {
  color: var(--finance-muted);
  font-size: 12px;
  font-weight: 700;
}

.finance-cfo-panel dd {
  margin-top: 5px;
  color: var(--finance-text);
  font-size: 16px;
  font-weight: 800;
}

.finance-object-list {
  display: grid;
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid var(--finance-line);
  border-radius: 8px;
  box-shadow: var(--finance-shadow);
}

.finance-object-list > header,
.finance-object-list article {
  border-right: 0;
  border-bottom: 1px solid var(--finance-soft-line);
}

.finance-object-list > header {
  min-height: 62px;
  padding: 16px 18px;
  background: #ffffff;
}

.finance-object-list > header strong {
  min-width: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--finance-accent);
  background: var(--finance-accent-soft);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.finance-object-list article {
  min-height: 78px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 16px 18px;
  background: #ffffff;
}

.finance-object-list article:hover {
  background: #f8fafc;
}

.finance-object-list article span,
.finance-object-list article p {
  color: var(--finance-muted);
}

.finance-object-list article strong {
  margin-top: 4px;
  color: var(--finance-text);
  font-size: 16px;
  font-weight: 800;
}

.finance-object-list article b {
  color: var(--finance-text);
  font-size: 16px;
  font-weight: 800;
}

.finance-entry-layout {
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 24px;
}

.finance-entry-form,
.finance-ledger {
  overflow: hidden;
  border: 1px solid var(--finance-line);
}

.finance-entry-form {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.finance-entry-form header,
.finance-ledger header {
  min-height: auto;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid var(--finance-soft-line);
}

.finance-entry-form header strong,
.finance-ledger header strong {
  color: var(--finance-text);
  font-size: 16px;
  font-weight: 800;
}

.finance-entry-form label {
  display: grid;
  gap: 7px;
  padding: 0;
  border: 0;
}

.finance-entry-form label span,
.finance-list-controls label span {
  color: #475467;
  font-size: 12px;
  font-weight: 700;
}

.finance-entry-form input,
.finance-entry-form select,
.finance-entry-form textarea,
.finance-ledger-search {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  color: var(--finance-text);
  background: #ffffff;
  border: 1px solid #cfd6e3;
  border-radius: 6px;
  outline: none;
  font-size: 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.finance-entry-form textarea {
  min-height: 88px;
  padding-top: 10px;
  resize: vertical;
}

.finance-entry-form input:focus,
.finance-entry-form select:focus,
.finance-entry-form textarea:focus,
.finance-ledger-search:focus {
  border-color: var(--finance-accent);
  box-shadow: 0 0 0 3px rgba(90, 85, 214, 0.16);
}

.finance-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.finance-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  border: 0;
}

.finance-workspace .button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--finance-text);
  background: #ffffff;
  border: 1px solid var(--finance-line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.finance-workspace .button:hover {
  background: #f8fafc;
}

.finance-form-actions .button:first-child {
  color: #ffffff;
  background: var(--finance-primary);
  border-color: var(--finance-primary);
}

.finance-form-actions .button:first-child:hover {
  background: var(--finance-primary-hover);
}

.finance-entry-form .form-error {
  margin: 0;
}

.finance-ledger {
  display: grid;
}

.finance-ledger header {
  padding: 16px 18px;
}

.finance-ledger-search {
  width: min(300px, 48vw);
}

.finance-ledger-table-head,
.finance-ledger-row {
  display: grid;
  grid-template-columns: 112px minmax(220px, 1.5fr) minmax(128px, 0.75fr) minmax(110px, 0.65fr) minmax(150px, 0.85fr);
  gap: 16px;
  align-items: center;
}

.finance-ledger-table-head {
  min-height: 44px;
  padding: 0 18px;
  color: #667085;
  background: #f8fafc;
  border-bottom: 1px solid var(--finance-soft-line);
  font-size: 12px;
  font-weight: 800;
}

.finance-ledger-list {
  display: grid;
}

.finance-ledger-row {
  min-height: 70px;
  padding: 14px 18px;
  background: #ffffff;
  border-right: 0;
  border-bottom: 1px solid var(--finance-soft-line);
}

.finance-ledger-row:hover,
.finance-ledger-row.highlighted {
  background: #fafbff;
}

.finance-ledger-date,
.finance-ledger-category {
  color: var(--finance-muted);
  font-size: 12px;
  font-weight: 700;
}

.finance-ledger-main {
  min-width: 0;
}

.finance-ledger-main strong,
.finance-ledger-main p,
.finance-ledger-amount {
  margin: 0;
}

.finance-ledger-main strong {
  display: block;
  color: var(--finance-text);
  font-size: 14px;
  font-weight: 800;
}

.finance-ledger-main p {
  overflow: hidden;
  margin-top: 4px;
  color: var(--finance-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-ledger-amount {
  color: var(--finance-text);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.finance-ledger-side {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.finance-entry-type {
  width: fit-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  color: #4d5a73;
  background: #eef1f6;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.finance-entry-type.positive {
  color: var(--finance-green);
  background: var(--finance-green-soft);
}

.finance-entry-type.negative {
  color: var(--finance-red);
  background: var(--finance-red-soft);
}

.finance-ledger-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
}

.finance-ledger-actions button {
  min-height: 28px;
  padding: 0 9px;
  color: #344054;
  background: #ffffff;
  border: 1px solid var(--finance-line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.finance-ledger-actions button:hover {
  background: #f8fafc;
}

.finance-ledger-actions button.danger {
  color: var(--finance-red);
  border-color: #ffc6c6;
}

.finance-ledger-actions button:disabled {
  color: var(--finance-subtle);
  cursor: not-allowed;
}

.finance-confirmation-list {
  grid-column: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.finance-confirmation-list a {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  color: #344054;
  background: #f8fafc;
  border: 1px solid var(--finance-line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.finance-confirmation-list a:hover {
  color: var(--finance-accent);
  background: #f8f7ff;
}

.finance-confirmation-image-link {
  padding-left: 0;
}

.finance-confirmation-image-link img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-right: 1px solid var(--finance-line);
  border-radius: 5px 0 0 5px;
}

.finance-list-controls {
  min-height: 54px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px;
  border-right: 0;
  border-bottom: 0;
}

.finance-list-controls > span {
  color: var(--finance-muted);
  font-size: 12px;
  font-weight: 700;
}

.finance-list-controls label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.finance-list-controls select,
.finance-list-controls button {
  min-height: 32px;
  padding: 0 10px;
  color: var(--finance-text);
  background: #ffffff;
  border: 1px solid var(--finance-line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.finance-list-controls button:hover:not(:disabled),
.finance-list-controls select:hover {
  background: #f8fafc;
}

.finance-list-controls button:disabled {
  color: var(--finance-subtle);
  cursor: not-allowed;
}

.finance-empty {
  margin: 0;
  padding: 18px;
  color: var(--finance-muted);
  background: #ffffff;
  border-right: 0;
  border-bottom: 0;
}

:root[data-theme="dark"] .finance-workspace {
  --finance-text: #f7f8fb;
  --finance-muted: #a8b0bd;
  --finance-subtle: #788392;
  --finance-line: rgba(169, 181, 198, 0.22);
  --finance-soft-line: rgba(169, 181, 198, 0.13);
  --finance-panel: rgba(16, 23, 31, 0.92);
  --finance-page: #080d12;
  --finance-primary: #6d5af2;
  --finance-primary-hover: #806cff;
  --finance-accent: #8b6fff;
  --finance-accent-soft: rgba(139, 111, 255, 0.18);
  --finance-green: #45c979;
  --finance-green-soft: rgba(69, 201, 121, 0.16);
  --finance-red: #ff5f66;
  --finance-red-soft: rgba(255, 95, 102, 0.16);
  --finance-yellow: #ffbf45;
  --finance-yellow-soft: rgba(255, 191, 69, 0.16);
  --finance-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  background:
    radial-gradient(circle at 14% 0%, rgba(139, 111, 255, 0.12), transparent 31%),
    linear-gradient(135deg, #0a1016 0%, #071017 42%, #080d12 100%);
}

:root[data-theme="dark"] .finance-view-tabs {
  background: rgba(13, 20, 28, 0.9);
  border-color: var(--finance-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

:root[data-theme="dark"] .finance-view-tab {
  color: var(--finance-muted);
}

:root[data-theme="dark"] .finance-view-tab:hover,
:root[data-theme="dark"] .finance-view-tab.active {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(111, 91, 242, 0.94), rgba(80, 61, 202, 0.94));
  box-shadow: 0 8px 22px rgba(72, 54, 190, 0.36);
}

:root[data-theme="dark"] .finance-stat-card,
:root[data-theme="dark"] .finance-chart-card,
:root[data-theme="dark"] .finance-side-card,
:root[data-theme="dark"] .finance-entry-form,
:root[data-theme="dark"] .finance-ledger,
:root[data-theme="dark"] .finance-object-list,
:root[data-theme="dark"] .finance-cfo-panel {
  background:
    linear-gradient(180deg, rgba(18, 27, 36, 0.97), rgba(12, 18, 25, 0.97));
  border-color: var(--finance-line);
  box-shadow: var(--finance-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

:root[data-theme="dark"] .finance-stat-card span,
:root[data-theme="dark"] .finance-chart-card header span,
:root[data-theme="dark"] .finance-side-card header span,
:root[data-theme="dark"] .finance-entry-form header span,
:root[data-theme="dark"] .finance-ledger header span,
:root[data-theme="dark"] .finance-object-list > header span,
:root[data-theme="dark"] .finance-cfo-panel > span,
:root[data-theme="dark"] .finance-entry-form label span,
:root[data-theme="dark"] .finance-list-controls label span {
  color: #b29dff;
  font-weight: 800;
  text-transform: uppercase;
}

:root[data-theme="dark"] .finance-stat-card p,
:root[data-theme="dark"] .finance-chart-card header span,
:root[data-theme="dark"] .finance-donut-layout li,
:root[data-theme="dark"] .finance-donut span,
:root[data-theme="dark"] .finance-bar-group span,
:root[data-theme="dark"] .finance-line-labels span,
:root[data-theme="dark"] .finance-ledger-date,
:root[data-theme="dark"] .finance-ledger-category,
:root[data-theme="dark"] .finance-ledger-main p,
:root[data-theme="dark"] .finance-list-controls > span,
:root[data-theme="dark"] .finance-object-list article span,
:root[data-theme="dark"] .finance-object-list article p,
:root[data-theme="dark"] .finance-empty,
:root[data-theme="dark"] .finance-budget-card p,
:root[data-theme="dark"] .finance-graph-row span,
:root[data-theme="dark"] .finance-graph-row b {
  color: var(--finance-muted);
}

:root[data-theme="dark"] .finance-stat-card strong,
:root[data-theme="dark"] .finance-chart-card header strong,
:root[data-theme="dark"] .finance-entry-form header strong,
:root[data-theme="dark"] .finance-ledger header strong,
:root[data-theme="dark"] .finance-ledger-main strong,
:root[data-theme="dark"] .finance-ledger-amount,
:root[data-theme="dark"] .finance-object-list article strong,
:root[data-theme="dark"] .finance-object-list article b,
:root[data-theme="dark"] .finance-budget-card > div span,
:root[data-theme="dark"] .finance-budget-card > div strong,
:root[data-theme="dark"] .finance-budget-card > div b,
:root[data-theme="dark"] .finance-donut strong,
:root[data-theme="dark"] .finance-donut-layout li span,
:root[data-theme="dark"] .finance-donut-layout li b,
:root[data-theme="dark"] .finance-donut-layout li em,
:root[data-theme="dark"] .finance-cfo-panel > strong,
:root[data-theme="dark"] .finance-cfo-panel dd {
  color: var(--finance-text);
}

:root[data-theme="dark"] .finance-stat-card .finance-icon {
  background: rgba(139, 111, 255, 0.18);
}

:root[data-theme="dark"] .finance-stat-card.primary .finance-icon {
  color: #b29dff;
  background: rgba(139, 111, 255, 0.22);
}

:root[data-theme="dark"] .finance-stat-card.positive .finance-icon {
  background: var(--finance-green-soft);
}

:root[data-theme="dark"] .finance-stat-card.negative .finance-icon {
  background: var(--finance-red-soft);
}

:root[data-theme="dark"] .finance-line-graph,
:root[data-theme="dark"] .finance-bars {
  background:
    linear-gradient(var(--finance-soft-line) 1px, transparent 1px) 0 0 / 100% 25%,
    transparent;
}

:root[data-theme="dark"] .finance-line-graph polyline {
  stroke: #8b6fff;
  filter: drop-shadow(0 0 12px rgba(139, 111, 255, 0.45));
}

:root[data-theme="dark"] .finance-donut {
  box-shadow: 0 0 0 1px var(--finance-soft-line), 0 14px 28px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .finance-donut::after {
  background: #0f1720;
  box-shadow: inset 0 0 0 1px var(--finance-soft-line);
}

:root[data-theme="dark"] .finance-bar-group div {
  border-color: var(--finance-line);
}

:root[data-theme="dark"] .finance-bar-chart.is-disabled,
:root[data-theme="dark"] .finance-side-card.is-disabled,
:root[data-theme="dark"] .finance-empty-panel {
  background: rgba(11, 17, 24, 0.78);
  border-color: var(--finance-line);
}

:root[data-theme="dark"] .finance-disabled-state .finance-icon,
:root[data-theme="dark"] .finance-empty-panel .finance-icon {
  color: #b29dff;
  background: rgba(139, 111, 255, 0.16);
}

:root[data-theme="dark"] .finance-disabled-state strong,
:root[data-theme="dark"] .finance-empty-panel strong {
  color: #d9deea;
}

:root[data-theme="dark"] .finance-disabled-state span,
:root[data-theme="dark"] .finance-empty-panel p {
  color: var(--finance-muted);
}

:root[data-theme="dark"] .finance-account-surface {
  background:
    radial-gradient(circle at 84% 28%, rgba(255, 255, 255, 0.13), transparent 12%),
    linear-gradient(135deg, #23215f 0%, #171b47 48%, #111733 100%);
  border: 1px solid rgba(156, 137, 255, 0.36);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .finance-account-topline b {
  background: rgba(139, 111, 255, 0.72);
}

:root[data-theme="dark"] .finance-cfo-panel:hover,
:root[data-theme="dark"] .finance-object-list article:hover,
:root[data-theme="dark"] .finance-ledger-row:hover,
:root[data-theme="dark"] .finance-ledger-row.highlighted {
  background: rgba(22, 32, 42, 0.98);
}

:root[data-theme="dark"] .finance-cfo-panel dl div,
:root[data-theme="dark"] .finance-object-list > header,
:root[data-theme="dark"] .finance-object-list article,
:root[data-theme="dark"] .finance-ledger-table-head,
:root[data-theme="dark"] .finance-ledger-row,
:root[data-theme="dark"] .finance-empty {
  background: rgba(10, 16, 23, 0.72);
  border-color: var(--finance-soft-line);
}

:root[data-theme="dark"] .finance-entry-form input,
:root[data-theme="dark"] .finance-entry-form select,
:root[data-theme="dark"] .finance-entry-form textarea,
:root[data-theme="dark"] .finance-ledger-search,
:root[data-theme="dark"] .finance-list-controls select,
:root[data-theme="dark"] .finance-list-controls button,
:root[data-theme="dark"] .finance-ledger-actions button,
:root[data-theme="dark"] .finance-confirmation-list a,
:root[data-theme="dark"] .finance-workspace .button,
:root[data-theme="dark"] .finance-quick-actions a {
  color: var(--finance-text);
  background: rgba(9, 15, 22, 0.9);
  border-color: var(--finance-line);
}

:root[data-theme="dark"] .finance-entry-form input::placeholder,
:root[data-theme="dark"] .finance-entry-form textarea::placeholder,
:root[data-theme="dark"] .finance-ledger-search::placeholder {
  color: #748091;
}

:root[data-theme="dark"] .finance-entry-form input:focus,
:root[data-theme="dark"] .finance-entry-form select:focus,
:root[data-theme="dark"] .finance-entry-form textarea:focus,
:root[data-theme="dark"] .finance-ledger-search:focus {
  border-color: var(--finance-accent);
  box-shadow: 0 0 0 3px rgba(139, 111, 255, 0.2);
}

:root[data-theme="dark"] .finance-list-controls button:hover:not(:disabled),
:root[data-theme="dark"] .finance-list-controls select:hover,
:root[data-theme="dark"] .finance-ledger-actions button:hover,
:root[data-theme="dark"] .finance-confirmation-list a:hover,
:root[data-theme="dark"] .finance-workspace .button:hover,
:root[data-theme="dark"] .finance-quick-actions a:hover {
  color: #ffffff;
  background: rgba(139, 111, 255, 0.14);
  border-color: rgba(139, 111, 255, 0.5);
}

:root[data-theme="dark"] .finance-form-actions .button:first-child {
  color: #ffffff;
  background: linear-gradient(180deg, #765dff, #5942d7);
  border-color: #765dff;
}

:root[data-theme="dark"] .finance-form-actions .button:first-child:hover {
  background: linear-gradient(180deg, #8a76ff, #6550e5);
}

:root[data-theme="dark"] .finance-entry-type {
  color: #b9c2d0;
  background: rgba(169, 181, 198, 0.14);
}

:root[data-theme="dark"] .finance-entry-type.positive {
  color: #7ee3a4;
  background: rgba(69, 201, 121, 0.16);
}

:root[data-theme="dark"] .finance-entry-type.negative,
:root[data-theme="dark"] .finance-ledger-actions button.danger {
  color: #ff8a8f;
  background: rgba(255, 95, 102, 0.12);
  border-color: rgba(255, 95, 102, 0.34);
}

:root[data-theme="dark"] .finance-budget-card meter::-webkit-meter-bar {
  background: rgba(169, 181, 198, 0.16);
}

:root[data-theme="dark"] .finance-budget-card meter::-webkit-meter-optimum-value {
  background: linear-gradient(90deg, #765dff, #8b6fff);
}

.profile-workspace {
  --profile-text: #111827;
  --profile-muted: #667085;
  --profile-line: #dfe5ef;
  --profile-soft-line: #eef1f6;
  --profile-primary: #5a55d6;
  --profile-primary-hover: #4944c9;
  --profile-primary-soft: #eeecff;
  --profile-green: #239f5a;
  --profile-green-soft: #eaf8ef;
  --profile-red: #e5484d;
  --profile-red-soft: #fff0f0;
  --profile-shadow: 0 12px 30px rgba(17, 24, 39, 0.055);
  width: min(1180px, 100%);
  display: grid;
  gap: 22px;
  margin: 0 auto;
  color: var(--profile-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.profile-header-card,
.profile-panel {
  background: #ffffff;
  border: 1px solid var(--profile-line);
  border-radius: 8px;
  box-shadow: var(--profile-shadow);
}

.profile-header-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  padding: 26px;
}

.profile-avatar-preview {
  width: 124px;
  height: 124px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--profile-primary);
  background: var(--profile-primary-soft);
  border: 1px solid var(--profile-soft-line);
  border-radius: 999px;
  font-size: 30px;
  font-weight: 850;
}

.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-header-copy {
  min-width: 0;
}

.profile-header-copy > span,
.profile-panel header span {
  color: #3f3b8f;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.profile-header-copy h2,
.profile-panel h2 {
  margin: 4px 0 0;
  color: var(--profile-text);
  font-size: 22px;
  font-weight: 850;
}

.profile-header-copy p {
  margin: 6px 0 0;
  color: var(--profile-muted);
  font-size: 14px;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.profile-badges span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--profile-primary);
  background: var(--profile-primary-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.profile-badges span.verified {
  color: var(--profile-green);
  background: var(--profile-green-soft);
}

.profile-badges span.pending {
  color: #b36b00;
  background: #fff7df;
}

.profile-header-actions,
.profile-remove-avatar-form {
  display: grid;
  gap: 8px;
}

.profile-header-actions form,
.profile-remove-avatar-form {
  margin: 0;
}

.profile-primary-button,
.profile-secondary-button,
.profile-danger-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.profile-primary-button {
  color: #ffffff;
  background: var(--profile-primary);
  border: 1px solid var(--profile-primary);
}

.profile-primary-button:hover {
  background: var(--profile-primary-hover);
}

.profile-secondary-button {
  color: var(--profile-text);
  background: #ffffff;
  border: 1px solid var(--profile-line);
}

.profile-secondary-button:hover {
  background: #f8fafc;
}

.profile-danger-button {
  color: var(--profile-red);
  background: #ffffff;
  border: 1px solid #ffcaca;
}

.profile-danger-button:hover {
  background: var(--profile-red-soft);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 22px;
  align-items: start;
}

.profile-side-stack {
  display: grid;
  gap: 22px;
}

.profile-panel {
  overflow: hidden;
}

.profile-panel header {
  padding: 18px;
  border-bottom: 1px solid var(--profile-soft-line);
}

.profile-panel h2 {
  font-size: 16px;
}

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

.profile-form header,
.profile-file-field,
.profile-form-actions {
  grid-column: 1 / -1;
}

.profile-form label {
  display: grid;
  gap: 7px;
  padding: 0 18px;
}

.profile-form header + label,
.profile-form header + label + label {
  padding-top: 18px;
}

.profile-form label > span {
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.profile-form input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  color: var(--profile-text);
  background: #ffffff;
  border: 1px solid #cfd6e3;
  border-radius: 6px;
  outline: none;
  font-size: 13px;
}

.profile-form input:focus {
  border-color: var(--profile-primary);
  box-shadow: 0 0 0 3px rgba(90, 85, 214, 0.16);
}

.profile-form input[readonly] {
  color: var(--profile-muted);
  background: #f8fafc;
}

.profile-file-field small,
.profile-muted-copy {
  color: var(--profile-muted);
  font-size: 13px;
  line-height: 1.5;
}

.profile-muted-copy {
  margin: 0;
  padding: 18px;
}

.profile-form-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 18px 18px;
}

.profile-status-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.profile-status-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid var(--profile-soft-line);
}

.profile-status-list dt,
.profile-status-list dd {
  margin: 0;
}

.profile-status-list dt {
  color: var(--profile-muted);
  font-size: 13px;
  font-weight: 700;
}

.profile-status-list dd {
  color: var(--profile-text);
  font-size: 13px;
  font-weight: 850;
  text-align: right;
}

.profile-remove-avatar-form {
  padding: 0 18px 18px;
}

.settings-currency-panel {
  width: min(880px, 100%);
  margin-top: 24px;
  border-top: 1.1px solid var(--line);
  border-left: 1.1px solid var(--line);
}

.settings-currency-panel > header,
.settings-currency-row,
.settings-currency-list article {
  border-right: 1.1px solid var(--line);
  border-bottom: 1.1px solid var(--line);
}

.settings-currency-panel > header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 14px;
}

.settings-currency-panel > header span,
.settings-currency-row label span,
.settings-currency-list article span {
  color: var(--muted);
}

.settings-currency-panel > header strong {
  font-size: 18px;
  font-weight: 400;
}

.settings-currency-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 10px 12px 14px;
}

.settings-currency-row label {
  display: grid;
  gap: 5px;
}

.settings-currency-row select,
.settings-currency-list button {
  min-height: 36px;
  padding: 5px 8px 8px;
  color: var(--text);
  background: transparent;
  border: 1.1px solid var(--line);
}

.settings-currency-list {
  display: grid;
}

.settings-currency-list article {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 14px;
}

.settings-currency-list article div:first-child {
  display: grid;
  gap: 4px;
}

.settings-currency-list article strong {
  font-size: 17px;
  font-weight: 400;
}

.settings-currency-list article div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.settings-currency-list button {
  cursor: pointer;
}

.settings-currency-list button:hover:not(:disabled),
.settings-currency-row select:hover {
  background: rgba(49, 64, 82, 0.08);
}

:root[data-theme="dark"] .settings-currency-list button:hover:not(:disabled),
:root[data-theme="dark"] .settings-currency-row select:hover {
  background: rgba(242, 241, 220, 0.08);
}

.settings-currency-list button:disabled,
.settings-currency-row select:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.appearance-section {
  width: min(820px, 100%);
  margin: 24px auto 0;
  color: var(--app-text);
  background: var(--app-surface-strong);
  border: 1px solid var(--app-border);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(17, 19, 21, 0.035);
  overflow: hidden;
}

.appearance-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 88px;
  padding: 22px;
  border-bottom: 0;
}

.appearance-row h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.2;
  color: var(--app-text);
}

.theme-choice-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(94px, 1fr));
  gap: 4px;
  padding: 4px;
  background: var(--app-soft);
  border: 1px solid var(--app-border);
  border-radius: 8px;
}

.theme-choice {
  min-height: 38px;
  padding: 0 14px;
  color: var(--app-muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.theme-choice:last-child {
  border-right: 0;
}

.theme-choice:hover {
  color: var(--app-text);
  background: color-mix(in srgb, var(--app-surface-strong) 84%, transparent);
}

.theme-choice.active {
  color: #ffffff;
  background: linear-gradient(180deg, #765dff, #5942d7);
  box-shadow: 0 8px 22px rgba(72, 54, 190, 0.22);
}

:root[data-theme="dark"] .appearance-section {
  background: linear-gradient(180deg, rgba(18, 27, 36, 0.97), rgba(12, 18, 25, 0.97));
  border-color: rgba(169, 181, 198, 0.22);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

:root[data-theme="dark"] .theme-choice-group {
  background: rgba(13, 20, 28, 0.9);
  border-color: rgba(169, 181, 198, 0.22);
}

:root[data-theme="dark"] .theme-choice {
  color: #a9b2c0;
}

:root[data-theme="dark"] .theme-choice:hover {
  color: #ffffff;
  background: rgba(139, 111, 255, 0.14);
}

:root[data-theme="dark"] .theme-choice.active {
  color: #ffffff;
  background: linear-gradient(180deg, #765dff, #5942d7);
  box-shadow: 0 8px 22px rgba(72, 54, 190, 0.36);
}

.calendar-surface {
  width: min(100%, 1480px);
  margin: 0 auto;
  color: var(--app-text);
  font-family: Arial, Helvetica, sans-serif;
  animation: app-content-enter 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.calendar-surface button,
.calendar-surface a {
  font-family: inherit;
}

.calendar-toolbar {
  min-height: 48px;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.calendar-view-tabs,
.calendar-navigation,
.calendar-toolbar-actions {
  display: flex;
  align-items: center;
}

.calendar-view-tabs {
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-radius: 6px;
  background: #f8f8fa;
}

.calendar-view-tabs button {
  min-width: 86px;
  min-height: 38px;
  padding: 0 15px;
  color: var(--app-muted);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--app-border-soft);
  cursor: pointer;
  font-size: 13px;
}

.calendar-view-tabs button:last-child {
  border-right: 0;
}

.calendar-view-tabs button.active {
  color: var(--app-text);
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(17, 19, 21, 0.06);
}

.calendar-navigation {
  gap: 10px;
}

.calendar-navigation button,
.calendar-tool-button,
.calendar-new-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--app-text);
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.calendar-navigation button {
  min-width: 38px;
  padding: 0 12px;
}

.calendar-navigation button:first-child {
  min-width: 70px;
}

.calendar-navigation strong {
  margin-left: 10px;
  font-size: 15px;
  font-weight: 600;
}

.calendar-toolbar svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.calendar-toolbar-actions {
  justify-content: flex-end;
  gap: 8px;
}

.calendar-tool-button,
.calendar-new-button {
  padding: 0 12px;
}

.calendar-tool-button b {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  color: #4e55ca;
  background: #f0efff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.calendar-new-button {
  color: #ffffff;
  background: #5b57d6;
  border-color: #5b57d6;
}

.calendar-navigation button:hover,
.calendar-tool-button:hover,
.calendar-new-button:hover {
  transform: translateY(-1px);
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(720px, 1fr) 292px;
  gap: 20px;
  align-items: start;
}

.calendar-month-stack,
.calendar-month {
  min-width: 0;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-height: 32px;
  align-items: center;
  padding: 0 4px;
}

.calendar-weekdays span {
  color: var(--app-muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: #ffffff;
}

.calendar-day {
  position: relative;
  min-width: 0;
  min-height: 142px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px 12px 12px;
  color: var(--app-text);
  background: #ffffff;
  border: 0;
  border-right: 1px solid var(--app-border-soft);
  border-bottom: 1px solid var(--app-border-soft);
  text-align: left;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day:nth-last-child(-n + 7) {
  border-bottom: 0;
}

.calendar-day:hover {
  background: #fbfbfd;
}

.calendar-day.outside {
  color: #a7abb3;
}

.calendar-day.selected {
  box-shadow: inset 0 0 0 2px rgba(91, 87, 214, 0.18);
}

.calendar-day-select {
  justify-self: start;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.calendar-day-number {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.calendar-day.today .calendar-day-number {
  color: #ffffff;
  background: #5b57d6;
}

.calendar-day-events {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.calendar-event-pill {
  --event-color: #5b57d6;
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 7px 8px;
  color: color-mix(in srgb, var(--event-color) 66%, #111315);
  background: color-mix(in srgb, var(--event-color) 12%, #ffffff);
  border-left: 3px solid var(--event-color);
  border-radius: 5px;
}

.calendar-event-pill span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event-pill i,
.calendar-agenda-item i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--event-color);
}

.calendar-event-pill small {
  overflow: hidden;
  color: color-mix(in srgb, var(--event-color) 54%, #111315);
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-more-events {
  color: var(--app-muted);
  font-size: 12px;
}

.calendar-agenda {
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: 8px;
}

.calendar-mini {
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--app-border-soft);
}

.calendar-mini header,
.calendar-list-controls header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.calendar-mini header strong {
  font-size: 14px;
  font-weight: 700;
}

.calendar-mini header span {
  display: inline-flex;
  gap: 4px;
}

.calendar-mini button,
.calendar-list-controls header button {
  display: grid;
  place-items: center;
  color: var(--app-text);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.calendar-mini header button {
  width: 28px;
  height: 28px;
}

.calendar-mini svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.calendar-mini-weekdays,
.calendar-mini-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}

.calendar-mini-weekdays {
  margin-top: 18px;
  color: var(--app-muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.calendar-mini-grid {
  margin-top: 10px;
}

.calendar-mini-grid button {
  aspect-ratio: 1;
  border-radius: 6px;
  font-size: 12px;
}

.calendar-mini-grid button.outside {
  color: #b3b6bd;
}

.calendar-mini-grid button.selected {
  color: #ffffff;
  background: #5b57d6;
}

.calendar-agenda-block {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--app-border-soft);
}

.calendar-agenda-block h3,
.calendar-list-controls h3 {
  margin: 0;
  color: var(--app-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.calendar-agenda-list {
  display: grid;
  gap: 13px;
}

.calendar-agenda-item {
  --event-color: #5b57d6;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.calendar-agenda-item span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.calendar-agenda-item strong,
.calendar-agenda-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-agenda-item strong {
  font-size: 13px;
  font-weight: 700;
}

.calendar-agenda-item small,
.calendar-agenda-item em {
  color: var(--app-muted);
  font-size: 12px;
  font-style: normal;
}

.calendar-empty {
  margin: 0;
  color: var(--app-muted);
  font-size: 13px;
}

.calendar-list-controls {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.calendar-list-controls header button {
  width: 24px;
  height: 24px;
  border: 1px solid var(--app-border);
  border-radius: 6px;
}

.calendar-list-controls label {
  --event-color: #5b57d6;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--app-text);
  font-size: 13px;
}

.calendar-list-controls input {
  width: 16px;
  height: 16px;
  accent-color: var(--event-color);
}

.calendar-surface.compact {
  width: 100%;
}

.calendar-surface.compact .calendar-toolbar {
  grid-template-columns: 1fr;
}

.calendar-surface.compact .calendar-layout {
  grid-template-columns: 1fr;
}

.calendar-surface.compact .calendar-agenda {
  display: none;
}

.calendar-surface.compact .calendar-day {
  min-height: 72px;
  padding: 8px;
}

.calendar-surface.compact .calendar-event-pill {
  display: none;
}

.auth-body,
.development-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30.8px;
  background: var(--background);
}

.landing-body {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  background-color: var(--background);
  background-image: none;
}

.landing-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px 30.8px 17px;
  border-bottom: 1.1px solid var(--line);
}

.landing-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.landing-logo-word {
  font-size: 17px;
  line-height: 1;
}

.landing-shell {
  flex: 1;
  width: 100%;
  display: grid;
  align-items: stretch;
}

.landing-page-flow {
  display: grid;
}

.legal-shell {
  width: min(836px, 100%);
  display: grid;
  gap: 30.8px;
}

.landing-grid {
  min-height: calc(100vh - 124px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
}

.landing-intro {
  display: grid;
  align-items: center;
  padding: clamp(44px, 8vw, 112px) 30.8px clamp(34px, 6vw, 78px);
  border-right: 1.1px solid var(--line);
}

.landing-intro-inner {
  width: min(860px, 100%);
  display: grid;
  gap: 22px;
  animation: landing-content-enter 520ms ease-out 70ms both;
}

.landing-kicker {
  color: var(--muted);
  font-size: 16px;
}

.landing-title {
  margin: 0;
  color: var(--text);
  font-size: 92px;
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0;
}

.landing-support {
  max-width: 760px;
  margin: 0;
  font-size: 25px;
  line-height: 1.22;
}

.landing-secondary {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.42;
}

.landing-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1.1px solid var(--line);
  border-left: 1.1px solid var(--line);
}

.landing-trust-row span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 5px 11px 8px;
  color: var(--muted);
  border-right: 1.1px solid var(--line);
  border-bottom: 1.1px solid var(--line);
}

.landing-theme-choice {
  width: min(310px, 44vw);
}

.landing-visual {
  display: grid;
  align-content: center;
  gap: 22px;
  padding: clamp(28px, 5vw, 66px) 30.8px;
}

.landing-model-scene {
  position: relative;
  min-height: 360px;
  border-top: 1.1px solid var(--line);
  border-left: 1.1px solid var(--line);
  overflow: hidden;
}

.landing-model-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(49, 64, 82, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(49, 64, 82, 0.12) 1px, transparent 1px);
  background-size: 52px 52px;
}

:root[data-theme="dark"] .landing-model-scene::before {
  background-image:
    linear-gradient(to right, rgba(242, 241, 220, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(242, 241, 220, 0.1) 1px, transparent 1px);
}

.model-node,
.model-line {
  position: absolute;
  z-index: 1;
}

.model-node {
  min-width: 96px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px 8px;
  color: var(--text);
  background: var(--background);
  border: 1.1px solid var(--line);
  transition: transform 180ms ease, background 180ms ease;
}

.model-node:hover {
  transform: translateY(-2px);
  background: rgba(49, 64, 82, 0.08);
}

:root[data-theme="dark"] .model-node:hover {
  background: rgba(242, 241, 220, 0.08);
}

.node-core {
  top: 43%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 132px;
}

.node-core:hover {
  transform: translate(-50%, calc(-50% - 2px));
}

.node-one { top: 13%; left: 12%; }
.node-two { top: 16%; right: 10%; }
.node-three { bottom: 18%; left: 10%; }
.node-four { bottom: 14%; right: 13%; }
.node-five { top: 58%; left: 35%; }

.model-line {
  height: 1.1px;
  background: var(--line);
  opacity: 0.62;
  transform-origin: left center;
}

.line-a {
  top: 43%;
  left: 24%;
  width: 52%;
  transform: rotate(13deg);
}

.line-b {
  top: 52%;
  left: 20%;
  width: 58%;
  transform: rotate(-18deg);
}

.line-c {
  top: 48%;
  left: 18%;
  width: 62%;
}

.landing-question-panel {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1.1px solid var(--line);
}

.landing-question-panel strong {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
}

.landing-hero {
  position: relative;
  min-height: min(650px, calc(100vh - 132px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(24px, 4vw, 58px);
  background: transparent;
  animation: landing-hero-enter 420ms ease-out both;
  transition: opacity 220ms ease, transform 220ms ease;
}

.landing-hero:hover {
  transform: translateY(-2px);
}

.landing-panel {
  display: grid;
  gap: 15.4px;
  max-width: 640px;
  padding-top: 10vh;
  animation: landing-content-enter 520ms ease-out 80ms both;
}

.landing-panel h1,
.auth-intro h1,
.legal-card h1,
.development-page h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(41.8px, 7.7vw, 79.2px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.landing-panel p,
.auth-intro p {
  max-width: 594px;
  margin: 0;
  font-size: 17.6px;
}

.landing-actions,
.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8.8px;
  margin-top: 8.8px;
}

.landing-actions {
  --landing-action-offset: -200px;
  position: relative;
  justify-content: flex-start;
  margin-top: 0;
  transform: translateY(var(--landing-action-offset));
  animation: landing-actions-enter 520ms ease-out 150ms both;
}

.landing-grid .landing-actions {
  --landing-action-offset: 0px;
}

.landing-signup-button {
  min-width: 188px;
}

.landing-proof {
  display: grid;
  align-content: center;
  padding: clamp(28px, 5vw, 66px) 30.8px;
}

.landing-proof-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0 20px;
  border-top: 1.1px solid var(--line);
}

.landing-proof-row:last-child {
  border-bottom: 1.1px solid var(--line);
}

.landing-proof-row span {
  color: var(--muted);
}

.landing-proof-row div {
  display: grid;
  gap: 7px;
}

.landing-proof-row strong {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.15;
}

.landing-proof-row small {
  max-width: 430px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.landing-question-list {
  display: grid;
  gap: 7px;
  margin: 4px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
  list-style: none;
}

.landing-question-list li {
  padding-top: 7px;
  border-top: 1.1px solid rgba(49, 64, 82, 0.28);
}

:root[data-theme="dark"] .landing-question-list li {
  border-top-color: rgba(242, 241, 220, 0.24);
}

.landing-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1.1px solid var(--line);
  border-left: 1.1px solid var(--line);
}

.landing-principles article {
  min-height: 230px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 18px 20px 22px;
  border-right: 1.1px solid var(--line);
  border-bottom: 1.1px solid var(--line);
  transition: background 180ms ease;
}

.landing-principles article:hover {
  background: rgba(49, 64, 82, 0.06);
}

:root[data-theme="dark"] .landing-principles article:hover {
  background: rgba(242, 241, 220, 0.06);
}

.landing-principles span,
.landing-principles p {
  color: var(--muted);
}

.landing-principles h2 {
  margin: 0;
  font-size: 29px;
  font-weight: 400;
  line-height: 1.08;
}

.landing-principles p {
  max-width: 390px;
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.landing-manifesto {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 30.8px;
  padding: 42px 30.8px 48px;
  border-top: 1.1px solid var(--line);
}

.landing-manifesto-copy {
  display: grid;
  gap: 15px;
  max-width: 860px;
}

.landing-manifesto p {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}

.landing-closing {
  display: grid;
  align-content: end;
  gap: 14px;
  padding-top: 4px;
  border-top: 1.1px solid var(--line);
}

.landing-closing p {
  color: var(--muted);
}

.landing-closing strong {
  max-width: 520px;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1;
}

.landing-minimal-body {
  min-height: 100vh;
  background-color: var(--background);
  background-image:
    linear-gradient(to right, rgba(49, 64, 82, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(49, 64, 82, 0.14) 1px, transparent 1px);
  background-size: 44px 44px;
}

:root[data-theme="dark"] .landing-minimal-body {
  background-image:
    linear-gradient(to right, rgba(242, 241, 220, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(242, 241, 220, 0.12) 1px, transparent 1px);
}

.landing-minimal-header {
  background: color-mix(in srgb, var(--background) 88%, transparent);
}

.landing-two-theme-choice {
  width: min(220px, 36vw);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-minimal-shell {
  min-height: calc(100vh - 72px);
  place-items: center;
  padding: clamp(32px, 7vw, 96px) 24px;
}

.landing-centerpiece {
  width: min(920px, 100%);
  display: grid;
  justify-items: center;
  gap: 28px;
  text-align: center;
  animation: landing-content-enter 420ms ease-out both;
}

.landing-centerpiece h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(48px, 9vw, 112px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
}

.landing-auth-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  border-top: 1.1px solid var(--line);
  border-left: 1.1px solid var(--line);
  background: var(--background);
}

.landing-auth-tab {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 20px 10px;
  color: var(--text);
  border-right: 1.1px solid var(--line);
  border-bottom: 1.1px solid var(--line);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.landing-auth-tab:hover,
.landing-auth-tab.active {
  background: rgba(49, 64, 82, 0.1);
}

:root[data-theme="dark"] .landing-auth-tab:hover,
:root[data-theme="dark"] .landing-auth-tab.active {
  background: rgba(242, 241, 220, 0.1);
}

.landing-redesign-body {
  min-height: 100vh;
  color: #111315;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.62) 38%, transparent 62%),
    linear-gradient(to right, rgba(17, 19, 21, 0.075) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 19, 21, 0.075) 1px, transparent 1px),
    #f7f7f4;
  background-size: auto, 72px 72px, 72px 72px, auto;
  font-family: Arial, Helvetica, sans-serif;
}

:root[data-theme="light"] .landing-redesign-body {
  color: #111315;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.62) 38%, transparent 62%),
    linear-gradient(to right, rgba(17, 19, 21, 0.075) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 19, 21, 0.075) 1px, transparent 1px),
    #f7f7f4;
  background-size: auto, 72px 72px, 72px 72px, auto;
}

:root[data-theme="dark"] .landing-redesign-body {
  color: #f2f1dc;
  background:
    radial-gradient(circle at 50% 30%, rgba(28, 30, 27, 0.92), rgba(16, 17, 15, 0.74) 42%, transparent 66%),
    linear-gradient(to right, rgba(242, 241, 220, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(242, 241, 220, 0.09) 1px, transparent 1px),
    #10110f;
  background-size: auto, 72px 72px, 72px 72px, auto;
}

.landing-redesign-header {
  min-height: 100px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 20px 48px;
  border-bottom: 1px solid rgba(17, 19, 21, 0.12);
  background: #ffffff;
}

:root[data-theme="light"] .landing-redesign-header {
  background: #ffffff;
}

:root[data-theme="dark"] .landing-redesign-header {
  border-bottom-color: rgba(242, 241, 220, 0.16);
  background: color-mix(in srgb, #10110f 86%, transparent);
}

.landing-redesign-logo-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
}

.landing-redesign-logo-word {
  color: currentColor;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1;
  text-transform: uppercase;
}

.landing-redesign-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(22px, 3.7vw, 52px);
  color: currentColor;
  font-size: 14px;
}

.landing-redesign-nav > a {
  color: currentColor;
  white-space: nowrap;
}

.landing-redesign-nav > a:hover,
.landing-redesign-footer a:hover {
  opacity: 0.58;
}

.landing-redesign-login {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  padding-left: clamp(28px, 4vw, 58px);
  border-left: 1px solid rgba(17, 19, 21, 0.12);
}

:root[data-theme="dark"] .landing-redesign-login {
  border-left-color: rgba(242, 241, 220, 0.16);
}

.landing-redesign-theme {
  display: inline-flex;
  align-items: center;
}

.landing-theme-switch {
  position: relative;
  isolation: isolate;
  width: 124px;
  height: 46px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  padding: 0;
  color: #111315;
  background: linear-gradient(90deg, #ffffff 0 50%, #f7f7f5 50% 100%);
  border: 1px solid rgba(17, 19, 21, 0.08);
  border-radius: 13px;
  box-shadow:
    0 12px 24px rgba(17, 19, 21, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  cursor: pointer;
  overflow: hidden;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.landing-theme-switch::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 0;
  width: 1px;
  height: 100%;
  background: rgba(17, 19, 21, 0.08);
  transform: translateX(-0.5px);
  transition: background 180ms ease;
}

.landing-theme-switch:hover {
  box-shadow:
    0 14px 28px rgba(17, 19, 21, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.landing-theme-switch:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.landing-theme-switch-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: color 180ms ease, opacity 180ms ease;
}

.landing-theme-switch-icon.sun {
  color: #111315;
}

.landing-theme-switch-icon.moon {
  color: #5c6166;
}

.landing-theme-switch-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.landing-theme-switch-icon.moon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: none;
}

.landing-theme-switch.is-dark,
:root[data-theme="dark"] .landing-theme-switch {
  color: #f2f1dc;
  background: linear-gradient(90deg, #141619 0 50%, #1b1d20 50% 100%);
  border-color: rgba(242, 241, 220, 0.08);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.landing-theme-switch.is-dark::before,
:root[data-theme="dark"] .landing-theme-switch::before {
  background: rgba(242, 241, 220, 0.1);
}

.landing-theme-switch.is-dark .landing-theme-switch-icon.sun,
:root[data-theme="dark"] .landing-theme-switch .landing-theme-switch-icon.sun {
  color: rgba(242, 241, 220, 0.58);
}

.landing-theme-switch.is-dark .landing-theme-switch-icon.moon,
:root[data-theme="dark"] .landing-theme-switch .landing-theme-switch-icon.moon {
  color: #f2f1dc;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .landing-theme-switch {
    color: #f2f1dc;
    background: linear-gradient(90deg, #141619 0 50%, #1b1d20 50% 100%);
    border-color: rgba(242, 241, 220, 0.08);
    box-shadow:
      0 12px 24px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  :root:not([data-theme="light"]) .landing-theme-switch::before {
    background: rgba(242, 241, 220, 0.1);
  }

  :root:not([data-theme="light"]) .landing-theme-switch .landing-theme-switch-icon.sun {
    color: rgba(242, 241, 220, 0.58);
  }

  :root:not([data-theme="light"]) .landing-theme-switch .landing-theme-switch-icon.moon {
    color: #f2f1dc;
  }
}

.landing-redesign-hero {
  position: relative;
  min-height: 630px;
  display: grid;
  place-items: center;
  padding: 90px 24px 72px;
  border-bottom: 1px solid rgba(17, 19, 21, 0.12);
  overflow: hidden;
}

:root[data-theme="dark"] .landing-redesign-hero {
  border-bottom-color: rgba(242, 241, 220, 0.16);
}

.landing-redesign-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, transparent 0, transparent 159px, rgba(17, 19, 21, 0.052) 160px, transparent 161px),
    linear-gradient(to bottom, transparent 0, transparent 119px, rgba(17, 19, 21, 0.052) 120px, transparent 121px);
  background-size: 160px 120px;
}

:root[data-theme="dark"] .landing-redesign-hero::before {
  background-image:
    linear-gradient(to right, transparent 0, transparent 159px, rgba(242, 241, 220, 0.062) 160px, transparent 161px),
    linear-gradient(to bottom, transparent 0, transparent 119px, rgba(242, 241, 220, 0.062) 120px, transparent 121px);
}

.landing-grid-marks span {
  position: absolute;
  z-index: 0;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(17, 19, 21, 0.18);
  transform: translate(-50%, -50%);
}

.landing-grid-marks .mark-two,
.landing-grid-marks .mark-four,
.landing-grid-marks .mark-seven {
  width: 10px;
  height: 10px;
  background: rgba(17, 19, 21, 0.18);
}

:root[data-theme="dark"] .landing-grid-marks span {
  border-color: rgba(242, 241, 220, 0.2);
}

:root[data-theme="dark"] .landing-grid-marks .mark-two,
:root[data-theme="dark"] .landing-grid-marks .mark-four,
:root[data-theme="dark"] .landing-grid-marks .mark-seven {
  background: rgba(242, 241, 220, 0.2);
}

.mark-one { top: 24%; left: 15%; }
.mark-two { top: 43%; left: 20.8%; }
.mark-three { top: 20%; left: 31%; }
.mark-four { top: 54%; left: 31%; }
.mark-five { top: 33%; left: 69%; }
.mark-six { top: 42%; left: 88.5%; }
.mark-seven { top: 54%; left: 79.2%; }
.mark-eight { top: 64%; left: 84.5%; }

.landing-redesign-center {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
}

.landing-redesign-center h1 {
  margin: 0 0 32px;
  color: currentColor;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(70px, 7vw, 112px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0;
}

.landing-redesign-center p {
  margin: 0;
  color: rgba(17, 19, 21, 0.74);
  font-size: 18px;
  line-height: 1.55;
}

:root[data-theme="dark"] .landing-redesign-center p {
  color: rgba(242, 241, 220, 0.74);
}

.landing-redesign-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}

.landing-redesign-primary,
.landing-redesign-secondary {
  min-width: 194px;
  min-height: 55px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 26px 11px;
  border: 1px solid rgba(17, 19, 21, 0.62);
  font-size: 15px;
}

.landing-redesign-primary {
  color: #f7f7f4;
  background: #111315;
}

.landing-redesign-secondary {
  color: #111315;
  background: transparent;
}

.landing-redesign-primary:hover,
.landing-redesign-secondary:hover {
  transform: translateY(-1px);
}

:root[data-theme="dark"] .landing-redesign-primary,
:root[data-theme="dark"] .landing-redesign-secondary {
  border-color: rgba(242, 241, 220, 0.62);
}

:root[data-theme="dark"] .landing-redesign-primary {
  color: #10110f;
  background: #f2f1dc;
}

:root[data-theme="dark"] .landing-redesign-secondary {
  color: #f2f1dc;
}

.landing-redesign-privacy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 46px;
  color: rgba(17, 19, 21, 0.62);
  font-size: 14px;
}

:root[data-theme="dark"] .landing-redesign-privacy {
  color: rgba(242, 241, 220, 0.68);
}

.landing-redesign-privacy svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-redesign-features {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid rgba(17, 19, 21, 0.12);
}

:root[data-theme="dark"] .landing-redesign-features {
  border-bottom-color: rgba(242, 241, 220, 0.16);
}

.landing-redesign-features article {
  min-height: 205px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  padding: 28px 26px;
  text-align: center;
  border-right: 1px solid rgba(17, 19, 21, 0.12);
}

.landing-redesign-features article:last-child {
  border-right: 0;
}

:root[data-theme="dark"] .landing-redesign-features article {
  border-right-color: rgba(242, 241, 220, 0.16);
}

.landing-redesign-features svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-redesign-features h2 {
  margin: 6px 0 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 400;
}

.landing-redesign-features p {
  margin: 0;
  color: rgba(17, 19, 21, 0.56);
  font-size: 14px;
  line-height: 1.7;
}

:root[data-theme="dark"] .landing-redesign-features p {
  color: rgba(242, 241, 220, 0.62);
}

.landing-redesign-footer {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 48px;
  color: rgba(17, 19, 21, 0.52);
  font-size: 13px;
}

:root[data-theme="dark"] .landing-redesign-footer {
  color: rgba(242, 241, 220, 0.58);
}

.landing-redesign-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
}

.landing-redesign-footer a {
  color: currentColor;
}

.legal-redesign-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #111315;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.54) 40%, transparent 70%),
    linear-gradient(to right, rgba(17, 19, 21, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 19, 21, 0.035) 1px, transparent 1px),
    #f8f8f6;
  background-size: auto, 72px 72px, 72px 72px, auto;
  font-family: Arial, Helvetica, sans-serif;
}

.front-back-link,
.login-back-link {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: #111315;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(17, 19, 21, 0.12);
  border-radius: 4px;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(17, 19, 21, 0.05);
}

:root[data-theme="dark"] .front-back-link,
:root[data-theme="dark"] .login-back-link {
  color: #f2f1dc;
  background: rgba(10, 12, 11, 0.82);
  border-color: rgba(242, 241, 220, 0.12);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.front-back-link:hover,
.login-back-link:hover {
  opacity: 0.72;
}

.front-back-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.legal-redesign-body > .legal-back-home {
  position: relative;
  z-index: 3;
  margin: 24px clamp(28px, 6vw, 86px) -22px;
}

.legal-shell .legal-back-home {
  justify-self: start;
}

:root[data-theme="dark"] .legal-redesign-body {
  color: #f2f1dc;
  background:
    radial-gradient(circle at 50% 0%, rgba(28, 30, 27, 0.9), rgba(16, 17, 15, 0.72) 44%, transparent 72%),
    linear-gradient(to right, rgba(242, 241, 220, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(242, 241, 220, 0.055) 1px, transparent 1px),
    #10110f;
  background-size: auto, 72px 72px, 72px 72px, auto;
}

.legal-redesign-hero {
  position: relative;
  min-height: 354px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: center;
  gap: 52px;
  padding: 64px clamp(28px, 6vw, 86px) 52px;
  border-bottom: 1px solid rgba(17, 19, 21, 0.1);
  overflow: hidden;
}

.legal-redesign-hero.compact {
  grid-template-columns: minmax(0, 780px);
}

:root[data-theme="dark"] .legal-redesign-hero {
  border-bottom-color: rgba(242, 241, 220, 0.14);
}

.legal-redesign-hero-copy {
  max-width: 660px;
}

.legal-redesign-hero-copy > span {
  display: block;
  margin-bottom: 18px;
  color: rgba(17, 19, 21, 0.66);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

:root[data-theme="dark"] .legal-redesign-hero-copy > span {
  color: rgba(242, 241, 220, 0.62);
}

.legal-redesign-hero h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(48px, 6vw, 74px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.legal-redesign-hero p {
  max-width: 700px;
  margin: 28px 0 0;
  color: rgba(17, 19, 21, 0.68);
  font-size: 17px;
  line-height: 1.7;
}

:root[data-theme="dark"] .legal-redesign-hero p {
  color: rgba(242, 241, 220, 0.68);
}

.legal-updated-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  color: rgba(17, 19, 21, 0.62);
  font-size: 14px;
}

:root[data-theme="dark"] .legal-updated-row {
  color: rgba(242, 241, 220, 0.66);
}

.legal-redesign-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.legal-hero-visual {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1;
  justify-self: center;
  display: grid;
  place-items: center;
  color: #111315;
}

:root[data-theme="dark"] .legal-hero-visual {
  color: #f2f1dc;
}

.legal-hero-visual::before,
.legal-hero-visual::after {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px solid rgba(17, 19, 21, 0.055);
  box-shadow:
    0 0 0 28px rgba(17, 19, 21, 0.026),
    0 0 0 58px rgba(17, 19, 21, 0.02),
    0 0 0 88px rgba(17, 19, 21, 0.015);
}

.legal-hero-visual::after {
  inset: 25%;
  border-radius: 0;
  border-color: rgba(17, 19, 21, 0.06);
  box-shadow: none;
  transform: rotate(45deg);
}

:root[data-theme="dark"] .legal-hero-visual::before,
:root[data-theme="dark"] .legal-hero-visual::after {
  border-color: rgba(242, 241, 220, 0.07);
}

.legal-hero-visual .legal-redesign-icon {
  position: relative;
  z-index: 1;
  width: 150px;
  height: 150px;
  opacity: 0.7;
  stroke-width: 0.9;
}

.legal-orbit-dot {
  position: absolute;
  z-index: 2;
  width: 5px;
  height: 5px;
  background: rgba(17, 19, 21, 0.25);
}

:root[data-theme="dark"] .legal-orbit-dot {
  background: rgba(242, 241, 220, 0.32);
}

.legal-orbit-dot.one {
  top: 8%;
  left: 22%;
}

.legal-orbit-dot.two {
  top: 8%;
  right: 22%;
}

.legal-orbit-dot.three {
  top: 50%;
  left: 8%;
}

.legal-orbit-dot.four {
  top: 50%;
  right: 8%;
}

.legal-redesign-content {
  width: min(100%, 1120px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 28px;
  margin: 0 auto;
  padding: 24px 28px 24px;
}

.legal-redesign-content.single {
  grid-template-columns: minmax(0, 1fr);
}

.legal-redesign-list {
  min-width: 0;
  border: 1px solid rgba(17, 19, 21, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.46);
}

:root[data-theme="dark"] .legal-redesign-list {
  background: rgba(16, 17, 15, 0.5);
  border-color: rgba(242, 241, 220, 0.14);
}

.legal-redesign-section {
  scroll-margin-top: 20px;
  border-bottom: 1px solid rgba(17, 19, 21, 0.1);
}

.legal-redesign-section:last-child {
  border-bottom: 0;
}

:root[data-theme="dark"] .legal-redesign-section {
  border-bottom-color: rgba(242, 241, 220, 0.13);
}

.legal-redesign-section summary {
  min-height: 110px;
  display: grid;
  grid-template-columns: 58px 42px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 18px;
  padding: 18px 36px 18px 34px;
  list-style: none;
  cursor: pointer;
}

.legal-redesign-section summary::-webkit-details-marker {
  display: none;
}

.legal-redesign-section summary:hover {
  background: rgba(17, 19, 21, 0.025);
}

:root[data-theme="dark"] .legal-redesign-section summary:hover {
  background: rgba(242, 241, 220, 0.04);
}

.legal-section-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #111315;
  background: #f3f3f4;
  border: 1px solid rgba(17, 19, 21, 0.045);
  border-radius: 10px;
}

:root[data-theme="dark"] .legal-section-icon {
  color: #f2f1dc;
  background: rgba(242, 241, 220, 0.07);
  border-color: rgba(242, 241, 220, 0.08);
}

.legal-section-number {
  align-self: start;
  padding-top: 9px;
  color: rgba(17, 19, 21, 0.7);
  font-size: 13px;
}

:root[data-theme="dark"] .legal-section-number {
  color: rgba(242, 241, 220, 0.72);
}

.legal-section-copy {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.legal-section-copy strong {
  color: #111315;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

:root[data-theme="dark"] .legal-section-copy strong {
  color: #f2f1dc;
}

.legal-section-copy span,
.legal-redesign-section > p {
  color: rgba(17, 19, 21, 0.68);
  font-size: 14px;
  line-height: 1.65;
}

:root[data-theme="dark"] .legal-section-copy span,
:root[data-theme="dark"] .legal-redesign-section > p {
  color: rgba(242, 241, 220, 0.68);
}

.legal-section-chevron {
  width: 18px;
  height: 18px;
  color: rgba(17, 19, 21, 0.72);
  transition: transform 180ms ease;
}

:root[data-theme="dark"] .legal-section-chevron {
  color: rgba(242, 241, 220, 0.72);
}

.legal-redesign-section[open] .legal-section-chevron {
  transform: rotate(180deg);
}

.legal-redesign-section > p {
  margin: -4px 72px 24px 152px;
  padding-top: 16px;
  border-top: 1px solid rgba(17, 19, 21, 0.08);
}

:root[data-theme="dark"] .legal-redesign-section > p {
  border-top-color: rgba(242, 241, 220, 0.1);
}

.legal-page-nav {
  position: sticky;
  top: 24px;
  padding: 28px 28px 24px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(17, 19, 21, 0.1);
  border-radius: 8px;
}

:root[data-theme="dark"] .legal-page-nav {
  background: rgba(16, 17, 15, 0.62);
  border-color: rgba(242, 241, 220, 0.14);
}

.legal-page-nav h2 {
  margin: 0 0 22px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.legal-page-nav ol {
  display: grid;
  gap: 17px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-page-nav li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  color: rgba(17, 19, 21, 0.6);
  font-size: 13px;
}

:root[data-theme="dark"] .legal-page-nav li {
  color: rgba(242, 241, 220, 0.62);
}

.legal-page-nav a:hover {
  color: #111315;
}

:root[data-theme="dark"] .legal-page-nav a:hover {
  color: #f2f1dc;
}

.legal-contact-card {
  width: min(calc(100% - 56px), 1120px);
  min-height: 104px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin: 0 auto 32px;
  padding: 22px 28px;
  background: linear-gradient(110deg, rgba(246, 245, 255, 0.95), rgba(255, 255, 255, 0.66));
  border: 1px solid rgba(17, 19, 21, 0.09);
  border-radius: 8px;
}

:root[data-theme="dark"] .legal-contact-card {
  background: linear-gradient(110deg, rgba(39, 35, 61, 0.38), rgba(20, 21, 19, 0.72));
  border-color: rgba(242, 241, 220, 0.13);
}

.legal-contact-card > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.08);
  border-radius: 9px;
}

.legal-contact-card h2 {
  margin: 0 0 9px;
  font-size: 17px;
  font-weight: 600;
}

.legal-contact-card p {
  margin: 0;
  color: rgba(17, 19, 21, 0.62);
  font-size: 14px;
}

:root[data-theme="dark"] .legal-contact-card p {
  color: rgba(242, 241, 220, 0.66);
}

.legal-contact-card a {
  min-width: 170px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #111315;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(17, 19, 21, 0.34);
  border-radius: 5px;
  font-size: 14px;
}

:root[data-theme="dark"] .legal-contact-card a {
  color: #f2f1dc;
  background: rgba(242, 241, 220, 0.06);
  border-color: rgba(242, 241, 220, 0.3);
}

.legal-contact-card a:hover {
  transform: translateY(-1px);
}

.legal-contact-card a .legal-redesign-icon {
  width: 17px;
  height: 17px;
}

.legal-redesign-footer {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: auto;
  padding: 22px clamp(28px, 6vw, 86px);
  color: rgba(17, 19, 21, 0.55);
  border-top: 1px solid rgba(17, 19, 21, 0.1);
  font-size: 13px;
}

:root[data-theme="dark"] .legal-redesign-footer {
  color: rgba(242, 241, 220, 0.58);
  border-top-color: rgba(242, 241, 220, 0.14);
}

.legal-footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.legal-footer-brand span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
}

.legal-footer-brand p {
  margin: 0;
}

.legal-redesign-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
}

.legal-redesign-footer a {
  color: currentColor;
}

.legal-redesign-footer a:hover {
  opacity: 0.58;
}

.login-redesign-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #111315;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.62) 42%, transparent 68%),
    linear-gradient(to right, rgba(17, 19, 21, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 19, 21, 0.07) 1px, transparent 1px),
    #f7f7f4;
  background-size: auto, 72px 72px, 72px 72px, auto;
  font-family: Arial, Helvetica, sans-serif;
}

:root[data-theme="dark"] .login-redesign-body {
  color: #f2f1dc;
  background:
    radial-gradient(circle at 50% 35%, rgba(28, 30, 27, 0.9), rgba(16, 17, 15, 0.74) 44%, transparent 70%),
    linear-gradient(to right, rgba(242, 241, 220, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(242, 241, 220, 0.09) 1px, transparent 1px),
    #10110f;
  background-size: auto, 72px 72px, 72px 72px, auto;
}

.login-redesign-header {
  min-height: 100px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 20px 48px;
  border-bottom: 1px solid rgba(17, 19, 21, 0.12);
  background: color-mix(in srgb, #f7f7f4 82%, transparent);
}

:root[data-theme="dark"] .login-redesign-header {
  border-bottom-color: rgba(242, 241, 220, 0.16);
  background: color-mix(in srgb, #10110f 86%, transparent);
}

.login-redesign-logo,
.login-redesign-nav,
.login-back-link,
.login-footer-privacy,
.login-form-row,
.login-remember,
.login-social-button {
  display: flex;
  align-items: center;
}

.login-redesign-logo {
  gap: 13px;
}

.login-brand-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.login-brand-mark.large {
  width: 58px;
  height: 58px;
}

.login-redesign-logo-word,
.login-panel-brand span {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 5px;
  line-height: 1;
  text-transform: uppercase;
}

.login-redesign-nav {
  justify-content: flex-end;
  gap: clamp(22px, 3.7vw, 52px);
  font-size: 14px;
}

.login-redesign-nav a,
.login-redesign-footer a {
  display: inline-flex;
  align-items: center;
  color: currentColor;
  white-space: nowrap;
}

.login-redesign-nav a:hover,
.login-redesign-footer a:hover,
.login-back-link:hover {
  opacity: 0.58;
}

.login-redesign-login-link {
  min-height: 56px;
  padding-left: clamp(28px, 4vw, 58px);
  border-left: 1px solid rgba(17, 19, 21, 0.12);
}

:root[data-theme="dark"] .login-redesign-login-link {
  border-left-color: rgba(242, 241, 220, 0.16);
}

.login-redesign-main {
  flex: 1;
  width: 100%;
  padding: 30px 48px 40px;
}

.login-back-link {
  width: fit-content;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.login-back-link svg,
.login-input-control svg,
.login-footer-privacy svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.login-redesign-card {
  width: min(998px, 100%);
  min-height: 682px;
  display: grid;
  grid-template-columns: minmax(340px, 0.43fr) minmax(420px, 0.57fr);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(17, 19, 21, 0.15);
  border-radius: 6px;
  background: rgba(247, 247, 244, 0.72);
  box-shadow: 0 16px 34px rgba(17, 19, 21, 0.08);
  backdrop-filter: blur(10px);
}

:root[data-theme="dark"] .login-redesign-card {
  border-color: rgba(242, 241, 220, 0.18);
  background: rgba(16, 17, 15, 0.72);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.signup-redesign-card {
  min-height: 748px;
}

.login-redesign-panel {
  position: relative;
  min-height: 682px;
  display: grid;
  align-content: start;
  padding: 68px 74px 28px;
  border-right: 1px solid rgba(17, 19, 21, 0.12);
  overflow: hidden;
}

:root[data-theme="dark"] .login-redesign-panel {
  border-right-color: rgba(242, 241, 220, 0.16);
}

.signup-redesign-panel {
  min-height: 748px;
}

.login-panel-brand {
  display: grid;
  justify-items: start;
  gap: 24px;
}

.login-panel-rule {
  width: 38px;
  height: 1px;
  margin: 44px 0 36px;
  background: rgba(17, 19, 21, 0.34);
}

:root[data-theme="dark"] .login-panel-rule {
  background: rgba(242, 241, 220, 0.38);
}

.login-panel-copy h1 {
  max-width: 310px;
  margin: 0;
  color: currentColor;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.08;
}

.login-panel-copy p {
  max-width: 320px;
  margin: 18px 0 0;
  color: rgba(17, 19, 21, 0.64);
  font-size: 15px;
  line-height: 1.55;
}

:root[data-theme="dark"] .login-panel-copy p {
  color: rgba(242, 241, 220, 0.68);
}

.login-cube-illustration {
  align-self: end;
  justify-self: center;
  width: min(310px, 92%);
  margin-top: 50px;
  color: rgba(17, 19, 21, 0.22);
}

:root[data-theme="dark"] .login-cube-illustration {
  color: rgba(242, 241, 220, 0.26);
}

.login-form-panel {
  display: grid;
  place-items: center;
  padding: 56px 40px;
}

.login-form-wrap {
  width: min(368px, 100%);
}

.login-form-heading h2 {
  margin: 0;
  color: currentColor;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
}

.login-form-heading p {
  margin: 12px 0 34px;
  color: rgba(17, 19, 21, 0.6);
  font-size: 15px;
}

:root[data-theme="dark"] .login-form-heading p {
  color: rgba(242, 241, 220, 0.66);
}

.login-form {
  display: grid;
  gap: 24px;
}

.login-form label {
  display: grid;
  gap: 10px;
}

.login-form label > span:first-child {
  font-size: 13px;
}

.signup-form-panel {
  padding: 38px 40px;
}

.signup-form-heading p {
  margin-bottom: 17px;
}

.signup-form {
  gap: 12px;
}

.signup-form label {
  gap: 7px;
}

.signup-form .login-input-control input {
  min-height: 39px;
  padding-top: 6px;
  padding-bottom: 7px;
  font-size: 13px;
}

.signup-form .login-input-action {
  width: 26px;
  height: 26px;
}

.login-input-control {
  position: relative;
  color: rgba(17, 19, 21, 0.58);
}

:root[data-theme="dark"] .login-input-control {
  color: rgba(242, 241, 220, 0.62);
}

.login-input-control svg {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  pointer-events: none;
}

.login-input-control input {
  width: 100%;
  min-height: 49px;
  padding: 8px 16px 10px 43px;
  color: #111315;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(17, 19, 21, 0.2);
  border-radius: 4px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.login-input-control.has-action input {
  padding-right: 48px;
}

:root[data-theme="dark"] .login-input-control input {
  color: #f2f1dc;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(242, 241, 220, 0.24);
}

.login-input-control input::placeholder {
  color: rgba(17, 19, 21, 0.38);
}

:root[data-theme="dark"] .login-input-control input::placeholder {
  color: rgba(242, 241, 220, 0.4);
}

.login-input-control input:focus {
  border-color: rgba(17, 19, 21, 0.5);
  box-shadow: 0 0 0 3px rgba(17, 19, 21, 0.08);
}

:root[data-theme="dark"] .login-input-control input:focus {
  border-color: rgba(242, 241, 220, 0.58);
  box-shadow: 0 0 0 3px rgba(242, 241, 220, 0.09);
}

.login-input-action {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  color: rgba(17, 19, 21, 0.52);
  background: transparent;
  border: 0;
  transform: translateY(-50%);
  cursor: pointer;
}

:root[data-theme="dark"] .login-input-action {
  color: rgba(242, 241, 220, 0.58);
}

.login-input-action svg {
  position: static;
  width: 18px;
  height: 18px;
  transform: none;
  pointer-events: auto;
}

.login-form-row {
  justify-content: space-between;
  gap: 18px;
  margin-top: -2px;
  color: rgba(17, 19, 21, 0.6);
  font-size: 13px;
}

:root[data-theme="dark"] .login-form-row {
  color: rgba(242, 241, 220, 0.66);
}

.login-remember {
  display: inline-flex !important;
  grid-template-columns: none !important;
  gap: 9px !important;
}

.login-remember input {
  width: 14px;
  height: 14px;
  accent-color: #111315;
}

.login-link-button {
  padding: 0;
  color: currentColor;
  background: transparent;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}

.login-primary-button,
.login-social-button {
  width: 100%;
  min-height: 44px;
  justify-content: center;
  gap: 10px;
  border-radius: 4px;
  font-size: 15px;
}

.login-primary-button {
  margin-top: 14px;
  color: #f7f7f4;
  background: #111315;
  border: 1px solid #111315;
  box-shadow: 0 10px 20px rgba(17, 19, 21, 0.12);
  cursor: pointer;
}

.login-primary-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

:root[data-theme="dark"] .login-primary-button {
  color: #10110f;
  background: #f2f1dc;
  border-color: #f2f1dc;
}

.login-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 24px 0 18px;
  color: rgba(17, 19, 21, 0.48);
  font-size: 13px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  background: rgba(17, 19, 21, 0.12);
}

:root[data-theme="dark"] .login-divider {
  color: rgba(242, 241, 220, 0.56);
}

:root[data-theme="dark"] .login-divider::before,
:root[data-theme="dark"] .login-divider::after {
  background: rgba(242, 241, 220, 0.16);
}

.login-social-stack {
  display: grid;
  gap: 8px;
}

.login-social-button {
  color: #111315;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(17, 19, 21, 0.22);
  cursor: default;
}

:root[data-theme="dark"] .login-social-button {
  color: #f2f1dc;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(242, 241, 220, 0.24);
}

.login-google-mark,
.login-apple-mark {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  font-weight: 700;
  line-height: 1;
}

.login-google-mark {
  color: #4285f4;
  font-size: 18px;
}

.login-apple-mark {
  position: relative;
}

.login-apple-mark::before {
  content: "";
  width: 13px;
  height: 15px;
  display: block;
  border-radius: 48% 48% 44% 44%;
  background: currentColor;
}

.login-create-account {
  margin: 30px 0 0;
  color: rgba(17, 19, 21, 0.64);
  text-align: center;
  font-size: 14px;
}

.login-create-account a {
  color: #111315;
  text-decoration: underline;
}

:root[data-theme="dark"] .login-create-account {
  color: rgba(242, 241, 220, 0.68);
}

:root[data-theme="dark"] .login-create-account a {
  color: #f2f1dc;
}

.login-form-message {
  margin: 0 0 20px;
}

.signup-checkbox-stack {
  display: grid;
  gap: 9px;
  margin: 1px 0 0;
}

.signup-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 10px !important;
  color: rgba(17, 19, 21, 0.62);
  font-size: 12px;
  line-height: 1.35;
}

:root[data-theme="dark"] .signup-check {
  color: rgba(242, 241, 220, 0.66);
}

.signup-check input {
  width: 13px;
  height: 13px;
  margin: 1px 0 0;
  accent-color: #111315;
  flex: 0 0 auto;
}

:root[data-theme="dark"] .signup-check input {
  accent-color: #f2f1dc;
}

.signup-check a,
.signup-login-link a {
  color: currentColor;
  text-decoration: underline;
}

.signup-form .login-primary-button {
  min-height: 40px;
  margin-top: 5px;
  font-size: 14px;
}

.signup-divider {
  margin: 16px 0 14px;
}

.signup-form-wrap .login-social-stack {
  gap: 7px;
}

.signup-form-wrap .login-social-button {
  min-height: 40px;
}

.signup-login-link {
  margin-top: 25px;
}

.auth-recovery-card {
  width: min(960px, 100%);
  min-height: 700px;
}

.verify-email-card {
  min-height: 720px;
}

.auth-recovery-panel {
  min-height: 700px;
  padding-top: 66px;
}

.verify-email-card .auth-recovery-panel {
  min-height: 720px;
}

.auth-recovery-form-panel {
  padding: 54px 40px;
}

.auth-recovery-form-wrap {
  width: min(354px, 100%);
}

.verify-email-wrap {
  text-align: center;
}

.auth-recovery-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin: 0 0 27px;
  color: #111315;
  background: rgba(17, 19, 21, 0.035);
  border-radius: 7px;
}

.verify-email-wrap .auth-recovery-icon {
  margin-right: auto;
  margin-left: auto;
}

.auth-recovery-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.auth-recovery-icon.success {
  position: relative;
  width: 80px;
  height: 80px;
  color: #23a455;
  background: rgba(35, 164, 85, 0.1);
  border-radius: 11px;
}

.auth-recovery-icon.success > svg {
  width: 40px;
  height: 40px;
}

.auth-recovery-icon.success span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #23a455;
  border-radius: 999px;
}

.auth-recovery-icon.success span svg {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}

:root[data-theme="dark"] .auth-recovery-icon {
  color: #f2f1dc;
  background: rgba(242, 241, 220, 0.07);
}

:root[data-theme="dark"] .auth-recovery-icon.success {
  color: #65cf8d;
  background: rgba(35, 164, 85, 0.16);
}

.auth-recovery-heading h2 {
  font-size: 31px;
}

.auth-recovery-heading p {
  margin-bottom: 36px;
}

.auth-recovery-heading.centered p {
  margin-bottom: 20px;
}

.auth-recovery-form {
  display: grid;
  gap: 22px;
}

.auth-recovery-form .login-primary-button {
  margin-top: 8px;
}

.auth-recovery-divider {
  margin: 28px 0 26px;
}

.verify-divider {
  margin: 28px 0 26px;
}

.auth-recovery-back {
  margin: 0;
  font-size: 14px;
}

.auth-recovery-back a {
  text-decoration: underline;
}

.auth-recovery-back.subtle {
  margin-top: 16px;
  color: rgba(17, 19, 21, 0.6);
}

.auth-email-display {
  min-height: 48px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 8px 16px;
  color: #111315;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(17, 19, 21, 0.16);
  border-radius: 4px;
  font-size: 15px;
}

:root[data-theme="dark"] .auth-email-display {
  color: #f2f1dc;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(242, 241, 220, 0.2);
}

.auth-secondary-button {
  display: flex;
  margin-top: 16px;
  text-decoration: none;
  cursor: pointer;
}

.auth-secondary-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.auth-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 42px 0 0;
  color: rgba(17, 19, 21, 0.58);
  font-size: 13px;
}

.auth-security-note svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

:root[data-theme="dark"] .auth-security-note,
:root[data-theme="dark"] .auth-recovery-back.subtle {
  color: rgba(242, 241, 220, 0.64);
}

.password-strength-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 4px;
  margin-top: -11px;
}

.password-strength-row span {
  height: 3px;
  border-radius: 99px;
  background: rgba(17, 19, 21, 0.1);
}

.password-strength-row span.strong {
  background: #111315;
}

.password-strength-row b {
  padding-left: 26px;
  color: #23a455;
  font-size: 12px;
  font-weight: 400;
}

:root[data-theme="dark"] .password-strength-row span {
  background: rgba(242, 241, 220, 0.16);
}

:root[data-theme="dark"] .password-strength-row span.strong {
  background: #f2f1dc;
}

.login-resend-form {
  margin-bottom: 18px;
}

.login-redesign-footer {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 48px;
  color: rgba(17, 19, 21, 0.52);
  font-size: 13px;
  border-top: 1px solid rgba(17, 19, 21, 0.1);
}

:root[data-theme="dark"] .login-redesign-footer {
  color: rgba(242, 241, 220, 0.58);
  border-top-color: rgba(242, 241, 220, 0.14);
}

.login-footer-privacy {
  gap: 10px;
}

.login-footer-privacy svg {
  width: 17px;
  height: 17px;
}

.login-redesign-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
}

.landing-anchor-target {
  display: block;
  height: 0;
  overflow: hidden;
}

.button {
  min-height: 37.4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15.4px;
  color: var(--text);
  background: transparent;
  border: 1.1px solid var(--line);
  border-radius: 0;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.button:hover {
  background: rgba(49, 64, 82, 0.08);
}

.button.large {
  min-height: 41.8px;
  padding: 0 19.8px;
}

.button:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.auth-shell {
  width: min(1078px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 418px;
  gap: 48.4px;
  align-items: stretch;
}

.auth-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 39.6px;
}

.auth-intro h1 {
  max-width: 616px;
  margin: 13.2px 0 15.4px;
}

.development-card {
  width: min(460px, 100%);
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 30px;
  text-align: center;
  border: 1.1px solid var(--line);
  background: var(--background);
}

.development-card h1 {
  margin: 0;
}

.development-card p {
  margin: 0;
  color: var(--muted);
}

.development-card .form-error {
  color: var(--danger);
}

.auth-card,
.legal-card,
.cookie-consent-sheet {
  padding: 26.4px;
  background: transparent;
  border: 1.1px solid var(--line);
  transition: background 180ms ease, border-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.auth-heading h2,
.legal-section-list h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
}

.auth-heading p {
  margin: 6.6px 0 22px;
}

.auth-form,
.dialog-form {
  display: grid;
  gap: 15.4px;
}

.auth-form label,
.dialog-form label {
  display: grid;
  gap: 5.5px;
}

.auth-form input,
.dialog-form input,
.dialog-form textarea,
.dialog-form select {
  width: 100%;
  min-height: 37.4px;
  padding: 6.6px 8.8px;
  color: var(--text);
  background: transparent;
  border: 1.1px solid var(--line);
  border-radius: 0;
  outline: none;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.auth-form input:focus,
.dialog-form input:focus,
.dialog-form textarea:focus,
.dialog-form select:focus {
  box-shadow: 0 0 0 2.2px rgba(49, 64, 82, 0.18);
}

.auth-form .button {
  width: 100%;
  margin-top: 2.2px;
}

.policy-agreement {
  grid-template-columns: 15.4px minmax(0, 1fr);
  align-items: start;
  gap: 8.8px;
}

.policy-agreement input[type="checkbox"] {
  width: 15.4px;
  min-height: 15.4px;
  margin: 2.2px 0 0;
  padding: 0;
  accent-color: var(--line);
}

.policy-agreement a,
.auth-switch a,
.legal-card a:not(.button) {
  text-decoration: underline;
}

.auth-switch {
  margin: 19.8px 0 0;
  text-align: center;
}

.form-error,
.form-success {
  margin-bottom: 15.4px;
  padding: 11px 13.2px;
  border: 1.1px solid currentColor;
}

.form-error {
  color: var(--danger);
}

.form-success {
  color: var(--success);
}

.verification-email {
  margin: 0 0 15.4px;
  padding: 8.8px;
  border: 1.1px solid var(--line);
  word-break: break-word;
}

.text-button {
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}

.legal-card h1 {
  margin: 8.8px 0 11px;
}

.legal-summary {
  max-width: 726px;
  margin: 0;
  font-size: 16.5px;
}

.legal-section-list {
  display: grid;
  gap: 19.8px;
  margin-top: 28.6px;
}

.legal-section-list section {
  padding-top: 17.6px;
  border-top: 1.1px solid var(--line);
}

.legal-section-list p {
  margin: 6.6px 0 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 5.5px;
  color: var(--muted);
}

.card {
  border: 1.1px solid var(--line);
}

.placeholder-section {
  padding: 19.8px;
}

.phase-unavailable-panel {
  width: min(100%, 720px);
  margin: 0 auto;
  color: color-mix(in srgb, var(--app-muted) 86%, transparent);
  background: color-mix(in srgb, var(--app-soft) 66%, transparent);
  border-color: var(--app-border-soft);
}

.phase-unavailable-panel h2 {
  margin: 0 0 8px;
  color: color-mix(in srgb, var(--app-text) 70%, transparent);
  font-size: 22px;
  font-weight: 500;
}

.phase-unavailable-panel p {
  margin: 0;
}

.cookie-consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  align-items: end;
  padding: 13.2px;
  background: rgba(0, 0, 0, 0.18);
}

.cookie-consent-sheet {
  width: min(968px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 15.4px;
  background: var(--background);
}

.cookie-sheet-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(242px, 0.45fr);
  gap: 19.8px;
}

.cookie-consent-sheet h2 {
  margin: 0 0 6.6px;
  font-weight: 400;
}

.cookie-consent-sheet p,
.cookie-cookie-list span {
  margin: 0;
  color: var(--muted);
}

.cookie-cookie-list {
  display: grid;
  gap: 8.8px;
}

.cookie-cookie-list div {
  padding: 8.8px;
  border: 1.1px solid var(--line);
}

.cookie-cookie-list strong,
.cookie-cookie-list span {
  display: block;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8.8px;
}

@keyframes page-refresh-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

@keyframes app-content-enter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

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

@keyframes landing-hero-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@keyframes landing-content-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

@keyframes landing-actions-enter {
  from {
    opacity: 0;
    transform: translateY(calc(var(--landing-action-offset) + 8px));
  }

  to {
    opacity: 1;
    transform: translateY(var(--landing-action-offset));
  }
}

@media (max-width: 1120px) {
  .landing-redesign-header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
  }

  .landing-redesign-nav {
    width: 100%;
    justify-content: space-between;
    gap: 18px;
  }

  .landing-redesign-login {
    min-height: 42px;
    padding-left: 24px;
  }

  .landing-redesign-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .landing-redesign-features article:nth-child(3n) {
    border-right: 0;
  }

  .login-redesign-header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
  }

  .login-redesign-nav {
    width: 100%;
    justify-content: space-between;
    gap: 18px;
  }

  .login-redesign-login-link {
    min-height: 42px;
    padding-left: 24px;
  }

  .login-redesign-card {
    grid-template-columns: 1fr;
  }

  .signup-redesign-card,
  .signup-redesign-panel,
  .auth-recovery-card,
  .auth-recovery-panel,
  .verify-email-card,
  .verify-email-card .auth-recovery-panel {
    min-height: auto;
  }

  .login-redesign-panel {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 28px;
    padding: 44px 46px;
    border-right: 0;
    border-bottom: 1px solid rgba(17, 19, 21, 0.12);
  }

  :root[data-theme="dark"] .login-redesign-panel {
    border-bottom-color: rgba(242, 241, 220, 0.16);
  }

  .login-cube-illustration {
    width: 210px;
    margin-top: 0;
  }

  .login-form-panel {
    padding: 48px 36px 54px;
  }

  .signup-form-panel {
    padding: 42px 36px 48px;
  }

  .auth-recovery-form-panel {
    padding: 46px 36px 52px;
  }

  .landing-grid {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 0.72fr);
  }

  .landing-title {
    font-size: 72px;
  }

  .landing-support {
    font-size: 23px;
  }

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

  .landing-closing {
    align-content: start;
  }
}

@media (max-width: 770px) {
  .phase-app {
    --phase-sidebar-width: min(228px, 86vw);
  }

  .phase-sidebar {
    position: fixed;
    width: var(--phase-sidebar-width);
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    border-right: 1px solid var(--app-border);
    border-bottom: 0;
  }

  .phase-sidebar-header {
    min-height: 69px;
    padding: 17px 14px 11px;
  }

  .phase-sidebar-scroll {
    padding: 2px 12px 15px;
  }

  .phase-main {
    margin-left: var(--phase-sidebar-width);
  }

  .phase-nav-link {
    min-height: 34px;
    font-size: 12px;
  }

  .phase-nav {
    display: flex;
    flex-direction: column;
  }

  .phase-nav-section,
  .phase-nav-divider {
    grid-column: auto;
  }

  .phase-bottom-nav {
    padding: 0 14px 14px;
  }

  .phase-focus-mode {
    display: none;
  }

  .phase-topbar {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
    padding: 18px 20px;
  }

  .phase-topbar-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .phase-search {
    width: min(100%, 420px);
  }

  .auth-shell,
  .cookie-sheet-content {
    grid-template-columns: 1fr;
  }

  .auth-body,
  .development-page {
    padding: 19.8px;
  }

  .landing-body {
    padding: 0;
  }

  .landing-redesign-header {
    min-height: 0;
    padding: 18px 19.8px;
  }

  .landing-redesign-logo-word {
    font-size: 13px;
    letter-spacing: 3.2px;
  }

  .landing-redesign-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(17, 19, 21, 0.12);
    border-left: 1px solid rgba(17, 19, 21, 0.12);
  }

  :root[data-theme="dark"] .landing-redesign-nav {
    border-top-color: rgba(242, 241, 220, 0.16);
    border-left-color: rgba(242, 241, 220, 0.16);
  }

  .login-redesign-header {
    min-height: 0;
    padding: 18px 19.8px;
  }

  .login-redesign-logo-word {
    font-size: 13px;
    letter-spacing: 3.2px;
  }

  .login-redesign-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(17, 19, 21, 0.12);
    border-left: 1px solid rgba(17, 19, 21, 0.12);
  }

  :root[data-theme="dark"] .login-redesign-nav {
    border-top-color: rgba(242, 241, 220, 0.16);
    border-left-color: rgba(242, 241, 220, 0.16);
  }

  .login-redesign-nav a,
  .login-redesign-login-link {
    min-height: 42px;
    justify-content: center;
    padding: 6px 10px 9px;
    border-right: 1px solid rgba(17, 19, 21, 0.12);
    border-bottom: 1px solid rgba(17, 19, 21, 0.12);
    border-left: 0;
  }

  :root[data-theme="dark"] .login-redesign-nav a,
  :root[data-theme="dark"] .login-redesign-login-link {
    border-right-color: rgba(242, 241, 220, 0.16);
    border-bottom-color: rgba(242, 241, 220, 0.16);
  }

  .login-redesign-main {
    padding: 22px 19.8px 32px;
  }

  .login-redesign-panel {
    display: grid;
    grid-template-columns: 1fr;
    padding: 34px 28px 26px;
  }

  .login-panel-rule {
    margin: 32px 0 26px;
  }

  .login-panel-copy h1 {
    font-size: 30px;
  }

  .login-cube-illustration {
    display: none;
  }

  .login-form-panel {
    padding: 34px 24px 38px;
  }

  .signup-form-panel {
    padding: 32px 24px 38px;
  }

  .auth-recovery-form-panel {
    padding: 32px 24px 40px;
  }

  .auth-recovery-icon {
    margin-bottom: 22px;
  }

  .auth-recovery-heading h2 {
    font-size: 28px;
  }

  .auth-security-note {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
  }

  .login-form-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .login-redesign-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 19.8px;
  }

  .landing-redesign-nav > a,
  .landing-redesign-login {
    min-height: 42px;
    justify-content: center;
    padding: 6px 10px 9px;
    border-right: 1px solid rgba(17, 19, 21, 0.12);
    border-bottom: 1px solid rgba(17, 19, 21, 0.12);
    border-left: 0;
  }

  :root[data-theme="dark"] .landing-redesign-nav > a,
  :root[data-theme="dark"] .landing-redesign-login {
    border-right-color: rgba(242, 241, 220, 0.16);
    border-bottom-color: rgba(242, 241, 220, 0.16);
  }

  .landing-redesign-theme {
    grid-column: 1 / -1;
    justify-content: center;
    padding: 10px;
    border: 0;
    border-right: 1px solid rgba(17, 19, 21, 0.12);
    border-bottom: 1px solid rgba(17, 19, 21, 0.12);
  }

  :root[data-theme="dark"] .landing-redesign-theme {
    border-right-color: rgba(242, 241, 220, 0.16);
    border-bottom-color: rgba(242, 241, 220, 0.16);
  }

  .landing-redesign-hero {
    min-height: 560px;
    padding: 58px 19.8px 48px;
  }

  .landing-redesign-center h1 {
    margin-bottom: 24px;
    font-size: clamp(54px, 16vw, 72px);
  }

  .landing-redesign-center p {
    font-size: 16px;
  }

  .landing-redesign-actions {
    width: min(100%, 360px);
    margin-top: 34px;
  }

  .landing-redesign-primary,
  .landing-redesign-secondary {
    width: 100%;
  }

  .landing-redesign-features {
    grid-template-columns: 1fr;
  }

  .landing-redesign-features article,
  .landing-redesign-features article:nth-child(3n) {
    min-height: 156px;
    border-right: 0;
    border-bottom: 1px solid rgba(17, 19, 21, 0.12);
  }

  :root[data-theme="dark"] .landing-redesign-features article,
  :root[data-theme="dark"] .landing-redesign-features article:nth-child(3n) {
    border-bottom-color: rgba(242, 241, 220, 0.16);
  }

  .landing-redesign-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 19.8px;
  }

  .legal-redesign-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 48px 20px 40px;
  }

  .legal-hero-visual {
    width: min(100%, 260px);
  }

  .legal-redesign-content {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .legal-page-nav {
    position: static;
    order: -1;
  }

  .legal-redesign-section summary {
    grid-template-columns: 48px 36px minmax(0, 1fr) 22px;
    gap: 12px;
    min-height: 104px;
    padding: 16px;
  }

  .legal-section-icon {
    width: 48px;
    height: 48px;
  }

  .legal-section-copy strong {
    font-size: 16px;
  }

  .legal-redesign-section > p {
    margin: -4px 16px 20px 112px;
  }

  .legal-contact-card {
    width: calc(100% - 40px);
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .legal-contact-card a {
    width: 100%;
  }

  .legal-redesign-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 20px;
  }

  .landing-header {
    align-items: stretch;
    flex-direction: column;
    padding: 18px 19.8px 19px;
  }

  .landing-logo {
    top: auto;
    left: auto;
  }

  .landing-theme-choice {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .landing-theme-choice .theme-choice {
    border-right: 1.1px solid var(--line);
    border-bottom: 0;
  }

  .landing-theme-choice .theme-choice:last-child {
    border-right: 0;
  }

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

  .landing-minimal-shell {
    min-height: calc(100vh - 119px);
    padding: 44px 19.8px;
  }

  .landing-centerpiece {
    gap: 22px;
  }

  .landing-auth-tabs {
    width: min(100%, 340px);
    grid-template-columns: 1fr;
  }

  .landing-auth-tab {
    min-height: 44px;
  }

  .landing-grid {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .landing-intro {
    min-height: auto;
    padding: 46px 19.8px 38px;
    border-right: 0;
  }

  .landing-title {
    font-size: 50px;
    line-height: 1;
  }

  .landing-support {
    font-size: 21px;
  }

  .landing-secondary {
    font-size: 16px;
  }

  .landing-proof {
    padding: 0 19.8px 34px;
  }

  .landing-visual {
    padding: 0 19.8px 34px;
  }

  .landing-model-scene {
    min-height: 300px;
  }

  .model-node {
    min-width: 78px;
    min-height: 32px;
    padding: 4px 8px 7px;
    font-size: 12px;
  }

  .node-core {
    min-width: 108px;
  }

  .landing-proof-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .landing-proof-row strong {
    font-size: 18px;
  }

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

  .landing-principles article {
    min-height: 180px;
    padding: 18px 19.8px 21px;
  }

  .landing-principles h2 {
    font-size: 25px;
  }

  .landing-manifesto {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 19.8px 38px;
  }

  .landing-manifesto p {
    font-size: 16px;
  }

  .landing-closing strong {
    font-size: 24px;
  }

  .landing-hero {
    min-height: min(560px, calc(100vh - 112px));
    padding: 24px;
  }

  .landing-panel {
    padding-top: 8vh;
  }

  .landing-actions {
    --landing-action-offset: -160px;
  }

  .landing-grid .landing-actions {
    --landing-action-offset: 0px;
  }

  .appearance-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .finance-stat-grid,
  .finance-chart-grid,
  .finance-secondary-grid,
  .profile-header-card,
  .profile-layout,
  .profile-form,
  .finance-dashboard-grid,
  .finance-entry-layout,
  .finance-form-grid {
    grid-template-columns: 1fr;
  }

  .finance-workspace {
    padding: 16px 12px 36px;
  }

  .finance-view-tabs {
    width: 100%;
  }

  .profile-header-card {
    justify-items: start;
    padding: 20px;
  }

  .profile-header-actions {
    width: 100%;
  }

  .profile-avatar-preview {
    width: 104px;
    height: 104px;
  }

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

  .finance-donut-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .finance-donut-layout ul {
    width: 100%;
  }

  .finance-bars {
    gap: 8px;
  }

  .finance-graph-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .finance-line-labels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .finance-view-tab {
    flex: 1 1 50%;
  }

  .finance-ledger-table-head {
    display: none;
  }

  .finance-ledger-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .finance-object-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .finance-ledger-row b,
  .finance-ledger-main p {
    white-space: normal;
  }

  .finance-ledger-side {
    justify-items: start;
  }

  .finance-ledger-actions {
    justify-content: flex-start;
  }

  .finance-ledger header {
    align-items: stretch;
    flex-direction: column;
  }

  .finance-ledger-search {
    width: 100%;
  }

  .finance-list-controls {
    justify-content: flex-start;
  }

  .settings-currency-row {
    grid-template-columns: 1fr;
  }

  .settings-currency-list article {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-currency-list article div:last-child {
    justify-content: flex-start;
  }

  .calendar-toolbar,
  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .calendar-toolbar {
    align-items: stretch;
    gap: 12px;
  }

  .calendar-view-tabs,
  .calendar-navigation,
  .calendar-toolbar-actions {
    width: 100%;
  }

  .calendar-view-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .calendar-view-tabs button {
    min-width: 0;
    padding: 0 8px;
  }

  .calendar-navigation,
  .calendar-toolbar-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

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

  .calendar-weekdays {
    display: none;
  }

  .calendar-day {
    min-height: 118px;
  }

  .calendar-day:nth-child(7n) {
    border-right: 1px solid var(--app-border-soft);
  }

  .calendar-day:nth-child(2n) {
    border-right: 0;
  }

  .calendar-day.outside {
    display: none;
  }

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

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

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

  .planning-focus-panel {
    grid-column: 1 / -1;
  }

  .planning-category-bars div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .planning-timeline header,
  .planning-panel header {
    align-items: stretch;
    flex-direction: column;
  }

  .planning-unit-switch {
    width: 100%;
  }

  .planning-type-switch {
    margin-left: 0;
  }

  .planning-unit-switch button {
    flex: 1 1 0;
  }

  .planning-timeline-plot {
    height: 260px;
  }

  .planning-timeline-legend {
    left: 18px;
    right: 18px;
    bottom: 8px;
  }

  .planning-layout,
  .goal-detail-hero {
    grid-template-columns: 1fr;
  }

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

  .planning-goal-row,
  .goal-action-row {
    grid-template-columns: 1fr;
  }

  .planning-row-actions {
    justify-self: start;
    flex-wrap: wrap;
  }

  .goal-detail-hero h2 {
    font-size: 30px;
  }

  .goal-detail-stats {
    grid-template-columns: 1fr;
  }

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

  .knowledge-card-strip > div,
  .knowledge-insight-layout,
  .knowledge-table-layout,
  .knowledge-map-layout,
  .knowledge-secondary-layout,
  .knowledge-entry-layout,
  .knowledge-stat-grid,
  .knowledge-task-columns,
  .knowledge-form,
  .knowledge-detail-body dl {
    grid-template-columns: 1fr;
  }

  .knowledge-workspace {
    padding: 16px 12px 36px;
  }

  .knowledge-command-row {
    width: 100%;
  }

  .knowledge-table-head {
    display: none;
  }

  .knowledge-table-body button {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .knowledge-graph-panel header,
  .knowledge-detail-panel header,
  .knowledge-panel header {
    align-items: stretch;
    flex-direction: column;
  }

  .knowledge-graph-svg {
    height: 360px;
  }

  .knowledge-task-columns > div {
    border-right: 0;
    border-bottom: 1.1px solid var(--line);
  }

  .knowledge-task-columns > div:last-child {
    border-bottom: 0;
  }

  .theme-choice-group {
    grid-template-columns: 1fr;
  }

  .theme-choice {
    border-right: 0;
    border-bottom: 1.1px solid var(--line);
  }

  .theme-choice:last-child {
    border-bottom: 0;
  }

  .landing-theme-choice {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .landing-theme-choice .theme-choice {
    border-right: 1.1px solid var(--line);
    border-bottom: 0;
  }

  .landing-theme-choice .theme-choice:last-child {
    border-right: 0;
  }

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

@media (prefers-reduced-motion: reduce) {
  body,
  body.page-exit,
  .motion-reveal,
  .motion-reveal.is-visible {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .phase-nav-link,
  body,
  .phase-page-content,
  .theme-choice,
  .motion-reveal,
  .calendar-surface,
  .calendar-tool-button,
  .calendar-new-button,
  .calendar-day,
  .calendar-event-pill,
  .calendar-agenda-item,
  .finance-view-tab,
  .finance-cfo-panel,
  .planning-unit-switch button,
  .planning-panel header button,
  .planning-row-actions button,
  .planning-goal-row,
  .goal-action-row,
  .planning-goal-dot span,
  .knowledge-dashboard article,
  .knowledge-panel,
  .knowledge-detail-panel,
  .knowledge-graph-panel,
  .knowledge-map-node circle,
  .finance-entry-form input,
  .finance-entry-form select,
  .finance-entry-form textarea,
  .finance-ledger-row,
  .finance-object-list article,
  .finance-ledger-actions button,
  .finance-confirmation-list a,
  .finance-graph-row i,
  .finance-ledger-search,
  .finance-list-controls button,
  .settings-currency-list button,
  .button,
  a,
  button,
  input,
  select,
  textarea {
    transition: none;
  }

  .landing-hero,
  .landing-panel,
  .landing-intro-inner,
  .landing-proof-row,
  .landing-actions {
    animation: none;
  }
}
