.app-mode {
  --ink: #183a30;
  --muted: #51685e;
  --ground: #ffffff;
  --blue: #21634f;
  --blue-soft: #ffffff;
  --line: #d4dfd8;
  background: var(--ground);
  color: var(--ink);
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: 14px;
  scrollbar-color: #d4dfd8 #ffffff;
}
.app-mode #stage { max-width: none; padding: 0; min-height: 100svh; }
.app-mode ::selection { background: #ffffff; color: #164b3e; }
.app-mode input { caret-color: #21634f; }
.app-mode :is(button, a, input, select, textarea):focus-visible { outline: 3px solid #21634f; outline-offset: 3px; }
.app-mode a { text-underline-offset: 4px; }
.app-mode :is(h1,h2,h3) { letter-spacing: -.025em; }
.app-mode .btn { border-radius: 24px; min-height: 44px; font-size: 13px; padding: 11px 19px; background: #21634f; color: white; border: 1px solid transparent; }
.app-mode .btn:hover { background: #164b3e; }
.app-mode .btn:active { background: #103c31; }
.app-mode .btn.secondary { background: #ffffff; color: #21634f; }
.app-mode .btn.secondary:hover { background: #ffffff; }
.app-mode .btn.ghost { background: transparent; color: #51685e; padding-inline: 6px; }
.app-mode .btn.ghost:hover { background: #ffffff; color: #21634f; }
.app-mode .btn.danger { background: #9f3137; color: white; }
.app-mode .btn.small { min-height: 38px; padding: 8px 13px; font-size: 12px; }
.app-mode .btn:disabled { opacity: .5; cursor: not-allowed; }
.app-mode .live-workspace { display: grid; grid-template-columns: 228px minmax(0,1fr); min-height: 100svh; border-radius: 0; box-shadow: none; overflow: visible; background: var(--ground); }
.app-mode .app-sidebar { position: sticky; top: 0; height: 100svh; padding: 37px 18px 24px; background: white; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 42px; }
.app-mode .app-brand { display: flex; align-items: center; gap: 10px; color: #183a30; font-weight: 800; font-size: 30px; letter-spacing: -.04em; padding: 0 14px; }
.app-mode .app-brand .brand-mark { width: 25px; height: 28px; background: #21634f; }
.app-mode .app-nav { display: grid; gap: 8px; }
.app-mode .app-nav button { display: flex; align-items: center; gap: 13px; padding: 13px 16px; background: transparent; border: 0; color: #51685e; font-size: 13px; font-weight: 500; min-height: 47px; border-radius: 12px; text-align: left; width: 100%; }
.app-mode .app-nav button:hover { color: #21634f; background: #ffffff; }
.app-mode .app-nav button.active { background: #ffffff; color: #21634f; font-weight: 700; }
.desktop-history { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.app-mode .sidebar-bottom { margin-top: auto; gap: 15px; padding-top: 0; border-top: 0; }
.sidebar-caption { padding-inline: 14px; color: #51685e; font-size: 12px; }
.sidebar-profile { background: transparent; border: 0; display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 7px; color: #183a30; border-radius: 10px; }
.sidebar-profile:hover { background: #ffffff; }
.sidebar-profile > span:nth-child(2) { min-width: 0; flex: 1; }
.sidebar-profile strong { display: block; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.sidebar-profile small { display: block; font-size: 12px; color: #51685e; margin-top: 4px; }
.profile-avatar { display: inline-grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: #ffffff; color: #21634f; font-size: 12px; font-weight: 700; }
.sidebar-logout { display: flex; align-items: center; gap: 10px; min-height: 42px; background: transparent; border: 0; color: #51685e; font-size: 12px; padding: 10px 14px; border-radius: 10px; }
.sidebar-logout:hover { background: #ffffff; color: #183a30; }
.workspace-main { min-width: 0; }
.workspace-header { min-height: 83px; padding: 18px 38px; background: white; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.workspace-date { font-size: 12px; color: #51685e; }
.header-account { display: flex; align-items: center; gap: 11px; max-width: 340px; background: transparent; border: 0; color: #183a30; font-size: 12px; text-align: left; border-radius: 24px; padding: 3px 8px 3px 3px; min-height: 44px; }
.header-account:hover { background: #ffffff; }
.header-account > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-brand { display: none; }
.app-mode .live-workspace .app-content { padding: 36px 38px 28px; max-width: 1480px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px; min-width: 0; background: transparent; }
.app-mode .app-top { align-items: center; gap: 24px; }
.app-mode #view-heading:focus { outline: none; }
.app-mode .app-top h1 { font-size: 29px; line-height: 1.25; font-weight: 700; }
.app-mode .app-top p { font-size: 13px; margin-top: 8px; color: #51685e; }
.app-top .btn { flex-shrink: 0; }
.overview-toolbar { display: flex; align-items: flex-end; justify-content: flex-start; flex-wrap: wrap; gap: 12px; }
.overview-toolbar .filter-period { width: 225px; min-width: 0; }
.overview-toolbar > .btn { flex-shrink: 0; }
.overview-empty-charts > summary { cursor: pointer; color: var(--action); min-height: 44px; padding-block: 10px; }
.overview-empty-charts > .overview-charts { margin-top: 14px; }
.app-mode .filter-period { gap: 6px; max-width: 225px; font-size: 12px; color: #51685e; }
.app-mode .filter-period input { border-radius: 9px; border-color: #d4dfd8; background: white; color: #183a30; min-height: 42px; font-size: 13px; padding: 9px 12px; }
.app-mode .summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.app-mode .summary-item { display: flex; flex-direction: column; gap: 13px; min-width: 0; padding: 23px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.summary-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #51685e; }
.summary-label svg { color: #21634f; }
.app-mode .live-workspace .summary-item .label { font-size: 12px; font-weight: 500; }
.app-mode .live-workspace .summary-item .value { font-size: clamp(23px,2.1vw,34px); font-weight: 700; line-height: 1.25; letter-spacing: -.03em; }
.app-mode .live-workspace .summary-item .value.large-money { font-size: clamp(18px,1.8vw,29px); }
.app-mode .live-workspace .summary-item .hint { font-size: 12px; color: #51685e; }
.app-mode .summary-item:nth-child(2) .label { color: #ffffff; }
.app-mode .summary-item:nth-child(2) { background: #164b3e; border-color: #164b3e; color: white; }
.app-mode .summary-item:nth-child(2) :is(.summary-label,.hint), .app-mode .summary-item:nth-child(2) .summary-label svg { color: #ffffff; }
.overview-charts { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); gap: 22px; }
.finance-panel { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 25px; }
.app-mode .section-head { align-items: flex-start; margin-bottom: 24px; gap: 16px; }
.app-mode .finance-panel h2, .app-mode .account-section h2 { font-size: 16px; line-height: 1.4; font-weight: 700; }
.app-mode .section-head p { font-size: 12px; color: #51685e; margin-top: 6px; line-height: 1.6; }
.section-head > svg { color: #21634f; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: #51685e; margin-bottom: 25px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.legend-produced { background: #164b3e; }
.legend-received { background: #47836c; }
.trend-chart { display: flex; height: 194px; gap: 12px; }
.chart-y { display: flex; flex-direction: column; justify-content: space-between; color: #51685e; font-size: 12px; width: 33px; flex-shrink: 0; padding-bottom: 28px; text-align: right; }
.chart-plot { position: relative; flex: 1; min-width: 0; }
.chart-grid { position: absolute; inset: 0 0 28px; display: flex; flex-direction: column; justify-content: space-between; }
.chart-grid span { border-top: 1px solid #d4dfd8; width: 100%; }
.chart-columns { height: 100%; display: flex; gap: 12px; position: relative; }
.chart-month { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chart-pair { height: calc(100% - 28px); display: flex; align-items: flex-end; justify-content: center; gap: 5px; }
.chart-bar { width: 23px; max-width: 40%; border-radius: 5px 5px 0 0; }
.chart-bar.produced { background: #164b3e; }
.chart-bar.received { background: #47836c; }
.chart-month-label { display: block; font-size: 12px; line-height: 28px; color: #51685e; text-align: center; }
.chart-empty { font-size: 12px; color: #51685e; line-height: 1.7; margin-top: 18px; }
.chart-details { margin-top: 22px; font-size: 12px; color: #51685e; }
.chart-details summary { cursor: pointer; width: fit-content; padding-block: 6px; }
.chart-details summary:hover { color: #21634f; }
.chart-details summary:focus-visible { outline: 3px solid #21634f; outline-offset: 3px; }
.app-mode .chart-details table { min-width: 360px; }
.app-mode .chart-details th, .app-mode .chart-details td { font-size: 12px; padding: 12px 8px; }
.forecast-chart { display: grid; gap: 23px; margin-top: 31px; }
.forecast-row > div:first-child { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; }
.forecast-row strong { font-size: 13px; }
.forecast-track { height: 7px; background: #ffffff; border-radius: 5px; margin-top: 11px; overflow: hidden; }
.forecast-track > span { display: block; height: 100%; background: #47836c; border-radius: inherit; }
.forecast-row:first-child .forecast-track > span { background: #164b3e; }
.forecast-note { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 19px; margin-top: 25px; font-size: 12px; color: #51685e; }
.forecast-note strong { color: #183a30; font-size: 13px; }
.panel-note { color: #51685e; font-size: 12px; line-height: 1.7; margin-top: 14px; }
.overview-lists { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; }
.app-mode .receivable { padding: 19px 0; align-items: flex-start; gap: 16px; }
.app-mode .receivable:last-child { border-bottom: 0; padding-bottom: 0; }
.app-mode .receivable .name { font-size: 13px; font-weight: 600; }
.app-mode .receivable .detail { font-size: 12px; line-height: 1.8; color: #51685e; margin-top: 5px; }
.app-mode .receivable .right { gap: 9px; }
.app-mode .receivable .right > strong { font-size: 14px; }
.app-mode .badge { font-size: 12px; font-weight: 600; border-radius: 6px; padding: 5px 8px; }
.panel-empty { color: #51685e; font-size: 13px; padding: 20px 0 30px; line-height: 1.8; }
.schedule-row { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.schedule-date { width: 46px; height: 54px; flex-shrink: 0; border-radius: 10px; background: #ffffff; color: #21634f; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.schedule-date strong { font-size: 20px; line-height: 1; }
.schedule-date span { font-size: 12px; }
.schedule-info { flex: 1; min-width: 0; }
.schedule-info h3 { font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.schedule-info p { font-size: 12px; color: #51685e; margin-top: 5px; }
.overview-lists .block { margin-top: 22px; }
.app-mode .empty-state { padding: 38px 24px; border: 1px dashed #d4dfd8; border-radius: 14px; background: #ffffff; }
.app-mode .empty-state h3 { font-size: 19px; }
.app-mode .empty-state p { font-size: 13px; max-width: 44ch; }
.app-mode .empty-symbol { background: #ffffff; color: #21634f; }
.app-mode .sync-status { font-size: 12px; gap: 7px; color: #51685e; flex-wrap: wrap; padding-top: 5px; }
.app-mode .sync-status .btn { margin-left: auto; font-size: 12px; min-height: 34px; }
.sync-dot { width: 6px; height: 6px; flex-shrink: 0; background: #21634f; border-radius: 50%; }
.sync-dot.is-stale { background: #795718; }
.app-mode .filters { gap: 12px; margin: 0; }
.app-mode .filter-input { background: white; border: 1px solid #d4dfd8; color: #183a30; min-height: 45px; padding: 11px 14px; border-radius: 10px; font-size: 13px; }
.app-mode .filter-input::placeholder { color: #51685e; }
.app-mode .view-controls { align-items: center; }
.app-mode .view-options { padding: 4px; background: #ffffff; border-radius: 24px; gap: 0; }
.app-mode .view-options button { border: 0; min-height: 37px; border-radius: 22px; font-size: 12px; padding: 8px 17px; color: #51685e; }
.app-mode .view-options button.active { background: white; color: #21634f; }
.app-mode .table-wrap { border: 1px solid var(--line); background: white; border-radius: 14px; width: 100%; max-width: 100%; }
.app-mode table { border-collapse: collapse; min-width: 580px; width: 100%; }
.app-mode table th { font-size: 12px; background: #ffffff; color: #51685e; padding: 16px 20px; }
.app-mode table td { padding: 20px; font-size: 13px; border-bottom: 1px solid var(--line); }
.app-mode table tbody tr:last-child td { border-bottom: 0; }
.app-mode table td strong { font-weight: 600; }
.app-mode .live-workspace table td .small-text { font-size: 12px; max-width: 36ch; line-height: 1.8; margin-top: 5px; }
.app-mode .table-actions { gap: 8px; }
.app-mode .live-workspace table td .btn { min-height: 36px; font-size: 12px; }
.app-mode .pagination { font-size: 12px; }
.app-mode .calendar { background: white; border: 1px solid var(--line); padding: 15px; border-radius: 14px; gap: 6px; }
.app-mode .calendar .day { border-radius: 8px; background: #ffffff; border: 1px solid #ffffff; }
.app-mode .calendar .has-shift { background: #ffffff; }
.calendar-day-count { display: none; }
.app-mode .calendar .day:hover { border-color: #21634f; }
.app-mode .inline-info { background: transparent; padding: 0; border: 0; font-size: 12px; line-height: 1.8; color: #51685e; }
.app-mode .receiving-total { background: #164b3e; color: white; border-radius: 14px; padding: 26px; }
.receiving-total > span { font-size: 12px; color: #ffffff; }
.receiving-total > strong { display: block; font-size: 31px; line-height: 1.2; margin-top: 12px; font-weight: 700; letter-spacing: -.03em; }
.receiving-total p { font-size: 12px; color: #ffffff; margin-top: 12px; }
.app-mode .payer { padding: 22px 25px; background: white; border: 1px solid var(--line); border-radius: 14px; gap: 22px; }
.app-mode .payer-info h3 { font-size: 15px; margin-bottom: 10px; }
.app-mode .payer-info p { color: #51685e; font-size: 12px; line-height: 1.8; }
.account-identity { display: flex; align-items: center; gap: 17px; padding-bottom: 5px; }
.profile-avatar.large { width: 62px; height: 62px; font-size: 20px; }
.account-identity h2 { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.account-identity p { font-size: 12px; color: #51685e; margin-top: 5px; overflow-wrap: anywhere; }
.account-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; align-items: start; }
.app-mode .account-section { display: flex; flex-direction: column; gap: 22px; margin: 0; border-bottom: 1px solid var(--line); }
.app-mode .account-section .section-head { margin: 0; }
.app-mode .account-section .badge { align-self: flex-start; }
.app-mode .live-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 20px; min-width: 0; }
.app-mode .live-form fieldset:disabled { opacity: .6; }
.app-mode .field { font-size: 12px; color: #183a30; gap: 8px; max-width: none; }
.app-mode .field input, .app-mode .field select, .app-mode .field textarea { min-height: 47px; border: 1px solid #82988c; border-radius: 8px; padding: 12px 13px; font-size: 14px; background: #ffffff; color: #183a30; width: 100%; min-width: 0; }
.app-mode .field :is(input,select,textarea):focus { background: white; border-color: #21634f; }
.app-mode .field input[readonly] { color: #51685e; background: #ffffff; }
.app-mode .field input::placeholder { color: #51685e; }
.app-mode .safety-note { color: #51685e; font-size: 12px; line-height: 1.8; }
.app-mode .account-section .safety-note { font-size: 12px; }
.app-mode .account-section .small-text { font-size: 12px; line-height: 1.8; }
.account-links { display: grid; }
.account-links > :is(a,button) { display: flex; align-items: center; gap: 13px; padding: 17px 0; min-height: 68px; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: #183a30; text-align: left; }
.account-links > :last-child { border-bottom: 0; }
.account-links > :is(a,button) > svg:first-child { color: #21634f; }
.account-links > :is(a,button) > svg:last-child { margin-left: auto; color: #51685e; }
.account-links strong { display: block; font-size: 12px; font-weight: 600; }
.account-links small { display: block; font-size: 12px; color: #51685e; margin-top: 5px; }
.account-links > :is(a,button):hover { color: #21634f; }
.account-status-line { display: flex; justify-content: space-between; gap: 15px; font-size: 12px; }
.account-status-line strong { font-size: 12px; font-weight: 600; }
.install-help { background: #ffffff; padding: 14px; border-radius: 9px; font-size: 12px; color: #183a30; }
.app-mode .logout-button { align-self: flex-start; background: #ffffff; color: #9f3137; }
.app-mode .logout-button:hover { background: #ffffff; }
.app-mode .audit-item { display: flex; align-items: flex-start; gap: 15px; padding: 22px 0; }
.audit-symbol { width: 35px; height: 35px; display: grid; place-items: center; background: #ffffff; color: #21634f; border-radius: 50%; flex-shrink: 0; }
.app-mode .audit-item h3 { font-size: 13px; line-height: 1.6; }
.app-mode .audit-item p { font-size: 12px; margin-top: 5px; }
.app-mode dialog { max-height: min(90svh,900px); border-radius: 16px; }
.app-mode .dialog-body { padding: 28px; }
.app-mode .dialog-head h2 { font-size: 21px; }
.app-mode .dialog-actions { gap: 10px; }
.app-mode .icon-btn { min-width: 38px; width: 38px; min-height: 38px; height: 38px; background: #ffffff; color: #51685e; }
.app-mode .icon-btn:hover { background: #ffffff; color: #21634f; }
.app-mode .dialog-body .field-error { font-size: 12px; }
.app-mode .detail-line { font-size: 13px; line-height: 1.7; align-items: flex-start; }
.app-mode .detail-line > :first-child { min-width: 0; overflow-wrap: anywhere; }
.app-mode .toast { font-size: 12px; background: #164b3e; bottom: 26px; border-radius: 12px; }

@media(max-width:1200px) {
  .app-mode .live-workspace { grid-template-columns: 195px minmax(0,1fr); }
  .app-mode .app-sidebar { padding-inline: 12px; }
  .app-mode .live-workspace .app-content { padding-inline: 26px; }
  .workspace-header { padding-inline: 26px; }
  .overview-charts { grid-template-columns: minmax(0,1fr); }
  .overview-lists { grid-template-columns: minmax(0,1fr); }
  .forecast-chart { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-top: 22px; }
  .forecast-row > div:first-child { flex-direction: column; align-items: flex-start; }
  .forecast-note { margin-top: 22px; }
  .account-grid { grid-template-columns: minmax(0,1fr); }
  .app-mode .summary-item { padding: 18px; gap: 12px; }
  .app-mode .live-workspace .summary-item .value { font-size: 24px; }
}
@media(max-width:900px) {
  .app-mode .live-workspace { display: block; padding-bottom: calc(85px + env(safe-area-inset-bottom)); }
  .app-mode .app-sidebar { position: fixed; inset: auto 0 0; width: 100%; height: auto; min-height: 70px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: white; border: 0; border-top: 1px solid var(--line); gap: 0; z-index: 15; }
  .app-mode .app-sidebar .app-brand, .app-mode .sidebar-bottom, .desktop-history { display: none; }
  .app-mode .app-nav { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); overflow: visible; gap: 4px; }
  .app-mode .app-nav button { display: flex; flex-direction: column; justify-content: center; gap: 5px; min-width: 0; min-height: 54px; padding: 7px 2px; font-size: 12px; border-radius: 10px; }
  .app-mode .app-nav button.active { background: #ffffff; }
  .workspace-header { position: sticky; top: 0; z-index: 10; min-height: 71px; padding: calc(14px + env(safe-area-inset-top)) 22px 14px; }
  .mobile-brand { display: flex; align-items: center; gap: 9px; font-size: 26px; font-weight: 800; letter-spacing: -.04em; }
  .mobile-brand .brand-mark { width: 22px; height: 24px; background: #21634f; }
  .workspace-date, .header-account > span:nth-child(2), .header-account > svg { display: none; }
  .header-account { padding: 0; min-width: 44px; min-height: 44px; justify-content: center; }
  .app-mode .live-workspace .app-content { padding: 26px 22px 18px; gap: 23px; }
  .app-mode .app-top h1 { font-size: 26px; }
  .app-mode .app-top p { font-size: 12px; max-width: 40ch; }
  .app-mode .app-top { align-items: flex-start; flex-wrap: nowrap; }
  .app-mode .app-top > .btn { font-size: 12px; min-height: 41px; padding: 10px 13px; }
  .app-mode .filter-period { max-width: none; width: 100%; }
  .app-mode .filter-period input { width: 100%; }
  .app-mode .live-workspace .summary-item .value { font-size: clamp(19px,3.7vw,29px); }
  .app-mode .live-workspace .summary-item .value.large-money { font-size: clamp(16px,3.1vw,23px); }
  .app-mode .summary { gap: 12px; }
  .app-mode .summary-item { padding: 18px; gap: 11px; }
  .summary-label svg { display: none; }
  .app-mode .live-workspace .summary-item .label { font-size: 12px; }
  .app-mode .live-workspace .summary-item .hint { font-size: 12px; }
  .app-mode .filters select { flex-basis: auto; }
  .app-mode .filters .filter-input { font-size: 14px; }
  .app-mode .field input, .app-mode .field select, .app-mode .field textarea { font-size: 16px; }
  .app-mode .toast { bottom: calc(89px + env(safe-area-inset-bottom)); }
  .account-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
}
@media(max-width:600px) {
  .app-mode .live-workspace .app-content { padding: 25px 18px 16px; gap: 21px; }
  .workspace-header { padding-inline: 20px; }
  .app-mode .app-top { flex-wrap: wrap; gap: 17px; }
  .app-mode .app-top > .btn { min-height: 43px; font-size: 12px; padding: 11px 17px; }
  .app-mode .app-top h1 { font-size: 27px; }
  .app-mode .summary { grid-template-columns: 1fr 1fr; gap: 12px; }
  .app-mode .summary-item { padding: 18px; gap: 11px; }
  .app-mode .summary-item:nth-child(2) { grid-column: 1 / -1; grid-row: 1; padding: 23px; }
  .app-mode .summary-item:nth-child(2) .summary-label svg { display: block; }
  .app-mode .live-workspace .summary-item:nth-child(2) .value { font-size: 34px; }
  .app-mode .live-workspace .summary-item:nth-child(2) .value.large-money { font-size: 29px; }
  .app-mode .live-workspace .summary-item .value { font-size: clamp(19px,5.3vw,25px); }
  .app-mode .live-workspace .summary-item .value.large-money { font-size: clamp(12px,3.6vw,16px); }
  .app-mode .live-workspace .summary-item .label { font-size: 12px; }
  .app-mode .live-workspace .summary-item .hint { font-size: 12px; line-height: 1.6; }
  .finance-panel { padding: 22px 19px; }
  .app-mode .finance-panel h2 { font-size: 16px; }
  .app-mode .section-head { gap: 10px; margin-bottom: 22px; }
  .app-mode .section-head > .btn { padding-inline: 2px; font-size: 12px; white-space: nowrap; }
  .chart-columns { gap: 8px; }
  .chart-pair { gap: 4px; }
  .trend-chart { height: 175px; gap: 9px; }
  .chart-bar { border-radius: 4px 4px 0 0; }
  .chart-month-label { font-size: 12px; }
  .chart-y { font-size: 12px; width: 30px; }
  .forecast-chart { grid-template-columns: 1fr; gap: 22px; }
  .forecast-row > div:first-child { flex-direction: row; font-size: 12px; }
  .forecast-row strong { font-size: 13px; }
  .account-grid { grid-template-columns: minmax(0,1fr); }
  .account-identity h2 { font-size: 16px; }
  .account-identity p { font-size: 12px; }
  .profile-avatar.large { width: 54px; height: 54px; font-size: 18px; }
  .app-mode .account-section { gap: 22px; }
  .app-mode .filters { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
  .app-mode .filters .filter-input { width: 100%; font-size: 16px; }
  .app-mode .table-wrap:not(.chart-details .table-wrap) { border: 0; background: transparent; border-radius: 0; overflow: visible; }
  .app-mode .app-content > .table-wrap > table { min-width: 0; display: block; }
  .app-mode .app-content > .table-wrap > table > thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .app-mode .app-content > .table-wrap > table > tbody { display: grid; gap: 15px; }
  .app-mode .app-content > .table-wrap tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); background: white; border: 1px solid var(--line); border-radius: 14px; padding: 18px; gap: 16px; }
  .app-mode .app-content > .table-wrap td { display: block; padding: 0; border: 0; font-size: 14px; min-width: 0; }
  .app-mode .app-content > .table-wrap td:first-child, .app-mode .app-content > .table-wrap td.row-actions, .app-mode .app-content > .table-wrap td[colspan] { grid-column: 1 / -1; }
  .app-mode .app-content > .table-wrap td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-family: "Work Sans",system-ui,sans-serif; font-size: 12px; font-weight: 400; color: #51685e; margin-bottom: 8px; }
  .app-mode .table-actions { justify-content: flex-start; border-top: 1px solid var(--line); padding-top: 15px; }
  .app-mode .live-workspace table td .btn { min-height: 39px; font-size: 12px; }
  .app-mode .calendar { padding: 9px; gap: 3px; }
  .app-mode .live-workspace .calendar .day { min-height: 62px; padding: 7px 3px; font-size: 12px; }
  .app-mode .live-workspace .calendar .calendar-chip { display: none; }
  .app-mode .calendar-day-count { display: grid; place-items: center; width: 20px; height: 20px; margin: 3px auto 0; border-radius: 5px; background: #21634f; color: white; font-size: 12px; font-weight: 600; }
  .app-mode .calendar .day-label { font-size: 12px; }
  .app-mode .payer { padding: 21px 19px; flex-wrap: wrap; }
  .app-mode .payer-info { width: 100%; }
  .app-mode .receivable { gap: 12px; }
  .app-mode .receivable .right .btn { font-size: 12px; padding: 8px 10px; min-height: 36px; }
  .app-mode .receivable .name { font-size: 12px; }
  .app-mode .receivable .detail { font-size: 12px; }
  .app-mode .receivable .right > strong { font-size: 12px; }
  .app-mode .receivable > div:first-child { min-width: 0; }
  .app-mode .receivable .right { flex-shrink: 0; }
  .app-mode .dialog-body { padding: 24px 20px; }
  .app-mode .dialog-body .form-grid { grid-template-columns: 1fr; }
  .app-mode .dialog-head h2 { font-size: 20px; }
  .app-mode .sync-status { font-size: 12px; }
}
@media(max-width:900px) {
  .app-mode .home-workspace .app-content { padding-top: 16px; gap: 12px; }
  .app-mode .home-workspace .app-top { align-items: center; flex-wrap: nowrap; gap: 12px; }
  .app-mode .home-workspace .app-top > div { flex: 1; min-width: 0; }
  .app-mode .home-workspace .app-top h1 { font-size: 24px; }
  .app-mode .home-workspace .app-top p { display: none; }
  .app-mode .home-workspace .app-top > .btn { min-height: 44px; padding: 10px 12px; font-size: 12px; gap: 7px; }
  .home-workspace .overview-toolbar { display: grid; grid-template-columns: minmax(0,1fr); justify-items: start; gap: 12px; }
  .home-workspace .overview-toolbar .filter-period { width: 100%; max-width: 225px; }
  .home-workspace .overview-toolbar .filter-period input { min-height: 48px; font-size: 16px; }
  .home-workspace .overview-toolbar > .btn { grid-row: 1; min-height: 48px; padding: 11px 14px; }
  .home-workspace .empty-state { min-height: 0; padding: 24px 20px; }
  .app-mode .home-workspace .summary { display: flex; flex-direction: column; gap: 0; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: white; }
  .app-mode .home-workspace .summary-item { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 12px; border: 0; border-radius: 8px; background: transparent; }
  .app-mode .home-workspace .summary-item:nth-child(2) { grid-column: auto; grid-row: auto; background: #164b3e; }
  .app-mode .home-workspace .summary-label { flex: 1; min-width: 0; }
  .app-mode .home-workspace .summary-item .summary-label svg { display: none; }
  .app-mode .home-workspace .summary-item .label { font-size: 12px; line-height: 1.5; }
  .app-mode .home-workspace.live-workspace .summary-item .value { font-size: 19px; flex-shrink: 0; }
  .app-mode .home-workspace.live-workspace .summary-item .value.large-money { font-size: 16px; }
  .app-mode .home-workspace .summary-item .hint { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .home-workspace .overview-charts { display: block; min-height: 298px; padding: 16px; background: white; border: 1px solid var(--line); border-radius: 14px; }
  .home-workspace .overview-charts > .finance-panel { border: 0; padding: 0; border-radius: 0; background: transparent; }
  .home-workspace .overview-charts > [hidden] { display: none; }
  .overview-chart-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 24px; background: #ffffff; margin-bottom: 10px; }
  .overview-chart-tabs button { flex: 1; min-height: 40px; border: 0; border-radius: 22px; background: transparent; color: #51685e; font-size: 12px; font-weight: 600; }
  .overview-chart-tabs button[aria-selected=true] { background: #164b3e; color: white; }
  .overview-chart-tabs button:hover { background: #ffffff; color: #21634f; }
  .overview-chart-tabs button[aria-selected=true]:hover { background: #164b3e; color: white; }
  .app-mode .home-workspace .overview-charts .section-head { margin-bottom: 10px; }
  .app-mode .home-workspace .overview-charts .section-head p { display: none; }
  .app-mode .home-workspace .trend-panel .section-head { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .home-workspace .chart-legend { margin-bottom: 12px; gap: 16px; }
  .home-workspace .trend-chart { height: 140px; }
  .home-workspace .chart-details { margin-top: 9px; }
  .home-workspace .chart-details summary { min-height: 36px; display: list-item; align-content: center; padding-block: 8px; }
  .home-workspace .chart-empty { margin-top: 8px; font-size: 12px; }
  .home-workspace .forecast-chart { grid-template-columns: 1fr; gap: 16px; margin-top: 18px; }
  .home-workspace .forecast-row > div:first-child { flex-direction: row; align-items: center; }
  .home-workspace .forecast-track { height: 6px; margin-top: 8px; }
  .home-workspace .forecast-note { margin-top: 17px; padding-top: 12px; }
  .home-workspace .forecast-panel .panel-note { margin-top: 10px; font-size: 12px; line-height: 1.6; }
  .home-workspace .overview-lists { gap: 14px; }
  .home-workspace .upcoming-panel { padding: 18px 16px; }
  .app-mode .home-workspace .upcoming-panel .section-head { margin-bottom: 6px; align-items: center; }
  .app-mode .home-workspace .upcoming-panel .section-head p { display: none; }
  .home-workspace .schedule-row { padding: 10px 0; gap: 12px; }
  .home-workspace .schedule-date { width: 40px; height: 46px; }
  .home-workspace .schedule-date strong { font-size: 18px; }
  .home-workspace .schedule-payer { display: none; }
  .home-workspace .schedule-info p { font-size: 12px; line-height: 1.6; }
  .home-workspace .upcoming-panel .block { margin-top: 16px; }
}
@media(max-width:600px) {
  .payer-toolbar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .payer-toolbar > .btn { align-self: flex-start; }
  .app-mode .sync-status { flex-wrap: wrap; row-gap: 4px; }
  .app-mode .sync-status > span:nth-child(2) { flex: 1; min-width: 0; }
  .app-mode .payer { padding: 20px 0; }
}
@media(max-width:900px) and (max-height:700px) {
  .home-workspace .trend-chart { height: 124px; }
  .home-workspace .overview-charts { min-height: 286px; }
}
@media(prefers-reduced-motion:reduce) {
  .app-mode *, .app-mode *::before, .app-mode *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
