/* ===== GSM Broker Disclosure — disclosure.gsmlo.com =====
   Design tokens mirror call.gsmlo.com so the suite feels consistent. */
:root {
  --blue: #0a3d91; --blue-600: #14509b; --blue-300: #3a8dde; --blue-050: #eef4fd;
  --navy: #0e2a54; --gold: #c9a04c; --gold-soft: #f4ead3;
  --ink: #141a2a; --muted: #5b6474; --line: #e2e8f2;
  --bg: #eef1f7; --surface: #ffffff; --surface-2: #f7f9fd;
  --ok: #1d7a44; --ok-soft: #e7f5ec; --danger: #c0362c;
  --radius: 12px; --shadow: 0 1px 2px rgba(16,32,64,.06), 0 8px 24px rgba(16,32,64,.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, textarea { font-family: inherit; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---- Brand ---- */
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 44px; width: auto; display: block; }
.brand-lockup.sm .brand-logo { height: 34px; }
.brand-name { font-weight: 700; font-size: 16px; color: var(--ink); }
.brand-sub { font-size: 12px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, transform .05s, opacity .15s; color: var(--ink); background: transparent; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 2px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); }
.btn-primary[disabled] { opacity: .45; cursor: not-allowed; }
.btn-ghost { border-color: var(--line); color: var(--muted); background: var(--surface); }
.btn-ghost:hover { color: var(--ink); border-color: var(--blue-300); }
.btn-block { width: 100%; }
.btn-big { min-height: 52px; font-size: 16px; }
.btn-small { min-height: 32px; padding: 0 10px; font-size: 12px; }

/* ---- Auth screen ---- */
.auth-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.auth-wrap { width: 100%; max-width: 420px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.auth-card .muted { margin: 14px 0 18px; font-size: 14px; }
.auth-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.auth-form input { width: 100%; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-size: 15px; margin-bottom: 14px; }
.auth-form input:focus { outline: 3px solid var(--blue-300); outline-offset: 1px; border-color: var(--blue-300); }
.form-error { background: #fdeeec; color: var(--danger); border: 1px solid #f2c6c1; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 0 0 14px; }

/* ---- App shell ---- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.stage { max-width: 1200px; margin: 0 auto; padding: 24px 22px 40px; }
.grid { display: grid; grid-template-columns: minmax(340px, 460px) 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }
.col { display: flex; flex-direction: column; gap: 16px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card h2 { margin: 0 0 12px; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head h2 { margin-bottom: 0; }
.card-head + .muted { margin-top: 8px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue-050); color: var(--blue); font-size: 13px; font-weight: 700; flex: none; }

/* ---- Fields ---- */
.field-label { display: block; font-size: 13px; font-weight: 600; margin: 10px 0 6px; }
input[type="text"], textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-size: 15px; color: var(--ink); }
input[type="text"] { min-height: 44px; padding-top: 0; padding-bottom: 0; }
textarea { resize: vertical; line-height: 1.4; }
input:focus, textarea:focus { outline: 3px solid var(--blue-300); outline-offset: 1px; border-color: var(--blue-300); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 520px) { .two-col { grid-template-columns: 1fr; } }

/* ---- Dropzone ---- */
.dropzone { border: 2px dashed var(--line); border-radius: var(--radius); background: var(--surface-2); padding: 26px 18px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.dropzone:hover, .dropzone:focus-visible, .dropzone.drag { border-color: var(--blue-300); background: var(--blue-050); color: var(--blue); outline: none; }
.dropzone.has-file { border-style: solid; border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.dz-text { margin-top: 8px; font-size: 15px; color: inherit; }
.dz-sub { font-size: 12.5px; margin-top: 2px; }
.file-badge { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 12px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-size: 14px; font-weight: 600; }
.file-badge span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-x { margin-left: auto; border: 0; background: transparent; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.chip-x:hover { background: rgba(0,0,0,.08); }

/* ---- Preview ---- */
.preview-card { display: flex; flex-direction: column; min-height: 560px; }
.preview-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; padding: 40px 20px; margin-top: 14px; }
.preview-empty p { margin: 12px 0 0; font-size: 14px; }
.preview-frame { flex: 1; width: 100%; min-height: 560px; border: 1px solid var(--line); border-radius: 10px; margin-top: 14px; background: #fff; }
.preview-note { margin: 10px 0 0; }
.dl-bar { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; }
.dl-icon { color: var(--blue); flex: none; }
.outname { flex: 1; min-width: 140px; min-height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink); }
.dl-bar .btn-primary { flex: none; min-height: 40px; }
@media (max-width: 520px) {
  .dl-bar { flex-wrap: wrap; }
  .dl-bar .btn-primary { flex: 1 1 100%; }
}

/* ---- Footer ---- */
.foot { text-align: center; padding: 18px 20px 30px; }
