/* Foundation Innovated Technologies LLC — draft styles */
:root {
  --void: #050506;
  --marble-deep: #0a0a0c;
  --panel: #101012;
  --steel: #c9c4ba;
  --steel-bright: #f1ede6;
  --steel-mid: #9a958c;
  --steel-dim: #6e6a64;
  --bronze: #a48455;
  --bronze-soft: rgba(164, 132, 85, 0.42);
  --warm-line: rgba(196, 165, 116, 0.55);
  --ink: #d9d4cb;
  --muted: #8f8a82;
  --hairline: rgba(201, 196, 186, 0.16);
  --shadow: rgba(0, 0, 0, 0.55);
  --font: "Josefin Sans", "Avenir Next", "Century Gothic", sans-serif;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  letter-spacing: 0.04em;
  background: var(--void);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

:focus-visible {
  outline: 1px solid var(--steel);
  outline-offset: 5px;
}

::selection {
  background: rgba(164, 132, 85, 0.28);
  color: var(--steel-bright);
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.atmosphere img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  filter: grayscale(0.35) saturate(0.55) brightness(0.28) contrast(1.15);
  transform: scale(1.06);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(18, 16, 14, 0.15) 0%, transparent 42%),
    radial-gradient(ellipse at 18% 80%, rgba(0, 0, 0, 0.45) 0%, transparent 50%),
    linear-gradient(180deg, rgba(5, 5, 6, 0.55) 0%, rgba(5, 5, 6, 0.72) 100%);
}

.veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(115deg, transparent 18%, rgba(164, 132, 85, 0.035) 19.2%, transparent 21%),
    linear-gradient(160deg, transparent 62%, rgba(201, 196, 186, 0.03) 64%, transparent 67%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.012) 0 1px,
      transparent 1px 120px
    );
  mix-blend-mode: screen;
  opacity: 0.7;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: relative;
  z-index: 4;
  border-bottom: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(8, 8, 9, 0.72), rgba(8, 8, 9, 0.28));
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  position: relative;
}

.logo-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--steel-mid);
  transform: rotate(45deg);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4) inset;
}

.logo-mark span {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--steel);
  padding-left: 0.22em;
}

.logo-name {
  display: none;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

nav ul {
  display: flex;
  gap: clamp(18px, 3vw, 42px);
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  position: relative;
  display: inline-block;
  padding: 10px 0 12px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease;
}

nav a:hover {
  color: var(--steel-bright);
}

nav a[aria-current="page"] {
  color: var(--steel-bright);
}

nav a[aria-current="page"]::after,
nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--warm-line), transparent);
  box-shadow: 0 0 10px rgba(196, 165, 116, 0.35);
}

nav a:hover::after {
  opacity: 0.55;
}

nav a[aria-current="page"]::after {
  opacity: 1;
}

/* Hero — original homepage mockup as the main visual */
.hero {
  position: relative;
  padding: 0 0 8px;
}

.hero-mockup {
  margin: 0;
  width: 100%;
  border: 1px solid var(--hairline);
  overflow: hidden;
  box-shadow: 0 24px 50px var(--shadow);
  background: #050505;
}

.hero-mockup img {
  width: 100%;
  height: auto;
  display: block;
}

/* Product band */
.product-band {
  padding: 12px 0 88px;
}

.product-band header {
  text-align: center;
  margin-bottom: 28px;
}

.section-kicker {
  margin: 0 0 10px;
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--steel-dim);
}

.section-title {
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--steel);
}

.section-title a {
  background: linear-gradient(90deg, transparent, var(--warm-line), transparent);
  background-size: 0 1px;
  background-position: 50% 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s ease, color 0.3s ease;
}

.section-title a:hover {
  color: var(--steel-bright);
  background-size: 100% 1px;
}

.section-note {
  margin: 18px auto 0;
  max-width: 36rem;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.panel {
  position: relative;
  overflow: hidden;
  height: clamp(280px, 36vw, 420px);
  border: 1px solid var(--hairline);
  background: #080808;
  box-shadow: 0 18px 40px var(--shadow);
}

.panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.35);
  filter: saturate(0.86) contrast(1.05);
}

