body { font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif; background: #0b1220; color: #e7eefc; margin: 0; }
a { color: #8ab4ff; text-decoration: none; }
.container { max-width: 980px; margin: 0 auto; padding: 24px; }
.container-wide { max-width: 1280px; }
.container-bleed { width: 100%; max-width: none; margin: 0; padding: 0; }
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(9, 14, 26, 0.75); border-bottom: 1px solid rgba(255,255,255,0.10); backdrop-filter: blur(10px); }
.topbar-inner { max-width: 1280px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.nav { display: flex; gap: 10px; align-items: center; }
.nav-link { color: rgba(231,238,252,0.86); padding: 8px 10px; border-radius: 10px; border: 1px solid transparent; }
.nav-link:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.10); }
.brand a { font-weight: 700; font-size: 18px; color: #e7eefc; }

.brand-link { display: inline-flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 12px; border: 1px solid transparent; }
.brand-link:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.10); }
.brand-mark { width: 34px; height: 34px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(180deg, rgba(47,107,255,0.34), rgba(113,53,255,0.16)); border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 14px 50px rgba(47,107,255,0.18); color: rgba(231,238,252,0.96); }
.brand-word { font-weight: 900; letter-spacing: -0.03em; font-size: 16px; }

.nav-links { display: flex; gap: 6px; align-items: center; padding: 6px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.04); }
.nav-user { display: flex; gap: 10px; align-items: center; padding-left: 6px; }
.nav-user-chip { display: inline-flex; align-items: center; padding: 7px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.12); background: rgba(0,0,0,0.18); color: rgba(231,238,252,0.88); font-weight: 850; font-size: 12px; }

.signed-card { border-radius: 22px; padding: 18px; }
.signed-top { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.signed-icon { width: 44px; height: 44px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: rgba(16,185,129,0.14); border: 1px solid rgba(16,185,129,0.22); color: rgba(16,185,129,0.95); }
.signed-meta { min-width: 240px; }
.signed-title { font-weight: 950; font-size: 18px; letter-spacing: -0.02em; }
.signed-status { display: flex; align-items: center; justify-content: flex-end; }
.signed-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.signed-next { margin-top: 10px; }
.signed-footer { margin-top: 14px; display: flex; justify-content: flex-end; }
.card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); border-radius: 12px; padding: 16px; margin: 14px 0; }
.field { margin: 10px 0; }
label { display: block; margin-bottom: 6px; color: rgba(231,238,252,0.85); }
input, select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.14); background: rgba(0,0,0,0.25); color: #e7eefc; }
input[type=checkbox] { width: auto; }
.textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.14); background: rgba(0,0,0,0.25); color: #e7eefc; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.btn { background: #2f6bff; border: none; color: white; padding: 10px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; }
.btn-secondary { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.14); color: #e7eefc; padding: 10px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; }
.btn:disabled, .btn-secondary:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; transform: none; }
.btn:disabled { background: rgba(47,107,255,0.45); }
.btn-secondary:disabled { background: rgba(255,255,255,0.08); }
.btn-sm { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 10px; border-radius: 12px; font-weight: 800; font-size: 12px; letter-spacing: 0.01em; border: 1px solid rgba(31,87,255,0.18); background: rgba(31,87,255,0.10); color: rgba(10,14,26,0.92); }
.btn-sm:hover { background: rgba(31,87,255,0.14); }
.btn-sm.btn-secondary { border-color: rgba(10,14,26,0.10); background: rgba(10,14,26,0.03); color: rgba(10,14,26,0.86); }
.btn-sm.btn-secondary:hover { background: rgba(10,14,26,0.05); }
.btn-sm.btn-ghost { border-color: rgba(10,14,26,0.08); background: rgba(255,255,255,0.0); color: rgba(10,14,26,0.82); }
.btn-sm.btn-ghost:hover { background: rgba(10,14,26,0.04); }
.btn-sm, .btn, .btn-secondary { transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease; }
.btn-sm:active, .btn:active, .btn-secondary:active { transform: translateY(1px); }
.btn-sm[data-variant="danger"] { border-color: rgba(239,68,68,0.22); background: rgba(239,68,68,0.08); color: rgba(127,29,29,0.92); }
.btn-sm[data-variant="danger"]:hover { background: rgba(239,68,68,0.11); }
.btn-group { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border-bottom: 1px solid rgba(255,255,255,0.10); padding: 10px 8px; text-align: left; vertical-align: top; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 12px; }
.label { color: rgba(231,238,252,0.7); margin-right: 8px; }
.pdf { width: 100%; height: 560px; border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; background: rgba(0,0,0,0.25); }
.canvas { width: 100%; max-width: 520px; background: rgba(255,255,255,0.95); border-radius: 12px; border: 1px solid rgba(0,0,0,0.15); }
.hidden { display: none; }
.link { color: #8ab4ff; }

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

.page-hero { background: radial-gradient(1200px 320px at 25% 0%, rgba(113, 53, 255, 0.65), rgba(47, 107, 255, 0.15) 55%, rgba(11,18,32,0) 70%), linear-gradient(180deg, rgba(113,53,255,0.30), rgba(11,18,32,0)); border: 1px solid rgba(255,255,255,0.10); border-radius: 16px; padding: 22px 18px; margin: 14px 0; }
.hero-inner { display: flex; flex-direction: column; gap: 6px; }
.hero-title { font-size: 28px; font-weight: 750; letter-spacing: -0.02em; }
.hero-subtitle { color: rgba(231,238,252,0.78); }
.hero-actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }

