:root {
    color-scheme: dark;
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    color: #e8f4ff;
    background: #020611;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    --bg: #020611;
    --panel: rgba(5, 13, 27, 0.72);
    --panel-deep: rgba(2, 8, 19, 0.86);
    --line: rgba(87, 190, 226, 0.16);
    --line-bright: rgba(65, 217, 255, 0.38);
    --cyan: #61e7ff;
    --blue: #47a8ff;
    --violet: #827dbd;
    --green: #55edb7;
    --red: #ff6c8c;
    --amber: #ffcd75;
    --muted: #8299b2;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    position: relative;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(ellipse at 50% 39%, rgba(12, 69, 104, 0.14), transparent 39%),
        radial-gradient(ellipse at 17% 72%, rgba(8, 39, 67, 0.1), transparent 34%),
        linear-gradient(180deg, #02040c 0%, #040b18 53%, #01030a 100%);
    color: #e8f4ff;
}

body::before,
body::after {
    position: fixed;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    content: "";
}

body::before {
    opacity: 0.34;
    background-image:
        radial-gradient(1px 1px at 14% 20%, rgba(176, 225, 255, 0.74) 99%, transparent),
        radial-gradient(1px 1px at 76% 10%, rgba(179, 207, 255, 0.62) 99%, transparent),
        radial-gradient(1px 1px at 39% 44%, rgba(113, 207, 239, 0.58) 99%, transparent),
        radial-gradient(1px 1px at 88% 73%, rgba(169, 174, 218, 0.5) 99%, transparent),
        radial-gradient(1px 1px at 24% 84%, rgba(172, 215, 245, 0.58) 99%, transparent),
        radial-gradient(1px 1px at 57% 92%, rgba(139, 200, 235, 0.55) 99%, transparent),
        radial-gradient(2px 2px at 8% 52%, rgba(100, 205, 235, 0.6) 99%, transparent),
        radial-gradient(2px 2px at 94% 39%, rgba(187, 157, 223, 0.46) 99%, transparent);
    background-size: 271px 231px, 337px 283px, 419px 347px, 311px 389px, 487px 371px, 397px 467px, 613px 457px, 709px 563px;
}

body::after {
    opacity: 0.13;
    background: repeating-linear-gradient(
        0deg,
        transparent 0,
        transparent 3px,
        rgba(82, 190, 255, 0.035) 4px,
        transparent 5px
    );
    mix-blend-mode: screen;
}

button,
select {
    font: inherit;
}

button,
select,
a {
    -webkit-tap-highlight-color: transparent;
}

.space-backdrop {
    position: fixed;
    z-index: 0;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(1px 1px at 8% 17%, rgba(196, 232, 255, 0.72) 99%, transparent),
        radial-gradient(1px 1px at 19% 73%, rgba(118, 205, 235, 0.62) 99%, transparent),
        radial-gradient(1px 1px at 29% 26%, rgba(175, 215, 255, 0.66) 99%, transparent),
        radial-gradient(1px 1px at 42% 14%, rgba(181, 229, 255, 0.72) 99%, transparent),
        radial-gradient(1px 1px at 56% 78%, rgba(122, 193, 231, 0.58) 99%, transparent),
        radial-gradient(1px 1px at 68% 21%, rgba(177, 220, 247, 0.68) 99%, transparent),
        radial-gradient(1px 1px at 76% 66%, rgba(165, 185, 231, 0.56) 99%, transparent),
        radial-gradient(1px 1px at 91% 35%, rgba(191, 224, 255, 0.68) 99%, transparent),
        radial-gradient(1px 1px at 11% 89%, rgba(153, 213, 244, 0.55) 99%, transparent),
        radial-gradient(1px 1px at 36% 91%, rgba(181, 225, 255, 0.59) 99%, transparent),
        radial-gradient(2px 2px at 83% 12%, rgba(213, 237, 255, 0.72) 99%, transparent),
        radial-gradient(ellipse at 50% 39%, rgba(20, 91, 128, 0.4), transparent 34%),
        radial-gradient(ellipse at 18% 38%, rgba(12, 58, 91, 0.28), transparent 31%),
        radial-gradient(ellipse at 80% 34%, rgba(72, 54, 132, 0.24), transparent 34%),
        radial-gradient(ellipse at 38% 58%, rgba(18, 49, 103, 0.25), transparent 36%),
        radial-gradient(ellipse at 69% 54%, rgba(74, 47, 115, 0.2), transparent 33%),
        radial-gradient(ellipse at 50% 50%, transparent 42%, rgba(0, 2, 9, 0.58) 100%);
    background-repeat: no-repeat;
}

.space-backdrop::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(2, 5, 14, 0.5), transparent 24%, transparent 66%, rgba(2, 5, 14, 0.74)),
        radial-gradient(ellipse at center, transparent 36%, rgba(1, 4, 12, 0.64) 100%);
    content: "";
}

.space-backdrop::after {
    position: absolute;
    right: -15%;
    bottom: -9%;
    left: -15%;
    height: 43%;
    transform: perspective(500px) rotateX(68deg);
    transform-origin: center bottom;
    border-top: 1px solid rgba(61, 206, 255, 0.2);
    background:
        linear-gradient(180deg, rgba(10, 80, 119, 0.12), transparent 22%),
        repeating-linear-gradient(90deg, transparent 0 69px, rgba(49, 161, 205, 0.14) 70px, transparent 72px),
        repeating-linear-gradient(0deg, transparent 0 30px, rgba(49, 161, 205, 0.12) 31px, transparent 33px);
    box-shadow: 0 -12px 66px rgba(27, 115, 163, 0.13);
    mask-image: linear-gradient(0deg, #000 7%, transparent 93%);
    content: "";
}

.nebula-photograph {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.52) saturate(1.18) contrast(1.08);
    opacity: 0.82;
    mix-blend-mode: screen;
}

.nebula-layer {
    display: none;
}

.cockpit-frame {
    position: fixed;
    z-index: 0;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    opacity: 1;
}

.background-planet {
    position: fixed;
    z-index: 0;
    top: 0.6%;
    left: 18%;
    width: 128px;
    height: 128px;
    overflow: visible;
    filter: drop-shadow(0 0 22px rgba(58, 158, 214, 0.3));
    pointer-events: none;
}

.app-shell {
    position: relative;
    z-index: 1;
    width: min(1680px, calc(100% - 56px));
    margin: 0 auto;
}

.topbar {
    position: relative;
    display: grid;
    min-height: 91px;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid rgba(81, 192, 230, 0.22);
}

.brand {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 11px;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(91, 222, 255, 0.68);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(38, 133, 186, 0.28), rgba(11, 25, 45, 0.9));
    box-shadow: inset 0 0 18px rgba(48, 198, 250, 0.18), 0 0 20px rgba(42, 194, 242, 0.18);
    color: var(--cyan);
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
}

.brand-mark:hover,
.brand-mark:focus-visible {
    border-color: rgba(124, 234, 255, 0.95);
    box-shadow: inset 0 0 22px rgba(48, 198, 250, 0.28), 0 0 24px rgba(42, 194, 242, 0.28);
    outline: none;
}

.brand-copy {
    display: grid;
    gap: 3px;
}

.brand-copy strong {
    font-size: 16px;
    letter-spacing: 0.14em;
}

.brand-copy small {
    color: #7c9eb9;
    direction: ltr;
    font: 8px/1.5 "Segoe UI", sans-serif;
    letter-spacing: 0.15em;
}

.title-lockup {
    padding: 11px 38px 9px;
    border: 1px solid rgba(78, 201, 241, 0.5);
    border-top: 0;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(7, 32, 54, 0.52), rgba(6, 15, 29, 0.2));
    clip-path: polygon(0 0, 100% 0, 93% 100%, 7% 100%);
    box-shadow: 0 8px 36px rgba(16, 130, 187, 0.24), inset 0 -1px 14px rgba(54, 212, 255, 0.15);
    text-align: center;
}

.eyebrow {
    margin: 0 0 6px;
    color: #70dcf5;
    direction: ltr;
    font: 700 9px/1.4 "Segoe UI", sans-serif;
    letter-spacing: 0.18em;
    text-align: inherit;
}

.title-lockup h1 {
    margin: 0;
    color: #dff8ff;
    direction: ltr;
    font-size: clamp(22px, 2.15vw, 29px);
    font-weight: 750;
    letter-spacing: 0.045em;
    text-shadow: 0 0 22px rgba(54, 209, 255, 0.46);
}

.title-lockup h1 span {
    color: var(--cyan);
}

.title-subtitle {
    margin: 5px 0 0;
    color: #90a9c1;
    font-size: 9px;
}

.topbar-status {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 10px;
    color: #b4cce1;
    font-size: 10px;
}

.topbar-status strong,
.topbar-status small {
    display: block;
}

.topbar-status small {
    margin-top: 4px;
    color: #7993ad;
    direction: ltr;
    font: 9px/1.2 "Segoe UI", sans-serif;
}

.status-dot,
.indicator {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #657b91;
    box-shadow: 0 0 10px rgba(101, 123, 145, 0.24);
}

.status-dot.is-live,
.indicator.is-live {
    background: var(--green);
    box-shadow: 0 0 12px rgba(85, 237, 183, 0.75);
}

.status-dot.is-unknown,
.indicator.is-unknown {
    background: #657b91;
    box-shadow: 0 0 9px rgba(101, 123, 145, 0.3);
}

.status-dot.is-warning,
.indicator.is-warning {
    background: var(--amber);
    box-shadow: 0 0 12px rgba(255, 205, 117, 0.55);
}

.status-dot.is-offline,
.indicator.is-offline {
    background: var(--red);
    box-shadow: 0 0 12px rgba(255, 108, 140, 0.55);
}

.dashboard {
    padding-top: 9px;
}

.hero-strip {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 2px 8px;
}

.hero-strip > div:first-child {
    display: none;
}

