/* Star-orbit console — shared surfaces, controls and navigation. */
:root {
  color-scheme: dark;
  --orbit-bg: #080e1a;
  --orbit-panel: #101b2c;
  --orbit-raised: #15243a;
  --orbit-line: #27384f;
  --orbit-text: #e8effb;
  --orbit-muted: #a0b1c8;
  --orbit-accent: #69deea;
  --blue: var(--orbit-accent);
  --muted: var(--orbit-muted);
  --border: var(--orbit-line);
  background: var(--orbit-bg);
  color: var(--orbit-text);
  -webkit-font-smoothing: antialiased;
  accent-color: var(--orbit-accent);
}
body { background: var(--orbit-bg); }
::selection { background: #23576b; color: #fff; }
button {
  background: var(--orbit-raised);
  color: #d6e4f5;
  border-color: #34475f;
}
button:hover { background: #1d3248; }
button.primary {
  background: #85e3ed;
  border-color: #85e3ed;
  color: #082332;
  font-weight: 620;
}
button.primary:hover { background: #a4f3f3; border-color: #a4f3f3; }
button.danger, .form-error { color: #ffa6a9; }
:focus-visible { outline: 2px solid var(--orbit-accent); }
input, select, textarea {
  background: #0c1626;
  border-color: #384a63;
  color: var(--orbit-text);
}
input::placeholder, textarea::placeholder { color: #91a4bd; }
input:focus, select:focus, textarea:focus {
  border-color: var(--orbit-accent);
  outline: 2px solid #4da0b4;
  outline-offset: 1px;
}
label { color: #c3d1e3; }
.card, dialog { background: var(--orbit-panel); border: 1px solid var(--orbit-line); }
.card { border-radius: 15px; }
.card-head p, .form-hint, .definition span, .empty, .empty strong, .auth-note, dialog > p { color: var(--orbit-muted); }
.definition strong { overflow-wrap: anywhere; }
.settings-grid .card-head { padding-bottom: 12px; }
.settings-grid .definition { gap: 12px; }
th { background: #152236; color: #b6c7db; }
td { color: #c0cee1; border-color: #24334a; }
td strong { color: var(--orbit-text); }
tbody tr:hover { background: #142136; }
.empty-symbol { color: #71afc9; }
.badge { background: #173831; color: #90e1c0; }
.badge.gray { background: #1d2b3e; color: #b7c6db; }
.badge.amber { background: #3c3123; color: #f5ca82; }
.badge.red { background: #402730; color: #ffacb7; }
.pill, .import-preview { background: var(--orbit-raised); color: var(--orbit-muted); }
.notice, .file-area { background: #112536; border-color: #2e4a60; color: #b7cedc; }
.file-area input { background: #0c1828; }
.notice strong, .notice .icon { color: var(--orbit-accent); }
.back { background: transparent; color: var(--orbit-muted); }
dialog {
  color: var(--orbit-text);
  box-shadow: 0 30px 100px #02060fbd;
  max-height: calc(100dvh - 36px);
}
dialog::backdrop { background: #050a15b8; }
#toast { border: 1px solid #355c71; background: #163747; color: #e0ffff; box-shadow: 0 8px 30px #03081380; }
#toast.error { background: #522731; color: #ffe6e7; border-color: #a35967; }
.boot, .footer { color: var(--orbit-muted); }
.footer { gap: 12px; line-height: 1.6; }

.shell {
  --rail: 196px;
  grid-template-columns: var(--rail) minmax(0, 1fr);
}
.workspace { min-width: 0; }
.sidebar {
  background: linear-gradient(174deg, #101b2c, #0c1523 75%);
  border-right: 1px solid #223047;
  width: var(--rail);
  padding: 30px 16px 22px;
  overflow-y: auto;
}
.brand { gap: 11px; color: #f0f6ff; padding: 2px 5px 0; }
.brand strong { font-size: 21px; letter-spacing: .03em; white-space: nowrap; }
.brand small { font-size: 9px; margin-top: 3px; color: #a4b7d0; letter-spacing: .15em; }
.brand-icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: linear-gradient(145deg, #a3ffea, #62daf0 55%, #539dff);
  color: #10253b;
  font-size: 25px;
  line-height: 1;
  box-shadow: 0 0 22px #41c7ed24;
}
.nav-title { padding: 0 12px; margin: 48px 0 15px; font-size: 11px; color: #91a6c0; }
.nav { gap: 6px; }
.nav button {
  position: relative;
  border: 1px solid transparent;
  padding: 13px 12px;
  color: #adbed3;
  border-radius: 9px;
}
.nav button:hover { background: #17283c; color: #e4f7ff; }
.nav button.active {
  color: #a5f4fb;
  background: linear-gradient(95deg, #164256, #182b43);
  border-color: #2a566a;
  box-shadow: none;
}
.nav button.active::before {
  position: absolute;
  content: "";
  left: -17px;
  top: 28%;
  bottom: 28%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #7ae9ee;
  box-shadow: 0 0 8px #78dded72;
}
.sidebar-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 19px 0 0;
  border-color: var(--orbit-line);
  line-height: 1.4;
}
.sidebar-bottom .avatar {
  width: 30px;
  height: 30px;
  flex: none;
  background: #1f3d4e;
  border: 1px solid #355c6c;
  color: #a2eced;
}
.account-info { min-width: 0; }
.account-info strong, .account-info small { display: block; }
.account-info strong { color: #e0e9f6; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-info small { color: var(--orbit-muted); font-size: 10px; margin-top: 4px; }
#logout { flex: none; margin-left: auto; padding: 5px 6px; color: var(--orbit-muted); border: 0; background: transparent; }
#logout:hover { color: var(--orbit-text); background: var(--orbit-raised); }
.topbar {
  height: 66px;
  background: #0b1321;
  border-color: #202c3e;
  padding: 0 clamp(20px, 2.25vw, 42px);
}
.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--orbit-muted); }
.breadcrumb span { color: #788ba4; }
.breadcrumb strong { color: #dce7f5; margin: 0; }
.session-meta, .session-date { display: flex; align-items: center; gap: 10px; }
.session-meta > .badge { font-size: 11px; border-radius: 6px; }
.session-meta { gap: 15px; }
.session-date { color: #9aafc7; gap: 6px; }
.session-date .icon { width: 15px; height: 15px; }
.header-date { color: #b0c0d5; margin: 0; }
.content { padding: clamp(22px, 2.25vw, 37px); max-width: 1600px; }

.auth { grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); }
.auth-intro {
  padding: clamp(27px, 4.5vw, 70px);
  position: relative;
  justify-content: flex-start;
  background: radial-gradient(ellipse at 52% 45%, #182f4a, #101d30 50%, #0c1524 85%);
  border-right: 1px solid var(--orbit-line);
}
.auth-art { margin: auto 0; padding: 24px 0; }
.auth-art img {
  width: 100%;
  max-width: 660px;
  height: auto;
  display: block;
  margin: 0 auto;
  mask-image: radial-gradient(ellipse at 54% 50%, #000 48%, transparent 74%);
}
.auth-intro h1 { font-size: clamp(26px, 2.5vw, 38px); margin: 0; color: #e2f3ff; }
.auth-intro h1::before { content: ""; display: block; width: 36px; height: 2px; background: var(--orbit-accent); margin-bottom: 15px; }
.auth-side { background: var(--orbit-bg); }
.auth-form { max-width: 380px; }
.auth-form h2 { color: var(--orbit-text); }
.auth-form > p { color: var(--orbit-muted); }

@media (min-width: 721px) and (max-width: 1000px) {
  .shell { --rail: 160px; }
  .sidebar { padding-left: 11px; padding-right: 11px; }
  .brand { gap: 7px; padding-left: 0; }
  .brand-icon { width: 33px; height: 33px; }
  .brand strong { font-size: 18px; }
  .brand small { font-size: 8px; }
  .nav button.active::before { left: -12px; }
  .account-info strong { font-size: 11px; }
}
@media (max-width: 720px) {
  .shell { display: block; }
  .sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    width: 100%;
    padding: 13px 12px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--orbit-line);
    overflow: visible;
  }
  .brand { padding: 0 2px; gap: 8px; }
  .brand strong { font-size: 18px; }
  .brand-icon { border-radius: 8px; width: 31px; height: 31px; font-size: 21px; }
  .sidebar-bottom { grid-area: 1 / 2; align-self: center; border: 0; padding: 0; margin: 0; }
  .sidebar-bottom .avatar, .account-info small { display: none; }
  .account-info { max-width: 22vw; }
  .nav { grid-area: 2 / 1 / auto / -1; gap: 3px; }
  .nav button { padding: 7px 0; border-radius: 7px; gap: 4px; }
  .nav button.active::before { display: none; }
  .nav .icon { width: 16px; height: 16px; }
  .topbar { height: auto; min-height: 43px; padding: 8px 14px; gap: 6px 10px; }
  .breadcrumb { gap: 5px; font-size: 11px; }
  .session-meta { gap: 6px; flex-wrap: wrap; }
  .session-meta > .badge { font-size: 10px; padding: 3px 6px; }
  .header-date { font-size: 10px; }
  .session-date .icon { display: none; }
  .content { padding: 21px 13px; }
  .auth-intro { padding: 20px 24px; border-right: 0; border-bottom: 1px solid var(--orbit-line); }
  .auth-side { padding: 40px 24px; }
}
@media (max-height: 615px) and (min-width: 721px) {
  .nav-title { margin-top: 22px; }
  .sidebar-bottom { margin-top: 18px; }
}
