:root {
    --navy: #0b1e3b;
    --navy-2: #17345f;
    --blue: #0868dc;
    --blue-dark: #0056bf;
    --blue-soft: #eaf3ff;
    --green: #09966d;
    --green-soft: #e4f8f0;
    --amber: #bc6a00;
    --amber-soft: #fff3dc;
    --red: #c63c4b;
    --red-soft: #fff0f1;
    --ink: #0d203d;
    --muted: #65758d;
    --line: #d9e3ef;
    --surface: #fff;
    --canvas: #f2f7fd;
    --shadow: 0 12px 30px rgba(30, 68, 112, .08);
    --radius: 15px;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
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; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--blue); text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin-top: 0; }
h1 { color: #061b3b; font-size: clamp(25px, 2vw, 34px); letter-spacing: -.035em; line-height: 1.15; margin-bottom: 8px; }
h2 { font-size: 18px; letter-spacing: -.02em; margin-bottom: 5px; }
h3 { font-size: 15px; margin-bottom: 4px; }
.muted { color: var(--muted); }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; width: 228px; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); }
.brand { height: 65px; display: flex; align-items: center; gap: 11px; padding: 0 20px; color: var(--blue); font-size: 20px; font-weight: 780; letter-spacing: -.03em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(145deg,#1374e9,#0456ba); box-shadow: 0 5px 12px rgba(3, 91, 197, .3); flex: none; }
.brand-mark svg { width: 25px; height: 25px; stroke-width: 1.7; }
.main-nav { padding: 20px 10px; display: flex; flex-direction: column; gap: 5px; }
.main-nav a { min-height: 45px; display: flex; align-items: center; gap: 13px; padding: 0 13px; border-radius: 10px; color: #294361; font-weight: 650; transition: .18s ease; }
.main-nav a:hover { background: #f4f7fb; color: var(--blue); }
.main-nav a.active { color: var(--blue); background: var(--blue-soft); }
.main-nav svg { width: 20px; height: 20px; flex: none; }
.nav-divider { height: 1px; background: #edf1f6; margin: 9px 12px; }
.protected-note { margin: auto 12px 12px; display: flex; align-items: center; gap: 10px; border: 1px solid #d7e6f3; border-radius: 12px; padding: 10px; }
.protected-note .protected-icon { width: 31px; height: 31px; border-radius: 8px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); }
.protected-note svg { width: 18px; height: 18px; }
.protected-note span:last-child { min-width: 0; }
.protected-note strong, .protected-note small { display: block; white-space: nowrap; }
.protected-note strong { font-size: 11px; }
.protected-note small { color: var(--muted); font-size: 9px; }
.workspace { min-height: 100vh; padding-left: 228px; }
.topbar { height: 65px; position: sticky; top: 0; z-index: 30; display: flex; align-items: center; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.topbar-title { display: flex; flex-direction: column; }
.topbar-title small, .eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .08em; color: #75869c; }
.topbar-title span { font-size: 16px; color: #1d3556; }
.topbar-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.icon-button, .logout-button, .menu-toggle { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #25415f; cursor: pointer; }
.icon-button:hover, .logout-button:hover { background: var(--blue-soft); color: var(--blue); }
.icon-button svg, .logout-button svg, .menu-toggle svg { width: 20px; height: 20px; }
.user-menu { display: flex; align-items: center; gap: 9px; padding-left: 14px; border-left: 1px solid var(--line); color: var(--ink); }
.user-menu strong, .user-menu small { display: block; max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-menu strong { font-size: 12px; }
.user-menu small { color: var(--muted); font-size: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--blue); font-weight: 800; font-size: 12px; }
.menu-toggle { display: none; }
.content { width: min(1380px, 100%); margin: 0 auto; padding: 30px 34px 60px; }
.page-heading, .deal-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.page-heading p, .deal-heading p { color: var(--muted); margin-bottom: 0; }
.back-link { display: inline-block; margin-bottom: 12px; font-weight: 650; font-size: 12px; }
.button { min-height: 41px; border-radius: 9px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; cursor: pointer; font-weight: 750; font-size: 12px; transition: .17s ease; }
.button.primary { color: #fff; background: linear-gradient(180deg,#0874e9,#0561ce); box-shadow: 0 8px 17px rgba(1, 98, 214, .22); }
.button.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(1, 98, 214, .29); }
.button.secondary { color: var(--blue); background: #fff; border-color: #bad5f5; }
.button.ghost { color: #344c69; background: #fff; border-color: var(--line); }
.button.success { color: #fff; background: var(--green); }
.button.danger { color: #fff; background: var(--red); }
.button.danger-outline, .danger-outline { color: var(--red); background: #fff; border-color: #edbec4; }
.button.full { width: 100%; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 2px 2px rgba(40,70,100,.015); }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 15px; }
.panel-heading h2 { margin: 3px 0 0; }
.panel-heading p { color: var(--muted); margin: 3px 0 0; font-size: 12px; }
.panel-heading > a { font-size: 12px; font-weight: 700; }
.flash { position: relative; border: 1px solid; border-radius: 10px; padding: 12px 15px; margin-bottom: 18px; }
.flash.success { color: #076547; background: #effbf6; border-color: #b9ead7; }
.flash.danger { color: #9f2936; background: #fff4f5; border-color: #efc9ce; }
.flash ul { margin: 6px 0 0; padding-left: 18px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 14px 0; }
.metric-card { min-height: 88px; display: flex; align-items: center; gap: 13px; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 16px; }
.metric-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; font-weight: 800; flex: none; }
.metric-icon.blue { color: var(--blue); background: #eef5ff; border: 1px solid #cfe1f8; }
.metric-icon.green { color: var(--green); background: var(--green-soft); border: 1px solid #b8e7d7; }
.metric-icon.amber { color: var(--amber); background: var(--amber-soft); border: 1px solid #f1d39e; }
.metric-card small, .metric-card strong { display: block; }
.metric-card small { color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.metric-card strong { font-size: clamp(16px,1.45vw,22px); letter-spacing: -.04em; white-space: nowrap; }
.text-green { color: var(--green); }
.text-amber { color: var(--amber); }
.negotiation-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.negotiation-card { min-height: 115px; display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 17px; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; transition: .18s ease; }
.negotiation-card:hover { border-color: #a9cbed; box-shadow: var(--shadow); transform: translateY(-1px); }
.negotiation-card h3 { margin: 10px 0 3px; }
.negotiation-card p { color: var(--muted); margin: 0; font-size: 12px; }
.negotiation-card .arrow { color: var(--blue); font-size: 20px; }
.status { width: fit-content; display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 7px; font-size: 10px; font-weight: 800; white-space: nowrap; background: #eef2f6; color: #53657a; }
.status.in_progress, .status.pending { background: var(--blue-soft); color: var(--blue); border: 1px solid #cce0f8; }
.status.settled, .status.confirmed, .status.paid, .status.active { background: var(--green-soft); color: var(--green); }
.status.rejected, .status.cancelled, .status.inactive { background: var(--red-soft); color: var(--red); }
.status.suspended, .status.open { background: var(--amber-soft); color: var(--amber); }
.status.draft { background: #eef1f5; color: #5d6d80; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state > span { font-size: 34px; color: var(--blue); }
.empty-state h3 { color: var(--ink); margin-top: 10px; }
.empty-inline { display: flex; align-items: center; gap: 13px; padding: 17px; border: 1px dashed #bdd6f1; background: #f8fbff; border-radius: 11px; }
.empty-inline .empty-icon { width: 39px; height: 39px; display: grid; place-items: center; background: #fff; border: 1px solid #cbe0f6; border-radius: 9px; color: var(--blue); font-size: 20px; }
.empty-inline strong, .empty-inline small { display: block; }
.empty-inline small { font-size: 10px; color: var(--muted); margin-top: 3px; }
.empty-inline .button { margin-left: auto; }
.title-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.title-line h1 { margin-bottom: 0; }
.due-line { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.due-line svg { width: 17px; height: 17px; }
.due-line strong { color: var(--blue); }
.heading-actions { display: flex; gap: 9px; }
.progress-panel { padding: 20px 22px 17px; }
.progress-panel .panel-heading { align-items: center; }
.progress-number { color: var(--blue); font-size: 19px; }
.progress-number small { color: var(--muted); font-size: 10px; font-weight: 500; }
.progress-track { height: 7px; background: #d8dfe8; border-radius: 99px; overflow: hidden; margin: 9px 10px; }
.progress-track span { display: block; min-width: 8px; height: 100%; background: linear-gradient(90deg,#0b73e7,#27a1ef); border-radius: inherit; }
.progress-labels { display: flex; justify-content: space-between; font-size: 10px; color: #4b607a; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(310px,.82fr); gap: 14px; }
.payment-list { display: flex; flex-direction: column; }
.payment-item { display: grid; grid-template-columns: 39px 1fr auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #edf1f5; color: var(--ink); }
.payment-method { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: 10px; font-weight: 800; }
.payment-item strong, .payment-item small { display: block; }
.payment-item small { color: var(--muted); font-size: 10px; }
.subsection { border-top: 1px solid var(--line); margin-top: 15px; padding-top: 14px; }
.installment-item { display: grid; grid-template-columns: 30px 1fr auto auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #edf1f5; }
.installment-item .number { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: var(--blue-soft); color: var(--blue); font-weight: 800; }
.installment-item strong, .installment-item small { display: block; }
.installment-item small { color: var(--muted); font-size: 9px; }
.party-group { border-top: 1px solid var(--line); padding: 12px 0; }
.group-label { color: #526985; font-size: 9px; }
.party { display: grid; grid-template-columns: 39px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; }
.party-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-weight: 800; font-size: 11px; }
.party strong, .party small { display: block; }
.party small { color: var(--muted); font-size: 9px; }
.info-note { display: flex; gap: 10px; padding: 10px; margin-top: 7px; border-radius: 9px; background: #eef6ff; color: var(--blue); font-size: 9px; }
.info-note.gray { color: #5f7189; background: #f5f7fa; border: 1px solid #e1e7ee; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 10px 12px; text-align: left; color: #718199; background: #f8fafc; font-size: 9px; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
td { padding: 13px 12px; border-bottom: 1px solid #e9eef4; vertical-align: middle; }
tbody tr:hover { background: #fbfdff; }
.table-sub { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }
.row-link { font-size: 11px; font-weight: 750; white-space: nowrap; }
.table-actions { display: flex; gap: 10px; }
.table-actions form { display: inline; }
.table-actions a, .table-actions button { border: 0; padding: 0; background: none; color: var(--blue); font-size: 10px; cursor: pointer; white-space: nowrap; }
nav[role=navigation] { margin-top: 18px; }
.form-panel { padding: clamp(20px,3vw,34px); }
.form-panel > h2 { margin-bottom: 20px; }
.section-title { display: flex; gap: 12px; align-items: center; padding-bottom: 13px; margin: 7px 0 18px; border-bottom: 1px solid var(--line); }
.section-title:not(:first-child) { margin-top: 34px; }
.section-title > span { width: 31px; height: 31px; flex: none; display: grid; place-items: center; color: #fff; background: var(--blue); border-radius: 9px; font-weight: 800; }
.section-title h2, .section-title p { margin: 0; }
.section-title p { color: var(--muted); font-size: 11px; }
.form-grid { display: grid; gap: 16px; }
.form-grid.cols-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.form-grid.cols-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
label { display: flex; flex-direction: column; gap: 6px; color: #263e5b; font-size: 11px; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 42px; border: 1px solid #cbd8e6; border-radius: 8px; padding: 9px 11px; color: var(--ink); background: #fff; outline: none; transition: .15s; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #63a6ef; box-shadow: 0 0 0 3px rgba(26,119,225,.1); }
.check-row { flex-direction: row; align-items: flex-start; gap: 9px; font-weight: 550; }
.check-row input { width: 16px; min-height: 16px; margin-top: 2px; accent-color: var(--blue); }
.check-row span small { display: block; color: var(--muted); font-weight: 400; }
.choice-box { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 10px; max-height: 260px; overflow: auto; }
.choice-box legend { padding: 0 6px; font-size: 11px; font-weight: 800; color: var(--navy); }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); }
.installment-row { display: grid; grid-template-columns: 75px 1fr 1fr 1.5fr 38px; gap: 10px; align-items: end; margin-bottom: 10px; }
.file-drop { min-height: 155px; display: flex; align-items: center; justify-content: center; text-align: center; border: 1.5px dashed #9ec6ee; border-radius: 11px; background: #f8fbff; cursor: pointer; padding: 20px; }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop strong, .file-drop small { display: block; }
.file-drop small { color: var(--muted); font-weight: 400; max-width: 520px; }
.file-drop.has-files { border-color: #69a9ec; background: #f2f8ff; }
.upload-icon { font-size: 25px; color: var(--blue); }
.upload-files { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.upload-files[hidden] { display: none; }
.upload-file { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.upload-file-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: var(--blue); background: var(--blue-soft); font-size: 16px; font-weight: 800; }
.upload-file-info { min-width: 0; }
.upload-file-name { display: block; overflow: hidden; color: var(--ink); font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.upload-file-meta { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.upload-file-status { min-width: 91px; color: var(--blue); font-size: 10px; font-weight: 800; text-align: right; }
.upload-file-track { grid-column: 2 / 4; height: 6px; overflow: hidden; border-radius: 99px; background: #e2e9f1; }
.upload-file-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#0b73e7,#27a1ef); transition: width .15s ease; }
.upload-file.is-complete { border-color: #b8e7d7; background: #f8fdfa; }
.upload-file.is-complete .upload-file-icon, .upload-file.is-complete .upload-file-track span { color: var(--green); background: var(--green); }
.upload-file.is-complete .upload-file-status { color: var(--green); }
.upload-file.is-error { border-color: #efc9ce; background: #fff8f8; }
.upload-file.is-error .upload-file-status { color: var(--red); }
.upload-files-inline { flex-basis: 100%; width: 100%; }
.inline-upload:has(.upload-files:not([hidden])) { flex-wrap: wrap; }
.button:disabled { cursor: wait; opacity: .68; transform: none; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(300px,.8fr); gap: 15px; align-items: start; }
.detail-grid > aside { display: flex; flex-direction: column; gap: 15px; }
.detail-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; margin: 0; }
.detail-list div { padding: 13px 0; border-bottom: 1px solid #edf1f5; }
.detail-list dt { color: var(--muted); font-size: 10px; }
.detail-list dd { margin: 3px 0 0; font-weight: 700; }
.detail-list dd small { display: block; color: var(--muted); font-weight: 400; }
.note-box { margin-top: 15px; padding: 13px; background: #f7f9fc; border-radius: 9px; }
.note-box p { color: var(--muted); margin: 4px 0 0; }
.document-list { display: flex; flex-direction: column; }
.document-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 11px; align-items: center; padding: 13px 5px; border-bottom: 1px solid #edf1f5; color: var(--ink); }
.document-row > span:first-child { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 8px; background: var(--blue-soft); color: var(--blue); }
.document-row strong, .document-row small { display: block; }
.document-row small, .document-row > span:last-child { color: var(--muted); font-size: 10px; }
.document-row.obsolete { opacity: .55; }
.inline-upload { display: flex; gap: 10px; align-items: end; padding-top: 15px; }
.inline-upload label { flex: 1; }
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.split-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.action-panel h2 { margin-top: 6px; }
.action-panel h3 { margin-bottom: 12px; }
.timeline-item { display: grid; grid-template-columns: 15px 1fr; gap: 8px; position: relative; padding: 10px 0; }
.timeline-item > span { width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.timeline-item strong, .timeline-item small { display: block; }
.timeline-item small { color: var(--muted); font-size: 9px; }
.timeline-item p { color: var(--muted); font-size: 10px; margin: 5px 0 0; }
.compact-form { margin-bottom: 15px; }
.auth-page { background: #fff; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(380px,.9fr) minmax(480px,1.1fr); }
.auth-brand-panel { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(35px,6vw,75px); color: #fff; background: radial-gradient(circle at 85% 20%,rgba(45,147,255,.35),transparent 28%),linear-gradient(145deg,#061a38,#073f86 60%,#066ad8); }
.auth-brand-panel::after { content:""; position:absolute; width:480px; height:480px; right:-250px; bottom:-220px; border:1px solid rgba(255,255,255,.15); border-radius:50%; box-shadow:0 0 0 70px rgba(255,255,255,.03),0 0 0 140px rgba(255,255,255,.025); }
.auth-brand { display: flex; align-items: center; gap: 11px; font-size: 22px; font-weight: 800; }
.auth-brand-panel h1 { color: #fff; max-width: 570px; font-size: clamp(34px,4.2vw,62px); }
.auth-brand-panel p { max-width: 530px; color: #c9ddf7; font-size: 16px; }
.eyebrow.light { color: #94c6ff; }
.auth-security { color: #cce1fb; font-size: 12px; }
.auth-form-panel { display: grid; place-items: center; padding: 30px; background: #f8fbff; }
.auth-card { width: min(420px,100%); padding: 35px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 22px 55px rgba(24,62,104,.12); }
.auth-card h2 { font-size: 30px; margin: 5px 0; }
.auth-card > .muted { margin-bottom: 24px; }
.auth-link { display: block; text-align: center; margin-top: 18px; font-weight: 700; font-size: 12px; }
.sidebar-backdrop { display: none; }
@media (max-width: 1100px) {
    .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dashboard-grid, .detail-grid { grid-template-columns: 1fr; }
    .form-grid.cols-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .span-3 { grid-column: span 2; }
}
@media (max-width: 820px) {
    .sidebar { transform: translateX(-100%); transition: transform .22s ease; }
    .menu-open .sidebar { transform: translateX(0); }
    .sidebar-backdrop { position: fixed; z-index: 35; inset: 0; background: rgba(6,25,50,.4); }
    .menu-open .sidebar-backdrop { display: block; }
    .workspace { padding-left: 0; }
    .menu-toggle { display: grid; margin-right: 9px; }
    .content { padding: 23px 18px 45px; }
    .topbar { padding: 0 15px; }
    .user-menu > span:last-child, .topbar-actions > .icon-button { display: none; }
    .page-heading, .deal-heading { align-items: flex-start; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand-panel { min-height: 260px; padding: 28px; }
    .auth-brand-panel > div:nth-child(2) { margin-top: 35px; }
    .auth-brand-panel h1 { font-size: 32px; }
    .auth-security { display: none; }
    .auth-form-panel { padding: 20px; }
}
@media (max-width: 620px) {
    .page-heading, .deal-heading { flex-direction: column; }
    .page-heading .button, .heading-actions { width: 100%; }
    .heading-actions .button { flex: 1; }
    .metrics { grid-template-columns: 1fr 1fr; gap: 9px; }
    .metric-card { min-height: 92px; padding: 12px; }
    .metric-icon { width: 35px; height: 35px; }
    .metric-card strong { white-space: normal; font-size: 15px; }
    .negotiation-grid, .form-grid.cols-2, .form-grid.cols-3 { grid-template-columns: 1fr; }
    .span-2, .span-3 { grid-column: span 1; }
    .progress-labels span:nth-child(2) { display: none; }
    .empty-inline { align-items: flex-start; flex-wrap: wrap; }
    .empty-inline .button { width: 100%; margin: 0; }
    .installment-item { grid-template-columns: 30px 1fr auto; }
    .installment-item .status { display: none; }
    .installment-row { grid-template-columns: 62px 1fr 38px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
    .installment-row label:nth-child(3), .installment-row label:nth-child(4) { grid-column: span 1; }
    .installment-row label:nth-child(4) { grid-column: 1 / span 2; }
    .detail-list { grid-template-columns: 1fr; }
    .document-row { grid-template-columns: 33px 1fr; }
    .document-row > span:last-child { grid-column: 2; }
    .inline-upload { flex-direction: column; align-items: stretch; }
    .upload-file { grid-template-columns: 34px minmax(0,1fr); }
    .upload-file-status { grid-column: 2; text-align: left; }
    .upload-file-track { grid-column: 1 / 3; }
    .table-actions { flex-direction: column; gap: 4px; }
    .auth-card { padding: 25px 20px; }
}