.hero-strip h2,
.panel-heading h2,
.chart-heading h2 {
    margin: 0;
    color: #e6f4ff;
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.hero-copy {
    margin: 5px 0 0;
    color: #8299b2;
    font-size: 10px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge,
.state-chip {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    gap: 7px;
    padding: 4px 10px;
    border: 1px solid rgba(102, 194, 224, 0.4);
    border-radius: 0;
    background: rgba(7, 26, 45, 0.47);
    backdrop-filter: blur(8px) saturate(160%);
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    color: #a9c1d5;
    font-size: 9px;
    white-space: nowrap;
}

.badge i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 9px rgba(255, 205, 117, 0.55);
}

.badge b {
    color: #e1eef7;
    font-weight: 650;
}

.badge-danger {
    border-color: rgba(255, 108, 140, 0.35);
    color: #ff9aaf;
}

.badge-danger i {
    background: var(--red);
    box-shadow: 0 0 9px rgba(255, 108, 140, 0.65);
}

.terminal-grid {
    display: grid;
    grid-template-columns: minmax(350px, 1.05fr) minmax(520px, 1.45fr) minmax(300px, 0.9fr);
    align-items: stretch;
    gap: 10px;
    direction: ltr;
}

.terminal-grid > * {
    direction: rtl;
}

.panel {
    position: relative;
    min-width: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.panel::before {
    display: none;
}

.panel-heading {
    display: flex;
    min-height: 69px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 15px 10px;
    border-bottom: 1px solid rgba(101, 163, 197, 0.14);
}

.panel-heading .eyebrow {
    margin-bottom: 4px;
    font-size: 8px;
}

.panel-heading h2 {
    font-size: 14px;
}

.panel-index {
    color: #4d718a;
    direction: ltr;
    font: 8px/1.3 "Segoe UI", sans-serif;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.market-panel,
.telemetry-panel {
    position: relative;
    display: flex;
    isolation: isolate;
    min-height: 620px;
    flex-direction: column;
    padding: clamp(58px, 7.2vh, 68px) 12px;
    border: 1px solid transparent;
    background: none;
    clip-path: none;
    box-shadow: none;
}

.market-panel::after,
.telemetry-panel::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    border: 1px solid transparent;
    background:
        linear-gradient(155deg, rgba(5, 15, 29, 0.66), rgba(2, 8, 19, 0.61)) padding-box,
        linear-gradient(135deg, rgba(79, 225, 255, 0.48), rgba(72, 131, 207, 0.24) 38%, rgba(151, 105, 190, 0.28) 72%, rgba(77, 220, 255, 0.4)) border-box;
    box-shadow: inset 0 0 0 5px rgba(154, 231, 255, 0.08), inset 0 0 38px rgba(20, 114, 160, 0.1), 0 0 24px rgba(18, 110, 154, 0.09);
    clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 100%);
    content: "";
    pointer-events: none;
}

.market-panel > *,
.telemetry-panel > * {
    position: relative;
    z-index: 1;
}

.telemetry-panel::after {
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
}

.market-panel::before,
.telemetry-panel::before {
    position: absolute;
    z-index: 4;
    top: 3%;
    left: 8%;
    width: 22%;
    height: 2px;
    transform: rotate(8deg);
    transform-origin: left center;
    background: linear-gradient(90deg, transparent, rgba(157, 243, 255, 0.72), transparent);
    box-shadow: 0 0 10px rgba(67, 220, 255, 0.48);
    content: "";
    pointer-events: none;
}

.telemetry-panel::before {
    right: 8%;
    left: auto;
    transform: rotate(-8deg);
    transform-origin: right center;
}

.market-panel .panel-heading,
.telemetry-panel .panel-heading {
    min-height: 53px;
    padding: 8px 10px;
    border-bottom-color: rgba(67, 191, 232, 0.24);
    background: linear-gradient(90deg, rgba(37, 166, 211, 0.1), transparent 78%);
}

.market-table-head {
    display: grid;
    grid-template-columns: minmax(80px, 0.9fr) minmax(93px, 1fr) minmax(61px, 0.7fr) 64px;
    gap: 6px;
    padding: 10px 12px 8px;
    color: #64839d;
    font-size: 8px;
}

.market-table-head span:nth-child(2),
.market-table-head span:nth-child(3) {
    text-align: left;
}

.market-table-head span:last-child {
    text-align: center;
}

.market-list {
    display: grid;
    gap: 2px;
    padding: 0 7px;
}

.market-row {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 37px;
    grid-template-columns: minmax(80px, 0.9fr) minmax(93px, 1fr) minmax(61px, 0.7fr) 64px;
    align-items: center;
    gap: 6px;
    padding: 5px 6px;
    border: 1px solid transparent;
    border-radius: 0;
    background: rgba(4, 20, 36, 0.32);
    backdrop-filter: blur(5px) saturate(140%);
    clip-path: polygon(0 4px, 100% 0, 100% calc(100% - 4px), 0 100%);
    color: inherit;
    cursor: pointer;
    text-align: right;
    transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.market-row:hover,
.market-row.is-selected {
    border-color: rgba(70, 207, 244, 0.38);
    background: linear-gradient(90deg, rgba(29, 110, 150, 0.13), rgba(12, 31, 51, 0.84));
}

.market-row.is-selected {
    box-shadow: inset -2px 0 var(--cyan);
}

.asset-identity {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.asset-icon {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    border: 1px solid rgba(109, 178, 215, 0.3);
    border-radius: 50%;
    background: rgba(20, 45, 68, 0.8);
    color: #d8f4ff;
    font-size: 14px;
}

.asset-btc { color: #ffbd69; }
.asset-eth { color: #b7c8ff; }
.asset-sol { color: #a78aff; }
.asset-xrp { color: #d7efff; }
.asset-bnb { color: #ffd35f; }

.asset-names,
.asset-price {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.asset-names strong,
.asset-price strong {
    overflow: hidden;
    color: #e4f2fb;
    font-size: 10px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asset-names small,
.asset-price small {
    overflow: hidden;
    color: #69839a;
    font-size: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asset-price {
    direction: ltr;
    text-align: left;
}

.asset-price strong {
    font: 600 10px/1.2 "Segoe UI", sans-serif;
}

.asset-price small {
    direction: rtl;
    font-size: 7px;
}

.asset-change {
    direction: ltr;
    font: 600 9px/1.2 "Segoe UI", sans-serif;
    text-align: left;
    white-space: nowrap;
}

.asset-change.is-positive { color: var(--green); }
.asset-change.is-negative { color: var(--red); }
.asset-change.is-muted { color: #70869a; }

.asset-sparkline {
    width: 61px;
    height: 26px;
    justify-self: center;
    overflow: visible;
}

.loading-state {
    display: grid;
    min-height: 68px;
    place-items: center;
    padding: 12px;
    color: #7893ab;
    font-size: 10px;
    text-align: center;
}

.market-foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 4px 10px 0;
    padding: 8px 0 7px;
    border-top: 1px solid rgba(101, 163, 197, 0.15);
}

.market-foot > div,
.feed-provenance {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.metric-label {
    display: block;
    color: #7390a8;
    font-size: 8px;
}

.market-foot strong,
.feed-provenance strong {
    overflow: hidden;
    color: #cde0ed;
    font: 600 9px/1.4 "Segoe UI", Tahoma, sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-note {
    margin: 0;
    padding: 4px 10px 6px;
    color: #607890;
    font-size: 8px;
    line-height: 1.8;
}

.council-panel {
    min-height: 590px;
    background:
        radial-gradient(ellipse at 50% 53%, rgba(25, 137, 187, 0.36), transparent 55%),
        radial-gradient(ellipse at 77% 41%, rgba(114, 65, 160, 0.17), transparent 46%);
}

.asset-picker {
    display: inline-flex;
    min-height: 31px;
    align-items: center;
    gap: 9px;
    padding: 0 9px;
    border: 1px solid rgba(90, 205, 239, 0.5);
    border-radius: 0;
    background: rgba(3, 18, 34, 0.48);
    backdrop-filter: blur(7px) saturate(170%);
    clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
    color: #87a5bd;
    font-size: 8px;
}

.asset-picker select {
    min-width: 93px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #e2f5ff;
    cursor: pointer;
    direction: ltr;
    font-size: 9px;
}

.asset-picker option {
    background: #0a1627;
    color: #e2f5ff;
}

.council-meta {
    display: flex;
    min-height: 36px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 13px;
    padding: 5px 10px;
    color: #7692aa;
    font-size: 8px;
}

.state-chip {
    min-height: 22px;
    padding: 3px 8px;
    font-size: 8px;
}

.state-chip.is-live {
    border-color: rgba(81, 237, 184, 0.33);
    background: rgba(24, 123, 91, 0.12);
    color: #72edc2;
}

.state-chip.is-warning {
    border-color: rgba(255, 204, 117, 0.36);
    background: rgba(136, 91, 28, 0.15);
    color: #ffd080;
}

.state-chip.is-offline {
    border-color: rgba(255, 108, 140, 0.34);
    background: rgba(128, 35, 61, 0.16);
    color: #ff9bae;
}

.state-chip.is-unknown {
    border-color: rgba(120, 151, 177, 0.24);
    color: #8ca4b9;
}

.council-stage {
    position: relative;
    min-height: 444px;
    margin: 0 8px;
    overflow: hidden;
    isolation: isolate;
}

.council-stage::after {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: min(94%, 610px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%) rotate(-12deg);
    border-radius: 50%;
    background: repeating-conic-gradient(
        from 0deg,
        rgba(80, 216, 255, 0.65) 0deg 0.35deg,
        transparent 0.5deg 3.8deg,
        rgba(145, 128, 205, 0.28) 4deg 4.25deg,
        transparent 4.4deg 7.5deg
    );
    mask: radial-gradient(circle, transparent 62%, #000 63% 65%, transparent 66%);
    opacity: 0.68;
    content: "";
}

.council-stage::before {
    position: absolute;
    z-index: -2;
    top: 50%;
    left: 50%;
    width: 78%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(67, 202, 239, 0.42) 0, rgba(24, 126, 201, 0.3) 36%, rgba(69, 75, 171, 0.2) 54%, transparent 73%),
        radial-gradient(ellipse at 70% 34%, rgba(224, 105, 224, 0.16), transparent 54%);
    content: "";
}

.orbit {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(82, 214, 249, 0.44);
    border-radius: 50%;
    pointer-events: none;
}

.orbit::after {
    position: absolute;
    inset: -5px;
    border-radius: inherit;
    background: repeating-conic-gradient(
        from 0deg,
        rgba(126, 226, 255, 0.54) 0deg 0.28deg,
        transparent 0.42deg 8deg
    );
    mask: radial-gradient(circle, transparent 91%, #000 91.4% 92.4%, transparent 92.8%);
    opacity: 0.72;
    content: "";
}

.orbit-one {
    width: min(62%, 450px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%) rotate(-22deg);
    border-color: rgba(91, 225, 255, 0.52);
    box-shadow: 0 0 30px rgba(47, 187, 239, 0.42), inset 0 0 28px rgba(47, 187, 239, 0.22);
}

.orbit-two {
    width: min(84%, 580px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%) rotate(54deg) scaleY(0.52);
    border-color: rgba(139, 151, 246, 0.45);
    box-shadow: 0 0 26px rgba(83, 136, 205, 0.24);
}

.orbit-three {
    width: min(98%, 700px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%) rotate(-42deg) scaleY(0.39);
    border-color: rgba(69, 190, 216, 0.28);
}

.orbit-one::before,
.orbit-two::before,
.orbit-three::before {
    position: absolute;
    top: 12%;
    left: 19%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    content: "";
}

.orbit-two::before {
    top: 50%;
    left: -2px;
    background: var(--violet);
    box-shadow: 0 0 10px var(--violet);
}

.orbit-three::before {
    top: auto;
    bottom: 9%;
    left: 37%;
    width: 4px;
    height: 4px;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
}

.orbit-core {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 50%;
    width: clamp(300px, 54%, 390px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    filter: drop-shadow(0 0 42px rgba(49, 184, 255, 0.42)) drop-shadow(0 0 82px rgba(95, 92, 230, 0.18));
}

.orbit-core::before {
    position: absolute;
    z-index: -1;
    inset: -18%;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 44%, rgba(45, 202, 255, 0.28) 52%, rgba(62, 117, 230, 0.14) 63%, transparent 75%);
    filter: blur(20px);
    content: "";
}

.orbit-core::after {
    position: absolute;
    inset: -5%;
    transform: rotateX(68deg) rotateZ(-18deg);
    border: 1.5px solid rgba(119, 235, 255, 0.62);
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(76, 213, 255, 0.55), inset 0 0 12px rgba(76, 213, 255, 0.24);
    content: "";
}

.earth-globe {
    display: block;
    width: 100%;
    height: 100%;
    transform: none;
}

.earth-globe image {
    filter: brightness(1.14) saturate(1.08) contrast(1.02);
}

.earth-surface-grid {
    opacity: 0.34;
}

.earth-clouds {
    opacity: 0.9;
    mix-blend-mode: screen;
}

.city-lights {
    opacity: 0.58;
    filter: drop-shadow(0 0 2px rgba(255, 190, 113, 0.62)) drop-shadow(0 0 5px rgba(255, 137, 67, 0.32));
}

.city-light-hotspots {
    opacity: 0.3;
    mix-blend-mode: screen;
}

.earth-data-arcs {
    opacity: 0.58;
}

.earth-data-nodes {
    opacity: 0.72;
}

.earth-data-arcs .data-arc {
    stroke-dasharray: 3 10;
    animation: none;
}

.earth-data-arcs .data-arc:nth-child(even) {
    animation-direction: reverse;
    animation-duration: 19s;
}

@keyframes earth-data-flow {
    to {
        stroke-dashoffset: -52;
    }
}

.council-nodes {
    position: absolute;
    z-index: 1;
    inset: 0;
}

.council-node {
    position: absolute;
    display: grid;
    width: clamp(132px, 24%, 168px);
    min-height: 64px;
    align-content: center;
    gap: 5px;
    padding: 7px 9px;
    transform: translate(-50%, -50%);
    isolation: isolate;
    --node-light: rgba(99, 224, 255, 0.82);
    border: 0;
    border: 1px solid rgba(102, 166, 197, 0.28);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(8, 31, 49, 0.94), rgba(4, 15, 29, 0.88));
    box-shadow: 0 8px 24px rgba(2, 9, 18, 0.24);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.council-node::after {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    width: clamp(56px, 7vw, 92px);
    height: 2px;
    transform: translate(-50%, -50%) rotate(var(--node-angle, 0rad));
    border-radius: 50%;
    background: linear-gradient(90deg, transparent, var(--node-light), transparent);
    box-shadow: 0 0 9px var(--node-light);
    content: "";
}

.council-node::before {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: 19px;
    height: 19px;
    transform: translate(-50%, -50%);
    border: 1px solid var(--node-light);
    border-radius: 50%;
    background: radial-gradient(circle, var(--node-light) 0 8%, transparent 62%);
    box-shadow: 0 0 13px var(--node-light);
    content: "";
}

@keyframes council-node-pulse {
    50% {
        opacity: 0.48;
        transform: translate(-50%, -50%) scale(1.35);
    }
}

.council-node.vote-long {
    --node-light: rgba(85, 237, 183, 0.92);
    border-color: rgba(78, 235, 181, 0.6);
    box-shadow: 0 6px 18px -13px rgba(50, 225, 156, 0.7);
}

.council-node.vote-short {
    --node-light: rgba(255, 108, 140, 0.92);
    border-color: rgba(255, 104, 139, 0.62);
    box-shadow: 0 6px 18px -13px rgba(255, 91, 127, 0.7);
}

.council-node.vote-neutral {
    --node-light: rgba(94, 194, 255, 0.9);
    border-color: rgba(77, 177, 255, 0.62);
}

.council-node.vote-abstain,
.council-node.vote-unknown {
    --node-light: rgba(150, 181, 201, 0.74);
    border-color: rgba(137, 153, 170, 0.4);
}

.council-node.is-new-vote {
    animation: council-vote-change 1.8s ease-out 1;
}

.council-node.is-new-vote::before {
    animation: council-vote-pulse 0.72s ease-out 3;
}

@keyframes council-vote-change {
    0% {
        filter: brightness(2.15);
        box-shadow: 0 0 28px var(--node-light), inset 0 0 18px var(--node-light);
    }
    55% {
        filter: brightness(1.35);
        box-shadow: 0 0 14px var(--node-light);
    }
    100% {
        filter: brightness(1);
        box-shadow: 0 6px 18px -13px var(--node-light);
    }
}

@keyframes council-vote-pulse {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.7);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2.8);
    }
}

.council-node.is-pending {
    --node-light: rgba(95, 222, 255, 0.88);
    border: 0;
    background: linear-gradient(90deg, transparent, rgba(6, 22, 38, 0.38), transparent);
    box-shadow: none;
    text-align: center;
}

.council-node.is-pending .node-heading {
    justify-content: center;
}

.council-node.is-pending .node-vote {
    color: #8bdcff;
    text-shadow: 0 0 12px rgba(88, 210, 255, 0.55);
}

.council-node.is-pending small {
    color: #84a1b8;
}

.node-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
}

.node-number {
    flex: 0 0 auto;
    color: #73cde8;
    direction: ltr;
    font: 700 8px/1 "Segoe UI", sans-serif;
}

.node-heading strong {
    overflow: hidden;
    color: #c8ddec;
    font-size: 10.5px;
    line-height: 1.25;
    white-space: normal;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.node-vote {
    color: #9cb1c3;
    direction: ltr;
    font: 750 12.5px/1 "Segoe UI", sans-serif;
    letter-spacing: 0.08em;
}

.vote-long .node-vote { color: var(--green); }
.vote-short .node-vote { color: var(--red); }
.vote-neutral .node-vote { color: var(--blue); }
.vote-abstain .node-vote,
.vote-unknown .node-vote { color: #9eacbb; }

.council-node small {
    overflow: hidden;
    color: #718ba0;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.council-summary {
    display: grid;
    grid-template-columns: 1.25fr repeat(3, 1fr);
    gap: 5px;
    margin: 0 12px 12px;
    padding: 9px 10px;
    border: 1px solid rgba(69, 203, 242, 0.33);
    border-radius: 0;
    background: linear-gradient(100deg, rgba(4, 17, 33, 0.52), rgba(11, 48, 71, 0.38), rgba(4, 17, 33, 0.52));
    backdrop-filter: blur(9px) saturate(155%);
    clip-path: polygon(0 6px, 100% 0, 100% calc(100% - 6px), 0 100%);
}

.council-summary > div {
    display: grid;
    gap: 5px;
    padding: 0 7px;
    border-left: 1px solid rgba(94, 144, 172, 0.14);
}

.council-rationale-panel {
    margin: 0 12px 12px;
    border: 1px solid rgba(69, 203, 242, 0.32);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(6, 27, 44, 0.96), rgba(3, 13, 27, 0.94));
    box-shadow: 0 14px 34px rgba(1, 7, 14, 0.22);
    backdrop-filter: blur(9px) saturate(155%);
}

.council-rationale-heading {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 10px;
    border-bottom: 1px solid rgba(94, 144, 172, 0.16);
}

.council-rationale-heading > span:last-child {
    direction: ltr;
    color: #6f91a8;
    font-size: 11px;
}

.council-rationale-list {
    display: grid;
    max-height: 230px;
    grid-template-columns: 1fr;
    gap: 7px;
    overflow-y: auto;
    padding: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(97, 205, 240, 0.42) transparent;
}

.council-rationale-card {
    min-width: 0;
    padding: 10px 11px;
    border-right: 3px solid #9eacbb;
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(8, 31, 49, 0.92), rgba(3, 13, 26, 0.88));
    box-shadow: 0 8px 18px rgba(1, 7, 14, 0.14);
}

.council-rationale-card.rationale-long { border-right-color: var(--green); }
.council-rationale-card.rationale-short { border-right-color: var(--red); }
.council-rationale-card.rationale-neutral { border-right-color: var(--blue); }
.council-rationale-card.rationale-abstain,
.council-rationale-card.rationale-unknown { border-right-color: #9eacbb; }

.council-rationale-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
}

.council-rationale-card-heading strong {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: #bcd3e5;
    font-size: 11px;
    white-space: normal;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rationale-vote {
    direction: ltr;
    color: #9eacbb;
    min-width: 56px;
    text-align: center;
    font: 700 10.5px/1 "Segoe UI", sans-serif;
}

.rationale-confidence {
    direction: rtl;
    color: #7895aa;
    font-size: 10.5px;
    white-space: nowrap;
}

.rationale-long .rationale-vote { color: var(--green); }
.rationale-short .rationale-vote { color: var(--red); }
.rationale-neutral .rationale-vote { color: var(--blue); }

.council-rationale-card p {
    display: block;
    margin: 7px 0 0;
    overflow: visible;
    color: #a9bdcc;
    font-size: 11.5px;
    line-height: 1.65;
}

.council-rationale-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 12px;
    color: #718ba0;
    font-size: 9px;
    text-align: center;
}

.council-summary > div:last-child {
    border-left: 0;
}

.summary-direction strong,
.summary-count strong {
    color: #d8e9f4;
    font: 700 11px/1.2 "Segoe UI", Tahoma, sans-serif;
}

.summary-count strong {
    direction: ltr;
}

.direction-long { color: var(--green) !important; }
.direction-short { color: var(--red) !important; }
.direction-neutral { color: var(--blue) !important; }
.direction-unavailable { color: #879bad !important; }

.telemetry-core {
    display: flex;
    min-height: 138px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 12px;
    border-bottom: 1px solid rgba(101, 163, 197, 0.13);
    background: radial-gradient(ellipse at 32% 50%, rgba(195, 132, 67, 0.08), transparent 45%);
}

.telemetry-visual {
    display: grid;
    min-width: 0;
    flex: 1 1 0;
    align-self: stretch;
    grid-template-rows: auto 1fr auto;
    gap: 8px;
    padding: 9px 10px 7px;
    border: 1px solid rgba(89, 205, 234, 0.22);
    background: linear-gradient(150deg, rgba(5, 18, 33, 0.66), rgba(4, 10, 22, 0.58));
}

.telemetry-visual-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.telemetry-visual-heading strong {
    direction: ltr;
    color: #b6d7e8;
    font: 650 9px/1.2 "Segoe UI", sans-serif;
}

.telemetry-sparkline {
    width: 100%;
    height: 72px;
    overflow: visible;
}

.telemetry-visual > small {
    color: #70889e;
    font-size: 7px;
}

.telemetry-ring {
    position: relative;
    display: grid;
    width: 100px;
    height: 100px;
    flex: 0 0 100px;
    place-items: center;
    border: 1px solid rgba(255, 197, 111, 0.83);
    border-radius: 50%;
    background:
        radial-gradient(circle at 44% 38%, rgba(255, 240, 190, 0.98), rgba(255, 177, 80, 0.82) 11%, rgba(177, 85, 32, 0.72) 29%, rgba(22, 27, 38, 0.35) 59%, transparent 74%);
    box-shadow: 0 0 38px rgba(239, 162, 76, 0.55), inset 0 0 28px rgba(239, 162, 76, 0.38);
    isolation: isolate;
    color: #ffcf8a;
    font: 750 13px/1 "Segoe UI", sans-serif;
    text-shadow: 0 0 13px rgba(255, 189, 105, 0.75);
}

.telemetry-ring::before,
.telemetry-ring::after {
    position: absolute;
    inset: -9px;
    transform: rotate(-24deg);
    border: 1px dashed rgba(255, 190, 105, 0.64);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255, 177, 91, 0.24);
    content: "";
}

.telemetry-ring::after {
    inset: 8px -15px;
    transform: rotate(38deg);
    border-style: solid;
    border-color: rgba(99, 222, 255, 0.48);
}

.telemetry-ring span {
    position: relative;
    z-index: 1;
}

.telemetry-ring span::before {
    position: absolute;
    z-index: -1;
    inset: -28px;
    border: 1px solid rgba(255, 205, 127, 0.42);
    border-radius: 50%;
    box-shadow: inset 0 0 15px rgba(255, 168, 78, 0.2), 0 0 18px rgba(255, 168, 78, 0.16);
    content: "";
}

.telemetry-core > div:last-child {
    display: grid;
    gap: 4px;
}

.telemetry-value {
    color: var(--cyan);
    direction: ltr;
    font: 750 25px/1.1 "Segoe UI", sans-serif;
    letter-spacing: 0.04em;
    text-shadow: 0 0 18px rgba(67, 225, 255, 0.35);
}

.telemetry-core small {
    color: #7892a7;
    font-size: 8px;
}

.telemetry-list {
    display: grid;
    gap: 0;
    padding: 4px 13px;
}

.telemetry-row {
    display: flex;
    min-height: 37px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid rgba(101, 163, 197, 0.1);
    color: #a7bfd1;
    font-size: 9px;
}

.telemetry-row > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.telemetry-row strong {
    color: #c9dbe8;
    font-size: 8px;
    font-weight: 600;
}

.indicator {
    width: 6px;
    height: 6px;
    background: #597187;
    box-shadow: none;
}

.indicator-cyan { background: #50dfff; box-shadow: 0 0 7px rgba(80, 223, 255, 0.55); }
.indicator-blue { background: #539dff; box-shadow: 0 0 7px rgba(83, 157, 255, 0.48); }
.indicator-violet { background: #aa85ff; box-shadow: 0 0 7px rgba(170, 133, 255, 0.45); }
.indicator-amber { background: #ffc971; box-shadow: 0 0 7px rgba(255, 201, 113, 0.48); }

.text-danger {
    color: #ff8da5 !important;
}

.execution-lock {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: auto 8px 0;
    padding: 10px;
    border: 1px solid rgba(255, 108, 140, 0.52);
    border-radius: 0;
    background: linear-gradient(110deg, rgba(116, 35, 58, 0.24), rgba(30, 17, 34, 0.25));
    backdrop-filter: blur(9px) saturate(155%);
    clip-path: polygon(0 8px, 100% 0, 100% calc(100% - 8px), 0 100%);
}

.lock-icon {
    color: var(--red);
    font-size: 20px;
}

.execution-lock strong,
.execution-lock small {
    display: block;
}

.execution-lock strong {
    color: #ff9eb2;
    direction: ltr;
    font: 700 8px/1.3 "Segoe UI", sans-serif;
    letter-spacing: 0.08em;
}

.execution-lock small {
    margin-top: 4px;
    color: #a87886;
    font-size: 8px;
}

.feed-provenance {
    margin: 10px 13px 12px;
    padding-top: 9px;
    border-top: 1px solid rgba(101, 163, 197, 0.12);
}

.matrix-section {
    position: relative;
    isolation: isolate;
    margin-top: 10px;
    padding: 2px 16px 8px;
    border: 1px solid transparent;
    background:
        linear-gradient(180deg, rgba(6, 20, 36, 0.8), rgba(2, 7, 17, 0.86)) padding-box,
        linear-gradient(115deg, rgba(73, 220, 255, 0.34), rgba(75, 135, 195, 0.15) 48%, rgba(73, 220, 255, 0.28)) border-box;
    clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
    box-shadow: inset 0 0 42px rgba(27, 128, 169, 0.16), 0 18px 38px rgba(0, 0, 0, 0.38), 0 -7px 28px rgba(43, 175, 221, 0.08);
}

.matrix-section::before {
    position: absolute;
    z-index: 0;
    inset: 5px;
    border: 1px solid rgba(105, 203, 229, 0.1);
    clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
    content: "";
    pointer-events: none;
}

.matrix-section::after {
    position: absolute;
    z-index: 0;
    right: 24%;
    bottom: 1px;
    left: 24%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(104, 232, 255, 0.52), transparent);
    box-shadow: 0 0 13px rgba(73, 220, 255, 0.32);
    content: "";
    pointer-events: none;
}

.matrix-grid,
.matrix-heading {
    position: relative;
    z-index: 1;
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 11px;
    margin-top: 4px;
}

.matrix-heading {
    position: relative;
    display: grid;
    min-height: 32px;
    place-content: center;
    margin-top: 6px;
    border-top: 1px solid rgba(70, 199, 239, 0.45);
    background: linear-gradient(180deg, rgba(11, 36, 57, 0.81), rgba(5, 17, 30, 0.72));
    clip-path: polygon(0 0, 37% 0, 40% 14%, 60% 14%, 63% 0, 100% 0, 97% 100%, 3% 100%);
    text-align: center;
}

.matrix-heading::before,
.matrix-heading::after {
    position: absolute;
    top: 50%;
    width: calc(50% - 190px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(82, 205, 235, 0.38));
    content: "";
    pointer-events: none;
}

.matrix-heading::before {
    left: 18px;
}

.matrix-heading::after {
    right: 18px;
    transform: rotate(180deg);
}

.matrix-heading .eyebrow {
    margin: 0;
    font-size: 8px;
}

.matrix-heading h2 {
    margin: 1px 0 0;
    color: #d7f4ff;
    font-size: 11px;
    letter-spacing: 0.1em;
}

.matrix-card {
    display: grid;
    min-height: 78px;
    grid-template-columns: 32px 1fr;
    align-content: center;
    align-items: center;
    gap: 3px 10px;
    padding: 10px 14px;
    border: 1px solid rgba(61, 193, 239, 0.68);
    border-radius: 0;
    background:
        linear-gradient(150deg, rgba(9, 53, 78, 0.64), rgba(5, 18, 35, 0.58)),
        var(--panel);
    clip-path: polygon(0 0, 100% 10%, 100% 90%, 0 100%);
    backdrop-filter: blur(10px) saturate(170%);
    box-shadow: inset 0 0 28px rgba(39, 170, 214, 0.14), 0 0 19px rgba(21, 148, 205, 0.13);
}

.matrix-card:nth-child(even) {
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 90%);
}

.matrix-icon {
    display: grid;
    width: 29px;
    height: 29px;
    grid-row: span 2;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 0;
    background: rgba(20, 85, 112, 0.3);
    clip-path: polygon(0 7px, 7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
    font-size: 17px;
}

.icon-cyan { color: var(--cyan); }
.icon-blue { color: var(--blue); }
.icon-violet { color: var(--violet); }
.icon-green { color: var(--green); }
.icon-amber { color: var(--amber); }

.matrix-card > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
}

.matrix-card strong {
    color: #e5f6ff;
    direction: ltr;
    font: 700 14px/1.2 "Segoe UI", Tahoma, sans-serif;
    white-space: nowrap;
}

.matrix-card small {
    color: #718ca3;
    font-size: 8px;
    grid-column: 2;
}

.matrix-card-execution {
    border-inline-start-color: rgba(255, 108, 140, 0.34);
}

.matrix-card-execution strong {
    color: #ff9bae;
}

#yash-performance-card.is-active {
    border-color: rgba(85, 237, 183, 0.72);
    box-shadow: inset 0 0 28px rgba(85, 237, 183, 0.12), 0 0 20px rgba(85, 237, 183, 0.10);
}

#yash-performance-card.is-active strong {
    color: #88f2cf;
}

.chart-workspace {
    position: relative;
    isolation: isolate;
    min-width: 0;
    margin-top: 7px;
    padding: 0 7px 7px;
    border: 1px solid transparent;
    background:
        linear-gradient(160deg, rgba(5, 16, 29, 0.72), rgba(2, 8, 18, 0.67)) padding-box,
        linear-gradient(145deg, rgba(73, 220, 255, 0.48), rgba(55, 138, 202, 0.28) 48%, rgba(156, 99, 186, 0.24) 78%, rgba(73, 220, 255, 0.38)) border-box;
    clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%);
    backdrop-filter: blur(16px) saturate(135%) contrast(106%);
    box-shadow: inset 0 0 28px rgba(35, 139, 182, 0.1), 0 0 22px rgba(30, 130, 170, 0.1);
}

.chart-workspace::before {
    position: absolute;
    z-index: 0;
    inset: 1px;
    background:
        radial-gradient(circle at 13% 23%, rgba(180, 246, 255, 0.72) 0 1px, transparent 1.7px),
        radial-gradient(circle at 78% 58%, rgba(122, 224, 255, 0.62) 0 1px, transparent 1.8px),
        radial-gradient(circle at 57% 16%, rgba(180, 246, 255, 0.52) 0 1px, transparent 1.6px),
        radial-gradient(ellipse at 48% 45%, rgba(17, 91, 145, 0.2), transparent 70%),
        repeating-linear-gradient(0deg, transparent 0 23px, rgba(89, 190, 225, 0.045) 24px),
        repeating-linear-gradient(90deg, transparent 0 31px, rgba(89, 190, 225, 0.035) 32px);
    content: "";
    pointer-events: none;
}

.chart-heading,
#chart-container,
.chart-error,
.chart-footnote {
    position: relative;
    z-index: 1;
}

.chart-heading {
    display: flex;
    min-height: 53px;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: column;
    gap: 5px;
    padding: 9px 5px 6px;
    border-bottom: 1px solid rgba(101, 205, 239, 0.32);
    background: linear-gradient(90deg, rgba(18, 123, 164, 0.17), transparent 78%);
    direction: ltr;
    text-align: left;
}

.chart-heading .eyebrow {
    margin-bottom: 4px;
    font-size: 8px;
}

.chart-heading h2 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #d7efff;
    font-size: 14px;
    letter-spacing: 0.08em;
}

#chart-symbol-label {
    color: #84eaff;
    direction: ltr;
    font: 650 12px/1.2 "Segoe UI", sans-serif;
}

.chart-title-caption {
    color: #6e8aa2;
    font: 600 8px/1.2 "Segoe UI", sans-serif;
    letter-spacing: 0.12em;
}

.chart-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 9px;
}

#chart-container.klinecharts-pro {
    --klinecharts-pro-primary-color: #73e5ff;
    --klinecharts-pro-hover-background-color: rgba(76, 207, 255, 0.12);
    --klinecharts-pro-background-color: rgba(2, 10, 22, 0.12);
    --klinecharts-pro-popover-background-color: #071a2a;
    --klinecharts-pro-text-color: #b7d4e5;
    --klinecharts-pro-text-second-color: #7894aa;
    --klinecharts-pro-border-color: rgba(91, 187, 220, 0.2);
    --klinecharts-pro-selected-color: rgba(72, 203, 242, 0.15);
}

#chart-container .klinecharts-pro-watermark {
    display: none;
}

#chart-container .klinecharts-pro-period-bar {
    height: 30px;
    border-bottom-color: rgba(87, 181, 216, 0.18);
    background: linear-gradient(90deg, rgba(7, 24, 40, 0.72), rgba(4, 15, 29, 0.28));
}

#chart-container .klinecharts-pro-period-bar .menu-container {
    flex: 0 0 24px;
    width: 24px;
    border-right-color: rgba(87, 181, 216, 0.16);
}

#chart-container .klinecharts-pro-period-bar .menu-container svg {
    width: 16px;
    height: 16px;
    fill: #80dff5;
}

#chart-container .klinecharts-pro-period-bar .symbol {
    flex: 0 0 82px;
    width: 82px;
    padding: 0 6px;
    border-right-color: rgba(87, 181, 216, 0.14);
    color: #d8efff;
    font-size: 9px;
}

