/* Shell: the new design (docs/design/2026-09-16-front-page-1b) applied to every page that extends
   base.html. Loads after style.css and wins by order and, where style.css is more specific, by
   matching its specificity. Header classes are sh- prefixed so nothing here can collide with a
   page's own class names (the 2026-09-17 .primary collision is why). */

@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/oswald-500-latin.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/oswald-600-latin.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/oswald-700-latin.woff2') format('woff2'); }

:root {
    --sh-yellow: #F7BF02; --sh-black: #121212; --sh-dark: #2B2B2B; --sh-text2: #5B5B58; --sh-placeholder: #6B6B68;
    --sh-muted: #B0B0AC; --sh-border: #D4D4D0; --sh-border-strong: #C9C9C5; --sh-page: #F4F4F2; --sh-white: #fff;
    --sh-display: 'Oswald', 'Neutraface Condensed', 'Arial Narrow', sans-serif;
    --sh-body: Helvetica, Arial, sans-serif;

    /* style.css tokens, remapped */
    --bg-color: #F4F4F2;
    --card-bg: #fff;
    --card-bg-elevated: #fff;
    --nav-bg: #F7BF02;
    --text-primary: #121212;
    --text-secondary: #5B5B58;
    --accent-color: #F7BF02;
    --accent-glow: rgba(247, 191, 2, 0.25);
    --success-color: #121212;
    --warning-color: #B07F00;
    --danger-color: #B3261E;
    --purple-color: #5B5B58;
    --orange-color: #B07F00;
    --teal-color: #121212;
    --pink-color: #121212;
    --border-color: #D4D4D0;
    --border-subtle: #E6E6E2;
    --shadow-card: none;
    --shadow-elevated: 0 8px 24px rgba(0, 0, 0, 0.12);
}

body { background: var(--sh-page); color: var(--sh-black); font-family: var(--sh-body); font-size: 16px; line-height: 1.45; padding-bottom: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--sh-display); text-transform: uppercase; letter-spacing: .5px; }
a { color: inherit; }

/* ------------------------------------------------------------------ header */
.sh-hdr { position: sticky; top: 0; z-index: 100; min-height: 64px; background: var(--sh-yellow); padding: 0 32px; display: flex; align-items: center; gap: 28px; }
.sh-brand { font-family: var(--sh-display); font-weight: 700; font-size: 22px; letter-spacing: 1px; text-transform: uppercase; color: var(--sh-black); text-decoration: none; white-space: nowrap; }
.sh-cluster { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.sh-hdr .search-box { position: relative; margin: 0; }
.sh-hdr .search-box input { width: 300px; height: 42px; background: var(--sh-white); border: 0; border-radius: 8px; padding: 0 14px; font: 16px var(--sh-body); color: var(--sh-black); box-shadow: none; }
.sh-hdr .search-box input::placeholder { color: var(--sh-placeholder); }
.sh-hdr .search-box input:focus { outline: 3px solid var(--sh-black); outline-offset: 0; }
.sh-hdr .search-results { top: 46px; right: 0; left: auto; width: 420px; max-width: calc(100vw - 32px); background: var(--sh-white); border: 1px solid var(--sh-border-strong); border-radius: 10px; box-shadow: var(--shadow-elevated); }
.sh-rep { height: 42px; border-radius: 8px; background: var(--sh-black); border: 2px solid var(--sh-black); color: var(--sh-white); font: 700 16px var(--sh-body); padding: 0 12px; -webkit-appearance: none; appearance: none; cursor: pointer; max-width: 180px; }
.sh-rep:focus { outline: 3px solid var(--sh-white); outline-offset: -5px; }
.sh-logout { font-size: 15px; font-weight: 600; color: var(--sh-black); text-decoration: none; white-space: nowrap; }
.sh-logout:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ search results */
.search-item { border-bottom: 1px solid var(--sh-border); color: var(--sh-black); }
.search-item:hover { background: var(--sh-page); }
.search-item small, .search-context { color: var(--sh-text2); }
.search-section-header { font-family: var(--sh-display); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--sh-text2); background: var(--sh-page); }

