/* Glyphplace design system on top of Bootstrap 5.3: tokens, then components, then page patterns.
   Light and dark themes follow data-bs-theme on <html> (set by theme.js: saved choice or the system setting). */

:root,
[data-bs-theme="light"] {
  --gw-bg: #fbfdfe;
  --gw-surface: #ffffff;
  --gw-surface-2: #f2f8fa;
  --gw-border: #e3eef2;
  --gw-text: #1b3141;
  --gw-muted: #64798a;
  --gw-primary: #1580a0;
  --gw-primary-rgb: 21, 128, 160;
  --gw-primary-hover: #0f6d8a;
  --gw-primary-soft: #e8f5f9;
  --gw-accent: #f6a36b;
  --gw-success: #0f9f6e;
  --gw-success-soft: #e6f7f0;
  --gw-warning: #b7791f;
  --gw-warning-soft: #fdf4e3;
  --gw-danger: #dc3545;
  --gw-danger-soft: #fdecee;
  --gw-anchor: #6b83e0;
  --gw-shadow-sm: 0 1px 2px rgba(27, 49, 65, .06), 0 1px 3px rgba(27, 49, 65, .04);
  --gw-shadow: 0 10px 30px -12px rgba(27, 49, 65, .16), 0 2px 6px rgba(27, 49, 65, .05);
  --gw-radius: 12px;
  --gw-radius-sm: 8px;
  --gw-canvas: #e9f1f5;
  --gw-code-bg: #0f1222;
  --gw-code-text: #e6e8f5;

  --bs-body-bg: var(--gw-bg);
  --bs-body-color: var(--gw-text);
  --bs-secondary-color: var(--gw-muted);
  --bs-tertiary-bg: var(--gw-surface-2);
  --bs-border-color: var(--gw-border);
  --bs-primary: var(--gw-primary);
  --bs-primary-rgb: var(--gw-primary-rgb);
  --bs-link-color: var(--gw-primary);
  --bs-link-color-rgb: var(--gw-primary-rgb);
  --bs-link-hover-color: var(--gw-primary-hover);
  --bs-border-radius: var(--gw-radius-sm);
  --bs-border-radius-lg: var(--gw-radius);
  --bs-font-sans-serif: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-font-monospace: "JetBrains Mono", "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
  --bs-card-bg: var(--gw-surface);
  color-scheme: light;
  --gw-anchor-rgb: 107, 131, 224;
}