#chart-container .klinecharts-pro-period-bar .period {
    margin: 0 1px;
    padding: 2px 3px;
    border-radius: 0;
    color: #809bb1;
    font-size: 8px;
}

#chart-container .klinecharts-pro-period-bar .period.selected {
    color: #a4f2ff;
    background: linear-gradient(180deg, rgba(40, 155, 199, 0.28), rgba(24, 94, 139, 0.12)) !important;
    box-shadow: inset 0 -1px #7ceaff, 0 0 10px rgba(65, 201, 244, 0.12);
}

#chart-container .klinecharts-pro-period-bar .tools {
    flex: 0 0 27px;
    width: 27px;
    justify-content: center;
    padding: 0 4px;
    border-right: 0;
    color: #7694aa;
    font-size: 0;
}

#chart-container .klinecharts-pro-period-bar .tools span {
    display: none;
}

#chart-container .klinecharts-pro-period-bar .tools svg {
    width: 13px;
    height: 13px;
    margin: 0;
}

#chart-container .klinecharts-pro-content,
#chart-container .klinecharts-pro-widget {
    background: transparent;
}

#chart-container {
    width: 100%;
    height: 250px;
    min-height: 250px;
    direction: ltr;
    color-scheme: dark;
}

.chart-error {
    display: block;
    padding: 14px 6px;
    color: #ff9bae;
    font: 600 9px/1.5 "Segoe UI", sans-serif;
    letter-spacing: 0.04em;
}