.action-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.action-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); border-radius: 14px; padding: 16px; }
.action-card h3 { margin: 0 0 6px 0; }
.action-card p { margin: 0 0 12px 0; color: rgba(231,238,252,0.78); }

.editor-shell { display: grid; grid-template-columns: 320px minmax(540px, 1fr) 320px; gap: 12px; align-items: start; margin-top: 14px; }
.editor-shell.editor-shell-no-inspector { grid-template-columns: 320px minmax(620px, 1fr); }
.editor-left, .editor-right { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); border-radius: 14px; padding: 14px; position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; }
.editor-center { min-width: 0; }
.editor-left-title, .editor-right-title { font-weight: 750; font-size: 15px; }
.editor-left-sub, .editor-right-sub { color: rgba(231,238,252,0.72); font-size: 12px; margin-top: 4px; }
.editor-left-header, .editor-right-header { padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.10); margin-bottom: 10px; }

.editor-section { margin: 12px 0; }
.editor-section-title { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(231,238,252,0.72); margin-bottom: 8px; }
.palette { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.palette-item { background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.14); color: #e7eefc; padding: 10px 10px; border-radius: 12px; cursor: pointer; font-weight: 650; text-align: left; }
.palette-item:hover { background: rgba(255,255,255,0.08); }

.recipient-legend { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 10px; }
.recipient-legend-item { display: flex; gap: 8px; align-items: center; font-size: 12px; color: rgba(231,238,252,0.82); padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.10); background: rgba(0,0,0,0.18); }
.recipient-swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; border: 1px solid rgba(255,255,255,0.25); }

.editor-topbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.05); flex-wrap: wrap; position: sticky; top: 72px; z-index: 12; }
.editor-topbar-left { display: flex; gap: 10px; align-items: center; min-width: 0; flex: 1 1 auto; flex-wrap: wrap; }
.editor-topbar-right { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex: 0 1 auto; flex-wrap: wrap; }
.editor-topbar-left .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
.editor-topbar-right form { margin: 0; }
.editor-topbar-right form, .editor-topbar-right a { flex: 0 0 auto; }
.divider { width: 1px; height: 18px; background: rgba(255,255,255,0.14); }
.badge { font-size: 11px; padding: 4px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.12); color: rgba(231,238,252,0.86); background: rgba(0,0,0,0.20); }

.page-controls { display: flex; gap: 8px; align-items: center; }
.page-indicator { color: rgba(231,238,252,0.82); font-size: 12px; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.10); background: rgba(0,0,0,0.18); }

.editor-canvas-wrap { margin-top: 12px; }
.pdf-wrap { position: relative; margin: 0 auto; border-radius: 14px; overflow: hidden; background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.12); }
.overlay { position: absolute; inset: 0; }

.field-box { position: absolute; border-radius: 10px; border: 2px solid rgba(138,180,255,0.9); background: rgba(47, 107, 255, 0.12); box-sizing: border-box; cursor: grab; }
.field-box.selected { border-color: rgba(255, 210, 102, 0.95); background: rgba(255, 210, 102, 0.10); }
.field-label { font-size: 11px; font-weight: 750; padding: 4px 6px; color: rgba(231,238,252,0.96); }
.field-value { position: absolute; left: 8px; right: 8px; top: 50%; transform: translateY(-35%); font-size: 12px; line-height: 1.2; color: rgba(10, 14, 26, 0.92); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: rgba(255,255,255,0.82); border-radius: 6px; padding: 2px 6px; }
.field-box.missing { border-color: rgba(239, 68, 68, 0.95) !important; background: rgba(239, 68, 68, 0.12) !important; }
.card.missing { border-color: rgba(239, 68, 68, 0.45); }
.overlay-input { position: absolute; border-radius: 8px; border: 1px solid rgba(10, 14, 26, 0.25); background: rgba(255,255,255,0.92); color: rgba(10, 14, 26, 0.96); padding: 6px 10px; line-height: 1.2; }
.overlay-input:focus { outline: none; border-color: rgba(138, 180, 255, 0.8); }
.resize-handle { position: absolute; width: 12px; height: 12px; right: -2px; bottom: -2px; border-radius: 4px; background: rgba(231,238,252,0.95); border: 1px solid rgba(0,0,0,0.25); cursor: nwse-resize; }

