/* Same look as the KYC assistant: navy header with the Market Cloud logo, serif headline, white cards, blue actions. */
:root {
  --navy: #1b2538; --navy-line: #2c3850; --page: #f3f6fa; --card: #ffffff; --ink: #1b2538; --muted: #556173;
  --line: #dde3ec; --line-2: #e9edf3; --blue: #2f6fed; --blue-dark: #2259cf; --light-blue: #8fb4ff; --blue-bg: #e8f0fe;
  --red: #c62828; --red-bg: #fdecec; --amber: #8a4f00; --amber-line: #e0a028; --amber-bg: #fff3dc;
  --green: #1e7a46; --green-bg: #e5f5ec; --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(27,37,56,.06), 0 2px 8px rgba(27,37,56,.06);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --content: 1180px; --gutter: 32px;
}
* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--page); line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--content); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
[hidden] { display: none !important; }

.top { background: var(--navy); border-bottom: 1px solid var(--navy-line); }
.bar { display: flex; align-items: center; justify-content: flex-end; min-height: 120px; padding-top: 20px; padding-bottom: 20px; }
.logo { display: block; height: 80px; width: auto; max-width: 100%; object-fit: contain; }
.hero-band { background: var(--navy); color: #fff; }
.hero { padding-top: 40px; padding-bottom: 96px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 6vw, 56px); line-height: 1.1; letter-spacing: -.01em; margin: 0 0 14px; }
.hero p { max-width: 640px; color: #c9d3e4; font-size: 17px; margin: 0 0 32px; }
.steps { display: flex; flex-wrap: wrap; gap: 14px 36px; padding: 0; margin: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: 12px; color: #e6ecf6; font-size: 15px; }
.steps span { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; }

.content { padding-top: 0; padding-bottom: 32px; margin-top: -64px; position: relative; }
.grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; align-items: start; }
.panel { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line-2); }
.panel h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.note { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.gate { max-width: 520px; margin: 0 auto 20px; }
.gate-form { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.gate-form input { flex: 1 1 200px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
       padding: 9px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; line-height: 1.3; transition: background .15s, border-color .15s; }
.btn:hover:not(:disabled) { background: var(--page); border-color: #c9d2df; }
.btn.primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn.primary:hover:not(:disabled) { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn.big { width: 100%; min-height: 50px; font-size: 16px; margin-top: 16px; }

.drop { display: grid; justify-items: center; gap: 6px; text-align: center; margin-top: 18px; padding: 34px 20px; border: 2px dashed #c3cede; border-radius: var(--radius);
        background: #f8fafd; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--blue); background: var(--blue-bg); }
.drop:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,111,237,.22); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-icon { width: 44px; height: 52px; border-radius: 6px; border: 2px solid var(--blue); position: relative; margin-bottom: 6px; }
.drop-icon::after { content: ""; position: absolute; left: 50%; top: 14px; width: 2px; height: 20px; background: var(--blue); transform: translateX(-50%); box-shadow: 0 0 0 0 var(--blue); }
.drop-icon::before { content: ""; position: absolute; left: 50%; top: 12px; width: 10px; height: 10px; border-left: 2px solid var(--blue); border-top: 2px solid var(--blue); transform: translateX(-50%) rotate(45deg); }
.drop-main { font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.drop-main u { color: var(--blue-dark); }
.drop-sub { color: var(--muted); font-size: 14px; }
.field-error { color: var(--red); font-size: 14px; margin: 8px 0 0; min-height: 0; }
.field-error:empty { display: none; }

.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.checks li i { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c3cede; }
.checks li.run { color: var(--ink); }
.checks li.run i { border-color: var(--blue); border-right-color: transparent; animation: spin .8s linear infinite; }
.checks li.done { color: var(--ink); }
.checks li.done i { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 3px #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .checks li.run i { animation: none; } }

.result { margin-top: 20px; border-radius: var(--radius); padding: 18px 20px; border: 1px solid; display: grid; gap: 6px; }
.result strong { font-size: 18px; }
.result p { margin: 0; }
.result .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.result.ok { background: var(--green-bg); border-color: #b9e2c9; color: var(--green); }
.result.warn { background: var(--amber-bg); border-color: var(--amber-line); color: var(--amber); }
.result.bad { background: var(--red-bg); border-color: #f2c4c4; color: var(--red); }
.result dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 14px; margin: 6px 0 0; color: var(--ink); font-size: 14px; }
.result dt { color: var(--muted); }
.result dd { margin: 0; overflow-wrap: anywhere; }

.side h2 { margin-bottom: 14px; }
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rules li { font-size: 14px; color: var(--muted); padding-left: 14px; border-left: 3px solid var(--blue-bg); }
.rules b { display: block; color: var(--ink); font-size: 15px; }

.table-wrap { overflow-x: auto; margin-top: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
td.r, th.r { text-align: right; white-space: nowrap; }
td.hash { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted); word-break: break-all; }
.foot { color: var(--muted); font-size: 13px; padding-bottom: 32px; }

@media (max-width: 860px) {
  :root { --gutter: 18px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .bar { min-height: 84px; }
  .logo { height: 54px; }
  .panel { padding: 20px; }
  .hero { padding-bottom: 88px; }
}