.chart-error[hidden] {
    display: none;
}

.chart-footnote {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 5px 8px;
    padding: 6px 3px 3px;
    border-top: 1px solid rgba(101, 163, 197, 0.12);
    color: #70889e;
    direction: ltr;
    letter-spacing: 0.04em;
    font-size: 8px;
}

.page-footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 2px 15px;
    color: #647d94;
    font-size: 8px;
}

.page-footer a {
    color: #7eb9ce;
    text-decoration: none;
}

.page-footer a:hover {
    color: var(--cyan);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.sbk1-menu-backdrop {
    position: fixed;
    z-index: 30;
    inset: 0;
    background: rgba(1, 5, 13, 0.68);
    backdrop-filter: blur(5px);
}

.sbk1-menu {
    position: fixed;
    z-index: 31;
    top: 0;
    right: 0;
    width: min(860px, calc(100vw - 24px));
    height: 100vh;
    overflow: hidden;
    transform: translateX(102%);
    border-left: 1px solid rgba(87, 210, 246, 0.42);
    background:
        radial-gradient(circle at 90% 8%, rgba(61, 183, 224, 0.12), transparent 28%),
        linear-gradient(145deg, rgba(5, 18, 34, 0.985), rgba(2, 8, 19, 0.99));
    box-shadow: -24px 0 70px rgba(20, 151, 198, 0.18);
    transition: transform 220ms ease;
}

.sbk1-menu {
    display: grid;
    grid-template-rows: 64px clamp(146px, 28vh, 176px) minmax(0, 1fr);
    background:
        radial-gradient(circle at 100% 0, rgba(74, 196, 229, 0.14), transparent 25%),
        radial-gradient(circle at 0 100%, rgba(117, 84, 183, 0.08), transparent 28%),
        linear-gradient(145deg, rgba(5, 18, 34, 0.99), rgba(2, 8, 19, 0.995));
}

.sbk1-menu > .report-view,
.sbk1-menu > .registration-view,
.sbk1-menu > .notes-view,
.sbk1-menu > .creator-view,
.sbk1-menu > .exchange-balance-view {
    height: auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(97, 205, 240, 0.42) transparent;
}

.sbk1-menu.is-open {
    transform: translateX(0);
}

.sbk1-menu-header {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 14px;
    border-bottom: 1px solid rgba(87, 210, 246, 0.18);
    background: linear-gradient(90deg, rgba(12, 52, 73, 0.34), transparent 72%);
}

.sbk1-menu-header > div {
    display: grid;
    gap: 5px;
}

.sbk1-menu-header strong {
    font-size: 17px;
    letter-spacing: 0.02em;
}

.sbk1-menu-header button {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(112, 220, 248, 0.38);
    background: rgba(12, 49, 69, 0.5);
    color: #b9efff;
    cursor: pointer;
    font-size: 20px;
}

.sbk1-menu-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    max-height: clamp(146px, 28vh, 176px);
    overflow-y: auto;
    padding: 8px 12px 7px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(97, 205, 240, 0.42) transparent;
}

.sbk1-menu-options::-webkit-scrollbar,
.sbk1-menu > .report-view::-webkit-scrollbar,
.daily-report-table-wrap::-webkit-scrollbar,
.notes-list::-webkit-scrollbar,
.creator-message-list::-webkit-scrollbar,
.exchange-balance-list::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

.sbk1-menu-options::-webkit-scrollbar-thumb,
.sbk1-menu > .report-view::-webkit-scrollbar-thumb,
.daily-report-table-wrap::-webkit-scrollbar-thumb,
.notes-list::-webkit-scrollbar-thumb,
.creator-message-list::-webkit-scrollbar-thumb,
.exchange-balance-list::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 10px;
    background: rgba(95, 201, 232, 0.38);
    background-clip: padding-box;
}

