@font-face {
  font-family: "Gill Sans C";
  src: url("assets/fonts/GillSansC.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Gill Sans C";
  src: url("assets/fonts/GillSansC-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --page: #f3f4f2;
  --surface: #ffffff;
  --text: #1e211e;
  --muted: #696e69;
  --soft: #929892;
  --line: #d8dcd8;
  --line-dark: #b8bdb8;
  --subtle: #e9ebe8;
  --sidebar: #eceeeb;
  --focus: #4f554f;
  --content: 1320px;
}

* { box-sizing: border-box; }
html { background: var(--page); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Gill Sans C", "Gill Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
button, select, input { font: inherit; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, p { margin-top: 0; }
h1, h2 { text-wrap: balance; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 228px;
  flex-direction: column;
  padding: 28px 18px 20px;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 30px;
}
.brand-mark {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--text);
  border-radius: 50%;
  font-size: 17px;
  font-weight: 700;
}
.brand > span:last-child, .profile > span:nth-child(2) { display: grid; }
.brand strong { font-size: 15px; }
.brand small, .profile small { color: var(--muted); font-size: 12px; }
.main-nav { display: grid; gap: 4px; }
.nav-item {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}
.nav-item svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}
.nav-item:hover { background: rgba(255, 255, 255, .55); color: var(--text); }
.nav-item.active { background: var(--surface); color: var(--text); font-weight: 700; }
.sidebar-footer { display: grid; gap: 8px; margin-top: auto; }
.profile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 16px 8px 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}
.profile .avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 11px;
}
.profile svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.page { margin-left: 228px; }
.topbar {
  display: flex;
  width: min(var(--content), calc(100% - 64px));
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto;
  padding: 34px 0 24px;
  border-bottom: 1px solid var(--line-dark);
}
.breadcrumb {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}
h1 { margin-bottom: 0; font-size: clamp(34px, 4vw, 48px); line-height: 1; letter-spacing: -.035em; }
.topbar-actions { display: flex; gap: 10px; }
.filter {
  display: grid;
  min-width: 150px;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
}
.filter select {
  min-height: 39px;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  border-radius: 0;
  padding: 0 24px 0 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}
.filter-value {
  display: flex;
  min-height: 39px;
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
  color: var(--text);
  font-size: 15px;
  white-space: nowrap;
}
.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: transparent;
}
.menu-button span { display: block; width: 16px; height: 1px; margin: 4px auto; background: var(--text); }

