:root {
    --bg: #040607;
    --ink: #d9dde2;
    --muted: #6d747b;
    --accent: #82f4ee;
    --accent-rgb: 130,244,238;
    --accent-soft: rgba(var(--accent-rgb), .72);
    --accent-dim: rgba(var(--accent-rgb), .28);
    --line: rgba(225, 232, 238, .08);
    --line-hot: rgba(var(--accent-rgb), .28);
    --danger: #e89494;
    --voice-level: 0;
    --speed-outer: 24s;
    --speed-inner: 31s;
    --speed-micro: 70s;
    --ring-glow: .075;
    --topbar-height: 58px;
}

* { box-sizing: border-box; }

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: var(--bg);
    color: var(--ink);
    font-family: Consolas, "Segoe UI Mono", monospace;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 69% 45%, rgba(255,255,255,.026), transparent 34%),
        radial-gradient(circle at 77% 52%, rgba(var(--accent-rgb),.012), transparent 42%),
        linear-gradient(180deg, #050607 0%, #030405 100%);
}

button,
input { font: inherit; }
button { color: inherit; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.app-shell {
    position: relative;
    width: 100%;
    height: 100%;
    isolation: isolate;
}

.topbar {
    position: relative;
    z-index: 50;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 26px 0 30px;
    border-bottom: 1px solid rgba(225,232,238,.045);
    background: linear-gradient(180deg, rgba(3,5,6,.74), rgba(3,5,6,.18));
}

.brand-block,
.top-actions,
.connection-pill,
.talk-button,
.instance-toolbar > div {
    display: flex;
    align-items: center;
}

.brand-block { gap: 11px; }

.brand-home {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.brand-mark {
    position: relative;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(var(--accent-rgb),.32);
    transform: rotate(45deg);
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(var(--accent-rgb),.72);
}

.brand-name {
    color: #d9dde2;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .22em;
}

.brand-name span {
    margin-left: 7px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: .08em;
}

.brand-sub {
    margin-top: 4px;
    color: #51595f;
    font-size: 8px;
    letter-spacing: .12em;
}

.top-actions { gap: 13px; }

.connection-pill {
    gap: 7px;
    color: var(--muted);
    font-size: 8px;
    letter-spacing: .11em;
}

.connection-pill span,
.live-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--muted);
}

.connection-pill.online span,
.live-dot {
    background: var(--accent);
    box-shadow: 0 0 9px rgba(var(--accent-rgb),.6);
}

.connection-pill.online b { color: var(--accent); }

.state-readout {
    min-width: 68px;
    padding-left: 13px;
    border-left: 1px solid rgba(225,232,238,.07);
}

.identity-readout {
    min-width: 72px;
    padding-left: 13px;
    border-left: 1px solid rgba(225,232,238,.07);
}