.sbk1-menu-option {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 9px;
    align-items: center;
    gap: 3px;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    padding: 4px 7px;
    border: 1px solid rgba(87, 210, 246, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(100deg, rgba(12, 48, 68, 0.76), rgba(5, 20, 35, 0.72));
    color: #d5effa;
    text-align: right;
    cursor: pointer;
    box-shadow: inset 0 1px rgba(180, 235, 255, 0.025);
    transition: border-color 150ms ease, background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.sbk1-menu-option::before {
    grid-row: 1 / 3;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid rgba(99, 210, 240, 0.22);
    border-radius: 7px;
    background: rgba(15, 70, 91, 0.42);
    color: #83dcf3;
    font-size: 14px;
    content: "◈";
}

.sbk1-menu-option[data-report="daily"]::before { content: "▦"; }
.sbk1-menu-option[data-report="registration"]::before { content: "◇"; }
.sbk1-menu-option[data-report="notes"]::before { content: "✎"; }
.sbk1-menu-option[data-report="creator"]::before { content: "◉"; }
.sbk1-menu-option[data-report="exchange-balance"]::before { content: "◎"; }

.sbk1-menu-option > span {
    grid-column: 2;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.sbk1-menu-option > small {
    grid-column: 2;
    font-size: 8px;
    line-height: 1.2;
}

.sbk1-menu-option.is-active {
    border-color: rgba(87, 222, 255, 0.62);
    background: linear-gradient(100deg, rgba(28, 119, 153, 0.52), rgba(7, 28, 46, 0.82));
    box-shadow: inset 3px 0 rgba(108, 227, 255, 0.78), 0 8px 24px rgba(24, 132, 170, 0.12);
    transform: translateX(-2px);
}

.sbk1-menu-option.is-active::before {
    border-color: rgba(120, 229, 255, 0.52);
    background: rgba(24, 130, 162, 0.5);
    color: #baf1ff;
    box-shadow: 0 0 16px rgba(78, 207, 239, 0.16);
}

.sbk1-menu-option:hover {
    border-color: rgba(87, 210, 246, 0.38);
    background: linear-gradient(100deg, rgba(18, 78, 105, 0.72), rgba(7, 28, 46, 0.78));
}

.sbk1-menu-option small {
    color: #7f9ab0;
    font-size: 8px;
}

.daily-report-toolbar {
    min-height: 46px;
    margin: 7px 12px 4px;
    padding: 6px 9px;
}

.daily-report-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 18px;
}

.daily-report-toolbar > div {
    display: grid;
    gap: 4px;
}

.daily-report-toolbar strong {
    direction: ltr;
    color: #8eabc0;
    font-size: 9px;
}

.daily-report-toolbar button {
    min-height: 32px;
    padding: 5px 10px;
    border: 1px solid rgba(87, 210, 246, 0.32);
    background: rgba(12, 49, 69, 0.5);
    color: #b9efff;
    cursor: pointer;
}

.daily-report-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    padding: 0 18px 10px;
}

.daily-report-summary article {
    display: grid;
    gap: 5px;
    min-height: 54px;
    align-content: center;
    padding: 7px 9px;
    border: 1px solid rgba(87, 210, 246, 0.22);
    background: rgba(5, 24, 41, 0.74);
}

.daily-report-summary span {
    color: #7895aa;
    font-size: 8px;
}

.daily-report-summary strong {
    direction: ltr;
    color: #daf5ff;
    font-size: 12px;
}

.daily-report-table-wrap {
    height: calc(100vh - 230px);
    margin: 0 18px 18px;
    overflow: auto;
    border: 1px solid rgba(87, 210, 246, 0.22);
}

.daily-report-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
    direction: rtl;
}

.daily-report-table th,
.daily-report-table td {
    border-bottom: 1px solid rgba(87, 210, 246, 0.12);
    padding: 8px 7px;
    font-size: 8.5px;
    text-align: right;
    vertical-align: top;
}

.daily-report-table th {
    position: sticky;
    z-index: 2;
    top: 0;
    background: rgba(8, 31, 49, 0.98);
    color: #87bed5;
}

.daily-report-table td {
    color: #b1c6d6;
}

.daily-report-table td:nth-child(1),
.daily-report-table td:nth-child(4),
.daily-report-table td:nth-child(5),
.daily-report-table td:nth-child(6),
.daily-report-table td:nth-child(7) {
    direction: ltr;
    text-align: left;
}

.daily-report-empty {
    height: 80px;
    color: #7895aa;
    text-align: center !important;
}

.report-view[hidden] {
    display: none;
}

.registration-view {
    display: grid;
    width: min(520px, calc(100% - 36px));
    gap: 10px;
    margin: 18px;
    padding: 14px;
    border: 1px solid rgba(87, 210, 246, 0.28);
    background: rgba(5, 24, 41, 0.82);
}

.registration-status {
    min-height: 34px;
    padding: 9px 10px;
    border-right: 2px solid var(--amber);
    background: rgba(255, 205, 117, 0.08);
    color: #d8eaf4;
    font-size: 9px;
}

.registration-status.is-active {
    border-right-color: var(--green);
    background: rgba(85, 237, 183, 0.08);
}

.registration-view label {
    display: grid;
    gap: 5px;
    color: #91adc1;
    font-size: 9px;
}

.registration-view input {
    width: 100%;
    min-height: 38px;
    border: 1px solid rgba(87, 210, 246, 0.28);
    border-radius: 0;
    outline: none;
    background: rgba(2, 10, 22, 0.92);
    color: #dff5ff;
    padding: 8px 10px;
}

.registration-view input:focus {
    border-color: rgba(112, 231, 255, 0.72);
    box-shadow: 0 0 14px rgba(42, 194, 242, 0.12);
}

.registration-view button {
    min-height: 38px;
    border: 1px solid rgba(87, 222, 255, 0.58);
    background: linear-gradient(90deg, rgba(25, 102, 137, 0.52), rgba(7, 28, 46, 0.82));
    color: #cfeff8;
    cursor: pointer;
}

.registration-account-link {
    display: block;
    min-height: 38px;
    padding: 10px;
    border: 1px solid rgba(87, 222, 255, 0.34);
    border-radius: 7px;
    color: #a9ddf1;
    text-align: center;
    text-decoration: none;
}

.registration-account-link:hover {
    border-color: rgba(87, 222, 255, 0.7);
    background: rgba(25, 102, 137, 0.24);
}

.registration-view button:disabled {
    cursor: default;
    opacity: 0.55;
}

.registration-message {
    min-height: 18px;
    margin: 0;
    color: #ff9aae;
    font-size: 9px;
}

.paper-trading-view {
    width: min(700px, calc(100% - 36px));
    display: grid;
    gap: 12px;
    margin: 18px;
}

.paper-account-summary,
.paper-order-form,
.paper-table-wrap {
    border: 1px solid rgba(87, 210, 246, 0.28);
    background: rgba(5, 24, 41, 0.82);
}

.paper-account-summary {
    display: grid;
    gap: 6px;
    padding: 12px;
}

.paper-account-summary strong {
    color: #dff5ff;
    direction: ltr;
    text-align: right;
}

.paper-account-summary small,
.paper-account-balances {
    color: #91adc1;
    font-size: 9px;
}

.paper-account-balances {
    direction: ltr;
    text-align: right;
}

.paper-order-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
}

.paper-order-form label {
    display: grid;
    gap: 5px;
    color: #91adc1;
    font-size: 9px;
}

.paper-order-form select,
.paper-order-form input {
    min-height: 38px;
    border: 1px solid rgba(87, 210, 246, 0.28);
    background: rgba(2, 10, 22, 0.92);
    color: #dff5ff;
    padding: 7px 9px;
}

.paper-order-form button {
    grid-column: 1 / -1;
    min-height: 38px;
    border: 1px solid rgba(87, 222, 255, 0.58);
    background: linear-gradient(90deg, rgba(25, 102, 137, 0.52), rgba(7, 28, 46, 0.82));
    color: #cfeff8;
}

.paper-order-form button:disabled {
    opacity: 0.55;
}

.paper-table-wrap {
    padding: 10px;
}

.paper-table-wrap h3 {
    margin: 0 0 8px;
    color: #d8eaf4;
    font-size: 11px;
}

.paper-position-row,
.paper-order-row,
.paper-fill-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) repeat(2, minmax(100px, 1fr)) auto;
    gap: 8px;
    align-items: center;
    min-height: 42px;
    border-top: 1px solid rgba(87, 210, 246, 0.12);
    direction: ltr;
    color: #b9d2df;
    font-size: 9px;
}

.paper-position-row button,
.paper-order-row button {
    min-height: 30px;
    border: 1px solid rgba(255, 205, 117, 0.5);
    background: rgba(255, 205, 117, 0.08);
    color: #ffd68f;
}

.paper-protection-form {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: end;
}

.paper-protection-form label {
    display: grid;
    gap: 3px;
    color: #91adc1;
}

.paper-protection-form input {
    width: 110px;
}

.paper-market-costs {
    color: #91adc1;
    font-size: 9px;
}

.paper-empty {
    min-height: 42px;
    color: #7895aa;
    font-size: 9px;
}

.notes-view {
    width: min(700px, calc(100% - 36px));
    margin: 18px;
}

.notes-form {
    display: grid;
    gap: 8px;
    padding: 9px;
    border: 1px solid rgba(87, 210, 246, 0.28);
    background: rgba(5, 24, 41, 0.82);
}

.notes-form label {
    display: grid;
    gap: 6px;
    color: #91adc1;
    font-size: 9px;
}

.notes-form textarea {
    width: 100%;
    min-height: 68px;
    resize: vertical;
    border: 1px solid rgba(87, 210, 246, 0.28);
    outline: none;
    background: rgba(2, 10, 22, 0.92);
    color: #dff5ff;
    padding: 9px 10px;
    font: 10px/1.6 "Segoe UI", Tahoma, sans-serif;
}

.notes-form textarea:focus {
    border-color: rgba(112, 231, 255, 0.72);
    box-shadow: 0 0 14px rgba(42, 194, 242, 0.12);
}

.notes-form-footer {
    display: flex;
    align-items: center;
    gap: 7px;
}

.notes-form-footer > span {
    margin-right: auto;
    direction: ltr;
    color: #7895aa;
    font-size: 8px;
}

.notes-form-footer button,
.note-actions button {
    min-height: 30px;
    padding: 4px 8px;
    border: 1px solid rgba(87, 210, 246, 0.32);
    background: rgba(12, 49, 69, 0.5);
    color: #b9efff;
    cursor: pointer;
}

#notes-save,
#notes-cancel-edit {
    width: 92px;
    height: 30px;
    min-width: 92px;
    max-width: 92px;
    min-height: 30px;
    max-height: 30px;
    padding: 0 6px;
    font-size: 8.5px;
    white-space: nowrap;
}

.notes-message {
    min-height: 16px;
    margin: 0;
    color: #ff9aae;
    font-size: 9px;
}

.notes-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    margin-top: 10px;
    padding: 6px 9px;
    border: 1px solid rgba(87, 210, 246, 0.22);
    color: #91adc1;
    font-size: 9px;
}

.notes-list-heading strong {
    direction: ltr;
    color: #dff5ff;
}

.notes-list {
    display: grid;
    max-height: 220px;
    gap: 7px;
    margin-top: 7px;
    overflow-y: auto;
}

.note-card {
    display: grid;
    gap: 8px;
    padding: 9px 10px;
    border-right: 2px solid rgba(87, 210, 246, 0.55);
    background: rgba(5, 24, 41, 0.76);
}

.note-card p {
    margin: 0;
    color: #c8deec;
    font-size: 10px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.note-card footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.note-card time {
    direction: ltr;
    color: #7895aa;
    font-size: 8px;
}

.note-actions {
    display: flex;
    gap: 6px;
}

.note-actions button {
    min-height: 28px;
    padding: 4px 8px;
}

.note-actions .note-delete {
    border-color: rgba(255, 108, 140, 0.38);
    color: #ff9aae;
}

.notes-empty {
    margin: 0;
    padding: 18px;
    border: 1px solid rgba(87, 210, 246, 0.16);
    color: #7895aa;
    font-size: 9px;
    text-align: center;
}

.creator-view {
    display: grid;
    width: min(480px, calc(100% - 20px));
    height: min(410px, calc(100vh - 238px));
    min-height: 330px;
    margin: 8px auto;
    grid-template-rows: 38px minmax(118px, 1fr) 32px 54px 18px;
    gap: 5px;
}

.creator-chat-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(87, 210, 246, 0.22);
    background: rgba(5, 24, 41, 0.76);
    padding: 6px 9px;
    color: #91adc1;
    font-size: 9px;
}