.field-box.field-checkbox { border-style: dashed; }
.field-box.field-signature, .field-box.field-initials { border-style: solid; }
.field-box.field-date_signed { border-style: dotted; }

.editor-footer { margin-top: 12px; color: rgba(231,238,252,0.75); font-size: 12px; }

.editor-hint { margin-top: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.10); color: rgba(231,238,252,0.75); background: rgba(0,0,0,0.20); }
.editor-hint.active { border-color: rgba(47,107,255,0.35); color: rgba(231,238,252,0.92); }

@media (max-width: 1100px) {
  .editor-shell { grid-template-columns: 1fr; }
  .editor-left, .editor-right { position: static; max-height: none; }
  .action-card-grid { grid-template-columns: 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.10); }
}

@media (max-width: 1320px) {
  .editor-shell { grid-template-columns: 300px minmax(520px, 1fr) 300px; }
  .editor-topbar-left .mono { max-width: 300px; }
}

.sign-shell { grid-template-columns: 360px minmax(560px, 1fr); }
.sign-shell .editor-right { display: none; }

.sign-progress-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sign-progress-k { font-weight: 850; font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase; color: rgba(231,238,252,0.72); }
.sign-progress-v { font-weight: 950; color: rgba(231,238,252,0.92); }
.progress-track { margin-top: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,0.10); overflow: hidden; }
.progress-fill { height: 10px; border-radius: 999px; width: 0%; background: linear-gradient(90deg, rgba(47,107,255,0.95), rgba(113,53,255,0.75)); transition: width 180ms ease; }

.sign-fields-list .card { padding: 12px; }
.sign-fields-list .card.selected { border-color: rgba(255, 210, 102, 0.55); box-shadow: 0 18px 55px rgba(255, 210, 102, 0.14); }

.app-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: calc(100vh - 58px); }
.sidebar { border-right: 1px solid rgba(255,255,255,0.10); background: rgba(9, 14, 26, 0.55); backdrop-filter: blur(10px); padding: 16px 14px; position: sticky; top: 58px; height: calc(100vh - 58px); overflow: auto; }
.app-main { min-width: 0; }
.sidebar-section { margin-bottom: 14px; }
.sidebar-title { font-weight: 850; font-size: 12px; letter-spacing: 0.10em; text-transform: uppercase; color: rgba(231,238,252,0.62); padding: 8px 10px; }
.sidebar-divider { height: 1px; background: rgba(255,255,255,0.10); margin: 12px 8px; }
.side-link { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px; border-radius: 12px; color: rgba(231,238,252,0.86); border: 1px solid transparent; background: transparent; }
.side-link:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.10); }
.side-link.active { background: rgba(47,107,255,0.12); border-color: rgba(47,107,255,0.22); color: rgba(231,238,252,0.96); }