/* ------------------------------------------------------------------ page components */
.container { max-width: 1400px; padding: 28px 32px 48px; }
.page-header { align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-header h2, .page-header h1 { font-family: var(--sh-display); font-weight: 700; font-size: 34px; letter-spacing: .5px; line-height: 1.1; margin: 0; }
.meta-text { color: var(--sh-text2); font-size: 15px; }

.stats-grid { gap: 14px; margin-bottom: 24px; }
.stat-card { background: var(--sh-white); border: 1px solid var(--sh-border); border-radius: 10px; box-shadow: none; padding: 16px 18px; }
.stat-card-clickable:hover { border-color: var(--sh-black); transform: none; }
.stat-label { color: var(--sh-text2); font-size: 14px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.stat-value { font-family: var(--sh-display); font-weight: 700; font-size: 30px; color: var(--sh-black); line-height: 1.2; }
.stat-value-success, .stat-value-warning { color: var(--sh-black); }
.stat-value-danger { color: #B3261E; }

.card { background: var(--sh-white); border: 1px solid var(--sh-border); border-radius: 12px; box-shadow: none; margin-bottom: 20px; }
.card-header { background: transparent; border-bottom: 1px solid var(--sh-border); padding: 16px 22px; gap: 12px; flex-wrap: wrap; }
.card-title { font-family: var(--sh-display); font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--sh-black); flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.card-header > .meta-text, .card-header > span:not(.card-title) { flex: 0 1 auto; }
.section-label { font-family: var(--sh-display); font-weight: 600; font-size: 15px; letter-spacing: .08em; color: var(--sh-text2); }
.empty-state { color: var(--sh-text2); font-size: 16px; padding: 32px 22px; }

.list-item { border-bottom: 1px solid var(--sh-border); }
.list-item:hover { background: var(--sh-page); }

table { font-variant-numeric: tabular-nums; }
.eda-table, .data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.eda-table th, .data-table th { font-family: var(--sh-display); font-weight: 500; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--sh-text2); background: var(--sh-page); border-bottom: 1px solid var(--sh-border); padding: 10px 14px; text-align: left; }
.eda-table td, .data-table td { padding: 12px 14px; border-bottom: 1px solid var(--sh-border); color: var(--sh-black); vertical-align: top; }
.eda-table tr:hover td, .data-table tr:hover td { background: #FAFAF8; }
.eda-table a, .data-table a { color: var(--sh-black); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--sh-yellow); }

.badge { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: 4px; padding: 3px 7px; }
.badge-customer { background: var(--sh-yellow); color: var(--sh-black); }
.badge-lf, .badge-dodge, .badge-eda, .badge-neutral { background: var(--sh-white); color: var(--sh-dark); border: 1px solid var(--sh-border-strong); }

.btn-action, .export-btn, button.btn { font-family: var(--sh-body); font-weight: 700; border-radius: 8px; }
.external-link { color: var(--sh-black); border-bottom: 2px solid var(--sh-yellow); text-decoration: none; }

/* shared underline tabs for pages with sub-views */
.sh-tabs { display: flex; gap: 24px; border-bottom: 2px solid var(--sh-border); margin: 4px 0 24px; flex-wrap: wrap; }
.sh-tabs a { border-bottom: 4px solid transparent; margin-bottom: -2px; padding: 8px 2px 12px; font-weight: 700; font-size: 17px; color: var(--sh-text2); text-decoration: none; }
.sh-tabs a.on { color: var(--sh-black); border-bottom-color: var(--sh-yellow); }

/* dealer chips on the territory pages */
.sh-chip { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .03em; padding: 3px 8px; border-radius: 4px; white-space: nowrap; background: var(--sh-dark); color: var(--sh-white); text-decoration: none; }
.sh-chip.self { background: var(--sh-yellow); color: var(--sh-black); }
.sh-chip.new { background: var(--sh-yellow); color: var(--sh-black); }
.sh-chip.out { background: var(--sh-white); color: var(--sh-dark); border: 1px solid var(--sh-border-strong); }
.sh-up { color: var(--sh-black); font-weight: 700; }
.sh-down { color: #B3261E; font-weight: 700; }

/* ------------------------------------------------------------------ login */
.login-wrapper { background: var(--sh-page); }
.login-card { background: var(--sh-white); border: 1px solid var(--sh-border); border-top: 6px solid var(--sh-yellow); border-radius: 12px; box-shadow: none; }
.login-brand { font-family: var(--sh-display); font-weight: 700; font-size: 30px; text-transform: uppercase; letter-spacing: 1px; color: var(--sh-black); }
.login-subtitle { color: var(--sh-text2); }
.login-btn { background: var(--sh-black); color: var(--sh-yellow); border-radius: 8px; font-weight: 700; font-family: var(--sh-body); }
.login-btn:hover { background: var(--sh-dark); color: var(--sh-yellow); }

/* ------------------------------------------------------------------ narrow */
@media (max-width: 1100px) {
    .sh-hdr { gap: 16px; padding: 0 20px; }
    .sh-hdr .search-box input { width: 220px; }
}
@media (max-width: 900px) {
    .sh-hdr { padding: 0 16px; gap: 12px; }
    .container { padding: 20px 16px 40px; }
}
@media (max-width: 640px) {
    .sh-brand { font-size: 18px; }
    .sh-logout { display: none; }
    .sh-rep { max-width: 140px; font-size: 15px; }
    .page-header h2, .page-header h1 { font-size: 26px; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-value { font-size: 24px; }
    .card-header { padding: 12px 16px; }
    .eda-table th, .data-table th, .eda-table td, .data-table td { padding: 10px; font-size: 14px; }
    .sh-tabs { gap: 16px; }
    .sh-tabs a { font-size: 15px; }
    .card > div[style*="overflow"], .eda-table-wrap, .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ------------------------------------------------------------------ two departments (2026-10-07, docs/IA.md) */
.sh-dept { font-weight: 500; font-size: 13px; letter-spacing: .08em; opacity: .75; margin-left: 10px; }
/* the Marketing Dept is the black header: same shape, inverted */
.sh-marketing { background: var(--sh-black); border-bottom: 4px solid var(--sh-yellow); }
.sh-marketing .sh-brand, .sh-marketing .sh-logout { color: var(--sh-white); }
.sh-marketing .sh-brand { color: var(--sh-yellow); }
.sh-marketing .search-box input:focus { outline-color: var(--sh-yellow); }

/* header search results: self-contained so pages that skip style.css still get a dropdown */
.sh-hdr .search-box { position: relative; }
.sh-hdr .search-results { display: none; position: absolute; z-index: 130; max-height: 70vh; overflow-y: auto; }
.sh-hdr .search-item { padding: 10px 14px; cursor: pointer; font-size: 15px; line-height: 1.35; }
.sh-hdr .search-item strong { color: var(--sh-black); }
.sh-hdr .search-item:last-child { border-bottom: 0; }
.sh-hdr .search-section-header { padding: 6px 14px; }
.sh-hdr .search-context { font-size: 13px; margin-top: 2px; }
.sh-hdr .search-loading, .sh-hdr .search-empty { color: var(--sh-text2); cursor: default; }

/* section label and back link on Marketing pages */
.sh-crumb { font-family: var(--sh-display); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--sh-text2); margin: 0 0 10px; }
.sh-crumb a { color: inherit; text-decoration: none; border-bottom: 2px solid var(--sh-yellow); }

/* header must never widen the page: measured 2026-10-07 with VerifyViewport at 1180 and 375 */
@media (max-width: 1400px) {
    .sh-hdr { gap: 16px; padding: 0 20px; }
    .sh-hdr .search-box input { width: 200px; }
    .sh-dept { display: none; }
}
@media (max-width: 640px) {
    .stats-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ one UI (2026-10-08) */

/* one page header: title, one line, optional aside on the right */
.page-header { display: flex; align-items: flex-end; justify-content: space-between; }
.page-header > div:first-child { min-width: 0; }
.page-header .meta-text { display: block; margin-top: 4px; }
.page-header .aside, .page-header .asof { font-size: 15px; color: var(--sh-text2); white-space: nowrap; }
.sh-crumb { display: none; }

/* one tile: the four dialects draw the same */
.stat-card, .tile, .ls-tile, .mk-tile { background: var(--sh-white); border: 1px solid var(--sh-border); border-top: 4px solid var(--sh-yellow); border-radius: 12px; padding: 14px 18px 12px; box-shadow: none; }
.stat-card:hover, .tile:hover, .ls-tile:hover, .mk-tile:hover { border-color: var(--sh-border); border-top-color: var(--sh-yellow); transform: none; }
a.stat-card:hover, a.mk-tile:hover { border-color: var(--sh-black); border-top-color: var(--sh-yellow); }
.stat-label, .tlabel, .ls-tile .k, .mk-tile .k { color: var(--sh-text2); font-size: 14px; line-height: 1.25; font-weight: 400; text-transform: none; letter-spacing: 0; }
.stat-value, .tvalue, .ls-tile .v, .mk-tile .v { font-family: var(--sh-display); font-weight: 700; font-size: 34px; line-height: 1.1; color: var(--sh-black); }
.stats-grid, .tiles, .ls-tiles, .mk-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 20px; }
.mk-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* one card */
.card, .ls-card, .mk-card, .today .card.light { background: var(--sh-white); border: 1px solid var(--sh-border); border-radius: 12px; box-shadow: none; }
.ls-card, .mk-card { padding: 16px 20px; margin-bottom: 20px; }
.ls-card h3, .mk-card h2, .today .card.light h2 { font-family: var(--sh-display); font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--sh-text2); margin: 0 0 8px; }

/* one table */
.mtable, table.ls { width: 100%; border-collapse: collapse; font-size: 15px; }
.mtable th, table.ls th { font-family: var(--sh-display); font-weight: 500; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--sh-text2); background: var(--sh-page); border-bottom: 1px solid var(--sh-border); padding: 10px 14px; }
.mtable td, table.ls td { padding: 12px 14px; border-bottom: 1px solid var(--sh-border); color: var(--sh-black); }
.mtable tr:hover td, table.ls tr:hover td { background: #FAFAF8; }

/* one badge */
.badge, .trig, .sigbadge, .sh-chip, .today .badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-radius: 4px; padding: 3px 8px; line-height: 1.3; white-space: nowrap; }
.trig, .badge-neutral, .badge.outline { background: var(--sh-white); color: var(--sh-dark); border: 1px solid var(--sh-border-strong); }
.sigbadge, .badge-customer, .badge.yellow, .sh-chip.self, .sh-chip.new { background: var(--sh-yellow); color: var(--sh-black); border: 0; }
.sh-chip, .badge.dark { background: var(--sh-dark); color: var(--sh-white); border: 0; }

/* one filter bar and one button */
.sh-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; background: var(--sh-white); border: 1px solid var(--sh-border); border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; }
.sh-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--sh-text2); }
.sh-filters select, .sh-filters input[type="text"], .sh-filters input[type="search"] { height: 42px; border: 1px solid var(--sh-border-strong); border-radius: 8px; padding: 0 12px; font: 16px var(--sh-body); color: var(--sh-black); background: var(--sh-white); min-width: 180px; }
.sh-filters input[type="checkbox"] { width: 18px; height: 18px; }
.sh-filters .check { flex-direction: row; align-items: center; gap: 8px; text-transform: none; font-size: 16px; font-weight: 400; color: var(--sh-black); letter-spacing: 0; height: 42px; }
.sh-filters .spacer { margin-left: auto; }
.sh-btn, .sh-filters button, .btn-action, .export-btn, button.btn { height: 42px; padding: 0 18px; border-radius: 8px; border: 0; background: var(--sh-black); color: var(--sh-yellow); font: 700 16px var(--sh-body); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.sh-btn.light, .btn-action.light { background: var(--sh-white); color: var(--sh-black); border: 1px solid var(--sh-border-strong); }
.sh-btn.on { background: var(--sh-yellow); color: var(--sh-black); }

/* one title size across the designed pages too */
.today .title, .company .cname, .mk-head h1, .market .cname { font-size: 34px; }

@media (max-width: 640px) {
    .page-header { flex-direction: column; align-items: flex-start; gap: 4px; }
    .stats-grid, .tiles, .ls-tiles, .mk-tiles { grid-template-columns: 1fr; }
    .stat-value, .tvalue, .ls-tile .v, .mk-tile .v { font-size: 28px; }
    .today .title, .company .cname, .mk-head h1, .market .cname { font-size: 26px; }
    .sh-filters select, .sh-filters input[type="text"], .sh-filters input[type="search"] { min-width: 0; width: 100%; }
    .sh-filters label { flex: 1 1 100%; }
}
/* a filter bar inside a card header: no box of its own */
.sh-filters.inline { border: 0; padding: 0; margin: 0; background: transparent; flex: 1 1 auto; justify-content: flex-end; }
.sh-filters.inline select { min-width: 150px; height: 38px; }
.sh-filters.inline .check { height: 38px; }

/* ------------------------------------------------------------------ one map (2026-10-08, docs/IA.md) */
/* a long page in parts: a jump bar that rides along under the header, and each part under its own id */
.sh-jump { position: sticky; top: 64px; z-index: 90; display: flex; gap: 22px; align-items: center; background: var(--sh-page); border-bottom: 1px solid var(--sh-border); margin: -8px -32px 22px; padding: 0 32px; overflow-x: auto; scrollbar-width: none; }
.sh-jump::-webkit-scrollbar { display: none; }
.sh-jump a { padding: 12px 2px 10px; border-bottom: 4px solid transparent; margin-bottom: -1px; font-weight: 700; font-size: 16px; color: var(--sh-text2); text-decoration: none; white-space: nowrap; flex: 0 0 auto; }
.sh-jump a.on, .sh-jump a:hover { color: var(--sh-black); border-bottom-color: var(--sh-yellow); }
.sh-part { scroll-margin-top: 120px; margin-bottom: 36px; }
.sh-part > .sh-part-title { font-family: var(--sh-display); font-weight: 700; font-size: 26px; letter-spacing: .5px; text-transform: uppercase; margin: 0 0 4px; line-height: 1.1; }
.sh-part > .sh-part-meta { display: block; color: var(--sh-text2); font-size: 15px; margin: 0 0 16px; }
/* the full record under the company page: collapsed sections the reader opens */
.sh-record { max-width: 1100px; margin: 8px auto 0; padding: 0 32px 48px; scroll-margin-top: 80px; }
.sh-record > h2 { font-family: var(--sh-display); font-weight: 700; font-size: 26px; letter-spacing: .5px; text-transform: uppercase; margin: 0 0 4px; }
.sh-record > .sh-part-meta { display: block; color: var(--sh-text2); font-size: 15px; margin: 0 0 14px; }
.sh-record details { background: var(--sh-white); border: 1px solid var(--sh-border); border-radius: 12px; margin-bottom: 10px; }
.sh-record details > summary { cursor: pointer; list-style: none; padding: 14px 20px; font-family: var(--sh-display); font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--sh-black); display: flex; align-items: center; gap: 10px; }
.sh-record details > summary::-webkit-details-marker { display: none; }
.sh-record details > summary::before { content: ''; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 7px solid var(--sh-black); transition: transform .12s; }
.sh-record details[open] > summary::before { transform: rotate(90deg); }
.sh-record details > summary .n { color: var(--sh-text2); font-weight: 500; letter-spacing: 0; text-transform: none; font-family: var(--sh-body); font-size: 14px; }
.sh-record details > .sh-record-body { padding: 0 20px 18px; }
.sh-record details > .sh-record-body > .card { border: 0; margin: 0; }
.sh-record details > .sh-record-body > .card > .card-header { display: none; }
@media (max-width: 900px) { .sh-jump { margin: -8px -16px 18px; padding: 0 16px; gap: 16px; } .sh-jump a { font-size: 15px; } .sh-record { padding: 0 16px 40px; } }
@media (max-width: 640px) { .sh-part > .sh-part-title, .sh-record > h2 { font-size: 22px; } }