.creator-chat-heading strong {
    direction: ltr;
    color: #dff5ff;
}

.creator-message-form {
    display: grid;
    height: 54px;
    min-height: 54px;
    max-height: 54px;
    grid-template-columns: minmax(0, 1fr) 56px;
    gap: 6px;
    padding: 5px;
    border: 1px solid rgba(87, 210, 246, 0.28);
    background: rgba(5, 24, 41, 0.82);
}

.creator-message-form textarea {
    width: 100%;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    resize: none;
    border: 1px solid rgba(87, 210, 246, 0.28);
    outline: none;
    background: rgba(2, 10, 22, 0.92);
    color: #dff5ff;
    padding: 9px 10px;
    font: 11px/1.6 "Segoe UI", Tahoma, sans-serif;
}

.emoji-picker {
    display: flex;
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    direction: ltr;
    scrollbar-width: thin;
}

.emoji-picker button {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    max-width: 30px;
    max-height: 30px;
    flex: 0 0 30px;
    padding: 0;
    border: 1px solid rgba(87, 210, 246, 0.24);
    background: rgba(12, 49, 69, 0.5);
    cursor: pointer;
    font-size: 15px;
}

#creator-message-submit {
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    padding: 0 4px;
    font-size: 9px;
    border: 1px solid rgba(87, 222, 255, 0.58);
    background: linear-gradient(90deg, rgba(25, 102, 137, 0.52), rgba(7, 28, 46, 0.82));
    color: #cfeff8;
    cursor: pointer;
}

#creator-message-submit:disabled {
    cursor: default;
    opacity: 0.55;
}

.creator-message-status {
    height: 18px;
    min-height: 18px;
    max-height: 18px;
    margin: 0;
    color: #91adc1;
    font-size: 9px;
}

.creator-message-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 38px;
    min-height: 38px;
    max-height: 38px;
    margin-top: 10px;
    padding: 6px 9px;
    border: 1px solid rgba(87, 210, 246, 0.22);
    color: #91adc1;
    font-size: 9px;
}

.creator-message-heading strong {
    direction: ltr;
    color: #dff5ff;
}

.creator-message-list {
    display: flex;
    height: 118px;
    min-height: 118px;
    max-height: 118px;
    flex-direction: column;
    gap: 7px;
    overflow-y: auto;
    border: 1px solid rgba(87, 210, 246, 0.18);
    background: rgba(1, 8, 18, 0.58);
    padding: 8px;
}

.creator-message-card {
    display: grid;
    width: fit-content;
    max-width: 88%;
    justify-self: end;
    gap: 7px;
    padding: 9px 10px;
    border-right: 2px solid rgba(87, 210, 246, 0.55);
    background: rgba(5, 24, 41, 0.76);
}

.creator-message-card p {
    margin: 0;
    color: #c8deec;
    font-size: 10px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.creator-message-card time {
    direction: ltr;
    color: #7895aa;
    font-size: 8px;
}

.creator-message-empty {
    margin: 0;
    padding: 18px;
    border: 1px solid rgba(87, 210, 246, 0.16);
    color: #7895aa;
    font-size: 9px;
    text-align: center;
}

.exchange-balance-view {
    width: min(700px, calc(100% - 36px));
    margin: 18px;
}

.exchange-balance-heading {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid rgba(87, 210, 246, 0.28);
    background: rgba(5, 24, 41, 0.82);
}

.exchange-balance-heading > div {
    display: grid;
    gap: 5px;
}

.exchange-balance-heading button {
    min-height: 34px;
    padding: 5px 10px;
    border: 1px solid rgba(87, 210, 246, 0.32);
    background: rgba(12, 49, 69, 0.5);
    color: #b9efff;
    cursor: pointer;
}

.exchange-balance-status {
    margin: 8px 0;
    color: #91adc1;
    font-size: 9px;
}

.exchange-balance-list {
    display: grid;
    max-height: 260px;
    gap: 8px;
    overflow-y: auto;
}

.exchange-balance-account {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(87, 210, 246, 0.22);
    background: rgba(5, 24, 41, 0.76);
}

.exchange-balance-account-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.exchange-balance-account-heading strong {
    direction: ltr;
}

.exchange-balance-account-heading span {
    font-size: 8px;
}

.exchange-balance-account-heading .is-connected {
    color: var(--green);
}

.exchange-balance-account-heading .is-error {
    color: var(--red);
}

.exchange-balance-account p,
.exchange-balance-empty {
    color: #7895aa;
    font-size: 9px;
}

.exchange-wallet-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.exchange-wallet-row {
    display: grid;
    gap: 4px;
    padding: 8px;
    border-right: 2px solid rgba(87, 210, 246, 0.42);
    background: rgba(2, 10, 22, 0.72);
}

.exchange-wallet-row strong,
.exchange-wallet-row span,
.exchange-wallet-row small {
    direction: ltr;
}

.exchange-wallet-row span {
    color: #b9efff;
    font-size: 9px;
}

.exchange-wallet-row small {
    color: #7895aa;
    font-size: 8px;
}

/* Standardized, high-readability UI typography */
.metric-label,
.panel-heading,
.market-table-head,
.council-summary,
.telemetry-row,
.matrix-card,
.daily-report-toolbar,
.daily-report-summary,
.daily-report-table,
.registration-view,
.notes-view,
.creator-view,
.exchange-balance-view {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.metric-label {
    font-size: 10px;
    line-height: 1.35;
}

.panel-heading h2,
.matrix-heading h2 {
    font-size: 16px;
}

.panel-heading .eyebrow,
.matrix-heading .eyebrow,
.title-subtitle,
.topbar-status,
.panel-index,
.market-table-head,
.telemetry-row,
.execution-lock small,
.matrix-card small,
.council-rationale-heading,
.council-rationale-card p,
.node-heading strong,
.council-node small {
    font-size: 10px;
}

.market-row strong,
.market-row small,
.telemetry-row strong,
.telemetry-core strong,
.matrix-card strong,
.council-summary strong,
.node-vote,
.sbk1-menu-option > span,
.sbk1-menu-option > small,
.daily-report-summary strong,
.daily-report-table th,
.daily-report-table td,
.registration-view label,
.registration-view input,
.registration-view button,
.registration-status,
.notes-form label,
.notes-form textarea,
.notes-list-heading,
.note-card p,
.creator-chat-heading,
.creator-message-form textarea,
.creator-message-status,
.exchange-balance-status,
.exchange-balance-heading,
.exchange-wallet-row span,
.exchange-wallet-row small {
    font-size: 12px;
}

/* Final readability scale: large, consistent text across the full dashboard */
body {
    font-size: 14px;
    line-height: 1.45;
}

.eyebrow,
.metric-label {
    font-size: 11.5px;
}

.topbar-status,
.topbar-status small,
.title-subtitle,
.panel-heading h2,
.chart-heading h2,
.chart-title-caption,
.market-table-head,
.market-row strong,
.market-row small,
.asset-change,
.telemetry-row,
.telemetry-row strong,
.telemetry-core small,
.matrix-card strong,
.matrix-card small,
.council-summary strong,
.council-rationale-card-heading strong,
.council-rationale-card p,
.node-heading strong,
.council-node small,
.node-vote,
.sbk1-menu-option > span,
.sbk1-menu-option > small,
.daily-report-toolbar,
.daily-report-summary span,
.daily-report-summary strong,
.daily-report-table th,
.daily-report-table td,
.registration-view label,
.registration-view input,
.registration-view button,
.registration-status,
.registration-message,
.notes-form label,
.notes-form textarea,
.notes-form-footer,
.notes-message,
.notes-list-heading,
.note-card p,
.note-card time,
.creator-chat-heading,
.creator-message-form textarea,
.creator-message-status,
.creator-message-card p,
.creator-message-card time,
.exchange-balance-status,
.exchange-balance-heading,
.exchange-wallet-row strong,
.exchange-wallet-row span,
.exchange-wallet-row small {
    font-size: 13px;
}

.telemetry-value,
.daily-report-summary strong,
.matrix-card strong {
    font-size: 18px;
}

.sbk1-menu-option > span {
    font-size: 13px;
}

.sbk1-menu-option > small {
    font-size: 11px;
}

.registration-view input,
.notes-form textarea,
.creator-message-form textarea {
    min-height: 44px;
    font-size: 13px;
}

.registration-view button,
.notes-form-footer button,
.note-actions button,
.daily-report-toolbar button,
.exchange-balance-heading button,
#notes-save,
#creator-message-submit {
    height: 34px;
    min-height: 34px;
    max-height: 34px;
    font-size: 11.5px;
}

.sbk1-menu-option > span {
    font-size: 13px !important;
}

.sbk1-menu-option > small {
    font-size: 11px !important;
}

.metric-label {
    font-size: 12px !important;
}

.matrix-card strong,
.daily-report-summary strong,
.telemetry-value {
    font-size: 18px !important;
}

.daily-report-table th,
.daily-report-table td,
.market-row strong,
.market-row small,
.telemetry-row,
.telemetry-row strong,
.node-heading strong,
.node-vote,
.council-summary strong,
.registration-view input,
.registration-view button,
.notes-form textarea,
.notes-form-footer button,
.creator-message-form textarea,
.creator-message-status,
.exchange-wallet-row strong,
.exchange-wallet-row span,
.exchange-wallet-row small {
    font-size: 13px !important;
}

.eyebrow,
.metric-label,
.topbar-status,
.topbar-status small,
.market-table-head,
.market-row small,
.telemetry-row,
.telemetry-core small,
.execution-lock strong,
.execution-lock small,
.panel-index,
.council-meta,
.node-heading strong,
.council-node small,
.matrix-card small,
.page-footer,
.footer-links {
    font-size: 11px;
}

.market-row strong,
.telemetry-row strong,
.matrix-card strong,
.council-summary strong,
.feed-provenance strong,
.node-vote,
.daily-report-summary strong,
.daily-report-table th,
.daily-report-table td,
.registration-view input,
.registration-view button,
.notes-form textarea,
.notes-form-footer button,
.creator-message-form textarea,
.creator-message-status,
.exchange-balance-heading button,
.exchange-wallet-row span,
.exchange-wallet-row small {
    font-size: 13px;
}

.matrix-card strong {
    font-size: 16px;
}

.node-vote {
    font-size: 13px;
}

.node-heading strong {
    font-size: 10.5px;
}

.sbk1-menu-option > span {
    font-size: 12px;
}

.sbk1-menu-option > small {
    font-size: 10px;
    line-height: 1.35;
}

.telemetry-value {
    font-size: 28px;
}

.market-row strong,
.matrix-card strong,
.council-summary strong,
.daily-report-summary strong,
.daily-report-table td,
.telemetry-row strong,
.exchange-wallet-row strong,
.exchange-wallet-row span {
    font-weight: 750;
}

.sbk1-menu-header strong {
    font-size: 18px;
}

.sbk1-menu-option {
    min-height: 46px;
}

.sbk1-menu-option > span {
    font-size: 11.5px;
}

.sbk1-menu-option > small {
    font-size: 9.5px;
    line-height: 1.3;
}

.daily-report-table th {
    font-size: 11px;
}

.daily-report-table td {
    font-size: 11px;
    line-height: 1.45;
}

.registration-view input,
.notes-form textarea,
.creator-message-form textarea,
.exchange-balance-heading,
.registration-status,
.registration-message,
.notes-message,
.creator-message-status {
    font-size: 12px;
}

.pinned-note-card {
    position: relative;
    display: grid;
    gap: 10px;
    margin: 14px;
    padding: 14px 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 205, 117, 0.28);
    border-radius: 12px;
    background:
        linear-gradient(130deg, rgba(255, 205, 117, 0.09), transparent 38%),
        linear-gradient(145deg, rgba(11, 42, 61, 0.94), rgba(5, 20, 35, 0.92));
    box-shadow: 0 14px 34px rgba(1, 7, 14, 0.22), inset 0 1px rgba(255, 236, 181, 0.05);
}

.pinned-note-card::after {
    position: absolute;
    right: -28px;
    bottom: -34px;
    width: 110px;
    height: 110px;
    border: 1px solid rgba(255, 205, 117, 0.08);
    border-radius: 50%;
    content: "";
}

.pinned-note-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffd995;
    font-size: 9px;
    letter-spacing: 0.08em;
}

.pinned-note-icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(255, 205, 117, 0.28);
    border-radius: 8px;
    background: rgba(255, 205, 117, 0.08);
    font-size: 11px;
}