body.theme-light { background: #f6f7fb; color: #0b1220; }
body.theme-light a { color: #1f57ff; }
body.theme-light .topbar { background: rgba(255, 255, 255, 0.80); border-bottom: 1px solid rgba(10,14,26,0.10); }
body.theme-light .brand a { color: #0b1220; }
body.theme-light .nav-link { color: rgba(10,14,26,0.82); }
body.theme-light .nav-link:hover { background: rgba(10,14,26,0.06); border-color: rgba(10,14,26,0.10); }
body.theme-light .brand-link:hover { background: rgba(10,14,26,0.04); border-color: rgba(10,14,26,0.10); }
body.theme-light .brand-mark { border-color: rgba(10,14,26,0.10); box-shadow: 0 16px 55px rgba(31,87,255,0.14); }
body.theme-light .nav-links { border-color: rgba(10,14,26,0.10); background: rgba(255,255,255,0.70); }
body.theme-light .nav-user-chip { border-color: rgba(10,14,26,0.10); background: rgba(10,14,26,0.03); color: rgba(10,14,26,0.82); }
body.theme-light .card { background: #ffffff; border-color: rgba(10,14,26,0.10); box-shadow: 0 10px 30px rgba(10,14,26,0.06); }
body.theme-light input, body.theme-light select { background: rgba(255,255,255,0.95); color: rgba(10,14,26,0.96); border-color: rgba(10,14,26,0.14); }
body.theme-light .btn-secondary { background: rgba(10,14,26,0.04); border-color: rgba(10,14,26,0.12); color: rgba(10,14,26,0.90); }
body.theme-light .btn-secondary:hover { background: rgba(10,14,26,0.06); }
body.theme-light .btn { box-shadow: 0 14px 40px rgba(31,87,255,0.22); }
body.theme-light .link { color: #1f57ff; }
body.theme-light .label { color: rgba(10,14,26,0.62); }
body.theme-light .mono { color: rgba(10,14,26,0.80); }
body.theme-light .topbar-inner { max-width: 1320px; }

body.theme-light .container { padding-top: 20px; }
body.theme-light .container-wide { max-width: 1320px; }

body.theme-light .card { border-radius: 18px; padding: 18px; }
body.theme-light .card h1 { margin: 0 0 8px 0; font-size: 26px; letter-spacing: -0.03em; }
body.theme-light .card h2 { margin: 0 0 10px 0; font-size: 18px; letter-spacing: -0.01em; }
body.theme-light .card h3 { margin: 0 0 8px 0; }

body.theme-light .page-hero {
  background:
    radial-gradient(1100px 360px at 18% 0%, rgba(47,107,255,0.18), rgba(246,247,251,0) 60%),
    radial-gradient(900px 320px at 78% 0%, rgba(113,53,255,0.12), rgba(246,247,251,0) 60%),
    linear-gradient(180deg, rgba(255,255,255,0.90), rgba(255,255,255,0.60));
  border: 1px solid rgba(10,14,26,0.10);
  box-shadow: 0 18px 60px rgba(10,14,26,0.07);
}
body.theme-light .hero-subtitle { color: rgba(10,14,26,0.62); }

body.theme-light .action-card {
  background: rgba(255,255,255,0.85);
  border-color: rgba(10,14,26,0.10);
  box-shadow: 0 14px 50px rgba(10,14,26,0.05);
}
body.theme-light .action-card p { color: rgba(10,14,26,0.62); }

body.theme-light .table th,
body.theme-light .table td { border-bottom-color: rgba(10,14,26,0.08); }
body.theme-light .table th { color: rgba(10,14,26,0.72); font-weight: 850; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
body.theme-light .table tbody tr:hover { background: rgba(10,14,26,0.02); }
body.theme-light .table { border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid rgba(10,14,26,0.10); border-radius: 16px; background: rgba(255,255,255,0.92); }
body.theme-light .table thead th { background: rgba(10,14,26,0.02); position: sticky; top: 0; z-index: 1; }
body.theme-light .table th, body.theme-light .table td { padding: 12px 10px; }

body.theme-light .table tbody tr:last-child td { border-bottom: none; }

body.theme-light .app-shell { min-height: calc(100vh - 58px); }
body.theme-light .sidebar {
  background: rgba(255,255,255,0.72);
  border-right-color: rgba(10,14,26,0.10);
  box-shadow: 10px 0 40px rgba(10,14,26,0.05);
}
body.theme-light .sidebar-title { color: rgba(10,14,26,0.55); }
body.theme-light .sidebar-divider { background: rgba(10,14,26,0.10); }
body.theme-light .side-link { color: rgba(10,14,26,0.78); font-weight: 750; }
body.theme-light .side-link:hover { background: rgba(10,14,26,0.04); border-color: rgba(10,14,26,0.08); }
body.theme-light .side-link.active { background: rgba(47,107,255,0.10); border-color: rgba(47,107,255,0.16); color: rgba(10,14,26,0.92); }

body.theme-light .side-link.active::after { content: ""; width: 6px; height: 6px; border-radius: 999px; background: rgba(47,107,255,0.55); }

.side-badge { font-weight: 900; font-size: 12px; padding: 4px 8px; border-radius: 999px; background: rgba(10,14,26,0.04); border: 1px solid rgba(10,14,26,0.08); color: rgba(10,14,26,0.68); }
body.theme-light .side-link.active .side-badge { background: rgba(31,87,255,0.10); border-color: rgba(31,87,255,0.16); color: rgba(10,14,26,0.84); }

.filter-bar { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.filter-label { font-size: 11px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(10,14,26,0.60); margin-bottom: 6px; display: block; }
.filter-item input, .filter-item select { width: 100%; }
.filter-actions { display: flex; gap: 10px; align-items: center; }

.empty-state { padding: 18px; border-radius: 18px; background: rgba(10,14,26,0.02); border: 1px dashed rgba(10,14,26,0.14); }
.empty-title { font-weight: 950; font-size: 18px; letter-spacing: -0.02em; color: rgba(10,14,26,0.88); }
.empty-sub { margin-top: 6px; color: rgba(10,14,26,0.62); line-height: 1.5; }
.empty-actions { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }

.recipient-builder { margin-top: 10px; border-radius: 18px; border: 1px solid rgba(10,14,26,0.10); background: rgba(255,255,255,0.82); box-shadow: 0 18px 60px rgba(10,14,26,0.06); overflow: hidden; }
.recipient-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 12px; background: rgba(10,14,26,0.02); border-bottom: 1px solid rgba(10,14,26,0.08); }
.recipient-title { font-weight: 950; letter-spacing: -0.02em; color: rgba(10,14,26,0.88); }
.recipient-rows { display: grid; gap: 10px; padding: 12px; }
.recipient-row { display: grid; grid-template-columns: 34px 1fr 1fr 40px; gap: 10px; align-items: end; }
.recipient-index { width: 34px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 950; background: rgba(31,87,255,0.08); border: 1px solid rgba(31,87,255,0.16); color: rgba(10,14,26,0.82); }
.recipient-row .icon-btn { align-self: center; }
.recipient-row .icon-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.recipient-error { margin: 0 12px 12px 12px; border-radius: 14px; padding: 10px 12px; background: rgba(239, 68, 68, 0.10); border: 1px solid rgba(239, 68, 68, 0.22); color: rgba(127, 29, 29, 0.92); font-weight: 800; }

@media (max-width: 980px) {
  .recipient-row { grid-template-columns: 34px 1fr; }
  .recipient-row .icon-btn { justify-self: start; }
}

.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }

.info-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: start; }
.info-main { border-radius: 18px; padding: 14px; background: rgba(10,14,26,0.02); border: 1px solid rgba(10,14,26,0.08); }
.info-row { display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid rgba(10,14,26,0.06); }
.info-row:last-child { border-bottom: none; }
.info-k { font-weight: 900; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(10,14,26,0.58); }
.info-v { color: rgba(10,14,26,0.86); overflow-wrap: anywhere; }

body.theme-light .editor-left,
body.theme-light .editor-right {
  background: rgba(255,255,255,0.82);
  border-color: rgba(10,14,26,0.10);
  box-shadow: 0 18px 60px rgba(10,14,26,0.06);
}
body.theme-light .editor-left-sub,
body.theme-light .editor-right-sub { color: rgba(10,14,26,0.58); }
body.theme-light .editor-left-header,
body.theme-light .editor-right-header { border-bottom-color: rgba(10,14,26,0.08); }
body.theme-light .editor-section-title { color: rgba(10,14,26,0.55); }
body.theme-light .palette-item { background: rgba(10,14,26,0.03); border-color: rgba(10,14,26,0.10); color: rgba(10,14,26,0.88); }
body.theme-light .palette-item:hover { background: rgba(10,14,26,0.05); }
body.theme-light .palette-item.active { background: rgba(31,87,255,0.10); border-color: rgba(31,87,255,0.22); box-shadow: 0 14px 40px rgba(31,87,255,0.12); }
body.theme-light .recipient-legend-item { background: rgba(10,14,26,0.02); border-color: rgba(10,14,26,0.08); color: rgba(10,14,26,0.74); }

body.theme-light .editor-topbar {
  background: rgba(255,255,255,0.80);
  border-color: rgba(10,14,26,0.10);
  box-shadow: 0 14px 50px rgba(10,14,26,0.05);
}
body.theme-light .page-indicator { background: rgba(10,14,26,0.02); border-color: rgba(10,14,26,0.10); color: rgba(10,14,26,0.68); }
body.theme-light .divider { background: rgba(10,14,26,0.14); }
body.theme-light .badge { background: rgba(10,14,26,0.04); border-color: rgba(10,14,26,0.10); color: rgba(10,14,26,0.78); }

body.theme-light .pdf-wrap { background: rgba(255,255,255,0.90); border-color: rgba(10,14,26,0.10); box-shadow: 0 22px 70px rgba(10,14,26,0.10); }
body.theme-light .pdf { border-color: rgba(10,14,26,0.10); background: rgba(255,255,255,0.90); }
body.theme-light .editor-canvas-wrap { padding-top: 2px; }

body.theme-light .editor-footer { padding: 12px; border-radius: 16px; background: rgba(255,255,255,0.82); border: 1px solid rgba(10,14,26,0.10); box-shadow: 0 14px 50px rgba(10,14,26,0.05); }

body.theme-light input:disabled { background: rgba(10,14,26,0.03); color: rgba(10,14,26,0.62); }

body.theme-light .editor-hint { background: rgba(10,14,26,0.03); border-color: rgba(10,14,26,0.10); color: rgba(10,14,26,0.62); }
body.theme-light .editor-hint.active { border-color: rgba(47,107,255,0.22); color: rgba(10,14,26,0.86); }

body.theme-light .field-box { border-color: rgba(47,107,255,0.70); background: rgba(47,107,255,0.10); }
body.theme-light .field-box.selected { border-color: rgba(255, 210, 102, 0.95); background: rgba(255, 210, 102, 0.12); }

.muted { color: rgba(231,238,252,0.72); font-size: 13px; line-height: 1.5; }
.empty { border-radius: 16px; padding: 14px; background: rgba(255,255,255,0.06); border: 1px dashed rgba(255,255,255,0.14); color: rgba(231,238,252,0.72); }

body.theme-light .muted { color: rgba(10,14,26,0.62); }
body.theme-light .empty { background: rgba(10,14,26,0.02); border-color: rgba(10,14,26,0.14); color: rgba(10,14,26,0.62); }

body.theme-light .sign-progress-k { color: rgba(10,14,26,0.58); }
body.theme-light .sign-progress-v { color: rgba(10,14,26,0.84); }
body.theme-light .progress-track { background: rgba(10,14,26,0.06); }

.card-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metric { border-radius: 16px; padding: 14px; background: rgba(10,14,26,0.02); border: 1px solid rgba(10,14,26,0.08); }
.metric-k { font-weight: 850; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(10,14,26,0.60); }
.metric-v { margin-top: 8px; font-weight: 950; font-size: 26px; letter-spacing: -0.03em; color: rgba(10,14,26,0.92); }

.chart { border-radius: 16px; padding: 12px; background: rgba(10,14,26,0.02); border: 1px solid rgba(10,14,26,0.08); }
.chart-svg { width: 100%; height: 160px; display: block; }
.chart-grid { stroke: rgba(10,14,26,0.06); stroke-width: 1; }
.chart-axis { stroke: rgba(10,14,26,0.10); stroke-width: 1.25; }
.chart-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: dash 1.2s ease forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.chart-line.created { stroke: rgba(31,87,255,0.85); }
.chart-line.sent { stroke: rgba(124,58,237,0.75); }
.chart-line.viewed { stroke: rgba(14,165,233,0.75); }
.chart-line.signed { stroke: rgba(16,185,129,0.78); }
.chart-line.completed { stroke: rgba(244,63,94,0.70); }

.chart-legend { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; color: rgba(10,14,26,0.64); font-size: 12px; }
.legend-item { display: inline-flex; gap: 8px; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }
.dot.created { background: rgba(31,87,255,0.85); }
.dot.sent { background: rgba(124,58,237,0.75); }
.dot.viewed { background: rgba(14,165,233,0.75); }
.dot.signed { background: rgba(16,185,129,0.78); }
.dot.completed { background: rgba(244,63,94,0.70); }

.domain-list { display: grid; gap: 10px; }
.domain-row { display: grid; grid-template-columns: 160px 1fr 44px; gap: 10px; align-items: center; }
.domain-name { font-weight: 800; color: rgba(10,14,26,0.82); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.domain-bar { height: 10px; border-radius: 999px; background: rgba(10,14,26,0.06); overflow: hidden; }
.domain-bar-fill { height: 10px; border-radius: 999px; background: linear-gradient(90deg, rgba(31,87,255,0.70), rgba(124,58,237,0.55)); animation: grow 0.9s ease forwards; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0.2); } to { transform: scaleX(1); } }
.domain-count { text-align: right; font-weight: 900; color: rgba(10,14,26,0.74); }

.domain-bar-fill.w0 { width: 0%; }
.domain-bar-fill.w1 { width: 5%; }
.domain-bar-fill.w2 { width: 10%; }
.domain-bar-fill.w3 { width: 15%; }
.domain-bar-fill.w4 { width: 20%; }
.domain-bar-fill.w5 { width: 25%; }
.domain-bar-fill.w6 { width: 30%; }
.domain-bar-fill.w7 { width: 35%; }
.domain-bar-fill.w8 { width: 40%; }
.domain-bar-fill.w9 { width: 45%; }
.domain-bar-fill.w10 { width: 50%; }
.domain-bar-fill.w11 { width: 55%; }
.domain-bar-fill.w12 { width: 60%; }
.domain-bar-fill.w13 { width: 65%; }
.domain-bar-fill.w14 { width: 70%; }
.domain-bar-fill.w15 { width: 75%; }
.domain-bar-fill.w16 { width: 80%; }
.domain-bar-fill.w17 { width: 85%; }
.domain-bar-fill.w18 { width: 90%; }
.domain-bar-fill.w19 { width: 95%; }
.domain-bar-fill.w20 { width: 100%; }

.activity { display: grid; gap: 10px; }
.activity-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 12px; border-radius: 16px; background: rgba(10,14,26,0.02); border: 1px solid rgba(10,14,26,0.08); }
.activity-left { min-width: 0; }
.activity-type { font-weight: 900; letter-spacing: -0.01em; color: rgba(10,14,26,0.86); }
.activity-sub { margin-top: 4px; color: rgba(10,14,26,0.62); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 520px; }
.activity-right { display: flex; gap: 10px; align-items: center; flex: 0 0 auto; }
.activity-time { color: rgba(10,14,26,0.60); font-size: 12px; }

.icon-btn { width: 30px; height: 30px; border-radius: 10px; border: 1px solid rgba(10,14,26,0.10); background: rgba(10,14,26,0.03); color: rgba(10,14,26,0.70); font-weight: 950; cursor: pointer; line-height: 1; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: rgba(10,14,26,0.05); }
.icon-btn.danger { border-color: rgba(239,68,68,0.20); background: rgba(239,68,68,0.07); color: rgba(127,29,29,0.92); }
.icon-btn.danger:hover { background: rgba(239,68,68,0.10); }

.pill { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; font-weight: 850; font-size: 12px; letter-spacing: 0.01em; border: 1px solid rgba(10,14,26,0.10); background: rgba(10,14,26,0.03); color: rgba(10,14,26,0.78); }
.pill.signed { background: rgba(16,185,129,0.10); border-color: rgba(16,185,129,0.20); color: rgba(6,95,70,0.95); }
.pill.pending { background: rgba(31,87,255,0.08); border-color: rgba(31,87,255,0.18); color: rgba(30,58,138,0.92); }
.pill.completed { background: rgba(16,185,129,0.10); border-color: rgba(16,185,129,0.20); color: rgba(6,95,70,0.95); }
.pill.sent, .pill.in_progress, .pill.created { background: rgba(124,58,237,0.08); border-color: rgba(124,58,237,0.18); color: rgba(67,56,202,0.92); }
.pill.draft { background: rgba(234,179,8,0.12); border-color: rgba(234,179,8,0.22); color: rgba(113,63,18,0.95); }

@media (max-width: 980px) {
  .card-split { grid-template-columns: 1fr; }
  .domain-row { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .info-row { grid-template-columns: 1fr; gap: 6px; }
}

.welcome-shell { min-height: calc(100vh - 58px); background: radial-gradient(1200px 520px at 18% 12%, rgba(47,107,255,0.22), rgba(246,247,251,0) 62%), radial-gradient(900px 420px at 78% 12%, rgba(113,53,255,0.16), rgba(246,247,251,0) 60%), linear-gradient(180deg, #f6f7fb 0%, #f6f7fb 55%, #ffffff 100%); }
.welcome-hero { padding: 44px 24px 30px 24px; }
.welcome-inner { max-width: 1180px; margin: 0 auto; }
.welcome-hero-grid { display: grid; grid-template-columns: minmax(360px, 1.15fr) minmax(360px, 0.85fr); gap: 22px; align-items: center; }
.welcome-title { font-size: 46px; font-weight: 850; letter-spacing: -0.045em; margin: 0; line-height: 1.05; color: rgba(10,14,26,0.96); }
.welcome-subtitle { margin-top: 12px; color: rgba(10,14,26,0.68); font-size: 16px; line-height: 1.55; max-width: 560px; }
.welcome-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; align-items: center; }
.welcome-note { margin-top: 12px; color: rgba(10,14,26,0.62); font-size: 13px; line-height: 1.5; }

.welcome-mock { border-radius: 22px; border: 1px solid rgba(10,14,26,0.10); background: rgba(255,255,255,0.72); box-shadow: 0 22px 70px rgba(10,14,26,0.14); overflow: hidden; }
.welcome-mock-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: rgba(255,255,255,0.82); border-bottom: 1px solid rgba(10,14,26,0.08); }
.welcome-dots { display: flex; gap: 7px; align-items: center; }
.welcome-dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(10,14,26,0.12); }
.welcome-mock-title { font-weight: 750; color: rgba(10,14,26,0.78); font-size: 12px; }
.welcome-mock-body { padding: 16px; }
.welcome-mock-card { border-radius: 16px; padding: 14px; background: rgba(10,14,26,0.03); border: 1px solid rgba(10,14,26,0.08); }
.welcome-mock-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.welcome-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 999px; background: rgba(47,107,255,0.10); border: 1px solid rgba(47,107,255,0.18); color: rgba(10,14,26,0.82); font-weight: 700; font-size: 12px; }
.welcome-metric { border-radius: 14px; padding: 12px; background: #ffffff; border: 1px solid rgba(10,14,26,0.10); }
.welcome-metric .k { font-weight: 800; color: rgba(10,14,26,0.94); font-size: 12px; }
.welcome-metric .v { margin-top: 6px; color: rgba(10,14,26,0.66); font-size: 12px; line-height: 1.45; }

.welcome-trust { padding: 18px 24px 46px 24px; }
.welcome-trust-band { border-radius: 22px; padding: 18px; background: linear-gradient(180deg, rgba(10,14,26,0.96), rgba(10,14,26,0.92)); border: 1px solid rgba(255,255,255,0.10); box-shadow: 0 18px 60px rgba(10,14,26,0.28); }
.welcome-trust-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; align-items: stretch; }
.welcome-trust-title { color: rgba(231,238,252,0.96); font-weight: 850; letter-spacing: -0.02em; font-size: 16px; margin: 0; }
.welcome-trust-sub { margin-top: 6px; color: rgba(231,238,252,0.72); font-size: 12px; line-height: 1.55; }
.welcome-trust-card { border-radius: 18px; padding: 14px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); }
.welcome-trust-card h3 { margin: 0 0 6px 0; font-size: 13px; color: rgba(231,238,252,0.92); }
.welcome-trust-card p { margin: 0; color: rgba(231,238,252,0.70); font-size: 12px; line-height: 1.55; }