main, footer { width: min(var(--content), calc(100% - 64px)); margin: 0 auto; }
.demo-note {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  border: 1px solid var(--line);
  padding: 11px 13px;
  background: rgba(255, 255, 255, .45);
  color: var(--muted);
  font-size: 13px;
}
.demo-note span {
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.demo-note p { margin: 0; }
.demo-note time { color: var(--soft); }

.summary-sheet {
  padding: 42px 0 34px;
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
}
.summary-heading, .section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.section-label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}
.summary-heading h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.025em;
}
.data-state {
  flex: 0 0 auto;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 11px;
}
.summary-value {
  margin-top: 32px;
  font-size: clamp(58px, 8.5vw, 112px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.065em;
  line-height: .88;
}
.summary-value small { font-size: .38em; font-weight: 400; letter-spacing: 0; }
.summary-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  color: var(--muted);
}
.summary-foot p { margin: 0; }
.summary-foot a, .section-head a {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
}
.summary-foot a:hover, .section-head a:hover { text-decoration: underline; text-underline-offset: 4px; }

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line-dark);
}
.metric-strip article, .result-grid article {
  min-width: 0;
  padding: 26px 26px 26px 0;
}
.metric-strip article + article, .result-grid article + article {
  border-left: 1px solid var(--line);
  padding-left: 26px;
}
.metric-title {
  display: flex;
  min-height: 24px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.metric-title small {
  flex: 0 0 auto;
  border-bottom: 1px solid var(--line-dark);
  color: var(--soft);
  font-size: 10px;
}
.metric-strip strong, .result-grid strong {
  display: block;
  margin-top: 25px;
  font-size: clamp(25px, 2.5vw, 34px);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -.035em;
}
.metric-strip p, .result-grid p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.section-block {
  margin-top: 24px;
  border: 1px solid var(--line);
  padding: 28px;
  background: var(--surface);
}
.section-head { align-items: flex-end; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.section-head h2 { margin: 0; font-size: 25px; line-height: 1.1; letter-spacing: -.025em; }
.section-head > span:not(.data-state) { color: var(--muted); font-size: 13px; }
.result-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.result-grid article { padding-top: 26px; }
.result-grid .empty-value { color: var(--muted); font-size: 20px; font-weight: 400; letter-spacing: 0; }
.state-missing { border-bottom-style: dashed !important; }

.work-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr); gap: 24px; }
.cash-plan, .obligations { min-height: 360px; }
.empty-chart {
  position: relative;
  min-height: 245px;
  overflow: hidden;
}
.empty-chart svg { position: absolute; inset: 12px 0 0; width: 100%; height: 180px; }
.grid-line { fill: none; stroke: var(--subtle); stroke-width: 1; }
.guide-line { fill: none; stroke: var(--line-dark); stroke-dasharray: 5 7; stroke-width: 1.4; }
.empty-chart > div {
  position: absolute;
  inset: 72px auto auto 50%;
  width: min(320px, calc(100% - 32px));
  transform: translateX(-50%);
  background: rgba(255, 255, 255, .92);
  padding: 18px;
  text-align: center;
}
.empty-chart strong, .empty-list strong { font-size: 18px; }
.empty-chart p, .empty-list p { margin: 7px 0 16px; color: var(--muted); font-size: 13px; }
.empty-chart button {
  min-height: 38px;
  border: 1px solid var(--text);
  padding: 0 14px;
  background: var(--text);
  color: #fff;
  font-size: 13px;
}
.empty-list { margin-top: 28px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.cash-ready { padding-top: 24px; }
.cash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.cash-metrics > div { display: grid; gap: 8px; padding: 0 18px 20px 0; }
.cash-metrics > div + div { border-left: 1px solid var(--line); padding-left: 18px; }
.cash-metrics span { color: var(--muted); font-size: 12px; }
.cash-metrics strong {
  font-size: clamp(22px, 2.4vw, 31px);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.cash-chart { display: block; width: 100%; height: 180px; margin-top: 14px; overflow: visible; }
.cash-zero { fill: none; stroke: var(--line-dark); stroke-dasharray: 4 6; stroke-width: 1; }
.cash-line { fill: none; stroke: var(--text); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.cash-result { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.payment-list { margin-top: 16px; }
.payment-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.payment-row span { color: var(--muted); }
.payment-row strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.text-button {
  border: 0;
  padding: 18px 0 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.locations-table { margin-top: 8px; }
.table-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.2fr) repeat(3, minmax(150px, .8fr));
  align-items: center;
  min-height: 70px;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.table-row.table-head {
  min-height: 40px;
  border-top: 0;
  color: var(--muted);
  font-size: 11px;
}
.table-row > div { display: grid; }
.table-row > div small { color: var(--muted); font-size: 12px; }
.muted-cell { color: var(--muted); }
.location-row[hidden] { display: none; }

.action-list { margin: 0; padding: 0; list-style: none; }
.action-list li {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  border-top: 1px solid var(--line);
}
.action-list li:first-child { border-top: 0; }
.action-list li > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--muted);
  font-size: 11px;
}
.action-list div { padding: 14px 0; }
.action-list p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.action-list small { color: var(--muted); font-size: 12px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 44px;
  color: var(--muted);
  font-size: 12px;
}
footer p { margin: 0; }
.daily-profile { border-top: 1px solid var(--line); }
.daily-topbar .filter:first-child { min-width: 180px; }
.daily-source { min-width: 0; }
.daily-source p { min-width: 0; overflow-wrap: anywhere; }
.daily-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
}
.daily-metric-grid article {
  min-width: 0;
  padding: 30px 24px 28px 0;
}
.daily-metric-grid article + article {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.daily-metric-grid strong {
  display: block;
  margin-top: 30px;
  font-size: clamp(27px, 3vw, 40px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  line-height: 1;
}
.daily-metric-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.daily-table { margin-top: 8px; }
.daily-table-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.15fr) repeat(4, minmax(120px, .85fr));
  align-items: center;
  min-height: 72px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.daily-table-row > div { display: grid; }
.daily-table-row small { color: var(--muted); font-size: 12px; }
.daily-table-head {
  min-height: 42px;
  border-top: 0;
  color: var(--muted);
  font-size: 11px;
}
.watchlist-intro {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.watchlist-form {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  align-items: end;
  gap: 20px;
  margin-top: 24px;
}
.watchlist-form label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; }
.watchlist-form input {
  width: 100%;
  min-height: 43px;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}
.watchlist-form button {
  min-height: 43px;
  border: 1px solid var(--text);
  padding: 0 18px;
  background: var(--text);
  color: #fff;
}
.watchlist-list { margin-top: 26px; }
.watchlist-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 22px;
  min-height: 70px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.watchlist-row > div { min-width: 0; }
.watchlist-row p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.watchlist-row small { color: var(--muted); font-size: 11px; }
.watchlist-row button {
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  padding: 4px 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
}
.watchlist-empty { margin: 24px 0 0; color: var(--muted); font-size: 13px; }
.sidebar-backdrop { position: fixed; inset: 0; z-index: 15; background: rgba(30, 33, 30, .24); }
.logout-form { margin: 0; }
.logout-button {
  width: 100%;
  min-height: 38px;
  border: 0;
  padding: 0 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}
.logout-button:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

.login-page {
  min-height: 100vh;
  background: var(--page);
}
.login-shell {
  display: grid;
  width: min(1080px, calc(100% - 48px));
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, .7fr);
  align-items: stretch;
  margin: 0 auto;
}
.login-brand {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 14vh 8vw 80px 0;
  border-right: 1px solid var(--line-dark);
}
.login-brand .brand-mark { flex: 0 0 44px; width: 44px; height: 44px; }
.login-brand h1 {
  margin: 0;
  font-size: clamp(50px, 7vw, 92px);
  line-height: .92;
}
.login-brand p:last-child {
  max-width: 340px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
}
.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px 0 70px 64px;
}
.login-panel h2 {
  margin: 0 0 34px;
  font-size: 38px;
  line-height: 1;
}
.login-panel form { display: grid; gap: 8px; }
.login-panel label {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}
.login-panel input {
  width: 100%;
  height: 46px;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 17px;
}
.login-panel form button {
  min-height: 46px;
  margin-top: 24px;
  border: 1px solid var(--text);
  background: var(--text);
  color: #fff;
}
.login-panel form button:hover { background: #343834; }
.login-message {
  margin: 0 0 22px;
  border: 1px solid var(--line-dark);
  padding: 13px 14px;
  color: var(--muted);
  font-size: 14px;
}
.login-error { color: var(--text); }
.login-help { margin: 18px 0 0; color: var(--muted); font-size: 12px; }

.settings-shell {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 70px;
}
.settings-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--line-dark);
}
.settings-header a { font-size: 14px; text-underline-offset: 4px; }
.settings-message {
  margin-top: 18px;
  border: 1px solid var(--line-dark);
  padding: 12px 14px;
  background: var(--surface);
  font-size: 14px;
}
.settings-error { border-style: dashed; }
.settings-section {
  margin-top: 24px;
  border: 1px solid var(--line);
  padding: 28px;
  background: var(--surface);
}
.users-list { margin-top: 6px; }
.user-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) .8fr .8fr auto;
  align-items: center;
  gap: 18px;
  min-height: 66px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.user-row:first-child { border-top: 0; }