.panel--bike img { object-position: 8% 55%; }
.panel--elliptical img { object-position: 36% 50%; }
.panel--rower img { object-position: 64% 55%; }
.panel--climber img { object-position: 94% 40%; }

.gallery-full {
  display: none;
  border: 1px solid var(--hairline);
  overflow: hidden;
  box-shadow: 0 18px 40px var(--shadow);
}

.gallery-full img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Inner pages */
.page {
  padding: clamp(48px, 8vw, 88px) 0 96px;
}

.page-head {
  text-align: center;
  margin-bottom: clamp(36px, 6vw, 64px);
}

.page-head h1 {
  margin: 0;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  font-weight: 400;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: var(--steel-bright);
}

.rule {
  width: 72px;
  height: 1px;
  margin: 22px auto 0;
  background: linear-gradient(90deg, transparent, var(--bronze), transparent);
}

.prose {
  width: min(720px, 100%);
  margin: 0 auto;
  text-align: center;
}

.prose p {
  margin: 0 0 1.35rem;
  font-size: 1.02rem;
  line-height: 1.85;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.prose .lede {
  color: var(--steel);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.facts {
  display: grid;
  gap: 22px;
  margin-top: 42px;
}

.fact {
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(16, 16, 18, 0.72), rgba(8, 8, 9, 0.82));
  padding: 28px 26px 26px;
}

.fact h2 {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--bronze);
}

.fact p,
.fact address {
  margin: 0;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.shot {
  margin: 0 auto 48px;
  border: 1px solid var(--hairline);
  overflow: hidden;
  box-shadow: 0 24px 50px var(--shadow);
  background: #050505;
}

.shot img {
  width: 100%;
  height: auto;
  display: block;
}

.machines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 36px 0 8px;
}

.machine {
  border: 1px solid var(--hairline);
  padding: 22px 16px;
  text-align: center;
}

.machine h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--steel);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 22px 0 28px;
  text-align: center;
  background: rgba(5, 5, 6, 0.55);
}

.site-footer p {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 720px) {
  .logo-name { display: block; }
}

@media (max-width: 720px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .header-inner {
    flex-direction: column;
    justify-content: center;
    padding: 16px 0 10px;
    min-height: 0;
    gap: 8px;
  }
  nav a { letter-spacing: 0.22em; font-size: 10px; }
  .gallery { display: none; }
  .gallery-full { display: block; }
  .machines { grid-template-columns: 1fr; }
}

/* Home — cleaned mockup image below the normal, visible HTML header */
body.home {
  min-height: 0;
  background: #050506;
}

body.home .atmosphere,
body.home .veil {
  display: none;
}

/* Home: the real HTML header/nav is shown normally above the image (the image has no baked-in nav). */
.home-caption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.shot figcaption {
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.home-visual {
  margin: 0;
  width: 100%;
}

.home-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---- Portal additions (auth, modals, forms, dropdowns) ---- */
.nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-btn {
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  padding: 0;
}

.nav-btn:hover,
.nav-main a:hover {
  color: var(--steel-bright);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 200px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: rgba(12, 12, 14, 0.96);
  border: 1px solid var(--hairline);
  box-shadow: 0 12px 40px var(--shadow);
  z-index: 20;
}

.nav-dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--ink);
}

.dropdown-menu a:hover {
  background: rgba(164, 132, 85, 0.12);
  color: var(--steel-bright);
}

.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.modal-panel {
  position: relative;
  width: min(420px, calc(100% - 32px));
  padding: 28px 28px 22px;
  background: #101012;
  border: 1px solid var(--hairline);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}

