/* son.zip design system — 1:1 */
:root {
  --etron-navy: #092032;
  --etron-navy-light: #143a57;
  --etron-accent: #f59e0b;
  --etron-accent-dark: #d97706;
  --etron-sky: #0ea5e9;
  --canvas: #f7fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --font: "Manrope", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
button, input, select, textarea {
  font: inherit;
  transition: color .18s cubic-bezier(.16,1,.3,1), background-color .18s, border-color .18s, box-shadow .18s, transform .18s, opacity .18s;
}
::selection { background: #fcd34d; color: #092032; }
*:focus-visible { outline: none; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeIn .3s cubic-bezier(.16,1,.3,1) both; }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}
.animate-slide-in { animation: slideIn .3s cubic-bezier(.16,1,.3,1) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-rise { animation: rise .6s cubic-bezier(.16,1,.3,1) both; }
@keyframes kenburns {
  0% { transform: scale(1.04); }
  100% { transform: scale(1.14) translate(-1.5%, -1%); }
}
.animate-ken-burns { animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,.55); }
  100% { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
}
.pulse-ring { animation: pulseRing 1.8s ease-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }

/* Buttons — son.zip */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  background: none;
  color: inherit;
}
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-primary, .btn.btn-primary {
  background: #092032; color: #fff;
  height: 40px; padding: 0 16px; border-radius: 10px; font-size: 14px;
  box-shadow: 0 1px 2px rgba(15,23,42,.1);
}
.btn-primary:hover { background: #143a57; }
.btn-accent, .btn.btn-accent, .btn-warning {
  background: #f59e0b; color: #092032;
  height: 40px; padding: 0 16px; border-radius: 10px; font-size: 14px;
  box-shadow: 0 1px 2px rgba(245,158,11,.25);
}
.btn-accent:hover { background: #fbbf24; }
.btn-outline, .btn.btn-outline, .btn-secondary {
  background: #fff; color: #1e293b;
  border: 1px solid #e2e8f0;
  height: 40px; padding: 0 16px; border-radius: 10px; font-size: 14px;
}
.btn-outline:hover { background: #f8fafc; }
.btn-ghost { background: transparent; color: #334155; height: 40px; padding: 0 14px; border-radius: 10px; }
.btn-ghost:hover { background: #f1f5f9; }
.btn-danger { background: #dc2626; color: #fff; height: 40px; padding: 0 16px; border-radius: 10px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 8px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; border-radius: 12px; }

.label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}
.input, .select, .textarea,
input:not([type=checkbox]):not([type=file]):not([type=radio]),
select, textarea {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(15,23,42,.04);
}
input[type=checkbox] { width: auto; }
.input:focus, select:focus, textarea:focus,
input:not([type=checkbox]):focus,
select:focus, textarea:focus {
  background: #fff;
  border-color: #092032;
  box-shadow: 0 0 0 4px rgba(9,32,50,.12);
}
.textarea, textarea { min-height: 96px; resize: vertical; }
.field { margin-bottom: 14px; }
.field label, .field .label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
  letter-spacing: .01em;
}

/* Composerblokken: project / product snel toevoegen */
.composer {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
.composer-title {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 12px;
}
.composer-title h3 {
  margin: 0; font-size: 13px; font-weight: 800; color: #0f172a;
  letter-spacing: .04em; text-transform: uppercase;
}
.composer .field input,
.composer .field select,
.composer .field textarea {
  background: #fff;
  border-color: #94a3b8;
}
.notes-block { margin-top: 8px; display: grid; gap: 12px; }
.note-picker {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
}
.note-picker-head {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 1.1fr);
  gap: 10px;
  align-items: end;
  margin-bottom: 8px;
}
.note-picker-head label {
  font-size: 12px; font-weight: 800; color: #334155; margin: 0;
}
.note-picker .note-body {
  width: 100%; min-height: 64px; resize: vertical;
  background: #fff; border: 1.5px solid #94a3b8; border-radius: 10px; padding: 10px 12px;
}
.note-picker-actions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px;
}
@media (max-width: 800px) {
  .note-picker-head { grid-template-columns: 1fr; }
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip {
  appearance: none; border: 1.5px solid #cbd5e1; background: #fff;
  border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 700;
  color: #334155; cursor: pointer;
}
.chip:hover { border-color: #e85818; color: #092032; }
.chip.is-on { background: #092032; border-color: #092032; color: #fff; }
.empty-hint {
  padding: 18px; text-align: center; color: #64748b; font-size: 13px;
  background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 12px; margin-bottom: 12px;
}
.quick-cta-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid #e2e8f0;
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 4px 10px;
  font-size: 11px; font-weight: 700;
  background: #f1f5f9; color: #334155;
}
.badge.ok { background: #ecfdf5; color: #047857; }
.badge.warn { background: #fffbeb; color: #b45309; }
.badge.err { background: #fef2f2; color: #b91c1c; }

.panel, .card {
  background: #fff;
  border: 1px solid rgba(226,232,240,.9);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  padding: 20px;
  margin-bottom: 16px;
}
.panel h2 { font-size: 15px; font-weight: 800; margin: 0 0 14px; color: #0f172a; }
.focus-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px -18px rgba(9,32,50,.35);
}
.focus-card .field input,
.focus-card .field select,
.focus-card .field textarea {
  background: #fff;
  border-color: #cbd5e1;
}
.focus-hero .summary-meta { margin-top: 10px; font-size: 13px; color: rgba(255,255,255,.78); }
.focus-hero .summary-meta b { color: #fbbf24; }
.pdf-inline {
  display: block;
  width: 100%;
  height: 420px;
  margin-top: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}
.topbar h1 .badge { vertical-align: middle; margin-left: 8px; font-size: 11px; }
.admin-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-bottom: 16px; }
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  margin: 0 0 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.admin-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: -0.01em;
}
.admin-tab:hover { background: #f8fafc; color: var(--ink); }
.admin-tab.is-active {
  background: var(--etron-navy);
  color: #fff;
  box-shadow: 0 6px 16px rgba(9, 32, 50, .18);
}
.admin-tab-panel { display: none; }
.admin-tab-panel.is-active { display: block; }
.rate-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}
.rate-card {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.rate-card .eyebrow { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.rate-card strong { display: block; margin-top: 6px; font-size: 22px; letter-spacing: -0.03em; color: var(--etron-navy); }
.rate-card small { color: var(--muted); font-size: 12px; }
@media (max-width: 900px) {
  .rate-cards { grid-template-columns: 1fr; }
  .admin-tab { flex: 1 1 auto; text-align: center; }
}
.share-card { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.qr-thumb { border-radius: 14px; border: 1px solid #e2e8f0; background: #fff; flex-shrink: 0; }
.mono-box {
  margin: 0; word-break: break-all; font-family: var(--mono); font-size: 12px;
  background: #0f172a; color: #e2e8f0; padding: 10px 12px; border-radius: 12px;
}
.inline-upload { padding-top: 12px; border-top: 1px dashed #e2e8f0; }
.stamp-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.stamp-option {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.stamp-option input { position: absolute; opacity: 0; pointer-events: none; }
.stamp-option:hover { border-color: #f59e0b; }
.stamp-option.is-active {
  border-color: #e85818;
  box-shadow: 0 0 0 3px rgba(232, 88, 24, .15);
}
.stamp-preview {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(45deg, #f1f5f9 25%, transparent 25%),
    linear-gradient(-45deg, #f1f5f9 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f1f5f9 75%),
    linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  border-radius: 10px;
  overflow: hidden;
}
.stamp-preview img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  display: block;
}
.stamp-empty {
  color: #94a3b8;
  font-size: 22px;
  font-weight: 700;
}
.stamp-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stamp-meta strong { font-size: 12.5px; color: #0f172a; }
.stamp-meta small { font-size: 11px; color: #64748b; }
.sig-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  align-items: start;
}
.sig-canvas {
  width: 100%;
  height: 180px;
  display: block;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #fff;
  cursor: crosshair;
  touch-action: none;
}
.sig-draw-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  gap: 8px;
  align-items: center;
}
.sig-upload {
  display: grid;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px dashed #e2e8f0;
}
.sig-list { display: grid; gap: 8px; max-height: 360px; overflow: auto; }
.sig-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}
.sig-item.is-active { border-color: #e85818; box-shadow: 0 0 0 3px rgba(232,88,24,.12); }
.sig-item-preview {
  height: 48px;
  border-radius: 8px;
  background: #f8fafc;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.sig-item-preview img { max-width: 100%; max-height: 44px; object-fit: contain; }
.sig-item-meta { min-width: 0; }
.sig-item-meta strong { display: block; font-size: 13px; }
.sig-item-meta small { color: #64748b; font-size: 11px; }
.sig-item-actions { display: flex; gap: 4px; align-items: center; }
.input {
  height: 38px; border: 1px solid #cbd5e1; border-radius: 10px;
  padding: 0 12px; font: inherit; background: #fff; color: #0f172a;
}
@media (max-width: 980px) {
  .sig-layout { grid-template-columns: 1fr; }
  .sig-draw-actions { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .admin-grid { grid-template-columns: 1fr; }
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -12px rgba(9,32,50,.15);
}

.table, table.data {
  width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px;
}
.table th, table.data thead th {
  text-align: left; font-size: 10.5px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: #94a3b8;
  padding: 12px 14px; background: #f8fafc; border-bottom: 1px solid #e2e8f0;
}
.table td, table.data tbody td {
  padding: 13px 14px; border-bottom: 1px solid #f1f5f9; vertical-align: middle;
}
.table tbody tr:hover td { background: #f8fafc; }
.row-click { cursor: pointer; }

.topbar {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
}
.topbar .meta {
  color: #f59e0b; font-size: 11px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 6px;
}
.topbar h1 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 800; color: #0f172a; line-height: 1.15;
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: 1fr 1fr 1fr; }
.muted { color: #64748b; }
.hidden { display: none !important; }
.flash {
  padding: 12px 14px; margin-bottom: 14px; border-radius: 12px;
  background: #eff6ff; border: 1px solid #bfdbfe; font-weight: 600; font-size: 13.5px;
}
.flash.error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.summary, .stat-hero {
  position: relative; overflow: hidden; border-radius: 20px;
  background: linear-gradient(135deg, #092032 0%, #0d2b42 50%, #143a57 100%);
  color: #fff; padding: 24px 28px; margin-bottom: 18px;
}
.summary small, .stat-hero .eyebrow {
  color: #fbbf24; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.summary strong, .stat-hero .amount {
  display: block; margin-top: 6px; font-size: 28px; font-weight: 800;
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 20px; border-radius: 16px; background: #fff;
  border: 1px solid #e2e8f0; box-shadow: 0 1px 2px rgba(15,23,42,.04);
  transition: transform .2s, box-shadow .2s;
}
.stat-link {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.stat-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
  border-color: #fbbf24;
}
.stat-link:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}
.sidebar-backdrop.hidden { display: none !important; }
body.nav-open { overflow: hidden; }
.stat .k { font-size: 12px; font-weight: 500; color: #64748b; }
.stat .v { margin-top: 2px; font-size: 26px; font-weight: 800; color: #0f172a; font-variant-numeric: tabular-nums; }
.stat-sub { margin-top: 4px; font-size: 11px; color: #94a3b8; }
.stat-ico {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 20px;
}
.stat-ico.sky { background: #f0f9ff; color: #0284c7; }
.stat-ico.indigo { background: #eef2ff; color: #4f46e5; }
.stat-ico.amber { background: #fffbeb; color: #d97706; }
.stat-ico.emerald { background: #ecfdf5; color: #059669; }

.dash-hero {
  position: relative; overflow: hidden; border-radius: 24px; margin-bottom: 32px;
  background: linear-gradient(135deg, #092032 0%, #0d2b42 50%, #143a57 100%);
  color: #fff; padding: 36px 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px;
  box-shadow: 0 20px 40px rgba(9,32,50,.18); border: 1px solid rgba(255,255,255,.08);
}
.dash-hero-glow {
  position: absolute; right: -80px; top: -80px; width: 280px; height: 280px;
  border-radius: 999px; background: rgba(251,191,36,.2); filter: blur(48px); pointer-events: none;
}
.dash-hero-copy { position: relative; z-index: 1; }
.dash-live {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; border: 1px solid rgba(251,191,36,.3); background: rgba(251,191,36,.1);
  padding: 6px 12px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #fcd34d;
}
.dash-hero h2 {
  margin-top: 16px; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800; line-height: 1.05;
}
.dash-hero h2.dash-brand-title {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  letter-spacing: -0.03em;
}
.dash-hero h2 em { font-style: normal; color: #fbbf24; }
.dash-hero p {
  margin-top: 14px; max-width: 520px; color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.6;
}
.dash-feats {
  margin-top: 24px; display: flex; flex-wrap: wrap; gap: 18px;
  font-size: 12px; color: rgba(255,255,255,.7);
}
.dash-hero-aside { position: relative; min-height: 220px; }
.dash-photo-card {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%) rotate(3deg);
  width: min(240px, 100%); aspect-ratio: 3/4; border-radius: 16px; overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,.35); border: 4px solid rgba(255,255,255,.12);
}
.dash-photo-placeholder {
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 30% 20%, rgba(251,191,36,.35), transparent 50%),
    linear-gradient(160deg, #143a57, #092032 60%, #06182a);
}
.dash-photo-brand {
  display: grid;
  place-items: center;
  padding: 24px;
}
.dash-brand-logo {
  width: 78%;
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.25));
}
.dash-float {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.96); color: #0f172a; border-radius: 12px; padding: 10px 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.2); font-size: 13px; font-weight: 800;
}
.dash-float small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
.dash-float strong {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 16px;
}
.dash-float-a { left: -8px; bottom: 16px; transform: rotate(-3deg); }
.dash-float-a strong { background: #d1fae5; color: #059669; }
.dash-float-b { right: -4px; top: 0; transform: rotate(4deg); }
.dash-float-b strong { background: #fef3c7; color: #d97706; }
.btn-ghost-light {
  background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.25);
  height: 48px; padding: 0 20px; border-radius: 12px; font-weight: 700;
}
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.dash-side { display: grid; gap: 16px; align-content: start; }
.panel-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid #f1f5f9;
}
.recent-list { display: flex; flex-direction: column; }
.recent-row {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 14px 4px; border: 0; border-bottom: 1px solid #f1f5f9; background: transparent; cursor: pointer;
}
.recent-row:hover { background: #f8fafc; }
.recent-avatar {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; background: linear-gradient(135deg, #092032, #143a57); color: #fff;
}
.recent-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.recent-body strong { font-size: 14px; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-body .mono { font-family: var(--mono); font-size: 12px; }
.recent-meta { text-align: right; display: grid; gap: 4px; justify-items: end; }
.recent-meta strong { font-size: 13px; }
.quick-action {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 10px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; color: inherit;
}
.quick-action:hover { background: #f8fafc; }
.quick-action strong { display: block; font-size: 13px; color: #0f172a; }
.quick-action small { display: block; font-size: 12px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qa-ico {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; font-size: 16px;
}
.qa-ico.amber { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; box-shadow: 0 4px 12px rgba(245,158,11,.3); }
.qa-ico.indigo { background: #eef2ff; color: #4f46e5; }
.qa-ico.sky { background: #f0f9ff; color: #0284c7; }
.send-card { background: linear-gradient(135deg, #ecfdf5, #f0fdf4); border-color: #a7f3d0; }
.send-ico {
  width: 40px; height: 40px; border-radius: 12px; background: #10b981; color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
}
.empty-state { padding: 40px 16px; text-align: center; }
.empty-ico {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px;
  background: #f1f5f9; color: #94a3b8; display: grid; place-items: center; font-size: 22px;
}

iframe.pdf {
  width: 100%; min-height: 70vh; border: 1px solid #e2e8f0;
  border-radius: 16px; background: #fff;
}

/* ===== Shell (panel layout son.zip) ===== */
.app-shell {
  display: flex; min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #fff 45%, #f1f5f9 100%);
}
.sidebar {
  width: 288px; flex-shrink: 0; height: 100vh; position: sticky; top: 0;
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.92); backdrop-filter: blur(18px);
  border-right: 1px solid rgba(226,232,240,.9); z-index: 30;
}
.sidebar-brand {
  height: 80px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; border-bottom: 1px solid #f1f5f9;
}
.sidebar-brand img { height: 40px; width: auto; }
.sidebar-close {
  display: none; width: 36px; height: 36px; border: 0; border-radius: 10px;
  background: #f1f5f9; color: #64748b; cursor: pointer;
}
.sidebar-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,.4); backdrop-filter: blur(4px);
  z-index: 29;
}
.nav-ico { width: 18px; text-align: center; opacity: .85; }
.nav-spark { margin-left: auto; opacity: .55; font-size: 12px; }
.nav-link.highlight.active-highlight { box-shadow: 0 0 0 2px rgba(9,32,50,.2), 0 4px 14px rgba(245,158,11,.35); }
.logout-ico {
  width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent;
  color: #64748b; cursor: pointer; font-size: 15px;
}
.logout-ico:hover { background: #fef2f2; color: #dc2626; }
.icon-btn {
  width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent;
  color: #334155; cursor: pointer; font-size: 18px; display: grid; place-items: center;
}
.icon-btn:hover { background: #f1f5f9; }
.icon-btn.accent { background: #fbbf24; color: #092032; }
.icon-btn.accent:hover { background: #f59e0b; }
.sidebar-tag {
  border-left: 1px solid #e2e8f0; margin-left: 12px; padding-left: 12px;
  font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: #64748b; line-height: 1.25;
}
.sidebar nav {
  flex: 1; overflow: auto; padding: 24px 16px; display: flex; flex-direction: column; gap: 24px;
}
.nav-section-title {
  padding: 0 12px 8px; font-size: 10px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: #94a3b8;
}
.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px;
  font-size: 14px; font-weight: 600; color: #475569;
  border: 0; background: transparent; width: 100%; text-align: left; cursor: pointer;
}
.nav-link:hover { background: #f1f5f9; color: #0f172a; }
.nav-link.active {
  background: #092032; color: #fff; box-shadow: 0 1px 2px rgba(9,32,50,.2);
}
.nav-link.highlight {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  color: #092032; box-shadow: 0 4px 14px rgba(245,158,11,.35); font-weight: 700;
}
.nav-link.highlight:hover { filter: brightness(1.03); transform: translateY(-1px); }
.sidebar-foot {
  border-top: 1px solid #f1f5f9; padding: 16px; display: grid; gap: 12px;
}
.company-card {
  position: relative; overflow: hidden; border-radius: 16px;
  background: linear-gradient(135deg, #092032, #0d2b42, #143a57);
  color: #fff; padding: 16px;
}
.company-card::before {
  content: ""; position: absolute; right: -24px; top: -24px;
  width: 96px; height: 96px; border-radius: 999px; background: rgba(251,191,36,.2); filter: blur(24px);
}
.company-card .eyebrow {
  position: relative; font-size: 10px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: #fbbf24;
}
.company-card a, .company-card p {
  position: relative; margin: 8px 0 0; font-size: 11px; color: rgba(255,255,255,.9);
  display: flex; align-items: center; gap: 8px;
}
.user-box {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid #f1f5f9; background: #fff; border-radius: 12px; padding: 12px;
}
.user-box .avatar {
  width: 36px; height: 36px; border-radius: 10px; background: #092032; color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.main-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.main { flex: 1; padding: 32px; max-width: 1280px; width: 100%; margin: 0 auto; }
.mobile-bar {
  display: none; position: sticky; top: 0; z-index: 40; height: 64px;
  align-items: center; justify-content: space-between;
  border-bottom: 1px solid #e2e8f0; background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px); padding: 0 16px;
}

/* ===== Login portal (son.zip) ===== */
.login-grid {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: #fff;
}
.login-hero {
  position: relative; overflow: hidden; background: #092032; color: #fff;
  min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between;
  padding: 48px;
}
.login-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 380px at 80% 10%, rgba(245,158,11,.28), transparent 55%),
    radial-gradient(520px 320px at 10% 90%, rgba(14,165,233,.18), transparent 60%),
    linear-gradient(160deg, #06182a 0%, #092032 45%, #0d2b42 100%);
}
.login-hero > * { position: relative; z-index: 1; }
.login-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; background: #fbbf24; color: #092032;
  padding: 6px 12px; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
}
.login-hero h1 {
  margin-top: 20px; font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 800; line-height: 1.08; max-width: 560px;
}
.login-hero .lead {
  margin-top: 16px; max-width: 480px; color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.6;
}
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.feature {
  border-radius: 16px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.1); padding: 16px; backdrop-filter: blur(8px);
}
.feature strong { display: block; margin-top: 8px; font-size: 14px; }
.feature span { display: block; margin-top: 2px; font-size: 12px; color: rgba(255,255,255,.6); }
.login-panel {
  display: flex; flex-direction: column; min-height: 100vh;
}
.login-panel-body {
  flex: 1; display: grid; place-items: center; padding: 40px 24px;
}
.login-box { width: min(440px, 100%); }
.login-box h2 { font-size: 30px; font-weight: 800; color: #0f172a; }
.login-box .sub { margin-top: 6px; color: #64748b; }
.login-submit {
  width: 100%; height: 48px; margin-top: 8px; border: 0; border-radius: 12px;
  background: #092032; color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 12px 28px rgba(9,32,50,.25); cursor: pointer;
}
.login-submit:hover { background: #143a57; }
.demo-box {
  margin-top: 16px; width: 100%; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border: 1px dashed #e2e8f0; border-radius: 12px; padding: 12px 14px;
  background: transparent; cursor: pointer; font-size: 12px; color: #64748b;
}
.demo-box:hover { border-color: #fbbf24; background: #fffbeb; }
.demo-box strong { color: #334155; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 48px; }
.pw-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; cursor: pointer; padding: 6px; border-radius: 8px; color: #94a3b8;
}
.pw-toggle:hover { background: #f1f5f9; color: #334155; }
.client-box {
  margin-top: 28px; border: 1px solid #f1f5f9; background: #f8fafc; border-radius: 16px; padding: 14px;
}
.client-toggle {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border: 0; background: transparent; cursor: pointer; text-align: left; padding: 0; color: inherit;
}
.client-icon {
  width: 36px; height: 36px; border-radius: 10px; background: #fff; color: #092032;
  display: grid; place-items: center; box-shadow: 0 1px 2px rgba(15,23,42,.08); flex-shrink: 0;
}
.client-form { margin-top: 14px; display: flex; gap: 8px; }
.client-form .input { flex: 1; }
.client-form .btn { height: auto; padding: 0 16px; border-radius: 12px; }
.login-mobile-hero {
  display: none; position: relative; height: 220px; overflow: hidden;
}
.login-mobile-logo {
  position: absolute; left: 24px; bottom: 20px; height: 44px; width: auto; z-index: 1;
}
.login-mobile-pill {
  position: absolute; right: 16px; top: 16px; z-index: 1;
  border-radius: 999px; background: #fbbf24; color: #092032;
  padding: 4px 10px; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.login-footer {
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  border-top: 1px solid #f1f5f9; padding: 16px 24px; font-size: 11px; color: #94a3b8;
}
.online-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.1); padding: 6px 12px; font-size: 12px; font-weight: 600;
  backdrop-filter: blur(8px);
}
.online-dot { width: 8px; height: 8px; border-radius: 999px; background: #34d399; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.shake { animation: shake .45s ease; }

@media (max-width: 980px) {
  .login-grid { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .login-mobile-hero { display: block; }
  .login-desktop-logo { display: none; }
  .login-hero-bg { position: absolute; inset: 0; }
  .app-shell { display: block; min-height: 100dvh; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: min(320px, 88vw); height: 100dvh;
    transform: translateX(-105%);
    transition: transform .22s ease;
    box-shadow: 0 25px 50px rgba(15,23,42,.25);
    z-index: 50;
    -webkit-overflow-scrolling: touch;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop {
    z-index: 45;
  }
  .sidebar-close { display: grid; place-items: center; }
  .mobile-bar {
    display: flex;
    z-index: 40;
  }
  .grid.two, .grid.three, .stats, .feature-grid, .dash-grid { grid-template-columns: 1fr; }
  .dash-hero { grid-template-columns: 1fr; padding: 24px 18px; }
  .dash-hero-aside { display: none; }
  .hide-sm { display: none; }
  .main { padding: 16px 14px 28px; max-width: none; }
  .main-wrap { min-height: 100dvh; }
  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .topbar .actions,
  .actions {
    width: 100%;
  }
  .topbar .actions .btn,
  .actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .panel { padding: 16px; }
  .table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pdf-inline { height: 320px; }
  .client-form { flex-direction: column; }
  .nav-link { min-height: 44px; }
  .stat { padding: 16px; }
  .stat .v { font-size: 22px; }
}

@media (max-width: 560px) {
  .dash-hero h2 { font-size: 1.55rem; line-height: 1.15; }
  .dash-feats { flex-direction: column; align-items: flex-start; gap: 8px; }
  .btn-lg { width: 100%; }
}
@media print {
  .sidebar,
  .mobile-bar,
  .sidebar-backdrop,
  .no-print,
  .dash-hero,
  .dash-feats,
  .dash-side,
  .actions,
  .topbar .actions,
  .stamp-picker,
  .sig-layout,
  button,
  .btn,
  .icon-btn,
  .nav-link,
  .quick-action {
    display: none !important;
  }
  html, body {
    background: #fff !important;
    color: #111 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .app-shell, .main-wrap, .main {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  .panel, .stat, .summary, .focus-hero, .focus-card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
    color: #111 !important;
  }
  .focus-hero, .summary {
    background: #fff !important;
    color: #111 !important;
  }
  .focus-hero .summary-meta,
  .summary small {
    color: #333 !important;
  }
  a { color: #111 !important; text-decoration: none !important; }
  .pdf-inline, iframe.pdf {
    display: none !important;
  }
  @page {
    size: A4;
    margin: 12mm;
  }
}