:root {
  /* Brand tokens of the Harbor design: teal, soft navy and peach. */
  --gw-accent-rgb: 246, 163, 107;
  --gw-accent-2: #5b7fd6; --gw-accent-2-rgb: 91, 127, 214;
  --gw-cta-bg: linear-gradient(130deg, #e3f4f8 0%, #eef3fd 60%, #fdf1e8 100%);
  --gw-cta-ink: #ffffff; --gw-cta-hover: #0f6d8a;
  --gw-heading-font: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; --gw-heading-weight: 650; --gw-hero-weight: 700; --gw-hero-tracking: -.035em;
  --gw-logo-1: #1fa2c4; --gw-logo-2: #5b7fd6;
  --gw-cta-text: #1b3141;
  --gw-cta-sub: #52697b;
  --gw-cta-btn: #1580a0;
  --gw-cta-line: #1580a0;
}

[data-bs-theme="dark"] {
  --gw-bg: #0b1820;
  --gw-surface: #11222d;
  --gw-surface-2: #172e3b;
  --gw-border: #234254;
  --gw-text: #e6f0f5;
  --gw-muted: #98b1c0;
  --gw-primary: #5dd3e3;
  --gw-primary-rgb: 93, 211, 227;
  --gw-primary-hover: #8ae2ee;
  --gw-primary-soft: #143542;
  --gw-success: #34d399;
  --gw-success-soft: #0f2a24;
  --gw-warning: #fbbf24;
  --gw-warning-soft: #2e2512;
  --gw-danger: #f87171;
  --gw-danger-soft: #331a1f;
  --gw-anchor: #8aa5f2;
  --gw-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --gw-shadow: 0 14px 40px -14px rgba(0, 0, 0, .7);
  --gw-canvas: #08131a;
  --gw-code-bg: #08131a;

  --bs-body-bg: var(--gw-bg);
  --bs-body-color: var(--gw-text);
  --bs-secondary-color: var(--gw-muted);
  --bs-tertiary-bg: var(--gw-surface-2);
  --bs-border-color: var(--gw-border);
  --bs-primary: var(--gw-primary);
  --bs-primary-rgb: var(--gw-primary-rgb);
  --bs-link-color: var(--gw-primary);
  --bs-link-color-rgb: var(--gw-primary-rgb);
  --bs-link-hover-color: var(--gw-primary-hover);
  --bs-card-bg: var(--gw-surface);
  color-scheme: dark;
  --gw-anchor-rgb: 138, 165, 242;
  --gw-accent-2: #8aa5f2;
  --gw-accent-2-rgb: 138, 165, 242;
  --gw-cta-bg: linear-gradient(130deg, #143b4a 0%, #1a3350 100%);
  --gw-cta-text: #e6f0f5;
  --gw-cta-sub: #a9c0cd;
  --gw-cta-btn: #5dd3e3;
  --gw-cta-ink: #0b1820;
  --gw-cta-hover: #8ae2ee;
  --gw-cta-line: #5dd3e3;
}

/* ------------------------------------------------------------------------------------------ base */

html { font-size: 15px; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--gw-bg);
  color: var(--gw-text);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
h1, h2, h3, h4, h5 { letter-spacing: -.02em; font-weight: var(--gw-heading-weight); font-family: var(--gw-heading-font); }
h1 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.4rem); }
.text-muted, .text-secondary { color: var(--gw-muted) !important; }
a { text-underline-offset: .18em; }
::selection { background: rgba(var(--gw-primary-rgb), .22); }
code { color: var(--gw-primary); font-size: .9em; }
pre {
  background: var(--gw-code-bg) !important;
  color: var(--gw-code-text);
  border: 1px solid var(--gw-border) !important;
  border-radius: var(--gw-radius) !important;
  padding: 1rem 1.15rem !important;
  font-size: .85rem;
  line-height: 1.6;
}
pre code { color: inherit; font-size: inherit; }
hr { border-color: var(--gw-border); opacity: 1; }
:focus-visible { outline: 2px solid var(--gw-primary); outline-offset: 2px; }

/* ------------------------------------------------------------------------------------------ components */

.btn { --bs-btn-font-weight: 550; --bs-btn-border-radius: var(--gw-radius-sm); letter-spacing: -.005em; }
.btn-primary {
  --bs-btn-bg: var(--gw-primary); --bs-btn-border-color: var(--gw-primary);
  --bs-btn-hover-bg: var(--gw-primary-hover); --bs-btn-hover-border-color: var(--gw-primary-hover);
  --bs-btn-active-bg: var(--gw-primary-hover); --bs-btn-active-border-color: var(--gw-primary-hover);
  --bs-btn-disabled-bg: var(--gw-primary); --bs-btn-disabled-border-color: var(--gw-primary);
  --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff;
  box-shadow: 0 1px 2px rgba(var(--gw-primary-rgb), .35), inset 0 1px 0 rgba(255, 255, 255, .12);
}
[data-bs-theme="dark"] .btn-primary { --bs-btn-color: var(--gw-bg); --bs-btn-hover-color: var(--gw-bg); --bs-btn-active-color: var(--gw-bg); }
.btn-outline-primary {
  --bs-btn-color: var(--gw-primary); --bs-btn-border-color: rgba(var(--gw-primary-rgb), .45);
  --bs-btn-hover-bg: var(--gw-primary-soft); --bs-btn-hover-color: var(--gw-primary); --bs-btn-hover-border-color: var(--gw-primary);
  --bs-btn-active-bg: var(--gw-primary-soft); --bs-btn-active-color: var(--gw-primary); --bs-btn-active-border-color: var(--gw-primary);
}
.btn-light, .btn-ghost {
  --bs-btn-bg: var(--gw-surface); --bs-btn-border-color: var(--gw-border); --bs-btn-color: var(--gw-text);
  --bs-btn-hover-bg: var(--gw-surface-2); --bs-btn-hover-border-color: var(--gw-border); --bs-btn-hover-color: var(--gw-text);
  --bs-btn-active-bg: var(--gw-surface-2); --bs-btn-active-border-color: var(--gw-primary); --bs-btn-active-color: var(--gw-text);
  --bs-btn-disabled-bg: var(--gw-surface); --bs-btn-disabled-color: var(--gw-muted); --bs-btn-disabled-border-color: var(--gw-border);
}
.btn-ghost { --bs-btn-bg: transparent; --bs-btn-border-color: transparent; }
.btn-outline-secondary { --bs-btn-color: var(--gw-text); --bs-btn-border-color: var(--gw-border); --bs-btn-hover-bg: var(--gw-surface-2); --bs-btn-hover-color: var(--gw-text); --bs-btn-hover-border-color: var(--gw-border); }

