/* The final interface layer. Layout, neutral surfaces and semantic status colors
   are separate so an alert stays recognizable in every business module. */
:root {
  --canvas: #f3f5fb;
  --paper: #fff;
  --ink: #202538;
  --muted: #606c82;
  --line: #dde4f1;
  --primary: #4660ec;
  --primary-soft: #edf0ff;
  --orange: #936113;
  --red: #af3450;
  --shadow: 0 8px 28px rgba(39, 56, 105, .045);
  --surface: rgba(255, 255, 255, .92);
  --surface-soft: #f7f9fe;
  --surface-border: rgba(216, 225, 242, .9);
  --radius: 24px;
  --radius-small: 16px;
  --focus-ring: #637cef;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body {
  background:
    radial-gradient(ellipse at 88% 0, rgba(222, 218, 255, .55), transparent 32%),
    radial-gradient(ellipse at 23% 33%, rgba(220, 244, 250, .45), transparent 34%),
    var(--canvas);
  background-attachment: fixed;
}
button, input, select, textarea {font-family: inherit}
button, a, input, select, textarea {scroll-margin-top: 92px}
button {font-variant-numeric: tabular-nums}
:focus-visible {outline: 3px solid var(--focus-ring); outline-offset: 3px}
h1, h2, h3, h4 {color: var(--ink)}
h1 {font-size: 34px; line-height: 1.28; letter-spacing: -.8px}
h2 {font-size: 19px; line-height: 1.45; letter-spacing: -.25px}
h3 {font-size: 16px; line-height: 1.5}
p {overflow-wrap: anywhere}
small, .tiny, .small-text {font-size: 12px; line-height: 1.65}
.muted, .subtle {color: var(--muted)}
.mono, .numeric, .stat-value {font-variant-numeric: tabular-nums}
.negative {color: var(--red)}
.positive {color: #15765b}
.break-text {overflow-wrap: anywhere}
[hidden] {display: none !important}
.icon {width: 20px; height: 20px; stroke-width: 1.7}
.section-gap {margin-top: 24px}
.margin-bottom {margin-bottom: 24px}
.grid {gap: 24px}

/* Navigation is compact but scrolls independently on a short desktop. */
.app-shell {grid-template-columns: 200px minmax(0, 1fr)}
.sidebar {
  width: 200px;
  padding: 26px 12px 14px;
  background: rgba(255, 255, 255, .94);
  border-right: 1px solid #e0e5f0;
  backdrop-filter: blur(14px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #d8deed transparent;
}
.sidebar .brand {padding: 0 12px 26px; gap: 0; flex-shrink: 0}
.sidebar .brand-name {font-size: 21px; line-height: 1.4; letter-spacing: 1.3px; font-weight: 750; color: #252c41}
.sidebar .brand-note {font-size: 10px; line-height: 1.6; letter-spacing: 1.05px; margin-top: 4px; color: var(--muted); max-width: 152px}
.sidebar nav {flex-shrink: 0}
.nav-group-section + .nav-group-section {margin-top: 18px}
.nav-label, .nav-group-title {font-size: 12px; line-height: 1.5; letter-spacing: .5px; font-weight: 600; color: var(--muted); padding-left: 12px; margin: 12px 0 9px}
.nav-link {min-height: 44px; padding: 11px 12px; margin: 4px 0; gap: 10px; border-radius: 14px; color: #606b81; font-size: 13px; line-height: 1.45; font-weight: 550; white-space: normal}
.nav-link .icon {width: 18px; height: 18px; flex-shrink: 0; color: #788299}
.nav-link:hover {background: #f0f3fa; color: #242b3f}
.nav-link.active {background: #242735; color: #fff; box-shadow: 0 5px 13px rgba(35, 41, 58, .12); font-weight: 650}
.nav-link.active .icon {color: #fff; stroke-width: 1.9}
.nav-count {font-size: 12px; padding: 2px 6px; min-width: 23px; border-radius: 999px; background: #e9edf7; color: #56657d}
.nav-link.active .nav-count {background: #ffffff25; color: #fff}
.sidebar-bottom {padding-top: 22px; flex-shrink: 0}
.environment-note {padding: 10px 9px; font-size: 12px; color: var(--muted); line-height: 1.6}
.status-dot {width: 6px; height: 6px; background: #398c75}
.user-box {border: 1px solid #e1e7f2; border-radius: 18px; background: #f5f7fc; padding: 10px 9px; gap: 8px}
.user-box .avatar {width: 32px; height: 32px; border-radius: 50%; color: #5664ae; background: #e6eafb; font-size: 13px}
.user-name {font-size: 13px; color: #31384c; max-width: 102px}
.user-role {font-size: 12px; line-height: 1.4; color: var(--muted)}
.user-box .icon-btn {width: 28px; height: 32px}

/* Context and tools have their own layer above the page, below overlays. */
.topbar {height: 72px; padding: 0 34px; position: sticky; top: 0; z-index: 30; background: rgba(248, 250, 255, .9); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(213, 222, 240, .78)}
.topbar-context {display: flex; align-items: center; gap: 12px; min-width: 0}
.topbar-context > a {font-size: 13px; color: var(--muted); white-space: nowrap}
.topbar-context > .icon {width: 15px; height: 15px; color: #a1b0c8}
.topbar-context > strong {font-size: 13px; color: #4e617f; font-weight: 600; line-height: 1.8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0}
.topbar-tools [data-action=learning-notifications] {position: relative}
.topbar-tools .notification-count {font-size: 12px; font-weight: 650; line-height: 1.5; min-width: 19px; padding: 1px 5px; color: var(--muted); background: #e8eefc; border-radius: 999px; text-align: center}
.breadcrumbs {font-size: 13px; color: var(--muted); gap: 9px; min-width: 0}
.breadcrumbs strong {color: #465268; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.breadcrumbs > .icon {width: 15px; height: 15px; color: #9ca7bc}
.topbar-right, .topbar-tools {display: flex; align-items: center; gap: 14px; flex-shrink: 0}
.top-time {font-size: 12px; color: var(--muted); white-space: nowrap}
.sync-button {min-height: 36px; padding: 7px 10px; border-radius: 999px; font-size: 12px; color: var(--muted); gap: 7px}
.sync-button:hover {color: #4355bd; background: #edf1fc}
.sync-button.pending {background: #fff1db; color: #925b0c}
.sync-button .icon {width: 16px; height: 16px}
.topbar .btn {min-height: 36px; font-size: 12px; padding: 7px 12px; box-shadow: none}
.main {max-width: 1780px; margin: auto; padding: 32px 34px 52px; min-width: 0}
.page-heading {align-items: flex-start; gap: 20px; margin-bottom: 26px; flex-wrap: wrap}
.page-heading-main {display: flex; align-items: flex-start; gap: 16px; min-width: 0; flex: 1 1 320px}
.page-heading-main > div {min-width: 0}
.page-heading-main .page-title-icon {margin: 12px 0 0}
.page-heading h1 {font-size: 34px; line-height: 1.3; font-weight: 750; letter-spacing: -.8px}
.eyebrow {font-size: 12px; line-height: 1.5; letter-spacing: 1.5px; color: var(--muted); font-weight: 600; margin-bottom: 7px}
.page-description {font-size: 14px; line-height: 1.8; color: #647087; margin-top: 9px; max-width: 760px}
.page-title-icon {display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; background: #e9edff; color: #5b6cdc; margin-right: 12px; vertical-align: middle; flex-shrink: 0}
.page-title-icon .icon {width: 22px; height: 22px}
.page-actions {display: flex; align-items: center; gap: 10px; flex-wrap: wrap}
.page-heading > .page-actions:not(:empty) {width: auto; padding-top: 4px; margin-left: auto; justify-content: flex-end}
.page-more-actions {position: relative}
.page-more-actions > summary {list-style: none; cursor: pointer}
.page-more-actions > summary::-webkit-details-marker {display: none}
.page-more-actions > div {position: absolute; right: 0; top: calc(100% + 9px); min-width: 210px; display: grid; gap: 8px; padding: 12px; background: #fff; border: 1px solid #d9e3f4; border-radius: 18px; box-shadow: 0 14px 35px #2e3d601c; z-index: 35}
.page-more-actions > div .btn {justify-content: flex-start; border-radius: 12px; box-shadow: none; min-height: 40px; font-size: 12px}

/* Action hierarchy: primary blue, neutral white, category selection black. */
.btn {font-size: 13px; font-weight: 600; line-height: 1.5; min-height: 44px; padding: 10px 17px; gap: 8px; border-radius: 999px; border: 1px solid #d8e0f0; color: #48566e; background: #ffffffed; box-shadow: 0 3px 6px #304a7104; transition: background .16s, border-color .16s, box-shadow .16s}
.btn:hover {background: #f0f3fc; border-color: #b9c7e6; color: #394962; text-decoration: none}
.btn.primary {background: #4960e8; color: #fff; border-color: #4960e8; box-shadow: 0 5px 13px #455ce821}
.btn.primary:hover {background: #394dd0; border-color: #394dd0; color: #fff; box-shadow: 0 7px 16px #455ce829}
.btn.soft {background: #edf1ff; color: #4357bc; border-color: #d9e2ff; box-shadow: none}
.btn.dark {background: #252837; border-color: #252837; color: #fff}
.btn.dark:hover {background: #3a4052; border-color: #3a4052; color: #fff}
.btn.danger {background: #fff5f6; color: #aa344d; border-color: #ecc3cc}
.btn.danger:hover {background: #ffecef; border-color: #d99aad; color: #93283e}
.btn.small {font-size: 12px; min-height: 36px; padding: 7px 13px}
.btn .icon {width: 17px; height: 17px}
.page-actions > .btn > .icon, .home-v2-actions > .btn > .icon {width: 16px; height: 16px; box-sizing: content-box; padding: 7px; border-radius: 50%; background: #f0f3fc}
.page-actions > .btn.primary > .icon, .home-v2-actions > .btn.primary > .icon {background: #ffffff22; color: #fff}
.icon-btn {width: 36px; height: 36px; border-radius: 50%; color: #6b7690; background: transparent}
.icon-btn:hover {background: #e9eefb; color: #4356bd}
.text-button {font-size: 13px; line-height: 1.65; color: #4357bf}
.text-button:hover {color: #263b9a}
.inline-actions, .toolbar {gap: 10px}

/* Readable card boundaries replace faint row lines. */
.panel, .stat-card, .filterbar, .job-card, .version-card {background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius); box-shadow: var(--shadow)}
.panel {backdrop-filter: blur(6px); min-width: 0; overflow: hidden}
.panel-header {padding: 24px 24px 18px; background: transparent; border-bottom: 0; margin-bottom: 0; gap: 14px; align-items: center; flex-wrap: wrap}
.panel-header h2 {font-size: 18px; font-weight: 700; border-left: 0; padding-left: 0; color: #263148}
.panel-title {gap: 10px}
.panel-title .icon {width: 20px; height: 20px; color: #6c7dc1}
.panel-subtitle {font-size: 12px; line-height: 1.75; color: var(--muted); margin-top: 6px}
.panel-body {padding: 0 24px 24px}
.panel-body.padded {padding-top: 22px}
.panel-footer {padding: 15px 24px; border-top: 1px solid #e1e7f2; background: #f8faff; font-size: 12px; color: #657188; gap: 12px; flex-wrap: wrap}
.section-heading {gap: 12px; margin-bottom: 16px; flex-wrap: wrap}
.section-heading h2 {font-size: 18px}
.stats-grid {gap: 16px; margin-bottom: 24px}
.stat-card {padding: 22px; min-height: 160px; transition: border-color .16s, box-shadow .16s}
.stat-top {font-size: 13px; line-height: 1.55; color: #65718a; gap: 10px}
.stat-top .icon {width: 18px; height: 18px; padding: 8px; box-sizing: content-box; background: #edf1fc; color: #6b7fc2; border-radius: 50%; flex-shrink: 0}
.stat-value {font-size: clamp(30px, 2.8vw, 42px); line-height: 1.25; font-weight: 700; letter-spacing: -1.1px; margin: 16px 0 9px; color: #222a3e; overflow-wrap: anywhere}
.stat-value .unit {font-size: 18px; margin-right: 4px; font-weight: 500; letter-spacing: 0}
.stat-foot {font-size: 12px; line-height: 1.7; color: var(--muted); display: block}
.stat-detail {font-size: 12px; color: #dce6ff}
.stat-card.accent {background: linear-gradient(130deg, #2263f3 0%, #494dec 56%, #6950e4 100%); border: 1px solid #4b60eb; box-shadow: 0 12px 28px #465ce524; color: #fff}
.stat-card.accent .stat-top, .stat-card.accent .stat-foot {color: #edf2ff}
.stat-card.accent .stat-value {color: #fff}
.stat-card.accent .stat-top .icon {color: #fff; background: #ffffff20}
.operator-status-card {appearance: none; width: 100%; text-align: left; cursor: pointer}
.operator-status-card:hover {border-color: #9aa9e5; background: #f7f9ff; box-shadow: 0 9px 22px #3d519d0b}
.operator-status-card.active {border-color: #6c7deb; background: #f1f4ff; box-shadow: inset 0 0 0 1px #6c7deb}
.operator-status-card.accent, .operator-status-card.accent.active {background: linear-gradient(130deg, #2263f3, #6950e4); border-color: #4b60eb}
.operator-status-card.accent:hover {background: linear-gradient(130deg, #1c56df, #5a43d5); border-color: #4b60eb}
.operator-status-hint {font-size: 12px; color: #5266c8; gap: 6px; margin-top: 12px}
.operator-status-card.accent .operator-status-hint {color: #fff}

/* Filters, role selection and tabs are visually distinct from data cards. */
.filterbar {padding: 18px 20px; gap: 12px; margin-bottom: 22px; align-items: center}
.filterbar > span {font-size: 13px; color: #66728a}
.filterbar input, .filterbar select {font-size: 13px; padding: 10px 12px; min-height: 42px; border-radius: 13px; background: #fafbff; max-width: 260px}
.filterbar input[type=date] {width: 158px; max-width: 170px; font-size: 13px}
.filterbar .date-pair {gap: 10px; min-width: 0}
.filterbar .filter-separator {border-color: #d8e1f0; height: 26px}
.operator-filter-panel {display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; background: #ffffff9c; border: 1px solid #dce5f3; border-radius: 24px; padding: 18px 20px; margin-bottom: 22px; box-shadow: var(--shadow)}
.operator-filter-panel .filterbar {border: 0; box-shadow: none; background: transparent; padding: 0; border-radius: 0; margin-bottom: 0}
.operator-filter-panel .filterbar + .filterbar {border-top: 1px solid #e2e9f4; margin-top: 18px; padding-top: 17px}
.filter-field {display: flex; flex: 1 1 200px; flex-direction: column; gap: 6px; min-width: 0}
.filter-field > label {font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.6}
.filter-field > input, .filter-field > select {width: 100%; max-width: none}
.operator-filter-panel #worksheet-filter-form > .btn {align-self: flex-end; min-height: 42px}
.operator-filter-panel #period-form > span {display: inline-flex; align-items: center; gap: 7px; width: auto}
.operator-filter-panel #period-form > span .icon {width: 17px; height: 17px; color: #8496bb}
.operator-scope-note {display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 0 2px; margin-bottom: 18px; font-size: 12px; line-height: 1.85; color: var(--muted)}
.operator-scope-note > span:first-child {font-weight: 600; color: #5e6f8f}
.operator-picker {border: 1px solid var(--surface-border); border-radius: 24px; background: var(--surface); padding: 20px; margin-bottom: 22px; display: flex; align-items: flex-start; gap: 18px; box-shadow: var(--shadow)}
.operator-picker-label {font-size: 13px; color: #5d6981; padding-top: 12px; font-weight: 650; white-space: nowrap}
.operator-picker-buttons {display: flex; flex-wrap: wrap; gap: 9px; min-width: 0}
.operator-picker-button {display: inline-flex; align-items: center; gap: 9px; font-size: 13px; padding: 10px 15px; min-height: 44px; border-radius: 999px; background: #f6f8fe; border: 1px solid #dbe3f2; color: #526079; font-weight: 600}
.operator-picker-button:hover {background: #edf1fc; border-color: #bcc8e6}
.operator-picker-button.active, .operator-picker-button.active:hover {background: #242735; border-color: #242735; color: #fff; box-shadow: 0 4px 11px #252a3514}
.operator-picker-count {font-size: 12px; padding: 2px 6px; border-radius: 999px; color: #566381; background: #e6ebf7}
.operator-picker-button.active .operator-picker-count {background: #ffffff25; color: #fff}
.tabbar {gap: 8px; padding: 4px 0 5px; border-bottom: 0; margin-bottom: 22px; overflow-x: auto; scrollbar-width: thin}
.tab {font-size: 13px; min-height: 40px; padding: 9px 17px; border-radius: 999px; border: 1px solid #dbe3f0; color: #647089; background: #ffffffb5; font-weight: 550; flex-shrink: 0}
.tab:hover {background: #f0f3fc; border-color: #bac7e2}
.tab.active, .tab.active:hover {background: #252837; color: #fff; border-color: #252837; font-weight: 600}
.tab .badge {font-size: 12px}
.tab.active .badge {background: #ffffff22; color: #fff}

/* Status palette stays explicit, including text labels for color-independent use. */
.badge {font-size: 12px; line-height: 1.5; border-radius: 999px; padding: 4px 10px; font-weight: 600}
.badge.gray {background: #edf0f7; color: #657086}
.badge.blue {background: #eaf0ff; color: #405ab6}
.badge.green {background: #e8f6ee; color: #287659}
.badge.orange {background: #fff1dc; color: #956013}
.badge.red {background: #ffedf1; color: #ad344f}
.notice {font-size: 13px; line-height: 1.85; border-radius: 17px; padding: 15px 18px; border: 1px solid #d9e2f4; background: #f0f4fc; color: #4d6082; gap: 10px}
.notice .icon {width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0}
.notice.info {background: #eef3ff; border-color: #d6e0fd; color: #405994}
.notice.warning {background: #fff7e9; border-color: #efd6ad; color: #855811}
.notice.error {background: #fff0f3; border-color: #f0c5ce; color: #a6334a}
.operator-alert {font-size: 13px; border-radius: 16px; padding: 15px 17px; border: 1px solid #d8e1ed; border-left: 4px solid #99a9bd; background: #f6f8fc; color: #4d5d77; margin-bottom: 10px}
.operator-alert strong {font-size: 14px; line-height: 1.6}
.operator-alert p {font-size: 13px; line-height: 1.85; color: #526077; margin-top: 6px; margin-bottom: 0}
.operator-alert.info {background: #f0f5ff; border-color: #c5d7f5; border-left-color: #668ddb}
.operator-alert.warning {background: #fff7e9; border-color: #ead1a5; border-left-color: #c28b33}
.operator-alert.warning strong {color: #875712}
.operator-alert.danger {background: #fff0f3; border-color: #e8bdc7; border-left-color: #c34c66}
.operator-alert.danger strong {color: #a3324c}
.operator-alert:last-child {margin-bottom: 0}

/* All pages keep readable dense data, with horizontal scrolling when needed. */
.table-wrap {border-top: 1px solid #e3e9f3; scrollbar-width: thin; scrollbar-color: #c9d4e9 #f6f8fe; isolation: isolate}
.table-wrap table {border-collapse: separate; border-spacing: 0}
th {background: #f3f6fc; color: #5f6d87; font-size: 12px; line-height: 1.7; font-weight: 650; padding: 14px 18px; border-bottom: 1px solid #dce5f2}
td {font-size: 13px; line-height: 1.8; padding: 18px; color: #46556f; border-bottom: 1px solid #e5ebf5}
tbody tr:hover > td {background: #f7f9ff}
.table-name a, .table-name strong {font-size: 14px; color: #3e4c68; font-weight: 600}
.table-name small {font-size: 12px; color: var(--muted)}
.table-inline-select, .table-inline-input {font-size: 12px; min-height: 36px; border-radius: 10px}
.pagination {font-size: 12px; padding: 16px 22px; gap: 12px; background: #f8faff; border-color: #dce4f2; flex-wrap: wrap}
.pagination .btn {min-height: 34px; padding: 6px 10px; font-size: 12px}
.task-item {padding: 16px 0; gap: 12px; border-color: #e3e9f3}
.task-marker {width: 36px; height: 36px; border-radius: 12px; background: #edf1fc; color: var(--muted)}
.task-item-title {font-size: 14px; color: #43516e; line-height: 1.65}
.task-item-meta, .task-item-end {font-size: 12px; color: var(--muted); line-height: 1.7}
.job-card {padding: 18px; gap: 14px}
.file-icon {background: #edf1fc; color: var(--muted); border-radius: 13px}
.job-name {font-size: 14px; color: #40516f; line-height: 1.7}
.job-meta {font-size: 12px; color: var(--muted); gap: 8px}
.version-card {padding: 18px; border-radius: 18px; background: #fbfcff; box-shadow: none}
.version-note {font-size: 13px; color: #5c6c87; line-height: 1.8}
.settings-row {padding: 18px 0; gap: 18px; border-color: #e2e8f2}
.settings-row h3, .settings-row strong {color: #3e4c67; line-height: 1.65}
.settings-row h3 {font-size: 15px}
.settings-row p {font-size: 13px; line-height: 1.8; color: #65728c; margin-top: 5px}
.settings-row > div {min-width: 0}
.settings-row > .btn {flex-shrink: 0}
.info-item span, .metric-mini span {font-size: 12px; color: var(--muted)}
.info-item strong {font-size: 14px; color: #3f4f6b; line-height: 1.75}
.metric-mini-grid {background: #e0e6f4; border-color: #e0e6f4; border-radius: 18px}
.metric-mini {background: #fbfcff; padding: 18px}
.metric-mini strong {font-size: 22px; color: #2b3751}
.timeline-title {font-size: 14px; color: #45536d}
.timeline-meta, .timeline-content {font-size: 12px; color: var(--muted); line-height: 1.9}
.timeline-item {border-color: #d8e1f1}
.timeline-item:before {background: #98a9dc}
.chart-row {font-size: 12px; gap: 12px; margin: 19px 0; grid-template-columns: 108px minmax(0, 1fr) 85px}
.chart-name, .chart-amount {color: #586780}
.chart-track {height: 8px; background: #edf1fa}
.chart-fill {background: linear-gradient(90deg, #7397ff, #635be9)}
.empty {min-height: 210px; padding: 36px 24px; gap: 12px}
.empty-symbol {background: #edf1fc; color: var(--muted); width: 56px; height: 56px; border-radius: 18px}
.empty h3 {font-size: 15px; color: #4e5e7c}
.empty p {font-size: 13px; line-height: 1.85; color: var(--muted)}
.empty.compact {padding: 24px 16px; min-height: 160px}

/* Forms and overlays remain in their own stacking context; sticky headers never
   overlap footer actions or close buttons. */
input, select, textarea {font-size: 14px; line-height: 1.65; border-radius: 13px; border: 1px solid #cdd8ec; background: #fbfcff; color: #303a51; padding: 11px 13px; min-height: 44px}
input::placeholder, textarea::placeholder {color: var(--muted); opacity: 1}
input:focus, select:focus, textarea:focus {border-color: #8096ee; box-shadow: 0 0 0 3px #728dee12; outline: 2px solid #bbcafb; outline-offset: 2px}
input[type=checkbox], input[type=radio] {min-height: 0; width: 18px; height: 18px; flex-shrink: 0; accent-color: #5265de}
input[type=file] {font-size: 13px; min-height: 48px; background: #fff}
input[type=file]::file-selector-button {font-size: 12px; padding: 8px 12px; border-radius: 999px; background: #edf1ff; color: #5265c1}
.field > label {font-size: 13px; color: #455672; font-weight: 650; line-height: 1.6}
.field > small, .read-only-note {font-size: 12px; color: var(--muted); line-height: 1.8}
.form-grid {gap: 20px}
.form-section {margin-top: 28px; padding-top: 25px; border-color: #dfe6f3}
.form-section-title {font-size: 14px; color: #43536f; margin-bottom: 18px}
.check-field {font-size: 13px; color: #546480; line-height: 1.8}
.form-error {font-size: 13px; line-height: 1.8; color: #a63a50; background: #fff1f4; border-color: #edc4ce; border-radius: 14px}
.drawer-backdrop {background: rgba(35, 43, 70, .3); backdrop-filter: blur(4px); z-index: 80}
.drawer {background: #fbfcff; border-left: 1px solid #ffffffb3; box-shadow: -18px 0 60px #29385b20; z-index: 81}
.drawer.wide {width: min(1180px, 96vw)}
.drawer-head {padding: 24px 28px; background: #ffffffed; border-color: #dee6f3; align-items: center; gap: 16px; position: relative; z-index: 2}
.drawer-head h2 {font-size: 20px; color: #28334c}
.drawer-head p {font-size: 13px; line-height: 1.75; color: var(--muted); margin-top: 6px}
.drawer-head .icon-btn {width: 40px; height: 40px; background: #f0f3fb; border: 1px solid #e0e7f3; flex-shrink: 0; align-self: flex-start}
.drawer-body {padding: 26px 28px; background: #fbfcff; min-height: 0; overflow-y: auto; overscroll-behavior: contain}
.drawer-footer {padding: 18px 28px; background: #ffffffed; border-color: #dce5f3; gap: 14px; position: relative; z-index: 2; flex-wrap: wrap}
.drawer-footer .muted {font-size: 12px; line-height: 1.7}
.modal {border: 1px solid #e4eaf5; border-radius: 24px; padding: 28px; background: #fff; box-shadow: 0 25px 70px #28345b30; max-height: calc(100dvh - 40px); overflow-y: auto}
.modal h2 {font-size: 21px}
.modal p {font-size: 14px; line-height: 1.85; color: #63718a}
.modal-actions {gap: 10px; flex-wrap: wrap}
.toast {left: calc(50% + 100px); font-size: 13px; border-radius: 999px; background: #293044; box-shadow: 0 12px 28px #222c4424; padding: 13px 20px; bottom: 26px}
.toast.error {background: #a03a50}
.upload-zone {border-radius: 22px; border: 1.5px dashed #beccec; background: #f5f8ff; padding: 30px 24px; gap: 12px}
.upload-zone .upload-icon {background: #e7edff; color: var(--muted); border-radius: 15px}
.upload-zone h3 {font-size: 16px; color: #4b5e81}
.upload-zone p {font-size: 13px; color: var(--muted); line-height: 1.8}
.upload-zone.dragging {background: #e9efff; border-color: #6c85d9}
.notification-sound-controls {border-radius: 18px; padding: 16px; background: #f0f4fe; border: 1px solid #d8e2f5}

/* Operations home: editorial hierarchy instead of repeating equal card rows. */
.home-v2 {display: grid; gap: 24px; min-width: 0}
.home-v2-hero {display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap}
.home-v2-hero h1 {font-size: clamp(28px, 2.8vw, 38px); font-weight: 750; letter-spacing: -.9px; line-height: 1.28}
.home-v2-hero p {font-size: 14px; color: #64718b; line-height: 1.85; margin-top: 8px; max-width: 760px}
.home-v2-actions {display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 2px}
.home-v2-layout {display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 2.1fr); gap: 24px; align-items: start; min-width: 0}
.home-v2-layout > * {min-width: 0}
.home-v2-aside, .home-v2-main, .home-v2-column {display: grid; gap: 24px; min-width: 0}
.home-v2-primary {position: relative; isolation: isolate; color: #fff; padding: 28px; border-radius: 28px; background: linear-gradient(133deg, #2365fa, #474ced 55%, #7153e7); border: 1px solid #5368ef; box-shadow: 0 16px 35px #4656da26; overflow: hidden; min-width: 0}
.home-v2-primary::after {content: ''; position: absolute; inset: auto -100px -115px auto; width: 330px; height: 330px; border: 42px solid #ffffff0a; border-radius: 50%; z-index: -1; pointer-events: none}
.home-v2-primary h2, .home-v2-primary h3 {color: #fff}
.home-v2-primary h2 {font-size: 16px; font-weight: 600}
.home-v2-primary p, .home-v2-primary small, .home-v2-primary .muted, .home-v2-primary .stat-foot {color: #eef3ff; font-size: 12px; line-height: 1.8}
.home-v2-primary .stat-top {color: #edf2ff; font-size: 14px}
.home-v2-primary .stat-top .icon {background: #ffffff21; color: #fff}
.home-v2-primary .stat-value, .home-v2-primary .dashboard-core-value, .home-v2-primary-value {font-size: clamp(34px, 3vw, 49px); color: #fff; line-height: 1.25; font-weight: 700; letter-spacing: -1.3px; margin: 18px 0 10px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere}
.home-v2-primary .stat-value .unit, .home-v2-primary-value small {font-size: 21px; color: #fff; font-weight: 500; margin-right: 4px}
.home-v2-primary-head {display: flex; justify-content: space-between; align-items: center; gap: 14px}
.home-v2-primary-head > .icon {box-sizing: content-box; padding: 10px; border-radius: 50%; background: #ffffff23; color: #fff}
.home-v2-primary .dashboard-core-divider {margin: 25px 0 20px; background: #ffffff27}
.home-v2-primary .dashboard-core-secondary {gap: 20px}
.home-v2-primary .dashboard-core-secondary span {font-size: 12px}
.home-v2-primary .dashboard-core-secondary strong {font-size: 30px}
.home-v2-primary .dashboard-core-link {font-size: 13px; margin-top: 25px}
.home-v2-primary .btn {background: #ffffff1f; color: #fff; border-color: #ffffff3b; box-shadow: none}
.home-v2-primary .btn:hover {background: #ffffff30; border-color: #ffffff60}
.home-v2-top {display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 19px; flex-wrap: wrap}
.home-v2-top h2 {font-size: 18px; font-weight: 700; color: #2d3750}
.home-v2-top p {font-size: 12px; color: var(--muted); line-height: 1.8; margin-top: 5px}
.home-v2-section {padding: 24px; background: var(--surface); border: 1px solid var(--surface-border); border-radius: 24px; box-shadow: var(--shadow); min-width: 0}
.home-v2-section.panel > .panel-header {padding: 0 0 18px}
.home-v2-section.panel > .panel-body {padding: 0}
.home-v2-section.panel > .panel-footer {margin: 20px -24px -24px; padding: 15px 24px}
.home-v2-section > .panel {border: 0; border-radius: 0; box-shadow: none; background: transparent}
.home-v2-section > .panel > .panel-header {padding: 0 0 18px}
.home-v2-section > .panel > .panel-body {padding: 0}
.home-v2-section .section-heading {margin-bottom: 18px}
.home-v2-kpis {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; min-width: 0}
.home-v2-kpis .stat-card {background: #f6f8fe; box-shadow: none; border: 1px solid #e5eaf5; border-radius: 18px; padding: 17px 16px; min-height: 138px}
.home-v2-kpis .stat-top {font-size: 12px; gap: 6px}
.home-v2-kpis .stat-top .icon {width: 15px; height: 15px; padding: 5px; background: #e8eefa}
.home-v2-kpis .stat-value {font-size: clamp(24px, 2vw, 33px); margin: 14px 0 7px; letter-spacing: -.75px}
.home-v2-kpis .stat-value .unit {font-size: 15px}
.home-v2-kpis .stat-foot {font-size: 12px; line-height: 1.7}
.home-v2-kpis .stat-card.accent {background: linear-gradient(130deg, #2966f3, #6553e5); border-color: #5c69e8}
.home-v2-kpis .stat-card.accent .stat-top, .home-v2-kpis .stat-card.accent .stat-foot {color: #edf2ff}
.home-v2-shortcuts {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0}
.home-v2-shortcuts > a, .home-v2-shortcuts > button {display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 11px; border: 1px solid #e0e7f4; border-radius: 18px; padding: 18px; color: #465575; background: #f7f9fe; min-width: 0; line-height: 1.7; position: relative}
.home-v2-shortcuts > a:hover, .home-v2-shortcuts > button:hover {background: #f0f4ff; border-color: #c3cff0; text-decoration: none}
.home-v2-shortcuts .icon {box-sizing: content-box; padding: 10px; border-radius: 50%; background: #e9eefb; color: #657bd0; width: 19px; height: 19px}
.home-v2-shortcuts .dashboard-row-icon {width: 38px; height: 38px; border-radius: 50%; background: #e9eefb}
.home-v2-shortcuts .dashboard-row-icon > .icon {padding: 0; width: 18px; height: 18px; background: transparent}
.home-v2-shortcuts > a > .icon, .home-v2-shortcuts > button > .icon {position: absolute; right: 16px; top: 18px; width: 15px; height: 15px; padding: 0; background: transparent; color: #9babc9}
.home-v2-shortcuts strong {font-size: 14px; font-weight: 650; color: #3c4c6e}
.home-v2-shortcuts span, .home-v2-shortcuts small {font-size: 12px; color: var(--muted)}
.home-v2-shortcuts small {display: block; margin-top: 4px; line-height: 1.75}
.home-v2-watchlist {display: grid; gap: 12px; min-width: 0}
.home-v2-watchlist > article, .home-v2-watchlist > .dashboard-work-row {padding: 18px; background: #fbfcff; border: 1px solid #e0e7f4; border-radius: 18px; box-shadow: 0 2px 5px #364d8303; min-width: 0}
.home-v2-watchlist h3 {font-size: 14px; color: #46516a}
.home-v2-watchlist p {font-size: 13px; line-height: 1.8; color: #63738e; margin-top: 5px}
.home-v2-watchlist .operator-alert {box-shadow: none}
.home-v2-watchlist .home-watch {display: flex; align-items: center; gap: 13px; border-left: 4px solid #bac9e5; background: #f9fbff}
.home-v2-watchlist .home-watch > div {flex: 1; min-width: 0}
.home-v2-watchlist .home-watch strong {font-size: 14px; line-height: 1.7; color: #496082}
.home-v2-watchlist .home-watch p {font-size: 12px; line-height: 1.8; margin-top: 5px}
.home-v2-watchlist .home-watch.info {background: #f2f6ff; border-color: #cbd9f3; border-left-color: #799ad8}
.home-v2-watchlist .home-watch.warning {background: #fff9ef; border-color: #e9d8b8; border-left-color: #c39954}
.home-v2-watchlist .home-watch.danger {background: #fff3f5; border-color: #e9c7ce; border-left-color: #c9677c}
.home-v2-watchlist .home-watch.danger strong {color: #a65367}
.home-data-health > summary, .operator-team-overview > summary {display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; cursor: pointer; padding: 3px 0; font-size: 14px; font-weight: 600; color: #52678f; line-height: 1.7}
.home-data-health > summary::-webkit-details-marker, .operator-team-overview > summary::-webkit-details-marker {display: none}
.home-data-health > summary > span, .operator-team-overview > summary > span {display: inline-flex; align-items: center; gap: 9px}
.home-data-health > summary > span:last-child, .operator-team-overview > summary > span:last-child {font-size: 12px; color: var(--muted); font-weight: 500}
.home-data-health > summary .icon, .operator-team-overview > summary .icon {width: 18px; height: 18px; color: #8294bb}
.home-data-health[open] > summary {padding-bottom: 20px; border-bottom: 1px solid #e0e7f3; margin-bottom: 20px}
.home-data-health[open] > summary > span:last-child .icon {transform: rotate(180deg)}
.home-v2 .dashboard-period {margin-bottom: 0; padding: 14px 18px; font-size: 12px; line-height: 1.8; border-radius: 17px; background: #ffffffb8; border-color: #dce4f3; gap: 6px 18px}
.home-v2 .dashboard-period strong {color: #4b5c7b; font-weight: 600}
.home-v2 .dashboard-work-tabs {padding: 0 0 18px; gap: 8px}
.dashboard-tab {font-size: 12px; padding: 8px 15px; min-height: 36px; border-color: #dbe4f3; color: var(--muted)}
.dashboard-tab.active, .dashboard-tab.active:hover {background: #262a38; border-color: #262a38; color: #fff}
.dashboard-work-list {gap: 12px}
.dashboard-work-row {padding: 16px; gap: 13px; border-radius: 18px; border-color: #dee6f5; background: #fbfcff}
.dashboard-row-icon {width: 42px; height: 42px; background: #edf2ff; color: var(--muted)}
.dashboard-work-main > .text-button {font-size: 14px; color: #435371}
.dashboard-work-meta, .dashboard-work-status {font-size: 12px; color: var(--muted); line-height: 1.7}
.dashboard-work-meta {gap: 4px 12px; margin-top: 6px}
.dashboard-row-arrow {width: 34px; height: 34px; border-color: #dce4f3; background: #fff}
.dashboard-business-card {background: linear-gradient(140deg, #eff8ffec, #f2edffec)}
.dashboard-store-total strong {font-size: 48px; font-weight: 700; color: #2a3754}
.dashboard-store-total span, .dashboard-business-numbers span {font-size: 12px; color: var(--muted)}
.dashboard-business-numbers strong {font-size: 25px; color: #34456a}
.dashboard-business-card .metric-note {font-size: 12px}
.dashboard-business-card .btn {font-size: 12px; min-height: 38px}
.dashboard-distribution {gap: 22px}
.distribution-ring {width: 150px; height: 150px; background: conic-gradient(#5e73ee var(--share), #d0d3f6 0); box-shadow: inset 0 0 0 1px #6277f00d}
.distribution-ring > div {width: 116px; height: 116px; background: #fff}
.distribution-ring span {font-size: 12px; color: var(--muted)}
.distribution-ring strong {font-size: 29px; font-weight: 700; color: #35405a}
.distribution-legend span:not(.legend-dot), .distribution-legend small {font-size: 12px; line-height: 1.6; color: #6b7790}
.distribution-legend strong {font-size: 16px; color: #354462}
.dashboard-trend .trend-label {font-size: 12px; fill: #606c82}
.trend-details {font-size: 12px; color: #586b91; line-height: 1.8}
.trend-values > div {padding: 10px 12px; border-radius: 13px; background: #f3f6fd}
.trend-values small {font-size: 12px; color: var(--muted)}
.dashboard-communication {padding: 22px; border-radius: 24px; border-color: #dbe2f5}
.dashboard-communication h2 {font-size: 16px; color: #3c4c6a}
.dashboard-communication p {font-size: 12px; line-height: 1.85; color: var(--muted)}
.dashboard-communication .btn {font-size: 12px; min-height: 40px}

/* Operators: each store has a named card, visible actions and an inset detail. */
.operator-team-overview {display: block; margin-bottom: 0}
.operator-team-overview > summary {padding: 22px 24px}
.operator-team-overview[open] > summary {padding-bottom: 19px; border-bottom: 1px solid #e1e8f4; margin-bottom: 20px}
.operator-team-overview[open] > summary > span:last-child .icon {transform: rotate(180deg)}
.operator-person-card {padding: 22px; border-radius: 22px; border: 1px solid #dbe4f3; background: #ffffffed; box-shadow: 0 6px 18px #37538906; min-width: 0}
.operator-person-card h3, .operator-person-card h2 {font-size: 17px; color: #3a4762; font-weight: 700}
.operator-person-card p {font-size: 13px; line-height: 1.9; color: #63718b; margin-top: 10px}
.operator-person-card small {font-size: 12px; line-height: 1.8; color: var(--muted)}
.operator-person-card .badge {margin-left: 8px}
.operator-store-cards {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; min-width: 0; padding: 0 24px 24px}
.panel-body > .operator-store-cards {padding: 0}
.operator-store-card {border: 1px solid #dce5f4; border-radius: 22px; background: #fff; box-shadow: 0 5px 16px #3f578408; min-width: 0; overflow: hidden; scroll-margin-top: 92px}
.operator-store-card:has(.operator-store-card-detail) {grid-column: 1 / -1}
.operator-store-card:has(.operator-alert.danger) {border-color: #e3bcc9}
.operator-store-card:has(.operator-alert.warning):not(:has(.operator-alert.danger)) {border-color: #e9d4b4}
.operator-store-card-head {display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 18px; min-width: 0}
.operator-store-card-head > div {min-width: 0}
.operator-store-card-name {display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-width: 0}
.operator-store-card-name > button, .operator-store-card-name > a, .operator-store-card-name h3, .operator-store-card-name .text-button {font-size: 17px; line-height: 1.7; font-weight: 700; text-align: left; color: #3855ad; white-space: normal; overflow-wrap: anywhere}
.operator-store-card-name > div {flex: 1; min-width: 0}
.operator-store-card-name > button:hover, .operator-store-card-name > a:hover {color: #233a8f}
.operator-store-card-name .icon {width: 18px; height: 18px}
.operator-store-card-name p {font-size: 12px; line-height: 1.75; color: var(--muted); margin-top: 5px}
.operator-store-card-head .muted, .operator-store-card-head small {font-size: 12px; line-height: 1.7; color: var(--muted); margin-top: 5px}
.operator-store-card-head > .btn {flex-shrink: 0}
.operator-store-card-metrics {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 24px 20px; min-width: 0}
.operator-store-card-metrics > div {padding: 13px 15px; border-radius: 15px; border: 1px solid #e3e9f5; background: #f6f8fd; min-width: 0}
.operator-store-card-metrics span, .operator-store-card-metrics small {display: block; font-size: 12px; color: var(--muted); line-height: 1.8}
.operator-store-card-metrics strong {display: block; font-size: 21px; color: #3a4968; font-weight: 650; line-height: 1.5; margin-top: 3px; letter-spacing: -.2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere}
.operator-store-card-alerts {padding: 0 24px 20px; display: grid; gap: 10px; min-width: 0}
.operator-store-card-alerts .operator-alert {margin: 0}
.operator-store-card-alerts > p {font-size: 13px; line-height: 1.9; color: var(--muted); padding: 13px 16px; background: #f6f8fc; border-radius: 15px}
.operator-store-card-footer {display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 15px 24px; background: #f7f9ff; border-top: 1px solid #e0e7f3}
.operator-store-card-footer .operator-row-actions {margin-top: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 10px}
.operator-store-card-footer p, .operator-store-card-footer small, .operator-store-card-footer .muted {font-size: 12px; line-height: 1.7; color: var(--muted)}
.operator-store-card-footer .text-button {font-size: 13px; font-weight: 600}
.operator-store-card-footer > span {font-size: 12px; line-height: 1.7; color: var(--muted)}
.operator-store-card-footer > div {display: flex; flex-wrap: wrap; align-items: center; gap: 8px}
.operator-store-card-detail {padding: 24px; border-top: 1px solid #d4dff4; background: linear-gradient(150deg, #eef3ff, #f7f9ff); min-width: 0; overflow-wrap: anywhere}
.operator-store-card-detail .operator-inline {max-width: none; margin: 0}
.operator-store-card-detail .detail-hero {margin-bottom: 22px; flex-wrap: wrap}
.operator-store-card-detail .detail-hero h1 {font-size: 26px}
.operator-store-card-detail .detail-actions {flex-wrap: wrap}
.operator-store-card-detail .store-board {border-color: #d1ddf2; background: #eef3fb; border-radius: 22px}
.operator-store-card-detail .store-workspace {grid-template-columns: minmax(0, 1fr) minmax(260px, 320px)}
.operator-store-card-detail .store-chain {position: static; max-height: none}
.operator-store-section {min-width: 0; scroll-margin-top: 96px}
.operator-store-section > .operator-store-cards {padding: 0}
.operator-store-section > .pagination {margin-top: 20px; border: 1px solid #dbe5f4; border-radius: 18px; background: #ffffffb5}
.store-detail-toolbar {display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 2px 4px 20px; min-width: 0}
.store-detail-toolbar > div {display: flex; flex-direction: column; gap: 5px; min-width: 0}
.store-detail-toolbar strong {font-size: 21px; line-height: 1.6; color: #3a4d73; overflow-wrap: anywhere}
.store-detail-toolbar span {font-size: 12px; color: var(--muted); line-height: 1.8}
.store-detail-toolbar > .text-button {font-size: 13px; white-space: nowrap; padding-top: 6px}
.store-detail-tabs {display: flex; gap: 9px; flex-wrap: wrap; border-bottom: 1px solid #d6e1f4; padding: 0 2px 17px; margin-bottom: 21px}
.store-detail-tabs .tab {display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 9px 15px; background: #fff; border-color: #d6e0f2}
.store-detail-tabs .tab .icon {width: 16px; height: 16px}
.store-detail-tabs .tab.active {background: #292d3f; border-color: #292d3f; color: #fff}
[data-store-pane] {min-width: 0; scroll-margin-top: 96px}
.store-detail-extra {margin-top: 20px; border: 1px solid #dce5f4; border-radius: 19px; background: #ffffffb0; padding: 18px 20px; min-width: 0}
.store-detail-extra > summary {display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; line-height: 1.8}
.store-detail-extra > summary::-webkit-details-marker {display: none}
.store-detail-extra > summary > .icon {width: 17px; height: 17px; color: #859cc8}
.store-detail-extra > summary > .icon:last-child {margin-left: auto}
.store-detail-extra[open] > summary {margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid #dde6f4}
.store-detail-extra[open] > summary > .icon:last-child {transform: rotate(180deg)}
.store-detail-extra > .panel {background: #fff}
.operator-totals .section-heading h2 {font-size: 19px; color: #394761}
.operator-totals-more {margin: -4px 0 24px; padding: 16px 20px; background: #ffffffa8; border: 1px solid #dde6f5; border-radius: 18px; min-width: 0}
.operator-totals-more > summary {display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; font-size: 13px; line-height: 1.8; color: var(--muted); font-weight: 600}
.operator-totals-more > summary::-webkit-details-marker {display: none}
.operator-totals-more > summary .icon {width: 16px; height: 16px}
.operator-totals-more[open] > summary {margin-bottom: 17px}
.operator-totals-more .stats-grid {margin-bottom: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px}
.operator-totals-more .stat-card {background: #f7f9fe; border-color: #e0e8f6; box-shadow: none; min-height: 128px; padding: 18px}
.operator-totals-more .stat-value {font-size: 28px; margin: 12px 0 8px}

/* Work records keep the question, next action and date in separate zones. */
.followup-card-grid, .worksheet-card-grid {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; min-width: 0}
.followup-card, .worksheet-card {border: 1px solid #dbe5f4; border-radius: 22px; padding: 22px; background: #fff; box-shadow: 0 5px 15px #3d577307; min-width: 0; overflow: hidden}
.followup-card-top, .worksheet-card > header, .worksheet-card > .flex-between {display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 15px; min-width: 0}
.followup-card-top > span {font-size: 12px; line-height: 1.7; color: var(--muted)}
.followup-card-top > span:not(.badge) {display: inline-flex; align-items: center; gap: 8px}
.followup-card-top .icon {width: 16px; height: 16px; color: #91a7cb}
.followup-card h3 {font-size: 16px; line-height: 1.8; color: #405577; font-weight: 650; overflow-wrap: anywhere}
.followup-card h3 > .text-button {font-size: 16px; line-height: 1.8; color: #405577; font-weight: 650; text-align: left; overflow-wrap: anywhere}
.followup-card-store {display: flex; align-items: center; flex-wrap: wrap; gap: 7px 10px; margin-top: 10px; font-size: 12px; line-height: 1.8; color: var(--muted)}
.followup-card-store .icon {width: 15px; height: 15px; color: #91a4c8}
.followup-card-store a {font-size: 13px; font-weight: 600; color: var(--muted)}
.followup-next {padding: 16px; border: 1px solid #e1e9f7; border-radius: 16px; background: #f4f7fe; margin-top: 18px; color: #536e96; min-width: 0}
.followup-next > span, .followup-next > small, .followup-next > label {display: block; font-size: 12px; color: var(--muted); line-height: 1.7; font-weight: 600}
.followup-next > p {font-size: 14px; line-height: 1.85; color: #506a92; margin-top: 5px; white-space: pre-wrap}
.followup-card-footer, .worksheet-card > footer, .worksheet-card-footer {display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 20px; padding-top: 17px; border-top: 1px solid #e0e7f3}
.followup-card-footer > div {display: grid; gap: 4px}
.worksheet-card > footer > div, .worksheet-card-footer > div {display: flex; align-items: center; flex-wrap: wrap; gap: 8px}
.followup-card-footer > span, .followup-card-footer time, .worksheet-card > footer > span, .worksheet-card > footer time, .worksheet-card-footer > span {font-size: 12px; line-height: 1.8; color: var(--muted)}
.followup-card-footer p {font-size: 13px; line-height: 1.8; color: var(--muted)}
.followup-card-footer .negative, .worksheet-card > footer .negative, .worksheet-card-footer .negative {color: #b5576d}
.followup-card-footer .btn, .worksheet-card > footer .btn, .worksheet-card-footer .btn {font-size: 12px; min-height: 37px; padding: 8px 13px}
.worksheet-card > header h3, .worksheet-card > header .text-button, .worksheet-card > .flex-between h3 {font-size: 16px; font-weight: 700; line-height: 1.8; text-align: left; color: #405aa4; white-space: normal; overflow-wrap: anywhere}
.worksheet-card > header > div, .worksheet-card > .flex-between > div {min-width: 0}
.worksheet-card > header p, .worksheet-card > .flex-between p {font-size: 12px; line-height: 1.8; color: var(--muted); margin-top: 5px}
.worksheet-card > .flex-between h3 a {color: #405aa4}
.worksheet-card .operator-store-card-metrics {padding: 0; margin-top: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px}
.worksheet-card .operator-store-card-metrics > div {padding: 12px 13px}
.worksheet-card .operator-store-card-metrics strong {font-size: 20px}
.worksheet-card-work {margin-top: 18px; border: 1px solid #e0e8f6; border-radius: 16px; background: #f5f8fe; padding: 16px; color: #596f95; min-width: 0}
.worksheet-card-work > section {display: grid; gap: 4px; min-width: 0}
.worksheet-card-work > div + div, .worksheet-card-work > section + section {border-top: 1px solid #dfe8f7; padding-top: 14px; margin-top: 14px}
.worksheet-card-work label, .worksheet-card-work small, .worksheet-card-work span {font-size: 12px; line-height: 1.8; color: var(--muted)}
.worksheet-card-work h4, .worksheet-card-work strong {font-size: 13px; line-height: 1.8; color: #597197; font-weight: 600}
.worksheet-card-work p {font-size: 14px; line-height: 1.85; color: #516c95; margin-top: 5px; white-space: pre-wrap}
.worksheet-card-work .negative {color: #b5576d}
.followup-card.overdue, .worksheet-card.overdue {border-color: #e9c7d2; background: #fffafb}

/* Team accounts use an identity card; less frequent controls stay expandable. */
.member-grid {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 20px; padding: 0 24px 24px; min-width: 0}
.panel-body > .member-grid {padding: 0}
.member-card {display: flex; flex-direction: column; gap: 17px; padding: 22px; border: 1px solid #dce5f4; border-radius: 22px; background: #fff; box-shadow: 0 5px 17px #41578907; min-width: 0}
.member-card-heading {display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0}
.member-card-heading > .avatar {width: 43px; height: 43px; border-radius: 15px; background: #eaf0fc; color: var(--muted); font-size: 17px; flex: 0 0 43px}
.member-card-heading > div:not(.avatar) {min-width: 0; flex: 1}
.member-card-heading > div:not(.avatar) > span {display: block; font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 2px}
.member-card-heading h3, .member-card-heading strong {font-size: 16px; color: #3c4d6c; font-weight: 700; line-height: 1.65; overflow-wrap: anywhere}
.member-card-heading .badge {flex: 0 0 auto}
.member-card-heading > div > .badge {margin-top: 5px}
.member-account {padding: 13px 15px; border-radius: 15px; border: 1px solid #e1e8f6; background: #f6f9fe; min-width: 0}
.member-account > span, .member-account > label, .member-account > small {display: block; font-size: 12px; color: var(--muted); line-height: 1.7; margin-bottom: 4px}
.member-account code {display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.8; color: #526d99; white-space: normal; overflow-wrap: anywhere; letter-spacing: .1px}
.member-scope {display: flex; align-items: flex-start; gap: 8px; min-height: 46px; color: var(--muted); font-size: 13px; line-height: 1.85; overflow-wrap: anywhere}
.member-scope > .icon {width: 16px; height: 16px; margin-top: 4px; color: #93a5c7; flex-shrink: 0}
.member-scope strong {color: #485e82; font-weight: 600}
.member-scope .badge {margin-right: 6px}
.member-card-actions {display: grid; gap: 10px; margin-top: auto}
.member-card-actions > .btn {width: 100%; min-height: 42px; white-space: normal; font-size: 12px; line-height: 1.65; border-color: #d3ddf4; background: #eef3ff; color: #4c63b5; box-shadow: none}
.member-card-actions > .btn:hover {background: #e3ebff; border-color: #b9c9ef}
.member-card-actions > .btn.primary {background: #4f65e8; border-color: #4f65e8; color: #fff}
.member-card-actions > .btn.primary:hover {background: #3e54d3; border-color: #3e54d3}
.member-manage-menu {border: 1px solid #dce5f3; border-radius: 16px; background: #fcfdff; overflow: hidden}
.member-manage-menu > summary {display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 15px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; list-style: none; min-height: 42px}
.member-manage-menu > summary::-webkit-details-marker {display: none}
.member-manage-menu > summary::after {display: none}
.member-manage-menu[open] > summary {background: #f1f5fd; border-bottom: 1px solid #e0e8f5}
.member-manage-menu[open] > summary::after {transform: rotate(180deg)}
.member-manage-menu > div, .member-manage-menu > .toolbar {display: grid; gap: 8px; padding: 12px; min-width: 0}
.member-manage-menu > .btn {display: flex; width: calc(100% - 24px); margin: 10px 12px}
.member-manage-menu .btn {min-height: 38px; font-size: 12px; border-radius: 12px; text-align: left; justify-content: flex-start; white-space: normal; line-height: 1.65; background: #fff; border-color: #dce5f4; box-shadow: none}
.member-manage-menu .btn:hover {background: #f0f4ff; border-color: #bfcef1}
.member-manage-menu .btn.danger {color: #a43d55; background: #fff6f8; border-color: #ebc7d0}
.member-manage-menu .text-button {width: 100%; padding: 11px 12px; min-height: 44px; font-size: 13px; line-height: 1.7; color: var(--muted); text-align: left; border-radius: 10px}
.member-manage-menu .text-button:hover {background: #edf3ff; color: #4d659e; text-decoration: none}
.member-manage-menu .text-button.negative {color: #a44860}
.member-manage-menu > summary > .icon {width: 16px; height: 16px; color: #869abd; margin-left: auto}
.member-manage-menu[open] > summary > .icon {transform: rotate(90deg)}

/* Existing business modules adopt the same card and text rules. */
.module-workflow {display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; margin: 0 0 24px; padding: 20px; border: 1px solid #dae4f5; border-radius: 22px; background: #ffffffa8; min-width: 0; list-style: none}
.module-workflow > div, .module-workflow > article, .module-workflow > li {display: flex; align-items: flex-start; gap: 12px; min-width: 0}
.module-workflow > div > span:first-child, .module-workflow > article > span:first-child, .module-workflow > li > span:first-child {display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #e9efff; color: #536794; font-size: 12px; font-weight: 650; flex-shrink: 0}
.module-workflow > li {align-items: center}
.module-workflow h3, .module-workflow strong {font-size: 14px; line-height: 1.65; color: #4c6389; font-weight: 650}
.module-workflow p, .module-workflow small {display: block; margin-top: 4px; font-size: 12px; line-height: 1.8; color: var(--muted)}
.learning-task-grid {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; min-width: 0}
.learning-task-grid > .empty, .operator-store-cards > .empty, .worksheet-card-grid > .empty, .followup-card-grid > .empty {grid-column: 1 / -1}
.learning-task-card {padding: 22px; border: 1px solid #dbe5f5; border-radius: 22px; background: #fff; box-shadow: 0 5px 15px #3b567505; min-width: 0}
.learning-task-card > header, .learning-task-card > .flex-between {display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 12px}
.learning-task-card h3, .learning-task-card strong {font-size: 16px; line-height: 1.7; color: #3f567e}
.learning-task-card p, .learning-task-card small {font-size: 13px; line-height: 1.8; color: var(--muted); margin-top: 6px}
.learning-task-card > .btn, .learning-task-card > footer {margin-top: 18px}
.learning-task-card > .toolbar {display: flex; align-items: center; gap: 10px; margin-top: 20px; padding-top: 17px; border-top: 1px solid #e1e9f6}
.learning-task-kind {display: inline-flex; align-items: center; gap: 7px; font-size: 12px; line-height: 1.8; color: var(--muted)}
.learning-task-kind .icon {width: 16px; height: 16px; color: #9aaccd}
.learning-task-results {display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 18px; font-size: 12px; line-height: 1.8; color: var(--muted)}
.learning-task-results strong {font-size: 17px; color: #58709d; font-variant-numeric: tabular-nums}
.learning-task-card.overdue {border-color: #e8c1ce; background: #fffafb}
.learning-task-card footer {display: flex; gap: 9px; flex-wrap: wrap; align-items: center; padding-top: 16px; border-top: 1px solid #e2eaf5}
.learning-progress {margin-top: 17px; padding: 13px 15px; border: 1px solid #e3eaf8; border-radius: 14px; background: #f4f7fe; font-size: 12px; color: var(--muted); line-height: 1.8}
.learning-progress progress, progress.learning-progress {display: block; width: 100%; height: 8px; border: 0; border-radius: 999px; overflow: hidden; margin-top: 9px; accent-color: #647ce9}
.learning-progress progress::-webkit-progress-bar {background: #e0e8f8; border-radius: 999px}
.learning-progress progress::-webkit-progress-value {background: linear-gradient(90deg, #8caff7, #6e70e1); border-radius: 999px}
.learning-progress progress::-moz-progress-bar {background: linear-gradient(90deg, #8caff7, #6e70e1); border-radius: 999px}
.learning-progress .flex-between > span, .learning-progress .flex-between > strong {font-size: 12px; line-height: 1.8; color: var(--muted)}
.store-info-summary {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; min-width: 0}
.store-info-summary > a, .store-info-summary > button {display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 22px; border: 1px solid #dbe5f5; border-radius: 22px; background: #ffffffde; color: var(--muted); text-align: left; box-shadow: var(--shadow); font: inherit; min-width: 0}
.store-info-summary > a:hover, .store-info-summary > button:hover {background: #f8faff; border-color: #afc0e7; text-decoration: none}
.store-info-summary > .active, .store-info-summary > .selected {background: #eff3ff; border-color: #99afe3; box-shadow: inset 0 0 0 1px #b4c5f0}
.store-info-summary strong {display: block; font-size: 30px; line-height: 1.4; font-weight: 700; color: #405880; font-variant-numeric: tabular-nums}
.store-info-summary span, .store-info-summary small {font-size: 12px; line-height: 1.7; color: var(--muted)}
.store-info-summary .icon {box-sizing: content-box; width: 20px; height: 20px; padding: 12px; border-radius: 50%; background: #edf2fe; color: #8298c6}
.store-info-summary > .stat-card {display: block; padding: 22px; min-height: 163px; appearance: none; text-align: left}
.store-info-summary > .stat-card .stat-top {display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px}
.store-info-summary > .stat-card .stat-top span {font-size: 13px; color: var(--muted)}
.store-info-summary > .stat-card .stat-value {font-size: 34px; color: #42577e; margin: 15px 0 8px; line-height: 1.3}
.store-info-summary > .stat-card .stat-foot {font-size: 12px; line-height: 1.8; color: var(--muted)}
.store-import-receipt > summary {display: flex; align-items: center; padding: 18px 22px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; line-height: 1.8}
.store-import-receipt[open] > summary {margin-bottom: 18px; border-bottom: 1px solid #e0e8f4}
.insight-modules {gap: 18px}
.insight-module {border: 1px solid #d7e2f3; border-radius: 22px; background: #f8faff; overflow: hidden}
.insight-module-header {padding: 20px; background: #eff4fd; border-color: #d9e3f4}
.insight-module-title h3 {font-size: 16px; color: #455675}
.insight-module-header p, .insight-card-detail {font-size: 13px; color: var(--muted); line-height: 1.85}
.insight-count {font-size: 12px; color: #5e7198; background: #e0e9fb; border-radius: 999px; padding: 3px 9px}
.insight-module-list {padding: 14px; gap: 12px}
.insight-card {background: #fff; border: 1px solid #dae4f5; border-left: 4px solid #98b2e6; border-radius: 17px; padding: 18px}
.insight-card.critical {border-color: #e8c2cb; border-left-color: #c9687b; background: #fff9fa}
.insight-card-heading strong {font-size: 14px; color: #4a5c7c}
.insight-card.critical .insight-card-heading strong {color: #a54a5c}
.insight-card-actions {gap: 10px; flex-wrap: wrap}
.insight-more summary {font-size: 13px; color: #5a6eb7; padding: 13px 18px; line-height: 1.75}
.store-info-card {border-radius: 24px}
.store-info-card .panel-header {padding: 20px}
.store-info-card .panel-body {padding: 20px; gap: 12px}
.store-info-card h2 {font-size: 17px; line-height: 1.65}
.store-signboard {background: #f0f4fc; border-color: #d8e2f2; height: 190px}
.store-signboard.placeholder {color: var(--muted)}
.store-signboard.large {border-radius: 18px; border-color: #d5dff0}
.store-info-missing {font-size: 12px; color: var(--muted); background: #f2f5fc; border-color: #cfdaf0; border-radius: 12px; line-height: 1.8}
.store-link-issue {font-size: 13px; background: #fff8eb; border-color: #ebd8b7; border-left-color: #bc8d3f; border-radius: 14px; line-height: 1.85}
.store-search-count {font-size: 12px; line-height: 1.6; color: var(--muted)}
.store-board {border-radius: 24px; padding: 24px; background: #eff4fc; border-color: #d7e2f3}
.board-heading {padding: 24px; border-radius: 21px; background: #fff; gap: 20px}
.board-heading h2 {font-size: 23px; line-height: 1.5}
.board-heading p, .board-heading small {font-size: 12px; color: var(--muted); line-height: 1.8}
.board-card {border-radius: 20px; padding: 22px; border-color: #d8e3f3; background: #fff}
.board-card-title {font-size: 14px; gap: 8px; color: #41506b; flex-wrap: wrap}
.board-card-title span {font-size: 12px}
.board-card strong {font-size: 30px; line-height: 1.4; font-variant-numeric: tabular-nums; color: #2f3e5e; margin: 13px 0 9px}
.board-card small {font-size: 12px; line-height: 1.8; color: var(--muted)}
.board-card.good {background: #f1faf6; border-color: #bcdfd0}
.board-card.good strong, .board-card.good span {color: #208267}
.board-card.warn {background: #fff9ed; border-color: #ead3a1}
.board-card.warn strong, .board-card.warn span {color: #a57719}
.board-card.neutral span {color: var(--muted)}
.detail-hero .store-monogram {background: #e7edfa; color: var(--muted); border-radius: 18px}
.detail-hero h1 {font-size: 29px; line-height: 1.5}
.detail-meta {font-size: 13px; color: var(--muted); gap: 10px; line-height: 1.75}
.comm-cards {gap: 20px}
.comm-card {border: 1px solid #dae4f4; border-radius: 22px; background: #fff; padding: 22px; box-shadow: 0 5px 18px #3a50700a}
.comm-card h3 {font-size: 16px; line-height: 1.7; color: #3d4e6d}
.comm-card p {font-size: 13px; color: var(--muted); line-height: 1.85; margin-top: 9px}
.comm-card .comm-copy {background: #f1f5fd; border: 1px solid #e0e8f7; color: #475e84; padding: 17px; border-radius: 17px; font-size: 15px; line-height: 1.9; margin: 16px 0}
.comm-store-picker {border-color: #d9e3f3; border-radius: 18px; background: #fff; scrollbar-width: thin}
.comm-store-choice {font-size: 14px; border-color: #e3eaf5; color: #506384; padding: 16px 10px}
.comm-store-choice small {font-size: 12px; line-height: 1.7; color: var(--muted)}
.comm-counter {font-size: 12px; color: var(--muted)}
.comm-checklist {border-radius: 18px; border-color: #d8e3f5; background: #f6f9fe}
.performance-body {padding: 24px}
.performance-person summary {font-size: 14px; color: #586ec1; line-height: 1.8}
.performance-stores > div {background: #f2f5fd; border: 1px solid #e0e7f5; border-radius: 15px; padding: 15px; gap: 9px; line-height: 1.8}
.performance-stores small {font-size: 12px; color: var(--muted)}
.performance-weekly article {border-radius: 20px; border-color: #dce5f4; padding: 21px; background: #fbfcff}
.performance-week-input {scroll-margin-top: 98px}
.performance-cumulative {font-size: 12px; color: var(--muted); line-height: 1.8}
.kanban-col {background: #edf2fb; border-color: #dce5f4; border-radius: 20px; padding: 16px}
.kanban-title {font-size: 13px; color: #5b6f95}
.kanban-card {border-radius: 16px; border-color: #dce5f4; background: #fff; padding: 18px}
.kanban-card-title {font-size: 14px; line-height: 1.7; color: #4c6186}
.kanban-card-meta {font-size: 12px; color: var(--muted); line-height: 1.7}
.kanban-empty {font-size: 12px; color: var(--muted)}
.preview-count, .pdf-note, .preview-summary > div {font-size: 12px; line-height: 1.7; color: var(--muted)}
.preview-summary > div {background: #f0f5fe; border-radius: 15px; padding: 16px}
.preview-summary strong {font-size: 22px; color: #405c90}
.metric-detail-grid span {font-size: 12px; color: var(--muted)}
.metric-detail-grid strong {font-size: 13px; color: #485f88; line-height: 1.7}
.line-editor td, .line-editor th {font-size: 12px; line-height: 1.65}
.line-editor input {font-size: 12px}
.auth-art {background: linear-gradient(145deg, #2864f1, #494fe0 62%, #6955d6); color: #fff}
.auth-art h1 {font-size: 45px; font-weight: 650; color: #fff}
.auth-art p {font-size: 14px; line-height: 1.95; color: #e0eaff}
.auth-art .brand-name {font-size: 23px; color: #fff}
.auth-art .brand-note, .auth-art-footer {font-size: 12px; color: #dce5ff}
.auth-card h2 {font-size: 30px; color: #2a3652}
.auth-card > p {font-size: 14px; color: var(--muted); line-height: 1.9}
.auth-card .btn {font-size: 14px; min-height: 48px}

/* Desktop spacing changes gradually; the data area keeps priority. */
@media (min-width: 1600px) {
  .main {padding: 38px 42px 58px}
  .topbar {padding: 0 42px}
  .home-v2-layout {grid-template-columns: minmax(340px, 1fr) minmax(0, 2.15fr); gap: 26px}
  .home-v2-primary {padding: 32px}
  .home-v2-section {padding: 28px}
  .home-v2-section.panel > .panel-footer {margin: 20px -28px -28px; padding: 15px 28px}
  .home-v2-kpis {gap: 14px}
}
@media (max-width: 1250px) {
  .main {padding: 28px 24px 44px}
  .topbar {padding: 0 24px}
  .page-heading h1 {font-size: 30px}
  .page-heading > .page-actions:not(:empty) {width: 100%; margin-left: 0; justify-content: flex-start; padding-top: 0}
  .home-v2-layout {grid-template-columns: minmax(275px, 1fr) minmax(0, 1.8fr); gap: 20px}
  .home-v2-primary {padding: 24px}
  .home-v2-section {padding: 22px}
  .home-v2-section.panel > .panel-footer {margin: 20px -22px -22px; padding: 15px 22px}
  .home-v2-kpis {grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px}
  .home-v2-kpis .stat-card {min-height: 128px}
  .home-v2-shortcuts {grid-template-columns: repeat(2, minmax(0, 1fr))}
  .home-v2-shortcuts > :last-child:nth-child(odd) {grid-column: 1 / -1}
  .operator-store-card-metrics {grid-template-columns: repeat(3, minmax(0, 1fr))}
  .member-grid {grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px}
  .operator-store-card-detail .store-workspace {display: flex; flex-direction: column}
  .operator-store-card-detail .store-main, .operator-store-card-detail .store-chain {width: 100%; position: static; max-height: none}
  .operator-store-card-detail .store-chain {order: -1}
  .followup-card-grid, .worksheet-card-grid {gap: 16px}
  .followup-card, .worksheet-card {padding: 20px}
  .worksheet-card .operator-store-card-metrics {grid-template-columns: repeat(2, minmax(0, 1fr))}
  .worksheet-card .operator-store-card-metrics > div:last-child:nth-child(odd) {grid-column: 1 / -1}
  .stats-grid .stat-value {font-size: 32px}
}
@media (max-width: 980px) {
  .main {padding: 26px 22px 42px}
  .topbar {padding: 0 22px}
  .top-time {display: none}
  .topbar-right, .topbar-tools {gap: 8px}
  .page-heading h1 {font-size: 29px}
  .stats-grid {grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px}
  .grid-main {grid-template-columns: minmax(0, 1fr)}
  .home-v2-layout {grid-template-columns: minmax(0, 1fr)}
  .home-v2-aside, .home-v2-column:first-child {grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start}
  .home-v2-layout > .dashboard-column:first-child {grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start}
  .home-v2-primary {grid-row: span 2}
  .home-v2-kpis {grid-template-columns: repeat(3, minmax(0, 1fr))}
  .home-v2-kpis .stat-value {font-size: 27px}
  .home-v2-shortcuts {grid-template-columns: repeat(2, minmax(0, 1fr))}
  .home-v2-shortcuts > :last-child:nth-child(odd) {grid-column: auto}
  .home-v2-hero {gap: 18px}
  .home-v2-hero h1 {font-size: 31px}
  .module-workflow {gap: 12px; padding: 18px}
  .operator-store-card-head {padding: 20px 20px 16px}
  .operator-store-cards {grid-template-columns: minmax(0, 1fr)}
  .operator-store-card-metrics {padding: 0 20px 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px}
  .operator-store-card-alerts {padding: 0 20px 18px}
  .operator-store-card-footer {padding: 15px 20px}
  .operator-store-card-detail {padding: 20px}
  .operator-store-cards {padding: 0 20px 20px}
  .member-grid {padding: 0 20px 20px; gap: 16px}
  .member-card {padding: 20px}
  .operator-picker {gap: 12px; padding: 18px}
  .operator-picker-buttons {gap: 8px}
  .operator-picker-button {padding: 9px 13px}
  .filterbar .filter-separator {display: none}
  .filterbar input, .filterbar select {max-width: 100%}
  .store-info-grid {grid-template-columns: repeat(2, minmax(0, 1fr))}
  .store-info-summary {gap: 12px}
  .store-info-summary > a, .store-info-summary > button {padding: 18px; gap: 10px}
  .store-info-summary .icon {padding: 9px; width: 17px; height: 17px}
  .followup-card-grid, .worksheet-card-grid {grid-template-columns: minmax(0, 1fr)}
}
@media (max-width: 760px) {
  body {background-attachment: scroll; background: radial-gradient(ellipse at 100% 0, #e8e5fc99, transparent 42%), #f5f7fc}
  .app-shell {display: block}
  .sidebar {width: 235px; padding: 24px 15px 16px; transform: translateX(-100%); transition: transform .2s ease; background: #fffffffa; z-index: 40}
  .app-shell.menu-open .sidebar {transform: translateX(0)}
  .sidebar .brand {padding-bottom: 24px}
  .nav-link {font-size: 14px; padding: 12px; min-height: 46px}
  .nav-link .icon {width: 20px; height: 20px}
  .nav-group-title, .nav-label {font-size: 12px}
  .sidebar-bottom {padding-top: 20px}
  .environment-note, .user-role {font-size: 12px}
  .workspace {width: 100%; min-width: 0}
  .topbar {height: 64px; padding: 0 16px; gap: 8px; background: #f8faffed}
  .topbar-context {gap: 9px}
  .topbar-context {flex: 1; overflow: hidden}
  .topbar-context > a, .topbar-context > .icon {display: none}
  .topbar-context > strong {font-size: 13px; max-width: none; flex: 1}
  .topbar-tools {gap: 6px}
  .topbar-tools [data-action=learning-notifications] {width: 36px; height: 36px; min-height: 36px; padding: 0; display: inline-flex; justify-content: center; border-radius: 50%; background: #fff}
  .topbar-tools [data-action=learning-notifications] > span:not(.notification-count) {display: none}
  .topbar-tools .notification-count {position: absolute; top: -5px; right: -4px; min-width: 17px; padding: 0 4px; font-size: 12px; background: #516cdb; color: #fff; border: 1px solid #f8faff}
  .topbar-tools .sync-button {width: 36px; height: 36px; min-height: 36px; padding: 0; border: 1px solid #dce5f4; background: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0}
  .topbar-tools .sync-button > span {display: none}
  .topbar-tools .sync-button.pending {color: #9b7a27; background: #fff5e2; border-color: #ebdcba}
  .breadcrumbs {font-size: 12px; gap: 6px}
  .breadcrumbs > span:first-child {display: none}
  .breadcrumbs > .icon {display: none}
  .breadcrumbs strong {max-width: 170px}
  .topbar-right, .topbar-tools {gap: 5px}
  .topbar .btn {font-size: 12px; min-height: 34px; padding: 6px 10px}
  .sync-button {font-size: 12px; padding: 6px; min-height: 34px}
  .sync-button .icon {width: 17px; height: 17px}
  .topbar .icon-btn.mobile-menu {display: inline-flex; width: 34px; height: 34px; border: 1px solid #dce5f4; background: #fff; flex-shrink: 0}
  .main {padding: 25px 16px 38px}
  h1, .page-heading h1 {font-size: 27px; line-height: 1.4}
  h2, .panel-header h2 {font-size: 17px}
  h3 {font-size: 15px}
  .page-heading {gap: 16px; margin-bottom: 23px; align-items: flex-start}
  .eyebrow {font-size: 12px; letter-spacing: 1.1px}
  .page-description {font-size: 13px; line-height: 1.85; margin-top: 8px}
  .page-heading > .page-actions:not(:empty) {width: 100%; justify-content: flex-start; margin-left: 0; gap: 8px}
  .page-actions > .btn > .icon, .home-v2-actions > .btn > .icon {padding: 5px; width: 15px; height: 15px}
  .page-title-icon {width: 38px; height: 38px; margin-right: 9px; border-radius: 13px}
  .btn {font-size: 13px; padding: 9px 14px; min-height: 42px; white-space: normal; text-align: center; line-height: 1.6}
  .btn.small {font-size: 12px; min-height: 36px; padding: 7px 11px}
  .page-actions .btn {white-space: nowrap}
  .page-more-actions > div {right: auto; left: 0; min-width: 200px}
  .panel, .filterbar, .stat-card {border-radius: 22px}
  .panel-header {padding: 21px 19px 16px; gap: 12px; align-items: flex-start}
  .panel-body {padding: 0 19px 20px}
  .panel-body.padded {padding-top: 18px}
  .panel-footer {padding: 14px 19px; font-size: 12px; line-height: 1.75}
  .panel-subtitle {font-size: 12px; line-height: 1.8}
  .grid {gap: 19px}
  .grid-2, .grid-3, .grid-main {grid-template-columns: minmax(0, 1fr)}
  .section-gap {margin-top: 20px}
  .margin-bottom {margin-bottom: 20px}
  .stats-grid {grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px}
  .stat-card {padding: 18px 16px; min-height: 143px}
  .stat-top {font-size: 12px; line-height: 1.65; gap: 6px; align-items: flex-start}
  .stat-top .icon {width: 15px; height: 15px; padding: 6px}
  .stat-value, .stats-grid .stat-value {font-size: 29px; line-height: 1.3; margin: 14px 0 8px; letter-spacing: -.8px}
  .stat-value .unit {font-size: 15px}
  .stat-foot, .stat-detail {font-size: 12px; line-height: 1.65}
  .operator-status-hint {font-size: 12px; margin-top: 9px}
  .filterbar {padding: 16px; gap: 10px; margin-bottom: 20px; border-radius: 20px}
  .filterbar > span {font-size: 13px; width: 100%}
  .filterbar input, .filterbar select {font-size: 14px; min-height: 44px; padding: 10px 12px; max-width: 100%; flex: 1 1 140px}
  .filterbar input[type=date] {font-size: 13px; width: auto; max-width: 100%; min-width: 0}
  .filterbar .date-pair {width: 100%; gap: 8px; display: flex}
  .filterbar .date-pair input {flex: 1 1 0; width: 0; min-width: 0; max-width: none}
  .filterbar .date-pair span {flex-shrink: 0}
  .filterbar .filter-separator {display: none}
  .filterbar .spacer {margin-left: 0}
  .operator-filter-panel {padding: 18px 16px; border-radius: 21px; margin-bottom: 20px}
  .operator-filter-panel .filterbar {padding: 0; margin: 0; border-radius: 0}
  .operator-filter-panel .filterbar + .filterbar {margin-top: 18px; padding-top: 17px}
  .operator-filter-panel #worksheet-filter-form > .btn {align-self: flex-end; min-height: 44px}
  .filter-field {flex: 1 1 145px}
  .filter-field > label {font-size: 12px}
  .filter-field > input, .filter-field > select {width: 100%; font-size: 14px}
  .operator-filter-panel #period-form > span:first-child {width: 100%}
  .operator-filter-panel #period-form input {flex: 1 1 calc(50% - 35px); min-width: 110px}
  .operator-scope-note {gap: 5px; font-size: 12px; line-height: 1.9; margin-bottom: 16px}
  .filterbar > .store-search-control {flex: 1 1 100%}
  .operator-picker {display: block; padding: 18px 16px; border-radius: 21px; margin-bottom: 20px}
  .operator-picker-label {display: block; padding: 0; margin-bottom: 12px; font-size: 13px}
  .operator-picker-buttons {gap: 8px}
  .operator-picker-button {font-size: 13px; padding: 9px 12px; min-height: 42px}
  .operator-picker-count {font-size: 12px}
  .tabbar {gap: 8px; margin-bottom: 20px}
  .tab {font-size: 13px; padding: 8px 14px; min-height: 40px; border-radius: 999px}
  .badge {font-size: 12px; padding: 4px 9px}
  .notice {font-size: 13px; padding: 14px 15px; border-radius: 16px; line-height: 1.85}
  .empty {padding: 28px 18px; min-height: 190px}
  .empty h3 {font-size: 15px}
  .empty p {font-size: 13px}
  th {font-size: 12px; padding: 12px 15px}
  td {font-size: 13px; padding: 15px; line-height: 1.8}
  .table-name small, .task-item-meta, .task-item-end {font-size: 12px}
  .pagination {padding: 14px 16px; font-size: 12px; gap: 10px; flex-wrap: wrap}
  .pagination-actions {gap: 7px; flex-wrap: wrap}
  .task-item {gap: 10px}
  .task-item-title {font-size: 14px}
  .task-item-end {max-width: 90px; text-align: right; white-space: normal}
  .job-card {padding: 16px; border-radius: 20px; gap: 11px}
  .job-name {font-size: 14px}
  .job-meta {font-size: 12px}
  .settings-row {padding: 17px 0; gap: 12px; flex-wrap: wrap}
  .settings-row h3 {font-size: 15px}
  .settings-row p {font-size: 13px; line-height: 1.85}
  .settings-row > div {flex: 1 1 190px}
  .settings-row > .btn {flex: 0 0 auto}
  .metric-mini-grid {grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 17px}
  .metric-mini {padding: 16px}
  .metric-mini span, .info-item span {font-size: 12px}
  .metric-mini strong {font-size: 21px}
  .info-item strong {font-size: 14px}
  input, select, textarea, .form-grid input, .form-grid select {font-size: 15px; border-radius: 13px; min-height: 46px}
  .form-grid {grid-template-columns: minmax(0, 1fr); gap: 18px}
  .field > label {font-size: 13px}
  .field > small {font-size: 12px; line-height: 1.85}
  input[type=checkbox], input[type=radio] {min-height: 0; width: 18px; height: 18px}
  .drawer, .drawer.wide {width: 100%; max-width: 100vw}
  .drawer-head {padding: 22px 18px; gap: 12px}
  .drawer-head h2 {font-size: 19px}
  .drawer-head p {font-size: 13px; line-height: 1.8}
  .drawer-head .icon-btn {width: 38px; height: 38px}
  .drawer-body {padding: 23px 18px}
  .drawer-footer {padding: 16px 18px; gap: 12px; align-items: center}
  .drawer-footer .muted {font-size: 12px; max-width: none; flex: 1 1 170px}
  .drawer-footer .btn {min-width: 84px}
  .modal {padding: 25px 22px; border-radius: 23px; max-width: calc(100vw - 28px)}
  .modal h2 {font-size: 20px}
  .modal p {font-size: 14px}
  .toast {left: 50%; border-radius: 18px; bottom: 18px; font-size: 13px; line-height: 1.7; width: max-content; max-width: calc(100vw - 30px)}
  .home-v2 {gap: 20px}
  .home-v2-hero {display: block}
  .home-v2-hero h1 {font-size: 29px}
  .home-v2-hero p {font-size: 13px; line-height: 1.85; margin-top: 8px}
  .home-v2-actions {margin-top: 18px; gap: 8px; padding-top: 0}
  .home-v2-layout {display: flex; flex-direction: column; gap: 20px}
  .home-v2-layout > .dashboard-column {display: contents}
  .home-v2-layout .home-v2-primary {order: 1}
  .home-v2-layout .home-efficiency {order: 2}
  .home-v2-layout .dashboard-top-grid {order: 3}
  .home-v2-layout .dashboard-work {order: 4}
  .home-v2-layout .home-alerts {order: 5}
  .home-v2-layout .home-trend {order: 6}
  .home-v2-layout .home-shortcuts {order: 7}
  .home-v2-layout .home-data-health {order: 8}
  .home-v2-aside, .home-v2-main, .home-v2-column, .home-v2-column:first-child {display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px}
  .home-v2-primary {padding: 25px; border-radius: 26px; grid-row: auto}
  .home-v2-primary .stat-value, .home-v2-primary .dashboard-core-value, .home-v2-primary-value {font-size: 41px; line-height: 1.3}
  .home-v2-primary .stat-top {font-size: 14px}
  .home-v2-primary .dashboard-core-secondary strong {font-size: 30px}
  .home-v2-primary .dashboard-core-secondary span {font-size: 12px}
  .home-v2-section {padding: 21px 19px; border-radius: 23px}
  .home-v2-section.panel > .panel-footer {margin: 20px -19px -21px; padding: 14px 19px}
  .home-v2-top {gap: 12px; margin-bottom: 17px}
  .home-v2-top h2 {font-size: 17px}
  .home-v2-top p {font-size: 12px; line-height: 1.8}
  .home-v2-kpis {grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px}
  .home-v2-kpis .stat-card {padding: 17px 13px; min-height: 133px; border-radius: 17px}
  .home-v2-kpis .stat-top {font-size: 12px; line-height: 1.65; align-items: flex-start}
  .home-v2-kpis .stat-top .icon {width: 15px; height: 15px; padding: 4px}
  .home-v2-kpis .stat-value {font-size: 27px; line-height: 1.3; margin: 13px 0 7px}
  .home-v2-kpis .stat-foot {font-size: 12px; line-height: 1.75}
  .home-v2-shortcuts {grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px}
  .home-v2-shortcuts > :last-child:nth-child(odd) {grid-column: 1 / -1}
  .home-v2-shortcuts > a, .home-v2-shortcuts > button {padding: 17px; border-radius: 17px; gap: 9px}
  .home-v2-shortcuts strong {font-size: 14px}
  .home-v2 .dashboard-period {padding: 13px 15px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; font-size: 12px; line-height: 1.8}
  .home-v2 .dashboard-period > a {margin-left: 0}
  .home-v2-watchlist > article, .home-v2-watchlist > .dashboard-work-row {padding: 16px; border-radius: 17px}
  .home-v2-watchlist .home-watch {flex-wrap: wrap; gap: 10px}
  .home-v2-watchlist .home-watch > .btn {margin-left: 44px}
  .home-data-health > summary {font-size: 13px; gap: 12px; align-items: flex-start}
  .home-data-health > summary > span:last-child {font-size: 12px; text-align: right; flex-shrink: 0}
  .dashboard-work-row {padding: 15px; gap: 10px; flex-wrap: wrap; align-items: flex-start}
  .dashboard-row-icon {width: 34px; height: 34px}
  .dashboard-row-icon .icon {width: 17px; height: 17px}
  .dashboard-work-main {flex: 1 1 calc(100% - 46px)}
  .dashboard-work-main > .text-button {font-size: 14px; line-height: 1.75}
  .dashboard-work-meta {font-size: 12px; line-height: 1.8}
  .dashboard-work-status {display: flex; align-items: center; justify-content: space-between; gap: 10px; width: calc(100% - 44px); margin-left: 44px; font-size: 12px}
  .dashboard-row-arrow {margin-left: auto; width: 34px; height: 34px}
  .dashboard-communication {display: block; padding: 21px}
  .dashboard-communication .btn {margin-top: 16px; font-size: 12px}
  .dashboard-top-grid {grid-template-columns: minmax(0, 1fr); gap: 20px}
  .dashboard-business-numbers {gap: 12px}
  .dashboard-business-numbers strong {font-size: 26px}
  .dashboard-business-numbers span {font-size: 12px; line-height: 1.6}
  .operator-team-overview {margin-bottom: 0}
  .operator-team-overview > summary {padding: 20px 18px; font-size: 13px}
  .operator-team-overview > summary > span:last-child {font-size: 12px}
  .operator-person-card {padding: 20px; border-radius: 21px}
  .operator-person-card p {font-size: 13px; line-height: 1.9}
  .operator-store-cards {padding: 0 16px 20px; gap: 16px}
  .operator-store-card {border-radius: 21px; scroll-margin-top: 82px}
  .operator-store-card-head {padding: 19px 18px 16px; gap: 12px; flex-wrap: wrap}
  .operator-store-card-name > button, .operator-store-card-name > a, .operator-store-card-name h3, .operator-store-card-name .text-button {font-size: 16px; line-height: 1.7}
  .operator-store-card-head .muted, .operator-store-card-head small {font-size: 12px; line-height: 1.8}
  .operator-store-card-metrics {padding: 0 18px 17px; gap: 9px; grid-template-columns: repeat(2, minmax(0, 1fr))}
  .operator-store-card-metrics > div {padding: 12px 13px; border-radius: 14px}
  .operator-store-card-metrics > div:last-child:nth-child(odd) {grid-column: 1 / -1}
  .operator-store-card-metrics span {font-size: 12px}
  .operator-store-card-metrics strong {font-size: 21px; line-height: 1.55}
  .operator-store-card-alerts {padding: 0 18px 18px; gap: 10px}
  .operator-alert {padding: 14px; border-radius: 15px; font-size: 13px; border-left-width: 4px}
  .operator-alert strong {font-size: 14px}
  .operator-alert p {font-size: 13px; line-height: 1.9}
  .operator-store-card-footer {padding: 15px 18px; gap: 12px; align-items: center}
  .operator-store-card-footer .operator-row-actions {gap: 10px}
  .operator-store-card-detail {padding: 18px 12px; background: #f0f5ff}
  .operator-store-card-detail .detail-hero {gap: 13px; margin-bottom: 18px}
  .operator-store-card-detail .detail-hero h1 {font-size: 23px; line-height: 1.6}
  .operator-store-card-detail .detail-actions {margin-left: 0; width: 100%; gap: 8px}
  .operator-store-card-detail .store-board {padding: 15px; border-radius: 19px}
  .operator-store-card-detail .panel-header {padding: 20px 16px 15px}
  .operator-store-card-detail .panel-body {padding: 0 16px 18px}
  .operator-store-section > .operator-store-cards {padding: 0}
  .operator-store-section > .pagination {margin-top: 18px; border-radius: 17px}
  .operator-totals-more {padding: 16px; margin-bottom: 21px; border-radius: 17px}
  .operator-totals-more .stats-grid {grid-template-columns: minmax(0, 1fr); gap: 10px}
  .operator-totals-more .stat-card {min-height: 118px; padding: 17px}
  .followup-card-grid, .worksheet-card-grid {gap: 16px; grid-template-columns: minmax(0, 1fr)}
  .followup-card, .worksheet-card {padding: 21px 18px; border-radius: 21px}
  .followup-card h3, .worksheet-card > header h3, .worksheet-card > header .text-button, .worksheet-card > .flex-between h3 {font-size: 16px; line-height: 1.8}
  .followup-next, .worksheet-card-work {padding: 15px; border-radius: 15px; margin-top: 17px}
  .followup-next > p, .worksheet-card-work p {font-size: 14px; line-height: 1.9}
  .followup-card-footer, .worksheet-card > footer, .worksheet-card-footer {margin-top: 18px; padding-top: 16px; gap: 12px}
  .followup-card-footer .btn, .worksheet-card > footer .btn, .worksheet-card-footer .btn {font-size: 13px; min-height: 40px}
  .worksheet-card .operator-store-card-metrics {grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 17px}
  .worksheet-card .operator-store-card-metrics strong {font-size: 21px}
  .store-detail-toolbar {padding: 0 4px 18px; gap: 11px}
  .store-detail-toolbar strong {font-size: 20px; line-height: 1.7}
  .store-detail-toolbar > .text-button {font-size: 12px}
  .store-detail-tabs {gap: 8px; padding-bottom: 15px; margin-bottom: 18px}
  .store-detail-tabs .tab {font-size: 12px; min-height: 40px; padding: 8px 12px; gap: 6px}
  .store-detail-tabs .tab .icon {width: 15px; height: 15px}
  .store-detail-extra {padding: 17px 14px; margin-top: 18px; border-radius: 17px}
  .store-detail-extra > summary {font-size: 13px; line-height: 1.8}
  .module-workflow {grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 19px 18px; margin-bottom: 21px; border-radius: 21px}
  .module-workflow > div, .module-workflow > article {gap: 12px}
  .module-workflow h3, .module-workflow strong {font-size: 14px}
  .module-workflow p, .module-workflow small {font-size: 12px; line-height: 1.85}
  .learning-task-grid {grid-template-columns: minmax(0, 1fr); gap: 16px}
  .learning-task-card {padding: 21px 19px; border-radius: 21px}
  .learning-task-card h3, .learning-task-card strong {font-size: 16px}
  .learning-task-card p, .learning-task-card small {font-size: 13px; line-height: 1.85}
  .learning-progress {padding: 12px 14px; font-size: 12px}
  .store-info-summary {grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 20px}
  .store-info-summary > a, .store-info-summary > button {padding: 15px 12px; display: block; border-radius: 18px}
  .store-info-summary strong {font-size: 26px; line-height: 1.5}
  .store-info-summary span, .store-info-summary small {font-size: 12px; line-height: 1.7}
  .store-info-summary .icon {display: none}
  .store-info-summary > .stat-card {min-height: 147px; padding: 15px 12px}
  .store-info-summary > .stat-card .stat-top span {font-size: 12px}
  .store-info-summary > .stat-card .stat-value {font-size: 27px; line-height: 1.4; margin: 13px 0 7px}
  .store-info-summary > .stat-card .stat-foot {font-size: 12px; line-height: 1.75}
  .store-import-receipt > summary {padding: 17px 18px; font-size: 13px; line-height: 1.9}
  .member-grid {grid-template-columns: minmax(0, 1fr); padding: 0 16px 20px; gap: 16px}
  .member-card {padding: 21px 19px; border-radius: 21px; gap: 16px}
  .member-card-heading h3, .member-card-heading strong {font-size: 16px}
  .member-card-heading > .avatar {width: 42px; height: 42px; flex-basis: 42px}
  .member-account code {font-size: 14px; line-height: 1.8}
  .member-scope {font-size: 13px; min-height: 0}
  .member-card-actions > .btn {font-size: 13px; min-height: 44px}
  .member-manage-menu > summary {font-size: 13px; min-height: 44px}
  .member-manage-menu .btn {font-size: 13px; min-height: 42px}
  .store-info-grid {grid-template-columns: minmax(0, 1fr); gap: 18px}
  .store-signboard {height: 210px}
  .store-signboard.large {height: 240px}
  .store-info-card .panel-header, .store-info-card .panel-body {padding: 20px}
  .store-info-card h2 {font-size: 17px}
  .store-board {padding: 16px; border-radius: 21px}
  .board-heading {padding: 21px 18px; border-radius: 18px}
  .board-heading h2 {font-size: 22px; line-height: 1.6}
  .board-grid {grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px}
  .board-card {padding: 17px 14px; border-radius: 18px}
  .board-card-title {font-size: 13px; line-height: 1.8; gap: 6px}
  .board-card-title span {font-size: 12px; display: inline-block}
  .board-card strong {font-size: 27px; line-height: 1.4}
  .board-card small {font-size: 12px; line-height: 1.85}
  .board-controls {min-width: 0; margin-top: 15px; gap: 11px}
  .board-controls .btn {min-height: 44px; font-size: 13px}
  .detail-meta {font-size: 12px; line-height: 1.8}
  .comm-card {padding: 20px; border-radius: 22px}
  .comm-card h3 {font-size: 16px}
  .comm-card p {font-size: 13px; line-height: 1.9}
  .comm-card .comm-copy {padding: 16px; font-size: 15px; line-height: 1.9}
  .comm-store-choice {font-size: 14px}
  .comm-store-choice small {font-size: 12px; line-height: 1.8}
  .insight-module-header {padding: 18px}
  .insight-module-title h3 {font-size: 16px}
  .insight-module-header p {font-size: 13px; line-height: 1.85}
  .insight-module-list {padding: 12px; gap: 11px}
  .insight-card {padding: 16px; border-radius: 17px}
  .insight-card-detail {font-size: 13px; line-height: 1.9}
  .insight-card-actions {gap: 10px}
  .insight-card-actions .btn {min-height: 38px}
  .performance-body {padding: 20px}
  .performance-dual, .performance-stores {grid-template-columns: minmax(0, 1fr)}
  .performance-weekly article {padding: 20px}
  .performance-week-input {grid-template-columns: repeat(2, minmax(0, 1fr)); scroll-margin-top: 85px}
  .performance-week-input > strong, .performance-cumulative {grid-column: 1 / -1}
  .performance-cumulative {font-size: 12px}
  .chart-row {grid-template-columns: 86px minmax(0, 1fr) 80px; font-size: 12px; gap: 10px}
  .auth-art {padding: 29px}
  .auth-art .brand-name {font-size: 22px}
  .auth-card h2 {font-size: 28px}
  .auth-card > p {font-size: 14px}
  .auth-form-wrap {padding: 38px 24px 50px}
}
@media (max-width: 390px) {
  .main {padding-left: 12px; padding-right: 12px}
  .topbar {padding: 0 12px}
  .breadcrumbs strong {max-width: 138px}
  .topbar .sync-button {font-size: 12px; gap: 4px}
  .page-actions .btn {font-size: 12px; padding: 8px 12px}
  .home-v2-primary {padding: 23px 20px}
  .home-v2-primary .stat-value, .home-v2-primary .dashboard-core-value, .home-v2-primary-value {font-size: 36px}
  .stat-card {padding: 17px 13px}
  .stat-value, .stats-grid .stat-value {font-size: 27px}
  .stat-top .icon {padding: 4px}
  .home-v2-section {padding: 20px 16px}
  .home-v2-section.panel > .panel-footer {margin: 20px -16px -20px; padding: 14px 16px}
  .home-v2-kpis .stat-top .icon {display: none}
  .home-v2-kpis .stat-value {font-size: 26px}
  .home-v2-shortcuts > a, .home-v2-shortcuts > button {padding: 15px}
  .operator-store-card-head {padding-left: 16px; padding-right: 16px}
  .operator-store-card-metrics, .operator-store-card-alerts {padding-left: 16px; padding-right: 16px}
  .board-grid {grid-template-columns: minmax(0, 1fr)}
  .board-card {padding: 19px}
  .board-card strong {font-size: 30px}
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {transition: none !important; animation: none !important; scroll-behavior: auto !important}
}

/* Reading-first refinement: fluid pages, one content column, compact figures. */
.main {width: 100%; max-width: none}
.main.route-home, .main.route-performance, .main.route-overview {max-width: none}
.route-home .page-heading {display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 16px}
.route-home .page-heading-main {flex: 1 1 auto}
.route-home .page-heading > .page-actions:not(:empty) {width: auto; margin-left: auto; justify-content: flex-end; flex-shrink: 0; padding-top: 24px}
.home-action-menu > summary {min-height: 42px; padding: 9px 15px}
.home-action-menu > summary .icon {width: 17px; height: 17px}
.home-v2 .home-v2-layout {display: flex; flex-direction: column; gap: 20px}
.home-v2-layout > .dashboard-column, .home-v2-layout .dashboard-top-grid {display: contents}
.home-v2-layout > .dashboard-column > *, .home-v2-layout .dashboard-top-grid > * {width: 100%; min-width: 0}
.home-summary-band {order: 1; padding: 24px; background: linear-gradient(110deg, #f0f4ff, #fff 70%)}
.home-summary-values {display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; margin-bottom: 14px}
.home-summary-values > div {min-width: 0; padding-left: 22px; border-left: 1px solid #dce4f2}
.home-summary-values > div:first-child {border: 0; padding-left: 0}
.home-summary-values span, .home-summary-values small {display: block; color: var(--muted); font-size: 13px}
.home-summary-values strong {display: block; font-size: clamp(25px, 2.4vw, 36px); line-height: 1.5; margin: 6px 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; color: #202b46}
.home-summary-values > div:first-child strong {color: #3855cf}
.home-summary-values small {font-size: 12px}
.home-summary-band > .text-button {display: inline-flex; gap: 7px; align-items: center}
.home-v2-layout .home-efficiency {order: 2; padding: 22px 24px}
.home-efficiency .home-v2-top {margin-bottom: 12px}
.home-efficiency .home-v2-kpis {display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0}
.home-efficiency .stat-card {border: 0; border-radius: 0; min-height: 0; background: transparent; box-shadow: none; padding: 14px 16px; border-left: 1px solid #e2e8f3}
.home-efficiency .stat-card:nth-child(3n+1) {border-left: 0; padding-left: 0}
.home-efficiency .stat-card:nth-child(n+4) {border-top: 1px solid #e2e8f3}
.home-efficiency .stat-top .icon {display: none}
.home-efficiency .stat-value {font-size: 27px; margin: 5px 0}
.home-v2-layout .dashboard-work {order: 3}
.home-v2-layout .home-alerts {order: 4}
.home-v2-layout .home-distribution {order: 5}
.home-v2-layout .dashboard-business-card {order: 6}
.home-v2-layout .home-trend {order: 7}
.home-v2-layout .home-shortcuts {order: 8}
.home-v2-layout .home-data-health {order: 9}
.home-v2 .dashboard-business-card .panel-body {display: flex; align-items: center; flex-wrap: wrap; gap: 18px}
.home-v2 .dashboard-store-total {margin: 0; min-width: 140px}
.home-v2 .dashboard-business-numbers {flex: 1; margin: 0; padding: 0; min-width: 260px; border: 0}
.home-v2 .dashboard-work .empty {min-height: 150px; padding: 20px}
.home-v2 .home-v2-shortcuts {display: flex; flex-wrap: wrap; gap: 10px}
.home-v2-shortcuts > a {flex: 1 1 180px; padding: 14px; flex-direction: row; align-items: center}
.home-v2-shortcuts > a > .icon {display: none}
.home-fold > summary {display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; font-weight: 650; font-size: 16px}
.home-fold > summary::-webkit-details-marker {display: none}
.home-fold > summary > span {display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 400}
.home-fold[open] > summary {padding-bottom: 18px}
.home-fold[open] > summary .icon {transform: rotate(180deg)}
.drawer.notifications {width: min(620px, 100vw); max-width: 100vw}
.notifications .drawer-head {padding: 22px 24px}
.notifications .drawer-body {padding: 20px 24px}
.notification-toolbar {display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px}
.notification-toolbar > div {display: grid; gap: 3px}
.notification-sound-controls > summary {cursor: pointer; font-size: 13px; color: var(--muted)}
.notification-sound-controls[open] .toolbar {margin-top: 12px}
.notification-list {display: grid; gap: 12px; margin-top: 18px}
.notification-item {padding: 16px; border: 1px solid #dee6f3; border-radius: 16px; background: #fff}
.notification-item.unread {border-left: 3px solid #5266df; background: #f6f8ff}
.notification-item-heading, .notification-item-footer {display: flex; align-items: center; justify-content: space-between; gap: 12px}
.notification-item-heading strong {font-size: 14px; line-height: 1.6}
.notification-item p {font-size: 13px; color: var(--muted); line-height: 1.8; margin-top: 8px}
.notification-item-footer {font-size: 12px; color: var(--muted); margin: 9px 0}
.notification-item > a {display: inline-flex; align-items: center; gap: 6px}
.store-metric-list {display: grid; gap: 12px; padding: 0 24px 24px}
.store-metric-entry {padding: 18px; border: 1px solid #dde5f2; border-radius: 16px; background: #fbfcff}
.store-metric-entry > header {display: flex; align-items: center; gap: 12px}
.store-metric-entry > header > div {flex: 1; min-width: 0}
.store-metric-entry > header strong {font-size: 15px; color: var(--ink)}
.store-metric-entry > header p {margin-top: 4px}
.store-metric-entry dl {display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #e2e8f3}
.store-metric-entry dt {font-size: 12px; color: var(--muted)}
.store-metric-entry dd {margin: 3px 0 0; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere}
.performance-person {margin-bottom: 18px}
.performance-person .performance-body {padding-top: 0}
.performance-person .performance-dual, .performance-stores, .performance-weekly {grid-template-columns: minmax(0,1fr); gap: 14px}
.performance-progress {max-width: 100%; padding: 12px 16px; border-radius: 14px; background: #f4f7fe; border: 1px solid #e0e7f3}
.performance-person .panel-header {padding-bottom: 14px}
.performance-person summary {padding: 10px 0}
@media(max-width:760px) {
 .route-home .page-heading {gap: 8px}
 .route-home .page-heading > .page-actions:not(:empty) {width: auto; padding-top: 18px}
 .route-home .page-title-icon {display: none}
 .route-home .page-heading h1 {font-size: 24px}
 .route-home .page-actions .btn {white-space: normal; padding: 8px 11px; font-size: 12px}
 .home-action-menu > div {left: auto; right: 0}
 .home-summary-band {padding: 18px}
 .home-summary-values {grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px}
 .home-summary-values > div:first-child {grid-column: 1/-1}
 .home-summary-values > div:nth-child(2) {border-left: 0; padding-left: 0}
 .home-summary-values strong {font-size: 28px}
 .home-v2-layout .home-efficiency {padding: 18px}
 .home-efficiency .home-v2-kpis {grid-template-columns: repeat(2,minmax(0,1fr))}
 .home-efficiency .stat-card {padding: 12px; border-left: 1px solid #e2e8f3}
 .home-efficiency .stat-card:nth-child(3n+1) {border-left: 1px solid #e2e8f3; padding-left: 12px}
 .home-efficiency .stat-card:nth-child(2n+1) {border-left: 0; padding-left: 0}
 .home-efficiency .stat-card:nth-child(n+3) {border-top: 1px solid #e2e8f3}
 .home-efficiency .stat-value {font-size: 25px}
 .home-fold > summary {align-items: flex-start; flex-direction: column; gap: 5px}
 .home-v2 .dashboard-business-numbers {min-width: 0; width: 100%; flex-basis: 100%}
 .notifications .drawer-body, .notifications .drawer-head {padding: 20px 16px}
 .store-metric-list {padding: 0 16px 18px}
 .store-metric-entry {padding: 15px}
 .store-metric-entry dl {grid-template-columns: repeat(2,minmax(0,1fr))}
 .store-metric-entry > header {flex-wrap: wrap; gap: 8px}
}

/* A single alignment grid for home sections and equal metric rows. */
.home-v2-layout {--home-inset: 24px}
.home-v2-layout .home-v2-section {padding: var(--home-inset); margin: 0; box-sizing: border-box}
.home-v2-layout .home-v2-section.panel > .panel-header {padding: 0 0 18px}
.home-v2-layout .home-v2-section.panel > .panel-body {padding: 0}
.home-v2-layout .home-v2-section.panel > .panel-footer {margin: 20px calc(-1 * var(--home-inset)) calc(-1 * var(--home-inset)); padding: 15px var(--home-inset)}
.home-efficiency .home-v2-kpis {grid-auto-rows: 1fr; align-items: stretch}
.home-efficiency .stat-card {display: flex; flex-direction: column}
.home-efficiency .stat-foot {margin-top: auto}
.home-summary-values {align-items: stretch}
@media(max-width:760px) {.home-v2-layout {--home-inset: 18px}}

/* Keep distinct metric modules within the fluid, aligned page. */
.home-efficiency .home-v2-kpis {gap: 12px}
.home-efficiency .home-v2-kpis .stat-card {padding: 18px; border: 1px solid #dfe6f4; border-radius: 18px; background: #f6f8ff; min-height: 132px}
.home-efficiency .home-v2-kpis .stat-top .icon {display: inline-flex}
@media(max-width:760px) {
 .home-efficiency .home-v2-kpis {gap: 10px}
 .home-efficiency .home-v2-kpis .stat-card {padding: 14px; min-height: 122px}
}

/* Dense metric modules: use wide screens for data instead of empty card space. */
.home-summary-values {grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin-bottom: 10px}
.home-summary-values > div {display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; column-gap: 12px}
.home-summary-values strong {grid-column: 2; grid-row: 1 / 3; margin: 0; font-size: clamp(26px,2.1vw,34px); line-height: 1.25}
.home-summary-values small {grid-column: 1; margin-top: 5px}
.home-efficiency .home-v2-kpis {grid-template-columns: repeat(6,minmax(0,1fr))}
.home-efficiency .home-v2-kpis .stat-card {padding: 16px; min-height: 112px}
.home-efficiency .home-v2-kpis .stat-value {font-size: 27px; margin: 8px 0 6px}
.home-efficiency .home-v2-kpis .stat-foot {font-size: 12px}
@media(max-width:1250px) {
 .home-efficiency .home-v2-kpis {grid-template-columns: repeat(3,minmax(0,1fr))}
 .home-summary-values > div {display: block}
 .home-summary-values strong {margin: 5px 0}
}
@media(max-width:760px) {
 .home-summary-values {grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px}
 .home-summary-values > div:first-child {display: grid; grid-column: 1/-1}
 .home-efficiency .home-v2-kpis {grid-template-columns: repeat(2,minmax(0,1fr))}
 .home-efficiency .home-v2-kpis .stat-card {padding: 14px; min-height: 112px}
}
