:root {
  --ink: #263330;
  --muted: #6f7b77;
  --line: #dfe7e3;
  --canvas: #f3f6f4;
  --paper: #ffffff;
  --clay: #b45f40;
  --clay-deep: #8b432d;
  --clay-soft: #f3e2db;
  --sage: #6d8879;
  --sage-soft: #e3ece7;
  --sky: #6d8da2;
  --sky-soft: #e4edf2;
  --gold: #b58b42;
  --gold-soft: #f4ead4;
  --danger: #a95050;
  --danger-soft: #f4dfdf;
  --shadow: 0 7px 22px rgba(42, 63, 55, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; font-size: 14px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(180,95,64,.22); outline-offset: 2px; }
.app-shell { min-height: 100vh; display: flex; }

.sidebar { width: 256px; flex: 0 0 256px; min-height: 100vh; background: #273330; color: #f5efe6; padding: 28px 20px 22px; display: flex; flex-direction: column; position: sticky; top: 0; align-self: flex-start; }
.brand-lockup { display: flex; align-items: center; gap: 12px; padding: 4px 8px 26px; }
.brand-mark { width: 38px; height: 38px; border: 1px solid rgba(245,239,230,.55); border-radius: 50%; display: grid; place-items: center; position: relative; }
.brand-mark::before, .brand-mark::after, .brand-mark span { content: ""; position: absolute; border: 1px solid rgba(245,239,230,.65); border-radius: 50%; }
.brand-mark::before { width: 26px; height: 26px; }
.brand-mark::after { width: 14px; height: 14px; }
.brand-mark span { width: 3px; height: 3px; background: #e1aa83; border: 0; }
.brand-name { font-family: Georgia, serif; font-size: 19px; letter-spacing: 1px; }
.brand-subtitle { color: #b4beb9; font-size: 9px; letter-spacing: 2.2px; margin-top: 3px; }
.studio-status { font-size: 12px; color: #b9c4bf; padding: 11px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; display: flex; gap: 8px; align-items: center; margin: 0 4px 27px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #a9c89e; box-shadow: 0 0 0 3px rgba(169,200,158,.12); }
.side-nav { display: grid; gap: 5px; }
.nav-item { border: 0; background: transparent; color: #bfc8c3; text-align: left; padding: 12px 13px; border-radius: 7px; display: flex; align-items: center; gap: 11px; font-size: 14px; transition: .2s ease; }
.nav-item:hover, .nav-item.active { background: #48504c; color: #fffaf2; }
.nav-icon { width: 18px; color: #dfa57d; text-align: center; font-size: 16px; }
.sidebar-note { margin: auto 5px 16px; border-top: 1px solid rgba(255,255,255,.13); padding-top: 19px; }
.note-label { color: #d5ddd8; font-size: 11px; letter-spacing: 1px; margin-bottom: 12px; }
.mini-flow { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; color: #eac3a9; font-size: 10px; }
.mini-flow i { color: #85918b; font-style: normal; }
.sidebar-note p { color: #8f9d96; font-size: 11px; line-height: 1.6; margin: 11px 0 0; }
.reset-button { border: 1px solid rgba(255,255,255,.18); color: #d6dfda; background: transparent; border-radius: 7px; padding: 10px 12px; text-align: left; font-size: 12px; }
.reset-button:hover { border-color: #dfaa84; color: #fffaf2; }

.main-content { min-width: 0; flex: 1; }
.topbar { height: 76px; padding: 0 42px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.88); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 5; }
.breadcrumb { font-size: 13px; color: var(--muted); letter-spacing: .3px; }
.breadcrumb span { color: #b2a79e; padding: 0 7px; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.role-switch { display: flex; gap: 3px; border: 1px solid var(--line); background: #f5f0ea; border-radius: 7px; padding: 3px; }
.role-tab { border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 12px; padding: 7px 11px; }
.role-tab:hover, .role-tab.active { background: var(--paper); color: var(--clay-deep); box-shadow: 0 1px 4px rgba(49,34,23,.08); }
.user-chip { display: flex; align-items: center; gap: 8px; color: #56504a; font-size: 13px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--clay-soft); color: var(--clay-deep); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.chevron { color: #a69b91; font-size: 15px; }
.content-wrap { max-width: 1440px; margin: 0 auto; padding: 42px 42px 26px; }
.hero-section { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 31px; }
.eyebrow, .section-kicker { font-size: 11px; letter-spacing: 1.7px; color: var(--clay); font-weight: 700; }
.hero-section h1 { font-family: "STSong", "SimSun", "Microsoft YaHei", serif; font-weight: 600; font-size: clamp(26px, 3.2vw, 41px); line-height: 1.17; margin: 11px 0 9px; letter-spacing: 0; }
.hero-section p { margin: 0; color: var(--muted); font-size: 14px; }
.hero-stamp { border-left: 2px solid var(--clay-soft); padding: 8px 0 8px 16px; min-width: 164px; display: grid; gap: 4px; }
.stamp-kicker { font-size: 10px; color: #a09991; }
.hero-stamp strong { font-size: 16px; font-weight: 600; }
.hero-stamp span:last-child { font-size: 11px; color: var(--muted); }
.role-view { display: block; }
.hidden { display: none !important; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 17px; }
.metric-card { background: var(--paper); border: 1px solid var(--line); min-height: 108px; padding: 18px 18px 15px; border-radius: 8px; box-shadow: 0 3px 12px rgba(42,63,55,.035); position: relative; overflow: hidden; }
.metric-card::after { content: ""; position: absolute; right: -15px; bottom: -24px; width: 72px; height: 72px; border: 1px solid rgba(182,100,69,.12); border-radius: 50%; }
.metric-label { font-size: 12px; color: var(--muted); }
.metric-value { font-size: 28px; font-weight: 650; line-height: 1.1; margin: 13px 0 7px; }
.metric-foot { font-size: 11px; color: var(--muted); }
.metric-foot strong { color: var(--sage); font-weight: 600; }
.grid-layout { display: grid; gap: 17px; }
.two-col { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.lower-grid { margin-top: 17px; }
.staff-grid, .manager-grid { grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); }
.wide-panel { grid-column: 1 / -1; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 23px; box-shadow: var(--shadow); min-width: 0; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 19px; }
.panel-heading h2, .flow-heading h2 { margin: 6px 0 0; font-family: "STSong", "SimSun", "Microsoft YaHei", serif; font-weight: 600; font-size: 21px; }
.ghost-button { border: 1px solid var(--line); color: #5f6b67; background: transparent; border-radius: 6px; padding: 8px 10px; font-size: 12px; white-space: nowrap; }
.ghost-button:hover { color: var(--clay-deep); border-color: #d6b09c; background: #fffaf5; }
.count-pill, .soft-badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 100px; padding: 5px 8px; background: var(--sage-soft); color: #527162; font-size: 11px; white-space: nowrap; }
.count-pill.warning { background: var(--gold-soft); color: #916c2e; }
.staff-badge { background: var(--sky-soft); color: #526f81; }
.manager-badge { background: var(--clay-soft); color: var(--clay-deep); }
.project-list { display: grid; gap: 10px; }
.project-card { border: 1px solid var(--line); border-radius: 7px; padding: 14px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.project-card:hover { border-color: #d8b8a7; }
.project-title { font-size: 14px; font-weight: 650; }
.project-meta { display: flex; gap: 10px; color: var(--muted); font-size: 11px; margin-top: 7px; flex-wrap: wrap; }
.project-meta span::before { content: "·"; color: var(--clay); margin-right: 5px; }
.session-row { background: #fbf8f4; border-radius: 6px; margin-top: 10px; padding: 9px 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.session-date { font-size: 12px; color: #5f5750; }
.session-date strong { color: var(--ink); font-size: 12px; margin-right: 8px; }
.remaining { font-size: 11px; color: var(--sage); white-space: nowrap; }
.remaining.full { color: var(--danger); }
.small-button { border: 0; border-radius: 5px; padding: 7px 9px; font-size: 12px; background: var(--clay); color: white; white-space: nowrap; }
.small-button:hover { background: var(--clay-deep); }
.small-button.secondary { background: var(--sky-soft); color: #526f81; }
.small-button.warning { background: var(--gold-soft); color: #8e6b30; }
.small-button.danger { background: var(--danger-soft); color: var(--danger); }
.small-button:disabled { opacity: .45; cursor: not-allowed; }
.work-list, .notice-list, .batch-list, .material-list, .kiln-list, .schedule-list { display: grid; gap: 10px; }
.work-card { border-left: 3px solid var(--clay); padding: 12px 13px; background: #fbf8f4; border-radius: 0 7px 7px 0; }
.work-card.done { border-left-color: var(--sage); }
.work-card.alert { border-left-color: var(--danger); }
.work-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.work-title { font-size: 13px; font-weight: 650; }
.tag { font-size: 11px; border-radius: 100px; padding: 4px 7px; background: var(--clay-soft); color: var(--clay-deep); white-space: nowrap; }
.tag.green { color: #527162; background: var(--sage-soft); }
.tag.blue { color: #526f81; background: var(--sky-soft); }
.tag.gold { color: #916c2e; background: var(--gold-soft); }
.tag.red { color: var(--danger); background: var(--danger-soft); }
.work-sub { color: var(--muted); font-size: 12px; margin-top: 7px; }
.progress-bar { height: 6px; background: #ede7df; border-radius: 100px; overflow: hidden; margin-top: 11px; }
.progress-bar span { display: block; height: 100%; background: var(--clay); border-radius: inherit; transition: width .3s ease; }
.progress-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-top: 6px; }
.profile-form { display: grid; gap: 12px; }
.profile-form label { color: var(--muted); font-size: 12px; display: grid; gap: 6px; }
.profile-form input, .profile-form select { width: 100%; border: 1px solid var(--line); color: var(--ink); background: #fffdfa; border-radius: 5px; padding: 9px 10px; outline: none; font-size: 12px; }
.profile-form input:focus, .profile-form select:focus { border-color: #d39b7c; box-shadow: 0 0 0 3px rgba(182,100,69,.1); }
.primary-button { border: 0; background: var(--ink); color: white; border-radius: 6px; padding: 10px 12px; font-size: 11px; margin-top: 3px; }
.primary-button:hover { background: #4b514d; }
.notice-card { padding: 12px; display: grid; grid-template-columns: 24px 1fr; gap: 10px; border: 1px solid var(--line); border-radius: 7px; }
.notice-icon { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font-size: 12px; }
.notice-icon.danger { background: var(--danger-soft); color: var(--danger); }
.notice-title { font-size: 12px; font-weight: 650; }
.notice-text { font-size: 12px; color: var(--muted); line-height: 1.55; margin-top: 4px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 700px; }
.data-table th { text-align: left; color: #77847f; font-size: 11px; font-weight: 600; padding: 0 10px 11px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 13px 10px; border-bottom: 1px solid #f0e9e2; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.person-cell strong { display: block; font-size: 12px; }
.person-cell span { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.action-stack { display: flex; gap: 5px; flex-wrap: wrap; }
.empty-state { color: var(--muted); font-size: 11px; border: 1px dashed var(--line); border-radius: 7px; padding: 18px; text-align: center; }
.batch-card, .material-row, .kiln-row, .schedule-row { border: 1px solid var(--line); border-radius: 7px; padding: 12px; }
.batch-top, .material-top, .kiln-top, .schedule-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.batch-title, .material-name, .kiln-name, .schedule-name { font-size: 12px; font-weight: 650; }
.batch-sub, .material-sub, .kiln-sub, .schedule-sub { color: var(--muted); font-size: 12px; line-height: 1.55; margin-top: 5px; }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.chart-block { border-top: 1px solid var(--line); padding-top: 13px; }
.chart-title { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 13px; }
.chart-title span { color: var(--muted); }
.bars { height: 120px; display: flex; align-items: flex-end; gap: 12px; border-bottom: 1px solid var(--line); padding: 0 5px; }
.bar-col { height: 100%; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bar { width: min(30px, 80%); min-height: 5px; border-radius: 4px 4px 0 0; background: var(--clay); transition: height .3s ease; }
.bar.alt { background: var(--sage); }
.bar-label { color: var(--muted); font-size: 9px; }
.bar-value { color: var(--ink); font-size: 9px; }
.inventory-meter { height: 6px; margin-top: 9px; background: #eee8e0; border-radius: 100px; overflow: hidden; }
.inventory-meter span { display: block; height: 100%; border-radius: inherit; background: var(--sage); }
.inventory-meter span.low { background: var(--gold); }
.inventory-meter span.critical { background: var(--danger); }
.flow-strip { margin-top: 17px; border: 1px solid #d9c9bb; background: #f2e7dd; padding: 24px; border-radius: 9px; }
.flow-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.flow-heading p { color: #71817a; font-size: 12px; margin: 0; }
.flow-track { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
.flow-node { position: relative; padding: 13px 10px; background: rgba(255,253,249,.68); border: 1px solid rgba(181,139,112,.28); border-radius: 7px; min-height: 62px; }
.flow-node:not(:last-child)::after { content: "→"; position: absolute; right: -13px; top: 20px; color: #b68265; font-size: 16px; z-index: 1; }
.flow-index { color: #b77b5f; font-size: 10px; }
.flow-name { color: #42544d; font-size: 13px; font-weight: 650; margin-top: 6px; }
.footer-note { padding: 18px 0 0; color: #8a9992; font-size: 11px; text-align: right; }

.panel-note { color: var(--muted); font-size: 12px; line-height: 1.55; margin: -8px 0 16px; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar input, .toolbar select, .inline-form input, .inline-form select { border: 1px solid var(--line); color: var(--ink); background: #fbfdfc; border-radius: 6px; padding: 8px 10px; font-size: 12px; min-height: 36px; }
.toolbar input { min-width: 190px; }
.inline-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: #f7faf8; margin: -5px 0 14px; }
.inline-form label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; }
.inline-form .primary-button { margin: 0; min-height: 36px; grid-column: 1 / -1; }
.inline-form input, .inline-form select { width: 100%; min-width: 0; }
.inline-form label { min-width: 0; }
.metric-card::after { display: none; }
.status-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.status-line .status-dot { flex: 0 0 auto; }
.module-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.module-title { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .4px; margin-bottom: 8px; }
.module-list { display: grid; gap: 8px; }
.module-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fbfdfc; }
.module-row strong { font-size: 13px; }
.module-row small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.batch-works { display: grid; gap: 7px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.batch-work-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.batch-work-row .action-stack { justify-content: flex-end; }
.table-hint { color: var(--muted); font-size: 11px; margin-top: 8px; }
.small-button.is-processing, .primary-button.is-processing { cursor: wait; opacity: .7; }
.small-button[aria-busy="true"]::after { content: " "; display: inline-block; width: 9px; height: 9px; margin-left: 5px; border: 1px solid currentColor; border-top-color: transparent; border-radius: 50%; vertical-align: -1px; animation: spin .7s linear infinite; }
.loading-state { color: var(--muted); font-size: 12px; padding: 18px; text-align: center; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 15px); opacity: 0; pointer-events: none; background: #2f3432; color: #fffaf2; border-radius: 6px; padding: 11px 15px; font-size: 12px; box-shadow: 0 10px 25px rgba(0,0,0,.18); transition: .22s ease; z-index: 20; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@keyframes spin { to { transform: rotate(360deg); } }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-form { width: min(100%, 360px); display: grid; gap: 18px; }
.login-form h1 { font-size: 24px; margin: 0 0 8px; }
.login-form label, .editor-fields label { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.login-form input, .editor-fields input, .editor-fields select, .editor-fields textarea { width: 100%; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: white; font: inherit; }
#loginError, #editorError { color: var(--danger); font-size: 13px; min-height: 18px; margin: 0; }
#editorDialog { width: min(520px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 24px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); overflow: auto; }
#editorDialog::backdrop { background: rgba(25, 35, 31, .4); }
.editor-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.editor-heading h2 { font-size: 18px; margin: 0; }
.editor-fields { display: grid; gap: 16px; margin-bottom: 18px; }
.editor-fields .checkbox-field { display: flex; align-items: center; justify-content: space-between; }
.checkbox-field input { width: 18px; height: 18px; }
.assigned-sessions { padding: 12px 0 24px; }
.assigned-sessions h2, .business-ledger h2 { font-size: 18px; margin: 0 0 16px; }
.assigned-sessions .module-list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.business-ledger { padding: 20px 0; min-width: 0; border-top: 1px solid var(--line); }
.module-title { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.module-row > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.module-row .action-stack { flex-shrink: 0; flex-wrap: wrap; }
.progress-history { display: grid; gap: 12px; padding-left: 20px; font-size: 13px; }
.data-table small { display: block; color: var(--muted); margin-top: 4px; }
.hero-section h1 { font-size: 28px; font-family: inherit; }
body * { letter-spacing: 0; }
@media (max-width: 600px) {
  .module-row { align-items: flex-start; flex-wrap: wrap; }
  .inline-form, .module-grid { grid-template-columns: 1fr; }
  .panel-heading { flex-wrap: wrap; gap: 10px; }
}

@media (max-width: 1100px) {
  .sidebar { width: 220px; flex-basis: 220px; }
  .content-wrap, .topbar { padding-left: 28px; padding-right: 28px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { position: static; width: auto; min-height: auto; padding: 15px 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
  .brand-lockup { padding: 0; }
  .studio-status, .sidebar-note { display: none; }
  .side-nav { display: flex; order: 3; grid-column: 1 / -1; overflow-x: auto; }
  .nav-item { white-space: nowrap; padding: 9px 12px; }
  .reset-button { justify-self: end; font-size: 10px; }
  .topbar { height: auto; min-height: 68px; padding: 12px 18px; gap: 12px; flex-wrap: wrap; }
  .topbar-actions { margin-left: auto; }
  .role-switch { order: 2; width: 100%; justify-content: stretch; }
  .role-tab { flex: 1; }
  .content-wrap { padding: 28px 18px 22px; }
  .hero-section { align-items: flex-start; flex-direction: column; }
  .hero-stamp { min-width: 100%; }
  .two-col, .staff-grid, .manager-grid { grid-template-columns: 1fr; }
  .wide-panel { grid-column: auto; }
  .chart-grid { grid-template-columns: 1fr; }
  .flow-heading { align-items: flex-start; flex-direction: column; }
  .flow-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-node:not(:last-child)::after { display: none; }
  .footer-note { text-align: left; }
}
@media (max-width: 480px) {
  .sidebar { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .brand-lockup { min-width: 0; }
  .brand-name { white-space: nowrap; }
  .reset-button { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric-card { min-height: 96px; padding: 13px; }
  .metric-value { font-size: 23px; }
  .panel { padding: 17px; }
  .topbar-actions { width: 100%; justify-content: flex-end; flex-wrap: wrap; row-gap: 8px; }
  .user-chip { order: 1; }
  .role-switch { order: 2; flex-basis: 100%; width: auto; }
  .content-wrap { overflow-x: hidden; }
}

@media (max-width: 600px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  .sidebar { position: relative; display: block; width: 100%; min-height: auto; padding: 14px 18px 12px; }
  .brand-lockup { width: calc(100% - 105px); }
  .reset-button { position: absolute; top: 14px; right: 18px; width: 36px; max-width: 36px; height: 34px; padding: 0; overflow: hidden; text-align: center; font-size: 0; }
  .reset-button span { font-size: 16px; }
  .side-nav { margin-top: 13px; width: 100%; }
  .topbar { display: block; height: auto; min-height: 0; padding: 13px 18px; }
  .breadcrumb { margin-bottom: 10px; }
  .topbar-actions { display: grid; grid-template-columns: 1fr auto; width: 100%; margin: 0; gap: 8px; }
  .user-chip { grid-column: 2; grid-row: 1; justify-self: end; }
  #logoutBtn { grid-column: 1; grid-row: 1; justify-self: start; }
  .user-chip > #topUserName, .user-chip .chevron { display: none; }
  .role-switch { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .content-wrap { width: 100%; padding: 24px 18px 20px; }
  .metric-grid { grid-template-columns: 1fr; }
}
