:root {
  --accent: #446646;
  --accent-hover: #314e34;
  --accent-soft: #eaf0e7;
  --canvas: #f7f8f4;
  --ink: #202c25;
  --muted: #667269;
  --line: #dfe5dc;
  --surface: #fff;
  --radius: 18px;
  --bs-primary: #446646;
  --bs-primary-rgb: 68, 102, 70;
  --bs-body-font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}
[data-bs-theme="dark"] {
  --accent: #b7d6a5;
  --accent-hover: #d3e7c7;
  --accent-soft: #28382c;
  --canvas: #151c18;
  --ink: #edf2e9;
  --muted: #a3afa5;
  --line: #354239;
  --surface: #1e2821;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--canvas);
  --bs-secondary-color: var(--muted);
  --bs-border-color: var(--line);
  --bs-primary-rgb: 183, 214, 165;
  --bs-link-color: #bedcb0;
  --bs-link-hover-color: #d4eacb;
}
/* Keep the content width stable across short and scrollable routes. */
html {
  overflow-y: scroll;
  background: var(--canvas);
}
@supports (scrollbar-gutter: stable) {
  html {
    overflow-y: auto;
    scrollbar-gutter: stable;
  }
}
body {
  background: var(--canvas);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
a:hover {
  color: var(--accent-hover);
}
h1,
h2,
h3 {
  letter-spacing: -0.045em;
  line-height: 1.13;
  font-weight: 650;
}
h1 {
  font-size: clamp(2.2rem, 4.7vw, 4.1rem);
}
h2 {
  font-size: 1.35rem;
}
p {
  max-width: 75ch;
}
.container {
  max-width: 1180px;
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}
.navbar {
  min-height: 96px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  letter-spacing: -0.5px;
  font-weight: 650;
  color: var(--ink);
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--canvas);
  border-radius: 11px;
  width: 37px;
  height: 37px;
  font-size: 30px;
  font-weight: 550;
  line-height: 1;
}
.brand-mark span {
  display: none;
}
.nav-link {
  padding-left: 15px !important;
  padding-right: 15px !important;
  font-size: 14px;
}
.nav-preferences {
  display: flex;
  gap: 8px;
  margin-left: 24px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.btn {
  border-radius: 9px;
  padding: 10px 18px;
  font-weight: 550;
  font-size: 14px;
}
.btn-lg {
  padding: 14px 22px;
}
.btn-sm {
  padding: 7px 12px;
  font-size: 12px;
}
.btn-primary {
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-color: var(--canvas);
  --bs-btn-hover-bg: var(--accent-hover);
  --bs-btn-hover-border-color: var(--accent-hover);
  --bs-btn-hover-color: var(--canvas);
  --bs-btn-active-bg: var(--accent-hover);
  --bs-btn-active-border-color: var(--accent-hover);
  --bs-btn-active-color: var(--canvas);
  --bs-btn-disabled-bg: var(--accent);
  --bs-btn-disabled-border-color: var(--accent);
}
.btn-outline-secondary {
  --bs-btn-color: var(--ink);
  --bs-btn-border-color: var(--line);
  --bs-btn-hover-bg: var(--accent-soft);
  --bs-btn-hover-color: var(--ink);
  --bs-btn-hover-border-color: var(--accent);
}
.btn-link {
  color: var(--accent);
}
.main-content {
  min-height: 65vh;
  padding-top: 24px;
  padding-bottom: 75px;
  outline: none;
}
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 62px 0 74px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.3px;
  color: var(--accent);
  margin-bottom: 22px;
}
.hero h1 {
  margin-bottom: 25px;
  line-height: 1.08;
}
.hero-description {
  font-size: 17px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 450px;
  margin-bottom: 30px;
}
.tiny-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 9px;
}
.hero-footnote {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
}
.hero-footnote .tiny-dot {
  margin: 0;
}
.hero-visual {
  position: relative;
  min-height: 440px;
  border-radius: 24px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
}
.visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 35px 35px;
  opacity: 0.5;
  z-index: -1;
}
.preview-card {
  width: 280px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 22px 60px #18302112;
  transform: rotate(-4deg);
}
.preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  margin-bottom: 20px;
}
.preview-logo {
  font-size: 25px;
  font-weight: 700;
  color: var(--accent);
}
.preview-avatar {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 17px;
  margin-bottom: 14px;
}
.preview-line {
  height: 7px;
  background: var(--line);
  border-radius: 5px;
  margin: 9px 0;
}
.preview-line.wide {
  width: 65%;
  height: 10px;
}
.preview-line.short {
  width: 45%;
}
.preview-line.small {
  width: 75px;
  height: 5px;
}
.preview-divider {
  height: 1px;
  background: var(--line);
  margin: 22px 0;
}
.preview-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 17px 0;
}
.preview-row strong {
  font-size: 10px;
  font-weight: 600;
}
.preview-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}
.preview-button {
  padding: 10px 12px;
  background: var(--accent);
  color: var(--canvas);
  font-size: 10px;
  border-radius: 7px;
  margin-top: 22px;
}
.floating-label,
.floating-badge {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 16px;
  font-size: 10px;
  z-index: 1;
  box-shadow: 0 8px 25px #18302108;
}
.floating-label {
  left: 20px;
  top: 38px;
  transform: rotate(-4deg);
}
.floating-badge {
  right: 13px;
  bottom: 50px;
  transform: rotate(5deg);
  color: var(--accent);
}
.visual-caption {
  position: absolute;
  bottom: 15px;
  left: 20px;
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--muted);
}
.features {
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.feature {
  padding: 8px 25px 8px 0;
}
.feature-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 20px;
}
.feature-icon {
  font-size: 23px;
  color: var(--accent);
}
.feature h2 {
  font-size: 18px;
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}
.feature p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.footer-inner strong {
  font-size: 13px;
}
.footer-inner p {
  font-size: 12px;
  margin: 5px 0 0;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 22px;
  font-size: 12px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-links span {
  color: var(--muted);
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  max-width: 960px;
  margin: 45px auto 20px;
}
.auth-aside {
  padding: 40px;
}
.auth-aside .h3 {
  font-weight: 600;
  letter-spacing: -0.8px;
}
.orbital {
  height: 220px;
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
}
.orbital span {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 180px;
  height: 180px;
}
.orbital span:nth-child(2) {
  width: 130px;
  height: 130px;
  border-style: dashed;
}
.orbital b {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 48px;
  transform: rotate(-8deg);
}
.auth-card {
  background: var(--surface);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.auth-card h1 {
  font-size: 30px;
  letter-spacing: -1px;
}
.auth-card .text-body-secondary {
  font-size: 13px;
}
.auth-form > .btn[type="submit"] {
  width: 100%;
}
.auth-bottom {
  font-size: 12px;
  text-align: center;
  margin-top: 22px;
  margin-bottom: 0;
}
.auth-bottom p {
  margin-top: 10px;
  margin-bottom: 0;
}
.form-label {
  font-size: 12px;
  font-weight: 600;
}
.form-control,
.form-select {
  background-color: var(--surface);
  border-color: var(--line);
  border-radius: 8px;
  font-size: 14px;
  padding: 11px 12px;
  color: var(--ink);
}
.form-select {
  padding-right: 32px;
}
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem #78966a33;
}
.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}
.form-check-label,
.form-text {
  font-size: 12px;
}
.password-control {
  position: relative;
}
.password-control .form-control {
  padding-right: 52px;
}
.password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.password-toggle:hover {
  color: var(--ink);
}
.password-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}
.page-head {
  padding: 30px 0 25px;
}
.page-head h1 {
  font-size: 38px;
}
.page-head .eyebrow {
  margin-bottom: 13px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 24px;
  box-shadow: none;
}
.panel .card-body {
  padding: 28px;
}
.panel .h5 {
  font-size: 19px;
  letter-spacing: -0.5px;
}
.panel p {
  font-size: 14px;
}
.danger-panel {
  border-color: #b66b6b66;
}
.danger-panel h2 {
  color: var(--bs-danger);
}
.workspace-panel .card-body {
  padding: 45px;
}
.status-pill {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  display: inline-block;
  border-radius: 30px;
  padding: 6px 12px;
}
.faq-list {
  max-width: 850px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item summary {
  font-size: 17px;
  font-weight: 550;
  cursor: pointer;
  letter-spacing: -0.3px;
}
.faq-item p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 18px;
  margin-bottom: 5px;
  line-height: 1.9;
}
.maintenance-view {
  text-align: center;
  max-width: 650px;
  margin: 65px auto;
}
.maintenance-view p {
  margin-left: auto;
  margin-right: auto;
}
.maintenance-view h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}
.maintenance-symbol {
  font-size: 72px;
  color: var(--accent);
  margin-bottom: 25px;
}
.legal-page {
  max-width: 800px;
  padding-top: 35px;
}
.legal-page h1 {
  font-size: 38px;
  margin-bottom: 30px;
}
.legal-page h2 {
  font-size: 22px;
  margin-top: 35px;
  margin-bottom: 18px;
}
.legal-page p,
.legal-page dd {
  font-size: 14px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.table {
  font-size: 13px;
  --bs-table-bg: transparent;
}
.table th {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.table td,
.table th {
  padding: 15px 10px;
  border-color: var(--line);
}
.alert {
  font-size: 14px;
  border-radius: 10px;
}
.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10000;
  background: var(--surface);
  padding: 12px;
}
.initial-state {
  padding: 70px 0;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
@media (max-width: 991px) {
  .navbar {
    min-height: 78px;
  }
  .navbar-collapse {
    padding-bottom: 15px;
  }
  .nav-preferences {
    margin: 15px 0 0;
    padding: 15px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .hero {
    gap: 30px;
    padding-top: 35px;
  }
  .hero-visual {
    min-height: 390px;
  }
  .preview-card {
    width: 245px;
  }
  .floating-label {
    left: 8px;
  }
  .floating-badge {
    right: 5px;
    font-size: 9px;
  }
  .auth-layout {
    gap: 30px;
  }
  .auth-aside {
    padding: 15px;
  }
  .navbar-nav .btn {
    align-self: flex-start;
    margin-top: 10px;
  }
}
@media (max-width: 767px) {
  .container {
    padding-left: 22px;
    padding-right: 22px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 30px 0 40px;
    gap: 35px;
  }
  .hero h1 {
    font-size: 42px;
  }
  .hero-description {
    font-size: 15px;
  }
  .hero-visual {
    min-height: 410px;
    max-width: 470px;
    width: 100%;
    margin: auto;
  }
  .preview-card {
    width: 270px;
  }
  .features {
    padding-top: 15px;
  }
  .feature {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
  .feature-top {
    margin-bottom: 10px;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    margin: 20px auto;
  }
  .auth-aside {
    display: none;
  }
  .auth-card {
    padding: 25px;
  }
  .auth-card h1 {
    font-size: 28px;
  }
  .main-content {
    padding-bottom: 45px;
  }
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-links {
    gap: 18px;
  }
  .page-head h1 {
    font-size: 32px;
  }
  .panel .card-body {
    padding: 22px;
  }
  .workspace-panel .card-body {
    padding: 26px;
  }
  .table td {
    min-width: 100px;
  }
  .table td:first-child {
    max-width: 220px;
    overflow-wrap: anywhere;
  }
  .maintenance-view {
    margin: 35px auto;
  }
  .nav-link {
    padding-left: 0 !important;
  }
  .page-head {
    padding-top: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.main-content:focus-visible {
  outline: none;
}

/* Shared icon choices in navigation and profile. */
.preference-options {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.preference-choice { cursor: pointer; }
.preference-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.preference-button:hover { color: var(--ink); border-color: var(--accent); }
.preference-button[aria-pressed="true"],
.preference-choice input:checked + .preference-button {
  color: var(--ink);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.preference-button:focus-visible,
.preference-choice input:focus-visible + .preference-button {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.preference-dropdown .dropdown-toggle {
  width: auto;
  min-width: 56px;
  gap: 7px;
}
.preference-dropdown .dropdown-menu {
  min-width: 155px;
  padding: 5px;
  border-color: var(--line);
  background: var(--surface);
  box-shadow: 0 8px 24px #0002;
}
.preference-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  border-radius: 5px;
  color: var(--ink);
}
.preference-dropdown .dropdown-item svg { flex-shrink: 0; }
.preference-dropdown .dropdown-item.active {
  background: var(--accent);
  color: var(--surface);
}

.account-statistics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px 24px;
  margin-bottom: 24px;
}
.account-statistics dt { font-size: 12px; font-weight: 500; color: var(--muted); }
.account-statistics dd { margin: 6px 0 0; font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }

.admin-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
.admin-metric { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.admin-metric span { display: block; font-size: 12px; color: var(--muted); }
.admin-metric strong { display: block; margin-top: 6px; font-size: 26px; }
.admin-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.admin-filters > div { flex: 1 1 155px; min-width: 0; }
.admin-filters .admin-search { flex: 2 1 240px; }
.admin-users-table { min-width: 1080px; font-size: 13px; }
.admin-users-table th { font-size: 12px; }