.identity-readout small,
.identity-readout b { display: block; }
.identity-readout small { color: #525a60; font-size: 7px; letter-spacing: .12em; }
.identity-readout b { margin-top: 4px; color: #aeb6ba; font-size: 8px; letter-spacing: .12em; }

.state-readout small,
.state-readout b { display: block; }

.state-readout small {
    color: #525a60;
    font-size: 7px;
    letter-spacing: .12em;
}

.state-readout b {
    margin-top: 4px;
    color: var(--accent);
    font-size: 9px;
    letter-spacing: .14em;
}

.outline-button,
.send-button,
.talk-button,
.stop-button {
    height: 32px;
    border: 1px solid rgba(var(--accent-rgb),.22);
    border-radius: 0;
    background: rgba(var(--accent-rgb),.018);
    color: rgba(var(--accent-rgb),.82);
    cursor: pointer;
    font-size: 8px;
    letter-spacing: .12em;
    transition: background .14s ease, border-color .14s ease, color .14s ease;
}

.outline-button { padding: 0 14px; }

.outline-button:hover,
.send-button:hover,
.talk-button:hover,
.talk-button.active {
    border-color: rgba(var(--accent-rgb),.48);
    background: rgba(var(--accent-rgb),.06);
    color: var(--accent);
}

.menu-wrap { position: relative; }

.menu-button {
    width: 32px;
    height: 32px;
    display: grid;
    place-content: center;
    gap: 4px;
    padding: 0;
    border: 1px solid rgba(225,232,238,.09);
    background: transparent;
    cursor: pointer;
}

.menu-button span {
    width: 12px;
    height: 1px;
    background: #697279;
}

.menu-button:hover span,
.menu-button.open span { background: var(--accent); }

.menu-panel {
    position: absolute;
    top: 40px;
    right: 0;
    width: 330px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    padding: 0;
    border: 1px solid rgba(225,232,238,.09);
    background: rgba(5,8,9,.96);
    box-shadow: 0 18px 45px rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: .14s ease;
}

.menu-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-panel button {
    width: 100%;
    min-height: 34px;
    padding: 9px 12px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.035);
    background: transparent;
    color: var(--muted);
    text-align: left;
    cursor: pointer;
    font-size: 8px;
    letter-spacing: .09em;
}

.menu-panel button:hover { color: var(--accent); background: rgba(var(--accent-rgb),.035); }
.menu-panel button.danger:hover { color: var(--danger); background: rgba(232,148,148,.045); }
.menu-panel button > span {
    float: right;
    color: #3f474b;
    font-size: 6px;
    letter-spacing: .09em;
}
.menu-panel button.locked { color: #3f464a; }
.menu-panel button.locked > span { color: #665555; }

.menu-identity {
    padding: 15px 14px 13px;
    border-bottom: 1px solid rgba(225,232,238,.08);
    background: linear-gradient(90deg, rgba(var(--accent-rgb),.035), transparent 72%);
}
.menu-identity span,
.menu-identity b,
.menu-identity small { display: block; }
.menu-identity span { color: #50585d; font-size: 6px; letter-spacing: .13em; }
.menu-identity b { margin-top: 7px; color: #c3cace; font-size: 10px; letter-spacing: .12em; }
.menu-identity small { margin-top: 5px; color: rgba(var(--accent-rgb),.62); font-size: 7px; letter-spacing: .09em; }

.menu-group { padding: 9px 6px 3px; border-bottom: 1px solid rgba(225,232,238,.055); }
.menu-group h2 {
    margin: 0;
    padding: 2px 6px 7px;
    color: #4d555a;
    font-size: 6px;
    font-weight: 400;
    letter-spacing: .15em;
}
.menu-system { padding-bottom: 6px; }

.assistant-view {
    height: calc(100vh - var(--topbar-height));
    display: grid;
    grid-template-columns: minmax(470px, 46vw) 1fr;
    gap: 34px;
    padding: 22px 38px 30px;
    transition: opacity .22s ease, transform .22s ease;
}

.conversation-panel {
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-left: 24px;
    border-left: 1px solid rgba(225,232,238,.12);
}

.conversation-panel > .section-kicker { display: none; }

.section-kicker {
    color: #596166;
    font-size: 8px;
    letter-spacing: .15em;
}

.section-kicker span {
    margin-right: 9px;
    color: rgba(var(--accent-rgb),.78);
}

.transcript-log {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    margin: 0;
    padding: 15px 12px 18px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--accent-rgb),.22) transparent;
}

.transcript-log::-webkit-scrollbar { width: 3px; }
.transcript-log::-webkit-scrollbar-thumb { background: rgba(var(--accent-rgb),.26); }

.line {
    margin: 0 0 21px;
    opacity: 0;
    transform: translateY(4px);
    animation: line-in .2s ease forwards;
}

@keyframes line-in { to { opacity: 1; transform: translateY(0); } }

.who {
    display: inline-block;
    width: 84px;
    padding-top: 3px;
    color: #737b82;
    font-size: 11px;
    letter-spacing: .08em;
    vertical-align: top;
}

.line.hector .who,
.line.hermes .who { color: #c8cdd2; }
.line.user .who { color: #7f878e; }

.words {
    display: inline;
    color: #d5d9dd;
    font-size: 15px;
    line-height: 1.58;
    white-space: pre-wrap;
}

.work-feed {
    flex: 0 0 auto;
    min-height: 20px;
    margin: 0 0 8px 84px;
    padding-right: 10px;
    color: rgba(var(--accent-rgb),.34);
    font-size: 10px;
    line-height: 1.55;
    letter-spacing: .035em;
    pointer-events: none;
    transition: opacity .14s ease;
}

.work-line::before { content: "› "; color: rgba(var(--accent-rgb),.22); }
.work-feed.clearing { opacity: 0; }

.composer {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 8px;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(225,232,238,.07);
}

.composer input {
    min-width: 0;
    height: 38px;
    padding: 0 11px;
    border: 1px solid rgba(225,232,238,.10);
    border-radius: 0;
    outline: none;
    background: rgba(255,255,255,.015);
    color: var(--ink);
    font-size: 12px;
}

.composer input::placeholder { color: #50575c; }

.composer input:focus {
    border-color: rgba(var(--accent-rgb),.30);
    box-shadow: inset 2px 0 0 rgba(var(--accent-rgb),.28);
}

.send-button,
.talk-button,
.stop-button {
    height: 38px;
    min-width: 62px;
    padding: 0 13px;
}

.talk-button { gap: 8px; }
.stop-button {
    min-width: 64px;
    border-color: rgba(205,82,82,.28);
    color: #b67878;
}
.stop-button:not(:disabled):hover {
    border-color: rgba(222,91,91,.62);
    color: #e0a0a0;
    box-shadow: inset 2px 0 rgba(222,91,91,.45);
}
.stop-button:disabled {
    opacity: .24;
    cursor: default;
}
.talk-button span {
    width: 5px;
    height: 5px;
    border: 1px solid var(--accent);
    border-radius: 50%;
}

.input-meta {
    display: flex;
    justify-content: space-between;
    padding-top: 7px;
    color: #42494e;
    font-size: 7px;
    letter-spacing: .09em;
}

.relay-copy { display: none; }

.ring-dock {
    position: fixed;
    z-index: 10;
    top: calc(var(--topbar-height) + 1vh);
    right: 3.5vw;
    width: min(48vw, 760px);
    height: calc(100vh - var(--topbar-height) - 3vh);
    display: grid;
    grid-template-rows: minmax(0, 1fr) 94px;
    align-items: center;
    justify-items: center;
    pointer-events: none;
    transition: width .3s ease, height .3s ease, top .3s ease, right .3s ease, opacity .2s ease;
}

.disc-wrap {
    position: relative;
    width: min(60vh, 43vw, 640px);
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1;
    filter: drop-shadow(0 0 calc(11px + var(--voice-level) * 18px) rgba(225,232,238,var(--ring-glow)));
    transition: filter .12s linear;
}

#ringSvg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.ring-line { fill: none; stroke-linecap: square; }
.ring-line.thin { stroke: rgba(230,235,240,.40); stroke-width: 2.1; }
.ring-line.mid { stroke: rgba(225,230,235,.76); stroke-width: 5.5; }
.ring-line.heavy { stroke: rgba(240,244,248,.91); stroke-width: 11; }
.ring-line.aqua {
    stroke: var(--accent-soft);
    filter: drop-shadow(0 0 4px rgba(var(--accent-rgb),.16));
}
.ring-line.aqua-dim { stroke: var(--accent-dim); }

.outer,
.inner,
.micro { transform-origin: 256px 256px; }
.outer { animation: spin-cw var(--speed-outer) linear infinite; }
.inner { animation: spin-ccw var(--speed-inner) linear infinite; }
.micro { animation: spin-cw var(--speed-micro) linear infinite; }

@keyframes spin-cw { to { transform: rotate(360deg); } }
@keyframes spin-ccw { to { transform: rotate(-360deg); } }

.outer-flex,
.inner-flex,
.micro-flex {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform .055s linear;
}

.outer-flex {
    transform: scale(calc(1 + var(--voice-level) * .05)) rotate(calc(var(--voice-level) * 2deg));
}

.inner-flex {
    transform: scale(calc(1 - var(--voice-level) * .025)) rotate(calc(var(--voice-level) * -2.6deg));
}

.micro-flex { transform: scale(calc(1 + var(--voice-level) * .016)); }

.ring-core {
    position: absolute;
    inset: 29%;
    display: grid;
    place-items: center;
    border-radius: 50%;
    pointer-events: none;
}

.ring-core > span { display: none; }

.pixel-face,
.icon-emote {
    position: absolute;
    opacity: 0;
    color: #eef1f3;
    text-shadow: 0 0 12px rgba(255,255,255,.15);
    transform: scale(.92);
    transition: opacity .22s ease, transform .2s ease;
}

.pixel-face {
    font-family: "Courier New", Consolas, monospace;
    font-size: clamp(24px, 3vw, 50px);
    font-weight: 900;
    letter-spacing: -.08em;
    white-space: pre;
}

.icon-emote {
    font-family: "Segoe Fluent Icons", "Segoe MDL2 Assets", "Segoe UI Symbol", sans-serif;
    font-size: clamp(38px, 5vw, 76px);
    color: rgba(var(--accent-rgb),.94);
    text-shadow: 0 0 9px rgba(var(--accent-rgb),.18), 0 0 22px rgba(var(--accent-rgb),.06);
}

.pixel-face.show,
.icon-emote.show { opacity: .92; transform: scale(1); }
.icon-emote.error { color: rgba(255,145,145,.95); }
.icon-emote.warning { color: rgba(255,218,130,.95); }

.status-dot {
    position: absolute;
    bottom: 4%;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,.48);
    box-shadow: 0 0 8px rgba(255,255,255,.24);
    transform: translateX(-50%);
}

.wave-wrap {
    width: min(76%, 720px);
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    opacity: .28;
    transition: opacity .18s ease;
}

.wave-bar {
    width: 3px;
    min-height: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(var(--accent-rgb),.92), rgba(var(--accent-rgb),.72) 58%, rgba(var(--accent-rgb),.28));
    box-shadow: 0 0 6px rgba(var(--accent-rgb),.14);
    transform-origin: center;
    transition: height .045s linear, opacity .08s linear;
    opacity: .35;
}

.ring-caption {
    position: absolute;
    right: 2%;
    bottom: 3%;
    padding-left: 9px;
    border-left: 1px solid rgba(var(--accent-rgb),.20);
    font-size: 7px;
    line-height: 1.4;
    letter-spacing: .11em;
    opacity: 0;
    transition: opacity .2s ease;
}

.ring-caption span,
.ring-caption b { display: block; }
.ring-caption span { color: #555d62; }
.ring-caption b { margin-top: 3px; color: rgba(var(--accent-rgb),.75); font-size: 8px; }

body[data-state="idle"] {
    --speed-outer: 24s;
    --speed-inner: 31s;
    --speed-micro: 70s;
    --ring-glow: .075;
}

body[data-state="listening"] {
    --speed-outer: 9s;
    --speed-inner: 12s;
    --speed-micro: 25s;
    --ring-glow: .12;
}

body[data-state="thinking"] {
    --speed-outer: 1.35s;
    --speed-inner: 1.85s;
    --speed-micro: 4.5s;
    --ring-glow: .17;
}

body[data-state="speaking"] {
    --speed-outer: 7s;
    --speed-inner: 10s;
    --speed-micro: 18s;
    --ring-glow: .145;
}

body[data-state="listening"] .wave-wrap,
body[data-state="speaking"] .wave-wrap { opacity: .92; }
body[data-state="thinking"] .wave-wrap { opacity: .14; }

.amp-view {
    position: absolute;
    inset: var(--topbar-height) 0 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 180px 1fr;
    background: rgba(3,5,6,.97);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s linear;
}

body[data-view="amp"] .assistant-view {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
}

body[data-view="amp"] .amp-view {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body[data-view="amp"] .ring-dock {
    z-index: 35;
    top: 68px;
    right: 24px;
    width: 238px;
    height: 164px;
    grid-template-rows: 1fr;
}

body[data-view="amp"] .disc-wrap { width: 150px; }
body[data-view="amp"] .wave-wrap { display: none; }
body[data-view="amp"] .ring-caption { right: 0; bottom: 0; opacity: .72; }
body[data-view="amp"] .status-dot { width: 3px; height: 3px; }
body[data-view="amp"] .ring-core { inset: 32%; }

.portal-view {
    position: absolute;
    inset: var(--topbar-height) 0 0;
    z-index: 20;
    display: block;
    background:
        radial-gradient(circle at 88% 15%, rgba(var(--accent-rgb),.025), transparent 24%),
        rgba(3,5,6,.98);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s linear;
}

body[data-view="portal"] .assistant-view {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
}

body[data-view="portal"] .portal-view {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body[data-view="portal"] .ring-dock {
    z-index: 35;
    top: 68px;
    right: 24px;
    width: 238px;
    height: 164px;
    grid-template-rows: 1fr;
}
body[data-view="portal"] .disc-wrap { width: 150px; }
body[data-view="portal"] .wave-wrap { display: none; }
body[data-view="portal"] .ring-caption { right: 0; bottom: 0; opacity: .72; }
body[data-view="portal"] .status-dot { width: 3px; height: 3px; }
body[data-view="portal"] .ring-core { inset: 32%; }

.portal-content {
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: auto;
    padding: 34px clamp(28px, 5vw, 86px) 42px;
}
.portal-heading {
    min-height: 142px;
    display: flex;
    justify-content: space-between;
    gap: 90px;
    max-width: 1120px;
    padding-right: 170px;
}
.portal-heading h1 {
    margin: 17px 0 8px;
    color: #d7dcdf;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: clamp(25px, 2.3vw, 36px);
    font-weight: 300;
    letter-spacing: -.035em;
}
.portal-heading p { max-width: 690px; margin: 0; color: #6b7479; font-size: 10px; line-height: 1.55; }
.portal-heading-actions { display: flex; align-items: flex-start; gap: 8px; }
.portal-heading .outline-button { align-self: flex-start; white-space: nowrap; }
.portal-heading .section-kicker b { font-weight: 400; }

.portal-route-row {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: 1180px;
    border-bottom: 1px solid rgba(225,232,238,.075);
}
.portal-route-row > small {
    color: #475055;
    font-size: 7px;
    letter-spacing: .14em;
    white-space: nowrap;
}
.portal-route-row nav { display: flex; align-self: stretch; gap: 24px; }
.portal-route-row nav button {
    position: relative;
    border: 0;
    background: transparent;
    color: #626b70;
    cursor: pointer;
    font-size: 8px;
    letter-spacing: .10em;
}
.portal-route-row nav button::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    background: transparent;
}
.portal-route-row nav button:hover { color: #aab2b7; }
.portal-route-row nav button.active { color: var(--accent); }
.portal-route-row nav button.active::after { background: rgba(var(--accent-rgb),.55); }
.portal-route-row nav button span { margin-left: 8px; color: #765f5f; font-size: 6px; }

.portal-access-strip {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: clamp(28px, 5vw, 84px);
    max-width: 1180px;
}
.portal-access-strip > div {
    min-width: 0;
}
.portal-access-strip small,
.portal-access-strip b { display: block; }
.portal-access-strip small { color: #50585d; font-size: 7px; letter-spacing: .11em; }
.portal-access-strip b { margin-top: 6px; color: #aab2b7; font-size: 8px; letter-spacing: .07em; }

.portal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    column-gap: clamp(35px, 6vw, 100px);
    max-width: 1180px;
    padding-top: 18px;
}
.portal-grid.ui-settings-active { display: block; max-width: 1180px; }
.ui-settings-workspace { width: 100%; }
.ui-wallet-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid rgba(225,232,238,.075);
    border-bottom: 1px solid rgba(225,232,238,.075);
}
.ui-wallet-strip article { min-height: 104px; padding: 20px 24px 18px 0; }
.ui-wallet-strip article + article { padding-left: 32px; border-left: 1px solid rgba(225,232,238,.065); }
.ui-wallet-strip small,
.ui-wallet-strip b { display: block; }
.ui-wallet-strip small { color: #50585d; font-size: 7px; letter-spacing: .12em; }
.ui-wallet-strip b { margin-top: 11px; color: #c4cbcf; font-size: 17px; font-weight: 400; letter-spacing: .06em; }
.ui-wallet-strip b span { color: var(--accent); font-size: 8px; letter-spacing: .13em; }
.ui-wallet-strip p { margin: 9px 0 0; color: #596267; font-size: 7px; letter-spacing: .04em; }
.ui-colour-section { padding: 28px 0 10px; }
.ui-colour-section > header { display: flex; align-items: end; justify-content: space-between; margin-bottom: 20px; }
.ui-colour-section > header small { color: rgba(var(--accent-rgb),.68); font-size: 7px; letter-spacing: .13em; }
.ui-colour-section > header h2 {
    margin: 8px 0 0;
    color: #c2c9cc;
    font: 300 18px "Segoe UI", Arial, sans-serif;
    letter-spacing: -.01em;
}
.ui-colour-section > header p { margin: 7px 0 0; color: #596267; font-size: 8px; }
.ui-colour-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 10px; }
.ui-colour-card {
    position: relative;
    min-height: 150px;
    display: grid;
    grid-template-columns: 24px 1fr auto;
    grid-template-rows: auto auto 1fr;
    gap: 7px 11px;
    padding: 18px;
    border: 1px solid rgba(225,232,238,.085);
    background: rgba(4,7,8,.48);
    color: #818a8f;
    cursor: pointer;
    text-align: left;
}
.ui-colour-card:hover { border-color: color-mix(in srgb, var(--scheme-accent) 42%, transparent); }
.ui-colour-card.selected {
    border-color: color-mix(in srgb, var(--scheme-accent) 60%, transparent);
    background: linear-gradient(135deg, color-mix(in srgb, var(--scheme-accent) 5%, transparent), transparent 68%);
    box-shadow: inset 2px 0 color-mix(in srgb, var(--scheme-accent) 72%, transparent);
}
.ui-colour-card:disabled { opacity: .58; cursor: wait; }
.ui-colour-swatch {
    grid-row: 1 / 3;
    width: 22px;
    height: 22px;
    border: 1px solid color-mix(in srgb, var(--scheme-accent) 72%, transparent);
    background: color-mix(in srgb, var(--scheme-accent) 16%, transparent);
    box-shadow: 0 0 12px color-mix(in srgb, var(--scheme-accent) 22%, transparent);
}
.ui-colour-card b { color: #c3cacf; font-size: 10px; font-weight: 400; letter-spacing: .08em; }
.ui-colour-card > span { color: var(--scheme-accent); font-size: 6px; letter-spacing: .12em; }
.ui-colour-card small { grid-column: 2 / 4; color: #4f585d; font-size: 6px; letter-spacing: .07em; }
.ui-colour-card em {
    grid-column: 1 / 4;
    align-self: end;
    padding-top: 15px;
    border-top: 1px solid rgba(225,232,238,.055);
    color: #6b7479;
    font-size: 7px;
    font-style: normal;
    letter-spacing: .08em;
}
.ui-colour-card.selected em { color: color-mix(in srgb, var(--scheme-accent) 78%, #8a9397); }
.ui-colour-empty { grid-column: 1 / -1; color: #6d7479; font-size: 8px; letter-spacing: .1em; }
.portal-card {
    min-height: 112px;
    padding: 18px 0 24px;
    border-top: 1px solid rgba(225,232,238,.075);
}
.portal-card small,
.portal-card b { display: block; }
.portal-card small { color: #50585d; font-size: 7px; letter-spacing: .12em; }
.portal-card b { margin-top: 14px; color: #b9c1c5; font-size: 10px; font-weight: 400; letter-spacing: .07em; }
.portal-card p { margin: 9px 0 0; max-width: 460px; color: #5e676c; font-size: 8px; line-height: 1.65; }

.portal-grid.profile-summary .portal-card {
    min-height: 88px;
    display: grid;
    grid-template-columns: minmax(115px, .42fr) 1fr;
    grid-template-rows: auto auto;
    column-gap: 24px;
}
.portal-grid.profile-summary .portal-card small { grid-row: 1 / 3; padding-top: 2px; }
.portal-grid.profile-summary .portal-card b { margin-top: 0; }
.portal-grid.profile-summary .portal-card p { margin-top: 7px; }

.portal-grid.profile-editing { display: block; max-width: 1180px; }
.profile-editor-status {
    min-height: 34px;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 7px;
    letter-spacing: .12em;
}
.profile-editor-status.error { color: #c18d8d; }
.profile-edit-section {
    display: grid;
    grid-template-columns: minmax(180px, .45fr) minmax(0, 1.55fr);
    gap: clamp(28px, 5vw, 76px);
    padding: 26px 0 32px;
    border-top: 1px solid rgba(225,232,238,.075);
}
.profile-edit-section > header h2 {
    margin: 0;
    color: #bac2c6;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    font-weight: 300;
    letter-spacing: -.01em;
}
.profile-edit-section > header p {
    max-width: 260px;
    margin: 9px 0 0;
    color: #596267;
    font-size: 8px;
    line-height: 1.65;
}
.profile-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 16px 20px;
}
.profile-triple-form { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
.profile-field { display: grid; gap: 8px; min-width: 0; }
.profile-field.wide { grid-column: 1 / -1; }
.profile-field > span { color: #50585d; font-size: 7px; letter-spacing: .11em; }
.profile-field input,
.profile-field textarea {
    width: 100%;
    min-height: 37px;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid rgba(225,232,238,.14);
    outline: 0;
    background: transparent;
    color: #c7ced1;
    font: 10px/1.4 "Cascadia Mono", Consolas, monospace;
}
.profile-field textarea { min-height: 68px; resize: vertical; }
.profile-field input:focus,
.profile-field textarea:focus { border-bottom-color: rgba(var(--accent-rgb),.62); }
.profile-field input::placeholder,
.profile-field textarea::placeholder { color: #3f484c; }
.profile-save {
    width: max-content;
    min-width: 148px;
    min-height: 36px;
    align-self: end;
    padding: 0 16px;
    border: 1px solid rgba(var(--accent-rgb),.26);
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    font-size: 7px;
    letter-spacing: .12em;
}
.profile-save:hover { background: rgba(var(--accent-rgb),.04); border-color: rgba(var(--accent-rgb),.55); }


.linked-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    align-self: start;
}

.linked-game-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 20px;
    border: 1px solid rgba(225,232,238,.08);
    background:
        linear-gradient(
            135deg,
            rgba(var(--accent-rgb),.018),
            rgba(255,255,255,.006)
        );
}

.linked-game-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 42px;
    height: 1px;
    background: rgba(var(--accent-rgb),.65);
}

.linked-game-card.linked {
    border-color: rgba(var(--accent-rgb),.24);
    background:
        linear-gradient(
            135deg,
            rgba(var(--accent-rgb),.045),
            rgba(var(--accent-rgb),.008)
        );
}

.linked-game-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.linked-game-card-header h3 {
    margin: 0;
    color: #d2d8db;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: .01em;
}

.linked-game-badge {
    flex: 0 0 auto;
    padding: 5px 7px;
    border: 1px solid rgba(225,232,238,.09);
    color: #596267;
    font-size: 7px;
    letter-spacing: .12em;
}

.linked-game-card.linked .linked-game-badge {
    border-color: rgba(var(--accent-rgb),.3);
    color: var(--accent);
}

.linked-game-identity {
    min-height: 32px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(225,232,238,.055);
    color: #768086;
    font-size: 8px;
    line-height: 1.6;
    word-break: break-all;
    letter-spacing: .05em;
}

.linked-game-copy {
    flex: 1;
    margin: 15px 0 18px;
    max-width: 460px;
    color: #596267;
    font-size: 8px;
    line-height: 1.65;
}

.linked-game-action {
    margin-top: auto;
}

.linked-game-challenge {
    display: grid;
    gap: 7px;
    margin-top: 16px;
    padding: 14px 16px;
    border-left: 1px solid rgba(var(--accent-rgb),.45);
    background: rgba(var(--accent-rgb),.025);
}

.linked-game-challenge-label {
    color: #596267;
    font-size: 7px;
    letter-spacing: .12em;
}

.linked-game-code {
    color: var(--accent);
    font-family: Consolas, "Courier New", monospace;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: .16em;
}

.linked-game-command {
    display: block;
    width: max-content;
    max-width: 100%;
    padding: 8px 10px;
    border: 1px solid rgba(var(--accent-rgb),.16);
    background: rgba(0,0,0,.18);
    color: #c9d1d5;
    font-family: Consolas, "Courier New", monospace;
    font-size: 11px;
    white-space: normal;
    word-break: break-word;
}

.linked-game-waiting {
    margin-top: 3px;
    color: var(--accent);
    font-size: 7px;
    letter-spacing: .1em;
}

.profile-item-list {
    grid-column: 2;
    display: grid;
    gap: 1px;
    margin-top: -10px;
}
.profile-item-list > div {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid rgba(225,232,238,.045);
    color: #788186;
    font-size: 8px;
}
.profile-item-list button {
    border: 0;
    background: transparent;
    color: #876c6c;
    cursor: pointer;
    font-size: 6px;
    letter-spacing: .10em;
}
.profile-empty { margin: 0; color: #40484c; font-size: 7px; letter-spacing: .10em; }
.profile-avatar-form {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
}
.profile-avatar-preview,
.portal-grid.support-active {
    display: block;
    max-width: 1320px;
    padding-top: 0;
}

.portal-grid.server-status-active {
    display: block;
    max-width: 1320px;
    padding-top: 0;
}

.server-status-loading,
.server-status-empty {
    min-height: 150px;
    display: grid;
    place-items: center;
    color: #465055;
    font-size: 7px;
    letter-spacing: .12em;
}
.server-status-loading.error { color: #b87e7e; }
.cluster-status-overview,
.selected-server-status { min-width: 0; padding-bottom: 52px; }

.server-source-strip,
.cluster-summary-strip,
.selected-server-metrics,
.server-truth-strip {
    display: grid;
    border-top: 1px solid rgba(225,232,238,.075);
    border-bottom: 1px solid rgba(225,232,238,.075);
}
.server-source-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.server-source-strip > div {
    min-height: 58px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 15px;
    border-right: 1px solid rgba(225,232,238,.052);
}
.server-source-strip > div:first-child { padding-left: 0; }
.server-source-strip > div:last-child { border-right: 0; }
.server-source-strip small,
.server-source-strip b,
.server-summary-metric small,
.server-summary-metric b,
.server-summary-metric span { display: block; }
.server-source-strip small,
.server-summary-metric small {
    color: #4e585d;
    font-size: 6px;
    font-weight: 400;
    letter-spacing: .12em;
}
.server-source-strip b {
    margin-top: 7px;
    color: rgba(var(--accent-rgb),.72);
    font-size: 7px;
    font-weight: 400;
    letter-spacing: .08em;
}
.server-source-strip.stale b { color: #b99c68; }

.cluster-summary-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 25px;
}
.server-summary-metric {
    min-width: 0;
    min-height: 72px;
    padding: 16px 15px 13px;
    border-right: 1px solid rgba(225,232,238,.052);
}
.server-summary-metric:last-child { border-right: 0; }
.server-summary-metric b {
    margin-top: 8px;
    overflow: hidden;
    color: #bbc3c7;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: .07em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.server-summary-metric span {
    margin-top: 6px;
    color: #4d575c;
    font-size: 6px;
    line-height: 1.4;
    letter-spacing: .08em;
}

.cluster-history-panel {
    margin: 28px 0 15px;
    padding: 0 0 22px;
    border-bottom: 1px solid rgba(225,232,238,.06);
}
.cluster-history-panel > header,
.selected-server-heading,
.selected-server-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
}
.cluster-history-panel > header { min-height: 76px; padding-bottom: 18px; }
.cluster-history-panel header small,
.selected-server-title small,
.selected-server-heading label > small {
    display: block;
    color: #4f595e;
    font-size: 6px;
    letter-spacing: .12em;
}
.cluster-history-panel h2,
.selected-server-title h2 {
    margin: 8px 0 0;
    color: #ced4d7;
    font: 300 21px/1.1 "Segoe UI", Arial, sans-serif;
    letter-spacing: -.025em;
}
.cluster-history-panel p {
    max-width: 710px;
    margin: 8px 0 0;
    color: #596368;
    font: 7px/1.55 "Cascadia Mono", Consolas, monospace;
}
.server-range-controls { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.server-range-controls button,
.selected-server-heading > button {
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid rgba(225,232,238,.07);
    background: transparent;
    color: #596368;
    cursor: pointer;
    font-size: 6px;
    letter-spacing: .09em;
}
.server-range-controls button:hover,
.server-range-controls button.active,
.selected-server-heading > button:hover {
    border-color: rgba(var(--accent-rgb),.25);
    color: rgba(var(--accent-rgb),.82);
    background: rgba(var(--accent-rgb),.022);
}

.server-history-chart { min-width: 0; padding-top: 9px; }
.server-history-chart.large { padding-top: 12px; }
.server-history-chart svg {
    display: block;
    width: 100%;
    height: 74px;
    overflow: visible;
}
.server-history-chart.large svg { height: 142px; }
.server-chart-grid { stroke: rgba(225,232,238,.045); stroke-width: .65; }
.server-chart-band { opacity: .18; }
.server-chart-band.online { fill: rgba(var(--accent-rgb),.28); }
.server-chart-band.offline { fill: rgba(210,105,105,.38); }
.server-chart-band.partial { fill: rgba(203,171,99,.32); }
.server-player-line {
    fill: none;
    stroke: rgba(231,238,241,.86);
    stroke-width: 1.35;
    vector-effect: non-scaling-stroke;
}
.server-player-point { fill: #dfe6e9; }
.server-chart-empty {
    fill: #414a4f;
    font: 7px "Cascadia Mono", Consolas, monospace;
    letter-spacing: .08em;
}
.server-chart-axis {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 5px;
    color: #424c51;
    font-size: 6px;
    letter-spacing: .07em;
}
.server-chart-axis::before {
    content: "";
    position: absolute;
}

.server-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 1px 28px;
}
.server-overview-card {
    min-width: 0;
    min-height: 218px;
    padding: 18px 0 16px;
    border: 0;
    border-top: 1px solid rgba(225,232,238,.075);
    outline: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.server-overview-card:hover {
    border-top-color: rgba(var(--accent-rgb),.32);
    background: linear-gradient(90deg, rgba(var(--accent-rgb),.02), transparent 82%);
}
.server-overview-card.offline { border-top-color: rgba(210,105,105,.24); }
.server-overview-card.stale { opacity: .72; }
.server-overview-card > header,
.server-overview-card > footer,
.server-card-current {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}
.server-overview-card > header b,
.server-overview-card > header small { display: block; }
.server-overview-card > header b {
    color: #bac2c6;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: .07em;
}
.server-overview-card > header small {
    margin-top: 7px;
    color: #4d575c;
    font-size: 6px;
    letter-spacing: .08em;
}
.server-overview-card > header > span {
    color: rgba(var(--accent-rgb),.72);
    font-size: 6px;
    letter-spacing: .08em;
    white-space: nowrap;
}
.server-overview-card.offline > header > span { color: #c38484; }
.server-overview-card.stale > header > span { color: #b99c68; }
.server-card-current { justify-content: flex-start; margin: 11px 0 1px; }
.server-card-current .server-summary-metric { min-height: 50px; flex: 1; padding: 8px 18px 7px 0; }
.server-card-current .server-summary-metric + .server-summary-metric { padding-left: 18px; }
.server-overview-card > footer {
    align-items: center;
    margin-top: 10px;
    color: #465055;
    font-size: 6px;
    letter-spacing: .07em;
}
.server-overview-card > footer span:last-child { color: rgba(var(--accent-rgb),.58); }

.selected-server-heading {
    align-items: center;
    min-height: 72px;
    border-bottom: 1px solid rgba(225,232,238,.06);
}
.selected-server-heading label { min-width: 220px; }
.selected-server-heading select {
    width: 100%;
    margin-top: 7px;
    padding: 5px 0;
    border: 0;
    border-bottom: 1px solid rgba(225,232,238,.14);
    outline: 0;
    background: transparent;
    color: #b9c1c5;
    color-scheme: dark;
    font: 9px "Cascadia Mono", Consolas, monospace;
}
.selected-server-title { align-items: center; min-height: 105px; }
.selected-server-title > b {
    color: rgba(var(--accent-rgb),.76);
    font-size: 7px;
    font-weight: 400;
    letter-spacing: .10em;
}
.selected-server-title > b.offline { color: #c38484; }
.selected-server-title > b.stale { color: #b99c68; }
.selected-server-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.server-truth-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; }
.server-truth-strip .server-summary-metric { min-height: 84px; }

.support-loading,
.support-empty {
    min-height: 130px;
    display: grid;
    place-items: center;
    color: #465055;
    font-size: 7px;
    letter-spacing: .12em;
}
.support-desk { min-width: 0; padding-bottom: 50px; }
.support-desk-notice {
    min-height: 26px;
    display: flex;
    align-items: center;
    color: rgba(var(--accent-rgb),.70);
    font-size: 7px;
    letter-spacing: .1em;
}
.support-desk-notice.error { color: #b87e7e; }
.support-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(90px, 1fr));
    border-top: 1px solid rgba(225,232,238,.075);
    border-bottom: 1px solid rgba(225,232,238,.075);
}
.support-metric {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px;
    border: 0;
    border-right: 1px solid rgba(225,232,238,.055);
    background: transparent;
    color: #5a6469;
    cursor: pointer;
}
.support-metric:last-child { border-right: 0; }
.support-metric:hover,
.support-metric.active { color: rgba(var(--accent-rgb),.82); background: rgba(var(--accent-rgb),.018); }
.support-metric small { font-size: 6px; letter-spacing: .10em; }
.support-metric b { color: #aeb6ba; font-size: 10px; font-weight: 400; }
.support-layout {
    display: grid;
    grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
    min-height: 560px;
    border-bottom: 1px solid rgba(225,232,238,.065);
}
.support-ticket-index {
    min-width: 0;
    padding: 21px 20px 30px 0;
    border-right: 1px solid rgba(225,232,238,.065);
}
.support-ticket-index > header {
    min-height: 36px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    color: #596267;
    font-size: 7px;
    letter-spacing: .12em;
}
.support-primary-button,
.support-quiet-button {
    min-height: 31px;
    padding: 0 12px;
    border: 1px solid rgba(var(--accent-rgb),.23);
    background: transparent;
    color: rgba(var(--accent-rgb),.82);
    cursor: pointer;
    font: 6px "Cascadia Mono", Consolas, monospace;
    letter-spacing: .11em;
}
.support-primary-button:hover,
.support-quiet-button:hover { border-color: rgba(var(--accent-rgb),.48); background: rgba(var(--accent-rgb),.03); }
.support-primary-button:disabled,
.support-quiet-button:disabled { opacity: .38; cursor: default; }
.support-quiet-button { border-color: rgba(225,232,238,.10); color: #778186; }
.support-ticket-list { display: grid; gap: 0; padding-top: 7px; }
.support-ticket-card {
    position: relative;
    min-height: 104px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px 12px;
    padding: 15px 12px 13px;
    border: 0;
    border-top: 1px solid rgba(225,232,238,.06);
    outline: 0;
    background: transparent;
    color: #7c858a;
    text-align: left;
    cursor: pointer;
}
.support-ticket-card::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 1px;
    background: transparent;
}
.support-ticket-card:hover,
.support-ticket-card.selected { background: linear-gradient(90deg, rgba(var(--accent-rgb),.025), transparent 82%); }
.support-ticket-card.selected::before { background: rgba(var(--accent-rgb),.58); }
.support-ticket-ref { grid-column: 1 / -1; color: #4d585d; font-size: 6px; letter-spacing: .08em; }
.support-ticket-title {
    min-width: 0;
    overflow: hidden;
    color: #aeb5b9;
    font: 400 9px/1.45 "Segoe UI", Arial, sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.support-ticket-card .support-state { color: rgba(var(--accent-rgb),.72); font-size: 6px; letter-spacing: .08em; }
.support-ticket-card em,
.support-ticket-card time { color: #4a5459; font-size: 6px; font-style: normal; letter-spacing: .06em; }
.support-ticket-card time { text-align: right; }
.support-case-stage,
.support-create-panel { min-width: 0; padding: 23px 0 40px 30px; }
.support-case-heading {
    min-height: 86px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 2px 0 20px;
}
.support-case-heading small { color: #536066; font-size: 7px; letter-spacing: .1em; }
.support-case-heading h2 {
    margin: 10px 0 7px;
    color: #c9cfd2;
    font: 300 21px/1.2 "Segoe UI", Arial, sans-serif;
    letter-spacing: -.02em;
}
.support-case-heading p { max-width: 690px; margin: 0; color: #616a6f; font: 8px/1.6 "Cascadia Mono", Consolas, monospace; }
.support-case-state {
    min-width: 120px;
    align-self: flex-start;
    padding: 10px 0 10px 14px;
    border-left: 1px solid rgba(var(--accent-rgb),.25);
    text-align: right;
}
.support-case-state b,
.support-case-state small { display: block; }
.support-case-state b { color: rgba(var(--accent-rgb),.80); font-size: 8px; letter-spacing: .1em; }
.support-case-state small { margin-top: 7px; color: #5c666b; font-size: 6px; }
.priority-urgent { color: #d59a83 !important; }
.priority-high { color: #c3a66f !important; }
.support-admin-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(110px, 1fr)) auto;
    gap: 13px;
    align-items: end;
    padding: 16px 0 20px;
    border-top: 1px solid rgba(225,232,238,.065);
}
.support-field { min-width: 0; display: grid; gap: 7px; }
.support-field > span { color: #50595e; font-size: 6px; letter-spacing: .10em; }
.support-field input,
.support-field textarea,
.support-field select,
.support-reply-form textarea {
    width: 100%;
    min-height: 35px;
    padding: 7px 0;
    border: 0;
    border-bottom: 1px solid rgba(225,232,238,.14);
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: #bdc5c8;
    font: 9px/1.5 "Cascadia Mono", Consolas, monospace;
}
.support-field textarea,
.support-reply-form textarea { resize: vertical; }
.support-field select { color-scheme: dark; }
.support-field input:focus,
.support-field textarea:focus,
.support-field select:focus,
.support-reply-form textarea:focus { border-bottom-color: rgba(var(--accent-rgb),.58); }
.support-field input::placeholder,
.support-field textarea::placeholder,
.support-reply-form textarea::placeholder { color: #40494e; }
.support-section-heading {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 7px;
    border-top: 1px solid rgba(225,232,238,.065);
}
.support-section-heading b { color: #707a7f; font-size: 7px; font-weight: 400; letter-spacing: .12em; }
.support-section-heading small { color: #475156; font-size: 6px; letter-spacing: .07em; }
.support-evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(190px, 1fr)); gap: 1px 24px; }
.support-evidence {
    min-height: 112px;
    padding: 15px 14px 17px;
    border-left: 1px solid rgba(225,232,238,.08);
    background: linear-gradient(90deg, rgba(255,255,255,.012), transparent 78%);
}
.support-evidence.visual { border-left-color: rgba(193,164,99,.42); }
.support-evidence.confirmed { border-left-color: rgba(var(--accent-rgb),.42); }
.support-evidence small { color: #69615a; font-size: 6px; letter-spacing: .08em; }
.support-evidence.confirmed small { color: rgba(var(--accent-rgb),.62); }
.support-evidence b { display: block; margin-top: 9px; color: #9ba4a8; font-size: 8px; font-weight: 400; }
.support-evidence p { margin: 9px 0; color: #727c80; font: 8px/1.6 "Segoe UI", Arial, sans-serif; white-space: pre-wrap; }
.support-evidence time { color: #434d52; font-size: 6px; }
.support-evidence-form {
    display: grid;
    grid-template-columns: minmax(160px, .45fr) minmax(240px, 1fr) auto;
    gap: 14px;
    align-items: end;
    padding: 15px 0 21px;
}
.support-thread { display: grid; }
.support-message {
    padding: 15px 0 18px;
    border-top: 1px solid rgba(225,232,238,.045);
}
.support-message:first-child { border-top: 0; }
.support-message.internal { padding-left: 13px; border-left: 1px solid rgba(193,164,99,.32); }
.support-message.system { opacity: .68; }
.support-message > header { display: flex; align-items: baseline; gap: 10px; }
.support-message > header b { color: #aab2b6; font-size: 8px; font-weight: 400; }
.support-message > header small { color: #4c565b; font-size: 6px; letter-spacing: .06em; }
.support-message > p { max-width: 780px; margin: 9px 0 0; color: #8d969a; font: 9px/1.65 "Segoe UI", Arial, sans-serif; white-space: pre-wrap; }
.support-attachment {
    display: grid;
    grid-template-columns: minmax(100px, 220px) minmax(0, 1fr);
    gap: 15px;
    max-width: 680px;
    margin-top: 13px;
}
.support-attachment img { display: block; width: 100%; max-height: 170px; object-fit: contain; border: 1px solid rgba(225,232,238,.07); }
.support-attachment-meta { align-self: center; }
.support-attachment-meta b,
.support-attachment-meta small { display: block; }
.support-attachment-meta b { overflow: hidden; color: #737d81; font-size: 7px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.support-attachment-meta small { margin-top: 8px; color: #5c666b; font-size: 6px; letter-spacing: .07em; }
.support-attachment-meta .vision-pending { color: #b49a67; }
.support-attachment-meta .vision-completed { color: rgba(var(--accent-rgb),.66); }
.support-attachment-meta .vision-failed,
.support-attachment-meta .vision-unavailable { color: #a77777; }
.support-attachment-meta p { color: #646e73; font: 7px/1.5 "Segoe UI", Arial, sans-serif; }
.support-reply-form { margin-top: 12px; padding-top: 15px; border-top: 1px solid rgba(225,232,238,.07); }
.support-reply-form textarea { min-height: 72px; }
.support-form-actions {
    min-height: 45px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding-top: 9px;
}
.support-form-actions > .support-primary-button { margin-left: auto; }
.support-image-chooser { display: flex; align-items: center; gap: 10px; }
.support-image-chooser button {
    min-height: 29px;
    padding: 0 9px;
    border: 1px solid rgba(225,232,238,.09);
    background: transparent;
    color: #657075;
    cursor: pointer;
    font-size: 6px;
    letter-spacing: .08em;
}
.support-image-chooser small { max-width: 240px; overflow: hidden; color: #444e53; font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.support-image-chooser .support-image-remove { border-color: transparent; color: #8b6969; }
.support-image-remove[hidden] { display: none; }
.support-internal-toggle { margin-left: auto; color: #817763; font-size: 6px; letter-spacing: .08em; }
.support-internal-toggle input { accent-color: #9d895f; }
.support-create-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 20px 30px;
    padding-top: 17px;
    border-top: 1px solid rgba(225,232,238,.065);
}
.support-create-form .wide,
.support-create-form .support-form-actions { grid-column: 1 / -1; }

.community-avatar,
.community-message-avatar {
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-rgb),.13), rgba(var(--accent-rgb),.025) 62%, transparent 64%);
    color: rgba(var(--accent-rgb),.72);
    letter-spacing: .08em;
}
.profile-avatar-preview { width: 96px; height: 96px; border: 1px solid rgba(var(--accent-rgb),.18); font-size: 18px; }
.profile-avatar-preview img,
.community-avatar img,
.community-message-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-avatar-actions button {
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(var(--accent-rgb),.22);
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    font-size: 7px;
    letter-spacing: .11em;
}
.profile-avatar-actions button:last-child { border-color: rgba(203,137,137,.18); color: #916f6f; }
.portal-foot {
    display: flex;
    align-items: baseline;
    gap: 14px;
    max-width: 1180px;
    margin-top: 28px;
    padding-top: 13px;
    border-top: 1px solid rgba(225,232,238,.045);
    color: #444d51;
    font-size: 7px;
    letter-spacing: .09em;
}
.portal-foot b { color: #786565; font-weight: 400; }
.portal-foot small { margin-left: auto; color: #41494d; }

.community-view {
    position: absolute;
    inset: var(--topbar-height) 0 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    overflow: hidden;
    background:
        radial-gradient(circle at 77% 40%, rgba(var(--accent-rgb),.018), transparent 32%),
        linear-gradient(105deg, rgba(5,9,10,.99), rgba(3,5,6,.985) 38%, rgba(2,4,5,.99));
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s linear;
}
body[data-view="community"] .assistant-view {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
}
body[data-view="community"] .community-view { opacity: 1; visibility: visible; transform: translateY(0); }
body[data-view="community"] .ring-dock {
    z-index: 35;
    top: 61px;
    right: 12px;
    width: 118px;
    height: 86px;
    grid-template-rows: 1fr;
    pointer-events: none;
    opacity: .48;
}
body[data-view="community"] .disc-wrap { width: 76px; }
body[data-view="community"] .wave-wrap,
body[data-view="community"] .ring-caption { display: none; }
body[data-view="community"] .ring-core { inset: 34%; }

.community-channel-rail {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: 30px 20px 16px 28px;
    border-right: 1px solid rgba(225,232,238,.055);
    background: linear-gradient(90deg, rgba(5,9,10,.66), rgba(3,5,6,.22));
}
.community-channel-rail header { padding: 0 8px 24px 0; }
.community-channel-rail h1 {
    margin: 16px 0 7px;
    color: #cbd1d4;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 22px;
    font-weight: 300;
    letter-spacing: -.035em;
}
.community-channel-rail header p { margin: 0; color: #535c61; font-size: 8px; line-height: 1.6; }
#communityNav { overflow: auto; padding-right: 6px; }
.community-category { margin: 14px 0 23px; }
.community-category > header { display: flex; align-items: center; gap: 8px; padding: 0 7px 8px; }
.community-category > header b { color: #535c61; font-size: 7px; font-weight: 400; letter-spacing: .12em; }
.community-category > header button {
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #5c7375;
    cursor: pointer;
    font-size: 10px;
}
.community-channel-button {
    width: 100%;
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 8px;
    border: 0;
    border-left: 1px solid transparent;
    background: transparent;
    color: #757e83;
    cursor: pointer;
    font-size: 9px;
    letter-spacing: .03em;
    text-align: left;
}
.community-channel-button span { color: #415054; font-size: 12px; }
.community-channel-button small { margin-left: auto; color: #685b5b; font-size: 6px; letter-spacing: .08em; }
.community-channel-button:hover { color: #b6bec2; }
.community-channel-button.active {
    border-left-color: rgba(var(--accent-rgb),.55);
    background: linear-gradient(90deg, rgba(var(--accent-rgb),.055), transparent 72%);
    color: var(--accent);
}
.community-self {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 15px 7px 0;
    border-top: 1px solid rgba(225,232,238,.055);
}
.community-avatar { width: 31px; height: 31px; border: 1px solid rgba(var(--accent-rgb),.16); font-size: 9px; }
.community-self b,
.community-self small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-self b { color: #aab2b6; font-size: 8px; letter-spacing: .08em; }
.community-self small { margin-top: 4px; color: #50595e; font-size: 6px; letter-spacing: .10em; }

.community-stage {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    padding: 0 clamp(30px, 5vw, 86px) 18px;
}
.community-channel-heading {
    min-height: 118px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 19px 135px 14px 0;
    border-bottom: 1px solid rgba(225,232,238,.065);
}
.community-channel-heading small { color: #4d565b; font-size: 7px; letter-spacing: .13em; }
.community-channel-heading h2 { margin: 9px 0 5px; font: 300 25px/1.1 "Segoe UI", Arial, sans-serif; letter-spacing: -.025em; }
.community-channel-heading h2 span { margin-right: 7px; color: rgba(var(--accent-rgb),.52); }
.community-channel-heading h2 b { color: #d0d5d8; font-weight: 300; }
.community-channel-heading p { margin: 0; color: #626b70; font-size: 8px; line-height: 1.5; }
.community-heading-actions { display: flex; gap: 7px; }
.community-heading-actions button,
.community-drawer header button {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(var(--accent-rgb),.16);
    background: transparent;
    color: #7e8c8f;
    cursor: pointer;
    font-size: 7px;
    letter-spacing: .11em;
}
.community-heading-actions button:hover { color: var(--accent); border-color: rgba(var(--accent-rgb),.36); }
.community-notice {
    min-height: 27px;
    display: flex;
    align-items: center;
    color: rgba(var(--accent-rgb),.72);
    font-size: 7px;
    letter-spacing: .09em;
}
.community-notice.error { color: #b27d7d; }
.community-message-stream { min-height: 0; overflow: auto; padding: 8px 6px 12px 0; }
.community-empty { min-height: 150px; display: grid; place-items: center; color: #424b4f; font-size: 7px; letter-spacing: .11em; }
.community-message {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
    padding: 13px 10px 14px 4px;
    border-top: 1px solid rgba(225,232,238,.035);
}
.community-message:first-child { border-top-color: transparent; }
.community-message:hover { background: linear-gradient(90deg, rgba(255,255,255,.014), transparent 75%); }
.community-message.pinned::before {
    content: "PINNED";
    position: absolute;
    top: 13px;
    right: 12px;
    color: rgba(var(--accent-rgb),.52);
    font-size: 6px;
    letter-spacing: .12em;
}
.community-message-avatar { width: 38px; height: 38px; border: 1px solid rgba(225,232,238,.08); color: #718083; font-size: 10px; }
.community-message-body { min-width: 0; }
.community-message-meta { display: flex; align-items: baseline; gap: 9px; padding-right: 50px; }
.community-message-meta b { color: #b9c1c5; font-size: 9px; font-weight: 400; letter-spacing: .04em; }
.community-message-meta span { color: #4e575c; font-size: 6px; letter-spacing: .07em; }
.community-message-copy { margin: 7px 0 0; color: #a9b0b4; font: 10px/1.65 "Segoe UI", Arial, sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.community-message-copy a { color: rgba(var(--accent-rgb),.78); text-decoration: none; border-bottom: 1px solid rgba(var(--accent-rgb),.18); }
.community-message-copy a:hover { color: #c2fffb; }
.community-message.deleted .community-message-copy { color: #4c5559; font-style: italic; }
.community-message-image { display: block; max-width: min(600px, 88%); max-height: 420px; margin-top: 10px; object-fit: contain; border: 1px solid rgba(225,232,238,.08); }
.community-message-tools { min-height: 26px; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 7px; opacity: .72; }
.community-message:hover .community-message-tools { opacity: 1; }
.community-message-tools button,
.community-reaction {
    min-height: 23px;
    padding: 0 8px;
    border: 1px solid rgba(225,232,238,.07);
    background: transparent;
    color: #6d777b;
    cursor: pointer;
    font-size: 7px;
    letter-spacing: .06em;
}
.community-reaction.active { border-color: rgba(var(--accent-rgb),.27); color: var(--accent); background: rgba(var(--accent-rgb),.035); }
.community-reaction-picker { display: flex; gap: 3px; }
.community-reaction-picker button { min-width: 26px; padding: 0 4px; font-size: 12px; }

.community-composer {
    position: relative;
    border-top: 1px solid rgba(var(--accent-rgb),.15);
    background: linear-gradient(180deg, rgba(3,7,8,.88), rgba(3,5,6,.96));
}
.community-composer textarea {
    width: 100%;
    min-height: 60px;
    max-height: 150px;
    resize: vertical;
    padding: 15px 12px 8px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #cbd1d4;
    font: 11px/1.5 "Segoe UI", Arial, sans-serif;
}
.community-composer textarea::placeholder { color: #3f484c; }
.community-compose-actions { min-height: 38px; display: flex; align-items: center; gap: 12px; padding: 0 8px 7px; }
.community-compose-actions > div { position: relative; display: flex; gap: 5px; }
.community-compose-actions button {
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(225,232,238,.075);
    background: transparent;
    color: #6d777b;
    cursor: pointer;
    font-size: 7px;
    letter-spacing: .09em;
}
.community-compose-actions small { margin-left: auto; color: #41494d; font-size: 6px; letter-spacing: .08em; }
.community-compose-actions .community-send { min-width: 70px; border-color: rgba(var(--accent-rgb),.28); color: var(--accent); }
.community-compose-actions button:disabled,
.community-composer textarea:disabled { opacity: .35; cursor: default; }
.community-emoji-menu {
    position: absolute;
    z-index: 4;
    bottom: 35px;
    left: 48px;
    display: flex;
    gap: 3px;
    padding: 7px;
    border: 1px solid rgba(var(--accent-rgb),.14);
    background: #070b0c;
}
.community-emoji-menu[hidden] { display: none; }
.community-emoji-menu button { min-width: 31px; padding: 0; font-size: 14px; }
.community-reply-bar,
.community-attachment-preview {
    min-height: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-bottom: 1px solid rgba(225,232,238,.055);
    color: #697377;
    font-size: 7px;
}
.community-reply-bar[hidden],
.community-attachment-preview[hidden] { display: none; }
.community-reply-bar button,
.community-attachment-preview button { margin-left: auto; border: 0; background: transparent; color: #8d6f6f; cursor: pointer; font-size: 6px; }
.community-attachment-preview img { width: 38px; height: 38px; object-fit: cover; }

.community-drawer {
    position: absolute;
    z-index: 42;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(390px, 92vw);
    padding: 24px;
    border-left: 1px solid rgba(var(--accent-rgb),.13);
    background: rgba(4,7,8,.985);
    box-shadow: -24px 0 70px rgba(0,0,0,.42);
    transform: translateX(102%);
    transition: transform .22s ease;
}
.community-drawer.open { transform: translateX(0); }
.community-drawer > header { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid rgba(225,232,238,.07); }
.community-drawer > header small { color: #536065; font-size: 7px; letter-spacing: .12em; }
.community-drawer > header h2 { margin: 8px 0 0; color: #c8ced1; font: 300 20px/1.2 "Segoe UI", Arial, sans-serif; }
.community-drawer header button { min-width: 34px; padding: 0; font-size: 17px; }
#communityDrawerContent { height: calc(100% - 76px); overflow: auto; padding-top: 17px; }
.community-drawer-section { padding: 15px 0 22px; border-top: 1px solid rgba(225,232,238,.045); }
.community-drawer-section:first-child { border-top: 0; }
.community-drawer-section h3 { margin: 0 0 12px; color: #788286; font-size: 8px; font-weight: 400; letter-spacing: .1em; }
.community-drawer-form { display: grid; gap: 9px; }
.community-drawer-form input,
.community-drawer-form textarea,
.community-drawer-form select {
    width: 100%;
    min-height: 36px;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid rgba(225,232,238,.12);
    outline: 0;
    background: #040708;
    color: #abb3b7;
    font: 9px/1.4 Consolas, monospace;
}
.community-drawer-form textarea { min-height: 58px; resize: vertical; }
.community-drawer-form button,
.community-manage-row button {
    min-height: 33px;
    padding: 0 10px;
    border: 1px solid rgba(var(--accent-rgb),.18);
    background: transparent;
    color: #7fa3a3;
    cursor: pointer;
    font-size: 7px;
    letter-spacing: .09em;
}
.community-manage-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 5px; padding: 8px 0; }
.community-manage-row span { overflow: hidden; color: #788286; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.community-manage-row button:last-child { border-color: rgba(187,120,120,.16); color: #8b6969; }
.community-pinned-copy { padding: 11px 0; border-bottom: 1px solid rgba(225,232,238,.045); color: #929b9f; font: 9px/1.55 "Segoe UI", Arial, sans-serif; }
.community-pinned-copy small { display: block; margin-bottom: 6px; color: rgba(var(--accent-rgb),.58); font: 6px Consolas, monospace; letter-spacing: .08em; }

.welcome-gate {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(2,4,5,.96);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s linear;
}
.welcome-gate.open { opacity: 1; visibility: visible; }
.welcome-panel {
    position: relative;
    width: min(760px, 92vw);
    min-height: 430px;
    padding: 48px 54px 42px;
    border-top: 1px solid rgba(225,232,238,.14);
    border-bottom: 1px solid rgba(225,232,238,.08);
    background: radial-gradient(circle at 85% 22%, rgba(var(--accent-rgb),.035), transparent 31%);
    box-shadow: inset 1px 0 rgba(var(--accent-rgb),.12);
}
.welcome-mark {
    position: absolute;
    top: 46px;
    right: 52px;
    width: 66px;
    height: 66px;
    border: 1px solid rgba(var(--accent-rgb),.18);
    transform: rotate(45deg);
}
.welcome-mark span { position: absolute; inset: 22px; border: 1px solid rgba(var(--accent-rgb),.58); }
.welcome-stage { display: none; padding-top: 55px; }
.welcome-stage.active { display: block; animation: line-in .25s ease both; }
.welcome-overline { margin: 0 0 17px; color: rgba(var(--accent-rgb),.55); font-size: 8px; letter-spacing: .14em; }
.welcome-stage h1 {
    margin: 0 0 15px;
    color: #d7dcdf;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 200;
    letter-spacing: -.045em;
}
.welcome-stage > p:not(.welcome-overline) { max-width: 570px; margin: 0; color: #6b7479; font-size: 11px; line-height: 1.7; }
.welcome-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 34px 0 26px;
    border-top: 1px solid rgba(225,232,238,.075);
    border-bottom: 1px solid rgba(225,232,238,.055);
}
.welcome-fields div { padding: 13px 0; }
.welcome-fields div + div { padding-left: 22px; border-left: 1px solid rgba(225,232,238,.055); }
.welcome-fields small,
.welcome-fields b { display: block; }
.welcome-fields small { color: #50585d; font-size: 7px; letter-spacing: .11em; }
.welcome-fields b { margin-top: 8px; color: #9da6aa; font-size: 8px; letter-spacing: .08em; }
.welcome-next { margin-top: 27px; min-width: 135px; }
.welcome-signal { display: flex; align-items: center; gap: 9px; margin-top: 35px; color: #8e979b; font-size: 8px; letter-spacing: .1em; }

.amp-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 26px 14px 18px;
    border-right: 1px solid rgba(225,232,238,.07);
    background: rgba(255,255,255,.006);
}

.sidebar-label {
    margin: 0 8px 18px;
    color: #50585d;
    font-size: 7px;
    letter-spacing: .14em;
}

.amp-sidebar nav { display: grid; gap: 2px; }

.amp-sidebar nav button {
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 9px;
    border: 0;
    border-left: 1px solid transparent;
    background: transparent;
    color: #697176;
    cursor: default;
    text-align: left;
    font-size: 8px;
    letter-spacing: .09em;
}

.amp-sidebar nav button.active {
    border-left-color: rgba(var(--accent-rgb),.55);
    background: linear-gradient(90deg, rgba(var(--accent-rgb),.055), transparent 78%);
    color: var(--accent);
}

.amp-sidebar nav span { color: #596166; }

.sidebar-foot {
    margin-top: auto;
    padding: 13px 9px 4px;
    border-top: 1px solid rgba(225,232,238,.08);
}

.sidebar-foot span,
.sidebar-foot b,
.sidebar-foot small { display: block; }
.sidebar-foot span { color: #50585d; font-size: 7px; letter-spacing: .12em; }
.sidebar-foot b { margin-top: 7px; color: #a07d7d; font-size: 8px; letter-spacing: .08em; }
.sidebar-foot small { margin-top: 10px; color: #50585d; font-size: 7px; line-height: 1.5; }

.amp-content {
    min-width: 0;
    min-height: 0;
    overflow: auto;
    padding: 25px 28px 24px;
}

.amp-heading {
    min-height: 136px;
    display: flex;
    justify-content: space-between;
    gap: 250px;
}

.amp-heading h1 {
    margin: 16px 0 7px;
    max-width: 560px;
    color: #d7dcdf;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: clamp(23px, 2.15vw, 33px);
    font-weight: 300;
    letter-spacing: -.035em;
}

.amp-heading p { margin: 0; color: #6b7479; font-size: 10px; }
.return-button { display: none; }

.host-strip,
.instance-detail {
    display: grid;
    border-top: 1px solid rgba(225,232,238,.09);
    border-bottom: 1px solid rgba(225,232,238,.065);
    background: rgba(255,255,255,.006);
}

.host-strip { grid-template-columns: repeat(4, 1fr); }
.instance-detail { grid-template-columns: 1.4fr repeat(4, 1fr); margin-top: 14px; }

.host-strip > div,
.instance-detail > div {
    min-width: 0;
    padding: 12px 14px;
    border-right: 1px solid rgba(225,232,238,.055);
}

.host-strip > div:last-child,
.instance-detail > div:last-child { border-right: 0; }
.host-strip small,
.host-strip b,
.instance-detail small,
.instance-detail b { display: block; }
.host-strip small,
.instance-detail small { color: #50585d; font-size: 7px; letter-spacing: .11em; }
.host-strip b,
.instance-detail b { margin-top: 7px; color: #aab2b7; font-size: 9px; letter-spacing: .07em; }

.instance-controls {
    min-height: 53px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    border-bottom: 1px solid rgba(225,232,238,.065);
    background: rgba(255,255,255,.004);
}

.control-caption {
    min-width: 235px;
    padding: 11px 14px;
    border-right: 1px solid rgba(225,232,238,.055);
}

.control-caption small,
.control-caption b { display: block; }
.control-caption small { color: #50585d; font-size: 7px; letter-spacing: .11em; }
.control-caption b { margin-top: 7px; color: #aab2b7; font-size: 8px; letter-spacing: .08em; }

.control-actions { display: flex; align-items: stretch; margin-left: auto; }
.control-actions button {
    min-width: 94px;
    padding: 0 14px;
    border: 0;
    border-left: 1px solid rgba(225,232,238,.075);
    background: transparent;
    color: #768085;
    font-size: 7px;
    letter-spacing: .12em;
    cursor: pointer;
    transition: color .14s ease, background .14s ease;
}
.control-actions button:hover:not(:disabled) { color: var(--accent); background: rgba(var(--accent-rgb),.035); }
.control-actions button[data-instance-action="stop"]:hover:not(:disabled) { color: #d09a9a; background: rgba(208,154,154,.035); }
.control-actions button:disabled { color: #30373a; cursor: default; }

.instance-activity {
    margin-top: 14px;
    border-top: 1px solid rgba(225,232,238,.085);
    border-bottom: 1px solid rgba(225,232,238,.055);
    background: rgba(255,255,255,.004);
}
.instance-activity header {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border-bottom: 1px solid rgba(225,232,238,.045);
    color: #50585d;
    font-size: 7px;
    letter-spacing: .11em;
}
.instance-activity header > div { display: flex; align-items: center; gap: 8px; }
.instance-activity header b { color: #8f989d; font-weight: 400; }
.activity-feed {
    min-height: 86px;
    max-height: 142px;
    overflow: auto;
    padding: 9px 14px 11px;
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: 7px;
    line-height: 1.8;
}
.activity-line { display: grid; grid-template-columns: 62px 1fr; color: #687176; }
.activity-line time { color: #424a4e; }
.activity-line.current { color: var(--accent); }
.activity-line.error { color: #c18d8d; }
.activity-empty { color: #40484c; letter-spacing: .09em; }

.instance-toolbar {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #50585d;
    font-size: 7px;
    letter-spacing: .11em;
}

.instance-toolbar > div { gap: 8px; }
.instance-toolbar b { color: #919a9f; font-weight: 400; }

.instance-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 14px;
}

.instance-card {
    min-width: 0;
    min-height: 128px;
    padding: 14px;
    border: 0;
    border-top: 1px solid rgba(225,232,238,.105);
    background: linear-gradient(135deg, rgba(255,255,255,.012), transparent 72%);
    box-shadow: inset 1px 0 rgba(225,232,238,.045);
    cursor: pointer;
    text-align: left;
    transition: border-color .14s ease, background .14s ease, transform .14s ease;
}

.instance-card:hover,
.instance-card.selected {
    border-top-color: rgba(var(--accent-rgb),.42);
    background: linear-gradient(135deg, rgba(var(--accent-rgb),.043), transparent 72%);
    box-shadow: inset 1px 0 rgba(var(--accent-rgb),.28);
    transform: translateY(-1px);
}

.instance-card header,
.instance-stats,
.instance-bars > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.instance-card h2 {
    margin: 0;
    color: #c2c9cd;
    font-size: 10px;
    line-height: 1;
    letter-spacing: .08em;
}

.instance-status { color: var(--accent); font-size: 7px; letter-spacing: .1em; }
.instance-status.stopped,
.instance-status.suspended { color: #a07d7d; }
.instance-status.transitioning,
.instance-status.unknown { color: #c5a86a; }
.instance-type { margin: 8px 0 16px; color: #50585d; font-size: 7px; letter-spacing: .08em; }
.instance-stats { color: #687176; font-size: 7px; }
.instance-stats b { color: #99a2a7; font-weight: 400; }
.instance-bars { display: grid; gap: 6px; margin-top: 11px; }
.instance-bars > div { gap: 8px; color: #50585d; font-size: 6px; }
.meter { flex: 1; height: 1px; background: rgba(var(--accent-rgb),.08); }
.meter i { display: block; height: 100%; background: rgba(var(--accent-rgb),.50); }

.instance-empty {
    grid-column: 1 / -1;
    min-height: 128px;
    display: grid;
    place-items: center;
    padding: 24px;
    border-top: 1px solid rgba(225,232,238,.08);
    color: #626a6f;
    font-size: 8px;
    line-height: 1.4;
    letter-spacing: .1em;
    text-align: center;
}

@media (max-width: 1040px) {
    .connection-pill { display: none; }
    .assistant-view { grid-template-columns: minmax(390px, 52vw) 1fr; padding-left: 28px; }
    .ring-dock { right: 1vw; width: 47vw; }
    .instance-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
    .portal-grid { grid-template-columns: repeat(2, minmax(190px, 1fr)); }
    .portal-heading { padding-right: 150px; gap: 40px; }
    .ui-colour-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
    .server-source-strip,
    .cluster-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .server-source-strip > div:nth-child(2),
    .cluster-summary-strip .server-summary-metric:nth-child(2) { border-right: 0; }
    .server-source-strip > div:nth-child(-n+2),
    .cluster-summary-strip .server-summary-metric:nth-child(-n+2) { border-bottom: 1px solid rgba(225,232,238,.052); }
    .selected-server-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .selected-server-metrics .server-summary-metric:nth-child(3) { border-right: 0; }
    .selected-server-metrics .server-summary-metric:nth-child(-n+3) { border-bottom: 1px solid rgba(225,232,238,.052); }
    .support-metrics { grid-template-columns: repeat(3, minmax(90px, 1fr)); }
    .support-metric:nth-child(3) { border-right: 0; }
    .support-metric:nth-child(-n+3) { border-bottom: 1px solid rgba(225,232,238,.055); }
    .support-layout { grid-template-columns: minmax(220px, 270px) minmax(0, 1fr); }
    .community-view { grid-template-columns: 218px minmax(0, 1fr); }
    .community-stage { padding-right: 24px; padding-left: 28px; }
}

@media (max-width: 760px) {
    :root { --topbar-height: 54px; }
    .topbar { padding: 0 12px 0 16px; }
    .brand-sub,
    .state-readout,
    .identity-readout { display: none; }
    .brand-mark { width: 20px; height: 20px; }
    .mode-toggle { width: 38px; padding: 0; font-size: 0; }
    .mode-toggle::after { content: "AMP"; font-size: 8px; }
    body[data-view="amp"] .mode-toggle::after { content: "H"; }
    body[data-view="portal"] .mode-toggle::after { content: "H"; }
    body[data-view="community"] .mode-toggle::after { content: "H"; }
    .top-actions { gap: 7px; }
    .assistant-view { display: block; padding: 40vh 13px 12px; }
    .conversation-panel { height: 100%; padding-left: 12px; }
    .transcript-log { padding-top: 8px; }
    .who { width: 54px; font-size: 9px; }
    .words { font-size: 13px; }
    .work-feed { margin-left: 54px; }
    .ring-dock {
        top: 54px;
        right: 2vw;
        width: 96vw;
        height: 38vh;
        grid-template-rows: minmax(0, 1fr) 48px;
    }
    .disc-wrap { width: min(32vh, 72vw); }
    .wave-wrap { height: 46px; gap: 5px; }
    .wave-bar { width: 3px; }
    .input-meta span:last-child { display: none; }
    .amp-view { grid-template-columns: 1fr; }
    .amp-sidebar { display: none; }
    .amp-content { padding: 16px 13px; }
    .amp-heading { min-height: 132px; gap: 8px; }
    .amp-heading h1 { max-width: 56vw; font-size: 23px; }
    .amp-heading p { display: none; }
    body[data-view="amp"] .ring-dock { top: 60px; right: 3px; width: 156px; height: 112px; }
    body[data-view="amp"] .disc-wrap { width: 103px; }
    .portal-content { padding: 16px 13px 24px; }
    .portal-heading { min-height: 136px; padding-right: 145px; gap: 8px; }
    .portal-heading h1 { max-width: 58vw; font-size: 24px; }
    .portal-heading p { display: none; }
    .portal-heading-actions { display: grid; gap: 6px; }
    .portal-heading .outline-button { min-width: 92px; width: 92px; padding: 0 7px; font-size: 6px; }
    body[data-view="portal"] .ring-dock { top: 60px; right: 3px; width: 156px; height: 112px; }
    body[data-view="portal"] .disc-wrap { width: 103px; }
    .portal-route-row { display: block; padding: 8px 0 0; overflow-x: auto; }
    .portal-route-row > small { display: none; }
    .portal-route-row nav { min-height: 38px; gap: 18px; white-space: nowrap; }
    .portal-access-strip { min-height: 82px; flex-wrap: wrap; gap: 15px 32px; padding: 10px 0; }
    .portal-access-strip > div { min-width: 92px; }
    .portal-grid { grid-template-columns: 1fr; gap: 11px; }
    .ui-wallet-strip { grid-template-columns: 1fr; }
    .ui-wallet-strip article + article { padding-left: 0; border-top: 1px solid rgba(225,232,238,.055); border-left: 0; }
    .ui-colour-grid { grid-template-columns: 1fr; }
    .ui-colour-card { min-height: 130px; }
    .server-source-strip,
    .cluster-summary-strip,
    .selected-server-metrics,
    .server-truth-strip { grid-template-columns: 1fr; }
    .server-source-strip > div,
    .server-source-strip > div:first-child,
    .cluster-summary-strip .server-summary-metric,
    .selected-server-metrics .server-summary-metric,
    .server-truth-strip .server-summary-metric {
        min-height: 55px;
        padding: 11px 0;
        border-right: 0;
        border-bottom: 1px solid rgba(225,232,238,.052);
    }
    .server-source-strip > div:last-child,
    .cluster-summary-strip .server-summary-metric:last-child,
    .selected-server-metrics .server-summary-metric:last-child,
    .server-truth-strip .server-summary-metric:last-child { border-bottom: 0; }
    .cluster-history-panel > header,
    .selected-server-heading,
    .selected-server-title { display: block; }
    .cluster-history-panel > header { min-height: 0; }
    .server-range-controls { margin-top: 15px; overflow-x: auto; }
    .server-range-controls button { min-width: max-content; }
    .server-history-chart.large svg { height: 112px; }
    .server-chart-axis { font-size: 5px; }
    .server-overview-grid { grid-template-columns: 1fr; gap: 0; }
    .server-overview-card { min-height: 205px; }
    .selected-server-heading { padding: 16px 0; }
    .selected-server-heading label { display: block; min-width: 0; }
    .selected-server-heading > button { margin-top: 13px; }
    .selected-server-title { min-height: 92px; padding: 19px 0; }
    .selected-server-title > b { display: block; margin-top: 13px; }
    .support-metrics { grid-template-columns: repeat(2, minmax(90px, 1fr)); }
    .support-metric:nth-child(3) { border-right: 1px solid rgba(225,232,238,.055); }
    .support-metric:nth-child(even) { border-right: 0; }
    .support-metric:nth-child(-n+4) { border-bottom: 1px solid rgba(225,232,238,.055); }
    .support-layout { display: block; }
    .support-ticket-index { padding-right: 0; border-right: 0; border-bottom: 1px solid rgba(225,232,238,.065); }
    .support-ticket-list { max-height: 275px; overflow: auto; }
    .support-case-stage,
    .support-create-panel { padding: 23px 0 38px; }
    .support-case-heading { gap: 14px; }
    .support-case-heading h2 { font-size: 18px; }
    .support-case-state { min-width: 92px; }
    .support-admin-controls,
    .support-create-form,
    .support-evidence-form { grid-template-columns: 1fr; }
    .support-create-form .wide,
    .support-create-form .support-form-actions { grid-column: auto; }
    .support-evidence-grid { grid-template-columns: 1fr; }
    .support-form-actions { align-items: flex-start; flex-wrap: wrap; }
    .support-form-actions > .support-primary-button { margin-left: 0; }
    .support-image-chooser { min-width: 100%; flex-wrap: wrap; }
    .support-internal-toggle { margin-left: 0; }
    .support-attachment { grid-template-columns: 110px minmax(0, 1fr); }
    .portal-grid.profile-summary .portal-card { grid-template-columns: 102px 1fr; }
    .profile-edit-section { display: block; padding: 22px 0 28px; }
    .profile-edit-section > header { margin-bottom: 20px; }
    .profile-form,
    .profile-triple-form { grid-template-columns: 1fr; }
    .profile-item-list { grid-column: auto; margin-top: 16px; }
    .profile-avatar-form { grid-template-columns: 74px minmax(0, 1fr); }
    .profile-avatar-preview { width: 70px; height: 70px; }
    .portal-foot { display: grid; grid-template-columns: auto 1fr; }
    .portal-foot small { grid-column: 1 / -1; margin-left: 0; }
    .menu-panel { position: fixed; top: 58px; right: 8px; width: min(330px, calc(100vw - 16px)); max-height: calc(100vh - 66px); }
    .welcome-panel { min-height: 410px; padding: 35px 25px 30px; }
    .welcome-mark { top: 32px; right: 28px; width: 46px; height: 46px; }
    .welcome-mark span { inset: 15px; }
    .welcome-stage { padding-top: 52px; }
    .welcome-fields { grid-template-columns: 1fr; }
    .welcome-fields div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgba(225,232,238,.055); }
    .host-strip { grid-template-columns: repeat(2, 1fr); }
    .host-strip > div:nth-child(2) { border-right: 0; }
    .host-strip > div:nth-child(-n+2) { border-bottom: 1px solid rgba(225,232,238,.055); }
    .instance-grid { grid-template-columns: 1fr; gap: 11px; }
    .instance-detail { grid-template-columns: repeat(2, 1fr); }
    .instance-detail > div { border-bottom: 1px solid rgba(225,232,238,.055); }
    .instance-detail > div:nth-child(even) { border-right: 0; }
    .instance-controls { display: block; }
    .control-caption { border-right: 0; border-bottom: 1px solid rgba(225,232,238,.055); }
    .control-actions { display: grid; grid-template-columns: repeat(2, 1fr); }
    .control-actions button { min-height: 42px; border-bottom: 1px solid rgba(225,232,238,.045); }
    .community-view { display: block; overflow: auto; }
    .community-channel-rail { min-height: 0; display: block; padding: 18px 13px 8px; border-right: 0; border-bottom: 1px solid rgba(225,232,238,.055); }
    .community-channel-rail header { padding-bottom: 9px; }
    .community-channel-rail h1,
    .community-channel-rail header p,
    .community-self { display: none; }
    #communityNav { display: flex; gap: 7px; overflow-x: auto; padding: 6px 0 5px; }
    .community-category { display: contents; }
    .community-category > header { display: none; }
    .community-channel-button { min-width: max-content; width: auto; min-height: 31px; border-left: 0; border-bottom: 1px solid transparent; }
    .community-channel-button.active { border-bottom-color: rgba(var(--accent-rgb),.55); background: transparent; }
    .community-stage { min-height: calc(100vh - var(--topbar-height) - 75px); padding: 0 13px 12px; }
    .community-channel-heading { min-height: 99px; padding: 15px 105px 12px 0; }
    .community-channel-heading h2 { font-size: 20px; }
    .community-channel-heading p { max-width: 58vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .community-heading-actions { display: grid; position: absolute; top: 11px; right: 9px; }
    .community-heading-actions button { min-height: 27px; padding: 0 7px; font-size: 6px; }
    body[data-view="community"] .ring-dock { display: none; }
    .community-message { grid-template-columns: 32px minmax(0, 1fr); gap: 9px; padding-right: 0; }
    .community-message-avatar { width: 30px; height: 30px; }
    .community-message-image { max-width: 100%; }
    .community-compose-actions small { display: none; }
    .community-drawer { width: 100vw; padding: 19px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* v0.9.10 // visitor audio + hard interrupt */
.audio-settings-workspace { width: 100%; }
.audio-settings-panel {
    display: grid;
    gap: 22px;
    padding: 24px 0 10px;
    border-top: 1px solid rgba(225,232,238,.075);
}
.audio-settings-panel header small { color: rgba(var(--accent-rgb),.68); font-size: 7px; letter-spacing: .13em; }
.audio-settings-panel header h2 { margin: 8px 0 0; color: #c2c9cc; font: 300 18px "Segoe UI",Arial,sans-serif; }
.audio-settings-panel header p { max-width: 720px; margin: 8px 0 0; color: #596267; font-size: 8px; line-height: 1.55; }
.audio-control-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.audio-control-grid label { display: grid; gap: 8px; color: #50585d; font-size: 7px; letter-spacing: .11em; }
.audio-control-grid select,
.audio-control-grid input[type="range"] { width: 100%; }
.audio-control-grid select {
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid rgba(225,232,238,.11);
    background: #030506;
    color: #bdc5c9;
    font: 8px Consolas,monospace;
}
.audio-control-grid select:disabled { opacity: .4; }
.audio-volume-row { min-height: 38px; display: grid; grid-template-columns: 1fr 48px; gap: 10px; align-items: center; }
.audio-volume-row b { color: #aeb7bb; font-size: 8px; font-weight: 400; text-align: right; }
.audio-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.audio-actions button {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(var(--accent-rgb),.24);
    background: transparent;
    color: rgba(var(--accent-rgb),.82);
    font-size: 7px;
    letter-spacing: .09em;
    cursor: pointer;
}
.audio-status { margin: -7px 0 0; color: #687176; font-size: 7px; letter-spacing: .09em; }
.audio-note { padding: 18px 0; border-top: 1px solid rgba(225,232,238,.06); }
.audio-note small,.audio-note b { display: block; }
.audio-note small { color: #50585d; font-size: 7px; letter-spacing: .11em; }
.audio-note b { margin-top: 8px; color: #b9c1c5; font-size: 10px; font-weight: 400; }
.audio-note p { max-width: 760px; margin: 8px 0 0; color: #596267; font-size: 8px; line-height: 1.55; }
@media (max-width: 760px) {
    .composer { grid-template-columns: 1fr auto auto auto; }
    .composer input { grid-column: 1 / -1; }
    .audio-control-grid { grid-template-columns: 1fr; }
}

/* v0.9.9 // cosmetic render stack: UI/ring > particles > background > black */
.cosmetic-background-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    opacity: 0;
    transition: opacity .35s ease;
}
.cosmetic-background-layer.active { opacity: .72; }
.cosmetic-background-layer::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.78) 30%, rgba(0,0,0,.22) 67%, rgba(0,0,0,.16) 100%),
        linear-gradient(180deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.48) 29%, rgba(0,0,0,.12) 72%, rgba(0,0,0,.36) 100%);
}
.cosmetic-background-layer[data-veil="dragon"]::after {
    background:
        radial-gradient(circle at 78% 78%, rgba(110,20,12,.08), transparent 39%),
        linear-gradient(90deg, rgba(0,0,0,.97) 0%, rgba(0,0,0,.83) 34%, rgba(0,0,0,.26) 69%, rgba(0,0,0,.17) 100%),
        linear-gradient(180deg, rgba(0,0,0,.97) 0%, rgba(0,0,0,.62) 26%, rgba(0,0,0,.14) 68%, rgba(0,0,0,.34) 100%);
}
.cosmetic-particle-layer {
    position: fixed;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.app-shell { z-index: 2; }

.ring-cosmetic-overlay {
    position: absolute;
    inset: -1.8%;
    z-index: 4;
    width: 103.6%;
    height: 103.6%;
    object-fit: contain;
    pointer-events: none;
    transform-origin: 50% 50%;
    transform: scale(calc(var(--ring-overlay-scale, 1) + var(--voice-level) * .018));
    filter:
        drop-shadow(0 0 calc(5px + var(--voice-level) * 7px) rgba(var(--ring-fixed-rgb, 255,58,50), .22))
        drop-shadow(0 0 12px rgba(var(--ring-fixed-rgb, 255,58,50), .08));
    transition: transform .055s linear, opacity .2s ease;
    animation: ring-cosmetic-drift 7s ease-in-out infinite;
}
@keyframes ring-cosmetic-drift {
    0%,100% { margin-top: 0; }
    50% { margin-top: -2px; }
}
.ring-dock.ring-cosmetic-fixed .ring-line.aqua { stroke: var(--ring-fixed-accent, #ff3a32); filter: drop-shadow(0 0 4px rgba(var(--ring-fixed-rgb,255,58,50),.18)); }
.ring-dock.ring-cosmetic-fixed .ring-line.aqua-dim { stroke: rgba(var(--ring-fixed-rgb,255,58,50), .34); }
.ring-dock.ring-cosmetic-fixed .status-dot { background: var(--ring-fixed-accent, #ff3a32); box-shadow: 0 0 9px rgba(var(--ring-fixed-rgb,255,58,50),.55); }

.cosmetic-workspace,
.management-workspace { width: 100%; }
.cosmetic-section { padding: 28px 0 10px; border-top: 1px solid rgba(225,232,238,.065); }
.cosmetic-section:first-of-type { border-top: 0; }
.cosmetic-section > header { display: flex; align-items: end; justify-content: space-between; margin-bottom: 18px; }
.cosmetic-section > header small,
.collection-strip small { color: rgba(var(--accent-rgb),.68); font-size: 7px; letter-spacing: .13em; }
.cosmetic-section > header h2 {
    margin: 8px 0 0;
    color: #c2c9cc;
    font: 300 18px "Segoe UI", Arial, sans-serif;
}
.cosmetic-section > header p { margin: 7px 0 0; color: #596267; font-size: 8px; }
.cosmetic-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 10px; }
.cosmetic-card {
    min-height: 182px;
    display: grid;
    grid-template-rows: 88px 1fr;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(225,232,238,.085);
    background: rgba(4,7,8,.53);
    color: #818a8f;
    text-align: left;
}
button.cosmetic-card { cursor: pointer; }
button.cosmetic-card:hover { border-color: rgba(var(--accent-rgb),.32); }
.cosmetic-card.selected {
    border-color: rgba(var(--accent-rgb),.52);
    background: linear-gradient(135deg, rgba(var(--accent-rgb),.045), transparent 68%);
    box-shadow: inset 2px 0 rgba(var(--accent-rgb),.66);
}
.cosmetic-card:disabled { cursor: default; opacity: .62; }
.cosmetic-preview {
    position: relative;
    min-height: 88px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 1px solid rgba(225,232,238,.055);
    background:
        radial-gradient(circle at center, color-mix(in srgb, var(--preview-accent, var(--accent)) 7%, transparent), transparent 62%),
        #020405;
}
.cosmetic-preview img { width: 100%; height: 100%; object-fit: contain; }
.cosmetic-background .cosmetic-preview img { object-fit: cover; object-position: 73% 74%; }
.cosmetic-preview.colour-preview::before {
    content: "";
    width: 52px;
    height: 52px;
    border: 1px solid color-mix(in srgb, var(--preview-accent, var(--accent)) 70%, transparent);
    background: color-mix(in srgb, var(--preview-accent, var(--accent)) 18%, transparent);
    box-shadow: 0 0 22px color-mix(in srgb, var(--preview-accent, var(--accent)) 24%, transparent);
}
.cosmetic-preview.native-preview { color: color-mix(in srgb, var(--preview-accent, var(--accent)) 78%, #d8dfe2); font-size: 28px; letter-spacing: .12em; }
.cosmetic-preview.particle-preview i {
    position: absolute;
    width: 3px; height: 3px; border-radius: 50%;
    background: var(--preview-accent, var(--accent));
    box-shadow: 0 0 8px var(--preview-accent, var(--accent));
}
.cosmetic-preview.particle-preview i:nth-child(1){left:18%;top:70%}.cosmetic-preview.particle-preview i:nth-child(2){left:31%;top:49%}.cosmetic-preview.particle-preview i:nth-child(3){left:47%;top:67%}.cosmetic-preview.particle-preview i:nth-child(4){left:62%;top:38%}.cosmetic-preview.particle-preview i:nth-child(5){left:77%;top:62%}.cosmetic-preview.particle-preview i:nth-child(6){left:84%;top:29%}.cosmetic-preview.particle-preview i:nth-child(7){left:53%;top:24%}.cosmetic-preview.particle-preview i:nth-child(8){left:27%;top:27%}.cosmetic-preview.particle-preview i:nth-child(9){left:70%;top:78%}
.cosmetic-meta { display: grid; grid-template-columns: 1fr auto; gap: 5px 9px; min-width: 0; }
.cosmetic-meta b { color: #c4cbcf; font-size: 9px; font-weight: 400; letter-spacing: .07em; }
.cosmetic-meta small { color: #4c555a; font-size: 6px; letter-spacing: .06em; }
.cosmetic-meta p { grid-column: 1 / -1; margin: 1px 0 4px; color: #626b70; font-size: 7px; line-height: 1.45; }
.cosmetic-status { grid-column: 1 / -1; padding-top: 7px; border-top: 1px solid rgba(225,232,238,.05); color: rgba(var(--accent-rgb),.68); font-size: 6px; letter-spacing: .1em; }

.collection-strip {
    display: grid;
    gap: 7px;
    padding: 20px 0 22px;
    border-bottom: 1px solid rgba(225,232,238,.075);
}
.collection-strip b { color: #c4cbcf; font-size: 13px; font-weight: 400; letter-spacing: .08em; }
.collection-strip span { color: #596267; font-size: 8px; line-height: 1.5; }
.collection-strip.trophy { border-top: 1px solid rgba(225,232,238,.075); }
.store-grid { padding-top: 20px; }
.achievement-list { display: grid; gap: 12px; padding-top: 18px; }
.achievement-card { padding: 18px; border: 1px solid rgba(225,232,238,.075); background: rgba(4,7,8,.46); }
.achievement-card.completed { border-color: rgba(var(--accent-rgb),.28); box-shadow: inset 2px 0 rgba(var(--accent-rgb),.55); }
.achievement-card > header { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.achievement-card > header small { color: #555e63; font-size: 7px; letter-spacing: .11em; }
.achievement-card > header h2 { margin: 6px 0 5px; color: #c3cacf; font: 300 17px "Segoe UI", Arial, sans-serif; }
.achievement-card > header p { margin: 0; color: #616a6f; font-size: 8px; }
.achievement-card > header > b { color: #596267; font-size: 7px; font-weight: 400; letter-spacing: .12em; }
.achievement-card.completed > header > b { color: var(--accent); }
.achievement-rewards { display: grid; grid-template-columns: repeat(4, minmax(140px,1fr)); gap: 9px; }
.achievement-rewards .cosmetic-card { min-height: 150px; grid-template-rows: 66px 1fr; }
.achievement-rewards .cosmetic-preview { min-height: 66px; }

.management-loading { padding: 30px 0; color: rgba(var(--accent-rgb),.62); font-size: 8px; letter-spacing: .12em; }
.management-summary { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid rgba(225,232,238,.075); border-bottom: 1px solid rgba(225,232,238,.075); }
.management-summary article { padding: 18px 20px 18px 0; }
.management-summary article + article { padding-left: 24px; border-left: 1px solid rgba(225,232,238,.06); }
.management-summary small,.management-summary b { display:block; }
.management-summary small { color:#51595f;font-size:7px;letter-spacing:.12em; }
.management-summary b { margin-top:9px;color:#c2c9cc;font-size:11px;font-weight:400; }
.management-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding-top:18px; }
.management-panel { display:grid; align-content:start; gap:11px; padding:16px; border:1px solid rgba(225,232,238,.075); background:rgba(4,7,8,.48); }
.management-panel.wide { grid-column:1/-1; }
.management-panel h2 { margin:0 0 4px;color:#bcc4c8;font:300 14px "Segoe UI",Arial,sans-serif; }
.management-panel p { margin:0;color:#596267;font-size:7px;line-height:1.5; }
.management-panel label { display:grid; gap:6px;color:#50585d;font-size:6px;letter-spacing:.1em; }
.management-panel input,.management-panel select,.management-panel textarea { width:100%; min-height:34px; padding:7px 8px; border:1px solid rgba(225,232,238,.11); background:#030506; color:#bdc5c9; font:8px Consolas,monospace; }
.management-panel textarea { min-height:74px; resize:vertical; }
.management-panel button { min-height:34px; border:1px solid rgba(var(--accent-rgb),.24); background:transparent; color:rgba(var(--accent-rgb),.82); font-size:7px; letter-spacing:.09em; cursor:pointer; }
.management-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.management-form-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.management-form-grid .wide { grid-column:1/-1; }

@media (max-width: 1120px) {
    .cosmetic-grid, .achievement-rewards { grid-template-columns: repeat(2, minmax(160px,1fr)); }
    .management-grid { grid-template-columns:1fr 1fr; }
    .management-panel.wide { grid-column:1/-1; }
    .management-form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
    .cosmetic-grid, .achievement-rewards { grid-template-columns:1fr; }
    .management-summary, .management-grid { grid-template-columns:1fr; }
    .management-summary article + article { padding-left:0; border-left:0; border-top:1px solid rgba(225,232,238,.06); }
    .management-panel.wide { grid-column:auto; }
    .management-form-grid { grid-template-columns:1fr; }
}


/* ==========================================================
   HERMES AUTH GATE // v0.9.18
   ========================================================== */

.auth-panel {
    width: min(760px, 94vw);
}

.auth-entry-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
}

.auth-entry-actions .outline-button {
    min-width: 150px;
}

.auth-primary {
    border-color: rgba(var(--accent-rgb), .42) !important;
    color: rgba(var(--accent-rgb), .92) !important;
    box-shadow: inset 0 0 20px rgba(var(--accent-rgb), .025);
}

.auth-form {
    display: grid;
    gap: 17px;
    width: min(520px, 100%);
    margin-top: 26px;
}

.auth-form label {
    display: grid;
    gap: 7px;
}

.auth-form label > span,
.auth-rule {
    color: #677276;
    font-size: 7px;
    line-height: 1.5;
    letter-spacing: .13em;
}

.auth-form input {
    width: 100%;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid rgba(225,232,238,.09);
    outline: none;
    background: rgba(5,8,9,.86);
    color: #bec7ca;
    font: 12px Consolas, "Segoe UI Mono", monospace;
    letter-spacing: .025em;
    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

.auth-form input:focus {
    border-color: rgba(var(--accent-rgb), .36);
    background: rgba(6,10,11,.96);
    box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .05);
}

.auth-password-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px;
    gap: 7px;
}

.auth-show-password {
    border: 1px solid rgba(225,232,238,.08);
    background: rgba(5,8,9,.72);
    color: #687377;
    font: 7px Consolas, monospace;
    letter-spacing: .11em;
    cursor: pointer;
}

.auth-show-password:hover {
    border-color: rgba(var(--accent-rgb), .24);
    color: rgba(var(--accent-rgb), .72);
}

.auth-status {
    min-height: 18px;
    color: #697478;
    font-size: 7px;
    line-height: 1.6;
    letter-spacing: .09em;
}

.auth-status.error {
    color: #b87a7a;
}

.auth-status.success {
    color: rgba(var(--accent-rgb), .74);
}

.auth-form button:disabled {
    opacity: .42;
    cursor: wait;
}

@media (max-width: 620px) {
    .auth-panel {
        padding: 34px 26px 30px;
    }

    .auth-entry-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .auth-entry-actions .outline-button {
        width: 100%;
    }

    .auth-password-row {
        grid-template-columns: minmax(0, 1fr) 58px;
    }
}


/* ==========================================================
   HERMES REGISTRATION UI // v0.9.19
   ========================================================== */

.auth-inline-status {
    margin-top: -9px;
}

.auth-code-input {
    max-width: 260px;
    height: 58px !important;
    font-size: 23px !important;
    letter-spacing: .34em !important;
    text-align: center;
}

.auth-development-code {
    width: fit-content;
    padding: 8px 11px;
    border: 1px solid rgba(var(--accent-rgb), .18);
    background: rgba(var(--accent-rgb), .025);
    color: rgba(var(--accent-rgb), .66);
    font: 8px/1.5 Consolas, monospace;
    letter-spacing: .09em;
}


/* ==========================================================
   HERMES SIGN OUT // v0.9.20
   ========================================================== */

.auth-signout {
    opacity: .72;
}

.auth-signout:hover {
    opacity: 1;
}

.auth-signout:disabled,
[data-auth-action="logout"]:disabled {
    opacity: .35;
    cursor: wait;
}

.linked-game-challenge[hidden] {
    display: none;
}
