/* Обсерватория: сине-чёрное стекло, контурный свет и векторные голограммы.
   Все орнаменты декоративны; reduced motion задаётся последним в motion.css. */
:root {
  --bg: #090d0d;
  --panel-glass: #141f1ed9;
  --panel-raised-glass: #223130ee;
  --border-soft: #e6cd9c29;
  --accent: #e0c184;
  --violet: #b09bff;
  --radius: 16px;
  --shadow-panel: inset 0 1px 0 #f0e1c31a, inset 0 0 25px #3b56540a,
    0 8px 30px #080d0d66, 0 0 1px 1px #b1945b14;
  --surface-card: linear-gradient(120deg, #2534334d, #24323126);
}
body { background-image: radial-gradient(ellipse at 65% 0%, #293d3b50, transparent 65%); }
.ambient-backdrop__planet, .ambient-backdrop__orbit { display: none; }
.ambient-backdrop__nebula { opacity: .24; }
.ambient-backdrop__aurora { opacity: .2; }
.ambient-backdrop__grid { opacity: .3; background-size: 64px 64px; }
.ambient-circuits { position: absolute; inset: 0; width: 100%; height: 100%; stroke: #977d4a25; stroke-width: 1; }
.ambient-circuits__signal { stroke: #e1c38655; stroke-dasharray: 3 97; animation: cs-transmit 22s linear infinite; }
.star-field { opacity: .45; }
.sidebar {
  background: linear-gradient(165deg, #172020f0, #0d1514f5 60%, #1a2222eb);
  border-right-color: #debd7c26;
  box-shadow: 1px 0 15px #b98f3c18;
}
.brand { padding-bottom: 17px; }
.brand__mark { border-radius: 12px; color: #e3c78e; background: #24393849; box-shadow: 0 0 22px #d4a85130; }
.brand__name { font-weight: 650; }
.nav-group__title { color: #a5b2ae; font-size: 10px; }
.nav-link { border-radius: 9px; }
.nav-link[aria-current="page"] {
  background: linear-gradient(100deg, #9973265c, #b28f482b 76%, #bb9d6215);
  border-color: #dcb97252;
  box-shadow: inset 0 1px #e7cf9e2b, 0 0 22px #ac833226;
}
.nav-link[aria-current="page"]::before { width: 3px; height: 54%; top: 23%; background: #e0c184; }
.nav-link[aria-current="page"] .ui-icon { filter: drop-shadow(0 0 5px #ddbb77); }
.sidebar-summary { position: relative; padding: 12px 8px; border-radius: 12px; background: #2432313d; border: 1px solid #899f9a2e; }
.sidebar-summary .section-art { width: 100%; height: 83px; flex: none; margin: -10px 0 -2px; }
.header { background: #111a19e0; border-bottom-color: #bda4732e; }
.header-action--capture { background: linear-gradient(115deg, #d3b26f, #dcb973); border-color: #e5cb98; }
.panel {
  background: radial-gradient(ellipse at 0 0, #7d663721, transparent 65%), var(--panel-glass);
  border-color: #bea67642;
  backdrop-filter: blur(18px);
}
.panel::before {
  left: 8%; right: 30%; top: -1px;
  background: linear-gradient(90deg, transparent, #dfbf80af, #9987ff80, transparent);
}
.panel::after { background: radial-gradient(360px circle at var(--light-x, 50%) var(--light-y, 0%), #dbb77019, transparent 70%); }
.panel__head { padding-bottom: 10px; border-bottom-color: #bfa97e22; }
.panel__title { font-weight: 600; }
.pulse-panel { border-color: #ceaf7070; box-shadow: var(--shadow-panel), -3px 0 20px #d3a74f10; }
.pulse-panel::before { background: linear-gradient(90deg, transparent, #e2c58c, #e0c182, transparent); }
.schedule-panel { border-color: #987fea4d; }
.schedule-panel::before { background: linear-gradient(90deg, transparent, #b494ff, transparent); }
.waiting-panel { border-color: #cab58b55; }
.card, .entity-row { border-color: #ebd7af19; }
.schedule__body { background: linear-gradient(100deg, #3347466e, #222f2e32); border-color: #c2ad831e; }
.btn--primary { box-shadow: 0 0 16px #dab56b1f, inset 0 1px #efeadf30; }
.dialog, .drawer, .demo-panel { border-color: #d6bd8a66; box-shadow: inset 0 1px #f1e3c733, 0 24px 90px #0a1211c0, 0 0 38px #d3ac5d18; }

/* Сфера целиком построена в SVG, включая линии, платформу и шкалы. */
.orbit-overview {
  grid-template-columns: minmax(265px, .95fr) minmax(370px, 1.4fr) 162px;
  gap: 0;
  min-height: 295px;
  padding-right: 18px;
  overflow: hidden;
  border-color: #c3a87173;
  border-radius: 20px;
  background: radial-gradient(ellipse at 52% 80%, #314c4a55, transparent 65%),
    linear-gradient(115deg, #1d2a29e0, #111a19e8 55%, #1c1838b3);
  box-shadow: inset 0 1px #e9d3a63d, inset 0 -1px #bea67647, 0 0 32px #b1893913, 0 12px 35px #0a131259;
}
.orbit-overview::before {
  content: ""; position: absolute; top: 0; left: 0; width: 45%; height: 1px;
  background: linear-gradient(90deg, transparent, #e6ce9d, transparent);
  animation: cs-rim-travel 12s ease-in-out infinite alternate;
  pointer-events: none;
}
.orbit-overview__copy { padding: 20px; position: relative; z-index: 1; }
.orbit-overview h2 { font-size: clamp(23px, 2.2vw, 32px); font-weight: 560; margin: 12px 0 8px; letter-spacing: -.045em; }
.orbit-overview__copy > p { font-size: 13px; color: #b6c0be; line-height: 1.6; max-width: 290px; }
.eyebrow { font-size: 9px; letter-spacing: .18em; color: #ddc697; }
.overview-stats { margin: 18px 0 14px; gap: 8px; }
.overview-stat {
  grid-template-columns: 16px 1fr;
  padding: 10px 9px 4px;
  gap: 5px;
  border-radius: 10px;
  border-color: #c8b08145;
  background: linear-gradient(155deg, #3146455c, #151f1f42);
  overflow: hidden;
}
.overview-stat--violet { border-color: #a08aff4d; background: linear-gradient(155deg, #4e3c7b40, #1c292847); }
.overview-stat--mint { border-color: #62d7ce40; background: linear-gradient(155deg, #3348464d, #1a272642); }
.overview-stat .ui-icon { width: 16px; height: 16px; }
.overview-stat strong { font-size: 26px; font-weight: 550; text-shadow: 0 0 25px #e7ce9d26; }
.overview-stat > span { font-size: 10px; white-space: normal; }
.overview-stat .signal-trace { grid-column: 1 / -1; width: 100%; height: 23px; opacity: .8; }
.orbit-overview .text-link { font-size: 12px; gap: 8px; }
.orbit-scene { max-width: 520px; min-height: 295px; aspect-ratio: 520 / 310; margin: 0; }
.context-hologram { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.orbit-scene__caption { position: absolute; left: 50%; top: 9px; translate: -50% 0; display: flex; align-items: center; gap: 7px; color: #c2b08b; font: 8px var(--mono); letter-spacing: .13em; white-space: nowrap; }
.orbit-scene__caption .signal-dot { width: 3px; height: 3px; }
.holo-floor { stroke: #b1976233; stroke-width: .6; }
.holo-platform { stroke: #e5ca95a1; stroke-dasharray: 160 28; stroke-width: 1.2; filter: drop-shadow(0 0 5px #d6ad5b); }
.holo-circuits { stroke: #6e898260; stroke-width: 1; }
.holo-transmission { stroke: #e5cc99; stroke-width: 1.6; stroke-dasharray: 9 91; animation: cs-transmit 8s linear infinite; filter: drop-shadow(0 0 4px #ddbb76); }
.holo-guide { stroke: #bda77c44; stroke-width: .7; }
.holo-ticks { stroke: #cab68d88; stroke-width: .8; }
.holo-ticks path:nth-child(5n) { stroke: #eddab5; }
.holo-rotor { color: #e4c992; stroke: currentColor; stroke-width: 1.5; transform-origin: 0 0; animation: cs-orbit 40s linear infinite; }
.holo-rotor--reverse { color: #9c91fa; animation-direction: reverse; animation-duration: 29s; stroke-width: 2; }
.holo-globe-outline { stroke: #e3c68da6; stroke-width: 1.2; filter: drop-shadow(0 0 10px #d4a95266); }
.holo-meridians { stroke: #ccb17a4f; stroke-width: .7; }
.holo-longitude { transform-origin: 0 0; animation: cs-longitude 12s linear infinite; }
.holo-constellation { stroke: #dec49088; stroke-width: .6; }
.holo-constellation circle { fill: #f0eadf; stroke: none; filter: drop-shadow(0 0 3px #d8b163); animation: cs-breathe 4s ease-in-out infinite; }
.holo-satellites { transform-origin: 260px 148px; fill: #ebd6ad; }
.holo-fiducials { stroke: #ceb07366; stroke-width: .8; }
.orbit-core { width: 72px; height: 72px; top: 47.7%; border-radius: 50%; background: radial-gradient(circle, #1b2a29e6, #172322c4 65%, transparent 72%); }
.orbit-core::before { display: none; }
.orbit-core__avatar { background: #2b3d3cad; border-color: #e1c38688; box-shadow: 0 0 16px #dbb7703d; }
.orbit-core strong { display: flex; align-items: center; font-size: 11px; white-space: nowrap; }
.orbit-core__caption { font-size: 8px; color: #d6c9b0; }
.orbit-node {
  z-index: 1;
  border-radius: 10px;
  gap: 6px;
  padding: 6px;
  background: linear-gradient(115deg, #1f2f2eee, #1a2625d9);
  border-color: #ccaf746b;
  box-shadow: inset 0 1px #ebd7b01f, 0 0 16px #ba954b20;
}
.orbit-node__icon { width: 24px; height: 24px; }
.orbit-node strong { font-size: 10px; }
.orbit-node small { font-size: 9px; color: #a9b8b4; }
.orbit-node--projects { left: 0; top: 16%; border-color: #a487ed6b; }
.orbit-node--tasks { right: 0; top: 16%; }
.orbit-node--ideas { left: 0; bottom: 11%; border-color: #6de2c869; }
.orbit-node--waiting { right: 0; bottom: 11%; border-color: #a487ed6b; }
.orbit-node::after { content: ""; position: absolute; width: 3px; height: 3px; background: #eddab5; border-radius: 50%; right: 8px; bottom: -2px; box-shadow: 0 0 7px #ddbc79; }

/* Основное кольцо показывает реальные количества, внутреннее служит орнаментом. */
.day-balance { align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 0 16px 15px; margin: 18px 0; border-left: 1px solid #c1ae872e; }
.day-balance__title { font-size: 11px; color: #e4dac7; }
.day-balance__dial { position: relative; width: 140px; height: 140px; margin: 8px 0; }
.day-balance__dial svg { width: 100%; height: 100%; }
.day-balance__dial > div { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.day-balance__dial strong { font-size: 30px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.3; }
.day-balance__dial span { font-size: 9px; color: #acb9b6; }
.day-balance__ticks { stroke: #7b928c73; stroke-width: 3; }
.day-balance__track { stroke: #2e3a39; stroke-width: 8; }
.day-balance__work { stroke: #d9b469; stroke-width: 8; filter: drop-shadow(0 0 3px #d4a95466); }
.day-balance__personal { stroke: #a68aff; stroke-width: 8; transition: stroke-dasharray 700ms var(--ease); }
.day-balance__inner { stroke: #bba77e35; stroke-width: .8; transform-origin: 80px 80px; animation: cs-orbit 55s linear infinite; }
.day-balance__legend { width: 100%; display: grid; gap: 8px; font-size: 11px; }
.day-balance__legend > span { display: flex; align-items: center; gap: 6px; color: #b6c2bf; }
.day-balance__legend b { margin-left: auto; color: #f2eee5; font-weight: 500; }
.legend-dot { width: 5px; height: 5px; border-radius: 50%; background: #d9b469; box-shadow: 0 0 6px #d9b46966; }
.legend-dot--personal { background: #a68aff; box-shadow: 0 0 6px #a68aff66; }
.signal-trace { color: inherit; overflow: visible; }
.signal-trace__grid { stroke: currentColor; opacity: .1; stroke-width: .5; }
.signal-trace__base { stroke: currentColor; opacity: .3; stroke-width: 1.2; }
.signal-trace__flow { stroke: currentColor; stroke-width: 1.4; stroke-dasharray: 22 78; filter: drop-shadow(0 0 2px currentColor); animation: cs-transmit 6s linear var(--signal-delay, 0s) infinite; }
.pulse-signal { height: 24px; margin: -5px 0 9px; display: flex; align-items: center; gap: 12px; color: #d7ba7f; }
.pulse-signal .signal-trace { width: 100%; height: 28px; }
.pulse-signal > span { font: 8px var(--mono); letter-spacing: .2em; opacity: .7; }

/* Иллюстрации в заголовках разделов остаются вне зон нажатия. */
.page-head:has(> .section-art) { position: relative; min-height: 100px; padding: 14px 240px 14px 0; border-bottom: 1px solid #758a852e; }
.page-head > .section-art { position: absolute; right: 0; top: -3px; width: 220px; height: 106px; }
.section-art { color: #cfb786; stroke: currentColor; stroke-width: 1.25; pointer-events: none; filter: drop-shadow(0 0 6px #c89d4830); }
.section-art--personal, .section-art--ideas { color: #b3a1fa; }
.section-art__frame { stroke: #7e999253; stroke-width: .7; }
.section-art__detail { stroke: #7c98916b; stroke-width: 1; }
.section-art__accent { stroke: #e8d2a5; stroke-width: 2; filter: drop-shadow(0 0 4px #dfbf7e80); }
.section-art__float { animation: cs-levitate 7s ease-in-out infinite alternate; }
.section-art__halo { stroke: #d5bd8d7a; stroke-width: .8; }
.section-art__links { stroke-dasharray: 5 4; animation: cs-flow 9s linear infinite; opacity: .7; }
.section-art__node { fill: #1f2e2d; stroke: #d9c7a3; animation: cs-breathe 5s ease-in-out infinite; }
.context-preview__map { height: 170px; background: radial-gradient(ellipse, #79602f3b, #121a1a00 75%); border: 1px solid #b59b682b; border-radius: 12px; }
.context-preview__map::after { content: ""; position: absolute; width: 100%; height: 1px; left: 0; top: 10%; background: linear-gradient(90deg, transparent, #ddbc7970, transparent); box-shadow: 0 0 14px #ddbc7940; animation: cs-map-sweep 9s ease-in-out infinite; pointer-events: none; }
.context-preview__node { fill: #dec085; }
.graph-wrap { border-color: #bfa77866; box-shadow: inset 0 0 80px #0e141470, 0 0 30px #caa14f13; background: radial-gradient(ellipse at 50% 50%, #293b3a70, transparent 65%), #0d1413dd; }
.graph-orbits { stroke: #78958e3b; }
.graph-hub { stroke: #d6bf92; filter: drop-shadow(0 0 8px #dbb66d55); }
.graph-perimeter { stroke: #d5b77a52; stroke-width: 1; }
.graph-sweep { stroke: #dbbc7f24; stroke-width: 1; transform-origin: 0 0; animation: cs-orbit 50s linear infinite; }
.graph-node__aura { fill: none; stroke: currentColor; stroke-dasharray: 12 7; opacity: 0; transition: opacity 200ms; }
.graph-node:hover .graph-node__aura, .graph-node:focus-visible .graph-node__aura,
.graph-node--selected .graph-node__aura { opacity: .7; transform-origin: 0 0; animation: cs-orbit 18s linear infinite; }

@keyframes cs-longitude { 0% { transform: scaleX(1); } 50% { transform: scaleX(-1); } 100% { transform: scaleX(1); } }
@keyframes cs-levitate { from { transform: translateY(-3px); } to { transform: translateY(3px); } }
@keyframes cs-rim-travel { from { transform: translateX(-50%); opacity: .4; } to { transform: translateX(170%); opacity: 1; } }
@keyframes cs-map-sweep { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: .65; } 80% { opacity: .65; } 100% { transform: translateY(125px); opacity: 0; } }
@media (hover: hover) {
  .context-hologram { transition: transform 650ms var(--ease); }
  .orbit-overview:hover .context-hologram { transform: perspective(800px) rotateX(var(--holo-x, 0deg)) rotateY(var(--holo-y, 0deg)); }
  .panel:hover { border-color: #d6ba818c; box-shadow: var(--shadow-panel), 0 0 22px #d7b06116; }
  .overview-stat:hover { border-color: currentColor; box-shadow: 0 0 24px #d9b46926; }
  .orbit-node:hover { border-color: #eedebd; box-shadow: 0 0 25px #dbb8713d; }
  .orbit-core:hover { box-shadow: 0 0 20px #d8b16240; }
  .page-head:hover .section-art__accent { stroke: #deffff; }
}
@container (max-width: 1050px) {
  .orbit-overview { grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.15fr); padding-right: 12px; }
  .day-balance { grid-column: 1 / -1; flex-direction: row; gap: 18px; border-left: 0; border-top: 1px solid #c1ae872e; padding: 0 10px; margin: 0 14px 6px; justify-content: flex-start; }
  .day-balance__dial { width: 62px; height: 62px; margin: 0; }
  .day-balance__dial strong { font-size: 17px; }
  .day-balance__dial span { display: none; }
  .day-balance__legend { display: flex; gap: 22px; width: auto; }
  .day-balance__legend b { margin-left: 4px; }
  .orbit-overview h2 { font-size: 26px; }
  .orbit-overview__copy { padding: 16px; }
}
@container (max-width: 700px) {
  .orbit-overview { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .orbit-overview__copy { padding: 18px 18px 0; }
  .orbit-overview__copy > p { max-width: none; }
  .overview-stats { margin-top: 14px; }
  .orbit-scene { width: calc(100% - 24px); max-width: 480px; }
  .page-head:has(> .section-art) { padding-right: 110px; min-height: 90px; }
  .page-head > .section-art { width: 104px; top: 12px; height: 68px; }
  .day-balance { gap: 10px; margin: 0 12px 8px; padding: 4px 0; justify-content: space-between; }
  .day-balance__legend { gap: 10px; font-size: 10px; }
  .day-balance__title { font-size: 10px; max-width: 66px; }
  .day-balance__dial { flex: none; }
}
@container (max-width: 360px) {
  .orbit-scene { display: block; padding: 0; aspect-ratio: 520 / 450; min-height: 278px; }
  .orbit-core { position: absolute; inset: 47.7% auto auto 50%; transform: translate(-50%, -50%); margin: 0; }
  .orbit-node { position: absolute; max-width: 48%; padding: 6px 5px; }
  .orbit-node > span:last-child { overflow-wrap: normal; }
  .orbit-node--projects { left: 0; top: 10%; }
  .orbit-node--tasks { right: 0; top: 10%; }
  .orbit-node--ideas { left: 0; bottom: 9%; }
  .orbit-node--waiting { right: 0; bottom: 9%; }
}
@media (max-width: 860px) {
  .context-hologram { filter: none; }
  .sidebar-summary .section-art { display: none; }
}
@media (pointer: coarse) {
  .orbit-node { min-height: 44px; }
  .holo-constellation circle, .holo-platform, .holo-transmission { filter: none; }
}
@supports not (backdrop-filter: blur(4px)) {
  .panel, .orbit-overview, .orbit-node { background: var(--panel-solid); }
}

html[data-motion="reduced"] .context-hologram { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .context-hologram { transform: none !important; }
}
