@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;700&display=swap");

:root {
  --bg: #f1f2f3;
  --bg-muted: #f7f8fa;
  --surface: #ffffff;
  --surface-muted: #fbfbfc;
  --surface-dark: #15181e;
  --surface-darker: #0d0e12;
  --surface-dark-soft: #1d2129;
  --text: #111317;
  --text-muted: #656a76;
  --text-subtle: #3b3d45;
  --text-inverse: #efeff1;
  --line: #d5d7db;
  --line-strong: #b2b6bd;
  --line-dark: rgba(178, 182, 189, 0.22);
  --link: #2264d6;
  --link-dark: #2b89ff;
  --phone: #1868f2;
  --sms: #ffcf25;
  --account: #7b42bc;
  --utility: #14c6cb;
  --warning-bg: #fff9cf;
  --danger: #731e25;
  --danger-soft: #fbeabf;
  --success: #136f63;
  --shadow-whisper: rgba(97, 104, 117, 0.05) 0 1px 1px, rgba(97, 104, 117, 0.05) 0 2px 2px;
  --radius-xs: 3px;
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --sidebar-width: 286px;
  --content-width: 1420px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(24, 104, 242, 0.08), transparent 18%),
    radial-gradient(circle at left 15%, rgba(123, 66, 188, 0.08), transparent 22%),
    linear-gradient(180deg, #fbfbfc 0%, #f1f2f3 100%);
  font-family: "Noto Sans SC", "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.auth-locked {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-dark);
  text-decoration: underline;
}

.shell-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(13, 14, 18, 0.82), rgba(21, 24, 30, 0.88)),
    radial-gradient(circle at top right, rgba(24, 104, 242, 0.18), transparent 22%);
  backdrop-filter: blur(10px);
}

.auth-overlay.active {
  display: flex;
}

.auth-card {
  width: min(100%, 420px);
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(178, 182, 189, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: rgba(13, 14, 18, 0.28) 0 24px 70px;
}

.auth-copy,
.auth-status {
  color: var(--text-muted);
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-actions {
  display: flex;
  gap: 10px;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100vh;
  padding: 28px 22px;
  color: var(--text-inverse);
  background:
    linear-gradient(180deg, rgba(13, 14, 18, 0.98), rgba(21, 24, 30, 0.98)),
    linear-gradient(135deg, rgba(43, 137, 255, 0.08), transparent 40%);
  border-right: 1px solid rgba(178, 182, 189, 0.14);
}

.brand {
  display: grid;
  gap: 12px;
}

.brand h1,
.topbar-copy h2,
.section-intro h3,
.module-card h3 {
  font-family: "IBM Plex Sans", "Noto Sans SC", sans-serif;
  font-feature-settings: "kern" 1;
  letter-spacing: -0.02em;
}

.brand h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
}

.eyebrow,
.nav-group-label,
.label,
.topbar-label,
.output-title {
  font-family: "IBM Plex Sans", "Noto Sans SC", sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  color: rgba(239, 239, 241, 0.72);
}

.subtitle {
  color: rgba(239, 239, 241, 0.72);
  font-size: 0.94rem;
}

.sidebar-block {
  display: grid;
  gap: 10px;
}

.nav-group-label {
  color: rgba(239, 239, 241, 0.5);
}

.nav {
  display: grid;
  gap: 10px;
}

.nav-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 14px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  box-shadow: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.nav-item:hover {
  background: rgba(239, 239, 241, 0.05);
  border-color: rgba(178, 182, 189, 0.18);
  transform: translateX(2px);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(239, 239, 241, 0.08), rgba(43, 137, 255, 0.12));
  border-color: rgba(43, 137, 255, 0.4);
  box-shadow: inset 0 0 0 1px rgba(43, 137, 255, 0.08);
}

.nav-kicker {
  color: rgba(239, 239, 241, 0.5);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-item strong {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-inverse);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-whisper);
}

.panel-dark {
  background:
    linear-gradient(180deg, var(--surface-dark) 0%, var(--surface-darker) 100%);
  border-color: var(--line-dark);
  color: var(--text-inverse);
}

.context-card {
  margin-top: auto;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.context-grid {
  display: grid;
  gap: 12px;
}

.context-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  word-break: break-word;
}

.context-card .label {
  color: rgba(239, 239, 241, 0.56);
  margin-bottom: 6px;
}

.main-shell {
  width: min(100%, calc(var(--content-width) + 56px));
  padding: 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
  padding: 0;
}

.topbar-copy {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.topbar-label {
  color: var(--text-muted);
}

.topbar-copy h2 {
  font-size: clamp(2rem, 2vw + 1.4rem, 3.15rem);
  font-weight: 700;
  line-height: 1.15;
}

.topbar-desc {
  max-width: 62ch;
  color: var(--text-muted);
}

.hero-actions,
.inline-tools,
.toolbar,
.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status-strip,
.summary-grid,
.hero-grid,
.split-grid {
  display: grid;
  gap: 18px;
}

.status-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.status-card,
.metric-card {
  padding: 18px;
}

.status-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-whisper);
}