.user-row > div { display: grid; }
.user-row small, .user-row > span { color: var(--muted); }
.user-row form { margin: 0; }
.user-row button {
  min-height: 34px;
  border: 1px solid var(--line-dark);
  padding: 0 12px;
  background: transparent;
  color: var(--text);
}
.user-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
  padding-top: 24px;
}
.user-form label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.user-form input, .user-form select {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}
.user-form > button {
  min-height: 44px;
  border: 1px solid var(--text);
  background: var(--text);
  color: #fff;
}
.settings-note { margin: 22px 0 0; color: var(--muted); font-size: 13px; }

@media (max-width: 1120px) {
  .daily-metric-grid { grid-template-columns: repeat(2, 1fr); }
  .daily-metric-grid article:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; padding-left: 0; }
  .daily-metric-grid article:nth-child(4) { border-top: 1px solid var(--line); }
  .daily-table-row { grid-template-columns: minmax(160px, 1.1fr) repeat(4, minmax(100px, .8fr)); }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .result-grid article:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .result-grid article:nth-child(4) { border-top: 1px solid var(--line); }
  .work-grid { grid-template-columns: 1fr; }
  .cash-plan, .obligations { min-height: 0; }
}

@media (max-width: 860px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform .2s ease;
    box-shadow: 20px 0 50px rgba(30, 33, 30, .12);
  }
  .sidebar.open { transform: translateX(0); }
  .page { margin-left: 0; }
  .menu-button { display: block; }
  .topbar { align-items: center; }
  .topbar > div:nth-child(2) { margin-right: auto; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .topbar, main, footer { width: min(100% - 28px, 680px); }
  .topbar { flex-wrap: wrap; gap: 12px; padding-top: 18px; }
  .topbar-actions { width: 100%; }
  .filter { min-width: 0; flex: 1; }
  .filter select { width: 100%; }
  .demo-note { grid-template-columns: auto 1fr; }
  .demo-note time { grid-column: 2; }
  .daily-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daily-metric-grid article { padding: 22px 16px 22px 0; }
  .daily-metric-grid article + article { padding-left: 16px; }
  .daily-metric-grid article:nth-child(3) { padding-left: 0; }
  .daily-metric-grid strong { margin-top: 18px; font-size: clamp(24px, 7vw, 31px); }
  .daily-table-head { display: none; }
  .daily-table-row {
    grid-template-columns: 1fr 1fr;
    gap: 9px 18px;
    padding: 18px 0;
  }
  .daily-table-row > div { grid-column: 1 / -1; }
  .daily-table-row > span { text-align: right; }
  .daily-table-row > span::before { display: block; color: var(--muted); font-size: 10px; }
  .daily-table-row > span:nth-child(2)::before { content: "Выручка"; }
  .daily-table-row > span:nth-child(3)::before { content: "ФОТ iiko"; }
  .daily-table-row > span:nth-child(4)::before { content: "Скидки"; }
  .daily-table-row > span:nth-child(5)::before { content: "Списания"; }
  .watchlist-form { grid-template-columns: 1fr; gap: 14px; }
  .watchlist-row { grid-template-columns: 1fr auto; gap: 8px 14px; }
  .watchlist-row small { grid-column: 1; }
  .watchlist-row button { grid-column: 2; grid-row: 1 / span 2; }
  .summary-sheet { padding: 32px 0 27px; }
  .summary-heading { display: grid; grid-template-columns: 1fr auto; }
  .summary-heading h2 { font-size: 24px; }
  .summary-value { margin-top: 26px; font-size: clamp(51px, 16vw, 76px); }
  .summary-foot { align-items: flex-start; flex-direction: column; gap: 12px; }
  .metric-strip { grid-template-columns: 1fr; }
  .metric-strip article { padding: 22px 0; }
  .metric-strip article + article { border-top: 1px solid var(--line); border-left: 0; padding-left: 0; }
  .metric-strip strong { margin-top: 16px; font-size: 28px; }
  .section-block { margin-top: 14px; padding: 20px; }
  .section-head h2 { font-size: 23px; }
  .result-grid { grid-template-columns: 1fr; }
  .result-grid article { padding: 22px 0; }
  .result-grid article + article,
  .result-grid article:nth-child(3),
  .result-grid article:nth-child(4) {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-left: 0;
  }
  .result-grid strong { margin-top: 16px; font-size: 28px; }
  .empty-chart > div { top: 55px; }
  .cash-metrics { grid-template-columns: 1fr; }
  .cash-metrics > div { padding: 14px 0; }
  .cash-metrics > div + div { border-top: 1px solid var(--line); border-left: 0; padding-left: 0; }
  .payment-row { grid-template-columns: 64px 1fr; padding: 10px 0; }
  .payment-row strong { grid-column: 2; }
  .locations-table { display: grid; gap: 0; }
  .table-row.table-head { display: none; }
  .table-row {
    grid-template-columns: 1fr auto;
    gap: 8px 18px;
    min-height: 0;
    padding: 18px 0;
  }
  .table-row > span { font-size: 13px; text-align: right; }
  .table-row > span:nth-child(2)::before { content: "План: "; color: var(--muted); }
  .table-row > span:nth-child(3)::before { content: "Чек: "; color: var(--muted); }
  .table-row > span:nth-child(4) { grid-column: 1 / -1; text-align: left; }
  .action-list li { grid-template-columns: 28px 1fr; align-items: start; padding: 16px 0; }
  .action-list div { padding: 0; }
  .action-list small { grid-column: 2; }
  footer { flex-direction: column; gap: 3px; }
  .login-shell {
    width: min(100% - 36px, 520px);
    min-height: 0;
    grid-template-columns: 1fr;
  }
  .login-brand {
    padding: 52px 0 38px;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }
  .login-brand h1 { font-size: clamp(46px, 16vw, 68px); }
  .login-panel { padding: 44px 0 60px; }
  .settings-shell { width: min(100% - 28px, 680px); }
  .settings-header { align-items: flex-start; flex-direction: column; padding-top: 28px; }
  .settings-section { padding: 20px; }
  .user-row { grid-template-columns: 1fr auto; gap: 6px 14px; padding: 14px 0; }
  .user-row form, .user-row > span:last-child { grid-column: 2; grid-row: 1 / span 2; }
  .user-form { grid-template-columns: 1fr; }
}

@media (max-width: 359px) {
  .daily-metric-grid { grid-template-columns: 1fr; }
  .daily-metric-grid article,
  .daily-metric-grid article + article,
  .daily-metric-grid article:nth-child(3),
  .daily-metric-grid article:nth-child(4) {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-left: 0;
  }
  .daily-metric-grid article:first-child { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