.card {
  --bs-card-border-color: var(--gw-border);
  --bs-card-border-radius: var(--gw-radius);
  --bs-card-cap-bg: transparent;
  box-shadow: var(--gw-shadow-sm);
}
.card-header { font-weight: 600; border-bottom-color: var(--gw-border); }

.form-control, .form-select {
  --bs-border-color: var(--gw-border);
  background-color: var(--gw-surface);
  border-radius: var(--gw-radius-sm);
}
.form-control:focus, .form-select:focus, .form-check-input:focus {
  border-color: rgba(var(--gw-primary-rgb), .6);
  box-shadow: 0 0 0 .2rem rgba(var(--gw-primary-rgb), .18);
}
.form-check-input:checked { background-color: var(--gw-primary); border-color: var(--gw-primary); }
.form-label, label.form-label { font-weight: 550; font-size: .9rem; }
.form-text { color: var(--gw-muted); }

.table {
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--gw-border);
  --bs-table-striped-bg: var(--gw-surface-2);
  --bs-table-hover-bg: var(--gw-surface-2);
  vertical-align: middle;
}
.table > thead th {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gw-muted); font-weight: 600;
  border-bottom-width: 1px;
}
.table-card { background: var(--gw-surface); border: 1px solid var(--gw-border); border-radius: var(--gw-radius); box-shadow: var(--gw-shadow-sm); overflow: auto; }
.table-card .table { margin: 0; }
.table-card .table > :not(caption) > * > * { padding: .7rem 1rem; }

.alert { border-radius: var(--gw-radius); border-width: 1px; }
.alert-success { --bs-alert-bg: var(--gw-success-soft); --bs-alert-color: var(--gw-text); --bs-alert-border-color: rgba(15, 159, 110, .3); }
.alert-danger { --bs-alert-bg: var(--gw-danger-soft); --bs-alert-color: var(--gw-text); --bs-alert-border-color: rgba(220, 53, 69, .3); }
.alert-warning { --bs-alert-bg: var(--gw-warning-soft); --bs-alert-color: var(--gw-text); --bs-alert-border-color: rgba(183, 121, 31, .35); }
.alert-info { --bs-alert-bg: var(--gw-primary-soft); --bs-alert-color: var(--gw-text); --bs-alert-border-color: rgba(var(--gw-primary-rgb), .3); }

.badge { font-weight: 600; letter-spacing: .01em; border-radius: 999px; padding: .35em .65em; }
.pill {
  display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .55rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600; background: var(--gw-surface-2); color: var(--gw-muted); white-space: nowrap;
}
.pill::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.pill-ok { background: var(--gw-success-soft); color: var(--gw-success); }
.pill-warn { background: var(--gw-warning-soft); color: var(--gw-warning); }
.pill-bad { background: var(--gw-danger-soft); color: var(--gw-danger); }
.pill-info { background: var(--gw-primary-soft); color: var(--gw-primary); }
.pill-plain::before { display: none; }

