:root { --navy:#101827; --navy-2:#172238; --blue:#2563eb; --blue-soft:#e9f0ff; --ink:#172033; --muted:#5f6a7f; --line:#e5e9f0; --surface:#fff; --bg:#f5f7fb; --green:#149765; --yellow:#d18b08; --red:#bd2828; }
* { box-sizing:border-box; }
html, body { margin:0; min-height:100%; font-family:Inter,system-ui,sans-serif; color:var(--ink); background:var(--bg); }
body { font-size:14px; }
.app-loading-overlay { position:fixed; inset:0; z-index:1600; display:grid; place-items:center; padding:24px; background:linear-gradient(145deg,#f7f9fded,#edf3ffed); backdrop-filter:blur(7px); }
.app-loading-overlay[hidden] { display:none; }
.app-loading-card { width:min(440px,100%); display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:16px; align-items:center; padding:24px; border:1px solid #dce5f4; border-radius:16px; background:#fff; box-shadow:0 24px 70px #17203325; }
.app-loading-brand { display:grid; place-items:center; width:48px; height:48px; border-radius:13px; color:#fff; background:linear-gradient(135deg,#3981ff,#2050c8); box-shadow:0 9px 24px #2050c84d; font-size:24px; font-weight:750; }
.app-loading-copy { min-width:0; }
.app-loading-copy strong,.app-loading-copy span { display:block; }
.app-loading-copy strong { margin-bottom:6px; font-size:15px; line-height:1.35; }
.app-loading-copy span { color:var(--muted); font-size:11px; line-height:1.5; }
.app-loading-spinner { width:28px; height:28px; border:3px solid #dce8ff; border-top-color:var(--blue); border-radius:50%; animation:app-loading-spin .8s linear infinite; }
.app-loading-skeleton { grid-column:1/-1; display:grid; gap:8px; padding-top:4px; }
.app-loading-skeleton i { height:7px; overflow:hidden; border-radius:999px; background:linear-gradient(90deg,#edf1f7 20%,#dce7f8 45%,#edf1f7 70%); background-size:220% 100%; animation:app-loading-shimmer 1.35s ease-in-out infinite; }
.app-loading-skeleton i:nth-child(2) { width:84%; }
.app-loading-skeleton i:nth-child(3) { width:62%; }
@keyframes app-loading-spin { to { transform:rotate(360deg); } }
@keyframes app-loading-shimmer { to { background-position:-220% 0; } }
@media (prefers-reduced-motion:reduce) {
  .app-loading-spinner,.app-loading-skeleton i { animation:none; }
}
a { color:inherit; text-decoration:none; }
button, input, select, textarea { font:inherit; }
button, a, [role="button"] { -webkit-tap-highlight-color:transparent; }
.skip-link { position:fixed; top:8px; left:8px; z-index:10000; padding:10px 14px; color:#fff; background:#172033; border-radius:7px; transform:translateY(-150%); }
.skip-link:focus { transform:translateY(0); }
:where(a,button,input,select,textarea,[tabindex]):focus-visible { outline:3px solid #f3a712; outline-offset:3px; }
h1:focus,h1:focus-visible { outline:none!important; box-shadow:none!important; }
.app-shell { min-height:100vh; display:flex; }
.sidebar { position:fixed; inset:0 auto 0 0; width:242px; display:flex; flex-direction:column; padding:24px 16px; color:#cad2e1; background:linear-gradient(180deg,var(--navy),#0b1220); z-index:10; }
.brand { display:flex; align-items:center; gap:12px; padding:0 10px 25px; color:white; }
.brand-mark { display:grid; place-items:center; width:38px; height:38px; border-radius:10px; background:linear-gradient(135deg,#3981ff,#2050c8); font-size:21px; font-weight:700; box-shadow:0 8px 22px #0d3f9d70; }
.brand strong,.brand small { display:block; } .brand strong { font-size:17px; letter-spacing:.2px; } .brand small { margin-top:2px; color:#8290a9; font-size:9px; letter-spacing:2px; }
.sidebar nav { display:flex; flex-direction:column; gap:4px; overflow-y:auto; }
.sidebar nav a { display:flex; gap:12px; align-items:center; padding:10px 12px; border-radius:8px; font-size:13px; }
.sidebar nav a:hover,.sidebar nav a.active { color:#fff; background:#ffffff12; } .sidebar nav a.active { box-shadow:inset 3px 0 #4d8dff; }
.nav-label { margin:18px 12px 6px; color:#62708a; font-size:9px; font-weight:700; letter-spacing:1.5px; }
.sidebar-footer { margin-top:auto; padding:14px 10px 0; border-top:1px solid #ffffff12; color:#78869e; font-size:11px; }.status-dot { display:inline-block; width:7px; height:7px; margin-right:7px; border-radius:50%; background:#26c281; box-shadow:0 0 8px #26c281; }
.main-column { width:calc(100% - 242px); min-width:0; margin-left:242px; }
.topbar { height:72px; display:flex; align-items:center; justify-content:space-between; gap:18px; padding:0 34px; background:#fff; border-bottom:1px solid var(--line); }.topbar-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; min-width:0; }
.company-switcher { display:flex; align-items:center; gap:12px; }.company-switcher label { color:var(--muted); font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.6px; }.company-switcher select { min-width:260px; padding:9px 34px 9px 12px; border:1px solid var(--line); border-radius:7px; color:var(--ink); background:white; }
.user-chip { display:flex; align-items:center; gap:10px; }.user-chip>span { display:grid; place-items:center; width:34px; height:34px; border-radius:50%; color:#fff; background:#293752; font-size:11px; font-weight:700; }.user-chip strong,.user-chip small { display:block; }.user-chip strong { font-size:12px; }.user-chip small { margin-top:2px; color:var(--muted); font-size:10px; }
.content { max-width:1540px; margin:auto; padding:34px; }
.page-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:20px; margin-bottom:26px; }.page-heading h1 { margin:4px 0 7px; font-size:28px; letter-spacing:-.7px; }.page-heading p { margin:0; color:var(--muted); }.eyebrow { color:var(--blue); font-size:10px; font-weight:700; letter-spacing:1.4px; }
.button { display:inline-flex; align-items:center; justify-content:center; padding:10px 16px; border:1px solid transparent; border-radius:7px; cursor:pointer; font-weight:600; font-size:12px; transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease; }.button.primary { color:#fff; background:var(--blue); box-shadow:0 5px 14px #2563eb28; }.button.secondary { color:var(--blue); background:var(--blue-soft); }.button.ghost { border-color:var(--line); background:white; }.button.danger { color:#fff; background:var(--red); }.button:not(:disabled):hover { transform:translateY(-2px); box-shadow:0 8px 18px #17203320; }.button.primary:not(:disabled):hover { background:#174fc8; }.button.secondary:not(:disabled):hover { background:#d9e6ff; }.button.ghost:not(:disabled):hover { color:var(--blue); border-color:#9db9ef; background:#f7faff; }.button.danger:not(:disabled):hover { background:#9f2020; }.button:active:not(:disabled) { transform:translateY(0); box-shadow:0 2px 6px #17203318; }.button:disabled { cursor:not-allowed; opacity:.52; }
button:not(.button):not(:disabled),[role="button"]:not([aria-disabled="true"]) { transition:filter .16s ease,transform .16s ease,box-shadow .16s ease,background-color .16s ease; }button:not(.button):not(:disabled):hover,[role="button"]:not([aria-disabled="true"]):hover { filter:brightness(.97); box-shadow:0 3px 10px #17203314; }.settings-card,.module-card,.docs-list a,.action-list a,.kanban-card>a { transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,color .16s ease,background-color .16s ease; }.settings-card:hover,.module-card:hover,.docs-list a:hover { transform:translateY(-2px); border-color:#b8c9e8; box-shadow:0 9px 24px #17203312; }.action-list a:hover,.kanban-card>a:hover { color:#174fc8; text-decoration:underline; text-underline-offset:3px; }
.metric-grid { display:grid; grid-template-columns:repeat(4,minmax(170px,1fr)); gap:14px; margin-bottom:18px; }.metric-card { display:flex; align-items:center; gap:14px; padding:18px; border:1px solid var(--line); border-radius:10px; background:#fff; box-shadow:0 2px 4px #17203308; }.metric-card small,.metric-card strong { display:block; }.metric-card small { color:var(--muted); font-size:11px; }.metric-card strong { margin-top:5px; font-size:23px; }.metric-icon { display:grid; place-items:center; width:40px; height:40px; border-radius:9px; font-size:18px; }.blue { color:#164fa8; background:#edf3ff; }.green { color:#0b704b; background:#eaf8f2; }.yellow { color:#805500; background:#fff7df; }.red { color:#a52626; background:#fff0f0; }.purple { color:#5b3dac; background:#f2efff; }.gray { color:#445064; background:#f1f3f6; }
.panel-grid { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(320px,1fr); gap:18px; }.panel { border:1px solid var(--line); border-radius:10px; background:#fff; box-shadow:0 2px 5px #17203308; }.panel:not(section):not(article):not(a), section.panel, article.panel, a.panel { padding:22px; }.panel-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }.panel h2 { margin:0 0 5px; font-size:15px; }.panel p { margin:0; color:var(--muted); font-size:12px; }.badge { display:inline-block; padding:5px 8px; border-radius:999px; font-size:9px; font-weight:700; white-space:nowrap; }
.empty-chart { display:grid; place-items:center; min-height:245px; color:var(--muted); }.chart-bars { width:75%; height:145px; display:flex; align-items:flex-end; gap:18px; padding:0 20px 12px; border-bottom:1px solid var(--line); }.chart-bars i { flex:1; min-height:10px; border-radius:4px 4px 0 0; background:linear-gradient(#75a3ff,#dbe7ff); }
.action-list { margin:0; padding:0; list-style:none; }.action-list li { display:flex; align-items:center; gap:12px; padding:16px 0; border-bottom:1px solid var(--line); }.action-list li:last-child { border:0; }.action-list li>div { min-width:0; flex:1; }.action-list strong,.action-list small { display:block; overflow-wrap:anywhere; }.action-list strong { margin-bottom:4px; font-size:12px; }.action-list small { color:var(--muted); font-size:10px; }.action-list a { margin-left:auto; color:var(--blue); font-size:10px; font-weight:700; }.action-list .button { flex:none; }.action-dot { width:9px; height:9px; border-radius:50%; }
.welcome { min-height:370px; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; padding:60px; border-radius:14px; color:#fff; background:radial-gradient(circle at 80% 20%,#264d88 0,transparent 34%),linear-gradient(135deg,#111c30,#182b48); }.welcome h1 { max-width:700px; margin:12px 0; font-size:46px; line-height:1.07; letter-spacing:-1.8px; }.welcome p { max-width:610px; color:#b9c5d8; font-size:16px; line-height:1.6; }.welcome-actions { display:flex; gap:10px; margin-top:24px; }.feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:18px; }.feature-grid article { padding:22px; border:1px solid var(--line); border-radius:10px; background:#fff; }.feature-grid article>span { color:var(--blue); font-size:10px; font-weight:700; }.feature-grid h3 { margin:12px 0 6px; }.feature-grid p { margin:0; color:var(--muted); font-size:12px; line-height:1.6; }
.alert { margin:0 0 18px; padding:12px 15px; border:1px solid; border-radius:8px; font-size:12px; }.alert.warning { color:#835e12; background:#fff8e7; border-color:#f0d998; }.alert.danger { color:#a52e2e; background:#fff1f1; border-color:#efbcbc; }.alert.success { color:#106844; background:#effaf5; border-color:#afe0ca; }.alert.info { color:#245b9b; background:#eff6ff; border-color:#bfd6f5; }
.form-panel { margin-bottom:18px; }.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; margin:18px 0; }.form-grid label { display:flex; flex-direction:column; gap:7px; color:#445069; font-size:11px; font-weight:600; }.form-grid .span-2 { grid-column:span 2; }.form-grid input,.form-grid select,.form-grid textarea,.filter-input,.filter-bar input,.filter-bar select,.code-area { width:100%; padding:10px 11px; border:1px solid #dce1ea; border-radius:7px; outline:none; background:white; }.form-grid input:focus,.form-grid textarea:focus { border-color:#79a4ef; box-shadow:0 0 0 3px #2563eb12; }.form-grid textarea { min-height:75px; resize:vertical; }.form-actions { display:flex; justify-content:flex-end; gap:9px; }.filter-bar { display:flex; gap:10px; margin-bottom:14px; padding:13px; border:1px solid var(--line); border-radius:9px; background:#fff; }.filter-bar input { min-width:180px; }.filter-bar input:first-child { flex:1; }
.table-wrap { overflow:auto; }.panel>.table-wrap { margin:-22px; }table { width:100%; border-collapse:collapse; }th,td { padding:14px 18px; border-bottom:1px solid var(--line); text-align:left; font-size:11px; }th { color:#59657a; background:#fafbfc; font-size:9px; text-transform:uppercase; letter-spacing:.6px; }td strong,td small { display:block; }td small { margin-top:4px; color:var(--muted); font-size:9px; }tbody tr:last-child td { border-bottom:0; }tbody tr:hover { background:#fbfcff; }.empty-state { padding:45px!important; color:var(--muted); text-align:center; }.empty-state.large { display:flex; min-height:260px; flex-direction:column; align-items:center; justify-content:center; }.empty-state small { margin-top:8px; }.score { display:grid; place-items:center; width:34px; height:34px; border-radius:50%; color:var(--blue); background:var(--blue-soft); font-weight:700; }
.row-actions { display:flex; gap:6px; white-space:nowrap; }.compact-table { margin-top:18px; }.validation-errors { color:var(--red); font-size:12px; }
.tabs { display:flex; gap:3px; margin-bottom:18px; padding:5px; overflow:auto; border:1px solid var(--line); border-radius:9px; background:#fff; }.tabs button { padding:9px 13px; border:0; border-radius:6px; color:var(--muted); background:transparent; white-space:nowrap; cursor:pointer; }.tabs button.active { color:var(--blue); background:var(--blue-soft); font-weight:600; }.details { display:grid; grid-template-columns:150px 1fr; margin:18px 0 0; }.details dt,.details dd { margin:0; padding:11px 0; border-bottom:1px solid var(--line); }.details dt { color:var(--muted); font-size:11px; }.stack-actions { display:flex; flex-direction:column; gap:9px; margin-top:18px; }.compliance-note { margin-top:16px!important; padding-top:15px; border-top:1px solid var(--line); }.code-area { min-height:190px; margin:12px 0; resize:vertical; font-family:ui-monospace,monospace; font-size:11px; }.code-list { line-height:2!important; word-spacing:8px; }.check-list { padding:0; list-style:none; }.check-list li { padding:10px 0; border-bottom:1px solid var(--line); }.check-list li:before { content:'✓'; margin-right:9px; color:var(--green); font-weight:700; }
.settings-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:15px; }.settings-card { display:flex; gap:15px; align-items:flex-start; }.settings-card>span { display:grid; place-items:center; width:38px; height:38px; flex:none; border-radius:8px; color:var(--blue); background:var(--blue-soft); }.settings-card h2 { margin:1px 0 7px; }.docs-list { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-bottom:18px; }.docs-list a { display:flex; justify-content:space-between; align-items:center; }.docs-list span { color:var(--muted); font-size:11px; }
.login-shell { min-height:calc(100vh - 140px); display:grid; place-items:center; }.login-card { width:min(430px,100%); padding:34px; border:1px solid var(--line); border-radius:13px; background:#fff; box-shadow:0 16px 50px #17203312; }.login-brand { display:flex; align-items:center; gap:11px; margin-bottom:38px; }.login-brand strong,.login-brand small { display:block; }.login-brand small { margin-top:2px; color:var(--muted); font-size:8px; letter-spacing:2px; }.login-card h1 { margin:6px 0 8px; }.login-card>p { margin:0 0 22px; color:var(--muted); }.login-card form { display:flex; flex-direction:column; gap:14px; }.login-card form label { display:flex; flex-direction:column; gap:7px; color:#445069; font-size:11px; font-weight:600; }.login-card input { padding:11px; border:1px solid #dce1ea; border-radius:7px; }.login-card .button { margin-top:4px; }.login-help { display:block; margin-top:22px; color:var(--muted); line-height:1.6; }
.auth-page { min-height:100vh; display:flex; flex-direction:column; background:radial-gradient(circle at 15% 10%,#dce9ff 0,transparent 30%),linear-gradient(145deg,#f8faff,#eef2f8); }.auth-content { flex:1; display:grid; place-items:center; padding:32px 18px; }.auth-content .login-shell { width:100%; min-height:0; }.auth-footer { padding:18px; color:var(--muted); text-align:center; font-size:11px; }.login-links { display:flex; justify-content:space-between; gap:14px; margin-top:18px; }.login-links a { color:var(--blue); font-size:11px; font-weight:600; }.full-button { width:100%; }.recovery-steps { margin:20px 0; padding-left:20px; color:var(--muted); line-height:1.8; font-size:12px; }
.pipeline-actions { margin-bottom:16px; }.kanban-board { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(250px,1fr); gap:13px; overflow-x:auto; padding-bottom:18px; }.kanban-column { min-height:430px; padding:12px; border:1px solid var(--line); border-radius:10px; background:#f5f7fa; }.kanban-column>header { display:flex; justify-content:space-between; padding:4px 4px 12px; font-size:11px; }.kanban-column>header span { padding:2px 7px; border-radius:999px; background:#e3e8f0; }.kanban-cards { display:flex; flex-direction:column; gap:10px; }.kanban-card { position:relative; padding:14px; border:1px solid var(--line); border-radius:8px; background:#fff; box-shadow:0 2px 4px #17203308; }.kanban-card>strong,.kanban-card>small { display:block; margin-bottom:8px; }.kanban-card>small { color:var(--muted); font-size:9px; }.kanban-card>div { display:flex; align-items:center; gap:8px; margin-bottom:8px; }.kanban-card .card-select { position:absolute; top:10px; right:10px; }.kanban-card>a { font-size:10px; }.kanban-card>.button { margin-top:9px; padding:5px 8px; font-size:9px; }
.kanban-card,.kanban-card strong,.kanban-card small,.kanban-card div { min-width:0; overflow-wrap:anywhere; word-break:break-word; }.kanban-card>div { flex-wrap:wrap; }.kanban-column { min-width:0; }
.email-display { display:inline-flex; gap:0; }
.environment-badge { display:flex; flex-direction:column; align-items:center; padding:6px 10px; border:1px solid var(--line); border-radius:8px; background:#fff; font-size:9px; line-height:1.3; }.environment-badge span { color:var(--muted); letter-spacing:.7px; }.environment-badge.homologation strong { color:#946200; }.environment-badge.approved strong { color:#0b6b46; }.environment-badge.production strong { color:var(--blue); }.acceptance-summary { display:grid; gap:12px; margin-bottom:18px; }.progress-track { height:8px; overflow:hidden; border-radius:999px; background:#e8ecf2; }.progress-track span { display:block; height:100%; border-radius:inherit; background:var(--green); }.acceptance-list { display:grid; gap:14px; }.acceptance-item>small { color:var(--muted); }
.production-gate { margin:18px 0; border-color:#d3b45f; }.status-list { display:grid; gap:10px; }.status-list>div { display:grid; grid-template-columns:1fr auto 90px; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--line); }.status-list small { color:var(--muted); text-align:right; }.details-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }.details-grid>div,.details-grid>dl { min-width:0; margin:0; padding:12px; border:1px solid var(--line); border-radius:8px; }.details-grid strong { overflow-wrap:anywhere; }.details-grid dt { color:var(--muted); font-size:12px; }.details-grid dd { margin:5px 0 0; overflow-wrap:anywhere; }
.guided-review { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:14px; border-radius:8px; background:#f7f9fc; }.guided-review strong { font-size:12px; }.guided-review ul { margin:8px 0 0; padding-left:18px; color:var(--muted); font-size:11px; line-height:1.7; }.guided-review .button { flex:none; }
.report-recommendation { margin-top:18px; }.report-recommendation ul { margin-bottom:0; color:var(--muted); line-height:1.8; }
.evidence-preview { display:flex; align-items:center; gap:14px; width:fit-content; margin:0 0 16px; color:var(--blue); font-size:11px; font-weight:600; }.evidence-preview img { width:180px; max-height:110px; object-fit:cover; border:1px solid var(--line); border-radius:7px; }
.module-catalog { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }.module-card code { color:var(--blue); font-size:11px; }.module-card h3 { margin:18px 0 7px; font-size:12px; }.module-card ul { margin:0; padding-left:18px; color:var(--muted); line-height:1.7; font-size:12px; }
.identity-help { margin-top:18px; }
.documentary-lead { border-left:4px solid #e7a315; }.documentary-decision { display:flex; align-items:flex-start; gap:14px; margin:14px 0; }.documentary-decision .badge { flex:none; margin-top:2px; }.documentary-decision p { margin:0; }.documentary-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }.documentary-definitions { display:grid; grid-template-columns:minmax(150px,190px) 1fr; margin:18px 0 0; }.documentary-definitions dt,.documentary-definitions dd { margin:0; padding:12px 0; border-bottom:1px solid var(--line); }.documentary-definitions dt { padding-right:18px; font-weight:700; }.documentary-definitions dd { color:var(--muted); line-height:1.65; }.panel>.documentary-scroll { width:100%; min-width:0; max-width:100%; margin:0; overflow-x:auto; contain:inline-size; }.documentary-table td { min-width:150px; vertical-align:top; }.documentary-table td:nth-child(3) { min-width:320px; }.documentary-table small { display:block; margin-top:6px; }.documentary-fingerprint { margin:18px 0 0; overflow-wrap:anywhere; color:var(--muted); }.documentary-classification { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:18px 0; }.documentary-classification>div { min-width:0; padding:14px; border:1px solid var(--line); border-radius:9px; background:#f8faff; }.documentary-classification small,.documentary-classification strong { display:block; }.documentary-classification strong { margin-top:7px; overflow-wrap:anywhere; }.proposal-card { border-color:#b8c9e8; }.blocker-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:16px 0; }.blocker-grid span { padding:11px 13px; border:1px solid #f0d293; border-radius:8px; background:#fff8e7; color:#7c5200; font-weight:700; }.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.contract-flow { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:0 0 18px; padding:0; list-style:none; counter-reset:none; }.contract-flow li { min-width:0; padding:15px; border:1px solid var(--line); border-radius:9px; background:#f8faff; }.contract-flow strong,.contract-flow span { display:block; }.contract-flow span { margin-top:7px; color:var(--muted); font-size:11px; line-height:1.55; }.contract-fields-table td:nth-child(3) { min-width:230px; }.policy-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }.policy-grid>div { min-width:0; padding:14px; border:1px solid var(--line); border-radius:9px; background:#fafbfc; }.policy-grid small,.policy-grid strong,.policy-grid span { display:block; }.policy-grid strong { margin-top:6px; overflow-wrap:anywhere; }.policy-grid span { margin-top:7px; color:var(--muted); font-size:10px; line-height:1.5; }.policy-user-agent { margin-top:18px!important; overflow-wrap:anywhere; }.readiness-conclusion { border-color:#bfd6f5; }.readiness-conclusion .alert { margin-top:14px; }
.preparation-banner { border-left-color:#e7a315; }.preparation-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }.preparation-grid+.preparation-grid,.preparation-grid+.preparation-security-grid,.preparation-security-grid+.preparation-grid { margin-top:18px; }.preparation-grid>div { min-width:0; padding:16px; border:1px solid var(--line); border-radius:9px; background:#f8faff; }.preparation-grid small,.preparation-grid strong { display:block; }.preparation-grid strong { margin-top:8px; overflow-wrap:anywhere; }.preparation-table td:nth-child(2) { min-width:260px; }.endpoint-path { white-space:normal; overflow-wrap:anywhere; }.preparation-security-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }.preparation-security-grid article { min-width:0; padding:16px; border:1px solid var(--line); border-radius:9px; background:#fafbfc; }.preparation-security-grid h3 { margin:0 0 8px; }.preparation-security-grid p { margin:0; color:var(--muted); overflow-wrap:anywhere; }
.document-link-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:16px; }.document-link-list article { min-width:0; padding:15px; border:1px solid var(--line); border-radius:9px; background:#fafbfc; }.document-link-list h3 { margin:0 0 8px; font-size:16px; }.document-link-list p { margin:0 0 10px; color:var(--muted); overflow-wrap:anywhere; }.document-link-list a { overflow-wrap:anywhere; }
.cnpj-final-readiness { min-width:0; }
.cnpj-final-readiness :where(h1,h2,h3,p,small,strong,code,td,th) { max-width:100%; overflow-wrap:anywhere; }
.cnpj-final-readiness .preparation-grid { grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr)); }
.cnpj-final-readiness .preparation-grid strong { line-height:1.45; }
.contact-safety-banner { border-left-color:#e7a315; }
.contact-file-table { margin-top:20px; }
.contact-file-table td small { display:block; margin-top:5px; }
.cnpj-final-readiness .form-actions { align-items:stretch; flex-wrap:wrap; margin-top:18px; }
.cnpj-final-readiness .form-actions .button { min-width:0; max-width:100%; white-space:normal; text-align:center; line-height:1.35; }
.cnpj-final-readiness .alert { max-width:100%; overflow-wrap:anywhere; line-height:1.55; }
.cnpj-final-readiness .document-link-list,
.cnpj-final-readiness .preparation-security-grid { grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr)); }
.cnpj-final-readiness .panel>.table-wrap { position:relative; z-index:0; width:100%; max-width:100%; margin:18px 0 0; }
.cnpj-final-readiness .panel>.table-wrap + .preparation-grid,
.cnpj-final-readiness .panel>.table-wrap + .form-actions { margin-top:20px; }
.cnpj-final-readiness .preparation-grid + .preparation-security-grid { margin-top:20px; }
@media (max-width:1050px) {
  .contract-flow { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .policy-grid,.preparation-grid,.preparation-security-grid,.document-link-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .documentary-table,.documentary-table tbody,.documentary-table tr,.documentary-table td { display:block; width:100%; min-width:0!important; max-width:100%; }
  .documentary-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
  .documentary-table tr { padding:10px 0; border-bottom:1px solid var(--line); }
  .documentary-table tr:last-child { border-bottom:0; }
  .documentary-table td { padding:9px 12px; border:0; overflow-wrap:anywhere; }
  .documentary-table td::before { content:attr(data-label); display:block; margin-bottom:5px; color:#59657a; font-size:9px; font-weight:700; letter-spacing:.6px; text-transform:uppercase; }
}
.settings-icon { width:20px; height:20px; color:currentColor; }.module-explanation { margin-bottom:18px; border-left:4px solid var(--blue); }.module-explanation a { color:var(--blue); font-weight:700; }.module-section { margin-bottom:18px; }.stats-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }.stat-card { min-width:0; padding:18px; border:1px solid var(--line); border-radius:10px; background:#fff; box-shadow:0 2px 5px #17203308; }.stat-card small,.stat-card strong { display:block; }.stat-card small { color:var(--muted); font-size:11px; }.stat-card strong { margin-top:7px; font-size:24px; }
.help-button { flex:none; white-space:nowrap; }.help-backdrop { position:fixed; inset:0; z-index:1200; display:grid; place-items:center; padding:20px; background:#10182799; }.help-dialog { width:min(760px,100%); max-height:88vh; overflow:auto; padding:24px; border-radius:12px; background:#fff; box-shadow:0 24px 80px #0005; }.help-dialog h3 { margin:22px 0 8px; }.help-dialog ol { padding-left:22px; color:var(--muted); line-height:1.7; }.help-fields { display:grid; grid-template-columns:minmax(130px,190px) 1fr; margin:0; }.help-fields dt,.help-fields dd { margin:0; padding:9px 0; border-bottom:1px solid var(--line); }.help-fields dt { font-weight:700; }.help-fields dd { color:var(--muted); }.confirmation-dialog::backdrop { background:#10182799; }body:has(.help-backdrop) { overflow:hidden; }
select { min-height:38px; padding-right:34px!important; border:1px solid #dce1ea; border-radius:7px; color:var(--ink); background-color:#fff; background-image:linear-gradient(45deg,transparent 50%,#59657a 50%),linear-gradient(135deg,#59657a 50%,transparent 50%); background-repeat:no-repeat; background-size:5px 5px,5px 5px; background-position:calc(100% - 15px) 50%,calc(100% - 10px) 50%; appearance:none; cursor:pointer; transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease; }select:hover:not(:disabled) { border-color:#9db9ef; background-color:#fbfdff; }select:focus { outline:none; border-color:#79a4ef; box-shadow:0 0 0 3px #2563eb12; }select:disabled { cursor:not-allowed; opacity:.58; background-color:#f2f4f7; }
input[type="checkbox"],input[type="radio"] { appearance:none; width:19px!important; min-width:19px; height:19px; margin:0; padding:0!important; flex:0 0 19px; border:1px solid #aeb8c8; border-radius:5px; background:#fff center/14px 14px no-repeat; cursor:pointer; vertical-align:middle; transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease,transform .16s ease; }input[type="radio"] { border-radius:50%; }input[type="checkbox"]:hover:not(:disabled),input[type="radio"]:hover:not(:disabled) { border-color:var(--blue); transform:scale(1.05); }input[type="checkbox"]:checked { border-color:var(--blue); background-color:var(--blue); background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E"); }input[type="radio"]:checked { border:5px solid var(--blue); }input[type="checkbox"]:focus-visible,input[type="radio"]:focus-visible { outline:0; box-shadow:0 0 0 3px #2563eb30; }input[type="checkbox"]:disabled,input[type="radio"]:disabled { cursor:not-allowed; opacity:.5; }
.form-grid label:has(> input[type="checkbox"]),.form-grid label:has(> input[type="radio"]) { min-height:40px; flex-direction:row; align-items:center; align-self:end; gap:9px; padding:9px 11px; border:1px solid #e3e7ee; border-radius:7px; background:#fafbfc; cursor:pointer; }.form-grid label:has(> input[type="checkbox"]):hover,.form-grid label:has(> input[type="radio"]):hover { border-color:#b8c9e8; background:#f7faff; }
.section-heading { margin:0 0 18px; padding-bottom:14px; border-bottom:1px solid var(--line); }.section-heading h2 { margin-bottom:7px; }.section-heading p { line-height:1.55; }.panel>.section-heading+.table-wrap { margin-top:0; }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition-duration:.01ms!important; animation-duration:.01ms!important; animation-iteration-count:1!important; } }
@media (max-width:1050px) { .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px) { .stats-grid { grid-template-columns:1fr; } }

/* Manutenção pós-Produção — onboarding multiempresa, biblioteca e sequências. */
.onboarding-flow { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:0 0 22px; padding:0; list-style:none; }
.onboarding-flow li { display:flex; align-items:center; gap:11px; min-width:0; padding:15px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.onboarding-flow li strong { display:grid; flex:none; place-items:center; width:30px; height:30px; border-radius:50%; background:#e9f0ff; color:var(--blue); }
.onboarding-flow li span { min-width:0; font-weight:700; overflow-wrap:anywhere; }
.onboarding-flow li.blocked { background:#fff8e7; border-color:#f0d293; }
.business-readiness-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.business-readiness-grid article { min-width:0; padding:18px; border:1px solid var(--line); border-radius:14px; background:#fafbfc; }
.business-readiness-grid article header { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.business-readiness-grid h3 { margin:0 0 5px; }
.business-readiness-grid progress { width:100%; height:10px; margin:16px 0; accent-color:var(--blue); }
.business-readiness-grid ul { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:0 0 16px; padding:0; list-style:none; }
.business-readiness-grid li { position:relative; padding-left:20px; color:var(--muted); font-size:12px; }
.business-readiness-grid li::before { position:absolute; left:0; content:"○"; color:#a1a9b8; }
.business-readiness-grid li.ready::before { content:"✓"; color:#179f68; font-weight:900; }
.business-readiness-grid .form-actions { justify-content:flex-start; }
.business-onboarding-page { min-width:0; max-width:100%; overflow-x:clip; }
.business-onboarding-page .panel>.table-wrap { width:100%; max-width:100%; }
.email-template-editor .template-code-editor { min-height:220px; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; line-height:1.55; resize:vertical; }
.email-template-editor .template-code-editor.html { min-height:300px; }
.template-preview-backdrop { position:fixed; inset:0; z-index:1400; display:grid; place-items:center; padding:20px; background:#101827a8; }
.template-preview-dialog { width:min(980px,100%); max-height:92vh; overflow:auto; padding:24px; border-radius:16px; background:#fff; box-shadow:0 30px 100px #0006; }
.preview-device-switch { display:flex; gap:8px; margin:16px 0; }
.template-preview-frame { width:100%; max-width:760px; min-height:420px; margin:auto; overflow:hidden; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:0 10px 32px #17203318; transition:max-width .2s ease; }
.template-preview-frame.mobile { max-width:390px; }
.template-preview-frame header { display:grid; gap:6px; padding:16px 18px; border-bottom:1px solid var(--line); background:#f8faff; }
.template-preview-frame header small { color:var(--muted); overflow-wrap:anywhere; }
.template-preview-frame iframe { display:block; width:100%; min-height:360px; border:0; background:#fff; }
.template-preview-frame pre,.template-text-preview { margin:0; padding:20px; white-space:pre-wrap; overflow-wrap:anywhere; font:14px/1.65 system-ui,sans-serif; }
.campaign-sequence-list { display:grid; gap:10px; margin:18px 0; padding:0; list-style:none; counter-reset:none; }
.campaign-sequence-list li { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:14px; align-items:center; min-width:0; padding:15px; border:1px solid var(--line); border-radius:11px; background:#fafbfc; }
.campaign-sequence-list strong,.campaign-sequence-list span,.campaign-sequence-list small { display:block; }
.campaign-sequence-list span,.campaign-sequence-list small { margin-top:5px; color:var(--muted); overflow-wrap:anywhere; }
.operation-result-backdrop { position:fixed; inset:0; z-index:1500; display:grid; place-items:center; padding:20px; background:#101827a8; }
.operation-result-dialog { width:min(520px,100%); padding:26px; border-radius:16px; background:#fff; box-shadow:0 30px 100px #0006; }
.operation-result-dialog h2 { margin:14px 0 8px; }
.operation-result-dialog p { margin:0; color:var(--muted); line-height:1.65; overflow-wrap:anywhere; }
.operation-result-dialog .form-actions { margin-top:22px; }

@media (max-width:1050px) {
  .onboarding-flow,.business-readiness-grid { grid-template-columns:1fr; }
}
@media (max-width:760px) {
  .onboarding-flow,.business-readiness-grid,.business-readiness-grid ul { grid-template-columns:1fr; }
  .campaign-sequence-list li { grid-template-columns:1fr; align-items:start; }
  .template-preview-backdrop { padding:8px; }
  .template-preview-dialog { padding:16px; }
}
@media (max-width:1050px) { .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.panel-grid { grid-template-columns:1fr; }.settings-grid { grid-template-columns:repeat(2,1fr); }.topbar { gap:10px; padding-inline:16px; }.topbar-actions { gap:7px; }.user-chip div { display:none; }.company-switcher { min-width:0; }.company-switcher select { min-width:180px; max-width:280px; }.content,.panel,.table-wrap { min-width:0; }.panel>.table-wrap { max-width:calc(100vw - 310px); }.filter-bar { flex-wrap:wrap; }.filter-bar input,.filter-bar select { min-width:0; flex:1 1 180px; }.page-heading { align-items:flex-start; flex-direction:column; }.page-heading .form-actions { flex-wrap:wrap; } }
@media (max-width:760px) { .sidebar { position:static; width:70px; flex:none; padding:20px 10px; }.sidebar .brand span:last-child,.sidebar nav span,.nav-label,.sidebar-footer { display:none; }.sidebar nav a { justify-content:center; }.main-column { width:calc(100% - 70px); min-width:0; margin:0; }.topbar { min-height:72px; height:auto; gap:8px; padding:10px; flex-wrap:wrap; }.topbar-actions { flex:none; }.environment-badge,.company-switcher label,.user-chip { display:none; }.company-switcher { min-width:0; flex:1; }.company-switcher select { width:100%; min-width:0; }.topbar form { flex:none; }.content { min-width:0; padding:20px 10px; }.panel { min-width:0; }.metric-grid,.feature-grid,.settings-grid,.docs-list,.details-grid,.module-catalog,.documentary-grid,.documentary-classification,.blocker-grid { grid-template-columns:1fr; }.documentary-decision { flex-direction:column; }.documentary-definitions { grid-template-columns:1fr; }.documentary-definitions dt { padding-bottom:2px; border-bottom:0; }.page-heading,.guided-review { align-items:flex-start; flex-direction:column; }.form-grid { grid-template-columns:1fr; }.form-grid .span-2 { grid-column:auto; }.help-fields { grid-template-columns:1fr; }.help-fields dt { padding-bottom:2px; border-bottom:0; }.form-actions,.row-actions { flex-wrap:wrap; }.welcome { padding:32px 20px; }.welcome h1 { font-size:32px; }.filter-bar { flex-wrap:wrap; }.filter-bar input,.filter-bar select { min-width:0; }.panel>.table-wrap { max-width:calc(100vw - 98px); }.action-list li>div { min-width:0; flex:1; }.action-list strong,.action-list small { overflow-wrap:anywhere; }.action-list .button { flex:none; padding-inline:10px; }.status-list>div { grid-template-columns:1fr auto; }.status-list small { grid-column:1/-1; text-align:left; } }
@media (max-width:760px) {
  .cnpj-final-readiness .form-actions { width:100%; flex-direction:column; }
  .cnpj-final-readiness .form-actions .button { width:100%; }
}

/* Fase 8.1.22: leitura dos conectores, critérios operacionais e navegação móvel. */
.mobile-navigation-toggle,.mobile-navigation-backdrop { display:none; }
.health-check-name { min-width:0; }
.health-check-name strong,.health-check-name small { display:block; }
.health-check-name small { margin-top:4px; text-align:left; line-height:1.45; }
.performance-criteria { margin-top:18px; }
.performance-criteria p,.performance-criteria li { line-height:1.65; }
.performance-criteria ul { margin:14px 0 0; padding-left:20px; color:var(--muted); }
.connector-panel p,.connector-panel li,.instruction-list { line-height:1.7; }
.connector-table th,.connector-table td { vertical-align:top; }
.connector-table td { min-width:125px; padding-top:18px; padding-bottom:18px; line-height:1.55; }
.connector-table td:first-child { min-width:190px; }
.connector-table td:nth-child(3) { min-width:230px; }
.connector-table td:last-child { min-width:180px; }
.connector-table td>small { margin-top:7px; line-height:1.5; }
.connector-table td>a:not(.button) { display:block; width:fit-content; margin-top:9px; color:var(--blue); font-weight:650; }
.checklist-table td { min-width:150px; vertical-align:middle; }
.instruction-list { margin:14px 0; padding-left:22px; color:var(--muted); }
.instruction-list li+li { margin-top:7px; }
.confirmation-backdrop { position:fixed; inset:0; z-index:1250; display:grid; place-items:center; padding:20px; background:#10182799; }
body:has(.confirmation-backdrop) { overflow:hidden; }
.confirmation-backdrop .confirmation-dialog { width:min(520px,100%); max-height:calc(100vh - 40px); overflow:auto; padding:24px; border:0; border-radius:14px; background:#fff; box-shadow:0 24px 80px #0005; }
.confirmation-backdrop .confirmation-dialog h2 { margin:0 0 12px; font-size:18px; }
.confirmation-backdrop .confirmation-dialog p { margin:0 0 22px; line-height:1.65; }
[data-diagnostic-confirmation] { width:min(520px,calc(100vw - 32px)); max-height:calc(100vh - 40px); overflow:auto; padding:24px; border:0; border-radius:14px; background:#fff; box-shadow:0 24px 80px #0005; }
[data-diagnostic-confirmation]::backdrop { background:#10182799; }
[data-diagnostic-confirmation] h2 { margin:0 0 12px; font-size:18px; }
[data-diagnostic-confirmation] p { margin:0 0 22px; line-height:1.65; }
.instance-diagnostic h2 { margin-bottom:16px; }
.instance-diagnostic .details-grid small { display:block; margin-bottom:9px; color:var(--muted); line-height:1.35; }
.instance-diagnostic .details-grid strong { display:block; line-height:1.45; }
.instance-diagnostic>p { margin-top:18px; line-height:1.65; }
.residual-risk-summary { margin-top:22px!important; padding-top:18px; border-top:1px solid var(--line); line-height:1.65; }
.diagnostic-instance .details-grid { margin-top:18px; }
.diagnostic-instance .details-grid div { padding:16px; }
.diagnostic-instance .details-grid small { margin-bottom:12px; }
.diagnostic-instance .details-grid strong { overflow-wrap:anywhere; word-break:break-word; }
.automatic-audit .panel-header { gap:18px; }
.automatic-audit .stats-grid { margin:20px 0; }
.automatic-audit>.audit-table-wrap { margin:0 -22px; }
.diagnostic-gate-warning { margin:20px 0 0; }
.diagnostic-attempts>.section-heading { margin-bottom:22px; }
.diagnostic-attempts>.table-wrap { margin:0 -22px -22px; }
.diagnostic-attempts td { line-height:1.65; }

/* Fase 8.1.24: rediagnóstico controlado e checklist explicado em linguagem comum. */
.diagnosis-result>.section-heading { margin-bottom:22px; }
.diagnosis-check-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.diagnosis-check { min-width:0; padding:16px; border:1px solid var(--line); border-radius:9px; background:#fafbfc; }
.diagnosis-check .badge { margin-bottom:12px; }
.diagnosis-check strong,.diagnosis-check small { display:block; }
.diagnosis-check strong { margin-bottom:7px; }
.diagnosis-check small { color:var(--muted); line-height:1.55; }
.checklist-table td:nth-child(2),.checklist-table td:nth-child(3) { min-width:260px; line-height:1.65; }
.checklist-table td:nth-child(4) { min-width:180px; }
.checklist-table td:nth-child(4) small { margin-top:9px; }
.confirmation-dialog .instruction-list { margin:0 0 22px; }
.diagnosis-next-action { margin-top:18px; padding:18px; border:1px solid #f0d998; border-radius:9px; background:#fffaf0; }
.diagnosis-next-action h3 { margin:0 0 9px; font-size:13px; }
.diagnosis-next-action p { margin:0; line-height:1.65; }
.diagnosis-next-action p+p { margin-top:9px; }
.diagnostic-summary-grid { margin-bottom:18px; }
.diagnostic-summary-grid small { display:block; margin-bottom:9px; }
.diagnostic-summary-grid strong { display:block; line-height:1.45; }

/* Fase 8.1.39: catálogo documental de fontes empresariais. */
.source-catalog-lead { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr); gap:28px; align-items:start; }
.source-catalog-lead h2 { margin:13px 0 9px; }
.source-catalog-lead p { line-height:1.7; }
.source-catalog-lead .instruction-list { margin:0; }
.source-recommendation-grid,.source-capacity { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.source-recommendation-grid>div,.source-capacity>div { min-width:0; padding:17px; border:1px solid var(--line); border-radius:10px; background:#fafbfc; }
.source-recommendation-grid small,.source-recommendation-grid strong,.source-recommendation-grid span,
.source-capacity small,.source-capacity strong,.source-capacity span { display:block; }
.source-recommendation-grid small,.source-capacity small { margin-bottom:8px; color:var(--muted); font-size:9px; letter-spacing:.5px; text-transform:uppercase; }
.source-recommendation-grid strong,.source-capacity strong { margin-bottom:8px; line-height:1.4; }
.source-recommendation-grid span,.source-capacity span { color:var(--muted); line-height:1.6; }
.source-recommendation .alert { margin-top:18px; }
.source-catalog-filters { align-items:end; margin-bottom:22px; padding:16px; border:1px solid var(--line); border-radius:10px; background:#fafbfc; }
.source-catalog-filters>div { display:grid; flex:1 1 180px; gap:7px; min-width:0; }
.source-catalog-filters label { color:var(--muted); font-size:10px; font-weight:650; }
.source-catalog-filters select { width:100%; min-width:0; }
.source-candidate-list { display:grid; gap:18px; }
.source-candidate-card { min-width:0; padding:20px; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:0 5px 20px #24324a0a; }
.source-candidate-card>header { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; padding-bottom:17px; border-bottom:1px solid var(--line); }
.source-candidate-card h3 { margin:10px 0 6px; font-size:17px; }
.source-candidate-card header p { margin:0; color:var(--muted); line-height:1.5; }
.source-score { display:flex; min-width:70px; align-items:baseline; justify-content:center; padding:13px; border-radius:12px; color:var(--blue); background:var(--blue-soft); }
.source-score strong { font-size:23px; }
.source-score span { font-size:10px; }
.source-rationale { margin:17px 0; line-height:1.7; }
.source-matrix { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; overflow:hidden; border:1px solid var(--line); border-radius:10px; background:var(--line); }
.source-matrix>div { min-width:0; padding:15px; background:#fff; }
.source-matrix dt { margin-bottom:7px; color:var(--muted); font-size:9px; font-weight:700; letter-spacing:.45px; text-transform:uppercase; }
.source-matrix dd { margin:0; overflow-wrap:anywhere; line-height:1.6; }
.source-score-details { margin-top:15px; padding:13px 15px; border:1px solid var(--line); border-radius:9px; background:#fafbfc; }
.source-score-details summary { cursor:pointer; font-weight:700; }
.source-score-details>div { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:9px; margin-top:13px; }
.source-score-details span { display:flex; justify-content:space-between; gap:7px; padding:9px; border-radius:7px; background:#fff; font-size:10px; }
.source-documents { display:flex; flex-wrap:wrap; gap:9px 16px; margin-top:16px; align-items:center; }
.source-documents>strong { width:100%; }
.source-documents a { overflow-wrap:anywhere; color:var(--blue); font-weight:650; }
.source-architecture { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:0 0 20px; padding:0; list-style:none; }
.source-architecture li { display:grid; gap:8px; min-width:0; padding:17px; border:1px solid var(--line); border-radius:10px; background:#fafbfc; }
.source-architecture span { color:var(--muted); line-height:1.6; }
.source-selection-checklist { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.source-selection-checklist>div { display:grid; gap:8px; min-width:0; padding:17px; border:1px solid var(--line); border-radius:10px; background:#fafbfc; }
.source-selection-checklist span { color:var(--muted); line-height:1.6; }
.source-gates .blocker-grid { margin-top:17px; }

/* Fase 8.1.40: decisão administrativa e especificação offline do CNPJ. */
.strategy-lead { display:grid; grid-template-columns:minmax(0,1fr) minmax(320px,.9fr); gap:26px; }
.strategy-lead h2 { margin:13px 0 9px; }
.strategy-option-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.strategy-option-grid article { min-width:0; padding:18px; border:1px solid var(--line); border-radius:11px; background:#fafbfc; }
.strategy-option-grid h3 { margin:0 0 16px; font-size:15px; line-height:1.4; }
.strategy-option-grid dl { margin:0; }
.strategy-option-grid dt { margin-top:13px; color:var(--muted); font-size:9px; font-weight:700; letter-spacing:.45px; text-transform:uppercase; }
.strategy-option-grid dd { margin:6px 0 0; overflow-wrap:anywhere; line-height:1.55; }
.strategy-choice-fieldset { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:0 0 22px; padding:0; border:0; }
.strategy-choice-fieldset legend { width:100%; margin-bottom:10px; font-weight:700; }
.strategy-choice-fieldset label { display:flex; gap:11px; min-width:0; padding:16px; border:1px solid var(--line); border-radius:10px; background:#fafbfc; cursor:pointer; }
.strategy-choice-fieldset label:has(input:checked) { border-color:var(--blue); box-shadow:0 0 0 2px var(--blue-soft); background:#fff; }
.strategy-choice-fieldset input { flex:0 0 auto; margin-top:3px; }
.strategy-choice-fieldset span,.strategy-choice-fieldset strong,.strategy-choice-fieldset small { display:block; }
.strategy-choice-fieldset small { margin-top:8px; overflow-wrap:anywhere; color:var(--muted); line-height:1.45; }
.strategy-process-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:20px; }
.strategy-process-grid>div { display:grid; gap:8px; min-width:0; padding:16px; border:1px solid var(--line); border-radius:10px; background:#fafbfc; }
.strategy-process-grid span,.strategy-note { color:var(--muted); line-height:1.6; }
.strategy-note { margin:18px 0 0; padding:16px; border-left:3px solid var(--blue); background:var(--blue-soft); }
.field-policy-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.field-policy-grid>div { display:grid; gap:7px; min-width:0; padding:16px; border:1px solid var(--line); border-radius:10px; }
.field-policy-grid small { font-size:9px; font-weight:750; letter-spacing:.5px; text-transform:uppercase; }
.field-policy-grid span { color:var(--muted); line-height:1.55; }
.field-policy-grid .policy-required { border-color:#a9d6bf; background:#f4fbf7; }
.field-policy-grid .policy-required small { color:#17643e; }
.field-policy-grid .policy-rejected { border-color:#ebc0c0; background:#fff7f7; }
.field-policy-grid .policy-rejected small { color:#9e2525; }
.field-policy-grid .policy-optional { background:#fafbfc; }
.contract-requirement-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.contract-requirement-grid>div { display:grid; gap:9px; min-width:0; padding:16px; border:1px solid var(--line); border-radius:10px; background:#fafbfc; }
.contract-requirement-grid .badge { width:fit-content; }
.contract-requirement-grid small { color:var(--muted); line-height:1.55; }
.storage-layout-grid,.minimization-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:18px 0; }
.storage-layout-grid>div,.minimization-grid>div { display:grid; gap:8px; min-width:0; padding:16px; border:1px solid var(--line); border-radius:10px; background:#fafbfc; }
.storage-layout-grid code { width:fit-content; max-width:100%; overflow-wrap:anywhere; color:var(--blue); }
.storage-layout-grid span,.minimization-grid span { color:var(--muted); line-height:1.55; }
.minimization-grid .allowed { border-color:#a9d6bf; background:#f4fbf7; }
.minimization-grid .rejected { border-color:#ebc0c0; background:#fff7f7; }

/* Fase 8.1.44: transferência mínima, atualização cadastral e descarte assistido. */
dialog.confirmation-dialog { width:min(560px,calc(100vw - 32px)); max-height:calc(100vh - 40px); overflow:auto; padding:24px; border:0; border-radius:14px; background:#fff; box-shadow:0 24px 80px #0005; color:var(--ink); }
dialog.confirmation-dialog h2 { margin:0 0 12px; font-size:19px; }
dialog.confirmation-dialog p { margin:0 0 18px; line-height:1.65; }
.operation-result-dialog.operation-result-error { border-top:4px solid var(--red); }
.operation-result-dialog:not(.operation-result-error) { border-top:4px solid var(--green); }
.capacity-snapshot span { display:block; margin-top:8px; color:var(--muted); font-size:10px; line-height:1.45; }
.capacity-note { margin-top:14px!important; padding:12px 14px; border-radius:8px; background:#f7f9fc; line-height:1.55!important; }
.transfer-attempt-list { display:grid; gap:12px; }
.transfer-attempt-list article { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; min-width:0; padding:16px; border:1px solid var(--line); border-radius:10px; background:#fafbfc; }
.transfer-attempt-list small,.transfer-attempt-list strong { display:block; }
.transfer-attempt-list small { margin-bottom:7px; color:var(--muted); }
.transfer-attempt-list code { overflow-wrap:anywhere; }
.status-policy-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.status-policy-grid>div { display:grid; gap:8px; min-width:0; padding:16px; border:1px solid var(--line); border-radius:10px; background:#fafbfc; }
.status-policy-grid>div.allowed { border-color:#a9d6bf; background:#f4fbf7; }
.status-policy-grid span { color:var(--muted); line-height:1.6; }
.go-live-backup-progress { display:grid; gap:8px; margin-top:16px; }
.go-live-backup-progress span,.go-live-backup-progress small { display:block; }
.go-live-backup-progress progress { width:100%; height:10px; overflow:hidden; border:0; border-radius:999px; accent-color:var(--blue); }

.contact-operation-center { display:grid; gap:22px; }
.contact-operation-center .section-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.contact-operation-center .section-heading h2 { margin-top:10px; }
.contact-operation-progress { display:grid; gap:12px; padding:18px; border:1px solid #d9e4f5; border-radius:14px; background:linear-gradient(135deg,#f8fbff,#f3f7ff); }
.contact-progress-copy { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; }
.contact-progress-copy div { min-width:0; }
.contact-progress-copy strong,.contact-progress-copy span { display:block; }
.contact-progress-copy span { margin-top:4px; color:var(--muted); font-size:13px; }
.contact-progress-copy>strong { color:var(--blue); font-size:20px; white-space:nowrap; }
.contact-operation-progress progress { width:100%; height:12px; overflow:hidden; border:0; border-radius:999px; accent-color:var(--blue); }
.contact-progress-meta { display:flex; flex-wrap:wrap; gap:8px 20px; color:var(--muted); font-size:12px; }
.contact-quality-funnel { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.contact-quality-funnel article { min-width:0; padding:16px; border:1px solid var(--border); border-radius:14px; background:var(--surface-soft,#f8faff); }
.contact-quality-funnel article > div:first-child { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.contact-quality-funnel article strong,.contact-quality-funnel article span,.contact-quality-funnel article small { overflow-wrap:anywhere; }
.contact-quality-funnel article span,.contact-quality-funnel article small { color:var(--muted); }
.contact-quality-funnel article small { display:block; margin-top:9px; line-height:1.45; }
.contact-quality-track { height:8px; margin-top:12px; overflow:hidden; border-radius:999px; background:#e7edf7; }
.contact-quality-track span { display:block; height:100%; min-width:0; border-radius:inherit; background:linear-gradient(90deg,#2768e8,#39a4ff); }
.compact-top { margin-top:16px; }
.contact-curation-filter { margin-top:0; box-shadow:none; }
.contact-query-summary { display:flex; flex-wrap:wrap; gap:10px 20px; margin:16px 0; padding:13px 15px; border:1px solid #d9e4f5; border-radius:12px; color:var(--muted); background:#f8fbff; font-size:12px; }
.contact-cursor-actions { justify-content:flex-end; margin-top:12px; }
.contact-update-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.contact-update-card { display:grid; grid-template-columns:auto minmax(0,1fr); gap:13px; align-items:start; min-width:0; padding:18px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.contact-update-card .step-number { display:grid; place-items:center; width:30px; height:30px; border-radius:9px; color:#fff; background:var(--blue); font-weight:750; }
.contact-update-card h3 { margin:2px 0 8px; font-size:15px; line-height:1.35; }
.contact-update-card p { min-height:60px; margin:0 0 14px; color:var(--muted); font-size:12px; line-height:1.55; }
.contact-update-card form { display:grid; gap:12px; }
.contact-inline-action { display:grid; gap:8px; min-width:180px; }
.contact-inline-action label { display:grid; gap:5px; font-size:11px; color:var(--muted); }
.contact-inline-action select { width:100%; min-width:0; }
.contact-selection-create { margin-top:18px; border:1px solid var(--line); border-radius:14px; background:var(--surface-soft,#f8faff); }
.contact-selection-create > summary { padding:16px 18px; cursor:pointer; font-weight:750; }
.contact-selection-create .form-panel { margin:0; border:0; border-top:1px solid var(--line); border-radius:0 0 14px 14px; box-shadow:none; }
.contact-curation-list { display:grid; gap:14px; margin-top:18px; }
.contact-curation-list article { min-width:0; padding:18px; border:1px solid var(--line); border-radius:14px; background:var(--surface-soft,#f8faff); }
.contact-curation-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.contact-curation-heading div { display:grid; gap:4px; min-width:0; }
.contact-curation-heading strong,.contact-curation-heading small { overflow-wrap:anywhere; }
.contact-enrichment-form { display:grid; grid-template-columns:minmax(220px,2fr) minmax(180px,1fr); gap:12px; align-items:end; margin-top:14px; }
.contact-enrichment-form .checkbox-row { grid-column:1/-1; display:flex; align-items:flex-start; gap:9px; }
.contact-enrichment-form button { justify-self:start; }
.contact-review-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
.contact-dkim-form { margin-top:18px; box-shadow:none; }
.email-test-gates > div { min-height:104px; }
.email-test-form { box-shadow:none; padding:0; margin:0; }
.email-test-receipt { margin-top:10px; }
.email-test-receipt summary { cursor:pointer; color:var(--primary); font-weight:700; }
.email-test-receipt .form-panel { margin-top:12px; min-width:min(680px,80vw); }
.field-help { display:grid; align-content:center; gap:5px; min-height:64px; padding:12px 14px; border:1px solid var(--line); border-radius:11px; background:#fff; }
.field-help span { color:var(--muted); font-size:12px; line-height:1.45; }
.contact-operation-form summary { cursor:pointer; color:var(--blue); font-weight:700; line-height:1.4; }
.contact-operation-form[open] summary { margin-bottom:14px; }
.contact-operation-form label { display:grid; gap:6px; color:var(--muted); font-size:12px; font-weight:650; }
.contact-operation-form input,.contact-operation-form textarea { width:100%; min-width:0; }

@media (max-width:1100px) {
  .contact-update-actions { grid-template-columns:1fr; }
  .contact-update-card p { min-height:0; }
  .contact-enrichment-form { grid-template-columns:1fr; }
}
@media (max-width:640px) {
  .contact-operation-center .section-heading,.contact-progress-copy { flex-direction:column; }
  .contact-operation-center .section-heading .button { width:100%; }
  .contact-progress-meta { display:grid; gap:7px; }
  .contact-update-card { grid-template-columns:1fr; }
}
.backup-reference { display:block; max-width:24rem; overflow-wrap:anywhere; white-space:normal; }
.backup-deletion-form { display:grid; gap:12px; min-width:min(28rem,75vw); margin-top:12px; padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--bg); }
.backup-deletion-form label { display:grid; gap:6px; }
.backup-coverage-grid dd { margin-top:8px; }
.backup-coverage-grid dd + dd { color:var(--muted); font-size:13px; line-height:1.45; }
.recovery-download-panel .panel-header { align-items:flex-start; gap:18px; }
.download-summary { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.download-summary span { padding:7px 10px; border:1px solid #dce5f4; border-radius:999px; color:var(--muted); background:#f8faff; font-size:10px; white-space:nowrap; }
.download-summary strong { color:var(--ink); }
.recovery-download-layout { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(260px,.8fr); gap:16px; align-items:stretch; }
.recovery-download-form,.recovery-download-guide { min-width:0; padding:20px; border:1px solid var(--line); border-radius:14px; }
.recovery-download-form { display:grid; gap:15px; background:#f8faff; }
.recovery-download-guide { color:#fff; background:linear-gradient(145deg,#172238,#101827); }
.download-form-heading { display:flex; align-items:flex-start; gap:12px; }
.download-form-heading>span { display:grid; place-items:center; width:30px; height:30px; flex:none; border-radius:9px; color:#fff; background:var(--blue); box-shadow:0 5px 14px #2563eb30; font-size:12px; font-weight:800; }
.download-form-heading h3 { margin:1px 0 5px; font-size:14px; }
.download-form-heading p { line-height:1.45; }
.recovery-download-form label { display:grid; align-content:start; gap:7px; min-width:0; color:#445069; font-size:11px; font-weight:650; }
.recovery-download-form input,.recovery-download-form select,.recovery-download-form textarea { width:100%; min-width:0; padding:11px 12px; border:1px solid #d5ddea; border-radius:8px; color:var(--ink); background:#fff; outline:none; }
.recovery-download-form input:focus,.recovery-download-form select:focus,.recovery-download-form textarea:focus { border-color:#79a4ef; box-shadow:0 0 0 3px #2563eb12; }
.recovery-download-form textarea { min-height:82px; resize:vertical; }
.download-file-field select { font-weight:600; }
.download-credential-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.confirmation-hint { margin:-7px 0 0!important; font-size:10px!important; line-height:1.5; }
.confirmation-hint code { overflow-wrap:anywhere; color:#174fc8; }
.download-form-action { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.download-form-action small { color:var(--muted); font-size:10px; line-height:1.45; }
.recovery-download-guide .download-form-heading>span { color:#1a3d76; background:#fff; box-shadow:none; }
.recovery-download-guide .download-form-heading p { color:#aebbd0; }
.recovery-download-guide ol { margin:22px 0; padding-left:22px; color:#d2daea; font-size:11px; line-height:1.75; }
.download-safety-note { display:grid; gap:5px; padding:13px 0; border-top:1px solid #ffffff1f; }
.download-safety-note strong { font-size:11px; }
.download-safety-note span { color:#aebbd0; font-size:10px; line-height:1.5; }
.download-ready { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 0 16px; padding:15px 16px; border:1px solid #8fd5b7; border-radius:12px; background:#effaf5; }
.download-ready>div { display:flex; align-items:center; gap:11px; min-width:0; }
.download-ready-icon { display:grid; place-items:center; width:30px; height:30px; flex:none; border-radius:50%; color:#fff; background:var(--green); font-weight:800; }
.download-ready p { margin:4px 0 0; color:var(--muted); }
.recovery-download-inventory { margin-top:16px; padding-top:14px; border-top:1px solid var(--line); }
.recovery-download-inventory>summary { display:flex; align-items:center; justify-content:space-between; gap:12px; color:var(--blue); cursor:pointer; font-weight:700; }
.recovery-download-inventory>summary small { color:var(--muted); font-size:10px; font-weight:500; }
.recovery-download-inventory .table-wrap { margin:14px -22px -22px; }
.database-size-comparison { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) minmax(0,1fr); gap:12px; align-items:center; }
.database-size-comparison article { min-width:0; padding:17px; border:1px solid var(--line); border-radius:11px; background:#f8faff; }
.database-size-comparison span,.database-size-comparison strong,.database-size-comparison small { display:block; }
.database-size-comparison span { color:var(--muted); font-size:10px; }
.database-size-comparison strong { margin:6px 0; font-size:20px; }
.database-size-comparison small { color:var(--muted); font-size:9px; line-height:1.4; }
.size-comparison-arrow { color:var(--blue)!important; font-size:20px!important; font-weight:800; }
.backup-size-explanation { margin-top:14px; padding:16px; border:1px solid #bfd6f5; border-radius:10px; background:#eff6ff; }
.backup-size-explanation strong { display:block; margin-bottom:6px; color:#174f8f; font-size:12px; }
.backup-size-explanation p { color:#365a84; line-height:1.6; }
.database-relations-table { margin:16px -22px -22px; }
.database-relations-table td strong { white-space:nowrap; }
@media (max-width:1050px) {
  .recovery-download-panel .panel-header { flex-direction:column; }
  .download-summary { justify-content:flex-start; }
  .recovery-download-layout { grid-template-columns:1fr; }
  .database-size-comparison { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .size-comparison-arrow { display:none!important; }
}
@media (max-width:760px) {
  .contact-quality-funnel { grid-template-columns:1fr; }
  .contact-quality-funnel article > div:first-child { display:grid; }
  .download-summary { width:100%; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .download-summary span { min-width:0; padding-inline:6px; text-align:center; white-space:normal; }
  .recovery-download-form,.recovery-download-guide { padding:16px; }
  .download-credential-grid,.database-size-comparison { grid-template-columns:1fr; }
  .download-form-action { align-items:stretch; flex-direction:column; }
  .download-form-action .button,.download-ready .button { width:100%; white-space:normal; text-align:center; }
  .download-ready { align-items:stretch; flex-direction:column; }
  .recovery-download-inventory>summary { align-items:flex-start; flex-direction:column; }
  .database-relations-table { margin-inline:-22px; }
}

@media (max-width:760px) {
  .sidebar { position:fixed; inset:0 auto 0 0; width:min(310px,86vw); padding:20px 14px; z-index:910; transform:translateX(-105%); transition:transform .2s ease; box-shadow:14px 0 35px #07101f55; }
  .mobile-navigation-open .sidebar { transform:translateX(0); }
  .sidebar .brand span:last-child,.sidebar nav span,.nav-label,.sidebar-footer { display:block; }
  .sidebar nav { min-height:0; padding-bottom:18px; }
  .sidebar nav a { justify-content:flex-start; }
  .main-column { width:100%; margin:0; }
  .mobile-navigation-toggle { display:grid; place-items:center; width:42px; height:42px; flex:0 0 42px; padding:0; border:1px solid var(--line); border-radius:8px; color:var(--ink); background:#fff; cursor:pointer; font-size:22px; }
  .mobile-navigation-backdrop { position:fixed; inset:0; z-index:900; display:block; width:100%; height:100%; padding:0; border:0; background:#07101f80; }
  .topbar { position:sticky; top:0; z-index:50; }
  .panel>.table-wrap { max-width:calc(100vw - 20px); }
  .connector-table td { min-width:150px; }
  .connector-table td:nth-child(3) { min-width:220px; }
  .diagnosis-check-grid { grid-template-columns:1fr; }
  .panel>.documentary-scroll { width:100%; max-width:100%; margin:0; }
  .contract-flow,.policy-grid,.preparation-grid,.preparation-security-grid,.document-link-list { grid-template-columns:1fr; }
  .source-catalog-lead,.source-recommendation-grid,.source-matrix,.source-architecture,.source-capacity,.source-selection-checklist { grid-template-columns:1fr; }
  .source-candidate-card { padding:16px; }
  .source-candidate-card>header { align-items:stretch; flex-direction:column; }
  .source-score { width:fit-content; }
  .source-score-details>div { grid-template-columns:1fr; }
  .strategy-lead,.strategy-option-grid,.strategy-choice-fieldset,.strategy-process-grid,.field-policy-grid,.contract-requirement-grid,.storage-layout-grid,.minimization-grid,.status-policy-grid,.transfer-attempt-list article { grid-template-columns:1fr; }
}
