:root {
  --primary: #FF8F00;
  --primary-dark: #FF5A00;
  --primary-light: #FFF8EE;
  --secondary: #00007C;
  --secondary-light: #F0F2FF;
  --navy: #00007C;
  --ink: #242436;
  --muted: #74778c;
  --line: #e6e7ef;
  --soft: #f7f7fb;
  --success: #168b65;
  --danger: #c83b52;
  --white: #fff;
  --shadow: 0 12px 34px rgba(28, 28, 68, .08);
  --font-display: "Outfit", sans-serif;
  --font-body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--soft); }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--font-body); background: var(--soft); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .btn { -webkit-tap-highlight-color: transparent; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 258px; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; padding: 28px 22px 22px; background: #fff; border-right: 1px solid var(--line); z-index: 10; }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 8px; font-family: var(--font-display); }
.brand-logo { display: block; width: 154px; max-width: 100%; height: auto; }
.brand-context { padding-left: 1px; color: var(--muted); font: 600 10px/1 var(--font-body); letter-spacing: .15em; text-transform: uppercase; }
.nav { margin-top: 43px; display: grid; gap: 7px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; color: #676a80; font-weight: 600; font-size: 14px; transition: .16s ease; }
.nav-link:hover { color: var(--secondary); background: var(--secondary-light); }
.nav-link.is-active { color: var(--secondary); background: linear-gradient(90deg, var(--primary-light), #fff); box-shadow: inset 3px 0 0 var(--primary); }
.nav-icon { width: 22px; font-size: 19px; text-align: center; }
.sidebar-foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.user-chip { display: flex; align-items: center; gap: 10px; min-width: 0; }
.user-chip > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.user-chip strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.user-chip small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--primary-dark); background: var(--primary-light); font-size: 12px; font-weight: 700; }
.logout { display: inline-block; margin: 13px 0 0 46px; color: var(--muted); font-size: 12px; font-weight: 600; }
.logout:hover { color: var(--danger); }
.main-column { width: calc(100% - 258px); min-height: 100vh; margin-left: 258px; }
.mobile-header { display: none; }
.content { width: min(1220px, calc(100% - 64px)); margin: 0 auto; padding: 54px 0 70px; }

.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.page-heading-compact { align-items: start; margin-bottom: 26px; }
.page-heading h1 { margin: 6px 0 7px; font: 700 clamp(29px, 3vw, 39px)/1.1 var(--font-display); color: var(--navy); letter-spacing: -.025em; }
.page-heading p, .section-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.eyebrow { display: block; color: var(--primary); font-size: 11px; line-height: 1.2; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow-light { color: rgba(255,255,255,.72); }
.back-link { display: block; margin-bottom: 24px; color: var(--muted); font-size: 13px; font-weight: 600; }
.back-link:hover { color: var(--primary); }

.btn { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 17px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 13px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: var(--primary); box-shadow: 0 7px 16px rgba(255,143,0,.20); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 9px 20px rgba(255,90,0,.24); }
.btn-secondary { color: #5e6072; background: #fff; border-color: var(--line); }
.btn-danger { color: var(--danger); background: #fff; border-color: #f0c8cf; }
.btn-disabled { cursor: not-allowed; color: #9a9cab; background: #eeeef3; }
.btn-disabled:hover { transform: none; }
.btn-block { width: 100%; }
.btn-grow { flex: 1; }
.icon-btn { min-height: 43px; display: inline-grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #fff; font-size: 12px; font-weight: 700; }
.icon-btn:hover { color: var(--primary-dark); border-color: #FFD29A; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 42px; }
.stat-card { position: relative; overflow: hidden; min-height: 145px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 5px 22px rgba(28,28,68,.035); }
.stat-card-accent::after { content: ""; position: absolute; top: -24px; right: -22px; width: 92px; height: 92px; border-radius: 50%; background: var(--primary-light); box-shadow: 0 0 0 20px rgba(255,143,0,.04); }
.stat-card strong { display: block; margin: 13px 0 7px; color: var(--navy); font: 700 34px/1 var(--font-display); }
.stat-card small { color: var(--muted); font-size: 12px; }
.stat-label { color: #777a8e; font-size: 12px; font-weight: 700; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #25b787; }
.section-block { margin-top: 4px; }
.section-heading { display: flex; justify-content: space-between; margin-bottom: 18px; }
.section-heading h2 { margin: 0 0 3px; font: 700 21px/1.2 var(--font-display); color: var(--navy); }
.client-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.client-card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.client-card:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(28,28,68,.11); }
.client-card.is-inactive { box-shadow: none; opacity: .72; }
.client-card.is-preparing { border-color: #ece1d0; box-shadow: 0 8px 26px rgba(77,56,26,.055); }
.client-card-top { display: flex; align-items: start; justify-content: space-between; margin-bottom: 17px; }
.client-logo { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: var(--client-color); background: #f0efff; background: color-mix(in srgb, var(--client-color) 11%, white); font: 700 15px/1 var(--font-display); }
.client-logo-image { width: 74px; padding: 7px; background: #fff; border: 1px solid var(--line); }
.client-logo-image img { width: 100%; height: 100%; object-fit: contain; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-active { color: #147b5a; background: #e9f8f2; }
.badge-inactive { color: #77798a; background: #eeeeF2; }
.badge-borrador { color: #6d6f7e; background: #f0f0f3; }
.badge-pendiente { color: #97580d; background: #fff4df; }
.badge-aprovisionando, .badge-validando { color: #1857a6; background: #edf5ff; }
.badge-error { color: #a52d43; background: #fff0f3; }
.badge-suspendido { color: #77798a; background: #eeeeF2; }
.client-card h3 { margin: 0 0 5px; color: var(--navy); font: 700 20px/1.2 var(--font-display); }
.portal-link { display: block; overflow: hidden; margin-bottom: 20px; color: var(--primary); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.portal-link:hover { text-decoration: underline; }
.client-meta { display: flex; justify-content: space-between; gap: 12px; margin: 0 -22px 18px; padding: 14px 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.client-meta strong { color: #656779; font-weight: 600; }
.client-actions { display: flex; gap: 8px; }
.empty-state { padding: 54px 24px; border: 1px dashed #d8d8e5; border-radius: 16px; text-align: center; background: #fff; }
.empty-state h3 { margin: 13px 0 5px; font: 700 21px/1.2 var(--font-display); }
.empty-state p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.empty-icon { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px; color: var(--primary-dark); background: var(--primary-light); font-size: 24px; }

.alert { margin-bottom: 20px; padding: 12px 15px; border-radius: 9px; font-size: 13px; line-height: 1.5; }
.alert ul { margin: 0; padding-left: 19px; }
.alert-error { color: #a52d43; background: #fff0f3; border: 1px solid #f6ccd4; }
.alert-success { color: #116f50; background: #ebf9f4; border: 1px solid #c5ebdd; }

.editor-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.form-section { display: grid; grid-template-columns: 220px 1fr; gap: 34px; padding: 29px 31px; border-bottom: 1px solid var(--line); }
.form-section-title { display: flex; align-items: start; gap: 12px; }
.form-section-title > span { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; color: var(--primary-dark); background: var(--primary-light); font-size: 10px; font-weight: 700; }
.form-section-title h2 { margin: 1px 0 4px; color: var(--navy); font: 700 16px/1.2 var(--font-display); }
.form-section-title p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
.field { display: grid; gap: 7px; min-width: 0; color: #55586b; font-size: 12px; font-weight: 700; }
.field-full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; outline: none; color: var(--ink); background: #fff; border: 1px solid #dfe0e8; border-radius: 9px; font-size: 13px; font-weight: 500; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,143,0,.12); }
.field small { color: #9395a4; font-size: 10px; font-weight: 500; }
.field input[readonly] { color: #6e7080; background: #f7f7fa; cursor: default; }
.field-note { padding: 12px 14px; border: 1px solid #dfe3fa; border-radius: 9px; color: #66697b; background: var(--secondary-light); font-size: 11px; line-height: 1.55; }
.field-note strong { color: var(--secondary); }
.color-control { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 6px 11px; border: 1px solid #dfe0e8; border-radius: 9px; }
.color-control input { width: 28px; min-height: 28px; height: 28px; padding: 0; border: 0; border-radius: 7px; cursor: pointer; }
.color-control code { color: #656779; font: 600 12px/1 var(--font-body); }
.toggle-field { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 7px 0; }
.toggle-field > span { display: grid; gap: 4px; }
.toggle-field strong { color: #55586b; font-size: 12px; }
.toggle-field small { color: #9395a4; font-size: 10px; }
.toggle-field input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-field i { position: relative; width: 43px; height: 24px; flex: 0 0 auto; border-radius: 99px; cursor: pointer; background: #cfd0da; transition: .18s ease; }
.toggle-field i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.15); transition: .18s ease; }
.toggle-field input:checked + i { background: var(--primary); }
.toggle-field input:checked + i::after { transform: translateX(19px); }
.module-builder { display: grid; gap: 12px; }
.module-builder[hidden] { display: none; }
.module-presets { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 10px; border: 1px solid #e4e5ed; border-radius: 9px; background: #fafafd; }
.module-presets > span { margin-right: 3px; color: #77798a; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .45px; }
.module-preset { min-height: 30px; padding: 6px 10px; border: 1px solid #dfe0e8; border-radius: 7px; color: var(--secondary); background: #fff; font: 600 10.5px/1 var(--font-body); cursor: pointer; transition: .15s ease; }
.module-preset:hover { border-color: var(--primary); color: #9d5700; background: var(--primary-light); }
.module-source-groups { display: grid; gap: 10px; }
.module-source-group { padding: 13px; border: 1px solid #e5e6ed; border-radius: 10px; background: #fcfcfe; }
.module-source-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.module-source-heading > div { display: grid; gap: 3px; }
.module-source-heading strong { color: #4f5264; font-size: 11.5px; }
.module-source-heading small { color: #9698a6; font-size: 9.5px; font-weight: 500; }
.module-source-heading > span { flex: 0 0 auto; padding: 4px 7px; border-radius: 99px; color: #77798a; background: #f0f1f6; font-size: 9px; font-weight: 700; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.module-option { position: relative; display: flex; align-items: center; min-height: 36px; cursor: pointer; }
.module-option input { position: absolute; width: 1px; height: 1px; min-height: 0; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; border-radius: 0; opacity: 0; box-shadow: none; }
.module-option span { width: 100%; padding: 9px 10px 9px 32px; border: 1px solid #e1e2ea; border-radius: 8px; color: #656779; background: #fff; font-size: 10.5px; line-height: 1.2; font-weight: 600; transition: .15s ease; }
.module-option span::before { content: ""; position: absolute; left: 10px; top: 50%; width: 13px; height: 13px; border: 1px solid #c9cbd6; border-radius: 3px; transform: translateY(-50%); background: #fff; }
.module-option input:checked + span { color: var(--secondary); border-color: #ffd49d; background: var(--primary-light); }
.module-option input:checked + span::before { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 3px #fff; }
.module-option input:focus-visible + span { outline: 2px solid rgba(255,143,0,.45); outline-offset: 1px; }
.module-option span small { display: block; margin-top: 2px; color: #a56a22; font-size: 8.5px; }
.module-option.is-required { cursor: default; }
.module-option.is-required span { border-color: #e4e5ec; color: #696b7b; background: #f7f7fa; }
.logo-preview { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; }
.logo-preview img { width: 110px; height: 42px; object-fit: contain; object-position: left center; }
.logo-preview span { color: var(--muted); font-size: 10px; font-weight: 600; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 20px 31px; background: #fbfbfd; }

.provision-overview { margin-bottom: 17px; padding: 22px 24px; border: 1px solid #e5e4ee; border-radius: 16px; background: linear-gradient(135deg, #fff 0%, #fffaf3 72%, #fff2df 100%); box-shadow: 0 10px 30px rgba(28,28,68,.055); }
.provision-overview-head { display: flex; align-items: center; gap: 14px; }
.provision-brand { width: 62px; height: 52px; display: grid; place-items: center; flex: 0 0 auto; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.provision-brand img { width: 100%; height: 100%; object-fit: contain; }
.provision-brand-initials { color: var(--client-color); background: color-mix(in srgb, var(--client-color) 9%, white); font: 700 15px/1 var(--font-display); }
.provision-overview-copy { min-width: 0; flex: 1; }
.provision-overview-copy h2 { margin: 4px 0 3px; color: var(--navy); font: 700 19px/1.2 var(--font-display); }
.provision-overview-copy p { overflow: hidden; margin: 0; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.provision-progress-row { display: grid; grid-template-columns: auto minmax(140px, 1fr) 38px; align-items: center; gap: 13px; margin-top: 19px; padding-top: 16px; border-top: 1px solid rgba(0,0,124,.08); }
.provision-progress-row > span { color: var(--muted); font-size: 10.5px; }
.provision-progress-row > span strong, .provision-progress-row > strong { color: var(--secondary); font-weight: 700; }
.progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: #e9e9ef; }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--primary-dark)); }
.provision-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .72fr); gap: 17px; align-items: start; }
.provision-card { padding: 22px 24px; }
.provision-side { display: grid; gap: 14px; }
.portal-summary-card, .audit-card { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 8px 24px rgba(28,28,68,.045); }
.check-list { display: grid; }
.check-row { display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 54px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.check-mark { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; font-size: 10px; font-weight: 800; }
.check-copy { min-width: 0; display: grid; gap: 3px; }
.check-row strong { color: #535669; font-size: 12px; }
.check-row small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.check-row.is-ok .check-mark { color: #147b5a; background: #e9f8f2; }
.check-row.is-pending .check-mark { color: #97580d; background: #fff4df; }
.check-status { padding: 4px 7px; border-radius: 999px; font-size: 8.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.check-row.is-ok .check-status { color: #147b5a; background: #e9f8f2; }
.check-row.is-pending .check-status { color: #8b651f; background: #fff7e8; }
.provision-actions { display: flex; align-items: center; justify-content: flex-end; padding-top: 20px; }
.provision-actions .btn { min-width: 190px; }
.queue-state { width: 100%; padding: 12px 14px; border-radius: 9px; color: #6a5a42; background: #fff7e9; font-size: 11px; font-weight: 600; text-align: center; }
.portal-summary-list { display: grid; margin: 0; }
.portal-summary-list > div { display: grid; grid-template-columns: 85px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.portal-summary-list > div:last-child { border-bottom: 0; }
.portal-summary-list dt { color: var(--muted); font-size: 9.5px; font-weight: 600; }
.portal-summary-list dd { min-width: 0; margin: 0; color: #55586a; font-size: 10.5px; font-weight: 700; }
.portal-summary-list dd small { display: block; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 8.5px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.color-pair { display: flex; gap: 6px; }
.color-pair i { width: 23px; height: 23px; border: 3px solid #fff; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px var(--line); }
.module-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.module-pills span { padding: 4px 6px; border-radius: 6px; color: var(--secondary); background: var(--secondary-light); font-size: 8.5px; font-weight: 600; }
.credential-action { display: grid; gap: 7px; margin-top: 13px; padding-top: 14px; border-top: 1px solid var(--line); }
.credential-action .btn { width: 100%; }
.credential-action small { color: var(--muted); font-size: 8.5px; line-height: 1.45; text-align: center; }
.audit-list { display: grid; }
.audit-row { position: relative; display: flex; gap: 10px; padding: 10px 0; }
.audit-row i { width: 8px; height: 8px; margin-top: 4px; flex: 0 0 auto; border: 2px solid var(--primary); border-radius: 50%; background: #fff; }
.audit-row span { min-width: 0; display: grid; gap: 4px; }
.audit-row strong { color: #56596b; font-size: 10px; text-transform: capitalize; }
.audit-row small, .audit-empty { color: var(--muted); font-size: 9.5px; }

.login-body { background: #fff; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(400px, 47%) 1fr; }
.login-brand-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 47px clamp(38px, 6vw, 88px); color: #fff; background: radial-gradient(circle at 12% 88%, rgba(255,143,0,.54), transparent 31%), linear-gradient(145deg, var(--secondary) 0%, #12128F 58%, var(--primary) 125%); }
.login-brand-panel::after { content: ""; position: absolute; right: -150px; bottom: -190px; width: 440px; height: 440px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.03), 0 0 0 140px rgba(255,255,255,.025); }
.login-brand { position: relative; z-index: 1; display: flex; align-items: center; }
.login-logo-box { display: inline-flex; align-items: center; padding: 11px 16px; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(0,0,50,.18); }
.login-logo-box img { display: block; width: 176px; max-width: 100%; height: auto; }
.login-message { position: relative; z-index: 1; max-width: 510px; }
.login-message h1 { margin: 16px 0 19px; font: 700 clamp(38px, 4.4vw, 61px)/1.05 var(--font-display); letter-spacing: -.035em; }
.login-message p { max-width: 455px; margin: 0; color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.75; }
.login-trust { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.64); font-size: 11px; }
.login-trust span { width: 7px; height: 7px; border-radius: 50%; background: #7ef0c7; box-shadow: 0 0 0 4px rgba(126,240,199,.12); }
.login-form-panel { display: grid; place-items: center; padding: 40px; background: #fff; }
.login-form { width: min(390px, 100%); }
.login-form h2, .setup-card h1 { margin: 8px 0 8px; color: var(--navy); font: 700 35px/1.1 var(--font-display); letter-spacing: -.02em; }
.form-intro { margin: 0 0 27px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.login-form .field { margin-bottom: 16px; }
.login-form .btn { margin-top: 6px; }
.login-help { margin: 24px 0 0; color: #9a9cab; font-size: 10.5px; text-align: center; }

.setup-body { display: grid; place-items: center; padding: 36px 20px; background: radial-gradient(circle at 8% 8%, var(--primary-light), transparent 36%), radial-gradient(circle at 92% 90%, var(--secondary-light), transparent 34%), var(--soft); }
.setup-card { width: min(690px, 100%); padding: 38px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.setup-brand { display: flex; align-items: end; gap: 14px; margin-bottom: 35px; }
.setup-brand img { display: block; width: 164px; max-width: 60%; height: auto; }
.setup-brand span { padding-bottom: 2px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }

@media (max-width: 1050px) {
  .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-section { grid-template-columns: 185px 1fr; }
}

@media (max-width: 800px) {
  .sidebar { display: none; }
  .main-column { width: 100%; margin: 0; }
  .mobile-header { height: 65px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; background: #fff; border-bottom: 1px solid var(--line); }
  .mobile-header .brand { flex-direction: row; align-items: center; }
  .mobile-header .brand-logo { width: 126px; }
  .mobile-header .logout { margin: 0; }
  .content { width: calc(100% - 36px); padding: 32px 0 55px; }
  .stats { grid-template-columns: 1fr; }
  .stat-card { min-height: 122px; }
  .form-section { grid-template-columns: 1fr; gap: 22px; }
  .provision-layout { grid-template-columns: 1fr; }
  .login-shell { grid-template-columns: 1fr; }
  .login-brand-panel { min-height: 330px; padding: 34px; }
  .login-message h1 { font-size: 39px; }
  .login-trust { display: none; }
  .login-form-panel { padding: 48px 24px; }
}

@media (max-width: 560px) {
  .page-heading { align-items: stretch; flex-direction: column; }
  .page-heading .btn { align-self: flex-start; }
  .stats { gap: 11px; }
  .client-grid { grid-template-columns: 1fr; }
  .provision-overview-head { align-items: flex-start; flex-wrap: wrap; }
  .provision-overview-head .badge { margin-left: auto; }
  .provision-progress-row { grid-template-columns: 1fr 40px; }
  .provision-progress-row > span { grid-column: 1 / -1; }
  .check-row { grid-template-columns: 27px minmax(0, 1fr); }
  .check-status { display: none; }
  .client-card { padding: 20px; }
  .client-meta { margin-inline: -20px; padding-inline: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .editor-card { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .form-section { margin-bottom: 12px; padding: 21px 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
  .form-actions { position: sticky; bottom: 0; z-index: 2; flex-wrap: wrap; margin-inline: -18px; padding: 14px 18px; border-top: 1px solid var(--line); }
  .form-actions .btn { flex: 1; }
  .setup-card { padding: 27px 21px; }
  .login-brand-panel { min-height: 285px; }
  .login-message h1 { font-size: 34px; }
  .login-message p { font-size: 13px; }
}