.nav-tabs { --bs-nav-tabs-border-color: var(--gw-border); --bs-nav-tabs-link-active-bg: var(--gw-surface); --bs-nav-tabs-link-active-border-color: var(--gw-border) var(--gw-border) var(--gw-surface); }
.nav-link { color: var(--gw-muted); }
.nav-link:hover { color: var(--gw-text); }
.dropdown-menu {
  --bs-dropdown-bg: var(--gw-surface); --bs-dropdown-border-color: var(--gw-border); --bs-dropdown-link-hover-bg: var(--gw-surface-2);
  --bs-dropdown-link-active-bg: var(--gw-primary-soft); --bs-dropdown-link-active-color: var(--gw-primary);
  border-radius: var(--gw-radius); box-shadow: var(--gw-shadow); padding: .35rem;
}
.dropdown-item { border-radius: 6px; padding: .45rem .7rem; font-size: .92rem; }
.dropdown-item .bi, .dropdown-item svg { opacity: .7; }
.dropdown-header { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; }
.modal-content { border-radius: var(--gw-radius); border-color: var(--gw-border); background: var(--gw-surface); box-shadow: var(--gw-shadow); }
.modal-header, .modal-footer { border-color: var(--gw-border); }

.kbd, kbd { font-family: var(--bs-font-monospace); font-size: .75em; padding: .1rem .35rem; border-radius: 4px; background: var(--gw-surface-2); color: var(--gw-text); border: 1px solid var(--gw-border); box-shadow: none; }

/* Sprite icons (_Icons.cshtml): the stroke is inherited into the <use> tree from here. */
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------------------------------ header & footer */

.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: color-mix(in srgb, var(--gw-bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--gw-border);
}
.site-header .navbar { padding: .55rem 0; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.08rem; color: var(--gw-text); text-decoration: none; letter-spacing: -.02em; }
.brand:hover { color: var(--gw-text); }
.brand-mark { width: 28px; height: 28px; flex: none; }
.site-header .nav-link { font-weight: 550; font-size: .93rem; padding: .45rem .75rem !important; border-radius: var(--gw-radius-sm); }
.site-header .nav-link.active { color: var(--gw-text); background: var(--gw-surface-2); }
.site-header .navbar-toggler { border-color: var(--gw-border); }
.theme-toggle { width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0; }
.theme-toggle .icon { display: none; }
[data-gw-theme-choice="light"] .theme-icon-light, [data-gw-theme-choice="dark"] .theme-icon-dark, [data-gw-theme-choice="auto"] .theme-icon-auto { display: inline; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: .8rem;
  color: #fff; background: linear-gradient(135deg, var(--gw-primary), var(--gw-accent-2));
}

.site-footer { border-top: 1px solid var(--gw-border); padding: 2.5rem 0 2rem; margin-top: 4rem; font-size: .9rem; color: var(--gw-muted); }
.site-footer h6 { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gw-text); margin-bottom: .8rem; }
.site-footer a { color: var(--gw-muted); text-decoration: none; display: block; padding: .15rem 0; }
.site-footer a:hover { color: var(--gw-text); }

.page { padding: 2.5rem 0 1rem; }
.page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.page-header h1 { margin: 0; }
.page-header p { margin: .35rem 0 0; color: var(--gw-muted); max-width: 46rem; }
.eyebrow { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gw-primary); }
.flash { margin-bottom: 1.25rem; }

/* ------------------------------------------------------------------------------------------ app shell (portal, admin) */