.modal-panel h2 {
  margin: 0 0 18px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1rem;
  color: var(--steel-bright);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.modal-panel label,
.form-card label {
  display: block;
  margin-bottom: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.modal-panel input,
.form-card input,
.form-card select,
.form-card textarea,
.sql-console textarea,
.sql-console input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  background: #0a0a0c;
  border: 1px solid var(--hairline);
  color: var(--steel-bright);
  font: inherit;
  letter-spacing: 0.04em;
}

.btn {
  display: inline-block;
  margin-top: 8px;
  padding: 11px 20px;
  border: 1px solid var(--warm-line);
  background: transparent;
  color: var(--steel-bright);
  font: inherit;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  cursor: pointer;
}

.btn-primary {
  background: rgba(164, 132, 85, 0.18);
}

.btn:hover {
  background: rgba(164, 132, 85, 0.28);
}

.btn-danger {
  border-color: rgba(180, 80, 80, 0.55);
}

.form-error {
  color: #e8a0a0;
  font-size: 0.85rem;
  margin: 0 0 10px;
}

.modal-footer-link {
  margin: 18px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.modal-footer-link a {
  color: var(--bronze);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.flash-wrap {
  margin-top: 16px;
}

.flash {
  padding: 12px 16px;
  border: 1px solid var(--hairline);
  margin-bottom: 8px;
}

.flash-error {
  border-color: rgba(180, 80, 80, 0.45);
  color: #e8a0a0;
}

.flash-ok {
  border-color: rgba(100, 160, 100, 0.45);
  color: #b8d8b8;
}

.form-card {
  max-width: 640px;
  padding: 24px;
  border: 1px solid var(--hairline);
  background: rgba(10, 10, 12, 0.72);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.step-indicator {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.step-indicator .on {
  color: var(--bronze);
}

.note-box {
  margin: 12px 0 18px;
  padding: 12px 14px;
  border-left: 2px solid var(--bronze);
  background: rgba(164, 132, 85, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
}

.price-slot {
  display: inline-block;
  min-width: 7rem;
  padding: 4px 10px;
  border: 1px dashed var(--hairline);
  color: var(--muted);
  font-size: 0.85rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--hairline);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table.data th,
table.data td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}

table.data th {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.folder-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  align-items: end;
}

.folder-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--hairline);
}

.folder-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
}

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

.breadcrumb a {
  color: var(--bronze);
}

.sql-console textarea {
  min-height: 120px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--hairline);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze);
}

.stub-tag {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tech-card {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--hairline);
  background: rgba(10, 10, 12, 0.55);
}

.tech-card h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 500;
}

.check-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 12px 0 18px;
}

.check-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  color: var(--ink);
}

.check-row input {
  width: auto;
  margin: 0;
}

