/* Source-owned foundation. Theme and business files supply the shared visual tokens. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; background: var(--bg-primary); color: var(--text-primary); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
a { color: var(--brand); }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
table { border-collapse: collapse; }
button { color: inherit; }
.geo-app-shell { min-height: 100vh; }
#root aside { position: fixed; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; background: var(--sidebar-bg); border-right: 1px solid var(--border); z-index: 55; }
.geo-shell-brand { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--border); min-height: 68px; }
.geo-shell-brand strong { font-size: 13px; }
.geo-shell-brand p { margin: 2px 0 0; color: var(--text-secondary); }
.geo-shell-logo { flex: 0 0 32px; }
#root aside nav { flex: 1; min-height: 0; padding: 8px; }
.geo-shell-account { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.geo-shell-account span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text-secondary); }
.geo-shell-workspace { margin-left: 208px; min-width: 0; }
.geo-shell-workspace > header { display: flex; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--border); padding-right: 180px; }
.geo-shell-workspace > header h2 { margin: 0; }
.geo-shell-workspace > main { min-height: calc(100vh - 49px); }
.btn-primary, .btn-ghost, .btn-danger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 5px; background: var(--bg-card); }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-danger { color: var(--danger); }
.input-field { width: 100%; padding: 8px 12px; border: 1px solid var(--border); background: var(--bg-input); color: var(--text-primary); }
.glass-card, .stat-card, .table-container { border: 1px solid var(--border); background: var(--bg-card); border-radius: 6px; }
.table-container { overflow: auto; }
.table-container table { width: 100%; }
.badge { display: inline-block; }
.modal-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; background: #162b3c66; }
.modal-content { width: min(720px, 100%); max-height: 90vh; overflow: auto; padding: 24px; background: var(--bg-card); }
@media (max-width: 1023px) {
  .geo-shell-workspace { margin-left: 0; padding-top: 48px; }
  #root aside { top: 48px; }
  .geo-shell-workspace > header { padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