.app-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2rem; padding: 2rem 0 1rem; }
.app-nav { position: sticky; top: 76px; align-self: start; }
.app-nav h6 { font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; color: var(--gw-muted); margin: 1.25rem .75rem .45rem; }
.app-nav h6:first-child { margin-top: 0; }
.app-nav a {
  display: flex; align-items: center; gap: .6rem; padding: .48rem .75rem; border-radius: var(--gw-radius-sm);
  color: var(--gw-muted); text-decoration: none; font-weight: 550; font-size: .92rem;
}
.app-nav a:hover { background: var(--gw-surface-2); color: var(--gw-text); }
.app-nav a.active { background: var(--gw-primary-soft); color: var(--gw-primary); }
.app-nav a.studio-link { color: var(--gw-text); border: 1px solid var(--gw-border); background: var(--gw-surface); margin-bottom: .5rem; box-shadow: var(--gw-shadow-sm); }
.app-nav a.studio-link:hover { border-color: rgba(var(--gw-primary-rgb), .5); }
.app-main { min-width: 0; }
@media (max-width: 991.98px) {
  .app-shell { grid-template-columns: 1fr; gap: 1rem; }
  .app-nav { position: static; display: flex; flex-wrap: wrap; gap: .25rem; }
  .app-nav h6 { display: none; }
}

.stat { background: var(--gw-surface); border: 1px solid var(--gw-border); border-radius: var(--gw-radius); padding: 1.1rem 1.25rem; box-shadow: var(--gw-shadow-sm); height: 100%; }
.stat .label { font-size: .78rem; color: var(--gw-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.stat .value { font-size: 1.7rem; font-weight: 700; letter-spacing: -.03em; margin-top: .2rem; }
.stat .hint { font-size: .85rem; color: var(--gw-muted); }
.meter { height: 8px; border-radius: 999px; background: var(--gw-surface-2); overflow: hidden; margin-top: .6rem; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gw-primary), var(--gw-accent-2)); }

.empty {
  text-align: center; padding: 3rem 1.5rem; border: 1px dashed var(--gw-border); border-radius: var(--gw-radius);
  background: var(--gw-surface); color: var(--gw-muted);
}
.empty h3 { color: var(--gw-text); font-size: 1.1rem; }

/* ------------------------------------------------------------------------------------------ marketing */