.actions-inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---- SignForge / VaultDrop / Outbox (staff tools) ---- */
.wrap.wide { width: min(1400px, calc(100% - 48px)); }
.page-head.compact { margin-bottom: 22px; }
.muted { color: var(--muted); }
.small { font-size: 0.8rem; }
.nowrap { white-space: nowrap; }
.link { color: var(--bronze); text-decoration: underline; text-underline-offset: 3px; }
code.hash { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.72rem; color: var(--steel-mid); word-break: break-all; }
.btn-sm { padding: 6px 12px; font-size: 0.68rem; margin-top: 0; }
.dropdown-sep { height: 1px; margin: 6px 0; background: var(--hairline); }
.subnav { display: flex; gap: 22px; justify-content: center; margin: -28px 0 26px; flex-wrap: wrap; }
.subnav a { font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); padding-bottom: 6px; border-bottom: 1px solid transparent; }
.subnav a:hover, .subnav a[aria-current="page"] { color: var(--steel-bright); border-bottom-color: var(--warm-line); }
.sf-tabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 14px; }
.sf-tabs a { padding: 8px 14px; border: 1px solid var(--hairline); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.sf-tabs a.on, .sf-tabs a:hover { color: var(--steel-bright); border-color: var(--warm-line); background: rgba(164, 132, 85, 0.1); }
.sf-tabs .count { color: var(--bronze); margin-left: 4px; }
.sf-tabs .sf-new { margin-left: auto; margin-top: 0; }
.sf-status { display: inline-block; padding: 3px 9px; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid var(--hairline); white-space: nowrap; }
.sf-status-draft { color: var(--steel-mid); }
.sf-status-sent { color: #e3c38a; border-color: rgba(227, 195, 138, 0.5); }
.sf-status-completed { color: #a9d8a9; border-color: rgba(120, 180, 120, 0.5); }
.sf-status-declined { color: #e8a0a0; border-color: rgba(180, 80, 80, 0.5); }
.sf-status-voided { color: #9a958c; border-color: rgba(154, 149, 140, 0.4); text-decoration: line-through; }
.sf-card { max-width: none; }
.sf-summary > div { min-width: 0; overflow-wrap: anywhere; }
.sf-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; padding: 16px; border: 1px solid var(--hairline); background: rgba(10, 10, 12, 0.72); margin-bottom: 18px; }
.sf-section { margin: 28px 0; }
.sf-h2 { margin: 0 0 12px; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--bronze); }
.sf-rcpt-table input { display: block; width: 100%; padding: 8px 10px; background: #0a0a0c; border: 1px solid var(--hairline); color: var(--steel-bright); font: inherit; }
.sf-rcpt-table .sf-order { width: 70px; display: inline-block; margin-left: 8px; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 2px; vertical-align: middle; border: 1px solid rgba(0, 0, 0, 0.4); }
.sf-owner-mode { margin: 16px 0; border: 1px solid var(--hairline); padding: 10px 14px; }
.sf-owner-mode legend { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 0 6px; }
.sf-owner-mode label { display: block; text-transform: none; letter-spacing: 0.04em; font-size: 0.92rem; color: var(--ink); margin: 6px 0; }
.sf-owner-mode input { width: auto; display: inline; margin: 0 8px 0 0; }
.sf-route, .sf-timeline { list-style: none; padding: 0; margin: 0 0 14px; border: 1px solid var(--hairline); }
.sf-route li, .sf-timeline li { padding: 10px 14px; border-bottom: 1px solid var(--hairline); }
.sf-route li:last-child, .sf-timeline li:last-child { border-bottom: 0; }
.sf-timeline li.current { background: rgba(164, 132, 85, 0.1); border-left: 2px solid var(--bronze); }
.sf-timeline li.st-completed .sf-rstatus { color: #a9d8a9; }
.sf-timeline li.st-declined .sf-rstatus { color: #e8a0a0; }
.sf-rstatus { float: right; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel-mid); }
.sf-inline-input { padding: 8px 10px; background: #0a0a0c; border: 1px solid var(--hairline); color: var(--steel-bright); font: inherit; margin-top: 8px; }
.sf-ev { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze); }
.sf-ev-rejected, .sf-ev-declined, .sf-ev-voided, .sf-ev-link_rejected, .sf-ev-revoked, .sf-ev-deleted, .sf-ev-purged, .sf-ev-access_denied { color: #e8a0a0; }
.sf-ev-completed, .sf-ev-signed { color: #a9d8a9; }
.sf-audit td { font-size: 0.82rem; }

/* editor + signer */
.sf-editor { display: grid; grid-template-columns: 280px 1fr; gap: 22px; align-items: start; }
.sf-palette { position: sticky; top: 12px; padding: 16px; border: 1px solid var(--hairline); background: rgba(10, 10, 12, 0.9); max-height: calc(100vh - 24px); overflow: auto; }
.sf-palette h3 { margin: 4px 0 10px; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--bronze); }
.sf-recipient-pick { display: grid; gap: 6px; margin-bottom: 16px; }
.sf-rpick { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--hairline); background: transparent; color: var(--ink); font: inherit; font-size: 0.82rem; text-align: left; cursor: pointer; }
.sf-rpick.on { border-color: var(--warm-line); background: rgba(164, 132, 85, 0.16); color: var(--steel-bright); }
.sf-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.sf-tool { padding: 10px 8px; border: 1px dashed var(--warm-line); text-align: center; font-size: 0.78rem; cursor: grab; user-select: none; background: rgba(164, 132, 85, 0.06); }
.sf-tool:hover { background: rgba(164, 132, 85, 0.18); }
.sf-props { border-top: 1px solid var(--hairline); margin-top: 12px; padding-top: 12px; }
.sf-props label { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.sf-props select, .sf-props input:not([type="checkbox"]) { display: block; width: 100%; margin-top: 4px; padding: 7px 8px; background: #0a0a0c; border: 1px solid var(--hairline); color: var(--steel-bright); font: inherit; }
.sf-props label.check { text-transform: none; letter-spacing: 0.02em; font-size: 0.86rem; color: var(--ink); }
.sf-save-bar { border-top: 1px solid var(--hairline); margin-top: 12px; padding-top: 8px; }
.sf-legend { margin-top: 12px; font-size: 0.8rem; display: grid; gap: 4px; }
.sf-pages { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 300px; }
.sf-page { position: relative; box-shadow: 0 16px 40px var(--shadow); background: #fff; margin-bottom: 16px; }
.sf-page canvas { display: block; }
.sf-overlay { position: absolute; inset: 0; }
.sf-overlay.drop { outline: 2px dashed var(--bronze); outline-offset: -2px; }
.sf-page-label { font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.sf-field { position: absolute; border: 2px solid; border-radius: 2px; cursor: move; box-sizing: border-box; color: #1b1b1b; touch-action: none; }
.sf-field.selected { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(0, 0, 0, 0.6); }
.sf-field-label { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; max-width: calc(100% - 8px); color: #161616; }
.sf-handle { position: absolute; right: -5px; bottom: -5px; width: 10px; height: 10px; background: #fff; border: 1px solid #333; cursor: nwse-resize; }
.sf-field.mine { cursor: default; }
.sf-field.mine.filled { background: transparent !important; border-style: dashed; }
.sf-field.mine.pulse { animation: sfpulse 0.6s ease 2; }
@keyframes sfpulse { 50% { box-shadow: 0 0 0 6px rgba(196, 165, 116, 0.6); } }
.sf-field .sf-sig-btn { width: 100%; height: 100%; border: 0; background: transparent; font: inherit; font-size: 12px; font-weight: 600; color: #1b1b1b; cursor: pointer; letter-spacing: 0.04em; }
.sf-field input, .sf-field textarea { width: 100%; height: 100%; border: 0; background: transparent; color: #111; font-family: Helvetica, Arial, sans-serif; padding: 1px 3px; resize: none; letter-spacing: 0; }
.sf-field input[readonly] { cursor: not-allowed; }
.sf-sig-img { width: 100%; height: 100%; object-fit: contain; cursor: pointer; }
.sf-sign-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--hairline); background: rgba(10, 10, 12, 0.92); position: sticky; top: 0; z-index: 30; margin-bottom: 10px; }
.sf-sign-bar .btn { margin-top: 0; }
.sf-sign-bar .btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.sf-msg { margin-top: 6px; padding: 6px 10px; border-left: 2px solid var(--bronze); color: var(--muted); font-size: 0.88rem; }
.sf-sig-panel { width: min(640px, calc(100% - 32px)); }
.sf-sig-panel canvas { display: block; width: 100%; background: #fbfaf7; border: 1px solid var(--hairline); margin: 10px 0; touch-action: none; }
.sf-sig-tabs { display: flex; gap: 6px; }
.sf-sig-tabs button { padding: 7px 16px; background: transparent; border: 1px solid var(--hairline); color: var(--muted); font: inherit; cursor: pointer; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; }
.sf-sig-tabs button.on { color: var(--steel-bright); border-color: var(--warm-line); }
.form-card.plain { padding: 0; border: 0; background: transparent; }

/* outbox */
.outbox-list { display: grid; gap: 12px; }
.outbox-item { border: 1px solid var(--hairline); background: rgba(10, 10, 12, 0.8); padding: 14px 16px; }
.outbox-item header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.outbox-body { white-space: pre-wrap; font-family: inherit; font-size: 0.86rem; color: var(--ink); margin: 10px 0; padding: 10px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--hairline); max-height: 220px; overflow: auto; }
.outbox-link { display: flex; gap: 8px; align-items: center; }
.outbox-url { flex: 1; padding: 7px 9px; background: #0a0a0c; border: 1px solid var(--hairline); color: var(--bronze); font: inherit; font-size: 0.8rem; }

@media (max-width: 900px) {
  .sf-editor { grid-template-columns: 1fr; }
  .sf-palette { position: static; max-height: none; }
}

/* VaultDrop */
.vd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 26px; }
.vd-card { display: block; padding: 18px; border: 1px solid var(--hairline); background: linear-gradient(180deg, rgba(16, 16, 18, 0.8), rgba(8, 8, 9, 0.88)); transition: border-color 0.2s ease; }
.vd-card:hover { border-color: var(--warm-line); }
.vd-card-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.vd-card-head strong { color: var(--steel-bright); font-weight: 500; letter-spacing: 0.08em; }
.vd-icon { font-size: 1.4rem; color: var(--bronze); }
.vd-desc { color: var(--muted); font-size: 0.9rem; margin: 6px 0 10px; }
.vd-usage { margin: 10px 0 8px; }
.vd-usage-bar { height: 8px; border: 1px solid var(--hairline); background: rgba(0, 0, 0, 0.4); overflow: hidden; }
.vd-usage-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--bronze), #e3c38a); }
.vd-usage-bar.warn span { background: linear-gradient(90deg, #c98a3a, #e3a35a); }
.vd-usage-bar.full span { background: linear-gradient(90deg, #a04646, #d46a6a); }
.vd-usage-text { font-size: 0.78rem; color: var(--muted); margin-top: 5px; letter-spacing: 0.06em; }
.vd-create { margin-top: 8px; }
.vd-head { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; padding: 16px; border: 1px solid var(--hairline); background: rgba(10, 10, 12, 0.75); margin-bottom: 16px; }
.vd-head-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.vd-head-actions .btn { margin-top: 0; }
.vd-quota-form input { width: 110px; display: inline-block; padding: 6px 8px; background: #0a0a0c; border: 1px solid var(--hairline); color: var(--steel-bright); font: inherit; margin-left: 6px; }
.vd-drop { border: 1px dashed var(--warm-line); padding: 20px; text-align: center; background: rgba(164, 132, 85, 0.05); margin-bottom: 12px; }
.vd-drop.over { background: rgba(164, 132, 85, 0.18); }
.vd-drop p { margin: 4px 0; }
.vd-drop-actions { justify-content: center; margin-top: 8px; align-items: center; }
.vd-drop-actions .sf-inline-input { margin-top: 8px; }
.vd-queue { display: grid; gap: 8px; margin-bottom: 14px; }
.vd-item { border: 1px solid var(--hairline); padding: 10px 12px; background: rgba(10, 10, 12, 0.85); }
.vd-item.ok { border-color: rgba(120, 180, 120, 0.45); }
.vd-item.error { border-color: rgba(180, 80, 80, 0.55); }
.vd-item-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 0.88rem; flex-wrap: wrap; }
.vd-progress { height: 6px; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--hairline); }
.vd-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--bronze), #e3c38a); transition: width 0.25s ease; }
.vd-item-actions { margin-top: 6px; }
.vd-files li > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.vd-access { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vd-share-panel { width: min(640px, calc(100% - 32px)); max-height: calc(100vh - 40px); overflow: auto; }
.vd-h3 { margin: 18px 0 8px; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--bronze); }
.vd-share-form { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.vd-share-form input, .vd-share-form select, .vd-link-form input:not([type="checkbox"]), .vd-link-form select { display: block; width: 100%; padding: 9px 10px; background: #0a0a0c; border: 1px solid var(--hairline); color: var(--steel-bright); font: inherit; margin-top: 4px; }
.vd-share-form .btn { margin-top: 0; }
.vd-link-form label { display: block; margin-bottom: 10px; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.vd-link-form label.check { text-transform: none; letter-spacing: 0.02em; font-size: 0.9rem; color: var(--ink); }
.vd-share-list { list-style: none; padding: 0; margin: 10px 0 0; border: 1px solid var(--hairline); }
.vd-share-list:empty { display: none; }
.vd-share-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--hairline); font-size: 0.88rem; }
.vd-share-list li:last-child { border-bottom: 0; }
.vd-share-list .btn { margin-top: 0; }
.vd-gate { max-width: 520px; margin: 0 auto; }
@media (max-width: 760px) { .vd-head, .vd-access, .vd-share-form { grid-template-columns: 1fr; } .vd-head-actions { align-items: flex-start; } }
.modal-panel label.check input, .vd-link-form label.check input { display: inline-block; width: auto; margin: 0 8px 0 0; vertical-align: middle; }
.modal-panel .form-row label { margin-bottom: 10px; }

/* ---------------------------------------------------------------------------
   Employee invitations (admin screen + public /invite signup)
   --------------------------------------------------------------------------- */
form.inline { display: inline; margin: 0; }
.inv-form { max-width: 720px; margin-bottom: 18px; }
.inv-form label { margin-bottom: 4px; }
.inv-row { display: flex; gap: 10px; align-items: stretch; }
.inv-row input { flex: 1; margin-top: 0 !important; }
.inv-row .btn { margin-top: 0; white-space: nowrap; }
.flash-warn { border-color: rgba(227, 195, 138, 0.5); color: #e3c38a; background: rgba(164, 132, 85, 0.08); max-width: 720px; }
.flash-warn p { margin: 0 0 8px; }
.inv-h2 { margin: 26px 0 10px; font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel-bright); font-weight: 500; }
.inv-h2 .small { letter-spacing: 0.06em; text-transform: none; margin-left: 10px; }
.inv-table td .inline + .inline { margin-left: 4px; }
.inv-signup { margin: 0 auto; max-width: 620px; }
.inv-signup .inv-readonly { color: var(--bronze); background: rgba(164, 132, 85, 0.06); border-style: dashed; cursor: not-allowed; }
.inv-hint { display: block; margin-top: 5px; font-size: 0.7rem; letter-spacing: 0.04em; text-transform: none; color: var(--muted); }
.inv-match { display: block; min-height: 1.2em; margin-top: 6px; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: none; }
.inv-match.good { color: #a9d8a9; }
.inv-match.bad { color: #e8a0a0; }
.inv-field-error { display: block; margin-top: 5px; font-size: 0.75rem; letter-spacing: 0.02em; text-transform: none; color: #e8a0a0; }
.btn:disabled, .btn[disabled] { opacity: 0.45; cursor: not-allowed; background: transparent; }
.dropdown-menu a { white-space: nowrap; }

/* Mail settings panel */
.mail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; }
.mail-card { max-width: none; }
.mail-card h2 { margin: 0 0 12px; font-size: 0.9rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel-bright); font-weight: 500; }
.mail-dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; margin: 0; font-size: 0.9rem; }
.mail-dl dt { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 2px; }
.mail-dl dd { margin: 0; color: var(--steel-bright); word-break: break-word; }
.mail-badge { margin: 0 4px 4px 0; text-transform: none; letter-spacing: 0.03em; }
.mail-steps { margin: 8px 0 4px; padding-left: 18px; color: var(--muted); font-size: 0.82rem; }
.mail-card code, .note-box code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; color: var(--bronze); }

/* Private preview login screen */
.preview-gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.preview-login { width: min(420px, 92vw); text-align: center; padding: 40px 0; }
.preview-login h1 { font-size: 1.05rem; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 400; color: var(--steel-bright); margin: 18px 0 4px; }
.preview-login .form-card { text-align: left; margin: 22px auto 14px; }
.preview-mark { display: flex; justify-content: center; }
.preview-mark .logo-mark { transform: scale(1.35); }

/* Drag & drop (Folder System + VaultDrop) */
.fit-drop-overlay { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; background: rgba(10, 10, 12, 0.72); border: 3px dashed var(--bronze, #a48455); pointer-events: none; }
.fit-drop-overlay[hidden] { display: none; }
.fit-drop-overlay-box { display: grid; gap: 6px; text-align: center; padding: 28px 40px; background: rgba(20, 18, 16, 0.95); border: 1px solid var(--warm-line, #a48455); color: #f3e7d0; font-size: 1.05rem; }
.fit-drop-overlay-box strong { font-size: 1.5rem; letter-spacing: 0.02em; }
.fit-dnd-zone { border: 1px dashed var(--warm-line); padding: 12px 16px; margin: 10px 0 12px; background: rgba(164, 132, 85, 0.05); }
.fit-dnd-zone p { margin: 4px 0; }
[draggable="true"][data-dnd-name] { cursor: grab; }
.fit-dnd-dragging { opacity: 0.5; }
.fit-dnd-target { outline: 2px solid var(--bronze, #a48455); outline-offset: 2px; background: rgba(164, 132, 85, 0.18); }