/* ------------------------------------------------------------------ the map (2026-10-08) */
/* desktop: a sidebar down the left of every page, listing both departments and every page under each */
.sh-layout { display: flex; align-items: flex-start; }
.sh-side { flex: 0 0 236px; position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; background: var(--sh-white); border-right: 1px solid var(--sh-border); padding: 18px 12px 28px; }
.sh-main { flex: 1 1 auto; min-width: 0; }
.sh-group { margin-bottom: 22px; }
.sh-ghead { font-family: var(--sh-display); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--sh-text2); margin: 0 0 6px; padding: 0 10px; line-height: 1.2; }
.sh-group.cur .sh-ghead { color: var(--sh-black); }
.sh-sub { font-family: var(--sh-display); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--sh-muted); margin: 12px 0 2px; padding: 0 10px; line-height: 1.2; }
.sh-side a { display: block; padding: 7px 10px; border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--sh-black); text-decoration: none; line-height: 1.25; }
.sh-side a:hover { background: var(--sh-page); }
.sh-side a:focus-visible { outline: 3px solid var(--sh-black); outline-offset: -3px; }
.sh-side a.on { background: var(--sh-black); color: var(--sh-yellow); }
.sh-group:not(.cur) a { color: var(--sh-text2); font-weight: 500; }
.sh-tabbar { display: none; }

