:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #fff;
  --ink: #1b1d25;
  --muted: #656b78;
  --line: #e7e9ef;
  --accent: #ce4c10;
  --accent-dark: #c4470d;
  --accent-soft: #fff0e7;
  --sidebar: #18191f;
  --sidebar-muted: #a4a8b2;
  --shadow: 0 1px 2px #1a1b2910;
  --radius: 13px;
  --sidebar-width: 244px;
  --topbar-height: 68px;
  font-family: Inter, "Segoe UI", Roboto, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; font-size: 14px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { flex-shrink: 0; vertical-align: middle; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #ee6b2c; outline-offset: 3px; }
.view:focus { outline: none; }

.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: 12px; left: 12px; z-index: 20; padding: 10px 14px; background: white; border-radius: 6px; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.muted { color: var(--muted); }
.empty { padding: 24px; text-align: center; color: var(--muted); }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  z-index: 5;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--sidebar);
  color: white;
  padding: 22px 15px 18px;
}

.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 0 7px; }
.brand { display: inline-flex; gap: 11px; align-items: center; flex-shrink: 0; }
.brand-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(155deg, #f47e32, #df4a11);
  color: white;
  box-shadow: inset 0 0 0 1px #ffffff20;
}
.brand-name { font-size: 19px; font-weight: 720; letter-spacing: -.65px; white-space: nowrap; }
.brand-name strong, .mobile-brand strong { color: #ff8248; font-weight: 750; }
.nav-caption { margin: 42px 12px 12px; color: #969ba6; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.navigation { display: grid; gap: 5px; }
.navigation a {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 8px;
  color: #bfc2cc;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.navigation a:hover { background: #ffffff0f; color: #fff; }
.navigation a[aria-current="page"] { color: #ff985e; background: #472c22; font-weight: 680; }
.nav-count { display: grid; place-items: center; margin-left: auto; min-width: 20px; min-height: 20px; border-radius: 7px; background: #482e25; color: #ffab7b; font-size: 11px; padding: 0 4px; }
.navigation a[aria-current="page"] .nav-count { background: #69402c; }
.sidebar-bottom { margin-top: auto; padding-top: 40px; }
.demo-card { display: flex; align-items: flex-start; gap: 10px; border: 1px solid #34353d; border-radius: 10px; background: #22232a; padding: 13px 12px; }
.demo-card i { margin-top: 5px; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #f78448; }
.demo-card strong, .demo-card small { display: block; }
.demo-card strong { font-size: 12px; font-weight: 650; color: #f0f0f3; }
.demo-card small { font-size: 11px; margin-top: 4px; color: var(--sidebar-muted); }
.sidebar-close, .menu-toggle, .mobile-brand { display: none !important; }

.workspace { margin-left: var(--sidebar-width); min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  height: var(--topbar-height);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.topbar-location, .topbar-controls, .profile { display: flex; align-items: center; }
.workspace-label { color: #515662; font-size: 13px; font-weight: 600; }
.topbar-controls { gap: 17px; }
.profile { gap: 10px; padding-left: 17px; border-left: 1px solid var(--line); }
.profile-avatar { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; background: #ffe8d9; color: #a64416; font-size: 12px; font-weight: 760; }
.profile-name strong, .profile-name small { display: block; }
.profile-name strong { font-size: 12px; line-height: 1.35; font-weight: 680; }
.profile-name small { color: var(--muted); font-size: 11px; margin-top: 1px; }
.notifications { position: relative; }
.bell-button { position: relative; color: #4b505d; }
.notification-dot { position: absolute; top: 6px; right: 7px; background: #ea671d; width: 8px; height: 8px; border: 1.5px solid white; border-radius: 50%; }
.notifications-panel {
  position: absolute;
  top: calc(100% + 13px);
  right: -9px;
  width: min(330px, calc(100vw - 30px));
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  box-shadow: 0 14px 40px #1b1d2525;
  overflow: hidden;
}
.notification-heading { display: flex; align-items: center; gap: 9px; padding: 15px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.notification-heading > span { border-radius: 10px; background: var(--accent-soft); padding: 2px 6px; font-size: 11px; font-weight: 750; color: #a74617; }
.notification-item { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; }
.notification-item + .notification-item { border-top: 1px solid var(--line); }
.notification-item:hover { background: #faf9fa; }
.notification-item strong, .notification-item small { display: block; }
.notification-item strong { font-size: 13px; }
.notification-item small, .notification-item > svg { margin-top: 3px; color: var(--muted); font-size: 11px; }
.notification-empty { margin: 0; padding: 17px; color: var(--muted); }

.view { width: 100%; max-width: 1700px; margin: auto; padding: 28px 32px 38px; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 22px; }
.section-header h1 { margin: 0; font-size: clamp(26px, 2.4vw, 33px); line-height: 1.16; font-weight: 740; letter-spacing: -.034em; }
.section-header p, .panel-heading p { color: var(--muted); line-height: 1.4; margin: 6px 0 0; }
.section-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.date-display { display: inline-flex; align-items: center; flex-shrink: 0; gap: 8px; min-height: 41px; padding: 0 12px; color: #505564; background: white; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; font-weight: 600; box-shadow: var(--shadow); }
.date-display svg { color: #646a76; }

.btn, .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn { min-height: 41px; padding: 8px 13px; }
.btn-icon { min-width: 36px; min-height: 36px; padding: 5px; }
.btn-icon:hover { background: #f0f1f4; }
.btn-primary { background: var(--accent); color: white; border-color: var(--accent); box-shadow: 0 2px 3px #be4d161a; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline { background: white; border-color: #dfe1e8; color: #373c48; }
.btn-outline:hover { background: #f8f8fa; border-color: #cfd1da; }
.btn:disabled, .btn-icon:disabled { opacity: .53; cursor: default; }
.text-link { display: inline-flex; align-items: center; flex-shrink: 0; gap: 5px; color: #b64311; font-size: 12px; font-weight: 680; }
.text-link:hover { text-decoration: underline; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 172px;
  display: flex;
  align-items: center;
  padding: 27px 30px;
  overflow: hidden;
  border-radius: 14px;
  background: #171b23;
  color: white;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 21%;
  z-index: -1;
  background: linear-gradient(90deg, #171b23 0%, #171b23d1 18%, transparent 57%), url("assets/stove-hero.webp") 90% 51% / cover no-repeat;
}
.hero-copy { max-width: 420px; }
.hero h2 { margin: 0; font-size: clamp(26px, 2.5vw, 36px); letter-spacing: -.034em; font-weight: 750; }
.hero p { margin: 8px 0 0; color: #e0e0e4; font-size: 14px; line-height: 1.55; }

.panel { min-width: 0; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.metric-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.metric { display: block; min-height: 126px; padding: 15px 16px 14px; transition: border-color .15s, box-shadow .15s; }
.metric:hover { border-color: #edbb9e; box-shadow: 0 3px 10px #21212e0d; }
.metric-heading { display: flex; align-items: center; justify-content: space-between; gap: 7px; color: #535866; font-weight: 620; font-size: 13px; }
.icon-tile { display: inline-grid; place-items: center; width: 39px; height: 39px; border-radius: 9px; flex-shrink: 0; }
.tile-orange { color: #c85118; background: #fff0e7; }
.tile-blue { color: #4365ad; background: #edf2ff; }
.tile-gold { color: #996018; background: #fff4de; }
.tile-red { color: #b94539; background: #fcecec; }
.tile-purple { color: #7952ac; background: #f2ecfc; }
.metric-value { margin-top: 0; font-size: clamp(22px, 2.1vw, 31px); font-weight: 750; line-height: 1.12; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.metric-note { display: flex; gap: 5px; align-items: center; margin-top: 9px; color: var(--muted); font-size: 11px; font-weight: 570; }
.text-green { color: #20734b; }
.text-amber { color: #965815; }
.text-red { color: #a44237; }

.dashboard-panels { display: grid; grid-template-columns: minmax(0, 1.49fr) minmax(0, 1fr); gap: 17px; margin: 20px 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 19px 19px 0; }
.panel-heading h2 { margin: 0; color: var(--ink); font-size: 17px; letter-spacing: -.018em; font-weight: 720; line-height: 1.25; }
.panel-heading p { margin-top: 5px; font-size: 12px; }
.panel-heading .text-link { margin-top: 4px; }
.chart-select { position: relative; display: inline-flex; align-items: center; color: #4f5562; }
.chart-select > svg { position: absolute; right: 8px; pointer-events: none; }
.chart-select select { appearance: none; padding: 7px 25px 7px 9px; min-height: 33px; border: 1px solid var(--line); border-radius: 7px; background: white; color: inherit; font-size: 11px; font-weight: 590; cursor: pointer; }
.chart-body { --plot-height: 154px; display: grid; grid-template-columns: 39px minmax(0, 1fr); gap: 7px; padding: 21px 18px 17px; font-size: 11px; color: #69707d; }
.chart-labels { height: calc(var(--plot-height) + 13px); display: flex; flex-direction: column; justify-content: space-between; text-align: right; transform: translateY(-6px); white-space: nowrap; }
.plot { position: relative; min-width: 0; }
.chart-lines { position: absolute; top: 0; left: 0; right: 0; height: var(--plot-height); display: flex; flex-direction: column; justify-content: space-between; }
.chart-lines i { border-top: 1px dashed #e2e5eb; }
.chart-lines i:last-child { border-top-style: solid; }
.chart-columns { position: relative; display: flex; justify-content: space-around; }
.chart-column { flex: 1 1 0; min-width: 0; text-align: center; }
.bar-space { height: var(--plot-height); display: flex; align-items: flex-end; justify-content: center; }
.chart-bar { position: relative; width: min(48px, 58%); height: var(--height); min-height: 2px; padding: 0; border: 0; border-radius: 6px 6px 0 0; background: #f9d1bb; cursor: help; }
.chart-bar:hover, .chart-bar:focus-visible { background: #f1a378; z-index: 2; }
.chart-bar-current { background: #ea671e; }
.chart-bar-current:hover, .chart-bar-current:focus-visible { background: #d55112; }
.bar-label { display: block; margin-top: 10px; white-space: nowrap; }
.bar-tooltip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); display: none; padding: 5px 7px; border-radius: 5px; background: #20232b; color: white; font-size: 11px; font-weight: 600; white-space: nowrap; }
.chart-bar:hover .bar-tooltip, .chart-bar:focus .bar-tooltip { display: block; }

.daily-list { display: grid; padding: 5px 18px 8px; }
.daily-item { display: grid; grid-template-columns: 38px 34px minmax(0, 1fr) 15px; gap: 9px; align-items: center; width: 100%; padding: 9px 0; border: 0; border-radius: 0; text-align: left; color: var(--ink); background: transparent; }
.daily-item + .daily-item { border-top: 1px solid #eef0f4; }
.daily-item:hover { background: #faf9f8; }
.daily-time { color: #525767; font-weight: 690; font-size: 12px; font-variant-numeric: tabular-nums; }
.daily-item .icon-tile { width: 34px; height: 34px; }
.daily-details { min-width: 0; }
.daily-details strong, .daily-details small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.daily-details strong { font-size: 12px; font-weight: 690; }
.daily-details small { font-size: 11px; margin-top: 4px; color: var(--muted); }
.daily-details small span { margin: 0 1px; }
.daily-item > svg { color: #8c909b; }
.recent-panel .panel-heading { padding-bottom: 16px; }

.table-wrap { max-width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; min-width: 570px; }
.data-table thead { background: #f8f9fb; color: #5b6270; white-space: nowrap; }
.data-table th { padding: 11px 15px; font-size: 11px; letter-spacing: .018em; font-weight: 680; }
.data-table td { border-top: 1px solid #eef0f3; padding: 10px 15px; color: #414654; vertical-align: middle; }
.data-table td:first-child, .data-table th:first-child { padding-left: 19px; }
.data-table td:last-child, .data-table th:last-child { padding-right: 19px; }
.data-table tbody tr:hover { background: #fcfcfd; }
.data-table .empty { color: var(--muted); text-align: center; padding: 22px 15px; }
.cell-primary { display: block; color: var(--ink); font-weight: 650; }
.cell-secondary { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.status-pill { display: inline-flex; padding: 4px 8px; gap: 5px; align-items: center; border-radius: 20px; font-size: 11px; font-weight: 670; white-space: nowrap; }
.status-pill i { width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.pill-gray { color: #5b606b; background: #f0f1f4; }
.pill-blue { color: #3658a0; background: #edf2fe; }
.pill-red { color: #a63d33; background: #fcecea; }
.pill-green { color: #207551; background: #e9f7ef; }
.pill-amber { color: #925715; background: #fff2d6; }
.pill-orange { color: #a94317; background: #fff0e6; }

.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 16px 18px; }
.toolbar select, .search-field, .field input, .field select, .field textarea {
  border: 1px solid #dfe2e9;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.toolbar select { min-height: 39px; padding: 0 10px; font-size: 13px; }
.search-field { display: flex; align-items: center; gap: 8px; min-height: 39px; width: min(100%, 340px); padding: 0 11px; color: #666d7a; }
.search-field:focus-within { outline: 2px solid #ea702e; outline-offset: 1px; }
.search-field input { border: 0; width: 100%; min-width: 0; background: transparent; color: var(--ink); outline: none; }
.search-field input:focus-visible { outline: none; }
.search-field input::placeholder { color: #6b717d; }
.toolbar-count { margin-left: auto; font-size: 12px; }
.business-alert {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin: 0 0 16px; padding: 13px 16px; border: 1px solid #f3d9b8; border-radius: 10px;
  background: #fff7eb; color: #874619;
}
.business-alert > div { display: flex; align-items: center; gap: 10px; }
.business-alert p { margin: 3px 0 0; font-size: 13px; line-height: 1.4; }
.business-notes { white-space: pre-wrap; overflow-wrap: anywhere; }
.business-text-button { padding: 0; border: 0; background: transparent; text-align: left; }
.business-text-button:hover { color: var(--accent-dark); text-decoration: underline; }
.business-table-action { min-width: 42px; }
.quote-reminder-text { color: #9b501a; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin: 0; }
.detail-item { padding: 12px; border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; }
.detail-item svg { color: var(--accent-dark); }
.detail-item dt { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.detail-item dd { margin: 5px 0 0; color: var(--ink); font-weight: 650; }

.app-dialog { width: min(100% - 32px, 560px); max-height: min(100dvh - 34px, 900px); padding: 0; border: 1px solid var(--line); border-radius: 15px; background: white; color: var(--ink); box-shadow: 0 18px 60px #171a2a3f; }
.app-dialog.dialog-wide { width: min(100% - 32px, 760px); }
.app-dialog::backdrop { background: #1517218c; }
.dialog-heading { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 19px 20px 16px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { margin: 1px 0 0; font-size: 20px; letter-spacing: -.025em; }
.dialog-heading p { margin: 6px 0 0; color: var(--muted); line-height: 1.4; }
.dialog-heading button { margin: -4px -4px 0 0; }
.dialog-body { padding: 18px 20px; }
.dialog-footer { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 13px 20px; border-top: 1px solid var(--line); }
.dialog-error { margin: 0 20px 12px; padding: 9px 11px; color: #9f332b; background: #fcecea; border-radius: 7px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.full { grid-column: 1 / -1; }
.field { display: grid; gap: 5px; min-width: 0; align-content: start; color: #414451; font-size: 13px; font-weight: 650; }
.field input, .field select, .field textarea { min-height: 40px; padding: 7px 9px; width: 100%; min-width: 0; font-weight: 400; }
.field input[type="checkbox"] { width: 16px; min-height: 16px; }
.field textarea { resize: vertical; }
.field small { color: var(--muted); font-weight: 400; line-height: 1.4; }
.toast-region { position: fixed; z-index: 10; bottom: 17px; right: 17px; width: min(360px, calc(100vw - 34px)); display: grid; gap: 9px; }
.toast { display: flex; align-items: center; gap: 9px; padding: 9px 10px; background: #22242b; color: white; border-radius: 9px; box-shadow: 0 9px 24px #1517222d; }
.toast-icon { color: #a1e5b7; }
.toast button { margin-left: auto; color: white; }
.toast button:hover { background: #ffffff22; }

@media (min-width: 1540px) {
  .view { padding-right: 40px; padding-left: 40px; }
  .hero { min-height: 188px; }
  .metric { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 1140px) and (min-width: 861px) {
  :root { --sidebar-width: 215px; }
  .view, .topbar { padding-right: 21px; padding-left: 21px; }
  .navigation a { font-size: 12px; gap: 9px; }
  .metric-grid, .dashboard-panels { gap: 12px; }
  .metric { padding-left: 12px; padding-right: 12px; }
  .metric-heading { font-size: 12px; }
  .metric .icon-tile { width: 32px; height: 32px; }
  .daily-list { padding-inline: 12px; }
  .daily-item { gap: 6px; }
}

@media (max-width: 980px) {
  .dashboard-panels { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  :root { --sidebar-width: min(278px, 86vw); --topbar-height: 61px; }
  .workspace { margin-left: 0; }
  .sidebar { transform: translateX(-100%); visibility: hidden; transition: transform .2s ease; z-index: 7; }
  .sidebar.nav-shown { transform: none; visibility: visible; }
  .nav-overlay { position: fixed; z-index: 6; inset: 0; border: 0; background: #16192380; }
  .sidebar-close { display: inline-flex !important; color: #d3d5de; }
  .sidebar-close:hover { background: #ffffff16; }
  .menu-toggle { display: inline-flex !important; margin-left: -6px; }
  .mobile-brand { display: inline-block !important; font-size: 16px; font-weight: 720; letter-spacing: -.025em; white-space: nowrap; }
  .workspace-label { display: none; }
  .topbar-location { gap: 7px; }
  .topbar, .view { padding-left: 21px; padding-right: 21px; }
  .profile-name { display: none; }
  .topbar-controls { gap: 8px; }
  .profile { padding-left: 9px; }
  .notifications-panel { right: -47px; }
}

@media (max-width: 620px) {
  .topbar, .view { padding-left: 15px; padding-right: 15px; }
  .view { padding-top: 19px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
  .section-header p { font-size: 13px; }
  .section-actions { width: 100%; justify-content: flex-start; gap: 7px; }
  .section-actions .btn { padding-inline: 10px; }
  .date-display { padding-inline: 8px; gap: 5px; }
  .hero { min-height: 145px; padding: 19px 17px; }
  .hero::before { inset: 0; background-image: linear-gradient(90deg, #171b23 2%, #171b23ee 28%, #171b237f 64%, #171b233c), url("assets/stove-hero.webp"); background-position: 76% center; }
  .hero-copy { max-width: min(240px, 85%); }
  .hero p { font-size: 12px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 13px; }
  .metric { min-height: 106px; padding: 10px; }
  .metric-heading { font-size: 11px; }
  .metric .icon-tile { width: 29px; height: 29px; border-radius: 7px; }
  .metric .icon-tile svg { width: 16px; height: 16px; }
  .metric-note { font-size: 10px; }
  .metric-note svg { width: 12px; height: 12px; }
  .dashboard-panels { gap: 13px; margin-block: 13px; }
  .panel-heading { padding: 14px 13px 0; gap: 7px; }
  .panel-heading h2 { font-size: 15px; }
  .chart-body { padding-left: 9px; padding-right: 12px; }
  .daily-list { padding-inline: 13px; }
  .recent-panel .panel-heading { padding-bottom: 12px; }
  .toolbar { padding: 12px; }
  .search-field { width: 100%; }
  .toolbar-count { margin-left: 0; }
  :is(.business-page, .recent-panel) .data-table { display: block; min-width: 0; }
  :is(.business-page, .recent-panel) .data-table thead {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  :is(.business-page, .recent-panel) .data-table tbody { display: block; }
  :is(.business-page, .recent-panel) .data-table tr {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 13px;
    padding: 13px;
    border-top: 1px solid var(--line);
  }
  :is(.business-page, .recent-panel) .data-table td { display: block; padding: 0; border: 0; overflow-wrap: anywhere; }
  :is(.business-page, .recent-panel) .data-table td:first-child { grid-column: 1 / -1; padding-right: 100px; }
  :is(.business-page, .recent-panel) .data-table td:last-child { position: absolute; top: 9px; right: 12px; display: flex; gap: 5px; }
  :is(.business-page, .recent-panel) .data-table td:only-child.empty {
    position: static;
    justify-content: center;
    grid-column: 1 / -1;
    padding: 10px 0;
  }
  :is(.business-page, .recent-panel) .data-table td[data-label]:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 11px;
  }
  .business-table-action .btn { min-height: 36px; }
  .detail-grid { grid-template-columns: 1fr; }
  .app-dialog, .app-dialog.dialog-wide { max-height: calc(100dvh - 18px); width: calc(100% - 18px); }
  .dialog-body, .dialog-heading, .dialog-footer { padding-inline: 14px; }
  .form-grid { grid-template-columns: 1fr; gap: 11px; }
  .field input, .field select, .field textarea, .search-field input { font-size: 16px; }
}

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

/* Home screen and installed windows */
body {
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.sidebar {
  left: env(safe-area-inset-left, 0px);
  padding-top: calc(22px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
}

.topbar {
  height: calc(var(--topbar-height) + env(safe-area-inset-top, 0px));
  border-top: env(safe-area-inset-top, 0px) solid var(--sidebar);
}

.view { padding-bottom: calc(38px + env(safe-area-inset-bottom, 0px)); }
.toast-region { bottom: calc(17px + env(safe-area-inset-bottom, 0px)); right: calc(17px + env(safe-area-inset-right, 0px)); }

.startup-screen {
  position: fixed;
  inset: 0;
  z-index: 18;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  pointer-events: none;
  background: #18191f;
  color: #fff;
  animation: startup-dismiss .18s ease 4s both;
}

.startup-screen.startup-ready { animation-delay: 0s; }
.startup-screen img { border-radius: 22px; }
.startup-screen strong { font-size: 24px; font-weight: 750; letter-spacing: -.025em; }
.startup-screen strong span { color: #ff8248; }

@keyframes startup-dismiss {
  to { opacity: 0; visibility: hidden; }
}

.install-app {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid #644434;
  border-radius: 9px;
  background: #392820;
  color: #ffaf85;
  text-align: left;
  font-size: 12px;
  font-weight: 680;
}

.install-app:hover { background: #4a2d21; color: #ffcfb4; }
.install-steps { margin: 0; padding-left: 22px; line-height: 1.55; }
.install-steps li + li { margin-top: 9px; }

@media (prefers-reduced-motion: reduce) {
  .startup-screen { animation-duration: .01ms; }
}