.status-card strong,
.metric-card strong {
  display: block;
  margin-top: 6px;
  font-family: "IBM Plex Sans", "Noto Sans SC", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  word-break: break-word;
}

.status-card p,
.metric-card p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.summary-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-grid {
  grid-template-columns: 1.35fr 0.95fr;
  margin-bottom: 18px;
}

.hero-panel,
.hero-side,
.section-card,
.metric-card {
  padding: 20px;
}

.hero-panel {
  display: grid;
  gap: 28px;
}

.hero-panel .section-intro h3 {
  font-size: clamp(2rem, 1.4vw + 1.4rem, 3rem);
  font-weight: 600;
  line-height: 1.17;
  color: var(--text-inverse);
}

.hero-panel .section-intro p:last-child {
  color: rgba(239, 239, 241, 0.74);
  max-width: 60ch;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-metric {
  padding: 15px;
  border: 1px solid rgba(178, 182, 189, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.hero-metric .label,
.hero-metric strong {
  color: var(--text-inverse);
}

.hero-metric strong {
  display: block;
  margin-top: 6px;
  font-family: "IBM Plex Sans", "Noto Sans SC", sans-serif;
  font-size: 1.6rem;
  line-height: 1.17;
}

.hero-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.section-intro {
  display: grid;
  gap: 10px;
}

.section-intro.compact {
  gap: 8px;
}

.section-intro h3 {
  font-size: clamp(1.5rem, 0.7vw + 1.15rem, 2rem);
  font-weight: 700;
  line-height: 1.19;
}

.section-intro p:last-child {
  color: var(--text-muted);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

button,
.shortcut,
.inline-link {
  border: 1px solid rgba(178, 182, 189, 0.4);
  border-radius: var(--radius-sm);
  padding: 9px 12px 9px 15px;
  background: var(--surface);
  color: var(--text-subtle);
  box-shadow: var(--shadow-whisper);
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

button:hover,
.shortcut:hover,
.inline-link:hover {
  border-color: var(--line-strong);
  background: var(--bg-muted);
  transform: translateY(-1px);
}

button.primary {
  background: var(--surface-dark);
  color: var(--text-inverse);
  border-color: rgba(178, 182, 189, 0.4);
}

button.primary:hover {
  background: #1d2129;
}

button.danger {
  background: #731e25;
  color: var(--text-inverse);
  border-color: rgba(255, 207, 37, 0.32);
}

button.danger:hover {
  background: #8b2830;
}

button.ghost {
  background: transparent;
  color: var(--text-subtle);
}

button.ghost:hover {
  background: rgba(115, 30, 37, 0.08);
}

.session-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(178, 182, 189, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text-subtle);
  font-size: 0.9rem;
  font-weight: 600;
}

.shortcut {
  min-height: 72px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.inline-link {
  padding-right: 12px;
  color: var(--link);
}

.module-card {
  display: grid;
  gap: 18px;
  min-height: 100%;
}

.module-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.module-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.module-stats div {
  padding: 14px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.module-stats strong {
  display: block;
  margin-top: 4px;
  font-family: "IBM Plex Sans", "Noto Sans SC", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
}

.module-note {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.module-card-phone {
  border-top: 3px solid rgba(24, 104, 242, 0.6);
}

.module-card-sms {
  border-top: 3px solid rgba(255, 207, 37, 0.9);
}

.module-card-account {
  border-top: 3px solid rgba(123, 66, 188, 0.8);
}

.metric-accent-sms {
  border-top: 3px solid rgba(255, 207, 37, 0.9);
}

.metric-accent-account {
  border-top: 3px solid rgba(123, 66, 188, 0.8);
}

.dashboard-grid {
  grid-template-columns: 1fr 1fr;
}

.split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flow-list {
  display: grid;
  gap: 12px;
}

.flow-list article {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.flow-list strong {
  display: block;
  font-family: "IBM Plex Sans", "Noto Sans SC", sans-serif;
  font-size: 1rem;
  line-height: 1.2;
}

.flow-list p {
  margin-top: 6px;
  color: var(--text-muted);
}

.panel-header {
  justify-content: space-between;
  margin-bottom: 16px;
}

.view-stack {
  min-height: calc(100vh - 180px);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.label {
  display: block;
  color: var(--text-muted);
}

.kv-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.kv-list div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.kv-list span {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.kv-list strong {
  display: block;
  margin-top: 6px;
  font-size: 0.98rem;
  font-weight: 600;
  word-break: break-word;
}

.inline-tools input,
.inline-tools select {
  min-width: 260px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px;
  background: var(--surface);
  color: var(--text);
}

input:focus,
textarea:focus,
select:focus,
button:focus-visible,
.shortcut:focus-visible,
.inline-link:focus-visible,
.nav-item:focus-visible {
  outline: 3px solid rgba(43, 137, 255, 0.4);
  outline-offset: 2px;
}

input[readonly] {
  background: #f3f4f6;
}

textarea {
  resize: vertical;
}

label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
}

label.wide {
  grid-column: 1 / -1;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.form-grid-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.checkbox-field input {
  width: auto;
  margin: 0;
}

.checkbox-field span {
  font-weight: 500;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 14px;
  background: #f7f8fa;
  color: var(--text-muted);
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid #eceef1;
  font-size: 0.92rem;
  vertical-align: top;
}

tbody tr {
  transition: background-color 120ms ease;
}

tbody tr:hover {
  background: rgba(24, 104, 242, 0.03);
}

tbody tr.is-selected,
tbody tr.is-selected:hover {
  background: rgba(123, 66, 188, 0.08);
}

.history-table-wrap {
  margin-top: 16px;
}

.output-box {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.output-title {
  margin-bottom: 10px;
  color: var(--text-muted);
}

pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-subtle);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.6;
}

.logs-box pre {
  min-height: 360px;
}

.hint {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.narrow-panel {
  max-width: 860px;
}

.business-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(6, 214, 160, 0.18), transparent 22%),
    radial-gradient(circle at left bottom, rgba(255, 183, 3, 0.16), transparent 28%),
    linear-gradient(180deg, var(--surface-dark) 0%, var(--surface-darker) 100%);
}

.business-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(29, 111, 242, 0.12);
  filter: blur(24px);
}

.dashboard-hero-side {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 251, 252, 0.92));
}

.business-hero-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(178, 182, 189, 0.2);
  border-radius: 999px;
  background: rgba(239, 239, 241, 0.06);
  color: var(--text-inverse);
  font-size: 0.88rem;
}

.metric-accent-money {
  border-color: rgba(6, 214, 160, 0.28);
  background: linear-gradient(180deg, rgba(6, 214, 160, 0.08), rgba(255, 255, 255, 0.96));
}

.metric-accent-ops {
  border-color: rgba(29, 111, 242, 0.24);
  background: linear-gradient(180deg, rgba(29, 111, 242, 0.08), rgba(255, 255, 255, 0.96));
}

.metric-sub {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.segmented {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
}

.segment {
  min-width: 58px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
}

.segment.active {
  background: var(--surface-dark);
  color: var(--text-inverse);
}

.chart-card,
.donut-card {
  min-height: 320px;
  margin-top: 16px;
}

.chart-shell {
  display: grid;
  gap: 16px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.chart-legend-item {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.chart-legend-item i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.chart-svg {
  width: 100%;
  min-height: 240px;
  overflow: visible;
}

.chart-axis-line {
  stroke: rgba(101, 106, 118, 0.26);
  stroke-width: 1;
}

.chart-labels,
.chart-latest {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
  gap: 8px;
}

.chart-labels span,
.chart-latest span,
.donut-legend-item p,
.rank-copy p,
.alert-card p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.chart-latest div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.chart-latest strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
}

.chart-empty,
.empty-state {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: var(--text-muted);
  text-align: center;
}

.stack-list,
.rank-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.alert-card,
.rank-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.alert-card strong,
.rank-copy strong {
  display: block;
  margin-bottom: 4px;
}

.tone-warning {
  border-color: rgba(255, 183, 3, 0.35);
  background: rgba(255, 183, 3, 0.08);
}

.tone-danger {
  border-color: rgba(239, 71, 111, 0.32);
  background: rgba(239, 71, 111, 0.08);
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.asset-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.asset-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1.35rem;
}

.donut-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 18px;
}

.donut-visual {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
}

.donut-hole {
  position: absolute;
  inset: 26px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background: var(--surface);
}

.donut-hole span {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.donut-hole strong {
  font-size: 1.2rem;
}

.donut-legend {
  display: grid;
  gap: 12px;
}

.donut-legend-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.donut-swatch {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.rank-order {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-dark);
  color: var(--text-inverse);
  font-size: 0.84rem;
  font-weight: 700;
}

.rank-copy {
  flex: 1;
}

#dashboardTodayProfit[data-tone="positive"] {
  color: #7dfcc1;
}

#dashboardTodayProfit[data-tone="negative"] {
  color: #ff9ab1;
}

.dashboard-kv {
  margin-top: 18px;
}

@media (max-width: 1280px) {
  .hero-grid,
  .split-grid,
  .dashboard-grid,
  .summary-grid-4,
  .form-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .shell-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .main-shell {
    width: 100%;
  }

  .status-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .main-shell,
  .sidebar {
    padding: 18px;
  }

  .topbar,
  .panel-header,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-grid,
  .hero-meta,
  .split-grid,
  .summary-grid-4,
  .summary-grid-3,
  .form-grid,
  .form-grid-wide,
  .kv-list,
  .module-stats,
  .quick-grid {
    grid-template-columns: 1fr;
  }

  .business-hero-metrics,
  .asset-grid,
  .donut-layout {
    grid-template-columns: 1fr;
  }

  .donut-visual {
    margin: 0 auto;
  }

  .inline-tools {
    width: 100%;
  }

  .inline-tools input,
  .inline-tools select,
  .hero-actions button,
  .toolbar button,
  .shortcut {
    width: 100%;
  }
}
