:root {
  --canvas: #f5f6f5;
  --surface: #fff;
  --ink: #1c323e;
  --muted: #687982;
  --line: #e7ebea;
  --navy: #172e3a;
  --teal: #33786b;
  --teal-soft: #eaf4f0;
  --sand: #f4efe5;
  --danger: #a4323f;
  --radius: 18px;
  --space: 20px;
  --sidebar: 238px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
button, input { max-width: 100%; }
input { min-width: 0; }
input:focus, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #7ea89a; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 29px; letter-spacing: -1px; line-height: 1.18; font-weight: 650; overflow-wrap: anywhere; }
h2 { font-size: 18px; letter-spacing: -.3px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 600; line-height: 1.5; }
ul { list-style: none; padding: 0; margin: 0; }
.icon { width: 21px; height: 21px; flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.eyebrow { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 650; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 10px; z-index: 100; background: var(--surface); padding: 10px; }
.skip-link:focus { top: 10px; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; background: var(--navy); color: #fff; font: 37px/.8 Georgia, serif; padding-bottom: 7px; letter-spacing: -3px; padding-right: 4px; }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: 2.5px; }
.brand-name > span { display: block; color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: .7px; margin-top: 1px; }
.brand-name > small { display: block; color: var(--muted); font-size: 7px; font-weight: 500; letter-spacing: .65px; text-transform: uppercase; margin-top: 1px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 11px 18px; border-radius: 10px; border: 1px solid transparent; font-size: 14px; font-weight: 550; text-align: center; transition: background .18s, transform .18s; }
.button:active { transform: translateY(1px); }
.button-primary { color: #fff; background: var(--navy); }
.button-primary:hover { background: #294957; }
.button-quiet { color: var(--ink); background: #f2f5f3; border-color: var(--line); }
.button-quiet:hover { background: #e5ede9; }
.button-light { background: #fff; color: var(--navy); }
.button-small { font-size: 12px; min-height: 42px; padding: 9px 12px; }
.icon-button { display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0; background: transparent; border: 0; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 550; color: var(--teal); min-height: 36px; }
.text-link:hover { text-decoration: underline; }
.text-link .icon { width: 16px; height: 16px; }
.notice { padding: 14px 16px; border-radius: 10px; font-size: 13px; margin-bottom: 20px; overflow-wrap: anywhere; }
.notice-error { color: #8b2937; background: #fbecee; }
.notice-success { color: #265f50; background: var(--teal-soft); }
.notice-warning { color: #6f5421; background: var(--sand); }
.notice ul { margin-top: 10px; }
.notice li + li { margin-top: 6px; }
.auth-body { background: var(--surface); }
.auth-layout { min-height: 100svh; }
.auth-story { display: none; }
.auth-main { min-height: 100svh; padding: 32px 24px 22px; display: flex; flex-direction: column; }
.auth-mobile-brand { margin-bottom: 58px; }
.auth-card { width: 100%; max-width: 390px; margin: auto; padding-bottom: 40px; }
.auth-symbol { display: grid; place-items: center; width: 48px; height: 48px; background: var(--teal-soft); color: var(--teal); border-radius: 15px; margin-bottom: 25px; }
.auth-card h1 { margin-top: 10px; font-size: 32px; }
.auth-description { margin-top: 14px; font-size: 14px; margin-bottom: 32px; }
.auth-card h1 + .notice, .auth-card h1 + .auth-form { margin-top: 32px; }
.auth-form { display: flex; flex-direction: column; }
.auth-form label { font-size: 13px; font-weight: 550; margin-bottom: 8px; }
.auth-form > input, .password-field { margin-bottom: 22px; }
.auth-form input:not([type=hidden]) { width: 100%; border: 1px solid #dbe2e0; border-radius: 10px; padding: 14px; background: #fafbfa; font-size: 16px; color: var(--ink); min-height: 51px; }
.auth-form input::placeholder { color: #85918f; font-size: 14px; }
.password-field { position: relative; }
.password-field input { padding-right: 50px !important; }
.password-field button { position: absolute; right: 3px; top: 3px; }
.auth-form .button { margin-top: 5px; min-height: 51px; justify-content: space-between; }
.login-help { text-align: center; font-size: 12px; color: var(--muted); margin-top: 22px; }
.login-help summary { cursor: pointer; min-height: 36px; padding: 8px; list-style: none; }
.login-help summary::-webkit-details-marker { display: none; }
.login-help p { background: var(--canvas); border-radius: 10px; padding: 14px; text-align: left; }
.auth-extra { margin-top: 8px; }
.auth-extra > .text-link, .auth-extra > form { display: flex; justify-content: center; }
.auth-extra button.text-link { background: none; border: 0; padding: 0; }
.account-email { color: var(--muted); margin-bottom: 20px; overflow-wrap: anywhere; }
.sidebar { display: none; }
.workspace { min-width: 0; }
.topbar { height: 78px; padding: 0 var(--space); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--surface); }
.mobile-brand .brand-mark { width: 36px; height: 36px; font-size: 32px; border-radius: 10px; }
.mobile-brand .brand-name { font-size: 13px; }
.mobile-brand .brand-name > span { font-size: 8px; }
.mobile-brand .brand-name > small { font-size: 6px; }
.workspace-label, .profile-text { display: none; }
.avatar { display: grid; place-items: center; border-radius: 50%; background: #e7eddf; color: #435743; width: 37px; height: 37px; font-size: 12px; font-weight: 600; }
.main-content { max-width: 1360px; margin: 0 auto; padding: 28px var(--space) calc(100px + env(safe-area-inset-bottom)); min-height: calc(100svh - 180px); }
.page-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.page-heading .eyebrow { color: var(--teal); margin-bottom: 10px; }
.page-heading .muted { margin-top: 9px; font-size: 13px; }
.welcome-panel { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 25px; position: relative; overflow: hidden; }
.welcome-panel .eyebrow { color: #b5ccc8; font-size: 9px; }
.welcome-panel h2 { font: 32px/1.16 Georgia, "Times New Roman", serif; letter-spacing: -.5px; margin: 15px 0 12px; }
.welcome-panel p { font-size: 12px; max-width: 260px; color: #bacbcf; }
.welcome-panel .button { margin-top: 22px; font-size: 12px; min-height: 42px; }
.welcome-art { display: none; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 16px 0 25px; }
.stat-card { position: relative; padding: 15px 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; }
.stat-card > span:first-child { display: block; color: var(--muted); font-size: 10px; min-height: 30px; }
.stat-card strong { display: block; font-size: 28px; font-weight: 550; letter-spacing: -1px; margin-top: 6px; }
.stat-card > .icon, .stat-dot { display: none; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel + .panel { margin-top: 24px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 19px 18px; border-bottom: 1px solid var(--line); }
.section-heading h2 { font-size: 16px; }
.section-heading .text-link { flex-shrink: 0; }
.overview-grid { display: grid; gap: 22px; }
.overview-grid .panel + .panel { margin-top: 0; }
.event-row { display: flex; gap: 12px; padding: 21px 17px; }
.event-row + .event-row { border-top: 1px solid var(--line); }
.event-icon { display: none; flex-shrink: 0; width: 37px; height: 42px; border-radius: 10px; place-items: center; }
.event-blue { color: #557994; background: #edf3f8; }
.event-green { color: var(--teal); background: var(--teal-soft); }
.event-sand { color: #917449; background: var(--sand); }
.event-neutral { color: var(--muted); background: var(--canvas); }
.event-content { min-width: 0; width: 100%; }
.event-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.event-top time { font-size: 10px; color: var(--muted); white-space: nowrap; }
.badge { display: inline-block; max-width: 100%; width: fit-content; font-size: 10px; font-weight: 500; line-height: 1.4; padding: 5px 8px; border-radius: 6px; overflow-wrap: anywhere; }
.badge-green { color: #2c6958; background: var(--teal-soft); }
.badge-blue { color: #3f6581; background: #ecf2f8; }
.badge-sand { color: #82662e; background: var(--sand); }
.badge-neutral { color: #59696f; background: #f0f2f3; }
.badge-red { color: var(--danger); background: #fbecee; }
.event-content h3 { margin-bottom: 5px; overflow-wrap: anywhere; }
.event-debtor { display: block; color: #47676b; font-size: 12px; overflow-wrap: anywhere; }
.event-debtor:hover { text-decoration: underline; }
.event-debtor span { color: var(--muted); display: block; margin-top: 2px; font-size: 11px; }
.event-summary { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 10px; overflow-wrap: anywhere; white-space: pre-line; }
.event-bottom { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.debtor-row { display: grid; grid-template-columns: minmax(0, 1fr) 16px; column-gap: 8px; row-gap: 9px; padding: 19px 17px; transition: background .2s; }
.debtor-row:hover { background: #fafcfb; }
.debtor-list li + li { border-top: 1px solid var(--line); }
.case-icon { display: none; }
.debtor-info { min-width: 0; }
.debtor-info h3 { font-size: 14px; overflow-wrap: anywhere; }
.debtor-info p { color: var(--muted); font-size: 11px; margin-top: 5px; }
.debtor-meta { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.debtor-meta .small { font-size: 10px; }
.row-chevron { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 16px; color: #95a4a5; }
.bottom-nav { position: fixed; z-index: 10; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-around; background: #fff; border-top: 1px solid var(--line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
.nav-link { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; border-radius: 10px; min-width: 64px; min-height: 49px; padding: 5px 8px; }
.nav-link.is-active { color: var(--teal); background: var(--teal-soft); }
.nav-link { position: relative; }
.nav-badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; padding: 1px 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.chat-panel { display: flex; flex-direction: column; gap: 14px; padding: 16px; max-width: 980px; }
.chat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; max-height: 60svh; overflow-y: auto; overscroll-behavior: contain; }
.chat-message { display: flex; flex-direction: column; max-width: 85%; }
.chat-customer { align-self: flex-end; align-items: flex-end; }
.chat-team { align-self: flex-start; }
.chat-bubble { border-radius: 14px; padding: 10px 13px; background: var(--canvas); border: 1px solid var(--line); overflow-wrap: anywhere; }
.chat-customer .chat-bubble { background: var(--teal-soft); border-color: transparent; }
.chat-bubble p { margin: 0; }
.chat-quote { margin: 0 0 6px; padding-left: 8px; border-left: 3px solid var(--line); color: var(--muted); font-size: 12px; }
.chat-meta { margin-top: 4px; color: var(--muted); font-size: 11px; }
.chat-form { display: flex; align-items: flex-end; gap: 8px; }
.chat-form textarea { flex: 1; min-width: 0; border: 1px solid #dbe2e0; border-radius: 12px; padding: 12px 14px; background: #fafbfa; font: inherit; font-size: 16px; line-height: 1.4; color: var(--ink); resize: none; min-height: 48px; max-height: 35vh; overflow-y: auto; }
.chat-form textarea:focus { outline: 3px solid #7ea89a; outline-offset: 3px; }
.chat-send { flex: none; min-height: 48px; min-width: 48px; padding: 0 14px; }
.chat-send span { display: none; }
.chat-hint { margin: 0; display: none; }
/* Чат на весь экран: прокручивается только лента, поле ввода всегда видно.
   --app-height — видимая высота с учётом клавиатуры, её ставит app.js. */
.chat-page .workspace { display: flex; flex-direction: column; height: var(--app-height, 100dvh); }
.chat-page .topbar { flex: none; }
.chat-page .main-content { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; padding: 10px 10px calc(74px + env(safe-area-inset-bottom)); }
.chat-page .chat-panel { flex: 1; min-height: 0; width: 100%; margin: 0 auto; padding: 10px; gap: 10px; }
.chat-page .chat-list { flex: 1; min-height: 0; max-height: none; padding: 4px 2px; }
.chat-page .empty-state { flex: 1; }
.chat-page.keyboard .bottom-nav { display: none; }
.chat-page.keyboard .main-content { padding-bottom: 8px; }
.search-form { display: flex; gap: 10px; align-items: center; margin: 17px; padding: 0 0 0 13px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfa; }
.search-form > .icon { width: 17px; color: var(--muted); }
.search-form input { width: 100%; border: 0; background: transparent; padding: 13px 0; color: var(--ink); font-size: 14px; }
.search-form .button { padding: 9px; min-height: 44px; border: 0; border-radius: 0 9px 9px 0; font-size: 12px; }
.filter-tabs { display: flex; gap: 4px; padding: 0 12px 15px; border-bottom: 1px solid var(--line); }
.filter-tab { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 5px; padding: 9px; min-height: 42px; font-size: 11px; color: var(--muted); border-radius: 8px; }
.filter-tab span { font-size: 10px; opacity: .8; }
.filter-tab.is-active { color: var(--teal); background: var(--teal-soft); font-weight: 600; }
.pagination { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.empty-state { text-align: center; padding: 50px 24px; color: var(--muted); }
.empty-state > .icon { width: 34px; height: 34px; margin-bottom: 15px; opacity: .55; }
.empty-state h3 { color: var(--ink); margin-bottom: 6px; }
.empty-state p { max-width: 320px; margin: 0 auto; font-size: 13px; }
.back-link { display: inline-flex; gap: 7px; align-items: center; font-size: 12px; color: var(--teal); margin-bottom: 20px; min-height: 35px; }
.back-link .icon { width: 17px; }
.case-summary > .text-link { margin: 0 20px 22px; }
.facts-grid { display: grid; gap: 20px; padding: 22px; margin: 0; }
.facts-grid dt { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.facts-grid dd { font-size: 14px; font-weight: 500; margin: 0; overflow-wrap: anywhere; }
.profile-panel { padding: 28px 23px; max-width: 700px; }
.profile-symbol { display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); width: 60px; height: 60px; border-radius: 18px; margin-bottom: 20px; }
.profile-panel > .muted { margin-top: 4px; }
.profile-panel .facts-grid { padding: 25px 0; }
.push-panel { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.push-panel h2 { margin: 0; }
.push-panel [hidden] { display: none; }
.push-status { margin: 0; font-weight: 600; }
.profile-help { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 22px; }
.admin-info { background: var(--teal-soft); padding: 18px; border-radius: 12px; margin-bottom: 22px; }
.admin-info p { font-size: 13px; margin-bottom: 7px; }
.admin-info .icon { width: 17px; margin-right: 5px; }
.users-grid { display: grid; gap: 18px; }
.user-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.user-card-heading { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.user-card-heading > div { min-width: 0; overflow-wrap: anywhere; }
.user-card-heading p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.user-company { font-size: 13px; font-weight: 500; margin-bottom: 7px; }
.user-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.outbox-link { margin-bottom: 20px; }
.company-directory { margin-bottom: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 16px 20px; }
.company-directory summary { cursor: pointer; font-size: 13px; font-weight: 600; min-height: 30px; }
.company-directory summary span { margin-left: 8px; color: var(--muted); }
.company-directory li { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13px; }
.mail-preview { padding: 20px; border-bottom: 1px solid var(--line); }
.mail-preview pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 13px; }
.mail-preview h3 { overflow-wrap: anywhere; }
.journal-row { padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; }
.journal-row time { display: block; color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.page-actions { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.form-panel { padding: 20px; max-width: 720px; }
.application-form { display: flex; flex-direction: column; gap: 18px; }
.application-form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.application-form fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 18px; }
.application-form legend { font-weight: 600; font-size: 16px; padding: 0; margin-bottom: 4px; }
.application-form .button { align-self: flex-start; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13px; font-weight: 550; }
.form-field input, .form-field textarea { width: 100%; border: 1px solid #dbe2e0; border-radius: 10px; padding: 12px 14px; background: #fafbfa; font: inherit; font-size: 16px; color: var(--ink); min-height: 48px; }
.form-field textarea { resize: vertical; }
.form-field textarea:focus { outline: 3px solid #7ea89a; outline-offset: 3px; }
.field-hint { margin: 0; color: var(--muted); font-size: 12px; }
.required { color: var(--danger); }
.panel-hint { margin: 0; padding: 14px 20px 4px; }
.install-panel { padding: 24px 20px; max-width: 700px; }
.install-offer > * + * { margin-top: 16px; }
.install-offer [hidden] { display: none; }
.install-platform { border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; }
.install-platform summary { cursor: pointer; font-weight: 600; min-height: 48px; display: flex; align-items: center; }
.install-steps { margin: 0 0 16px; padding-left: 20px; }
.install-steps li + li { margin-top: 8px; }
.installed-note { display: none; align-items: center; gap: 8px; margin: 0; color: var(--teal); font-weight: 600; }
.install-public { max-width: 700px; margin: 0 auto; padding: 24px 16px calc(40px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 20px; }
.install-public h1 { margin: 0; }
.offline-page { min-height: 100svh; display: flex; padding: 24px 16px; }
@media (display-mode: standalone) {
  .install-link { display: none !important; }
  .installed-note { display: flex; }
  .install-offer { display: none; }
}
@media (min-width: 600px) {
  :root { --space: 32px; }
  h1 { font-size: 33px; }
  .stats-grid { gap: 17px; margin-top: 22px; }
  .stat-card { padding: 22px; }
  .stat-card > span:first-child { font-size: 12px; min-height: auto; }
  .stat-card strong { font-size: 34px; margin-top: 10px; }
  .stat-card > .icon { display: block; position: absolute; bottom: 25px; right: 22px; color: #8da29c; }
  .stat-dot { display: block; position: absolute; bottom: 31px; right: 26px; width: 8px; height: 8px; border-radius: 50%; background: #6b9c88; box-shadow: 0 0 0 5px var(--teal-soft); }
  .welcome-panel { padding: 32px; display: flex; align-items: center; justify-content: space-between; }
  .welcome-panel h2 { font-size: 38px; }
  .welcome-panel p { max-width: 310px; }
  .welcome-art { display: grid; place-items: center; width: 160px; height: 160px; border: 1px solid #ffffff18; border-radius: 50%; margin-right: 8px; box-shadow: 0 0 0 25px #ffffff05, 0 0 0 50px #ffffff03; transform: rotate(-10deg); }
  .welcome-art .icon { width: 65px; height: 65px; stroke-width: .65; color: #c0d0c9; }
  .event-icon { display: grid; }
  .event-row { padding: 23px; gap: 16px; }
  .event-top time { font-size: 11px; }
  .event-debtor span { display: inline; margin-left: 4px; }
  .section-heading { padding: 20px 23px; }
  .debtor-row { grid-template-columns: 42px minmax(0, 1fr) minmax(110px, auto) 16px; align-items: center; gap: 15px; padding: 22px; }
  .case-icon { display: grid; place-items: center; width: 40px; height: 44px; border-radius: 11px; background: var(--canvas); color: #708887; }
  .debtor-meta { grid-column: 3; grid-row: 1; flex-direction: column; align-items: flex-end; }
  .row-chevron { grid-column: 4; grid-row: 1; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px; padding: 27px; }
  .filter-tabs { padding-left: 22px; gap: 8px; }
  .filter-tab { font-size: 12px; padding: 10px 14px; }
  .search-form { margin: 22px; }
}
@media (min-width: 600px) {
  .chat-send span { display: inline; }
}
@media (min-width: 900px) {
  .chat-page .main-content { padding: 20px var(--space) 20px; }
  .chat-page .chat-panel { padding: 16px; }
  .chat-hint { display: block; }
  .auth-layout { display: grid; grid-template-columns: minmax(360px, .95fr) 1.05fr; }
  .auth-story { display: flex; flex-direction: column; padding: 48px; background: var(--navy); color: #fff; position: relative; overflow: hidden; }
  .auth-story::after { content: ""; position: absolute; width: 700px; height: 700px; border: 1px solid #ffffff0b; border-radius: 50%; left: 40%; top: 32%; box-shadow: 0 0 0 65px #ffffff03, 0 0 0 130px #ffffff02; pointer-events: none; }
  .auth-story .brand-mark { background: #ffffff14; }
  .auth-story .brand-name > span { color: #a9bebf; }
  .auth-story .brand-name > small { color: #80999a; }
  .story-content { position: relative; z-index: 1; padding: 70px 0; margin: auto 0; }
  .story-content h2 { font: 49px/1.14 Georgia, serif; margin: 25px 0; letter-spacing: -1.5px; }
  .story-content p { font-size: 14px; line-height: 1.8; color: #b5c7cc; max-width: 350px; }
  .auth-main { padding: 48px; }
  .auth-mobile-brand { display: none; }
  .auth-card { padding: 40px 0; }
  .auth-card h1 { font-size: 34px; }
  .app-layout { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
  .sidebar { display: flex; flex-direction: column; position: sticky; top: 0; height: 100svh; background: #fff; border-right: 1px solid var(--line); padding: 35px 22px 24px; }
  .sidebar > .brand { margin-left: 7px; }
  .sidebar nav { display: flex; flex-direction: column; gap: 8px; margin-top: 49px; }
  .sidebar .nav-link { flex-direction: row; gap: 13px; font-size: 13px; padding: 13px 15px; min-height: 48px; }
  .sidebar .nav-link:hover { background: var(--canvas); }
  .sidebar .nav-link.is-active { background: var(--teal-soft); font-weight: 600; }
  .sidebar .nav-badge { position: static; margin-left: auto; }
  .sidebar-bottom { margin-top: auto; }
  .logout-button { width: 100%; display: flex; align-items: center; gap: 12px; color: var(--muted); border: 0; border-top: 1px solid var(--line); background: transparent; padding: 22px 12px 0; font-size: 12px; margin-top: 10px; }
  .logout-button .icon { width: 18px; }
  .bottom-nav, .mobile-brand { display: none; }
  .topbar { height: 88px; }
  .workspace-label { display: inline-flex; gap: 10px; align-items: center; color: var(--muted); font-size: 12px; }
  .workspace-label .icon { width: 17px; }
  .profile-link { display: flex; gap: 13px; align-items: center; }
  .profile-text { display: block; font-size: 12px; text-align: right; }
  .main-content { padding-top: 35px; padding-bottom: 40px; }
  .users-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  :root { --space: 42px; --sidebar: 250px; }
  .overview-grid { grid-template-columns: minmax(0, 1.45fr) minmax(290px, 1fr); align-items: start; }
  .overview-debtors .debtor-row { grid-template-columns: minmax(0, 1fr) 16px; gap: 8px; }
  .overview-debtors .case-icon { display: none; }
  .overview-debtors .debtor-meta { grid-column: 1; grid-row: 2; align-items: flex-start; flex-direction: row; }
  .overview-debtors .row-chevron { grid-column: 2; grid-row: 1 / 3; }
  .welcome-panel { padding: 35px 38px; }
  .welcome-panel h2 { font-size: 41px; }
  .welcome-art { margin-right: 65px; }
  .auth-story { padding: 55px 65px; }
  .story-content h2 { font-size: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