.hero { position: relative; padding: 5.5rem 0 4rem; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(var(--gw-primary-rgb), .18), transparent 70%),
    radial-gradient(35% 45% at 80% 20%, rgba(var(--gw-accent-2-rgb), .14), transparent 70%),
    radial-gradient(30% 40% at 60% 80%, rgba(var(--gw-accent-rgb), .10), transparent 70%);
}
.hero h1 { font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4rem); line-height: 1.04; letter-spacing: var(--gw-hero-tracking); font-weight: var(--gw-hero-weight); }
.hero h1 .ink { background: linear-gradient(90deg, var(--gw-primary), var(--gw-accent-2) 60%, var(--gw-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.2rem; color: var(--gw-muted); max-width: 40rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-note { margin-top: 1rem; font-size: .88rem; color: var(--gw-muted); }

.hero-visual { position: relative; margin-top: 3.5rem; }
.doc-mock {
  background: var(--gw-surface); border: 1px solid var(--gw-border); border-radius: 16px; box-shadow: var(--gw-shadow);
  overflow: hidden;
}
.doc-mock .bar { display: flex; gap: .4rem; align-items: center; padding: .65rem .9rem; border-bottom: 1px solid var(--gw-border); background: var(--gw-surface-2); font-size: .8rem; color: var(--gw-muted); }
.doc-mock .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--gw-border); display: inline-block; }
.doc-mock .body { display: grid; grid-template-columns: 1.3fr 1fr; min-height: 300px; }
.doc-mock .sheet { position: relative; background: var(--gw-canvas); padding: 1.5rem; display: grid; place-items: center; }
.doc-mock .paper { width: 100%; max-width: 360px; background: #fff; color: #222; border-radius: 4px; padding: 1.4rem 1.5rem; font-size: .72rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .15); line-height: 1.55; font-family: Arial, sans-serif; }
.doc-mock .paper .row-line { display: flex; justify-content: space-between; border-bottom: 1px solid #eee; padding: .2rem 0; }
.doc-mock .fieldbox { outline: 2px solid #10b981; outline-offset: 2px; border-radius: 2px; background: rgba(16, 185, 129, .08); }
.doc-mock .fieldbox.anchor { outline-color: var(--gw-anchor); outline-style: dashed; background: transparent; }
.doc-mock .fieldbox.new { outline-color: var(--gw-primary); background: rgba(var(--gw-primary-rgb), .08); }
.doc-mock .panel { padding: 1rem; display: flex; flex-direction: column; gap: .55rem; font-size: .82rem; }
.doc-mock .panel .f { border: 1px solid var(--gw-border); border-radius: 10px; padding: .55rem .7rem; background: var(--gw-surface); }
.doc-mock .panel .f b { font-family: var(--bs-font-monospace); font-size: .78rem; }
.doc-mock .panel .f .v { color: var(--gw-muted); font-size: .78rem; }
@media (max-width: 767.98px) { .doc-mock .body { grid-template-columns: 1fr; } }

.section { padding: 4.5rem 0; }
.section-title { max-width: 44rem; margin-bottom: 2.5rem; }
.section-title h2 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.3rem); letter-spacing: -.03em; }
.section-title p { color: var(--gw-muted); font-size: 1.06rem; }
.feature {
  height: 100%; padding: 1.4rem; border-radius: var(--gw-radius); background: var(--gw-surface); border: 1px solid var(--gw-border);
  box-shadow: var(--gw-shadow-sm); transition: border-color .15s, transform .15s;
}
.feature:hover { border-color: rgba(var(--gw-primary-rgb), .45); transform: translateY(-2px); }
.feature .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--gw-primary-soft); color: var(--gw-primary); margin-bottom: .9rem; }
.feature h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.feature p { color: var(--gw-muted); margin: 0; font-size: .94rem; }
.steps { counter-reset: step; }
.step { position: relative; padding-left: 3.2rem; margin-bottom: 1.6rem; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; background: var(--gw-surface); border: 1px solid var(--gw-border); color: var(--gw-primary);
}
.step h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.step p { color: var(--gw-muted); margin: 0; }
.cta-band {
  border-radius: 20px; padding: 3rem; text-align: center; color: var(--gw-cta-text, #fff);
  background: var(--gw-cta-bg);
}
.cta-band p { color: var(--gw-cta-sub, rgba(255, 255, 255, .82)); }
.cta-band .btn-outline-light { --bs-btn-color: var(--gw-cta-text, #fff); --bs-btn-border-color: var(--gw-cta-line, rgba(255, 255, 255, .7)); --bs-btn-hover-bg: var(--gw-cta-line, #fff); --bs-btn-hover-color: var(--gw-cta-ink); }
.cta-band .btn-light { --bs-btn-bg: var(--gw-cta-btn, #fff); --bs-btn-color: var(--gw-cta-ink); --bs-btn-hover-bg: var(--gw-cta-hover); --bs-btn-hover-color: var(--gw-cta-ink); --bs-btn-border-color: var(--gw-cta-btn, #fff); }
.logos { display: flex; flex-wrap: wrap; gap: 2rem 3rem; align-items: center; color: var(--gw-muted); font-weight: 650; opacity: .85; }

/* pricing */
.plan { position: relative; display: flex; flex-direction: column; height: 100%; padding: 1.6rem; border-radius: 16px; background: var(--gw-surface); border: 1px solid var(--gw-border); box-shadow: var(--gw-shadow-sm); }
.plan.featured { border: 2px solid var(--gw-primary); box-shadow: var(--gw-shadow); }
.plan .ribbon { position: absolute; top: -.75rem; left: 1.4rem; background: var(--gw-primary); color: #fff; font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
[data-bs-theme="dark"] .plan .ribbon { color: #0b0d18; }
.plan h3 { font-size: 1.15rem; margin: 0; }
.plan .price { font-size: 2.1rem; font-weight: 750; letter-spacing: -.04em; margin: .6rem 0 .1rem; }
.plan .volume { color: var(--gw-muted); font-size: .9rem; }
.plan ul { list-style: none; padding: 0; margin: 1.1rem 0 1.4rem; font-size: .92rem; }
.plan li { display: flex; gap: .55rem; padding: .3rem 0; }
.plan li::before { content: ""; flex: none; width: 1.1rem; height: 1.1rem; margin-top: .15rem; border-radius: 50%; background: var(--gw-success-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230f9f6e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 75% no-repeat; }

/* docs */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 3rem; padding: 2.5rem 0; }
.docs-toc { position: sticky; top: 80px; align-self: start; font-size: .9rem; max-height: calc(100vh - 100px); overflow: auto; }
.docs-toc a { display: block; padding: .3rem .7rem; color: var(--gw-muted); text-decoration: none; border-left: 2px solid var(--gw-border); }
.docs-toc a:hover, .docs-toc a.active { color: var(--gw-primary); border-left-color: var(--gw-primary); }
.docs-body { max-width: 50rem; }
.tutorial figure { margin: 1rem 0 1.5rem; }
.tutorial figure img, .tutorial-video { display: block; width: 100%; height: auto; border: 1px solid var(--gw-border, #ddd); border-radius: 10px; }
.docs-body h4, .docs-body h2 { margin-top: 2.4rem; scroll-margin-top: 80px; }
.docs-body p, .docs-body li { line-height: 1.7; }
@media (max-width: 991.98px) { .docs { grid-template-columns: 1fr; } .docs-toc { position: static; max-height: none; } }

/* auth (Identity pages) */
.auth-wrap { max-width: 980px; margin: 2.5rem auto; }
.auth-wrap > h1, .auth-wrap h1 { font-size: 1.8rem; }
.auth-wrap form, .auth-wrap section { background: var(--gw-surface); border: 1px solid var(--gw-border); border-radius: var(--gw-radius); padding: 1.5rem; box-shadow: var(--gw-shadow-sm); }
.auth-wrap form section, .auth-wrap section form { border: 0; padding: 0; box-shadow: none; background: transparent; }
.auth-wrap .form-floating > label { color: var(--gw-muted); }

/* dropzone */
.dropzone {
  position: relative; display: grid; place-items: center; text-align: center; padding: 2.5rem 1.5rem; border: 2px dashed var(--gw-border);
  border-radius: var(--gw-radius); background: var(--gw-surface); color: var(--gw-muted); cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--gw-primary); background: var(--gw-primary-soft); color: var(--gw-text); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone strong { color: var(--gw-text); }

/* app pages: headings sized for a work area, plain tables look like cards */
.app-main h1 { font-size: 1.65rem; }
.app-main > h1:first-child, .app-main > h1 { margin-bottom: 1.25rem; }
.app-main > .table, .app-main > table.table, .app-main form > .table {
  background: var(--gw-surface); border: 1px solid var(--gw-border); border-radius: var(--gw-radius); border-collapse: separate; border-spacing: 0; overflow: hidden;
  box-shadow: var(--gw-shadow-sm);
}
.app-main > .table > :not(caption) > * > * { padding: .65rem .9rem; }
.app-main > .table > tbody > tr:last-child > * { border-bottom: 0; }
.app-main .card .card-body .fs-3 { font-weight: 700; letter-spacing: -.03em; }

.progress { --bs-progress-bg: var(--gw-surface-2); --bs-progress-bar-bg: var(--gw-primary); border-radius: 999px; height: 8px; }
.card .text-muted.small:first-child { text-transform: uppercase; letter-spacing: .06em; font-weight: 600; font-size: .72rem; }

/* Identity login: no external providers are configured, so the right column is hidden and the form centered. */
.auth-wrap .row:has(#account) > .col-md-6:not(:has(#account)) { display: none; }
.auth-wrap .row:has(#account) > .col-md-4 { flex: 0 0 100%; max-width: 440px; margin: 0 auto; }
.auth-wrap:has(#account) > h1 { text-align: center; }
.auth-wrap #account h2 { font-size: 1.15rem; color: var(--gw-muted); font-weight: 500; }
.auth-wrap #account .btn-primary { padding: .6rem; }
