/* Shared interface system for the atlas, directory and operations workspace. */
:root {
    --bg: #101111;
    --panel: #171818;
    --panel-solid: #171818;
    --panel-strong: #1e2020;
    --border: #2c2f2e;
    --border-strong: #454a46;
    --text: #f1f3ef;
    --muted: #a0a7a1;
    --muted-2: #7b837d;
    --cyan: #cbf475;
    --emerald: #83d4ae;
    --gold: #e7bc72;
    --radius: 6px;
    --shadow: 0 12px 40px #0005;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}
* { letter-spacing: 0 !important; }
body { background: var(--bg); font-size: 14px; }
button, input, select, textarea { font-family: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
button, summary { cursor: pointer; }
.lucide { width: 17px; height: 17px; stroke-width: 1.6; flex-shrink: 0; vertical-align: middle; }
.ambient, .grid-overlay, .hero::before, .globe-card::before, .globe-card::after,
.stat-card::after, .app-loader::before { display: none; }
[hidden] { display: none !important; }
.hidden { display: none !important; }
.button, .view-button, .icon-button, .map-pill {
    border-radius: 5px; box-shadow: none; font-size: 12px; font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 36px; transition: background 140ms, border-color 140ms, color 140ms;
}
.button { padding: 9px 14px; }
.button:hover, .icon-button:hover, .view-button:hover { transform: none; box-shadow: none; }
.button-primary, .button-primary:hover { background: var(--cyan); border-color: var(--cyan); color: #19230e; box-shadow: none; }
.button-primary:hover { background: #ddffa3; }
.button-secondary, .button-ghost, .icon-button { background: #202321; color: var(--text); border: 1px solid var(--border); }
.button-secondary:hover, .button-ghost:hover, .icon-button:hover { background: #2e3330; border-color: var(--border-strong); }
.button-ghost { background: transparent; }
.button:disabled { opacity: .42; cursor: not-allowed; }
.icon-button { width: 34px; height: 34px; padding: 0; flex-shrink: 0; }
.app-shell { height: 100dvh; min-height: 0; overflow: hidden; }
.topbar { position: absolute; inset: 0 0 auto; height: 68px; padding: 0 24px; background: #161817; border-bottom: 1px solid var(--border); backdrop-filter: none; gap: 30px; }
.brand { min-width: 200px; gap: 10px; }
.brand-logo { width: 36px; height: 36px; flex-basis: 36px; filter: none; }
.brand strong { font-size: 21px; font-weight: 650; }
.brand small { margin-top: 1px; font-size: 10px; color: var(--muted); }
.nav-links { align-self: stretch; display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav-links a, .nav-links button { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 5px; font-size: 12px; color: var(--muted); background: transparent; border: 0; }
.nav-links a.active { color: var(--text); background: #2a2e28; }
.nav-links a.active .lucide { color: var(--cyan); }
.nav-links a:hover { background: #242724; color: var(--text); }
.top-actions { display: flex; min-width: 0; gap: 9px; }
#presentationMode { width: 36px; padding: 0; }
.workspace { position: absolute; inset: 68px 0 29px; min-height: 0; display: grid; grid-template-columns: 246px minmax(0,1fr); padding: 0; gap: 0; }
.filter-panel { position: relative; top: 0; width: auto; height: 100%; max-height: none; display: block; overflow: auto; padding: 24px 19px; border: 0; border-right: 1px solid var(--border); border-radius: 0; background: #161817; box-shadow: none; backdrop-filter: none; scrollbar-width: thin; scrollbar-color: #444b40 transparent; }
.eyebrow { font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; }
.panel-heading { padding: 0; margin: 0 0 20px; }
.panel-heading h2 { font-size: 17px; font-weight: 600; margin: 10px 0 6px; }
.panel-heading p { margin: 0; color: var(--cyan); font-size: 11px; }
.field { margin: 0 0 15px; gap: 7px; }
.field > span { font-size: 11px; font-weight: 500; color: var(--muted); }
input, select, textarea { border: 1px solid #363b36; border-radius: 5px; min-height: 37px; background: #1c1f1d; color: var(--text); padding: 9px 10px; font-size: 12px; box-shadow: none; width: 100%; }
input::placeholder, textarea::placeholder { color: #818881; }
input:hover, select:hover, textarea:hover { border-color: #626b5c; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px #cbf47517; outline: none; }
select { cursor: pointer; padding-right: 24px; }
input[type=checkbox] { accent-color: var(--cyan); width: 15px; min-height: 15px; height: 15px; flex-shrink: 0; }
.filter-chips { gap: 5px; margin: -5px 0 16px; }
.filter-chip, .filter-chip-muted { min-height: 24px; border-radius: 4px; font-size: 10px; background: #232923; color: var(--muted); padding: 4px 6px; }
.filter-chip-muted { display: none; }
.filter-chip { border-color: #4a573b; color: var(--cyan); }
.filter-panel .legend { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 18px; font-size: 10px; gap: 10px; }
.dot { width: 6px; height: 6px; box-shadow: none; }
.bar { width: 4px; height: 12px; border-radius: 1px; background: var(--cyan); }
.main-stage { height: 100%; min-height: 0; overflow: hidden; }
.hero { height: 100%; min-height: 0; display: grid; grid-template-rows: 106px 68px minmax(0,1fr); gap: 0; }
.hero-copy { padding: 23px 340px 0 30px; max-width: none; z-index: 1; }
.hero-copy h1 { font-size: 29px; font-weight: 550; line-height: 1.2; margin: 5px 0; max-width: none; }
.heading-period { color: var(--cyan); }
.hero-copy p { display: none; }
.trust-badges, .hero-metrics, .hero-actions { display: none; }
.view-switcher { position: absolute; top: 37px; right: 28px; display: flex; align-items: center; padding: 4px; gap: 2px; width: auto; background: #1b1e1b; border: 1px solid var(--border); border-radius: 6px; z-index: 2; }
.view-button { color: var(--muted); min-height: 31px; padding: 6px 12px; border: 0; border-radius: 3px; background: transparent; font-size: 11px; }
.view-button.active { background: #343b2e; color: #e5facb; box-shadow: none; }
.stats-grid { margin: 0 30px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 0; border: 0; border-right: 1px solid var(--border); border-radius: 0; box-shadow: none; padding: 0 22px; background: none; gap: 3px; }
.stat-card:first-child { padding-left: 0; }
.stat-card:last-child { border-right: 0; }
.stat-top { display: block; }
.stat-card span { color: var(--muted); font-size: 10px; font-weight: 400; }
.stat-card strong { font-size: 21px; font-weight: 550; margin: 0; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-card i, .stat-card small { display: none; }
.view { min-height: 0; height: 100%; overflow: auto; display: none; scrollbar-width: thin; scrollbar-color: #464d43 transparent; }
.view.active { display: block; }
#globeView { overflow: hidden; }
.globe-card { height: 100%; min-height: 0; width: 100%; border-radius: 0; border: 0; background: #101111; box-shadow: none; }
#mapLibreViz, #globeViz { position: absolute; inset: 0; height: 100%; width: 100%; background: var(--bg); }
.mobile-filter-button, .filter-close { display: none; }
.map-toolbar { display: flex; top: 18px; left: 30px; right: auto; padding: 0; border: 0; background: transparent; box-shadow: none; gap: 9px; overflow: visible; backdrop-filter: none; align-items: flex-start; }
.control-group { padding: 3px; border: 1px solid var(--border); background: #1a1d1aeF; border-radius: 5px; gap: 2px; }
.control-group > span { display: none; }
.map-pill { min-height: 30px; padding: 5px 11px; font-size: 10px; background: transparent; border: 0; color: var(--muted); }
.map-pill.active { background: #d2f58a; color: #18200f; box-shadow: none; }
.layer-menu { position: relative; min-width: 104px; color: var(--muted); }
.layer-menu summary { list-style: none; display: flex; gap: 8px; align-items: center; height: 38px; padding: 0 11px; background: #1a1d1aef; border: 1px solid var(--border); border-radius: 5px; font-size: 11px; }
.layer-menu summary::-webkit-details-marker { display: none; }
.layer-menu summary .lucide { width: 14px; height: 14px; }
.layer-menu[open] summary { color: var(--cyan); }
.layer-menu .control-group { position: absolute; top: 44px; left: 0; width: 164px; display: grid; padding: 7px; box-shadow: var(--shadow); }
.layer-menu label { border: 0 !important; justify-content: flex-start; min-height: 36px; border-radius: 3px; background: transparent !important; color: var(--text); }
.map-toolbar input[type=checkbox] { border-radius: 3px; background: #252b23; border-color: #606b54; }
.map-toolbar input[type=checkbox]:checked { background: var(--cyan); border-color: var(--cyan); }
.data-density { position: absolute; top: auto; left: 30px; right: auto; bottom: 53px; max-width: calc(100% - 90px); background: transparent; border: 0; padding: 0; font-size: 10px; color: #a8b0a4; text-align: left; }
.globe-legend { left: 30px; right: auto; bottom: 22px; background: transparent; border: 0; padding: 0; gap: 16px; max-width: none; box-shadow: none; }
.globe-legend span { font-size: 10px; color: var(--muted); }
.maplibregl-ctrl-group { display: block; background: #1e231d; border: 1px solid var(--border); border-radius: 5px; box-shadow: none !important; overflow: hidden; }
.maplibregl-ctrl-group button { width: 35px; height: 35px; border-color: var(--border) !important; }
.maplibregl-ctrl-group button:hover { background: #333d2d; }
.maplibregl-ctrl-icon { filter: invert(1); }
.maplibregl-ctrl-top-right { top: 9px; right: 20px; }
.maplibregl-ctrl-bottom-right { right: 10px; }
.maplibregl-ctrl-attrib { display: block; background: #161916d9 !important; color: #aeb4a9; font-size: 9px; }
.maplibregl-ctrl-attrib a { color: #aeb4a9 !important; }
.maplibregl-popup-content, .startup-map-popup .maplibregl-popup-content { background: #20261e; color: var(--text); border: 1px solid #526044; box-shadow: var(--shadow); border-radius: 6px; }
.map-tooltip strong { font-size: 13px; }
.map-tooltip { background: #20261e; border: 1px solid #526044; border-radius: 6px; box-shadow: var(--shadow); backdrop-filter: none; }
.map-tooltip span, .map-tooltip em { font-size: 11px; color: #b0b7aa; }
.table-shell, .analytics-shell { padding: 26px 30px 40px; border: 0; border-radius: 0; background: none; box-shadow: none; }
.section-heading { margin: 0 0 20px; display: flex; justify-content: space-between; align-items: center; }
.section-heading .eyebrow { display: none; }
.section-heading h2 { font-size: 17px; font-weight: 500; margin: 0; }
.dataset-toolbar { background: none; border: 0; border-bottom: 1px solid var(--border); padding: 0 0 16px; border-radius: 0; margin-bottom: 20px; }
.dataset-toolbar strong { font-size: 12px; font-weight: 500; }
.dataset-toolbar span { font-size: 10px; }
.sort-controls { gap: 4px; }
.sort-controls button { background: #20241e; border: 1px solid var(--border); color: var(--muted); padding: 5px 10px; min-height: 30px; border-radius: 4px; font-size: 11px; }
.sort-controls button.active { color: var(--cyan); border-color: #4c5c35; background: #2a3320; }
.company-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(295px,1fr)); gap: 14px; }
.company-card { display: grid; gap: 15px; padding: 19px; min-height: 0; background: #1a1c19; border: 1px solid #32382f; border-radius: 7px; box-shadow: none; }
.company-card:hover, .company-card:focus-visible { background: #21261d; border-color: #6d8057; transform: none; box-shadow: none; }
.company-card-head { grid-template-columns: 36px minmax(0,1fr); gap: 11px; }
.logo { width: 36px; height: 36px; min-width: 36px; border-radius: 6px; font-size: 12px; box-shadow: none; }
.company-card h3 { font-size: 15px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.company-card-head p { font-size: 11px; color: #b1b8ac; }
.company-card-head .badge-quality { grid-column: 2; justify-self: start; }
.badge, .badge-quality, .company-card-tags span { border-radius: 4px; min-height: 22px; font-size: 10px; font-weight: 500; padding: 3px 6px; color: #b0b7ab; border: 1px solid #3d4537; background: transparent; }
.badge-quality.verified, .badge.good { background: #233421; color: #bfdeac; border-color: #3c5136; }
.badge-quality.partial, .badge.warn { background: #3a2d18; color: #e9c992; border-color: #5d4b2a; }
.company-card-description { display: none; }
.company-card-tags { gap: 5px; }
.company-card-tags span:last-child { display: none; }
.company-card-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding-top: 13px; border-top: 1px solid var(--border); }
.company-card-metrics div { min-height: 0; border: 0; border-radius: 0; padding: 0; background: none; }
.company-card-metrics span { font-size: 10px; font-weight: 400; text-transform: none; }
.company-card-metrics strong { font-size: 12px; font-weight: 500; }
.company-card-actions { display: flex; gap: 8px; border-top: 1px solid var(--border); padding-top: 13px; }
.company-card-actions .button { min-height: 30px; font-size: 11px; flex: 1; }
.analytics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px; }
.chart-card { background: none; border: 0; border-radius: 0; padding: 0 0 22px; box-shadow: none; min-width: 0; border-bottom: 1px solid var(--border); }
.chart-card h3 { font-size: 13px; margin: 0 0 20px; font-weight: 500; color: var(--text); }
.bar-row { grid-template-columns: minmax(90px,1fr) minmax(50px,1.2fr) 28px; font-size: 11px; gap: 10px; }
.bar-track { height: 5px; background: #2e322a; border-radius: 1px; }
.bar-fill { background: var(--cyan); border-radius: 1px; }
.chart-card:nth-child(3n+2) .bar-fill { background: #91bdca; }
.chart-card:nth-child(3n) .bar-fill { background: #d1ad80; }
.rank-item { background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 11px 0; min-width: 0; gap: 10px; font-size: 11px; }
.rank-item strong { font-weight: 500; overflow-wrap: anywhere; }
.detail-panel { position: fixed; top: 68px; right: 0; bottom: 29px; width: min(470px,100%); max-height: none; border: 0; border-left: 1px solid #49533e; padding: 26px; border-radius: 0; background: #1a1e18; box-shadow: -16px 0 60px #0006; backdrop-filter: none; transform: translateX(105%); }
.detail-panel.open { transform: translateX(0); }
.detail-head { padding: 0 0 20px; border-bottom: 1px solid var(--border); background: #1a1e18; }
.detail-title { min-width: 0; }
.detail-title h2 { font-size: 24px; line-height: 1.2; font-weight: 550; overflow-wrap: anywhere; }
.detail-title p { color: var(--muted); font-size: 12px; }
.detail-badges { gap: 6px; margin: 18px 0; }
.detail-description { color: var(--muted); font-size: 12px; line-height: 1.7; }
.metric-grid { gap: 0; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.metric { padding: 14px 5px; border: 0; border-radius: 0; background: transparent; }
.metric span { font-size: 10px; color: var(--muted); font-weight: 400; }
.metric strong { font-size: 16px; overflow-wrap: anywhere; }
.data-quality { background: #222a1d; border: 1px solid #3d4834; border-radius: 5px; padding: 15px; }
.data-quality p { color: var(--muted); line-height: 1.6; font-size: 11px; }
.quality-meter { background: #3c4633; }
.quality-meter span { background: var(--cyan); }
.detail-actions { grid-template-columns: 1fr 1fr; }
.detail-actions .button:first-child { grid-column: 1 / -1; }
.modal-backdrop, .filter-scrim { background: #0009; backdrop-filter: blur(5px); }
.modal { width: min(680px,calc(100% - 32px)); padding: 28px; border-radius: 8px; border: 1px solid #525d46; background: #1a1e18; box-shadow: 0 30px 100px #000b; max-height: calc(100dvh - 64px); }
.modal-header { border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 23px; }
.modal-header h2 { font-size: 24px; font-weight: 500; }
.company-form { gap: 17px; }
.company-form .field { margin: 0; }
.company-form .field:first-child { grid-column: 1 / -1; }
.company-form textarea { min-height: 100px; }
.field-note, .city-status { color: var(--muted); font-size: 10px; line-height: 1.6; }
.city-suggestions { background: #262d20; border: 1px solid #667654; border-radius: 5px; box-shadow: var(--shadow); }
.city-suggestion { color: var(--text); background: transparent; border-bottom-color: var(--border); }
.city-suggestion:hover, .city-suggestion:focus-visible { background: #35402b; }
.city-suggestion span { color: var(--muted); }
.notification { background: #22291d !important; border: 1px solid #738957; border-radius: 6px; color: var(--text); bottom: 45px; }
.site-footer { position: absolute; bottom: 0; left: 0; right: 0; height: 29px; padding: 0 23px; background: #161817; border-top: 1px solid var(--border); color: #90968b; font-size: 10px; display: flex; justify-content: space-between; align-items: center; }
.site-footer a { color: #c5ceba; }
.app-loader { background: #101310; }
.app-loader img { width: 52px; height: 52px; filter: none; animation: none; }
.app-loader strong { font-size: 25px; font-weight: 500; }
.app-loader span { font-size: 12px; }
.app-loader-bar { height: 2px; width: 180px; margin-top: 20px; }
.app-loader-bar i { background: var(--cyan); box-shadow: none; }
.globe-loading { background: #101310; }
.empty-state, .empty-state-product { background: #171d14; border-color: #47523d; border-radius: 5px; box-shadow: none; }
.empty-state-product { min-height: 320px; }
.empty-illustration { border-radius: 6px; background: #283321; }
body.presentation-mode .workspace { grid-template-columns: minmax(0,1fr); }
body.presentation-mode .filter-panel { display: none; }
body.presentation-mode .hero { min-height: 0; grid-template-rows: minmax(0,1fr); }
body.presentation-mode .hero-copy, body.presentation-mode .stats-grid, body.presentation-mode .view-switcher { display: none; }
body.presentation-mode .globe-card { height: 100%; min-height: 0; }
@media (max-width: 1050px) {
    .workspace { grid-template-columns: 220px minmax(0,1fr); }
    .brand { min-width: 170px; }
    .topbar { padding: 0 17px; gap: 14px; }
    .nav-links a { padding: 10px; }
    .hero-copy { padding-left: 23px; }
    .hero-copy h1 { font-size: 24px; }
    .view-switcher { right: 20px; }
    .view-button { padding: 6px 8px; }
    .view-button .lucide { display: none; }
    .stats-grid { margin: 0 23px; }
    .stat-card { padding: 0 12px; }
    .table-shell, .analytics-shell { padding-inline: 23px; }
}
@media (max-width: 760px) {
    body { padding-bottom: 0; }
    .app-shell { height: var(--app-height,100dvh); }
    .topbar { height: 61px; padding: 0 16px; gap: 10px; }
    .brand { min-width: 0; margin-right: auto; }
    .brand strong { font-size: 20px; }
    .brand-logo { width: 30px; height: 30px; flex-basis: 30px; }
    .brand small, .nav-links { display: none; }
    .top-actions { display: flex; }
    .top-actions .mobile-filter-button { display: inline-flex; min-height: 36px; padding: 7px 12px; }
    .workspace { display: block; inset: 61px 0 calc(65px + env(safe-area-inset-bottom)); min-height: 0; padding: 0; }
    .filter-panel { position: fixed; z-index: 65; inset: 0 auto 0 0; width: min(340px,calc(100vw - 30px)); height: 100%; padding: max(25px,env(safe-area-inset-top)) 22px 35px; background: #191d17; transform: translateX(-105%); border-radius: 0; transition: transform 180ms; }
    body.filters-open .filter-panel { transform: translateX(0); }
    .filter-close { display: inline-flex; }
    .filter-panel .field { margin-bottom: 17px; }
    input, select, textarea { font-size: 16px; min-height: 44px; }
    .hero { height: 100%; min-height: 0; grid-template-rows: 111px 61px minmax(0,1fr); }
    .hero-copy { padding: 15px 17px 0; }
    .hero-copy .eyebrow { display: none; }
    .hero-copy h1 { font-size: 25px; margin: 0; }
    .view-switcher { top: 54px; left: 17px; right: 17px; width: auto; border: 0; background: transparent; padding: 0; border-bottom: 1px solid var(--border); border-radius: 0; gap: 0; }
    .view-button { flex: 1; min-height: 41px; font-size: 12px; border-radius: 0; border-bottom: 2px solid transparent; }
    .view-button .lucide { display: inline; width: 15px; height: 15px; }
    .view-button.active { color: var(--cyan); background: none; border-bottom-color: var(--cyan); }
    .stats-grid { display: grid; margin: 0 17px; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 0; }
    .stat-card { padding: 0 9px; }
    .stat-card strong { font-size: 17px; }
    .stat-card span { font-size: 9px; white-space: nowrap; }
    .globe-card { height: 100%; min-height: 0; border-radius: 0; }
    .map-toolbar { top: 12px; left: 14px; right: auto; padding: 0; gap: 7px; overflow: visible; }
    .map-pill { min-height: 30px; padding: 5px 9px; }
    .layer-menu summary { height: 38px; padding: 0 9px; }
    .layer-menu summary .lucide:last-child { display: none; }
    .layer-menu { min-width: 0; }
    .maplibregl-ctrl-top-right { top: 58px; right: 5px; }
    .maplibregl-ctrl-group button { width: 38px; height: 38px; }
    .globe-legend { left: 17px; bottom: 27px; right: auto; gap: 12px; max-width: calc(100% - 35px); white-space: normal; }
    .globe-legend span { font-size: 9px; }
    .data-density { left: 17px; bottom: 48px; font-size: 9px; right: auto; max-width: calc(100% - 70px); }
    .site-footer { display: none; }
    .mobile-tabbar { display: grid; position: absolute; inset: auto 0 0; height: calc(65px + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--border); border-radius: 0; background: #191d17; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 2px; box-shadow: none; }
    .mobile-tab { display: flex; flex-direction: column; gap: 4px; justify-content: center; align-items: center; background: none; border: 0; border-radius: 4px; font-weight: 400; font-size: 10px; padding: 4px; min-height: 44px; }
    .mobile-tab.active { color: var(--cyan); background: #2b3523; box-shadow: none; }
    .mobile-tab .lucide { width: 19px; height: 19px; }
    .table-shell, .analytics-shell { padding: 21px 17px 24px; }
    .dataset-toolbar { flex-direction: row; gap: 9px; align-items: center; }
    .dataset-toolbar span { display: none; }
    .sort-controls { width: auto; flex-wrap: nowrap; }
    .sort-controls button { min-height: 36px; padding-inline: 7px; font-size: 10px; }
    .company-grid { grid-template-columns: 1fr; }
    .company-card { padding: 17px; }
    .company-card-metrics { grid-template-columns: 1fr 1fr; }
    .company-card-actions .button { min-height: 38px; }
    .analytics-grid { grid-template-columns: 1fr; gap: 26px; }
    .detail-panel { inset: auto 0 calc(65px + env(safe-area-inset-bottom)); width: 100%; max-height: calc(100dvh - 145px); padding: 14px 20px 24px; border: 1px solid #515e44; border-bottom: 0; border-radius: 8px 8px 0 0; transform: translateY(120%); }
    .detail-panel.open { transform: translateY(0); }
    .detail-head { position: relative; top: 0; padding: 8px 0 16px; background: #1a1e18; }
    .detail-title h2 { font-size: 23px; }
    .detail-panel .rank-list { grid-template-columns: 1fr; }
    .metric-grid, .detail-actions { grid-template-columns: 1fr 1fr; }
    .modal { inset: auto 0 0; width: 100%; max-height: calc(100dvh - 20px); border-radius: 8px 8px 0 0; padding: 22px; transform: none; }
    .company-form { grid-template-columns: 1fr; }
    .notification { bottom: 82px; left: 14px; right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
