:root {
    --teal: #0ea5a5;
    --navy: #002b5c;
    --bg: #f8fafc;
    --border: #e2e8f0;
}

body, html { margin: 0; padding: 0; height: 100%; width: 100%; overflow: hidden; background: var(--bg); font-family: -apple-system, sans-serif; color: #1e293b; }
.bento-container { display: flex; flex-direction: column; height: 100dvh; padding: 10px; gap: 10px; box-sizing: border-box; padding-bottom: env(safe-area-inset-bottom); }

.bento-card { background: #ffffff; border-radius: 20px; border: 1px solid var(--border); box-shadow: 0 4px 6px rgba(0,0,0,0.02); overflow: hidden; position: relative; }

/* Header */
.header-block { padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; border-left: 6px solid var(--teal); }
.brand { display: flex; align-items: center; gap: 12px; }
.symbol { background: var(--navy); color: #fff; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-weight: 900; border-radius: 8px; }
.brand h1 { margin: 0; font-size: 0.9rem; letter-spacing: 1px; color: var(--navy); }
.brand span { font-size: 0.55rem; color: #64748b; font-weight: bold; }
.status-pill { background: #f1f5f9; padding: 3px 10px; border-radius: 50px; font-size: 0.65rem; font-weight: bold; color: var(--teal); }
#clock { font-size: 0.75rem; font-weight: bold; color: var(--navy); }

/* Map */
.map-block { flex: 1; min-height: 250px; }
#map { height: 100%; width: 100%; background: #cbd5e1; }
.map-labels { position: absolute; bottom: 12px; right: 12px; z-index: 1000; }
.label-pill { background: rgba(255,255,255,0.9); padding: 5px 12px; border-radius: 8px; font-size: 0.65rem; font-weight: 800; color: var(--navy); border: 1px solid var(--border); }

/* Info Grid */
.bento-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.info-cell { padding: 15px; }
.info-cell label { font-size: 0.55rem; font-weight: bold; color: #94a3b8; text-transform: uppercase; }
.info-cell .val { font-size: 1.3rem; font-weight: 900; color: var(--navy); margin: 4px 0; }
.info-cell .sub { font-size: 0.65rem; font-weight: bold; color: var(--teal); }

/* Dock */
.nav-dock { height: 75px; display: flex; justify-content: space-around; align-items: center; }
.dock-btn { background: none; border: none; color: #64748b; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 0.6rem; font-weight: bold; cursor: pointer; }
.dock-btn.prime { color: var(--teal); }
.dock-btn i { font-size: 1.3rem; }

/* Panels */
.side-panel { position: fixed; bottom: 85px; left: 10px; right: 10px; height: 58vh; background: #fff; border-radius: 24px; border: 1px solid var(--border); z-index: 2000; box-shadow: 0 -10px 40px rgba(0,0,0,0.1); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); padding: 20px; display: flex; flex-direction: column; }
.side-panel.hidden { transform: translateY(130%); }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 15px; border-bottom: 1px solid #f1f5f9; margin-bottom: 10px; }
.panel-head h2 { font-size: 0.8rem; color: var(--navy); margin: 0; }
.close-p { background: #f1f5f9; border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; }
.panel-scroll { flex: 1; overflow-y: auto; }

.q-section-title { font-size: 0.6rem; font-weight: 800; color: #94a3b8; margin: 15px 0 8px 0; text-transform: uppercase; border-bottom: 1px dashed var(--border); padding-bottom: 4px; }
.q-toggle { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.q-toggle input { width: 18px; height: 18px; accent-color: var(--teal); }

.q-group { margin-bottom: 15px; display: flex; flex-direction: column; gap: 5px; }
.q-input { height: 42px; border: 1px solid var(--border); border-radius: 12px; padding: 0 12px; font-size: 0.9rem; }

/* Console */
#terminal-output { flex: 1; background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 12px; font-family: monospace; font-size: 0.65rem; overflow-y: auto; line-height: 1.5; color: #334155; }
.panel-actions { margin-top: 15px; }
.q-btn-outline { width: 100%; height: 42px; border: 1px solid var(--teal); color: var(--teal); background: none; border-radius: 12px; font-weight: bold; cursor: pointer; }

/* Popups */
.vis-badge { display: block; margin-top: 5px; padding: 4px; text-align: center; font-size: 0.6rem; border-radius: 4px; font-weight: bold; }
.vis-yes { background: #dcfce7; color: #166534; }
.vis-no { background: #f1f5f9; color: #64748b; }
.sat-footprint { fill: var(--teal); fill-opacity: 0.04; stroke: var(--teal); stroke-width: 0.5; stroke-dasharray: 4,4; }
