@charset "UTF-8";
:root {
  --purple: #655079; --purple-dark: #503b64; --purple-pale: #f0ecf4; --ink: #29252f;
  --muted: #6b6572; --line: #e5e1e9; --surface: #fff; --canvas: #f7f6f8;
  --success: #27604c; --success-bg: #eaf4ef; --warning: #805414; --warning-bg: #fbf3e4;
  --danger: #9b3f40; --danger-bg: #faeded; --radius: 10px;
  color: var(--ink); background: var(--canvas); font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 14px; line-height: 1.65; font-synthesis: none; text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, a, summary { touch-action: manipulation; }
a { color: var(--purple-dark); }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .53; }
:focus-visible { outline: 3px solid #83639e; outline-offset: 3px; }
h1, h2, h3, p, dl { margin: 0; }
h1 { font-size: 28px; letter-spacing: .025em; font-weight: 700; line-height: 1.4; }
h2 { font-size: 23px; letter-spacing: .025em; font-weight: 700; line-height: 1.5; }
h3 { font-size: 15px; line-height: 1.6; font-weight: 650; }
p + p { margin-top: 8px; }
strong { font-weight: 650; }
[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; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 20px; background: #fff; border: 2px solid var(--purple); border-radius: 6px; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.eyebrow { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .09em; margin-bottom: 7px; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 40px; border-radius: 11px; background: var(--purple); color: #fff; font-size: 25px; font-weight: 500; line-height: 1; flex-shrink: 0; }
.app-shell { display: grid; grid-template-columns: 218px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: #fff; border-right: 1px solid var(--line); padding: 36px 18px 24px; display: flex; flex-direction: column; min-width: 0; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 7px; margin-bottom: 42px; }
.brand strong { font-size: 17px; letter-spacing: .07em; }
.brand-sub { display: block; color: var(--muted); font-size: 10px; letter-spacing: .025em; margin-top: 1px; }
.navigation { display: flex; flex-direction: column; gap: 7px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 18px; border-radius: 6px; border: 1px solid transparent; text-decoration: none; font-weight: 600; font-size: 13px; line-height: 1.5; max-width: 100%; text-align: center; transition: background-color .15s, border-color .15s; }
.button.primary { background: var(--purple); color: #fff; border-color: var(--purple); }
.button.primary:hover:not(:disabled) { background: var(--purple-dark); border-color: var(--purple-dark); }
.button.secondary { color: #4b4353; background: #fff; border-color: #d8d2df; }
.button.secondary:hover:not(:disabled) { background: #f5f2f7; border-color: #b4a6c1; }
.button.compact { padding: 8px 13px; font-size: 12px; }
.button.text-button { background: transparent; color: var(--purple-dark); border: 0; padding: 8px 6px; }
.button.text-button:hover { background: var(--purple-pale); }
.button.danger-text { color: var(--danger); }
.button.danger-button { background: var(--danger); color: #fff; }
.button.icon-button { width: 44px; padding: 0; font-size: 27px; font-weight: 400; background: #fff; color: var(--muted); border-color: var(--line); flex-shrink: 0; }
.button.nav-button { justify-content: flex-start; font-size: 13px; font-weight: 500; min-height: 47px; padding-left: 18px; color: var(--muted); background: transparent; border-radius: 7px; }
.button.nav-button:hover { background: #f7f5f9; color: var(--ink); }
.button.nav-button[aria-current="page"] { color: var(--purple-dark); background: var(--purple-pale); font-weight: 650; }
.button.nav-button[aria-current="page"]::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--purple); margin-right: 4px; }
.sidebar-note { margin-top: auto; padding: 60px 10px 0; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }
.workspace { padding: 35px 36px 0; min-width: 0; max-width: 1540px; width: 100%; margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 26px; }
.topbar-tools { display: flex; align-items: center; gap: 15px; }
.demo-banner { display: flex; align-items: center; gap: 16px; border: 1px solid #ded3e9; border-radius: 8px; padding: 15px 18px; background: #f2edf7; margin-bottom: 28px; color: #594369; }
.demo-banner > div { flex: 1; min-width: 0; }
.demo-banner strong { font-size: 13px; }
.demo-banner p { font-size: 11px; color: #6b597b; margin-top: 2px; }
.demo-label { font-size: 10px; letter-spacing: .08em; border: 1px solid #bcaacb; border-radius: 4px; padding: 4px 7px; font-weight: 700; }
.feedback { color: var(--success); font-size: 13px; }
.feedback:not(:empty) { padding: 13px 16px; background: var(--success-bg); border-radius: 7px; margin-bottom: 18px; }
.notice { padding: 14px 16px; border-radius: 7px; margin-bottom: 20px; line-height: 1.8; overflow-wrap: anywhere; }
.notice ul { margin: 8px 0; padding-left: 22px; }
.notice.warning { color: var(--warning); background: var(--warning-bg); border: 1px solid #eddec1; }
.notice.danger { color: var(--danger); background: var(--danger-bg); border: 1px solid #efcfd0; }
.notice.subtle { color: var(--muted); background: #f4f2f6; border: 1px solid #e8e3ed; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 0 0 24px; }
.section-heading p { font-size: 12px; margin-top: 5px; }
.section-heading > .button { flex-shrink: 0; }
.workspace-content > .panel, .workspace-content > .contract-list { margin-top: 22px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.metric { background: #fff; border: 1px solid var(--line); padding: 22px 20px; border-radius: 8px; }
.metric h3 { font-size: 12px; color: var(--muted); font-weight: 500; }
.metric-value { font-size: clamp(22px, 2.3vw, 30px); font-weight: 600; letter-spacing: -.02em; margin: 8px 0 3px; line-height: 1.5; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric-alert .metric-value { color: var(--danger); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); min-height: 67px; }
.panel-heading h3 { font-size: 14px; }
.count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.panel-empty { color: var(--muted); padding: 24px 22px; font-size: 12px; }
.task-row { display: flex; align-items: center; gap: 15px; padding: 17px 22px; border-top: 1px solid var(--line); }
.task-row:first-child { border-top: 0; }
.task-main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.task-main strong { font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; line-height: 1.5; padding: 5px 8px; border-radius: 4px; font-weight: 500; white-space: nowrap; }
.badge.neutral { color: #625b6c; background: #f0edf3; }
.badge.purple { color: var(--purple-dark); background: var(--purple-pale); }
.badge.success { color: var(--success); background: var(--success-bg); }
.badge.warning { color: var(--warning); background: var(--warning-bg); }
.badge.danger { color: var(--danger); background: var(--danger-bg); }
.status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.table-wrap { width: 100%; }
.data-table { border-collapse: collapse; width: 100%; text-align: left; table-layout: fixed; font-size: 12px; }
.data-table th { background: #fbfafc; color: var(--muted); font-size: 11px; font-weight: 500; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 19px 16px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table th:first-child { width: 22%; }
.data-table th:nth-child(2) { width: 23%; }
.data-table th:nth-child(3) { width: 16%; }
.data-table th:nth-child(4) { width: 15%; }
.data-table th:nth-child(5), .data-table th:nth-child(6) { width: 12%; }
.amount-cell { font-weight: 650; font-variant-numeric: tabular-nums; }
.cell-sub { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 3px; }
.link-stack { display: flex; flex-direction: column; align-items: flex-start; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; text-underline-offset: 4px; }
.empty { text-align: center; padding: 38px 22px 42px; }
.empty-symbol { display: block; margin: 0 auto 14px; color: #b4a8bf; font-size: 25px; font-weight: 300; }
.empty h3 { font-weight: 600; margin-bottom: 8px; }
.empty p { color: var(--muted); font-size: 12px; max-width: 440px; margin: 0 auto; }
.empty .button { margin-top: 20px; }
.start-panel { display: flex; align-items: center; justify-content: space-between; gap: 22px; background: #fff; border: 1px dashed #cfc3da; border-radius: 8px; padding: 24px; margin-top: 26px; }
.start-panel p { font-size: 12px; margin-top: 5px; }
.customer-row { display: flex; align-items: center; gap: 18px; padding: 23px 24px; border-bottom: 1px solid var(--line); }
.customer-row:last-child { border-bottom: 0; }
.avatar { width: 42px; height: 42px; background: var(--purple-pale); color: var(--purple); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; font-weight: 500; }
.customer-main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.customer-main > p { font-size: 12px; margin-top: 3px; }
.filter-bar { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.filter-bar .field { width: 230px; margin-bottom: 0; }
.filter-bar > span { padding-bottom: 13px; }
.contract-list { display: flex; flex-direction: column; gap: 16px; }
.contract-card { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 23px 24px 18px; }
.contract-top { display: flex; justify-content: space-between; gap: 20px; }
.contract-top > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.title-with-status { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.title-with-status h3 { font-size: 16px; }
.contract-top p { font-size: 12px; margin-top: 7px; }
.contract-amount { display: flex; flex-direction: column; text-align: right; flex-shrink: 0; }
.contract-amount strong { font-size: 23px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.contract-facts { display: flex; gap: 12px 26px; flex-wrap: wrap; margin: 20px 0 14px; padding: 14px 0; border-top: 1px solid #f0edf3; border-bottom: 1px solid #f0edf3; color: var(--muted); font-size: 12px; }
.contract-facts strong { font-weight: 500; color: var(--ink); }
.card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.contract-card .notice { margin-top: 8px; margin-bottom: 12px; }
.message-row { padding: 23px 24px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.message-row:last-child { border-bottom: 0; }
.message-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 11px; }
.message-heading time { margin-left: auto; }
.message-row h3 { margin-bottom: 4px; }
.message-row .notice { margin-top: 12px; margin-bottom: 12px; }
.mail-details { margin: 8px 0; }
.mail-details summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--purple-dark); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.mail-details summary::before { content: '+'; margin-right: 9px; text-decoration: none; }
.mail-details[open] summary::before { content: '−'; }
.mail-details pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 12px; color: var(--muted); background: #f8f7f9; border-radius: 6px; padding: 16px; margin: 0 0 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin-bottom: 18px; }
.field label { color: #514959; font-weight: 600; font-size: 12px; }
input:not([type="radio"]), select, textarea { width: 100%; min-height: 44px; border: 1px solid #d5cedd; background: #fff; border-radius: 6px; padding: 10px 12px; color: var(--ink); font-size: 14px; min-width: 0; }
input::placeholder { color: #93899e; font-size: 13px; }
input:disabled, select:disabled { background: #f5f3f6; color: var(--muted); }
input[type="number"] { font-variant-numeric: tabular-nums; }
.field-hint { color: var(--muted); font-size: 11px; line-height: 1.7; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.settings-form { padding: 0 28px; }
.form-section { display: grid; grid-template-columns: minmax(140px, .8fr) minmax(0, 2fr); gap: 28px; padding: 29px 0 15px; border-bottom: 1px solid var(--line); }
.form-section-title h3 { margin-bottom: 7px; }
.form-section-title p { max-width: 230px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; }
.dialog { border: 1px solid var(--line); border-radius: 12px; width: min(520px, calc(100% - 32px)); padding: 0; color: var(--ink); max-height: calc(100dvh - 48px); box-shadow: 0 20px 80px #21122f26; }
.dialog.wide { width: min(720px, calc(100% - 32px)); }
.dialog::backdrop { background: #21172c70; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 19px; }
.dialog-body { padding: 22px 24px 24px; }
.dialog-body > p:first-child { margin-bottom: 22px; font-size: 12px; }
.dialog-body .notice { margin-top: 18px; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.amount-preview { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; background: var(--purple-pale); color: var(--purple-dark); border-radius: 7px; padding: 18px 20px; align-items: center; }
.amount-preview strong { font-size: 25px; font-variant-numeric: tabular-nums; }
.amount-preview > span:last-child { grid-column: 1 / -1; }
.details-list { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px 20px; font-size: 13px; padding: 6px 0; }
.details-list dt { color: var(--muted); font-size: 12px; }
.details-list dd { margin: 0; overflow-wrap: anywhere; }
.invitation-link { margin: 24px 0; }
.app-footer { display: flex; justify-content: space-between; gap: 20px; color: #7c7287; font-size: 10px; margin-top: 55px; padding: 22px 0; border-top: 1px solid var(--line); }
.error-screen, .loading-screen { max-width: 640px; padding: 70px 24px; margin: 0 auto; }
.error-screen h1 { margin-top: 25px; font-size: 24px; }
.error-screen p, .loading-screen p { margin: 20px 0 24px; }
.payment-page { max-width: 700px; margin: 0 auto; padding: 34px 26px 25px; }
.payment-brand { display: flex; gap: 11px; align-items: center; margin-bottom: 34px; }
.payment-brand strong { font-size: 15px; letter-spacing: .05em; overflow-wrap: anywhere; }
.payment-brand .brand-mark { width: 32px; height: 34px; font-size: 22px; border-radius: 9px; }
.payment-intro { margin-bottom: 28px; }
.payment-intro h1 { font-size: 27px; }
.payment-intro > p:last-child { margin-top: 10px; font-size: 13px; }
.payment-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 28px 30px; margin-bottom: 20px; min-width: 0; }
.payment-card > h2 { font-size: 17px; margin-bottom: 20px; }
.payment-card p { overflow-wrap: anywhere; }
.payment-recipient h2 { font-size: 18px; font-weight: 500; margin-top: 4px; overflow-wrap: anywhere; }
.payment-title { margin-top: 23px; font-size: 14px; font-weight: 600; }
.payment-total { padding: 22px 0 24px; margin: 18px 0 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.payment-total > span { font-size: 12px; color: var(--muted); }
.payment-total strong { display: block; font-size: 36px; font-weight: 600; letter-spacing: -.025em; font-variant-numeric: tabular-nums; margin-top: 5px; overflow-wrap: anywhere; }
.payment-total p { margin-top: 4px; }
.payment-card .details-list { gap: 14px 20px; }
.method-choices { margin: 0; padding: 0; border: 0; min-width: 0; }
.method-choices legend { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.method-option { display: flex; align-items: flex-start; padding: 18px 16px; border: 1px solid #d8d1df; border-radius: 7px; gap: 13px; margin-bottom: 12px; cursor: pointer; min-height: 80px; }
.method-option:has(input:checked) { background: #f7f4fa; border-color: var(--purple); }
.method-option input { width: 19px; height: 19px; accent-color: var(--purple); margin: 2px 0 0; flex-shrink: 0; }
.method-option strong { font-size: 14px; }
.method-description { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.method-option:focus-within { outline: 3px solid #83639e; outline-offset: 3px; }
.payment-card form .notice { margin-top: 20px; }
.payment-submit { width: 100%; margin-top: 4px; }
.invoice-summary .details-list { margin-bottom: 18px; }
.invoice-summary > .text-link { margin-left: 14px; }
.payment-card > .notice { margin-top: 20px; }
.payment-card > p + .button { margin-top: 22px; }
.paid-panel h2 { color: var(--success); }
.success-symbol { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--success-bg); color: var(--success); border-radius: 50%; margin-bottom: 14px; font-size: 20px; }
.payment-help { text-align: center; font-size: 11px; color: var(--muted); max-width: 420px; margin: 28px auto 0; }
.payment-footer { text-align: center; font-size: 10px; color: #81778c; padding: 30px 0 0; line-height: 1.9; }
@media (min-width: 1700px) { .workspace { padding-right: 55px; padding-left: 55px; } }
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 180px minmax(0, 1fr); }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .workspace { padding: 28px 24px 0; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-value { font-size: 27px; }
  .data-table td, .data-table th { padding-left: 11px; padding-right: 11px; }
  .form-section { grid-template-columns: 1fr; gap: 20px; }
  .form-section-title p { max-width: none; }
  .customer-row { flex-wrap: wrap; gap: 12px; padding: 20px; }
  .customer-main { flex-basis: calc(100% - 70px); }
  .customer-row > .small { margin-left: 54px; margin-right: auto; }
}
@media (max-width: 800px) {
  .app-shell { display: block; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 22px 14px; }
  .brand { margin-bottom: 17px; padding: 0; }
  .brand-mark { width: 32px; height: 34px; font-size: 22px; border-radius: 9px; }
  .brand strong { font-size: 15px; }
  .navigation { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .button.nav-button { justify-content: center; flex: 1 0 auto; padding: 10px 15px; min-height: 44px; }
  .button.nav-button[aria-current="page"]::before { display: none; }
  .sidebar-note { display: none; }
  .workspace { padding-top: 25px; }
  .topbar-tools > span { display: none; }
  .data-table { font-size: 11px; }
  .data-table th { font-size: 10px; }
  .contract-facts { gap: 10px 20px; }
}
@media (max-width: 600px) {
  :root { font-size: 14px; }
  h1 { font-size: 25px; }
  h2 { font-size: 21px; }
  .sidebar { padding: 16px 16px 12px; }
  .brand { margin-bottom: 14px; }
  .navigation { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .button.nav-button { padding: 9px 4px; font-size: 12px; }
  .workspace { padding: 24px 16px 0; }
  .topbar { margin-bottom: 22px; }
  .demo-banner { gap: 10px; padding: 13px 12px; flex-wrap: wrap; margin-bottom: 24px; align-items: flex-start; }
  .demo-banner > div { flex-basis: calc(100% - 65px); }
  .demo-banner > .button { margin-left: 60px; min-height: 44px; padding: 7px 12px; }
  .demo-banner p { font-size: 11px; }
  .demo-banner strong { font-size: 12px; }
  .demo-label { margin-top: 1px; }
  .section-heading { align-items: flex-start; flex-wrap: wrap; margin-bottom: 20px; gap: 14px; }
  .section-heading > div { flex: 1 1 180px; }
  .section-heading p { font-size: 12px; }
  .section-heading > .button { margin-left: auto; font-size: 12px; padding-left: 12px; padding-right: 12px; }
  .metric-grid { gap: 10px; margin-bottom: 22px; }
  .metric { padding: 17px 14px; }
  .metric h3 { font-size: 11px; }
  .metric-value { font-size: 24px; }
  .metric .small { font-size: 10px; }
  .panel-heading { padding: 14px 16px; flex-wrap: wrap; }
  .panel-heading .text-button { font-size: 11px; }
  .panel-empty { padding: 20px 16px; }
  .task-row { padding: 16px; flex-wrap: wrap; gap: 10px; }
  .task-main { flex-basis: calc(100% - 80px); }
  .task-row > .button { margin-left: auto; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .data-table tr { padding: 17px 16px; border-bottom: 1px solid var(--line); }
  .data-table tr:last-child { border-bottom: 0; }
  .data-table td { padding: 5px 0; border: 0; font-size: 12px; display: grid; grid-template-columns: 105px minmax(0, 1fr); column-gap: 12px; align-items: start; }
  .data-table td::before { content: attr(data-label); color: var(--muted); font-size: 11px; font-weight: 400; grid-row: 1 / 6; }
  .data-table td > .cell-sub { grid-column: 2; }
  .data-table .badge { justify-self: start; }
  .data-table td > .link-stack { margin-top: -8px; margin-bottom: -6px; }
  .start-panel { display: block; padding: 22px; }
  .start-panel > .button { margin-top: 20px; }
  .customer-row { padding: 18px 16px; gap: 12px; }
  .customer-main h3 { font-size: 14px; }
  .customer-row > .button { font-size: 11px; }
  .contract-card { padding: 19px 17px 15px; }
  .contract-top { flex-wrap: wrap; gap: 14px; }
  .contract-amount { text-align: left; }
  .contract-amount strong { font-size: 24px; }
  .title-with-status h3 { font-size: 15px; }
  .contract-facts { flex-direction: column; gap: 5px; margin-top: 15px; }
  .contract-card .button { font-size: 12px; }
  .filter-bar { align-items: center; }
  .filter-bar .field { width: 200px; }
  .filter-bar > span { padding-bottom: 0; font-size: 11px; white-space: nowrap; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .settings-form { padding: 0 18px; }
  .form-section { padding-top: 24px; }
  .form-actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .dialog { max-height: calc(100dvh - 28px); }
  .dialog-header { padding: 16px; }
  .dialog-header h2 { font-size: 18px; }
  .dialog-body { padding: 20px 18px; }
  .dialog-actions { gap: 8px; }
  .dialog-actions > .button { flex: 1; }
  .dialog-actions > .primary { flex-basis: 100%; order: -1; }
  .details-list { grid-template-columns: 90px minmax(0, 1fr); gap: 14px 12px; }
  .amount-preview { padding: 15px; }
  .amount-preview strong { font-size: 23px; }
  .message-row { padding: 20px 17px; }
  .message-heading time { flex-basis: 100%; margin-top: 2px; }
  .message-row h3 { font-size: 14px; }
  .app-footer { display: block; font-size: 10px; margin-top: 38px; }
  .app-footer span { display: block; margin-top: 4px; }
  .payment-page { padding: 24px 16px; }
  .payment-brand { margin-bottom: 26px; }
  .payment-intro h1 { font-size: 24px; }
  .payment-card { padding: 24px 20px; }
  .payment-total strong { font-size: 34px; }
  .payment-card .details-list { gap: 12px 12px; }
  .payment-page .demo-banner { margin-bottom: 28px; }
  .payment-help { padding: 0 8px; }
  .method-option { padding: 16px 13px; }
  .method-description { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