/* phone and tablet: no sidebar; four tabs along the bottom; Menu opens the map as a panel */
@media (max-width: 900px) {
    .sh-side { display: none; }
    body.show-menu .sh-side { display: block; position: fixed; left: 0; right: 0; top: 64px; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); height: auto; z-index: 95; border-right: 0; padding: 16px 16px 24px; }
    .sh-hdr .search-box { display: none; }
    body.show-menu .sh-hdr { flex-wrap: wrap; padding: 10px 16px; gap: 8px 12px; }
    body.show-menu .sh-cluster { flex: 1 0 100%; flex-wrap: wrap; margin-left: 0; gap: 8px 10px; }
    body.show-menu .sh-hdr .search-box { display: block; flex: 1 1 160px; min-width: 0; }
    body.show-menu .sh-hdr .search-box input { width: 100%; }
    body.show-menu .sh-rep { max-width: 150px; flex: 0 1 auto; }
    .sh-side .sh-group { max-width: 520px; }
    .sh-side a { padding: 10px 12px; font-size: 16px; }
    body.has-tabbar .container, body.has-tabbar main.body, body.has-tabbar main.cbody, body.has-tabbar main.srcbody, body.has-tabbar .sh-record { padding-bottom: 96px; }
    .sh-tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; height: calc(64px + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--sh-black); z-index: 100; }
    .sh-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--sh-muted); min-height: 44px; text-decoration: none; }
    .sh-tabbar a.active { color: var(--sh-yellow); font-weight: 700; }
    .sh-tabbar .ico { display: block; width: 18px; height: 18px; }
    .sh-tabbar .ico-list { background: linear-gradient(currentColor, currentColor) 0 2px / 18px 3px no-repeat, linear-gradient(currentColor, currentColor) 0 8px / 18px 3px no-repeat, linear-gradient(currentColor, currentColor) 0 14px / 18px 3px no-repeat; }
    .sh-tabbar .ico-pin { width: 14px; height: 14px; border: 3px solid currentColor; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); margin: 4px auto; }
    .sh-tabbar .ico-people { background: radial-gradient(circle at 6px 6px, currentColor 4px, transparent 4.5px), radial-gradient(circle at 13px 7px, currentColor 3px, transparent 3.5px), linear-gradient(currentColor, currentColor) 0 12px / 12px 6px no-repeat, linear-gradient(currentColor, currentColor) 9px 13px / 9px 5px no-repeat; border-radius: 0 0 4px 4px; }
    .sh-tabbar .ico-grid { background: linear-gradient(currentColor, currentColor) 0 0 / 7px 7px no-repeat, linear-gradient(currentColor, currentColor) 11px 0 / 7px 7px no-repeat, linear-gradient(currentColor, currentColor) 0 11px / 7px 7px no-repeat, linear-gradient(currentColor, currentColor) 11px 11px / 7px 7px no-repeat; }
    .sh-tabbar .ico-chart { background: linear-gradient(currentColor, currentColor) 0 10px / 4px 8px no-repeat, linear-gradient(currentColor, currentColor) 7px 5px / 4px 13px no-repeat, linear-gradient(currentColor, currentColor) 14px 0 / 4px 18px no-repeat; }
    .sh-tabbar .ico-globe { width: 16px; height: 16px; border: 3px solid currentColor; border-radius: 50%; background: linear-gradient(currentColor, currentColor) 0 4px / 10px 2px no-repeat; margin: 1px auto; }
    .sh-tabbar .ico-ring { width: 16px; height: 16px; border: 3px solid currentColor; border-radius: 50%; background: radial-gradient(circle, currentColor 2.5px, transparent 3px); margin: 1px auto; }
    .sh-dept { display: none; }
    .sh-jump { top: 64px; }
}
@media (max-width: 640px) {
    .sh-logout { display: none; }
}