.pinned-note-card p {
    margin: 0;
    color: #edf7fb;
    direction: rtl;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.7;
    text-align: right;
}

.notes-view {
    padding-bottom: 18px;
}

/* Professional presentation for every report menu view */
.sbk1-menu > .report-view,
.sbk1-menu > .registration-view,
.sbk1-menu > .notes-view,
.sbk1-menu > .creator-view,
.sbk1-menu > .exchange-balance-view {
    background:
        radial-gradient(circle at 85% 20%, rgba(54, 169, 209, 0.07), transparent 30%);
}

.daily-report-toolbar {
    min-height: 52px;
    margin: 8px 14px 4px;
    padding: 7px 10px;
    border: 1px solid rgba(87, 210, 246, 0.16);
    border-radius: 8px;
    background: linear-gradient(100deg, rgba(10, 42, 61, 0.66), rgba(5, 20, 35, 0.58));
}

.daily-report-toolbar button,
.exchange-balance-heading button {
    border-radius: 6px;
    font-size: 9px;
    transition: 150ms ease;
}

.daily-report-toolbar button:hover,
.exchange-balance-heading button:hover {
    border-color: rgba(112, 231, 255, 0.64);
    background: rgba(25, 98, 128, 0.58);
    box-shadow: 0 0 16px rgba(61, 194, 232, 0.12);
}

.daily-report-summary {
    gap: 8px;
    padding-inline: 12px;
}

.daily-report-summary article {
    position: relative;
    min-height: 56px;
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(13, 52, 73, 0.82), rgba(5, 20, 35, 0.76));
    box-shadow: inset 0 1px rgba(179, 238, 255, 0.035), 0 10px 24px rgba(2, 9, 18, 0.16);
}

.daily-report-summary article::after {
    position: absolute;
    right: 8px;
    bottom: 8px;
    left: 8px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(91, 210, 243, 0.25), transparent);
    content: "";
}

.daily-report-table-wrap {
    height: min(360px, calc(100vh - 330px));
    margin-inline: 12px;
    border-radius: 8px;
    background: rgba(3, 12, 24, 0.72);
    box-shadow: 0 12px 34px rgba(1, 7, 14, 0.18);
}

.daily-report-table th {
    height: 38px;
    border-bottom-color: rgba(99, 210, 240, 0.22);
    background: linear-gradient(180deg, rgba(13, 52, 73, 0.98), rgba(7, 28, 46, 0.98));
    color: #a4c8da;
}

.daily-report-table tbody tr {
    transition: background 120ms ease;
}

.daily-report-table tbody tr:hover {
    background: rgba(45, 166, 205, 0.055);
}

.registration-view,
.notes-view,
.exchange-balance-view,
.creator-view {
    border-radius: 10px;
}

.registration-view {
    width: min(460px, calc(100% - 24px));
    min-height: 0;
    gap: 8px;
    margin: 10px auto;
    padding: 12px;
    border-radius: 10px;
    background:
        radial-gradient(circle at 100% 0, rgba(76, 193, 226, 0.09), transparent 32%),
        rgba(5, 24, 41, 0.86);
    box-shadow: 0 14px 38px rgba(1, 7, 14, 0.24);
}

.registration-status {
    border-radius: 7px;
}

.registration-view input,
.notes-form textarea,
.creator-message-form textarea {
    border-radius: 7px;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.registration-view input:focus,
.notes-form textarea:focus,
.creator-message-form textarea:focus {
    background: rgba(4, 15, 29, 0.96);
}

.registration-view button,
.notes-form-footer button,
.note-actions button,
.emoji-picker button,
#creator-message-submit {
    border-radius: 7px;
    transition: 150ms ease;
}

.registration-view button:not(:disabled):hover,
.notes-form-footer button:hover,
.note-actions button:hover,
.emoji-picker button:hover,
#creator-message-submit:not(:disabled):hover {
    border-color: rgba(112, 231, 255, 0.68);
    background: rgba(26, 101, 132, 0.58);
    box-shadow: 0 8px 18px rgba(25, 131, 166, 0.12);
    transform: translateY(-1px);
}

.notes-view,
.exchange-balance-view {
    width: min(520px, calc(100% - 24px));
    margin: 10px auto;
}

.notes-form,
.exchange-balance-heading,
.creator-chat-heading,
.creator-message-form {
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(1, 7, 14, 0.16);
}

.notes-list-heading,
.creator-chat-heading,
.exchange-balance-status {
    border-radius: 7px;
}

.note-card,
.creator-message-card,
.exchange-balance-account {
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(1, 7, 14, 0.12);
}

.note-card {
    border-right-width: 3px;
    background:
        linear-gradient(100deg, rgba(9, 35, 52, 0.82), rgba(5, 20, 35, 0.72));
}

.creator-view {
    height: calc(100vh - 220px);
    margin-inline: auto;
}

.creator-message-list {
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 100%, rgba(50, 157, 194, 0.06), transparent 38%),
        rgba(1, 8, 18, 0.64);
}

.creator-message-card {
    border-radius: 12px 12px 4px 12px;
    background: linear-gradient(145deg, rgba(18, 88, 116, 0.82), rgba(7, 33, 50, 0.88));
}

.emoji-picker button {
    border-radius: 8px;
}

.exchange-balance-heading {
    background:
        radial-gradient(circle at 100% 0, rgba(69, 190, 226, 0.10), transparent 32%),
        rgba(5, 24, 41, 0.86);
}

.exchange-balance-account {
    background:
        linear-gradient(145deg, rgba(10, 43, 62, 0.78), rgba(5, 20, 35, 0.76));
}

.exchange-wallet-row {
    border-radius: 7px;
    border-right-width: 3px;
    background: rgba(2, 10, 22, 0.82);
}

@media screen and (max-width: 780px) {
    .sbk1-menu {
        width: calc(100vw - 8px);
    }

    .daily-report-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .daily-report-table-wrap {
        height: calc(100vh - 270px);
        margin-inline: 8px;
    }

    .sbk1-menu-options,
    .daily-report-toolbar {
        padding-inline: 8px;
    }

    .daily-report-summary {
        padding-inline: 8px;
    }
}

@media screen and (max-width: 1239px) {
    .app-shell {
        width: min(1180px, calc(100% - 24px));
    }

    .topbar {
        min-height: 72px;
        grid-template-columns: 1fr auto;
    }

    .title-lockup {
        display: none;
    }

    .terminal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .council-panel {
        grid-column: 1 / -1;
    }

    .matrix-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cockpit-frame {
        width: 100%;
    }
}

