:root {
  --canvas: #f6f4f1;
  --paper: #fffdfa;
  --white: #ffffff;
  --ink: #17130f;
  --ink-2: #2b231d;
  --muted: #716a63;
  --muted-2: #9c948c;
  --line: #e4ddd5;
  --coral: #e42320;
  --coral-deep: #b81b19;
  --coral-soft: #fff0ed;
  --green: #1e7a4d;
  --green-soft: #e8f5ed;
  --blue: #315f8c;
  --blue-soft: #eaf2fa;
  --amber: #a8640d;
  --amber-soft: #fff4dc;
  --shadow: 0 12px 35px rgba(38, 30, 23, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.eyebrow { display: block; margin-bottom: 7px; color: var(--coral); font-size: 11px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow.light { color: #ff8984; }
.button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border: 0; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 780; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: #fff; background: var(--coral); }
.button.primary:hover { background: var(--coral-deep); }
.button.dark { color: #fff; background: var(--ink); }
.button.light { color: var(--ink); background: #fff; }
.button.outline { border: 1px solid var(--line); background: #fff; }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.full-button { width: 100%; }

/* Login */
.login-body { min-height: 100vh; background: #100d0b; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(420px, .7fr); }
.login-story { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(34px, 6vw, 82px); color: #fff; overflow: hidden; background: radial-gradient(circle at 15% 15%, rgba(228,35,32,.28), transparent 26%), radial-gradient(circle at 92% 82%, rgba(228,35,32,.16), transparent 30%), linear-gradient(145deg, #211a15, #100d0b 72%); }
.login-story::after { position: absolute; right: -7vw; bottom: -12vw; width: 38vw; height: 38vw; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; box-shadow: 0 0 0 6vw rgba(255,255,255,.018), 0 0 0 12vw rgba(255,255,255,.012); content: ""; }
.login-brand, .installer-brand, .sidebar-brand { display: flex; align-items: center; gap: 12px; }
.brand-symbol { width: 43px; height: 43px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: #fff; background: var(--coral); font-size: 24px; font-weight: 900; box-shadow: 0 8px 24px rgba(228,35,32,.28); }
.login-brand > span:last-child, .installer-brand > span:last-child, .sidebar-brand > span:nth-child(2) { display: flex; flex-direction: column; }
.login-brand strong, .installer-brand strong, .sidebar-brand strong { font-size: 16px; letter-spacing: .12em; }
.login-brand small, .installer-brand small, .sidebar-brand small { margin-top: 2px; color: #bdb5ad; font-size: 9px; letter-spacing: .11em; }
.login-story h1 { max-width: 750px; margin: 0; font-family: "Arial Narrow", Arial, sans-serif; font-size: clamp(48px, 6vw, 86px); line-height: .96; letter-spacing: -.045em; text-transform: uppercase; }
.login-story p { max-width: 640px; margin: 25px 0 0; color: #d1c9c1; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.7; }
.login-proof { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px 25px; color: #cfc6be; font-size: 12px; }
.login-card { align-self: center; width: min(480px, calc(100% - 50px)); margin: 25px auto; padding: clamp(30px, 5vw, 54px); border-radius: 20px; background: #fff; box-shadow: 0 28px 90px rgba(0,0,0,.25); }
.mode-badge { display: inline-flex; margin-bottom: 28px; padding: 7px 10px; border-radius: 6px; color: var(--coral-deep); background: var(--coral-soft); font-size: 10px; font-weight: 850; letter-spacing: .09em; }
.mode-badge.live { color: var(--green); background: var(--green-soft); }
.login-card h2 { margin: 0; font-size: 29px; line-height: 1.08; }
.login-card > p { margin: 13px 0 28px; color: var(--muted); line-height: 1.55; }
.login-form label { display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); font-size: 12px; font-weight: 760; }
.login-form input { width: 100%; height: 48px; margin-bottom: 16px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: #fbfaf8; }
.login-form input:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(228,35,32,.1); }
.login-note { display: block; margin-top: 24px; color: var(--muted-2); font-size: 10px; line-height: 1.55; text-align: center; }
.login-error, .install-errors { margin-bottom: 18px; padding: 12px 14px; border: 1px solid #f2b5b0; border-radius: 9px; color: #8f1a17; background: #fff2f0; font-size: 12px; }

/* Installer */
.installer-body { min-height: 100vh; padding: 32px 18px; background: radial-gradient(circle at 10% 0%, rgba(228,35,32,.15), transparent 23%), var(--canvas); }
.installer-shell { width: min(930px, 100%); margin: 0 auto; }
.installer-brand { margin-bottom: 22px; }
.installer-brand strong { color: var(--ink); }
.installer-brand small { color: var(--muted); }
.installer-card { padding: clamp(25px, 5vw, 54px); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.installer-heading { max-width: 690px; }
.installer-heading h1 { margin: 0; font-family: "Arial Narrow", Arial, sans-serif; font-size: clamp(36px, 5vw, 58px); line-height: .97; letter-spacing: -.035em; text-transform: uppercase; }
.installer-heading p { margin: 18px 0 28px; color: var(--muted); line-height: 1.7; }
.requirements-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 26px 0 34px; }
.requirement { min-height: 43px; display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fbfaf8; font-size: 12px; }
.requirement span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 900; }
.requirement.passed span { color: var(--green); background: var(--green-soft); }
.requirement.failed span { color: var(--coral); background: var(--coral-soft); }
.installer-form fieldset { margin: 0 0 28px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; }
.installer-form legend { padding: 0 8px; font-size: 14px; font-weight: 850; }
.form-grid { display: grid; gap: 16px; }
.form-grid.two-columns { grid-template-columns: repeat(2, 1fr); }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid label { display: flex; flex-direction: column; gap: 7px; color: var(--ink-2); font-size: 11px; font-weight: 780; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; outline: none; background: #fcfbfa; resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(228,35,32,.08); }
.form-grid label small, .field-note { margin: 0; color: var(--muted-2); font-size: 10px; font-weight: 500; line-height: 1.5; }
.installer-warning { display: flex; gap: 15px; margin: 0 0 22px; padding: 17px; border-left: 4px solid var(--amber); border-radius: 8px; background: var(--amber-soft); }
.installer-warning strong { flex: 0 0 auto; }
.installer-warning p { margin: 0; color: #745220; font-size: 12px; line-height: 1.55; }
.install-errors ul { margin: 8px 0 0; padding-left: 18px; }
.install-result { display: flex; gap: 16px; margin: 28px 0 20px; padding: 20px; border-radius: 12px; }
.install-result > span { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; font-size: 18px; font-weight: 900; }
.install-result p { margin: 6px 0 0; line-height: 1.55; }
.success-result { color: #145837; background: var(--green-soft); }
.success-result > span { background: #ccead9; }
.neutral-result { background: #f0ece7; }
.neutral-result > span { background: #ded6ce; }
.installer-footer { padding: 24px 0 0; color: var(--muted); font-size: 11px; text-align: center; }

/* App shell */
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 250px; display: flex; flex-direction: column; padding: 25px 17px 19px; color: #e9e4df; background: radial-gradient(circle at 18% 10%, rgba(228,35,32,.22), transparent 24%), linear-gradient(180deg, #1d1814 0%, #17130f 62%, #100d0b 100%); }
.sidebar-brand { min-height: 56px; padding: 0 8px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-brand .brand-symbol { width: 37px; height: 37px; border-radius: 10px; font-size: 20px; }
.sidebar-brand strong { font-size: 13px; }
.sidebar-brand small { font-size: 8px; }
.sidebar-brand > button { display: none; margin-left: auto; border: 0; color: #fff; background: transparent; font-size: 25px; cursor: pointer; }
.nav-group { margin-top: 23px; }
.nav-group > p { margin: 0 10px 7px; color: #8f877f; font-size: 8px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.nav-link { min-height: 40px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 5px; padding: 0 10px; border-radius: 9px; color: #cfc8c1; font-size: 11px; font-weight: 600; transition: .15s ease; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-link.active { color: #fff; background: linear-gradient(90deg, rgba(228,35,32,.25), rgba(228,35,32,.08)); box-shadow: inset 3px 0 var(--coral); }
.nav-icon { width: 24px; height: 24px; display: grid; place-items: center; color: #afa69e; font-size: 13px; }
.nav-link.active .nav-icon { color: #ff7772; }
.nav-link b { min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; color: #fff; background: var(--coral); font-size: 8px; }
.sidebar-bottom { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.hub-status { display: flex; align-items: center; gap: 10px; padding: 10px; }
.hub-status > span { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(168,100,13,.15); }
.hub-status > div { display: flex; flex-direction: column; }
.hub-status strong { font-size: 9px; }
.hub-status small { margin-top: 2px; color: #8f877f; font-size: 8px; }
.sidebar-bottom > a { display: flex; flex-direction: column; gap: 3px; padding: 10px; color: #aaa199; font-size: 9px; }
.sidebar-bottom > a strong { color: #ff7d78; }
.main-column { min-height: 100vh; margin-left: 250px; }
.topbar { position: sticky; z-index: 20; top: 0; height: 72px; display: flex; align-items: center; gap: 15px; padding: 0 24px; border-bottom: 1px solid var(--line); background: rgba(246,244,241,.94); backdrop-filter: blur(12px); }
.menu-button { width: 38px; height: 38px; display: none; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; }
.company-selector { min-width: 310px; display: flex; align-items: center; gap: 10px; }
.company-avatar, .avatar { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #f4c9c4; border-radius: 11px; color: var(--coral-deep); background: var(--coral-soft); font-size: 11px; font-weight: 850; }
.company-selector label { min-width: 0; display: flex; flex-direction: column; }
.company-selector select { max-width: 280px; padding: 0 22px 0 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; font-weight: 780; text-overflow: ellipsis; }
.company-selector small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search-button, .top-upload, .notification-button, .user-button { height: 39px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; }
.search-button { min-width: 190px; padding: 0 13px; color: var(--muted); text-align: left; font-size: 9px; }
.search-button span { margin-left: 7px; }
.top-upload { padding: 0 13px; color: #fff; border-color: var(--coral); background: var(--coral); font-size: 9px; font-weight: 800; }
.notification-button { position: relative; width: 39px; color: var(--muted); font-size: 10px; }
.notification-button b { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; display: grid; place-items: center; border: 2px solid var(--canvas); border-radius: 50%; color: #fff; background: var(--coral); font-size: 7px; }
.top-actions form { margin: 0; }
.user-button { min-width: 160px; display: grid; grid-template-columns: 29px 1fr auto; align-items: center; gap: 8px; padding: 0 9px; color: #fff; border-color: var(--ink); background: var(--ink); text-align: left; }
.user-button > span:first-child { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: var(--ink); background: #fff; font-size: 8px; font-weight: 850; }
.user-button > span:nth-child(2) { display: flex; flex-direction: column; font-size: 8px; font-weight: 750; }
.user-button small { margin-top: 2px; color: #aaa199; font-size: 7px; }
.user-button b { color: #8f877f; }
.homologation-banner { min-height: 36px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 20px; color: #704912; background: var(--amber-soft); font-size: 10px; }
.homologation-banner strong { padding: 3px 7px; border-radius: 5px; color: #fff; background: var(--amber); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.content-area { width: min(1480px, 100%); margin: 0 auto; padding: 35px 32px 21px; }
.page-heading { min-height: 77px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.page-heading h1 { margin: 0; font-family: "Arial Narrow", Arial, sans-serif; font-size: clamp(31px, 3vw, 44px); font-weight: 900; letter-spacing: -.035em; line-height: .97; text-transform: uppercase; }
.page-heading p { margin: 9px 0 0; color: var(--muted); font-size: 11px; }
.help-link { margin-top: 20px; color: var(--muted); font-size: 10px; font-weight: 700; }
.flash { margin-bottom: 18px; padding: 12px 15px; border: 1px solid #bee0cc; border-radius: 9px; color: #155839; background: var(--green-soft); font-size: 11px; }

/* Layout primitives */
.dashboard-grid, .module-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.full-span { grid-column: 1 / -1; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.panel, .metric-card, .summary-strip, .attention-card, .hero-balance, .capture-hero, .new-request, .company-card, .security-banner, .installment-card, .conversation-panel, .assistant-panel, .plan-card, .integration-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.panel { padding: 21px; }
.panel-heading { min-height: 39px; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.panel-heading h3 { margin: 0; font-size: 15px; }
.panel-heading a, .panel-heading > button:not(.button):not(.icon-button) { border: 0; color: var(--coral-deep); background: transparent; font-size: 9px; font-weight: 780; cursor: pointer; }
.icon-button { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.status-pill { width: fit-content; display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 999px; font-size: 8px; font-weight: 820; white-space: nowrap; }
.status-pill.green { color: var(--green); background: var(--green-soft); }
.status-pill.amber { color: var(--amber); background: var(--amber-soft); }
.status-pill.blue { color: var(--blue); background: var(--blue-soft); }
.status-pill.gray { color: #6d6863; background: #efedea; }
.round-icon { width: 45px; height: 45px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; color: var(--ink); background: #eee9e4; font-size: 18px; font-weight: 850; }
.round-icon.coral { color: var(--coral-deep); background: var(--coral-soft); }

/* Dashboard */
.attention-card { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-color: #f4c9c4; background: linear-gradient(105deg, var(--coral-soft) 0%, #fff 66%); }
.attention-copy { display: flex; align-items: center; gap: 15px; }
.attention-icon { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; color: #fff; background: var(--coral); font-size: 20px; font-weight: 900; box-shadow: 0 8px 18px rgba(228,35,32,.2); }
.attention-copy h2 { margin: 0; font-size: 18px; }
.attention-copy p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.metric-card { min-height: 138px; display: flex; flex-direction: column; padding: 20px; }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 9px; }
.metric-top b { color: var(--coral); }
.metric-card > strong { margin-top: 15px; font-size: clamp(19px, 2vw, 27px); letter-spacing: -.03em; }
.metric-footer { margin-top: auto; padding-top: 12px; color: var(--muted); border-top: 1px solid #eee9e4; font-size: 8px; }
.metric-footer.positive, .green-text { color: var(--green); }
.amber-text { color: var(--amber); }
.blue-text { color: var(--blue); }
.score-line { display: flex; align-items: baseline; gap: 3px; margin-top: 9px; }
.score-line strong { font-size: 28px; }
.score-line > span:not(.status-pill) { color: var(--muted); font-size: 10px; }
.score-line .status-pill { margin-left: auto; }
.task-list, .document-list { margin: 0 -5px; }
.task-row { min-height: 66px; display: grid; grid-template-columns: 54px minmax(0,1fr) auto 12px; align-items: center; gap: 10px; padding: 8px 5px; border-bottom: 1px solid #eee9e4; }
.task-row:last-child { border-bottom: 0; }
.task-row:hover, .document-list button:hover { background: var(--canvas); }
.task-tag { min-height: 29px; display: grid; place-items: center; border-radius: 7px; color: var(--coral-deep); background: var(--coral-soft); font-size: 7px; font-weight: 850; }
.task-row > span:nth-child(2), .calendar-list > span, .document-list button > span, .document-table-row > span:nth-child(2) { display: flex; flex-direction: column; }
.task-row strong { font-size: 10px; }
.task-row small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.task-row > b { color: var(--muted); font-size: 8px; }
.task-row > b.urgent { color: var(--coral); }
.task-row i { color: var(--muted-2); font-style: normal; }
.pulse-score { display: flex; align-items: center; gap: 15px; margin: 6px 0 15px; }
.pulse-ring { width: 65px; height: 65px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 auto; border: 5px solid var(--green); border-radius: 50%; }
.pulse-ring strong { font-size: 14px; }
.pulse-ring small { color: var(--muted); font-size: 7px; }
.pulse-score > div:last-child { display: flex; flex-direction: column; }
.pulse-score > div:last-child strong { font-size: 11px; }
.pulse-score p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.pulse-items > div { min-height: 29px; display: grid; grid-template-columns: 17px 1fr auto; align-items: center; gap: 6px; border-top: 1px solid #f0ece8; }
.pulse-items span, .pulse-items small { color: var(--green); font-size: 8px; }
.pulse-items strong { font-size: 8px; }
.calendar-list { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 0 12px; }
.calendar-list > * { margin-bottom: 11px; }
.date-block { width: 39px; height: 45px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 9px; color: var(--coral-deep); background: var(--coral-soft); }
.date-block strong { font-size: 14px; }
.date-block small { font-size: 6px; font-weight: 850; }
.calendar-list > span > strong { font-size: 9px; }
.calendar-list > span > small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.document-list button { width: 100%; min-height: 56px; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 8px; padding: 5px; border: 0; border-bottom: 1px solid #eee9e4; background: transparent; cursor: pointer; text-align: left; }
.document-list button:last-child { border-bottom: 0; }
.document-list strong { font-size: 9px; }
.document-list small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.file-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: var(--coral-deep); background: var(--coral-soft); font-size: 7px; font-weight: 900; }

/* Tables and modules */
.summary-strip { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; }
.summary-strip > div { min-height: 88px; display: flex; align-items: center; gap: 12px; padding: 17px 22px; border-left: 1px solid var(--line); }
.summary-strip > div:first-child { border-left: 0; }
.summary-number { font-size: 23px; letter-spacing: -.03em; }
.summary-strip > div > span { display: flex; flex-direction: column; }
.summary-strip b { font-size: 9px; }
.summary-strip small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.toolbar { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.segmented { display: flex; padding: 3px; border-radius: 8px; background: #eeeae5; }
.segmented button { min-height: 31px; padding: 0 12px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; font-size: 8px; font-weight: 760; }
.segmented button.active { color: var(--ink); background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.data-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.table-head, .table-row { min-height: 49px; display: grid; align-items: center; gap: 9px; padding: 0 12px; }
.table-head { min-height: 35px; color: #fff; background: var(--ink); font-size: 7px; font-weight: 820; letter-spacing: .05em; text-transform: uppercase; }
.table-row { border-bottom: 1px solid #eee9e4; background: #fff; font-size: 9px; }
.table-row:last-child { border-bottom: 0; }
.table-row:hover { background: var(--canvas); }
.table-row > span { min-width: 0; }
.table-row > span:nth-child(2):has(small) { display: flex; flex-direction: column; }
.table-row small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.obligation-row { grid-template-columns: 75px minmax(260px, 1fr) 120px 110px 10px; }
.guide-row { grid-template-columns: minmax(240px, 1fr) 90px 100px 110px 100px 25px; }
.guide-row button { border: 0; color: var(--coral); background: transparent; cursor: pointer; }
.guide-name { display: flex; align-items: center; gap: 9px; }
.date-chip { width: fit-content; padding: 6px 8px; border-radius: 7px; color: var(--coral-deep); background: var(--coral-soft); font-size: 8px; font-weight: 820; }
.hero-balance, .capture-hero, .plan-card { color: #fff; border: 0; background: radial-gradient(circle at 86% 18%, rgba(228,35,32,.3), transparent 34%), linear-gradient(120deg, var(--ink), #2b231d); }
.hero-balance { min-height: 160px; display: flex; flex-direction: column; padding: 27px; }
.hero-balance > span { color: #cfc8c1; font-size: 9px; }
.hero-balance > strong { margin-top: 10px; font-size: 33px; letter-spacing: -.04em; }
.hero-balance > div { margin-top: auto; display: flex; align-items: center; gap: 10px; }
.hero-balance small { color: #cfc8c1; font-size: 8px; }
.quick-card { display: flex; align-items: center; gap: 13px; }
.quick-card strong { font-size: 11px; }
.quick-card p { margin: 5px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.capture-hero { min-height: 155px; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 28px; }
.capture-live { display: flex; align-items: center; gap: 8px; color: #d7eadd; font-size: 8px; font-weight: 850; letter-spacing: .08em; }
.capture-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(30,122,77,.16); }
.capture-hero h2 { margin: 13px 0 0; font-size: 24px; }
.capture-hero p { margin: 8px 0 0; color: #cfc8c1; font-size: 9px; line-height: 1.6; }
.fiscal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fiscal-doc-card { min-height: 143px; display: flex; flex-direction: column; align-items: flex-start; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; }
.fiscal-doc-card:hover { border-color: #f0b2ad; transform: translateY(-1px); }
.doc-type { padding: 5px 7px; border-radius: 5px; color: var(--coral-deep); background: var(--coral-soft); font-size: 7px; font-weight: 900; }
.fiscal-doc-card small { margin-top: 10px; color: var(--muted); font-size: 8px; }
.fiscal-doc-card strong { margin-top: 4px; font-size: 24px; }
.fiscal-doc-card > span:nth-of-type(3) { margin-top: 2px; color: var(--muted); font-size: 7px; }
.progress { width: 100%; height: 4px; margin-top: auto; overflow: hidden; border-radius: 999px; background: #eee9e4; }
.progress i { height: 100%; display: block; border-radius: inherit; background: var(--coral); }
.progress .p-7 { width: 7%; }
.progress .p-33 { width: 33%; }
.progress .p-34 { width: 34%; }
.progress .p-88 { width: 88%; }
.progress .p-92 { width: 92%; }
.progress .p-96 { width: 96%; }
.progress .p-100 { width: 100%; }
.progress.large { height: 7px; margin-top: 10px; }
.progress.large i { background: var(--green); }
.quality-score { display: flex; align-items: baseline; gap: 3px; margin-top: 14px; }
.quality-score strong { font-size: 42px; }
.quality-score span { color: var(--muted); }
.check-list { margin: 20px 0 0; padding: 0; list-style: none; }
.check-list li { margin-top: 10px; color: var(--green); font-size: 9px; }
.check-list li.warning { color: var(--amber); }
.import-panel, .new-request, .company-card, .security-banner { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.import-panel > div, .new-request > div { display: flex; align-items: center; gap: 13px; }
.import-panel > div > span:last-child, .new-request > div > span:last-child { display: flex; flex-direction: column; }
.import-panel strong, .new-request strong { font-size: 11px; }
.import-panel p, .new-request p { margin: 5px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.payroll-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 15px 0; }
.payroll-summary > div { display: flex; flex-direction: column; padding: 14px; border-radius: 9px; background: var(--canvas); }
.payroll-summary small { color: var(--muted); font-size: 8px; }
.payroll-summary strong { margin-top: 7px; font-size: 17px; }
.action-box { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px; border-radius: 10px; background: var(--coral-soft); }
.action-box > span { display: flex; flex-direction: column; }
.action-box strong { font-size: 10px; }
.action-box small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.value-list > div { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #eee9e4; font-size: 9px; }
.shortcut-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.shortcut-grid button { min-height: 70px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--canvas); cursor: pointer; font-size: 9px; font-weight: 760; }
.folder-grid, .installment-grid, .integration-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.folder-grid button { min-height: 122px; display: flex; flex-direction: column; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); cursor: pointer; text-align: left; }
.folder-grid button > span { color: var(--coral); font-size: 7px; font-weight: 850; letter-spacing: .09em; }
.folder-grid button strong { margin-top: 28px; font-size: 10px; }
.folder-grid button small { margin-top: 5px; color: var(--muted); font-size: 8px; }
.document-table-row { min-height: 58px; display: grid; grid-template-columns: 36px minmax(0,1fr) 130px 70px 25px; align-items: center; gap: 10px; border-top: 1px solid #eee9e4; }
.document-table-row strong { font-size: 9px; }
.document-table-row small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.document-table-row > span:nth-child(3), .document-table-row > span:nth-child(4) { color: var(--muted); font-size: 8px; }
.document-table-row button { border: 0; color: var(--coral); background: transparent; cursor: pointer; }
.installment-grid { grid-template-columns: repeat(3, 1fr); }
.installment-card { min-height: 230px; padding: 20px; }
.installment-card > div:first-child { display: flex; justify-content: space-between; align-items: flex-start; }
.installment-card h3 { margin: 20px 0 10px; font-size: 14px; }
.installment-card > strong { font-size: 23px; }
.installment-card > strong small { color: var(--muted); font-size: 8px; font-weight: 500; }
.installment-card p { color: var(--muted); font-size: 8px; }
.installment-card > button { width: 100%; margin-top: 18px; padding: 12px 0 0; border: 0; border-top: 1px solid #eee9e4; color: var(--coral-deep); background: transparent; cursor: pointer; font-size: 9px; font-weight: 800; text-align: left; }
.request-row { min-height: 58px; display: grid; grid-template-columns: 50px minmax(230px,1fr) 130px 100px 90px 10px; align-items: center; gap: 9px; border-top: 1px solid #eee9e4; }
.request-row > strong { color: var(--coral); font-size: 8px; }
.request-row > span:nth-child(2) { display: flex; flex-direction: column; }
.request-row b { font-size: 9px; }
.request-row small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.request-form-card { scroll-margin-top: 110px; }
.request-form .button { margin-top: 16px; }

/* Service, billing, company, integrations */
.service-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .8fr); gap: 16px; min-height: 610px; }
.conversation-panel { display: flex; flex-direction: column; overflow: hidden; }
.conversation-head { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.conversation-head > div { display: flex; align-items: center; gap: 10px; }
.conversation-head > div > span:last-child { display: flex; flex-direction: column; }
.conversation-head strong { font-size: 10px; }
.conversation-head small { display: flex; align-items: center; gap: 5px; margin-top: 4px; color: var(--muted); font-size: 8px; }
.conversation-head small i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.messages { flex: 1; padding: 22px; background: linear-gradient(rgba(246,244,241,.92),rgba(246,244,241,.92)), radial-gradient(circle at 20% 10%, #e1d9d0 1px, transparent 1px); background-size: auto, 15px 15px; }
.day-separator { display: block; width: fit-content; margin: 0 auto 18px; padding: 5px 11px; border-radius: 20px; color: var(--muted); background: #e8e2dc; font-size: 8px; }
.message { width: fit-content; max-width: 68%; margin-bottom: 11px; padding: 11px 13px; border-radius: 12px; box-shadow: 0 2px 7px rgba(19,49,57,.04); }
.message p { margin: 0; font-size: 9px; line-height: 1.55; }
.message small { display: block; margin-top: 5px; color: #8c837b; font-size: 7px; text-align: right; }
.message.received { border-bottom-left-radius: 3px; background: #fff; }
.message.sent { margin-left: auto; border-bottom-right-radius: 3px; background: var(--coral-soft); }
.message-input { min-height: 67px; display: flex; align-items: center; gap: 9px; padding: 11px 16px; border-top: 1px solid var(--line); }
.message-input button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 9px; background: #f0ece8; cursor: pointer; }
.message-input input { flex: 1; height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: #f7f5f2; font-size: 9px; }
.message-input .send-button { color: #fff; background: var(--coral); }
.assistant-panel { padding: 30px; color: #fff; border: 0; background: radial-gradient(circle at 85% 12%, rgba(228,35,32,.3), transparent 27%), linear-gradient(150deg, #262019, #100d0b); }
.bot-orb { width: 55px; height: 55px; display: grid; place-items: center; margin-bottom: 22px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: rgba(255,255,255,.09); font-size: 11px; font-weight: 850; }
.assistant-panel h2 { margin: 0 0 13px; font-size: 22px; line-height: 1.1; }
.assistant-panel > p { margin: 0; color: #cfc8c1; font-size: 9px; line-height: 1.7; }
.suggestion-list { margin-top: 28px; }
.suggestion-list button { width: 100%; min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border: 0; border-top: 1px solid rgba(255,255,255,.1); color: #efeae5; background: transparent; cursor: pointer; font-size: 9px; text-align: left; }
.human-note { display: flex; gap: 9px; margin-top: 28px; padding: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.06); }
.human-note > span:last-child { display: flex; flex-direction: column; }
.human-note strong { font-size: 8px; }
.human-note small { margin-top: 4px; color: #c2b9b1; font-size: 7px; line-height: 1.45; }
.plan-card { min-height: 195px; display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto auto; gap: 12px 20px; padding: 28px; }
.plan-card h2 { margin: 0; font-size: 24px; }
.plan-card p { margin: 6px 0 0; color: #cfc8c1; font-size: 9px; }
.plan-price { align-self: end; }
.plan-price strong { font-size: 24px; }
.plan-price span { color: #aaa199; font-size: 9px; }
.plan-card > .button { align-self: end; justify-self: end; }
.next-charge { display: flex; flex-direction: column; align-items: flex-start; }
.next-charge > span:nth-child(2) { margin-top: 17px; color: var(--muted); font-size: 9px; }
.next-charge > strong { margin-top: 5px; font-size: 20px; }
.next-charge > small { margin: 5px 0 14px; color: var(--muted); font-size: 8px; }
.billing-list > div { min-height: 55px; display: grid; grid-template-columns: 90px minmax(0,1fr) 100px 80px 70px; align-items: center; gap: 9px; border-top: 1px solid #eee9e4; font-size: 9px; }
.billing-list button, .terms-list button { border: 0; color: var(--coral-deep); background: transparent; cursor: pointer; font-size: 8px; font-weight: 780; }
.company-card { padding: 23px; }
.company-logo-large { width: 65px; height: 65px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #f1c4bf; border-radius: 18px; color: var(--coral-deep); background: var(--coral-soft); font-size: 17px; font-weight: 850; }
.company-card > div { flex: 1; }
.company-card h2 { margin: 0; font-size: 18px; }
.company-card p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.detail-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px 24px; }
.detail-grid > div { display: flex; flex-direction: column; }
.detail-grid .wide { grid-column: 1 / -1; }
.detail-grid small { color: var(--muted); font-size: 8px; }
.detail-grid strong { margin-top: 5px; font-size: 10px; }
.user-list > div { min-height: 55px; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 8px; border-top: 1px solid #eee9e4; }
.user-list > div > span:nth-child(2), .terms-list > div > span:nth-child(2) { display: flex; flex-direction: column; }
.user-list strong, .terms-list strong { font-size: 9px; }
.user-list small, .terms-list small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.terms-list > div { min-height: 58px; display: grid; grid-template-columns: 25px minmax(0,1fr) auto; align-items: center; gap: 9px; border-top: 1px solid #eee9e4; }
.terms-list > div > span:first-child { color: var(--green); }
.security-banner { padding: 20px 23px; border-color: #f1c4bf; background: #fff7f5; }
.security-banner > span { width: 45px; height: 45px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; color: var(--coral-deep); background: var(--coral-soft); font-size: 18px; }
.security-banner > div { flex: 1; }
.security-banner strong { font-size: 11px; }
.security-banner p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.security-banner > b { color: var(--coral-deep); font-size: 9px; }
.integration-grid { grid-template-columns: repeat(3,1fr); }
.integration-card { min-height: 175px; padding: 19px; }
.integration-card > div { display: flex; align-items: center; justify-content: space-between; }
.integration-icon { width: 41px; height: 41px; display: grid; place-items: center; border-radius: 11px; color: var(--coral-deep); background: var(--coral-soft); }
.integration-card h3 { margin: 17px 0 5px; font-size: 11px; }
.integration-card p { min-height: 28px; margin: 0 0 16px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.integration-card > small { color: var(--muted-2); font-size: 7px; }
.integration-status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.status-step { min-height: 90px; display: flex; align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.status-step > b { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #eee9e4; }
.status-step.done > b { color: #fff; background: var(--green); }
.status-step.current { border-color: #ebc37f; background: var(--amber-soft); }
.status-step.current > b { color: #fff; background: var(--amber); }
.status-step > span { display: flex; flex-direction: column; }
.status-step strong { font-size: 9px; }
.status-step small { margin-top: 4px; color: var(--muted); font-size: 7px; line-height: 1.45; }

/* Modal / toast / footer / errors */
.modal-backdrop { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(23,19,15,.62); backdrop-filter: blur(4px); }
.upload-modal { position: relative; width: min(500px, 100%); padding: 29px; border-radius: 18px; background: #fff; box-shadow: 0 24px 80px rgba(8,36,43,.25); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 10px; background: #f1ede9; cursor: pointer; font-size: 20px; }
.modal-icon { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 15px; color: var(--coral-deep); background: var(--coral-soft); font-size: 22px; font-weight: 850; }
.upload-modal h2 { margin: 0; font-size: 22px; }
.upload-modal > p { margin: 7px 0 20px; color: var(--muted); font-size: 10px; }
.modal-options { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.modal-options button { min-height: 90px; display: flex; flex-direction: column; align-items: flex-start; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; text-align: left; }
.modal-options button:hover { border-color: #f0b2ad; background: #fff9f8; }
.modal-options button > span { color: var(--coral); font-size: 7px; font-weight: 850; letter-spacing: .08em; }
.modal-options strong { margin-top: 13px; font-size: 9px; }
.modal-options small { margin-top: 4px; color: var(--muted); font-size: 7px; }
.modal-security { margin-top: 16px; color: var(--muted); font-size: 8px; }
.toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; max-width: 330px; padding: 13px 15px; border-radius: 10px; color: #fff; background: var(--ink); box-shadow: 0 14px 40px rgba(0,0,0,.22); font-size: 10px; line-height: 1.45; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .18s ease; }
.toast.visible { opacity: 1; transform: translateY(0); }
footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 28px; padding: 17px 2px 0; border-top: 1px solid var(--line); color: #8a827b; font-size: 8px; }
.status-body { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--canvas); }
.status-shell section { width: min(540px, 100%); padding: 42px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.status-shell .brand-symbol { margin-bottom: 22px; }
.status-shell h1 { margin: 0; font-size: 28px; }
.status-shell p { margin: 12px 0 24px; color: var(--muted); line-height: 1.6; }
.sidebar-overlay { display: none; }

/* Conjunto PDV, antifraude e PWA */
.pdv-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 210px; padding: 30px; border-radius: 18px; color: #fff; background: linear-gradient(135deg,#17130f,#5e332d 62%,#d7635a); box-shadow: var(--shadow); }
.pdv-hero h2 { margin: 7px 0; font-size: 34px; }
.pdv-hero p { max-width: 620px; margin: 0; color: rgba(255,255,255,.76); line-height: 1.6; }
.pdv-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.pdv-hero .button.outline { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.pdv-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.pdv-details > div { min-height: 74px; display: flex; flex-direction: column; gap: 7px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fcfaf8; }
.pdv-details small { color: var(--muted); font-size: 8px; }
.pdv-details strong { font-size: 10px; line-height: 1.45; }
.module-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.module-tags span { padding: 7px 9px; border-radius: 999px; color: var(--coral-deep); background: var(--coral-soft); font-size: 8px; font-weight: 800; }
.module-tags small { color: var(--muted); }
.pdv-notice { margin-top: 20px; padding: 13px; border-radius: 10px; color: #765b21; background: var(--amber-soft); font-size: 8px; line-height: 1.55; }
.verify-card h2 { margin: 8px 0; font-size: 25px; }
.verify-card > p { color: var(--muted); line-height: 1.6; }
.verify-card form { display: grid; gap: 12px; margin-top: 22px; }
.verify-card label { display: grid; gap: 7px; font-size: 9px; font-weight: 800; }
.verify-card input { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 16px; }
.verification-result { margin-top: 16px; padding: 14px; border-radius: 10px; }
.verification-result.valid { color: #125d45; background: #e7f7f0; }
.verification-result.invalid { color: #765b21; background: var(--amber-soft); }
.verification-result p { margin: 5px 0 0; font-size: 9px; line-height: 1.5; }
.safety-tips ul { display: grid; gap: 12px; margin: 18px 0 24px; padding-left: 18px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.pwa-install { min-height: 36px; padding: 0 12px; border: 1px solid #d99a94; border-radius: 9px; color: var(--coral-deep); background: #fff4f2; cursor: pointer; font-size: 8px; font-weight: 850; }
.offline-notice { margin-bottom: 12px; padding: 10px 13px; border-radius: 9px; color: #765b21; background: var(--amber-soft); font-size: 9px; }
[hidden] { display: none !important; }

@media (max-width: 1180px) {
  .search-button { display: none; }
  .fiscal-grid { grid-template-columns: repeat(2, 1fr); }
  .folder-grid { grid-template-columns: repeat(2, 1fr); }
  .shortcut-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); transition: transform .24s ease; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-brand > button { display: block; }
  .sidebar-overlay.visible { position: fixed; z-index: 25; inset: 0; display: block; border: 0; background: rgba(23,19,15,.54); }
  .main-column { margin-left: 0; }
  .menu-button { display: grid; }
  .span-3 { grid-column: span 6; }
  .span-4, .span-5, .span-7, .span-8 { grid-column: 1 / -1; }
  .service-layout { grid-template-columns: 1fr; }
  .assistant-panel { min-height: 430px; }
  .login-shell { grid-template-columns: 1fr; }
  .login-story { min-height: 58vh; }
  .login-card { margin: 42px auto; }
}

@media (max-width: 700px) {
  .topbar { height: 66px; gap: 9px; padding: 0 11px; }
  .company-selector { min-width: 0; flex: 1; }
  .company-selector select { max-width: 170px; }
  .company-selector small { display: none; }
  .top-upload { width: 39px; padding: 0; font-size: 0; }
  .top-upload::first-letter { font-size: 12px; }
  .user-button { min-width: 39px; width: 39px; padding: 0 6px; grid-template-columns: 1fr; }
  .user-button > span:nth-child(2), .user-button > b { display: none; }
  .user-button > span:first-child { margin: 0 auto; }
  .homologation-banner { align-items: flex-start; flex-direction: column; gap: 4px; padding: 8px 12px; }
  .content-area { padding: 25px 13px 16px; }
  .page-heading { min-height: 66px; margin-bottom: 18px; }
  .page-heading h1 { font-size: 28px; }
  .page-heading p { max-width: 95%; line-height: 1.5; }
  .help-link { display: none; }
  .dashboard-grid, .module-grid { gap: 11px; }
  .span-3 { grid-column: 1 / -1; }
  .attention-card, .capture-hero, .import-panel, .new-request, .company-card, .security-banner { align-items: flex-start; flex-direction: column; }
  .attention-card .button, .capture-hero .button, .import-panel > button, .new-request > button, .company-card > button { width: 100%; }
  .attention-copy { align-items: flex-start; }
  .summary-strip { grid-template-columns: 1fr; }
  .summary-strip > div { border-left: 0; border-top: 1px solid var(--line); }
  .summary-strip > div:first-child { border-top: 0; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .segmented button { flex: 1; }
  .table-head, .table-row { min-width: 700px; }
  .fiscal-grid, .folder-grid, .installment-grid, .integration-grid, .modal-options { grid-template-columns: 1fr; }
  .payroll-summary, .integration-status { grid-template-columns: 1fr; }
  .shortcut-grid { grid-template-columns: repeat(2, 1fr); }
  .document-table { overflow-x: auto; }
  .document-table-row { min-width: 690px; }
  .request-table { overflow-x: auto; }
  .request-row { min-width: 730px; }
  .billing-list { overflow-x: auto; }
  .billing-list > div { min-width: 650px; }
  .plan-card { grid-template-columns: 1fr; }
  .plan-card > .button { width: 100%; justify-self: stretch; }
  .form-grid.two-columns, .detail-grid, .requirements-grid { grid-template-columns: 1fr; }
  .form-grid .wide, .detail-grid .wide { grid-column: auto; }
  .calendar-list { grid-template-columns: 40px minmax(0,1fr); }
  .calendar-list .status-pill { display: none; }
  .message { max-width: 87%; }
  .conversation-panel { min-height: 570px; }
  .modal-backdrop { align-items: end; padding: 0; }
  .upload-modal { width: 100%; border-radius: 20px 20px 0 0; max-height: 92vh; overflow-y: auto; }
  footer { align-items: flex-start; flex-direction: column; }
  .login-story { min-height: 62vh; padding: 30px 23px; }
  .login-story h1 { font-size: 44px; }
  .login-proof { flex-direction: column; }
  .login-card { width: calc(100% - 26px); padding: 30px 23px; }
  .installer-card { padding: 25px 18px; }
  .installer-form fieldset { padding: 17px 13px; }
  .installer-warning { flex-direction: column; }
  .pdv-hero { align-items: flex-start; flex-direction: column; padding: 23px 18px; }
  .pdv-actions { width: 100%; justify-content: stretch; }
  .pdv-actions .button { width: 100%; }
  .pdv-details { grid-template-columns: 1fr; }
  .pwa-install { width: 39px; overflow: hidden; padding: 0; font-size: 0; }
  .pwa-install::after { content: '+'; font-size: 16px; }
  body { padding-bottom: env(safe-area-inset-bottom); }
}
