/* =====================================================================
   AMK SOL — Design tokens
===================================================================== */
:root {
    --primary: #0b2d39;
    --primary-dk: #071b22;
    --secondary: #1a4f63;
    --secondary-lt: #237891;
    --accent: #d9534f;
    --accent-dk: #b8332f;
    --gold: #c9930a;
    --gold-lt: #e0a800;
    --bg-light: #eef2f4;
    --text-dark: #1c2530;
    --text-mute: #6b7684;
    --border: #d7dee3;
    --success: #198754;
    --card-bg: #fff;
    --info: #0d6efd;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(11,45,57,0.08);
    --shadow-md: 0 6px 18px rgba(11,45,57,0.12);
    --shadow-lg: 0 16px 44px rgba(11,45,57,0.20);
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

body.dark-mode {
    --primary: #05141a; --primary-dk: #020a0d; --secondary: #16323d; --secondary-lt: #1d4a5c;
    --bg-light: #14181b; --text-dark: #ecf1f3; --text-mute: #93a0a8; --card-bg: #1a1f22; --border: #2c3438;
    background-color: #0a0c0d;
}
body.dark-mode input, body.dark-mode select { background: #202629; color: #fff; border: 1px solid #3a4247; }
body.dark-mode .map-wrapper { border-color: #3a4247; }
body.dark-mode #static-info-box { background: rgba(0,0,0,0.78); color: #fff; border: 1px solid #3a4247; }
body.dark-mode .sib-row-1 { color: #fff; }
body.dark-mode .sib-row-2 { color: #67c9e0; }
body.dark-mode .sib-alt, body.dark-mode .sib-row-3 { color: #c7d0d4; }
body.dark-mode .data-card { background: #1e2427; }
body.dark-mode .waypoint-item { background: #1e2427; }

* { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
    background: radial-gradient(circle at top, #e9f0f3 0%, #d4dee4 100%);
    color: var(--text-dark); margin: 0; padding: 10px;
    display: flex; flex-direction: column; align-items: center;
    transition: background 0.3s;
    -webkit-font-smoothing: antialiased;
}
body.dark-mode { background: radial-gradient(circle at top, #14181b 0%, #06080a 100%); }

input, select, textarea { font-family: inherit; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 5px; border: 2px solid transparent; background-clip: content-box; }

:focus-visible { outline: 2px solid var(--gold-lt); outline-offset: 2px; border-radius: 4px; }

.app-container {
    background: var(--card-bg); max-width: 920px; width: 100%;
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    overflow: hidden; margin-bottom: 20px; position: relative;
}

/* =====================================================================
   INSTALL BANNER
===================================================================== */
#pwa-install-banner {
    display: none; align-items: center; gap: 10px;
    background: linear-gradient(90deg, var(--primary), var(--secondary-lt));
    color: #fff; padding: 10px 12px; font-size: 0.88rem; font-weight: 600;
    border-bottom: 2px solid var(--gold-lt);
}
.install-banner-text { flex: 1; display: flex; align-items: center; gap: 8px; cursor: pointer; min-width: 0; }
.install-banner-icon { font-size: 1.15rem; flex-shrink: 0; }
.install-banner-go, .install-banner-close {
    border: none; border-radius: 20px; cursor: pointer; font-weight: 700; flex-shrink: 0;
}
.install-banner-go { background: var(--gold-lt); color: var(--primary-dk); padding: 7px 16px; font-size: 0.82rem; }
.install-banner-go:hover { filter: brightness(1.06); }
.install-banner-close { background: rgba(255,255,255,0.16); color: #fff; width: 26px; height: 26px; padding: 0; font-size: 0.8rem; }
.install-banner-close:hover { background: rgba(255,255,255,0.3); }

/* =====================================================================
   HEADER
===================================================================== */
.brand-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary) 68%, #22738f);
    color: #fff; padding: 24px 20px; text-align: center; position: relative;
    box-shadow: inset 0 -4px 14px rgba(0,0,0,0.18);
}
.logo-box {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1.5px solid rgba(255,255,255,0.85); padding: 6px 18px 6px 14px;
    font-weight: 800; font-size: 1.4rem; margin-bottom: 6px; border-radius: 8px;
    letter-spacing: 1.2px; box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.logo-mark { width: 20px; height: 20px; color: var(--gold-lt); flex-shrink: 0; }
.brand-header p { margin: 0; font-size: 0.76rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }
.header-icon-bar { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }
.header-icon-bar-left { left: 12px; right: auto; }
.header-icon-bar button {
    background: rgba(255,255,255,0.12); border: none; color: #fff; font-size: 1.02rem;
    cursor: pointer; width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, transform 0.15s;
}
.header-icon-bar button:hover { background: rgba(255,255,255,0.28); }
.header-icon-bar button:active { transform: scale(0.9); }

/* =====================================================================
   TABS
===================================================================== */
.nav-tabs { display: flex; background: var(--bg-light); border-bottom: 1px solid var(--border); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tab-btn {
    flex: 1; min-width: 84px; padding: 12px 6px 11px; background: none; border: none;
    font-size: 0.78rem; font-weight: 600; color: var(--text-mute); cursor: pointer;
    border-bottom: 3px solid transparent; white-space: nowrap;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    transition: color 0.2s, border-color 0.25s, background 0.2s;
}
.tab-ic { font-size: 1.05rem; line-height: 1; }
.tab-btn:hover { color: var(--secondary-lt); background: rgba(11,45,57,0.04); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); background: var(--card-bg); font-weight: 700; }
.tab-btn-reset { color: var(--accent-dk); }
.tab-btn-reset:hover { color: var(--accent); background: rgba(217,83,79,0.06); }

/* =====================================================================
   LAYOUT
===================================================================== */
.grid-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 22px; }
@media (max-width: 768px) {
    .grid-layout { grid-template-columns: 1fr; padding: 15px; gap: 16px; }
    .input-section { border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 18px; }
}

.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 0.83rem; font-weight: 700; color: var(--text-dark); margin-bottom: 5px; }
input, select {
    width: 100%; padding: 11px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-size: 0.98rem; box-sizing: border-box; background: #fff; color: var(--text-dark);
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus { outline: none; border-color: var(--secondary-lt); box-shadow: 0 0 0 3px rgba(26,79,99,0.15); }
.dms-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

/* =====================================================================
   BUTTONS
===================================================================== */
.btn {
    display: block; width: 100%; padding: 13px; border: none; border-radius: var(--radius-sm);
    font-size: 0.96rem; font-weight: 700; cursor: pointer; color: #fff; text-align: center;
    margin-bottom: 10px; transition: transform 0.12s, box-shadow 0.2s, filter 0.2s;
    box-shadow: var(--shadow-sm); letter-spacing: 0.2px;
}
.btn:hover { filter: brightness(1.07); box-shadow: var(--shadow-md); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: linear-gradient(135deg, var(--secondary), var(--secondary-lt)); }
.btn-gps { background: linear-gradient(135deg, var(--accent), var(--accent-dk)); }
.btn-save { background: linear-gradient(135deg, var(--success), #157347); }
.btn-info { background: linear-gradient(135deg, var(--info), #0a58ca); }
.btn-small { padding: 9px 14px; font-size: 0.84rem; width: auto; display: inline-block; box-shadow: none; margin-bottom: 0; }
.btn-outline {
    background: #fff; color: var(--secondary); border: 1.5px solid var(--border); box-shadow: none;
}
.btn-outline:hover { border-color: var(--secondary-lt); filter: none; background: var(--bg-light); }
body.dark-mode .btn-outline { background: transparent; color: #cfe3e9; }

/* =====================================================================
   RESULTS / DATA CARDS
===================================================================== */
.output-section h3 {
    margin: 0 0 15px 0; color: var(--primary); font-size: 1.15rem;
    border-bottom: 2px solid var(--primary); padding-bottom: 8px;
    display: flex; justify-content: space-between; align-items: center;
}
body.dark-mode .output-section h3 { color: #fff; border-bottom-color: var(--secondary-lt); }
.data-card {
    background: var(--bg-light); border: 1px solid var(--border); border-left: 4px solid var(--secondary);
    border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 12px;
    box-shadow: var(--shadow-sm); transition: box-shadow 0.2s, border-color 0.2s;
}
.data-card:hover { box-shadow: var(--shadow-md); }
.data-label { font-size: 0.7rem; text-transform: uppercase; font-weight: 700; color: var(--text-mute); margin-bottom: 5px; letter-spacing: 0.6px; }
.data-val { font-family: var(--font-mono); font-size: 1.08rem; font-weight: 700; color: var(--text-dark); word-break: break-all; }

.wp-list-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wp-list-head h4 { margin: 0; }
.wp-list-actions { display: flex; gap: 6px; flex-shrink: 0; }

.waypoint-item {
    background: var(--card-bg); border: 1px solid var(--border); border-left: 4px solid var(--gold-lt);
    padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 10px; box-shadow: var(--shadow-sm);
}
.waypoint-item .wp-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wp-coords { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-mute); margin-top: 7px; line-height: 1.65; background: var(--bg-light); padding: 7px 9px; border-radius: var(--radius-sm); }
.wp-tag { display: inline-block; min-width: 96px; color: var(--secondary-lt); font-weight: 700; font-family: inherit; }
body.dark-mode .wp-tag { color: #6fc6de; }

/* =====================================================================
   MAP-SHEET SEARCH CARD
===================================================================== */
.sheet-search-card { border-left-color: var(--gold-lt); }
.sheet-search-row { display: flex; gap: 8px; }
.sheet-search-row input { flex: 1; }
.sheet-search-row .btn { width: auto; padding: 11px 18px; }

/* =====================================================================
   TACTICAL MAP HUD
===================================================================== */
.map-wrapper { position: relative; margin-top: 8px; width: 100%; border-radius: var(--radius); border: 2px solid var(--border); overflow: hidden; height: 500px; background: #e5e5e5; box-shadow: var(--shadow-sm); }
.map-wrapper.fullscreen-mode { position: fixed !important; top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important; z-index: 99999 !important; margin: 0 !important; border-radius: 0 !important; border: none !important; }

#map_container_rotate { width: 100%; height: 100%; transition: transform 0.3s ease-out; transform-origin: center center; }
.mode-3d { transform: perspective(800px) rotateX(55deg) scale(1.6) translateY(-5%) !important; }

#map_view { width: 100%; height: 100%; z-index: 1; cursor: crosshair; }

.map-center-crosshair { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 30px; height: 30px; z-index: 1000; pointer-events: none; }
.map-center-crosshair::before { content: ''; position: absolute; top: 14px; left: 0; width: 30px; height: 2px; background: #222; box-shadow: 0 0 2px #fff; }
.map-center-crosshair::after { content: ''; position: absolute; top: 0; left: 14px; width: 2px; height: 30px; background: #222; box-shadow: 0 0 2px #fff; }

#static-info-box { position: absolute; top: 10px; right: 10px; z-index: 1000; background: rgba(5, 20, 26, 0.72); backdrop-filter: blur(6px); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm); font-family: sans-serif; font-size: 0.85rem; box-shadow: 0 4px 15px rgba(0,0,0,0.3); pointer-events: auto; border: 1px solid rgba(255,255,255,0.18); max-width: 65%; display: none; line-height: 1.5; text-align: right; }

/* --- DRAGGABLE HUD OVERLAYS --- */
.draggable-box { cursor: grab; touch-action: none; user-select: none; transition: box-shadow 0.15s; }
.draggable-box::before { content: '⠿'; position: absolute; top: 2px; left: 6px; font-size: 0.75rem; opacity: 0.5; letter-spacing: -2px; }
#static-info-box.draggable-box::before { left: auto; right: 6px; }
.draggable-box.dragging { cursor: grabbing; box-shadow: 0 8px 25px rgba(0,0,0,0.5); opacity: 0.92; z-index: 1500 !important; }
.sib-row-1 { font-weight: bold; font-size: 1.15em; color: #fff; }
.sib-alt { font-weight: bold; font-size: 0.85em; color: #ffc107; margin-left: 8px; }
.sib-row-2 { color: #81e6d9; font-weight: 500; font-family: var(--font-mono); margin: 3px 0; font-size: 1.05em; }
.sib-row-3 { font-size: 0.8em; color: #ddd; font-weight: 600; }

#drag-dist-box { position: absolute; bottom: 20px; left: 60px; z-index: 1000; background: rgba(5, 20, 26, 0.88); color: #fff; padding: 8px 12px 8px 18px; border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 0.85rem; pointer-events: auto; display: none; border-left: 4px solid var(--accent); box-shadow: var(--shadow-md); }

#btn-3d { position: absolute; bottom: 170px; right: 10px; z-index: 1000; background: rgba(255,255,255,0.96); border: 2px solid var(--border); width: 40px; height: 40px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: bold; color: var(--primary); cursor: pointer; box-shadow: var(--shadow-md); display: flex; justify-content: center; align-items: center; transition: 0.15s; }
#north-arrow { position: absolute; bottom: 120px; right: 10px; z-index: 1000; background: rgba(255,255,255,0.96); border: 2px solid var(--border); width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; flex-direction: column; justify-content: center; align-items: center; pointer-events: none; box-shadow: var(--shadow-md); transition: transform 0.1s ease-out; }
#north-arrow svg { width: 24px; height: 24px; fill: var(--accent); }
#fullscreen-btn { position: absolute; bottom: 70px; right: 10px; z-index: 1000; background: #fff; border: 2px solid var(--border); width: 40px; height: 40px; border-radius: var(--radius-sm); font-size: 1.35rem; font-weight: bold; color: var(--primary); cursor: pointer; box-shadow: var(--shadow-md); display: flex; justify-content: center; align-items: center; }
#locate-btn { position: absolute; bottom: 20px; right: 10px; z-index: 1000; background: #fff; border: 2px solid var(--border); width: 40px; height: 40px; border-radius: var(--radius-sm); font-size: 1.35rem; font-weight: bold; color: var(--primary); cursor: pointer; box-shadow: var(--shadow-md); display: flex; justify-content: center; align-items: center; transition: 0.2s; }

#btn-3d:hover, #fullscreen-btn:hover, #locate-btn:hover { background: #eef4f7; }
#btn-3d:active, #fullscreen-btn:active, #locate-btn:active { background: #e2e8f0; }

.op-marker-google { position: relative; }
.op-dot { width: 16px; height: 16px; background: #4285F4; border: 3px solid #ffffff; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.6); position: absolute; top: -8px; left: -8px; z-index: 99999; }
.op-pulse { width: 44px; height: 44px; background: rgba(66, 133, 244, 0.35); border: 1px solid rgba(66,133,244,0.6); border-radius: 50%; position: absolute; top: -22px; left: -22px; z-index: 99998; animation: pulse-ring 2s infinite ease-out; }
@keyframes pulse-ring { 0% { transform: scale(0.4); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }

.leaflet-tooltip.airbase-tooltip { background: rgba(5,20,26,0.85); color: #fff; border: 1px solid #555; font-size: 10px; font-weight: bold; border-radius: 4px; padding: 2px 6px; box-shadow: 0 2px 4px rgba(0,0,0,0.5); }

/* --- Leaflet geocoder search box: align with app styling --- */
.leaflet-control-geocoder { border-radius: var(--radius-sm) !important; box-shadow: var(--shadow-md) !important; border: none !important; overflow: hidden; }
.leaflet-control-geocoder-form input { font-family: inherit !important; font-size: 0.9rem !important; }
.leaflet-control-geocoder-icon { background-color: #fff !important; }

/* --- QUICK-SAVE MAP POPUP --- */
.qsb-leaflet-popup .leaflet-popup-content-wrapper { border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 2px; }
.qsb-leaflet-popup .leaflet-popup-content { margin: 10px 12px; }
.qsb-popup { min-width: 200px; }
.qsb-title { font-weight: 800; color: var(--primary); font-size: 0.95rem; margin-bottom: 6px; }
.qsb-coords { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-mute); line-height: 1.5; background: var(--bg-light); border-radius: var(--radius-sm); padding: 6px 8px; margin-bottom: 8px; }
.qsb-input { margin-bottom: 8px !important; }
.qsb-actions { display: flex; }

.multi-route-box { background: var(--bg-light); border: 1px solid var(--border); padding: 10px; border-radius: var(--radius-sm); margin-top: 10px; max-height: 150px; overflow-y: auto; font-size: 0.85rem; }
.route-leg { padding: 5px 0; border-bottom: 1px dashed #ccc; display: flex; justify-content: space-between; }
.route-leg:last-child { border-bottom: none; }

.compass-container { text-align: center; margin-top: 20px; padding: 20px; background: var(--card-bg); border-radius: var(--radius-lg); border: 2px solid var(--border); }
.compass-dial { width: 150px; height: 150px; border: 4px solid var(--primary); border-radius: 50%; position: relative; margin: 0 auto; transition: transform 0.1s ease-out; background: radial-gradient(circle, var(--bg-light) 50%, #e9ecef 100%); }
.compass-arrow { position: absolute; top: 10px; left: calc(50% - 10px); width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 65px solid var(--accent); }

.status-msg { padding: 11px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 700; text-align: center; margin-bottom: 15px; display: none; box-shadow: var(--shadow-sm); }
.status-error { background: #f8d7da; color: #842029; } .status-success { background: #d1e7dd; color: #0f5132; }

/* =====================================================================
   MODALS (Help / Login / Support / iOS Install)
===================================================================== */
#helpModal, #loginModal, #supportModal, #iosInstallModal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5,15,20,0.82); backdrop-filter: blur(3px); z-index: 10000;
    overflow-y: auto; padding: 20px; box-sizing: border-box; animation: fadeInModal 0.2s ease-out;
}
@keyframes fadeInModal { from { opacity: 0; } to { opacity: 1; } }
.help-content { background: #fff; max-width: 600px; margin: auto; padding: 26px; border-radius: var(--radius-lg); color: #333; box-shadow: 0 24px 70px rgba(0,0,0,0.45); }
.lang-tabs { display: flex; border-bottom: 2px solid #ccc; margin-bottom: 15px; border-radius: 8px 8px 0 0; overflow: hidden; }
.lang-tab { padding: 10px; cursor: pointer; font-weight: bold; flex: 1; text-align: center; background: #f4f4f4; border: 1px solid #ccc; transition: background 0.2s; }
.lang-tab:hover { background: #e9e9e9; }
.lang-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.help-text { display: none; line-height: 1.6; }
.help-text.active { display: block; }
.help-icon { font-size: 1.5rem; vertical-align: middle; margin-right: 10px; }

.ios-steps { list-style: none; margin: 16px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ios-steps li { display: flex; align-items: center; gap: 12px; background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 0.9rem; }
.ios-step-ic { font-size: 1.2rem; width: 28px; text-align: center; flex-shrink: 0; }

@media print {
    body * { visibility: hidden; }
    #helpModal, #helpModal * { visibility: visible; }
    #helpModal { position: absolute; left: 0; top: 0; width: 100%; background: #fff; padding: 0; }
    .btn { display: none !important; }
}

.wp-input-toggle { display: flex; gap: 5px; margin-bottom: 10px; }
.wp-toggle-btn { flex: 1; padding: 7px; font-size: 0.8rem; background: var(--bg-light); border: 1px solid var(--border); cursor: pointer; border-radius: var(--radius-sm); color: var(--text-dark); font-weight: 600; }
.wp-toggle-btn.active { background: var(--secondary); color: #fff; border-color: var(--secondary); }

/* --- CONVERSION TAB --- */
.fmt-toggle { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 15px; }
.fmt-toggle button { padding: 9px 2px; font-size: 0.72rem; font-weight: 700; border: 1px solid var(--border); background: var(--bg-light); color: var(--text-dark); border-radius: var(--radius-sm); cursor: pointer; transition: 0.2s; }
.fmt-toggle button:hover { border-color: var(--secondary); }
.fmt-toggle button.active { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; border-color: var(--primary); box-shadow: var(--shadow-sm); }
.conv-block { display: none; }
.conv-block.active { display: block; }

.zone-table-wrap { max-height: 220px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-top: 10px; }
table.zone-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; }
table.zone-table th, table.zone-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: center; }
table.zone-table th { background: var(--secondary); color: #fff; position: sticky; top: 0; }
.collapsible-head { cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; font-weight: 700; font-size: 0.85rem; margin-top: 10px; }

/* --- POINT TO POINT --- */
.p2p-row { display: grid; grid-template-columns: 1fr 70px; gap: 8px; margin-bottom: 8px; }
.p2p-result { background: var(--bg-light); border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 14px; margin-top: 12px; }
.p2p-result.los-clear { border-color: var(--success); }
.p2p-result.los-blocked { border-color: var(--accent); }
.p2p-metric { display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.9rem; }
.p2p-metric b { font-family: var(--font-mono); }

/* --- LOGIN / SUPPORT --- */
.auth-input { margin-bottom: 12px; }
.divider-or { text-align: center; color: #999; font-size: 0.8rem; margin: 12px 0; position: relative; }
.divider-or::before, .divider-or::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border); }
.divider-or::before { left: 0; } .divider-or::after { right: 0; }
.sso-btn { background: #fff; color: #333; border: 1px solid var(--border); }
.support-option { display: flex; justify-content: space-between; align-items: center; background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 10px; font-size: 0.85rem; }
.support-option code { background: #fff; border: 1px solid var(--border); padding: 3px 6px; border-radius: 4px; }
body.dark-mode .support-option code { background: #222; }

.leg-los-ok { color: var(--success); } .leg-los-bad { color: var(--accent); }