@media screen and (max-width: 780px) {
    .app-shell {
        width: calc(100% - 16px);
    }

    .topbar {
        min-height: 62px;
        grid-template-columns: 1fr auto;
        padding-inline: 4px;
    }

    .brand-copy small,
    .topbar-status small {
        display: none;
    }

    .terminal-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .council-panel {
        grid-column: auto;
    }

    .hero-strip {
        display: none;
    }

    .panel {
        min-height: 420px;
    }

    .chart-workspace {
        min-height: 520px;
    }

    #chart-container {
        min-height: 360px;
    }

    .council-stage {
        min-height: 460px;
    }

    .market-table-head,
    .market-row {
        grid-template-columns: minmax(72px, 1fr) minmax(82px, 1fr) minmax(58px, 0.7fr);
    }

    .market-row .asset-spark,
    .market-table-head span:last-child {
        display: none;
    }

    .market-foot,
    .council-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .matrix-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (min-width: 1240px) and (min-height: 700px) {
    .app-shell {
        width: min(1680px, calc(100% - 24px));
    }

    .topbar {
        min-height: clamp(72px, 9.5vh, 86px);
    }

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .title-lockup {
        padding: 4px 30px 3px;
    }

    .title-lockup h1 {
        font-size: clamp(18px, 1.65vw, 26px);
    }

    .title-subtitle {
        margin-top: 3px;
        font-size: 8px;
    }

    .dashboard {
        padding-top: 3px;
    }

    .hero-strip {
        display: none;
    }

    .terminal-grid {
        grid-template-columns: minmax(350px, 1fr) minmax(520px, 1.52fr) minmax(340px, 1fr);
        gap: 8px;
    }

    .market-panel,
    .telemetry-panel {
        min-height: 0;
        padding: clamp(58px, 7.2vh, 68px) 8px;
        background:
            linear-gradient(155deg, rgba(5, 15, 29, 0.54), rgba(2, 8, 19, 0.49)) padding-box,
            linear-gradient(135deg, rgba(79, 225, 255, 0.48), rgba(72, 131, 207, 0.24) 38%, rgba(151, 105, 190, 0.28) 72%, rgba(77, 220, 255, 0.4)) border-box;
    }

    .chart-workspace {
        background:
            linear-gradient(160deg, rgba(5, 16, 29, 0.62), rgba(2, 8, 18, 0.58)) padding-box,
            linear-gradient(145deg, rgba(73, 220, 255, 0.48), rgba(55, 138, 202, 0.28) 48%, rgba(156, 99, 186, 0.24) 78%, rgba(73, 220, 255, 0.38)) border-box;
    }

    .market-table-head {
        padding: 6px 10px 5px;
    }

    .market-list {
        padding: 0 5px;
    }

    .market-row {
        min-height: clamp(26px, 3.1vh, 28px);
        padding: 2px 4px;
    }

    .market-foot {
        margin: 3px 8px 0;
        padding: 5px 0;
    }

    .chart-workspace {
        margin-top: 5px;
        padding: 0 6px 5px;
    }

    .chart-heading {
        min-height: 40px;
        align-items: center;
        flex-direction: row;
        gap: 5px;
        padding: 4px 5px;
    }

    .chart-heading .eyebrow {
        margin-bottom: 3px;
        font-size: 7px;
    }

    .chart-heading h2 {
        font-size: 10px;
    }

    .chart-controls {
        width: auto;
        gap: 4px;
    }

    #chart-feed-status {
        max-width: 88px;
        overflow: hidden;
        padding: 3px 4px;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 6px;
    }

    .asset-picker {
        min-height: 23px;
        gap: 3px;
        padding: 0 5px;
        font-size: 7px;
    }

    .asset-picker select {
        min-width: 62px;
        font-size: 7px;
    }

    #chart-container {
        height: clamp(138px, 16vh, 150px);
        min-height: clamp(138px, 16vh, 150px);
    }

    .chart-footnote {
        padding: 4px 3px 2px;
    }

    .panel-note {
        padding: 2px 8px 3px;
    }

    .council-panel {
        min-height: 0;
    }

    .council-panel .panel-heading {
        position: absolute;
        z-index: 4;
        top: 5px;
        right: 12px;
        left: 12px;
        min-height: 42px;
        padding: 5px 10px;
    }

    .council-meta {
        position: absolute;
        z-index: 4;
        top: 48px;
        right: 14px;
        left: 14px;
        min-height: 24px;
        justify-content: space-between;
        padding: 2px 6px;
    }

    .council-stage {
        min-height: clamp(400px, 54vh, 486px);
        margin: 0;
        overflow: visible;
    }

    .council-stage::before,
    .council-stage::after,
    .orbit {
        top: 52%;
    }

    .orbit-two {
        transform: translate(-50%, -50%) rotate(54deg) scaleY(0.66);
    }

    .orbit-three {
        transform: translate(-50%, -50%) rotate(-42deg) scaleY(0.58);
    }

    .orbit-core {
        top: 52%;
        width: clamp(270px, 37vh, 335px);
    }

    .council-node {
        width: clamp(94px, 15%, 110px);
    }

    .council-node::after {
        top: 50%;
        left: 50%;
        width: var(--leader-length);
        height: 1px;
        transform: rotate(var(--leader-angle));
        transform-origin: left center;
        background: linear-gradient(90deg, var(--node-light), transparent);
    }

    .council-summary {
        gap: 3px;
        margin: 0 8px 8px;
        padding: 7px 8px;
    }

    .council-summary > div {
        gap: 3px;
        padding: 0 5px;
    }

    .telemetry-core {
        min-height: clamp(170px, 20vh, 194px);
        gap: 12px;
        padding: 8px;
    }

    .telemetry-sparkline {
        height: 88px;
    }

    .telemetry-ring {
        width: 82px;
        height: 82px;
        flex-basis: 82px;
    }

    .telemetry-list {
        padding: 2px 10px;
    }

    .telemetry-row {
        min-height: 30px;
    }

    .execution-lock {
        padding: 8px;
    }

    .feed-provenance {
        margin: 6px 10px 8px;
        padding-top: 6px;
    }

    .matrix-section {
        margin-top: 6px;
        padding: 2px 16px 4px;
        transform: perspective(1400px) rotateX(3deg);
        transform-origin: center bottom;
    }

    .matrix-heading {
        min-height: 32px;
        margin-top: 4px;
    }

    .matrix-grid {
        gap: 8px;
        margin-top: 2px;
    }

    .matrix-card {
        min-height: 84px;
        grid-template-columns: 27px 1fr;
        gap: 3px 8px;
        padding: 7px 10px;
    }

    .matrix-icon {
        width: 25px;
        height: 25px;
    }

    .matrix-card strong {
        font-size: 12px;
    }

    .page-footer {
        padding: 6px 2px 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 1440px) {
    .badge,
    .state-chip,
    .market-panel,
    .telemetry-panel,
    .market-row,
    .asset-picker,
    .council-summary,
    .council-rationale-panel,
    .execution-lock,
    .matrix-card,
    .chart-workspace,
    .sbk1-menu-backdrop {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

@media screen and (min-width: 1240px) and (min-height: 600px) {
    body {
        height: 100vh;
        min-height: 0;
        overflow: hidden;
    }

    .app-shell {
        display: grid;
        width: min(1680px, calc(100% - 24px));
        height: 100vh;
        grid-template-rows: clamp(56px, 8vh, 68px) minmax(0, 1fr);
    }

    .topbar {
        height: 100%;
        min-height: 0;
    }

    .dashboard {
        display: grid;
        height: 100%;
        min-height: 0;
        grid-template-rows: minmax(0, 1fr) auto auto;
        gap: 4px;
        overflow: hidden;
        padding-top: 2px;
    }

    .hero-strip {
        display: none;
    }

    .terminal-grid {
        height: 100%;
        min-height: 0;
        grid-template-columns: minmax(300px, 0.98fr) minmax(440px, 1.5fr) minmax(270px, 0.9fr);
        align-items: stretch;
        gap: 6px;
    }

    .market-panel,
    .council-panel,
    .telemetry-panel {
        height: 100%;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(97, 205, 240, 0.42) transparent;
    }

    .market-panel,
    .telemetry-panel {
        width: 95%;
        height: 100%;
        align-self: center;
        justify-self: center;
        padding: clamp(7px, 1.3vh, 12px) 8px 5px;
    }

    .market-panel .panel-heading,
    .telemetry-panel .panel-heading {
        min-height: 36px;
        padding: 3px 8px;
    }

    .panel-heading h2 {
        font-size: 14px;
    }

    .market-table-head {
        grid-template-columns: minmax(62px, 0.9fr) minmax(76px, 1fr) minmax(52px, 0.7fr) 44px;
        gap: 4px;
        padding: 4px 8px;
        font-size: 9px;
    }

    .market-list {
        gap: 2px;
        padding: 0 4px;
    }

    .market-row {
        height: 32px;
        min-height: 32px;
        max-height: 32px;
        grid-template-columns: minmax(62px, 0.9fr) minmax(76px, 1fr) minmax(52px, 0.7fr) 44px;
        gap: 4px;
        padding: 2px 3px;
    }

    .market-row strong {
        font-size: 11px;
        line-height: 1.1;
    }

    .market-row small {
        font-size: 9px;
        line-height: 1.1;
    }

    .asset-change {
        font-size: 10px;
    }

    .market-foot {
        margin: 2px 6px 0;
        padding: 4px 0;
    }

    .chart-workspace {
        min-height: 0;
        margin-top: 4px;
        padding: 0 5px 4px;
    }

    .chart-heading {
        min-height: 34px;
        align-items: center;
        flex-direction: row;
        gap: 4px;
        padding: 3px 4px;
    }

    .chart-heading h2 {
        font-size: 11px;
    }

    .chart-controls {
        width: auto;
        gap: 4px;
    }

    .asset-picker {
        min-height: 24px;
        gap: 3px;
        padding: 0 5px;
        font-size: 9px;
    }

    .asset-picker select {
        min-width: 64px;
        font-size: 9px;
    }

    #chart-feed-status {
        max-width: 110px;
        overflow: hidden;
        padding: 3px 5px;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 8px;
    }

    #chart-container {
        height: clamp(88px, 15vh, 112px);
        min-height: clamp(88px, 15vh, 112px);
    }

    .council-panel {
        overflow-y: auto;
    }

    .council-panel .panel-heading {
        position: absolute;
        z-index: 4;
        top: 4px;
        right: 10px;
        left: 10px;
        min-height: 36px;
        padding: 4px 8px;
    }

    .council-meta {
        position: absolute;
        z-index: 4;
        top: 40px;
        right: 12px;
        left: 12px;
        min-height: 22px;
        justify-content: space-between;
        padding: 1px 5px;
    }

    .council-stage {
        height: clamp(220px, 37vh, 264px);
        min-height: 0;
        margin: 0;
        overflow: visible;
    }

    .council-stage::before,
    .council-stage::after,
    .orbit {
        top: 52%;
    }

    .orbit-core {
        top: 52%;
        width: clamp(190px, 33vh, 238px);
    }

    .council-node {
        width: clamp(82px, 15%, 104px);
        min-height: 46px;
        gap: 3px;
        padding: 4px 6px;
    }

    .node-heading strong {
        font-size: 9px;
        line-height: 1.2;
    }

    .node-vote {
        font-size: 11px;
    }

    .council-node small {
        font-size: 9px;
    }

    .council-summary {
        gap: 3px;
        margin: 0 8px 4px;
        padding: 5px 6px;
    }

    .council-summary > div {
        gap: 2px;
        padding: 0 4px;
    }

    .council-summary strong {
        font-size: 12px;
    }

    .council-rationale-panel {
        margin: 0 8px 4px;
    }

    .council-rationale-heading {
        min-height: 30px;
        padding: 4px 8px;
    }

    .council-rationale-list {
        max-height: clamp(120px, 22vh, 150px);
        gap: 4px;
        padding: 6px;
    }

    .council-rationale-card {
        padding: 6px 8px;
    }

    .council-rationale-card-heading strong {
        font-size: 10px;
    }

    .council-rationale-card p {
        margin-top: 4px;
        font-size: 10px;
        line-height: 1.4;
    }

    .telemetry-core {
        min-height: clamp(108px, 18vh, 130px);
        gap: 10px;
        padding: 8px;
    }

    .telemetry-sparkline {
        height: 48px;
    }

    .telemetry-value {
        font-size: 22px;
    }

    .telemetry-list {
        padding: 2px 10px;
    }

    .telemetry-row {
        min-height: 28px;
    }

    .telemetry-row,
    .telemetry-row strong {
        font-size: 10px;
    }

    .execution-lock {
        margin: auto 6px 0;
        padding: 7px 8px;
    }

    .feed-provenance {
        margin: 4px 8px 6px;
        padding-top: 4px;
    }

    .matrix-section {
        margin-top: 0;
        padding: 0 12px 4px;
    }

    .matrix-heading {
        min-height: 24px;
        margin-top: 2px;
    }

    .matrix-heading h2 {
        font-size: 13px;
    }

    .matrix-grid {
        gap: 6px;
        margin-top: 2px;
    }

    .matrix-card {
        min-height: clamp(54px, 8vh, 64px);
        grid-template-columns: 24px minmax(0, 1fr);
        gap: 2px 7px;
        padding: 5px 8px;
    }

    .matrix-icon {
        width: 22px;
        height: 22px;
        font-size: 14px;
    }

    .metric-label,
    .matrix-card small {
        font-size: 9px;
    }

    .matrix-card strong {
        font-size: 13px;
    }

    .page-footer {
        min-height: 14px;
        align-items: center;
        padding: 0 2px;
        font-size: 8px;
    }
}

@media screen and (min-width: 1240px) and (min-height: 600px) {
    .telemetry-core {
        min-height: clamp(96px, 15vh, 108px);
        align-items: flex-start;
        justify-content: flex-start;
        padding: 8px;
    }

    .telemetry-core > div:last-child {
        margin-left: auto;
        text-align: left;
    }

    .council-panel .panel-heading {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        margin: 4px 10px 0;
    }

    .council-meta {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        margin: 0 12px;
    }

    .council-stage {
        height: clamp(380px, 60vh, 400px);
        min-height: 0;
        margin: 0;
    }

    .council-stage::before,
    .council-stage::after,
    .orbit,
    .orbit-core {
        top: 50%;
    }

    .council-nodes {
        inset: 0 32px;
    }

    .orbit-core {
        width: clamp(150px, 25vh, 176px);
    }

    .council-node {
        width: clamp(74px, 13.5%, 84px);
        min-height: 60px;
        gap: 3px;
        padding: 4px 5px;
        border-color: rgba(102, 166, 197, 0.18);
        background: linear-gradient(145deg, rgba(8, 31, 49, 0.7), rgba(4, 15, 29, 0.64));
        box-shadow: 0 6px 16px rgba(2, 9, 18, 0.14);
    }

    .node-heading strong {
        overflow-wrap: anywhere;
        font-size: 10px;
        line-height: 1.15;
        text-overflow: clip;
        white-space: normal;
    }
}

@media screen and (min-width: 1240px) and (min-height: 600px) {
    .market-panel .panel-heading h2,
    .telemetry-panel .panel-heading h2 {
        font-size: 13px;
    }

    .market-panel .market-table-head {
        font-size: 9px;
        padding-top: 2px;
        padding-bottom: 2px;
    }

    .market-panel .market-list {
        gap: 1px;
    }

    .market-panel .market-row strong {
        font-size: 12px !important;
    }

    .market-panel .market-row small {
        font-size: 11px !important;
    }

    .market-panel .asset-change {
        font-size: 10px;
    }

    .market-panel .market-list .loading-state {
        min-height: 34px;
        padding: 4px 6px;
        font-size: 10px;
    }

    .market-panel .market-list.has-valid-market-data > .loading-state {
        display: none;
    }

    .market-panel .market-row {
        height: 24px;
        min-height: 24px;
        max-height: 24px;
        padding: 0 3px;
    }

    .market-panel .market-row strong {
        line-height: 1;
    }

    .market-panel .market-row small {
        font-size: 10px !important;
        line-height: 1;
    }

    .market-panel .market-foot {
        margin-top: 0;
        padding-top: 1px;
        padding-bottom: 1px;
    }

    .market-panel .market-foot > div {
        gap: 2px;
    }

    .market-panel .market-foot .metric-label,
    .telemetry-panel .metric-label {
        font-size: 11px !important;
    }

    .market-panel .market-foot strong {
        font-size: 11px !important;
    }

    .market-panel .chart-workspace {
        margin-top: 0;
    }

    .market-panel .chart-heading {
        min-height: 28px;
        padding-top: 1px;
        padding-bottom: 1px;
    }

    .market-panel .chart-heading h2 {
        font-size: 11px;
    }

    .market-panel #chart-symbol-label {
        font-size: 11px;
    }

    .market-panel .chart-title-caption {
        font-size: 8px;
    }

    .market-panel .chart-controls .asset-picker,
    .market-panel .chart-controls .asset-picker select {
        font-size: 9px;
    }

    .market-panel #chart-feed-status {
        font-size: 8px;
    }

    .market-panel #chart-container {
        height: clamp(200px, 32.5vh, 210px) !important;
        min-height: clamp(200px, 32.5vh, 210px) !important;
    }

    .market-panel #chart-container .klinecharts-pro-period-bar .symbol {
        font-size: 9px;
    }

    .market-panel #chart-container .klinecharts-pro-period-bar .period {
        font-size: 8px;
    }

    .telemetry-panel .telemetry-visual-heading strong {
        font-size: 9px;
    }

    .telemetry-panel .telemetry-visual > small,
    .telemetry-panel .telemetry-core small {
        font-size: 8px;
    }

    .telemetry-panel .telemetry-value {
        font-size: 20px !important;
    }

    .telemetry-panel .telemetry-row,
    .telemetry-panel .telemetry-row strong {
        font-size: 11px !important;
    }

    .telemetry-panel .execution-lock strong,
    .telemetry-panel .execution-lock small {
        font-size: 10px;
    }

    .telemetry-panel .feed-provenance strong {
        font-size: 12px;
    }

}

.matrix-section {
    transform: none;
}

.matrix-card,
.matrix-card:nth-child(even) {
    min-height: clamp(54px, 8vh, 64px);
    clip-path: none;
    background: linear-gradient(145deg, rgba(9, 36, 57, 0.96), rgba(4, 17, 32, 0.96));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.matrix-card .metric-label {
    color: #b7cfdf;
    font-size: 12px !important;
    line-height: 1.2;
}

.matrix-card strong {
    font-size: 16px !important;
    line-height: 1.2;
}

.matrix-card small {
    color: #9ab2c5;
    font-size: 11px !important;
    line-height: 1.25;
    white-space: normal;
}