.auth-shell { min-height: calc(100vh - 58px); background: radial-gradient(1100px 520px at 18% 8%, rgba(47,107,255,0.22), rgba(246,247,251,0) 62%), radial-gradient(900px 420px at 78% 10%, rgba(113,53,255,0.16), rgba(246,247,251,0) 60%), linear-gradient(180deg, #f6f7fb 0%, #f6f7fb 55%, #ffffff 100%); display: flex; align-items: center; }
.auth-inner { width: 100%; max-width: 1180px; margin: 0 auto; padding: 34px 24px 44px 24px; }
.auth-grid { display: grid; grid-template-columns: minmax(340px, 1.05fr) minmax(340px, 0.95fr); gap: 22px; align-items: center; }

.auth-left { padding: 8px 8px; }
.auth-badge { display: inline-flex; align-items: center; padding: 7px 10px; border-radius: 999px; background: rgba(10,14,26,0.04); border: 1px solid rgba(10,14,26,0.10); color: rgba(10,14,26,0.78); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; }
.auth-title { margin: 14px 0 0 0; font-size: 44px; font-weight: 900; letter-spacing: -0.05em; line-height: 1.05; color: rgba(10,14,26,0.96); }
.auth-subtitle { margin-top: 12px; color: rgba(10,14,26,0.68); font-size: 16px; line-height: 1.6; max-width: 560px; }

.auth-features { margin-top: 16px; display: grid; grid-template-columns: 1fr; gap: 10px; }
.auth-feature { border-radius: 16px; padding: 12px 12px; background: rgba(255,255,255,0.80); border: 1px solid rgba(10,14,26,0.10); box-shadow: 0 18px 55px rgba(10,14,26,0.07); }
.auth-feature-k { font-weight: 850; color: rgba(10,14,26,0.78); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; }
.auth-feature-v { margin-top: 6px; color: rgba(10,14,26,0.74); font-size: 13px; line-height: 1.45; }
.auth-footer { margin-top: 14px; color: rgba(10,14,26,0.62); font-size: 12px; line-height: 1.5; }

.auth-right { display: flex; flex-direction: column; gap: 12px; }
.auth-card { border-radius: 22px; padding: 18px; border: 1px solid rgba(10,14,26,0.10); background: rgba(255,255,255,0.68); box-shadow: 0 26px 90px rgba(10,14,26,0.18); backdrop-filter: blur(12px); }
.auth-card-top { padding: 2px 2px 10px 2px; }
.auth-card-title { font-weight: 900; font-size: 22px; letter-spacing: -0.02em; color: rgba(10,14,26,0.94); }
.auth-card-sub { margin-top: 6px; color: rgba(10,14,26,0.64); font-size: 13px; line-height: 1.45; }

.auth-error { margin: 10px 0 12px 0; border-radius: 14px; padding: 10px 12px; background: rgba(239, 68, 68, 0.10); border: 1px solid rgba(239, 68, 68, 0.24); color: rgba(127, 29, 29, 0.92); font-weight: 700; }

body.theme-light label { color: rgba(10,14,26,0.76); }
body.theme-light input, body.theme-light select { background: rgba(255,255,255,0.92); }
body.theme-light input:focus { outline: none; border-color: rgba(47,107,255,0.40); box-shadow: 0 0 0 4px rgba(47,107,255,0.12); }

.auth-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.auth-right-note { color: rgba(10,14,26,0.58); font-size: 11px; line-height: 1.5; padding: 0 6px; }

@media (max-width: 980px) {
  .welcome-hero { padding-top: 26px; }
  .welcome-hero-grid { grid-template-columns: 1fr; }
  .welcome-title { font-size: 38px; }
  .welcome-trust-grid { grid-template-columns: 1fr; }
  .welcome-mock-row { grid-template-columns: 1fr; }

  .auth-inner { padding-top: 22px; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-title { font-size: 36px; }
}
