@font-face {
    font-family: "RimCondensed";
    src: url("fonts/Oswald-Variable.ttf") format("truetype");
    font-style: normal;
    font-weight: 200 700;
    font-display: swap;
}

:root {
    --font-system: Inter, "Segoe UI", Arial, sans-serif;
    --font-condensed: "RimCondensed", "Arial Narrow", sans-serif;
    --font-serif: Georgia, serif;
    --font-monospace: "Cascadia Code", Consolas, monospace;
    --ink: #d5d2cb;
    --ink-muted: #858b8c;
    --surface: #090d10;
    --surface-raised: #10161a;
    --line: #45423c;
    --line-bright: #726957;
    --amber: #c99147;
    --amber-bright: #e3b86f;
    --rim-button-fill: #6b532f;
    --rim-button-fill-top: #6f5735;
    --rim-button-fill-bottom: #69512d;
    --rim-button-fill-hover: #896a3c;
    --rim-button-fill-hover-top: #8c6d41;
    --rim-button-fill-hover-bottom: #85683a;
    --rim-button-edge: #040404;
    --rim-button-frame: #17130f;
    --rim-button-frame-edge: #89632f;
    --rim-button-highlight: #89683b;
    --rim-button-side-left: #5f4b28;
    --rim-button-side-right: #72562f;
    --rim-button-side-bottom: #4d3c22;
    --rim-button-highlight-hover: #947644;
    --rim-button-side-left-hover: #765b2e;
    --rim-button-side-right-hover: #815d31;
    --rim-button-side-bottom-hover: #725930;
    --green: #55d96b;
    --danger: #d35f55;
    --text-field-color: #d1ccc3;
    --text-field-border: #62543f;
    --text-field-background: #080d10;
    --text-field-shadow: inset 0 1px 5px rgba(0, 0, 0, .48);
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
    background: var(--surface);
}

html.is-inertial-scrolling {
    scroll-behavior: auto;
}

[id] {
    scroll-margin-top: 94px;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 50% 0, rgba(58, 67, 68, .16), transparent 35rem),
        #090d10;
    font-family: var(--font-system);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

button,
input,
select,
textarea {
    font: inherit;
}

:where(input:not([type]), input:is([type="text"], [type="email"], [type="password"], [type="search"], [type="url"], [type="tel"], [type="number"], [type="date"]), textarea) {
    min-width: 0;
    min-height: 40px;
    padding: 9px 11px;
    color: var(--text-field-color);
    border: 1px solid var(--text-field-border);
    border-radius: 2px;
    background: var(--text-field-background);
    box-shadow: var(--text-field-shadow);
}

:is(input:not([type]), input:is([type="text"], [type="email"], [type="password"], [type="search"], [type="url"], [type="tel"], [type="number"], [type="date"]), textarea):hover {
    border-color: #997044;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--amber-bright);
}

h1:focus {
    outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[contenteditable="true"]:focus-visible,
canvas:focus-visible {
    outline: 2px solid var(--amber-bright);
    outline-offset: 3px;
}

:is(input:not([type]), input:is([type="text"], [type="email"], [type="password"], [type="search"], [type="url"], [type="tel"], [type="number"], [type="date"]), textarea):focus-visible {
    border-color: #d8a45c;
    outline: 1px solid rgba(216, 164, 92, .42);
    outline-offset: 1px;
}

.site-shell {
    min-height: 100vh;
    container: site-canvas / inline-size;
}

.site-loading-indicator {
    position: fixed;
    z-index: 500;
    top: max(12px, env(safe-area-inset-top));
    left: 50%;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid #66543b;
    border-radius: 50%;
    background: #0c1215;
    box-shadow: 0 5px 20px #0008;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%);
}

body:has([data-site-loading]) .site-loading-indicator,
body.site-is-navigating .site-loading-indicator {
    visibility: visible;
    animation: site-loading-reveal .08s ease-out .15s forwards;
}

.site-loading-indicator__spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #384045;
    border-top-color: #dca449;
    border-radius: 50%;
    animation: site-loading-spin .75s linear infinite;
}

@keyframes site-loading-spin {
    to { transform: rotate(360deg); }
}

@keyframes site-loading-reveal {
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .site-loading-indicator__spinner { animation-duration: 1.8s; }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: minmax(220px, .7fr) minmax(0, 1.6fr) max-content;
    align-items: center;
    min-height: 78px;
    padding: 0 3.2vw;
    border-bottom: 0 !important;
    color: #b7b4ae;
    background:
        linear-gradient(180deg, rgba(9, 12, 14, .99), rgba(7, 10, 12, .97)),
        #080b0d;
    box-shadow: none;
}

.site-header__brand {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    background: none;
    font-family: inherit;
    font-size: clamp(21px, 1.8em, 42px);
    font-weight: 650;
    line-height: 1;
    letter-spacing: .085em;
    text-decoration: none;
    text-overflow: ellipsis;
    text-shadow: 0 2px 1px #000;
    white-space: nowrap;
}

.site-header__nav {
    display: flex;
    align-items: stretch;
    justify-content: center;
    height: 100%;
    gap: var(--header-gap, clamp(22px, 3.6vw, 58px));
}

@media (min-width: 1101px) {
    .site-header:not(.site-header--editor) .site-header__nav {
        position: absolute;
        left: 50%;
        width: max-content;
        transform: translateX(-50%);
    }
}

.site-header__nav a {
    position: relative;
    display: grid;
    place-items: center;
    color: #fff;
    background: none;
    font-family: var(--font-condensed);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .055em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color .18s ease;
}

.site-header__nav a:hover {
    color: #efc18a;
}

.site-header__nav a.is-active {
    color: #fff;
}

.site-header__nav a.is-active::after {
    position: absolute;
    right: 28%;
    bottom: 8px;
    left: 28%;
    height: 2px;
    content: "";
    background: var(--amber);
    box-shadow: 0 5px 0 -1px #7d582a;
}

.site-header__account {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.site-header__desktop-account-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-header__account-menu {
    position: relative;
    display: none;
}

.site-header__account-menu summary {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--line-bright);
    color: var(--ink);
    background: #0d1418;
    cursor: pointer;
    list-style: none;
}

.site-header__account-menu summary::-webkit-details-marker { display: none; }

.site-header__account-menu summary svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-header__account-menu summary:hover,
.site-header__account-menu[open] summary {
    border-color: var(--amber);
    color: var(--amber-bright);
}

.site-header__account-menu summary:focus-visible,
.site-header__account-menu-items :is(a, button):focus-visible {
    outline: 2px solid var(--amber-bright);
    outline-offset: 2px;
}

.site-header__account-menu-items {
    position: absolute;
    top: calc(100% + 8px);
    right: -76px;
    z-index: 30;
    display: grid;
    width: min(260px, calc(100vw - 32px));
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--line-bright);
    background: #10171b;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .55);
}

.site-header__account-menu-items :is(a, button) {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 0;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
    font: 600 14px/1.2 var(--font-condensed);
    text-align: left;
    text-decoration: none;
}

.site-header__account-menu-items :is(a, button):hover {
    border-color: var(--line-bright);
    background: rgba(227, 184, 111, .09);
    color: var(--amber-bright);
}

.site-header__account-menu-items form { width: 100%; }

.site-header__account form {
    margin: 0;
}

.site-header__account .angular-button {
    min-width: 0;
    min-height: 38px;
    padding: 8px 14px;
    font-family: var(--font-condensed);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .055em;
    white-space: nowrap;
}

.angular-button {
    position: relative;
    z-index: 0;
    display: inline-flex;
    min-width: 154px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    border: 0;
    border-radius: 0;
    color: #fff;
    background: var(--rim-button-fill);
    box-shadow: none;
    cursor: pointer;
    font: 700 17px/1 var(--font-system);
    letter-spacing: .045em;
    text-decoration: none;
    text-transform: uppercase;
    isolation: isolate;
    text-shadow: 0 2px 1px rgba(20, 12, 6, .72);
    transition: filter .08s ease, transform .08s ease;
}

.angular-button::before {
    display: none;
}

.angular-button::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: 0;
    content: "";
    background:
        linear-gradient(45deg, var(--rim-button-side-left) 0 49%, var(--rim-button-highlight) 51% 100%) top left / 4px 4px no-repeat,
        linear-gradient(135deg, var(--rim-button-highlight) 0 49%, var(--rim-button-side-right) 51% 100%) top right / 4px 4px no-repeat,
        linear-gradient(135deg, var(--rim-button-side-left) 0 49%, var(--rim-button-side-bottom) 51% 100%) bottom left / 4px 4px no-repeat,
        linear-gradient(45deg, var(--rim-button-side-bottom) 0 49%, var(--rim-button-side-right) 51% 100%) bottom right / 4px 4px no-repeat,
        linear-gradient(var(--rim-button-highlight), var(--rim-button-highlight)) top center / calc(100% - 8px) 4px no-repeat,
        linear-gradient(var(--rim-button-side-bottom), var(--rim-button-side-bottom)) bottom center / calc(100% - 8px) 4px no-repeat,
        linear-gradient(var(--rim-button-side-left), var(--rim-button-side-left)) center left / 4px calc(100% - 8px) no-repeat,
        linear-gradient(var(--rim-button-side-right), var(--rim-button-side-right)) center right / 4px calc(100% - 8px) no-repeat,
        linear-gradient(180deg, var(--rim-button-fill-top), var(--rim-button-fill) 24%, var(--rim-button-fill) 80%, var(--rim-button-fill-bottom)) center / calc(100% - 8px) calc(100% - 8px) no-repeat;
    pointer-events: none;
}

.angular-button:hover:not(:disabled) {
    --rim-button-fill-top: var(--rim-button-fill-hover-top);
    --rim-button-fill: var(--rim-button-fill-hover);
    --rim-button-fill-bottom: var(--rim-button-fill-hover-bottom);
    --rim-button-highlight: var(--rim-button-highlight-hover);
    --rim-button-side-left: var(--rim-button-side-left-hover);
    --rim-button-side-right: var(--rim-button-side-right-hover);
    --rim-button-side-bottom: var(--rim-button-side-bottom-hover);
    color: #fff;
}

.angular-button:active:not(:disabled) {
    filter: brightness(.88);
    transform: translateY(1px);
}

.angular-button:disabled {
    cursor: not-allowed;
    filter: grayscale(.8);
    opacity: .46;
}

.angular-button--primary {
    color: #fff;
}

.angular-button--primary:hover {
    color: #fff;
}

.angular-button--compact {
    min-width: 0;
    min-height: 38px;
    padding: 8px 14px;
    font-size: 13px;
}

.angular-button--quiet {
    min-width: 0;
    color: #fff;
}

.angular-button--danger {
    min-width: 0;
    color: #fff;
}

.public-home {
    min-height: 100vh;
}

.widget-tree,
.widget-group,
.widget-accountform {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    align-content: start;
    container-type: inline-size;
}

.widget-tree > .site-widget {
    --parent-inline-padding: 0px;
}

.site-widget {
    position: relative;
    min-width: 0;
    border-style: solid;
    border-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.widget-rich-text h1,
.widget-rich-text h2,
.widget-rich-text h3,
.widget-rich-text h4,
.widget-rich-text p,
.widget-rich-text pre,
.widget-rich-text blockquote {
    margin-top: 0;
}

.widget-rich-text p:last-child {
    margin-bottom: 0;
}

[data-rich-text-effect="none"] {
    text-shadow: none !important;
}

[data-rich-text-effect="shadow"] {
    text-shadow: 0 2px 4px rgba(0, 0, 0, .75) !important;
}

[data-rich-text-effect="glow"] {
    text-shadow: 0 0 7px var(--rich-text-effect-color, currentColor), 0 0 16px var(--rich-text-effect-color, currentColor) !important;
}

[data-rich-text-effect="hard-shadow"] {
    text-shadow: 2px 2px 0 #000 !important;
}

.widget-rich-text code,
.rich-text-editor__surface code {
    padding: .08em .32em;
    color: #e2c18b;
    border: 1px solid rgba(138, 122, 94, .42);
    background: rgba(8, 12, 14, .72);
    font-family: var(--font-monospace);
    font-size: .88em;
}

.widget-rich-text pre,
.rich-text-editor__surface pre {
    padding: .75em .9em;
    overflow: auto;
    border-left: 2px solid #a8783e;
    background: rgba(8, 12, 14, .82);
    font-family: var(--font-monospace);
    white-space: pre-wrap;
}

.role-hero {
    display: block;
    overflow: hidden;
    background-position: center 40%;
    isolation: isolate;
}

.role-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background:
        linear-gradient(180deg, rgba(3, 7, 10, .18) 0, rgba(4, 7, 9, .08) 36%, rgba(4, 7, 9, .3) 62%, #070b0e 100%),
        radial-gradient(ellipse at center 43%, transparent 20%, rgba(2, 5, 7, .23) 62%, rgba(2, 5, 7, .76) 100%);
    pointer-events: none;
}

.role-hero::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    content: "";
    border: 1px solid rgba(111, 106, 91, .2);
    border-top: 0;
    box-shadow: inset 0 0 90px rgba(0, 0, 0, .46);
    pointer-events: none;
}

.role-hero-copy {
    position: absolute;
    z-index: 2;
    top: clamp(210px, 26vh, 285px);
    right: 8vw;
    left: 8vw;
}

.role-hero-copy .widget-rich-text {
    filter: drop-shadow(0 5px 3px rgba(0, 0, 0, .8));
}

.role-hero-copy h1 {
    margin: 0;
    font-family: inherit;
    font-size: clamp(42px, 4em, 156px);
    font-weight: 650;
    line-height: .9;
    letter-spacing: .012em;
    text-shadow: 0 4px 0 rgba(0, 0, 0, .34);
}

.role-hero-copy h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 18px auto 10px;
    font-family: inherit;
    font-size: 1.55em;
    font-weight: 550;
    line-height: 1;
    letter-spacing: .27em;
}

.role-hero-copy h2::before,
.role-hero-copy h2::after {
    width: min(10vw, 130px);
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, #cb9143);
}

.role-hero-copy h2::after {
    transform: rotate(180deg);
}

.role-hero-copy p {
    margin: 0;
    font-family: inherit;
    font-size: 1em;
    font-weight: 350;
    line-height: 1.35;
    letter-spacing: .015em;
}

.role-hero-action {
    position: absolute;
    z-index: 4;
    top: clamp(520px, 61vh, 620px);
    left: 50%;
    width: min(390px, 70vw);
    transform: translateX(-50%);
    box-shadow: none;
    clip-path: none;
    filter: none;
}

.widget-button {
    position: relative;
    z-index: 0;
    padding: 7px !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 0 !important;
    color: #fff !important;
    background: var(--rim-button-fill) !important;
    box-shadow: none;
    clip-path: none;
    filter: none;
    isolation: isolate;
    text-shadow: 0 2px 1px rgba(20, 12, 6, .72);
    transition: filter .08s ease;
}

.widget-button::before {
    display: none;
}

.widget-button::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: 0;
    content: "";
    background:
        linear-gradient(45deg, var(--rim-button-side-left) 0 49%, var(--rim-button-highlight) 51% 100%) top left / 4px 4px no-repeat,
        linear-gradient(135deg, var(--rim-button-highlight) 0 49%, var(--rim-button-side-right) 51% 100%) top right / 4px 4px no-repeat,
        linear-gradient(135deg, var(--rim-button-side-left) 0 49%, var(--rim-button-side-bottom) 51% 100%) bottom left / 4px 4px no-repeat,
        linear-gradient(45deg, var(--rim-button-side-bottom) 0 49%, var(--rim-button-side-right) 51% 100%) bottom right / 4px 4px no-repeat,
        linear-gradient(var(--rim-button-highlight), var(--rim-button-highlight)) top center / calc(100% - 8px) 4px no-repeat,
        linear-gradient(var(--rim-button-side-bottom), var(--rim-button-side-bottom)) bottom center / calc(100% - 8px) 4px no-repeat,
        linear-gradient(var(--rim-button-side-left), var(--rim-button-side-left)) center left / 4px calc(100% - 8px) no-repeat,
        linear-gradient(var(--rim-button-side-right), var(--rim-button-side-right)) center right / 4px calc(100% - 8px) no-repeat,
        linear-gradient(180deg, var(--rim-button-fill-top), var(--rim-button-fill) 24%, var(--rim-button-fill) 80%, var(--rim-button-fill-bottom)) center / calc(100% - 8px) calc(100% - 8px) no-repeat;
    pointer-events: none;
}

.widget-button:hover {
    --rim-button-fill-top: var(--rim-button-fill-hover-top);
    --rim-button-fill: var(--rim-button-fill-hover);
    --rim-button-fill-bottom: var(--rim-button-fill-hover-bottom);
    --rim-button-highlight: var(--rim-button-highlight-hover);
    --rim-button-side-left: var(--rim-button-side-left-hover);
    --rim-button-side-right: var(--rim-button-side-right-hover);
    --rim-button-side-bottom: var(--rim-button-side-bottom-hover);
}

.widget-button:active {
    filter: brightness(.88);
}

.role-hero-action .content-button {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 1em;
    font-weight: 650;
    line-height: 1;
    letter-spacing: .045em;
    text-decoration: none;
}

.widget-button .content-button {
    color: #fff;
    border: 0;
    border-radius: 0;
    text-shadow: inherit;
}

.role-server-universe {
    position: absolute;
    z-index: 3;
    right: 2.7vw;
    bottom: 20px;
    left: 2.7vw;
    box-shadow: 0 11px 30px rgba(0, 0, 0, .7), inset 0 0 0 4px rgba(20, 25, 27, .92);
    clip-path: none;
}

.role-server-universe.is-server-frameless {
    border-width: 0 !important;
    box-shadow: none;
}

.server-universe-panel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: radial-gradient(circle at 50% 40%, rgba(48, 76, 84, .15), transparent 35%);
}

.server-universe-panel::before {
    position: absolute;
    z-index: 2;
    inset: 6px;
    content: "";
    border: 1px solid rgba(165, 141, 101, .3);
    clip-path: inherit;
    pointer-events: none;
}

.server-universe-panel.is-frameless::before {
    display: none;
}

.server-universe-panel__header {
    position: absolute;
    z-index: 9;
    top: 14px;
    left: 6.8%;
    display: flex;
    align-items: baseline;
    gap: 18px;
    pointer-events: none;
}

.server-universe-panel__header h3 {
    margin: 0;
    color: #b9b5ad;
    font: 500 20px/1 var(--font-condensed);
    letter-spacing: .08em;
}

.server-universe-panel__header span,
.server-universe-panel__header small {
    color: #898a87;
    font: 500 13px/1 var(--font-condensed);
    letter-spacing: .055em;
}

.server-universe-panel__header small {
    color: #a7834c;
}

.server-system-tabs {
    position: absolute;
    z-index: 11;
    top: 47px;
    right: 6.8%;
    left: 6.8%;
    display: flex;
    gap: 7px;
    padding: 0 0 8px;
    overflow-x: auto;
    border-bottom: 1px solid rgba(145, 128, 98, .32);
    scrollbar-color: #8d6c3c transparent;
    scrollbar-width: thin;
}

.server-system-tabs button {
    --server-tab-fill: linear-gradient(180deg, #7f5c32, var(--rim-button-fill));
    --server-tab-highlight: var(--rim-button-highlight);
    position: relative;
    z-index: 0;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    min-width: 138px;
    min-height: 38px;
    gap: 18px;
    padding: 8px 13px;
    color: #fff;
    border: 4px solid var(--rim-button-edge);
    border-radius: 4px;
    background: var(--server-tab-fill);
    box-shadow:
        inset 0 0 0 1px var(--server-tab-highlight),
        inset 0 0 0 3px var(--rim-button-frame),
        inset 0 4px 0 rgba(255, 220, 163, .06);
    cursor: pointer;
    font: 550 13px/1 var(--font-condensed);
    isolation: isolate;
    letter-spacing: .075em;
    text-shadow: none;
    transition: background .12s ease, box-shadow .12s ease, transform .08s ease;
}

.server-system-tabs button::before {
    position: absolute;
    z-index: -1;
    inset: 2px;
    content: "";
    border: 1px solid rgba(222, 176, 105, .34);
    border-radius: 1px;
    pointer-events: none;
}

.server-system-tabs button::after {
    position: absolute;
    z-index: -1;
    inset: 3px;
    content: "";
    background: transparent;
    pointer-events: none;
    transition: background .12s ease;
}

.server-system-tabs button small {
    display: grid;
    min-width: 23px;
    height: 21px;
    place-items: center;
    color: #f1dfc6;
    border-left: 1px solid rgba(255, 225, 181, .32);
    font-size: 11px;
}

.server-system-tabs button:hover,
.server-system-tabs button.is-active {
    --server-tab-fill: linear-gradient(180deg, #9b7240, var(--rim-button-fill-hover));
    --server-tab-highlight: #bd9158;
    color: #fff;
}

.server-system-tabs button:hover::after,
.server-system-tabs button.is-active::after {
    background: rgba(255, 255, 255, .1);
}

.server-system-tabs button:active {
    --server-tab-fill: linear-gradient(180deg, #674624, #79572f);
    box-shadow:
        inset 0 0 0 1px #b5874f,
        inset 0 0 0 3px #3f2916,
        inset 0 4px 0 rgba(29, 16, 7, .42);
    transform: translateY(1px);
}

.server-system-tabs button.is-active small {
    color: #fff;
}

.server-universe-scene {
    position: absolute;
    inset: 96px 8px 8px;
    overflow: hidden;
    touch-action: none;
}

.server-universe-panel.has-single-system .server-universe-scene {
    top: 54px;
}

.server-universe-panel.is-frameless .server-universe-scene {
    right: 0;
    bottom: 0;
    left: 0;
}

.server-universe-panel.has-no-header .server-system-tabs {
    top: 14px;
}

.server-universe-panel.has-no-header .server-universe-scene {
    top: 63px;
}

.server-universe-panel.has-no-header.has-single-system .server-universe-scene {
    top: 8px;
}

.server-universe-panel.has-no-header.has-single-system.is-frameless .server-universe-scene {
    top: 0;
}

.server-universe-scene canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
}

.server-universe-scene canvas:active {
    cursor: grabbing;
}

.server-universe-scene canvas[data-hovering-planet="true"]:not(:active) {
    cursor: pointer;
}

.server-universe-scene__empty {
    position: absolute;
    z-index: 5;
    inset: 0;
    display: grid;
    place-items: center;
    color: #8f918e;
    background: rgba(4, 8, 10, .38);
    font: 500 15px/1.4 var(--font-condensed);
    letter-spacing: .06em;
    pointer-events: none;
}

.server-universe-labels {
    position: absolute;
    z-index: 4;
    inset: 0;
    pointer-events: none;
}

.server-planet-label {
    position: absolute;
    width: clamp(145px, 13vw, 210px);
    padding: 10px 12px;
    border: 4px solid var(--rim-button-edge);
    border-radius: 4px;
    color: #fff;
    background: linear-gradient(180deg, rgba(127, 92, 50, .94), rgba(88, 61, 32, .94));
    box-shadow:
        inset 0 0 0 1px rgba(192, 146, 87, .78),
        inset 0 0 0 3px var(--rim-button-frame),
        inset 0 4px 0 rgba(255, 220, 163, .05);
    cursor: pointer;
    font-family: var(--font-condensed);
    text-align: left;
    pointer-events: auto;
    transform: translateX(-50%);
    text-shadow: none;
    isolation: isolate;
    transition: background .12s ease, box-shadow .12s ease, filter .12s ease;
}

.server-planet-label::before {
    position: absolute;
    z-index: -1;
    inset: 2px;
    content: "";
    border: 1px solid rgba(229, 188, 123, .32);
    border-radius: 1px;
    pointer-events: none;
}

.server-planet-label::after {
    position: absolute;
    z-index: -1;
    inset: 3px;
    content: "";
    background: transparent;
    pointer-events: none;
    transition: background .12s ease;
}

.server-planet-label:hover {
    color: #fff;
    background: linear-gradient(180deg, rgba(155, 114, 64, .97), rgba(112, 79, 42, .97));
    box-shadow:
        inset 0 0 0 1px #c09257,
        inset 0 0 0 3px #53371e;
}

.server-planet-label:hover::after {
    background: rgba(255, 255, 255, .1);
}

.server-planet-label:active {
    background: linear-gradient(180deg, rgba(103, 70, 36, .97), rgba(121, 87, 47, .97));
    box-shadow:
        inset 0 0 0 1px #b5874f,
        inset 0 0 0 3px #3f2916,
        inset 0 4px 0 rgba(29, 16, 7, .42);
    filter: brightness(.96);
}

.server-planet-label strong,
.server-planet-label span {
    display: block;
}

.server-planet-label strong {
    overflow: hidden;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: .04em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-planet-label span {
    color: #ead9c1;
    font-size: 13px;
    letter-spacing: .035em;
}

.server-planet-label .server-planet-label__status {
    margin-top: 3px;
    color: var(--green);
    font-weight: 550;
}

.server-planet-label[data-online="false"] .server-planet-label__status {
    color: #8a7771;
}

.server-universe-panel.is-dense .server-planet-label {
    width: 112px;
    padding: 4px 6px;
}

.server-universe-panel.is-dense .server-planet-label strong {
    font-size: 13px;
}

.server-universe-panel.is-dense .server-planet-label span {
    font-size: 10px;
}

.server-universe-panel__hint {
    position: absolute;
    z-index: 10;
    right: 80px;
    bottom: 8px;
    margin: 0;
    color: rgba(174, 178, 178, .66);
    font: 400 11px/1 var(--font-condensed);
    letter-spacing: .04em;
    pointer-events: none;
}

.server-universe-panel__empty,
.server-universe-fallback {
    display: grid;
    height: 100%;
    place-items: center;
}

.server-universe-panel__empty-content {
    display: flex;
    max-width: 460px;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 28px;
    text-align: center;
}

.server-universe-panel__empty-content p {
    margin: 0;
    color: rgba(215, 212, 204, .78);
}

.server-universe-fallback {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 105px 8% 20px;
    gap: 16px;
}

.server-universe-panel.has-single-system .server-universe-fallback {
    padding-top: 60px;
}

.server-universe-panel.has-no-header .server-universe-fallback {
    padding-top: 70px;
}

.server-universe-panel.has-no-header.has-single-system .server-universe-fallback {
    padding-top: 20px;
}

.server-universe-fallback button {
    position: relative;
    z-index: 0;
    min-height: 110px;
    padding: 16px;
    color: #fff;
    border: 4px solid var(--rim-button-edge);
    border-radius: 4px;
    background: linear-gradient(180deg, var(--rim-button-fill-top), var(--rim-button-fill));
    box-shadow:
        inset 0 0 0 1px var(--rim-button-highlight),
        inset 0 0 0 3px var(--rim-button-frame),
        inset 0 4px 0 rgba(255, 220, 163, .06);
    cursor: pointer;
    font-family: var(--font-condensed);
    isolation: isolate;
    text-shadow: none;
    transition: background .12s ease, box-shadow .12s ease, transform .08s ease;
}

.server-universe-fallback button::before {
    position: absolute;
    z-index: -1;
    inset: 2px;
    content: "";
    border: 1px solid rgba(229, 188, 123, .34);
    border-radius: 1px;
    pointer-events: none;
}

.server-universe-fallback button::after {
    position: absolute;
    z-index: -1;
    inset: 3px;
    content: "";
    background: transparent;
    pointer-events: none;
    transition: background .12s ease;
}

.server-universe-fallback button:hover {
    background: linear-gradient(180deg, #9b7240, var(--rim-button-fill-hover));
}

.server-universe-fallback button:hover::after {
    background: rgba(255, 255, 255, .1);
}

.server-universe-fallback button:active {
    background: linear-gradient(180deg, #674624, #79572f);
    box-shadow:
        inset 0 0 0 1px #b5874f,
        inset 0 0 0 3px #3f2916,
        inset 0 4px 0 rgba(29, 16, 7, .42);
    transform: translateY(1px);
}

.role-content-section {
    padding-top: 92px;
    padding-bottom: 110px;
    background:
        linear-gradient(180deg, rgba(8, 12, 15, .96), rgba(10, 15, 18, 1)),
        #090d10;
}

.role-content-section::before {
    position: absolute;
    top: 0;
    right: 5%;
    left: 5%;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, #514b40, transparent);
}

.role-section-copy h2 {
    font-family: inherit;
    font-size: clamp(1.8em, 3vw, 3em);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: .055em;
}

.role-section-copy p {
    font-family: inherit;
    font-size: 1em;
    font-weight: 350;
    line-height: 1.65;
}

.chart-widget {
    height: 100%;
}

.chart-widget h3 {
    margin: 0 0 15px;
    color: #c7a36a;
    font: 500 20px/1 var(--font-condensed);
    letter-spacing: .07em;
}

.chart-widget canvas {
    display: block;
    width: 100%;
    height: 220px;
}

.accordion-widget {
    width: 100%;
}

.accordion-widget summary {
    cursor: pointer;
    font-family: inherit;
    font-size: 1.25em;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: .05em;
}

.accordion-widget .widget-rich-text {
    padding-top: 18px;
}

.content-button {
    color: inherit;
}

.content-button--editor {
    padding: 0;
    background: transparent;
    cursor: move;
    font: inherit;
}

.image-widget {
    width: 100%;
    height: 100%;
    margin: 0;
}

.image-widget img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-widget__link {
    display: block;
    width: 100%;
    height: 100%;
}

.video-widget,
.video-widget iframe {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
}

.video-widget {
    overflow: hidden;
}

.video-widget iframe {
    display: block;
}

.widget-placeholder {
    display: grid;
    min-height: 120px;
    place-items: center;
    color: var(--ink-muted);
    border: 1px dashed #484d4e;
}

.site-update-banner,
.editor-status {
    position: fixed;
    z-index: 150;
    top: 90px;
    left: 50%;
    display: flex;
    min-width: min(500px, 90vw);
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 14px 18px;
    color: #d7c6a9;
    border: 1px solid #8d6937;
    background: rgba(21, 19, 16, .96);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
    transform: translateX(-50%);
}

.page-state,
.editor-blocked,
.login-page {
    display: grid;
    min-height: calc(100vh - 78px);
    place-content: center;
    padding: 40px;
    color: var(--ink);
    background:
        radial-gradient(circle at 50% 30%, rgba(70, 70, 61, .13), transparent 32rem),
        #090d10;
    text-align: center;
}

.page-state h1,
.editor-blocked h1,
.login-page h1 {
    margin: 0 0 18px;
    color: #c7c3bb;
    font: 600 clamp(36px, 5vw, 68px)/1 var(--font-condensed);
}

.server-selection {
    z-index: 14;
    width: min(360px, calc(100% - 48px));
    padding: 28px;
    color: var(--ink);
    border: 1px solid #736754;
    background: rgba(9, 14, 17, .97);
    box-shadow: 0 20px 70px rgba(0, 0, 0, .7);
    clip-path: polygon(7% 0, 100% 0, 100% 93%, 93% 100%, 0 100%, 0 7%);
}

.server-selection--scene {
    position: absolute;
    top: 50%;
    right: 24px;
    max-height: calc(100% - 44px);
    overflow: auto;
    transform: translateY(-50%);
}

.server-universe-scene[data-card-side="left"] .server-selection--scene {
    right: auto;
    left: 24px;
}

.server-selection__connector {
    position: absolute;
    z-index: 12;
    height: 1px;
    border-top: 1px solid #d1a159;
    background: linear-gradient(90deg, #efc27a, rgba(198, 147, 73, .25));
    box-shadow: 0 0 7px rgba(221, 169, 90, .62);
    transform-origin: 0 50%;
    pointer-events: none;
}

.server-selection__connector::before {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 8px;
    height: 8px;
    content: "";
    border: 1px solid #e9b96e;
    background: #13181a;
    transform: rotate(45deg);
}

.server-selection__close {
    position: absolute;
    top: 10px;
    right: 10px;
    min-height: 32px;
    padding: 5px 9px;
    font-size: 11px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--amber);
    font: 500 13px/1 var(--font-condensed);
    letter-spacing: .14em;
    text-transform: uppercase;
}

.server-selection h2 {
    margin: 0 0 14px;
    font: 600 33px/1 var(--font-condensed);
}

.server-selection dl {
    display: grid;
    margin: 24px 0;
    gap: 8px;
}

.server-selection dl div {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #2e3435;
}

.server-selection dt,
.server-selection dd {
    margin: 0;
    padding: 8px 0;
}

.account-page {
    display: grid;
    min-height: calc(100vh - 78px);
    place-items: center;
    padding: 40px 20px;
    background:
        radial-gradient(circle at 50% 25%, rgba(106, 82, 48, .14), transparent 28rem),
        #090d10;
}

.account-panel {
    width: min(440px, 90vw);
    padding: 42px;
    border: 1px solid #625b4e;
    background: #0f1518;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .56);
    text-align: left;
}

.account-panel h1 {
    margin: 0 0 24px;
    color: #d0cbc2;
    font: 600 42px/1.05 var(--font-condensed);
}

.account-panel label,
.editor-properties label {
    display: grid;
    gap: 7px;
    color: #aeb1af;
    font: 400 13px/1.2 var(--font-condensed);
    letter-spacing: .045em;
}

.account-panel input,
.editor-properties input,
.editor-properties select,
.editor-properties textarea,
.rich-text-editor select {
    width: 100%;
    min-height: 40px;
    padding: 9px 11px;
    color: var(--text-field-color);
    border: 1px solid var(--text-field-border);
    border-radius: 2px;
    background: var(--text-field-background);
    box-shadow: var(--text-field-shadow);
}

.editor-properties textarea {
    min-height: 84px;
    resize: vertical;
}

.account-form {
    display: grid;
    gap: 18px;
}

.account-panel__alternative {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 22px 0 0;
    color: #aeb1af;
    font: 400 14px/1.3 var(--font-condensed);
}

.account-panel__alternative .text-link {
    color: #efc18a;
}

.widget-registrationform {
    justify-self: center;
}

.registration-form-panel {
    width: 100%;
    color: inherit;
    text-align: left;
}

.registration-form-panel > header h2 {
    margin: 0;
    color: #fff;
    font: 600 clamp(30px, 3.2vw, 46px)/1 var(--font-condensed);
    letter-spacing: .035em;
}

.registration-form-panel > header > p:last-child {
    max-width: 62ch;
    margin: 16px 0 26px;
    color: #b8b8b3;
    line-height: 1.55;
}

.registration-form {
    display: grid;
    gap: 18px;
}

.registration-form__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    container-type: inline-size;
}

.registration-form-field {
    position: relative;
    min-width: 0;
}

.registration-form-field--email-code {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
}

.registration-form-field.registration-form-field--email-code > label {
    min-width: 0;
    grid-template-rows: auto 44px;
}

.registration-form-field--email-code > .angular-button {
    min-width: 150px;
    height: 44px;
    white-space: nowrap;
}

.registration-form__email-code-notice {
    grid-column: 1 / -1;
    margin: 0;
    color: #d8bc91;
    font: 400 12px/1.35 var(--font-condensed);
}

.registration-form-field > label {
    display: grid;
    grid-template-rows: auto 44px auto;
    align-content: start;
    gap: 7px;
    min-width: 0;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
    line-height: 1.25;
    text-align: inherit;
    letter-spacing: .045em;
}

.widget-tree.is-editor .registration-form-field {
    padding: 7px;
    border: 1px dashed rgba(164, 122, 70, .42);
    cursor: grab;
}

.widget-tree.is-editor .registration-form-field:hover,
.widget-tree.is-editor .registration-form-field.is-editor-selected {
    z-index: 6;
    border-color: #d2a15c;
    outline: 2px solid rgba(210, 161, 92, .36);
    outline-offset: 1px;
}

.widget-tree.is-editor .registration-form-field:active {
    cursor: grabbing;
}

.widget-tree.is-editor .registration-form-field input {
    pointer-events: none;
}

.registration-form-field__drag {
    position: absolute;
    z-index: 4;
    top: 3px;
    right: 3px;
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    padding: 0;
    color: #efbd70;
    border: 1px solid #8b6438;
    background: rgba(9, 12, 13, .94);
    cursor: grab;
    font: 700 15px/1 var(--font-condensed);
}

.registration-form-field__drag:active {
    cursor: grabbing;
}

.registration-form-field__position {
    position: absolute;
    z-index: 5;
    top: -12px;
    left: 7px;
    padding: 3px 7px;
    color: #efbd70;
    border: 1px solid #8b6438;
    background: #090c0d;
    cursor: move;
    touch-action: none;
    font: 700 12px/1 var(--font-condensed);
}

.registration-form-field__resize {
    position: absolute;
    z-index: 5;
    top: 35%;
    right: -5px;
    width: 10px;
    height: 28px;
    padding: 0;
    border: 1px solid #8b6438;
    background: #efbd70;
    cursor: ew-resize;
    touch-action: none;
}

.registration-form input {
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    min-height: 44px;
    padding: 9px 11px;
    color: var(--text-field-color);
    border: 1px solid var(--text-field-border);
    border-radius: 2px;
    background: var(--text-field-background);
    box-shadow: var(--text-field-shadow);
}

.registration-form input:hover {
    border-color: #997044;
}

.registration-form input:focus {
    border-color: #d8a45c;
    outline: 1px solid rgba(216, 164, 92, .42);
    outline-offset: 1px;
}

.registration-form-field input[aria-invalid="true"] {
    border-color: #b85b52;
    outline: 1px solid rgba(226, 122, 112, .34);
    outline-offset: 1px;
}

.registration-form > .angular-button {
    grid-column: 1 / -1;
    justify-self: start;
    min-width: min(100%, 310px);
    margin-top: 4px;
}

.registration-form-panel__login {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin-top: 24px;
    color: #9fa19e;
    font: 400 14px/1.35 var(--font-condensed);
}

.registration-form-panel__login a {
    color: #efc18a;
    font-weight: 600;
    letter-spacing: .055em;
}

.registration-form-panel__login-preview {
    color: #efc18a;
    font-weight: 600;
    letter-spacing: .055em;
}

.form-message--success {
    color: #8fdda0;
}

.registration-success-toast {
    position: fixed;
    z-index: 220;
    right: 24px;
    bottom: 24px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    width: min(480px, calc(100vw - 32px));
    max-height: min(60vh, 420px);
    overflow-y: auto;
    align-items: start;
    gap: 12px;
    padding: 15px 18px;
    color: #d8efdc;
    border: 1px solid #63866a;
    background: rgba(15, 35, 20, .98);
    box-shadow: 0 16px 42px rgba(0, 0, 0, .58);
    animation: registration-success-toast-in .22s ease-out both;
}

.registration-success-toast > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #b9ebc2;
    border: 1px solid #6c9d75;
    border-radius: 50%;
    background: rgba(70, 125, 80, .24);
    font-weight: 800;
}

.registration-success-toast p {
    margin: 0;
    min-width: 0;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

@keyframes registration-success-toast-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .registration-success-toast {
        animation: none;
    }
}

.registration-form-panel .form-message {
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid currentColor;
    background: rgba(7, 11, 13, .72);
}

.registration-modal-trigger {
    justify-self: center;
    align-self: center;
}

.registration-modal {
    position: fixed;
    z-index: 300;
    inset: 0;
    display: none;
    place-items: center;
    padding: 24px;
}

.registration-modal.is-open {
    display: grid;
}

.registration-form label small {
    color: #9fa19e;
    font: 400 12px/1.35 var(--font-condensed);
}

.registration-system-field-id span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.registration-system-field-id small {
    padding: 2px 6px;
    color: #e2b06d;
    border: 1px solid #725331;
    font-size: 10px;
    letter-spacing: .08em;
}

.registration-system-field-id input[readonly] {
    color: #8f9698;
    border-style: dashed;
    cursor: text;
}

.registration-field-editor-card {
    cursor: pointer;
}

.registration-field-editor-card.is-selected {
    border-color: #d2a15c;
    box-shadow: inset 0 0 0 1px rgba(210, 161, 92, .24);
}

.registration-field-style-editor {
    border-color: #765b3a;
}

.registration-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(1, 3, 4, .82);
    backdrop-filter: blur(3px);
}

.registration-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(500px, 100%);
    max-height: calc(100vh - 48px);
    padding: clamp(24px, 3vw, 30px);
    overflow: auto;
    border: 1px solid #765b3a;
    border-radius: 5px;
    background: #10171b;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .72);
}

.registration-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    place-items: center;
    padding: 0;
}

.registration-modal-preview {
    display: grid;
    gap: 18px;
}

.registration-modal-preview > .angular-button {
    justify-self: start;
}

.registration-modal-preview__panel {
    width: min(500px, 100%);
    padding: 24px;
    border: 1px dashed #a77a43;
    background: rgba(10, 15, 18, .72);
}

.account-panel > .text-link {
    display: inline-block;
    margin-top: 24px;
    color: #9da4a4;
    font: 400 14px/1 var(--font-condensed);
}

.auth-dialog {
    position: fixed;
    z-index: 310;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
}

body:has(.auth-dialog) {
    overflow: hidden;
}

.auth-dialog__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(1, 3, 4, .82);
    backdrop-filter: blur(3px);
}

.auth-dialog__panel {
    position: relative;
    z-index: 1;
    width: min(450px, 100%);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 32px;
    border: 1px solid #625b4e;
    background: #0f1518;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .56);
    text-align: left;
}

.auth-dialog__panel--register {
    width: min(500px, 100%);
    padding: 30px;
    border-color: #765b3a;
    background: #10171b;
}

.auth-dialog__close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    place-items: center;
    padding: 0;
}

.auth-dialog__close svg,
.registration-modal__close svg {
    display: block;
}

.auth-login h2 {
    margin: 0 36px 22px 0;
    color: #d0cbc2;
    font: 600 clamp(25px, 4vw, 32px)/1.1 var(--font-condensed);
    white-space: nowrap;
}

.auth-login .account-form label {
    display: grid;
    gap: 7px;
    color: #aeb1af;
    font: 400 13px/1.2 var(--font-condensed);
    letter-spacing: .045em;
}

.auth-login .account-form input {
    width: 100%;
    min-height: 40px;
    padding: 9px 11px;
    color: var(--text-field-color);
    border: 1px solid var(--text-field-border);
    border-radius: 2px;
    background: var(--text-field-background);
    box-shadow: var(--text-field-shadow);
}

.auth-login .account-form > .angular-button {
    width: 100%;
}

.auth-dialog__registration .registration-form-panel > header h2 {
    max-width: 100%;
    font-size: clamp(24px, 3vw, 28px);
    line-height: 1.1;
}

.auth-dialog__registration .registration-form-panel > header {
    margin-bottom: 18px;
}

.auth-dialog__registration .registration-form-panel > header > p:last-child {
    margin: 9px 0 0;
    font-size: 14px;
    line-height: 1.35;
}

.auth-dialog__registration .registration-form {
    gap: 14px;
}

.auth-dialog__registration .registration-form__fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
}

.auth-dialog__registration [data-registration-field] {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    translate: none !important;
}

.auth-dialog__registration .registration-form-field > label {
    grid-template-rows: auto 40px auto;
    gap: 4px;
}

.auth-dialog__registration .registration-form-field--email-code > label {
    grid-template-rows: auto 40px;
}

.auth-dialog__registration .registration-form-field--email-code > .angular-button {
    height: 40px;
    min-height: 40px;
}

.auth-dialog__registration .registration-form input {
    height: 40px;
    min-height: 40px;
}

.auth-dialog__registration .registration-form > .angular-button {
    width: 100%;
    min-width: 0;
    margin-top: 0;
}

.auth-dialog__registration .registration-form-panel__login {
    margin-top: 15px;
}

@media (max-width: 480px) {
    .auth-dialog__panel,
    .auth-dialog__panel--register {
        padding: 24px 20px;
    }

    .auth-login h2 {
        font-size: clamp(23px, 6vw, 29px);
    }
}

@media (max-width: 380px) {
    .registration-form-field--email-code {
        gap: 8px;
    }

    .registration-form-field--email-code > .angular-button {
        min-width: 120px;
        padding-inline: 8px;
        font-size: 11px;
    }
}

.form-message--error,
.validation-message {
    color: #e27a70;
}

.site-editor {
    min-height: calc(100vh - 78px);
    background: #070a0c;
}

.site-editor__toolbar {
    position: sticky;
    z-index: 80;
    top: 78px;
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(260px, 1fr) auto;
    min-height: 86px;
    align-items: center;
    padding: 12px 24px;
    border-bottom: 1px solid #393b39;
    background: rgba(10, 14, 16, .98);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
}

.site-editor__toolbar h1 {
    margin: 0;
    font: 550 25px/1 var(--font-condensed);
}

.site-editor__toolbar span,
.site-editor__hint {
    color: #747d7f;
    font-size: 12px;
}

.site-editor__hint {
    margin: 0;
    text-align: center;
}

.site-editor__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.site-editor__header-action[aria-pressed="true"] {
    --rim-button-fill-top: var(--rim-button-fill-hover-top);
    --rim-button-fill: var(--rim-button-fill-hover);
    --rim-button-fill-bottom: var(--rim-button-fill-hover-bottom);
    --rim-button-highlight: var(--rim-button-highlight-hover);
    --rim-button-side-left: var(--rim-button-side-left-hover);
    --rim-button-side-right: var(--rim-button-side-right-hover);
    --rim-button-side-bottom: var(--rim-button-side-bottom-hover);
}

.site-editor__workspace {
    display: grid;
    grid-template-columns:
        minmax(180px, var(--editor-library-width))
        8px
        minmax(0, 1fr)
        8px
        minmax(280px, var(--editor-properties-width));
    min-height: calc(100vh - 164px);
}

.editor-panel-resizer {
    position: sticky;
    z-index: 25;
    top: 164px;
    width: 8px;
    height: calc(100vh - 164px);
    padding: 0;
    border: 0;
    border-right: 1px solid #343837;
    border-left: 1px solid #1a1f20;
    background: #111619;
    cursor: col-resize;
    touch-action: none;
}

.editor-panel-resizer:hover,
.editor-panel-resizer:focus-visible {
    border-color: #b58545;
    background: #29231b;
}

.editor-library,
.editor-properties {
    position: sticky;
    top: 164px;
    height: calc(100vh - 164px);
    overflow: auto;
    min-width: 0;
    border-color: #343837;
    background: #0c1114;
}

.editor-library {
    padding: 20px 14px;
    border-right: 1px solid #343837;
}

.editor-library h2,
.editor-properties h2 {
    margin: 0;
    color: #bfa16e;
    font: 550 16px/1 var(--font-condensed);
    letter-spacing: .11em;
}

.editor-library > p {
    color: #70797b;
    font-size: 12px;
    line-height: 1.5;
}

.editor-library__items {
    display: grid;
    gap: 8px;
}

.editor-library__items button {
    display: grid;
    grid-template-columns: 42px 1fr;
    min-height: 54px;
    align-items: center;
    gap: 10px;
    padding: 7px;
    color: #b9bcb9;
    border: 1px solid #343a3b;
    background: #11171a;
    cursor: grab;
    font: 400 14px/1.2 var(--font-condensed);
    text-align: left;
}

.editor-library__items button:hover {
    color: #e3bc79;
    border-color: #7e6845;
    background: #181a18;
}

.widget-kind-mark {
    display: grid;
    width: 40px;
    height: 36px;
    place-items: center;
    color: #c69a58;
    border: 1px solid #594c39;
    font: 600 12px/1 var(--font-condensed);
    letter-spacing: .08em;
}

.editor-canvas {
    min-width: 0;
    padding: 38px 26px 120px;
    overflow: auto;
    background:
        linear-gradient(rgba(84, 91, 91, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(84, 91, 91, .06) 1px, transparent 1px),
        #080c0e;
    background-size: 20px 20px;
}

.site-header--editor {
    position: relative;
    top: auto;
    z-index: 5;
    width: 100%;
    margin-bottom: 16px;
    outline: 1px dashed rgba(144, 151, 149, .42);
    cursor: pointer;
}

.site-header--editor:hover,
.site-header--editor.is-selected {
    outline: 2px solid #d2a15c;
    outline-offset: 2px;
}

.site-header-editor__selection-layer {
    position: absolute;
    z-index: 40;
    inset: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.site-header__account--preview {
    color: #777f80;
    font: 500 12px/1 var(--font-condensed);
    letter-spacing: .05em;
}

.editor-canvas__label {
    margin-bottom: 12px;
    color: #6f7879;
    font: 500 12px/1 var(--font-condensed);
    letter-spacing: .12em;
}

.widget-tree.is-editor {
    min-height: 600px;
    padding: 0;
    outline: 1px dashed #4a5050;
    background: rgba(13, 18, 20, .88);
}

.widget-tree.is-editor .site-widget {
    cursor: move;
    outline: 1px dashed rgba(144, 151, 149, .28);
    outline-offset: -2px;
}

.widget-tree.is-editor .site-widget:hover {
    outline-color: rgba(203, 158, 88, .65);
}

.widget-tree.is-editor .site-widget.is-selected {
    z-index: 8;
    outline: 2px solid #d2a15c;
    outline-offset: 2px;
}

.site-editor.is-adjusting-widget {
    user-select: none;
}

.site-editor.is-adjusting-widget .site-widget {
    transition: none !important;
}

.widget-tree.is-editor .role-hero {
    min-height: 40px;
}

.widget-tree.is-editor .role-server-universe {
    overflow: visible;
}

.widget-drag-label {
    position: absolute;
    z-index: 40;
    top: 3px;
    left: 3px;
    max-width: 160px;
    padding: 3px 7px;
    border: 0;
    overflow: hidden;
    color: #e5ba74;
    background: rgba(9, 12, 13, .88);
    font: 500 10px/1 var(--font-condensed);
    cursor: pointer;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.widget-drop-zone {
    position: absolute;
    z-index: 35;
    right: 0;
    left: 0;
    height: 10px;
    border: 1px dashed transparent;
    background: transparent;
    pointer-events: none;
}

.widget-drop-zone--before {
    top: 0;
    right: auto;
    bottom: 0;
    left: -12px;
    width: 24px;
    height: auto;
    border: 0;
}

.widget-drop-zone--end {
    bottom: 0;
}

.is-dragging-widget .widget-drop-zone {
    pointer-events: auto;
}

.widget-drop-zone--before::after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 11px;
    width: 2px;
    content: "";
    background: transparent;
}

.widget-drop-zone--before:hover::after,
.widget-drop-zone--before.is-widget-drop-target::after {
    background: #e8b96f;
    box-shadow: 0 0 0 2px rgba(210, 161, 92, .24), 0 0 12px rgba(232, 185, 111, .72);
}

.widget-drop-zone--end:hover,
.widget-drop-zone--end.is-widget-drop-target {
    border-color: #d2a15c;
    background: rgba(210, 161, 92, .18);
}

.widget-resize-handle {
    position: absolute;
    z-index: 60;
    display: none;
    padding: 0;
    border: 1px solid #efbd70;
    background: #111719;
    touch-action: none;
}

.site-widget.is-selected > .widget-resize-handle {
    display: block;
}

.widget-resize-handle--width {
    top: 50%;
    right: 0;
    width: 14px;
    height: 48px;
    cursor: ew-resize;
    transform: translateY(-50%);
}

.widget-resize-handle--height {
    bottom: 0;
    left: 50%;
    width: 48px;
    height: 14px;
    cursor: ns-resize;
    transform: translateX(-50%);
}

.widget-resize-handle--both {
    right: 0;
    bottom: 0;
    width: 18px;
    height: 18px;
    cursor: nwse-resize;
}

.editor-properties {
    display: grid;
    grid-template-rows: auto 1fr auto;
    border-left: 1px solid #343837;
}

.editor-properties *,
.editor-properties fieldset,
.editor-properties__body {
    min-width: 0;
}

.editor-properties > header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 20px 18px 14px;
    border-bottom: 1px solid #2b3031;
}

.editor-properties > header span {
    color: #727b7d;
    font: 400 12px/1 var(--font-condensed);
}

.editor-properties__empty {
    padding: 18px;
    color: #737b7c;
    font-size: 13px;
}

.editor-properties__body {
    display: grid;
    align-content: start;
    padding: 16px 18px;
    gap: 14px;
    overflow: auto;
}

.widget-title-editor {
    display: grid;
    min-width: 0;
    color: #aeb1af;
    font: 400 13px/1.2 var(--font-condensed);
    letter-spacing: .045em;
    gap: 7px;
}

.widget-title-editor .rich-text-editor {
    width: 100%;
}

.color-palette-editor {
    display: grid;
    color: #aeb1af;
    font: 400 13px/1.2 var(--font-condensed);
    letter-spacing: .045em;
    gap: 7px;
}

.color-palette-editor > div {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.editor-properties .color-palette-editor__picker {
    width: 42px;
    min-height: 38px;
    padding: 3px;
    cursor: pointer;
}

.editor-properties .color-palette-editor__value {
    min-width: 0;
}

.header-navigation-editor,
.header-navigation-editor__item {
    display: grid;
    gap: 10px;
}

.header-navigation-editor__item {
    padding: 12px;
    border: 1px solid #343a3b;
    background: #101619;
}

.header-navigation-editor__item > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.header-navigation-editor__item .angular-button {
    min-width: 0;
    min-height: 32px;
    padding: 6px;
    font-size: 10px;
}

.editor-properties fieldset {
    display: grid;
    margin: 0;
    padding: 14px 0 0;
    border: 0;
    border-top: 1px solid #303536;
    gap: 12px;
}

.editor-properties legend {
    padding: 0 8px 0 0;
    color: #9f8156;
    font: 500 12px/1 var(--font-condensed);
    letter-spacing: .08em;
}

.range-field > span {
    display: flex;
    justify-content: space-between;
}

.range-field output {
    color: #d6a65f;
}

.editor-properties input[type="range"] {
    min-height: 22px;
    padding: 0;
    accent-color: var(--amber);
}

.checkbox-field {
    display: flex !important;
    grid-template-columns: auto 1fr;
    align-items: center;
}

.checkbox-field input {
    width: 18px;
    min-height: 18px;
    accent-color: var(--amber);
}

.editor-properties > footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 12px 18px;
    border-top: 1px solid #303536;
    gap: 8px;
}

.editor-properties > footer .angular-button {
    width: 100%;
    min-width: 0;
}

.server-system-group-editor {
    display: grid;
    padding-top: 14px;
    border-top: 1px solid #303536;
    gap: 12px;
}

.server-system-group-editor > header {
    display: grid;
    gap: 10px;
}

.server-system-group-editor > header > div {
    display: grid;
    gap: 5px;
}

.server-system-group-editor > header strong {
    color: #b58e56;
    font: 550 13px/1 var(--font-condensed);
    letter-spacing: .07em;
    text-transform: uppercase;
}

.server-system-group-editor > header small,
.server-system-group-editor__empty,
.server-system-group-editor__unassigned {
    margin: 0;
    color: #80898a;
    font: 400 11px/1.45 var(--font-condensed);
}

.server-system-group-editor > header .angular-button {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 11px;
}

.server-system-group-editor__list {
    display: grid;
    gap: 9px;
}

.server-system-group-editor article {
    display: grid;
    padding: 10px;
    border: 1px solid #394042;
    background: linear-gradient(180deg, rgba(21, 27, 29, .96), rgba(9, 13, 15, .98));
    gap: 9px;
}

.server-system-group-editor article > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.server-system-group-editor article > header span {
    color: #b7a27f;
    font: 450 10px/1.2 var(--font-condensed);
}

.server-system-group-editor article > header div {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
}

.server-system-group-editor article > header button {
    min-height: 25px;
    padding: 4px 6px;
    border: 1px solid #484c49;
    color: #a8a49b;
    background: #111619;
    cursor: pointer;
    font: 500 9px/1 var(--font-condensed);
}

.server-system-group-editor article > header button:hover:not(:disabled) {
    color: #efbc70;
    border-color: #86663d;
}

.server-system-group-editor article > header button:disabled {
    opacity: .3;
    cursor: not-allowed;
}

.server-system-group-editor__unassigned {
    padding: 8px 9px;
    border-left: 2px solid #a2753e;
    background: rgba(132, 91, 43, .1);
}

.rich-text-editor {
    display: grid;
    min-width: 0;
    border: 1px solid #41484a;
    background: #080c0e;
}

.rich-text-editor__floating-toolbar[popover] {
    position: fixed;
    z-index: 130;
    inset: auto;
    display: none;
    width: max-content;
    max-width: calc(100vw - 16px);
    margin: 0;
    padding: 3px;
    overflow: hidden;
    border: 1px solid #555d5e;
    border-radius: 3px;
    background: #111719;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .42), 0 0 0 1px rgba(220, 164, 73, .08);
    color: #d6d1c7;
    gap: 3px;
    overscroll-behavior: contain;
}

.rich-text-editor__floating-toolbar[popover]:popover-open,
.rich-text-editor__floating-toolbar[popover][data-visible="true"] {
    display: grid;
}

.rich-text-editor__floating-row {
    display: flex;
    min-width: 0;
    align-items: center;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 2px;
    scrollbar-width: none;
}

.rich-text-editor__floating-row::-webkit-scrollbar {
    display: none;
}

.rich-text-editor__floating-row--effects {
    padding-top: 3px;
    border-top: 1px solid #343b3c;
}

.rich-text-editor__floating-toolbar button,
.rich-text-editor__floating-toolbar select {
    flex: 0 0 auto;
    min-width: 24px;
    min-height: 24px;
    margin: 0;
    padding: 2px 5px;
    border: 1px solid transparent;
    border-radius: 2px;
    background: transparent;
    color: #bfc4c2;
    font: 500 12px/1 var(--font-system);
    cursor: pointer;
    white-space: nowrap;
}

.rich-text-editor__floating-toolbar input[type="color"] {
    width: 22px;
    height: 22px;
    min-height: 22px;
    flex: 0 0 22px;
    margin: 0;
    padding: 1px;
    border: 1px solid #485051;
    border-radius: 2px;
    background: #0b1012;
    cursor: pointer;
}

.rich-text-editor__floating-toolbar button:hover,
.rich-text-editor__floating-toolbar button:focus-visible,
.rich-text-editor__floating-toolbar select:hover,
.rich-text-editor__floating-toolbar select:focus-visible,
.rich-text-editor__floating-toolbar input[type="color"]:hover,
.rich-text-editor__floating-toolbar input[type="color"]:focus-visible {
    border-color: #4b5556;
    background: #1a2224;
    color: #efe7da;
    outline: 0;
}

.rich-text-editor__floating-toolbar button[aria-pressed="true"] {
    border-color: #846438;
    background: #2a2115;
    color: #efbc70;
}

.rich-text-editor__floating-toolbar select.rich-text-editor__floating-block {
    width: 108px;
}

.rich-text-editor__floating-toolbar select.rich-text-editor__floating-font {
    width: 108px;
}

.rich-text-editor__floating-separator {
    width: 1px;
    height: 18px;
    flex: 0 0 1px;
    margin: 0 2px;
    background: #3b4243;
}

.rich-text-editor__floating-row > .rich-text-editor__floating-field,
.rich-text-editor__floating-gradient-controls {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    color: #9fa6a5;
    font: 400 11px/1 var(--font-condensed);
    white-space: nowrap;
    gap: 3px;
}

.rich-text-editor__floating-gradient-controls > label {
    display: flex;
    margin: 0;
}

.rich-text-editor__floating-gradient-field,
.rich-text-editor__floating-effect-field {
    padding-left: 4px;
    border-left: 1px solid #343b3c;
}

.rich-text-editor__floating-effect-field select {
    width: 96px;
}

.rich-text-editor__floating-apply {
    min-width: 68px !important;
}

@media (max-width: 480px) {
    .rich-text-editor__floating-toolbar[popover] {
        width: calc(100vw - 16px);
    }

    .rich-text-editor__floating-toolbar select.rich-text-editor__floating-block,
    .rich-text-editor__floating-toolbar select.rich-text-editor__floating-font {
        width: 92px;
    }
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.rich-text-editor__surface {
    min-height: 150px;
    max-height: 330px;
    padding: 10px;
    overflow: auto;
    color: #d1d1cd;
    font: 14px/1.5 var(--font-system);
}

.rich-text-editor--single-line .rich-text-editor__surface {
    min-height: 42px;
    max-height: 84px;
    padding: 9px;
    overflow: auto;
    white-space: pre-wrap;
}

.editor-status {
    top: 178px;
}

.editor-status--error {
    color: #efbbb6;
    border-color: #8b4c46;
    background: rgba(35, 16, 16, .96);
}

.widget-position-handle {
    position: absolute;
    z-index: 61;
    top: 3px;
    right: 3px;
    display: none;
    min-width: 70px;
    min-height: 28px;
    padding: 4px 8px;
    border: 1px solid #efbd70;
    color: #efbd70;
    background: rgba(9, 12, 13, .94);
    cursor: grab;
    font: 600 10px/1 var(--font-condensed);
    letter-spacing: .08em;
    touch-action: none;
}

.widget-position-handle:active {
    cursor: grabbing;
}

.site-widget.is-selected > .widget-position-handle {
    display: block;
}

.widget-menu {
    width: min(100%, 980px);
}

.widget-menu.menu-placement-left {
    justify-self: start;
}

.widget-menu.menu-placement-center {
    justify-self: center;
}

.widget-menu.menu-placement-right {
    justify-self: end;
}

.widget-menu.is-menu-pinned {
    position: sticky;
    z-index: 45;
    top: 96px;
    align-self: start;
}

.widget-tree.is-editor .widget-menu.is-menu-pinned {
    position: relative;
    top: auto;
}

.content-menu {
    display: grid;
    padding: clamp(14px, 2vw, 24px);
    border: 1px solid #4e4b43;
    background: linear-gradient(180deg, rgba(18, 24, 27, .97), rgba(8, 12, 14, .98));
    box-shadow: 0 16px 40px rgba(0, 0, 0, .32);
    gap: 14px;
}

.content-menu h2 {
    margin: 0;
    color: #d8b270;
    font: 550 20px/1 var(--font-condensed);
    letter-spacing: .09em;
    text-transform: uppercase;
}

.content-menu ul {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    gap: 8px 22px;
    list-style: none;
}

.menu-placement-right .content-menu {
    text-align: right;
}

.menu-placement-left .content-menu ul,
.menu-placement-right .content-menu ul {
    flex-direction: column;
}

.menu-placement-right .content-menu ul {
    align-items: flex-end;
}

.content-menu a {
    color: #b8b7b1;
    font: 500 15px/1.35 var(--font-condensed);
    letter-spacing: .055em;
    text-decoration: none;
    text-transform: uppercase;
}

.content-menu a:hover {
    color: #efbd70;
}

.menu-items-editor,
.menu-items-editor__item {
    display: grid;
    gap: 9px;
}

.menu-items-editor__heading,
.menu-items-editor__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.menu-items-editor__heading button,
.menu-items-editor__actions button {
    min-height: 28px;
    padding: 5px 7px;
    border: 1px solid #4c4b45;
    color: #b9b8b1;
    background: #111619;
    cursor: pointer;
    font: 500 10px/1 var(--font-condensed);
}

.menu-items-editor__item {
    padding: 10px;
    border: 1px solid #343a3b;
    background: #0e1417;
}

.menu-items-editor__actions {
    justify-content: flex-end;
}

.menu-items-editor__actions .danger-link {
    color: #e18278;
    border-color: #71413d;
}

.feed-identifier {
    display: grid;
    gap: 6px;
}

.feed-identifier code {
    padding: 9px;
    overflow-wrap: anywhere;
    color: #b8a47f;
    border: 1px solid #373d3e;
    background: #080c0e;
    font-size: 11px;
}

.news-feed {
    display: grid;
    width: 100%;
    padding: clamp(24px, 4vw, 56px);
    border: 1px solid #41413c;
    background:
        radial-gradient(circle at 90% 0, rgba(137, 94, 42, .12), transparent 32rem),
        linear-gradient(180deg, #0d1317, #080c0f);
    gap: 28px;
}

.news-feed__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.news-feed__header h2 {
    margin: 5px 0 0;
    color: #d8d4cb;
    font: 600 clamp(34px, 4vw, 62px)/1 var(--font-condensed);
    letter-spacing: .035em;
}

.news-feed__search {
    display: flex;
    width: min(420px, 100%);
}

.news-feed__search label {
    flex: 1;
}

.news-feed__search input,
.news-admin select,
.news-document-editor input,
.news-document-editor textarea,
.news-inline-editor select,
.page-catalog input {
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid var(--text-field-border);
    border-radius: 2px;
    color: var(--text-field-color);
    background: var(--text-field-background);
    box-shadow: var(--text-field-shadow);
}

.news-feed__search input {
    width: 100%;
}

.news-feed__search .angular-button {
    min-width: 94px;
    min-height: 42px;
    border-radius: 0;
}

.news-feed__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.news-card {
    display: grid;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #373d3f;
    background: #0f1519;
    grid-template-rows: auto 1fr;
}

.news-card > img {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    filter: saturate(.72) contrast(1.06);
}

.news-card__body {
    display: grid;
    align-content: start;
    padding: 20px;
    gap: 12px;
}

.news-card time,
.news-card__body > p {
    color: #80898b;
    font-size: 13px;
}

.news-card h3 {
    margin: 0;
    font: 550 24px/1.15 var(--font-condensed);
}

.news-card h3 a {
    color: #d3d0c9;
    text-decoration: none;
}

.news-card__body > p {
    margin: 0;
    line-height: 1.55;
}

.news-card__link {
    align-self: end;
    color: #d4a55b;
    font: 550 13px/1 var(--font-condensed);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.news-feed__state {
    min-height: 180px;
    display: grid;
    place-items: center;
    color: #828b8d;
    border: 1px dashed #3b4244;
}

.news-admin__more {
    justify-self: center;
    min-height: 42px;
    padding: 8px 24px;
    border: 1px solid #8f6637;
    color: #e1b469;
    background: #111619;
    cursor: pointer;
    font: 550 13px/1 var(--font-condensed);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.news-feed__more {
    justify-self: center;
}

.public-news-index {
    width: min(1480px, calc(100% - 40px));
    min-height: calc(100vh - 78px);
    margin: 0 auto;
    padding: 48px 0 80px;
}

.website-admin {
    min-height: calc(100vh - 78px);
    padding: 22px clamp(10px, 1.5vw, 28px) 80px;
}

.admin-navigation {
    display: flex;
    width: 100%;
    margin: 0 0 22px;
    border-bottom: 1px solid #47453f;
    gap: 6px;
}

.admin-navigation a {
    padding: 13px 22px;
    color: #989d9d;
    border: 1px solid transparent;
    border-bottom: 0;
    font: 550 15px/1 var(--font-condensed);
    letter-spacing: .07em;
    text-decoration: none;
    text-transform: uppercase;
}

.admin-navigation a:hover,
.admin-navigation a.is-active {
    color: #e0b36a;
    border-color: #514a3f;
    background: #111619;
}

.admin-navigation-host[aria-busy="true"] .admin-navigation a {
    pointer-events: none;
}

.page-admin-layout {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 20px;
}

.page-catalog,
.page-preview {
    min-width: 0;
    border: 1px solid #3d4242;
    background: #0d1215;
}

.page-catalog {
    display: grid;
    align-content: start;
    padding: 22px;
    gap: 20px;
}

.page-catalog h1,
.page-preview h2,
.news-admin h1 {
    margin: 4px 0 0;
    color: #d7d3cb;
    font: 600 32px/1 var(--font-condensed);
}

.page-catalog__list,
.page-catalog__create {
    display: grid;
    gap: 10px;
}

.page-catalog__list {
    max-height: 42vh;
    overflow: auto;
}

.page-catalog__list button {
    display: grid;
    padding: 12px;
    color: #aeb2b1;
    border: 1px solid #343a3b;
    background: #101619;
    cursor: pointer;
    text-align: left;
    gap: 4px;
}

.page-catalog__list button.is-selected {
    color: #e4ba74;
    border-color: #8a693e;
    background: #1b1915;
}

.page-catalog__list span,
.page-catalog__list small {
    color: #747d7e;
    overflow-wrap: anywhere;
}

.page-catalog__create {
    padding-top: 18px;
    border-top: 1px solid #333839;
}

.page-catalog__create h2 {
    margin: 0;
    font: 550 20px/1 var(--font-condensed);
}

.page-catalog__create label {
    display: grid;
    color: #aeb1af;
    gap: 7px;
}

.slug-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    border: 1px solid var(--text-field-border);
    border-radius: 2px;
    background: var(--text-field-background);
    box-shadow: var(--text-field-shadow);
}

.slug-field span {
    padding-left: 10px;
    color: #777f80;
}

.slug-field input {
    min-width: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.slug-field:focus-within,
.news-inline-editor__address:focus-within {
    border-color: #d8a45c;
    outline: 1px solid rgba(216, 164, 92, .42);
    outline-offset: 1px;
}

.slug-field input:focus-visible,
.news-inline-editor__address input:focus-visible {
    outline: none;
}

.page-preview {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.page-preview__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #373c3d;
    gap: 18px;
}

.page-preview__toolbar > div:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.page-preview__canvas {
    min-width: 0;
    max-height: calc(100vh - 230px);
    overflow: auto;
    background: #080c0e;
}

.page-preview__canvas .widget-tree {
    min-width: 760px;
}

.admin-toast {
    position: fixed;
    z-index: 180;
    right: 24px;
    bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: min(460px, calc(100vw - 32px));
    max-height: min(60vh, 360px);
    overflow-y: auto;
    padding: 14px 18px;
    color: #cfe2d0;
    border: 1px solid #4d7655;
    background: rgba(15, 35, 20, .97);
    box-shadow: 0 16px 42px rgba(0, 0, 0, .5);
}

.site-toast-text {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.site-toast-dismiss {
    flex: none;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
    text-decoration: underline;
    white-space: nowrap;
}

.site-toast-dismiss:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.admin-toast.is-error {
    color: #efbbb6;
    border-color: #8b4c46;
    background: rgba(35, 16, 16, .97);
}

.news-admin > :not(.admin-navigation) {
    width: 100%;
}

.news-admin__header,
.news-admin__tags,
.news-admin__filters,
.news-admin__feed-hint,
.news-admin-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.news-admin__header {
    margin-bottom: 22px;
}

.news-admin__tags {
    align-items: end;
    margin-bottom: 14px;
    padding: 16px 18px;
    border: 1px solid #4a4033;
    background: rgba(117, 84, 42, .08);
}

.news-admin__tags h2 {
    margin: 4px 0 0;
    font: 550 24px/1.15 var(--font-condensed);
}

.news-admin__tag-create {
    display: flex;
    align-items: end;
    gap: 10px;
}

.news-admin__tag-create label {
    display: grid;
    min-width: min(320px, 50vw);
    color: #999f9f;
    gap: 6px;
}

.news-admin__selected-tag,
.news-admin-card__tag {
    color: #d6b476;
    font: 550 12px/1 var(--font-condensed);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.news-admin__filters {
    padding: 16px 18px;
    border: 1px solid #3d4242;
    background: #0e1417;
}

.news-admin__filters label {
    display: grid;
    width: min(560px, 100%);
    color: #999f9f;
    gap: 6px;
}

.news-admin__filters select {
    width: 100%;
}

.news-admin__filters code {
    color: #8f9695;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.news-admin__feed-hint,
.news-admin__empty {
    margin-top: 16px;
    padding: 20px;
    border: 1px dashed #4c4d47;
    background: rgba(117, 84, 42, .07);
}

.news-admin__feed-hint p {
    flex: 1;
    margin: 0;
    color: #8e9696;
}

.news-admin__articles {
    display: grid;
    margin-top: 18px;
    gap: 12px;
}

.news-admin-card {
    display: grid;
    min-width: 0;
    padding: 14px;
    border: 1px solid #363c3e;
    background: #0e1417;
    grid-template-columns: 150px minmax(0, 1fr) auto;
}

.news-admin-card > img {
    width: 150px;
    height: 96px;
    object-fit: cover;
}

.news-admin-card h2,
.news-admin-card p {
    margin: 5px 0;
}

.news-admin-card h2 {
    font: 550 24px/1.15 var(--font-condensed);
}

.news-admin-card p,
.news-admin-card small {
    color: #838b8c;
}

.news-admin-card__status {
    display: inline-flex;
    padding: 4px 7px;
    color: #c3a26e;
    border: 1px solid #65553d;
    font: 550 10px/1 var(--font-condensed);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.news-admin-card__status.is-published {
    color: #8ed29a;
    border-color: #426d4a;
}

.news-admin__more {
    display: flex;
    margin: 18px auto 0;
}

.news-inline-editor {
    min-height: calc(100vh - 78px);
    background:
        radial-gradient(circle at 50% 0, rgba(123, 88, 45, .11), transparent 34rem),
        #090d10;
}

.news-inline-editor__toolbar {
    position: sticky;
    z-index: 70;
    top: 78px;
    display: grid;
    grid-template-columns: minmax(180px, .7fr) minmax(260px, 1fr) auto;
    align-items: center;
    padding: 12px clamp(14px, 3vw, 40px);
    border-bottom: 1px solid #41423e;
    background: rgba(10, 14, 16, .98);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .36);
    gap: 18px;
}

.news-inline-editor__nav,
.news-inline-editor__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.news-inline-editor__nav > a {
    color: #b7b9b5;
    font: 500 13px/1 var(--font-condensed);
    text-decoration: none;
    text-transform: uppercase;
}

.news-inline-editor__metadata,
.news-inline-editor__metadata > label {
    display: grid;
    min-width: 0;
    color: #888f90;
    font-size: 12px;
    gap: 4px;
}

.news-inline-editor__metadata {
    grid-template-columns: minmax(180px, 1fr) minmax(160px, .8fr);
    gap: 10px;
}

.news-inline-editor__address {
    display: flex;
    align-items: center;
    min-width: 0;
    border: 1px solid var(--text-field-border);
    border-radius: 2px;
    background: var(--text-field-background);
    box-shadow: var(--text-field-shadow);
}

.news-inline-editor__address > span {
    padding-left: 8px;
    color: #777f80;
}

.news-inline-editor__address input {
    min-width: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.news-inline-editor__actions {
    justify-content: flex-end;
}

.news-inline-editor__actions .angular-button {
    min-width: 0;
}

.news-document-editor {
    display: grid;
    width: 100%;
    padding: clamp(38px, 5vw, 72px) clamp(18px, 4vw, 72px) 110px;
    gap: 20px;
}

.news-document-editor__cover-field {
    display: grid;
    color: #899192;
    font-size: 12px;
    gap: 6px;
}

.news-document-editor__cover {
    width: 100%;
    max-height: 480px;
    border: 1px solid #45443e;
    object-fit: cover;
}

.news-document-editor__title {
    width: 100%;
    min-height: 74px !important;
    padding: 6px 0 !important;
    border-width: 0 0 1px !important;
    color: #e0ddd5 !important;
    background: transparent !important;
    font: 600 clamp(40px, 7vw, 76px)/1 var(--font-condensed) !important;
}

.news-document-editor__summary {
    width: 100%;
    min-height: 96px;
    resize: vertical;
    color: #b3b7b4 !important;
    background: rgba(12, 17, 20, .75) !important;
    font-size: 18px;
    line-height: 1.55;
}

.news-document-editor__meta {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 14px;
    color: #778081;
    border-bottom: 1px solid #353a3b;
    font-size: 12px;
    gap: 18px;
}

.news-document-editor .rich-text-editor {
    border-color: #4b504f;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

.news-document-editor .rich-text-editor__surface {
    min-height: 520px;
    max-height: none;
    padding: clamp(22px, 4vw, 52px);
    overflow: visible;
    font-size: 17px;
    line-height: 1.75;
}

.public-news-article {
    display: grid;
    width: min(980px, calc(100% - 36px));
    min-height: calc(100vh - 78px);
    margin: 0 auto;
    padding: 54px 0 110px;
    gap: 26px;
}

.public-news-article__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: start;
    min-height: 28px;
    color: #999f9e;
    font: 500 13px/1 var(--font-condensed);
    text-decoration: none;
    text-transform: uppercase;
}

.public-news-article__back .site-icon {
    width: 17px;
    height: 17px;
    flex: none;
    transform: rotate(180deg);
}

.public-news-article__cover {
    width: 100%;
    max-height: 540px;
    border: 1px solid #4a4841;
    object-fit: cover;
}

.public-news-article h1 {
    max-width: 900px;
    margin: 8px 0 18px;
    color: #dedbd3;
    font: 600 clamp(44px, 7vw, 82px)/1.03 var(--font-condensed);
}

.public-news-article__summary {
    color: #adb2b0;
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.5;
}

.public-news-article__meta {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 20px;
    color: #798183;
    border-bottom: 1px solid #363b3c;
    gap: 18px;
}

.public-news-article__content {
    color: #c7c9c4;
    font-size: 17px;
    line-height: 1.75;
}

.public-news-article__content img {
    max-width: 100%;
    height: auto;
}

.editor-properties__admin-link {
    justify-self: start;
    color: #b98e52;
    font-size: 11px;
}

.metric-admin__layout {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(290px, 360px) minmax(0, 1fr);
    gap: 20px;
}

.metric-catalog,
.metric-editor {
    min-width: 0;
    border: 1px solid #3d4242;
    background: #0d1215;
}

.metric-catalog {
    display: grid;
    align-content: start;
    padding: 22px;
    gap: 20px;
}

.metric-catalog h1,
.metric-editor h2 {
    margin: 4px 0 0;
    color: #d7d3cb;
    font: 600 32px/1 var(--font-condensed);
}

.metric-catalog__list,
.metric-catalog__create,
.metric-editor__form {
    display: grid;
    gap: 11px;
}

.metric-catalog__list {
    max-height: 42vh;
    overflow: auto;
}

.metric-catalog__list button {
    display: grid;
    padding: 12px;
    color: #aeb2b1;
    border: 1px solid #343a3b;
    background: #101619;
    cursor: pointer;
    text-align: left;
    gap: 5px;
}

.metric-catalog__list button.is-selected {
    color: #e4ba74;
    border-color: #8a693e;
    background: #1b1915;
}

.metric-catalog__list code,
.metric-catalog__list span {
    color: #747d7e;
    overflow-wrap: anywhere;
}

.metric-catalog__create {
    padding-top: 18px;
    border-top: 1px solid #34393a;
}

.metric-catalog__create h2 {
    margin: 0;
    font: 550 20px/1 var(--font-condensed);
}

.metric-catalog label,
.metric-editor label {
    display: grid;
    color: #a4aaa9;
    font-size: 13px;
    gap: 7px;
}

.metric-catalog input,
.metric-catalog select,
.metric-editor input,
.metric-editor select,
.metric-editor textarea {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 9px 11px;
    color: var(--text-field-color);
    border: 1px solid var(--text-field-border);
    border-radius: 2px;
    background: var(--text-field-background);
    box-shadow: var(--text-field-shadow);
}

.metric-editor {
    align-self: start;
}

.metric-editor__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px;
    border-bottom: 1px solid #383d3e;
    gap: 18px;
}

.metric-editor__header code {
    display: inline-block;
    margin-top: 8px;
    color: #8b9494;
}

.metric-editor__form {
    padding: 24px;
    gap: 18px;
}

.metric-editor__form textarea {
    min-height: 110px;
    resize: vertical;
}

.metric-editor__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.metric-points-field textarea {
    min-height: 330px;
    font-family: var(--font-monospace);
    line-height: 1.6;
}

.metric-points-field small {
    color: #777f80;
}

.metric-source-state {
    padding: 18px;
    color: #c99b72;
    border: 1px solid #704e3c;
    background: rgba(85, 46, 31, .12);
}

.metric-source-state.is-connected {
    color: #8fc79a;
    border-color: #42684a;
    background: rgba(42, 88, 51, .1);
}

.metric-source-state p,
.metric-source-state span {
    color: #8b9393;
    line-height: 1.5;
}

.metric-source-state > div {
    display: flex;
    flex-wrap: wrap;
    margin-top: 8px;
    gap: 6px;
}

.metric-source-state code {
    padding: 5px 7px;
    color: #b8a47f;
    border: 1px solid #3a4142;
    background: #080c0e;
}

#blazor-error-ui {
    position: fixed;
    z-index: 1000;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    padding: 12px 18px;
    color: #f0d3cf;
    border-top: 1px solid #984f47;
    background: #351a18;
}

.valid.modified:not([type="checkbox"]) {
    border-color: #4f9f65;
}

.invalid {
    border-color: #c05c52 !important;
}

@media (max-width: 1200px) {
    .site-header {
        grid-template-columns: auto 1fr auto;
        padding: 0 22px;
    }

    .site-header__nav {
        gap: 22px;
    }

    .site-header__nav a {
        font-size: 14px;
    }

}

@media (max-width: 850px) {
    .site-header {
        height: 66px;
        grid-template-columns: 1fr auto;
    }

    .site-header__nav {
        position: absolute;
        top: 66px;
        right: 0;
        left: 0;
        height: 42px;
        justify-content: flex-start;
        padding: 0 18px;
        overflow-x: auto;
        border-bottom: 0;
        background: rgba(8, 11, 13, .98);
    }

    .site-header__nav a.is-active::after {
        bottom: 3px;
    }

    .site-header__account form .angular-button--quiet {
        display: none;
    }

    .role-hero {
        margin-top: 42px;
        background-position: center;
    }

    .role-hero-copy {
        top: 190px;
        right: 3vw;
        left: 3vw;
    }

    .role-hero-copy h1 {
        font-size: clamp(36px, 4em, 92px);
    }

    .role-hero-copy h2 {
        gap: 12px;
        font-size: 1.55em;
        letter-spacing: .14em;
    }

    .role-hero-action {
        top: 455px;
    }

    .role-server-universe {
        right: 12px;
        bottom: 18px;
        left: 12px;
        clip-path: none;
    }

    .server-universe-panel__header {
        left: 22px;
    }

    .server-system-tabs {
        right: 22px;
        left: 22px;
    }

    .server-planet-label {
        width: 130px;
    }

    .public-home .role-content-section {
        padding: 52px 22px 70px !important;
    }

    .public-home .role-content-section > .site-widget {
        --parent-inline-padding: 44px !important;
    }

    .public-home .role-section-copy,
    .public-home .role-data-panel {
        grid-column: span 12 !important;
    }

    .site-editor__toolbar {
        top: 66px;
        grid-template-columns: 1fr auto;
    }

    .site-editor__hint {
        display: none;
    }

    .site-editor__workspace {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .editor-panel-resizer {
        display: none;
    }

    .editor-properties {
        position: fixed;
        z-index: 120;
        top: 152px;
        right: 0;
        width: min(360px, 100vw);
        max-width: 100vw;
        height: calc(100vh - 152px);
        box-shadow: -16px 0 40px rgba(0, 0, 0, .55);
    }
}

@media (max-width: 620px) {
    .site-header__brand {
        font-size: 21px;
    }

    .site-header__account .angular-button {
        min-width: 94px;
        min-height: 38px;
        padding: 7px 12px;
        font-size: 13px;
    }

    .role-hero-copy {
        top: 150px;
    }

    .role-hero-copy h1 {
        font-size: clamp(30px, 10vw, 48px);
    }

    .role-hero-copy h2 {
        margin-top: 12px;
        font-size: 1.05em;
        line-height: 1.1;
        letter-spacing: .12em;
    }

    .role-hero-copy p {
        max-width: 320px;
        margin: auto;
        font-size: 1em;
    }

    .role-hero-action {
        top: 500px;
        width: 280px;
        min-width: min(280px, 70vw);
    }

    .role-hero-action .content-button {
        font-size: 1em;
    }

    .server-universe-panel__header {
        right: 22px;
        flex-wrap: wrap;
        gap: 6px 12px;
    }

    .server-system-tabs {
        top: 67px;
    }

    .server-universe-scene {
        top: 116px;
    }

    .server-universe-panel__hint {
        display: none;
    }

    .server-planet-label {
        width: 118px;
        padding: 5px;
    }

    .server-planet-label strong {
        font-size: 14px;
    }

    .server-planet-label span {
        font-size: 11px;
    }

    .server-universe-panel.is-dense .server-planet-label {
        width: 94px;
        padding: 3px 4px;
    }

    .server-universe-panel.is-dense .server-planet-label strong {
        font-size: 11px;
    }

    .server-universe-panel.is-dense .server-planet-label span {
        font-size: 9px;
    }

    .site-editor__toolbar {
        top: 108px;
        min-height: 110px;
        padding: 10px;
    }

    .site-editor__actions {
        width: 100%;
    }

    .site-editor__actions .angular-button {
        min-width: 0;
        flex: 1 1 130px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .site-editor__toolbar > div:first-child {
        display: none;
    }

    .site-editor__workspace {
        display: block;
    }

    .editor-library {
        position: static;
        width: 100%;
        height: auto;
        padding: 10px;
    }

    .editor-library > h2,
    .editor-library > p {
        display: none;
    }

    .editor-library__items {
        display: flex;
        overflow-x: auto;
    }

    .editor-library__items button {
        min-width: 138px;
    }

    .editor-canvas {
        padding: 20px 8px 100px;
    }

    .editor-properties {
        top: 218px;
        width: min(360px, 100vw);
        height: calc(100vh - 218px);
    }

}

@media (max-width: 1100px) {
    .news-feed__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-inline-editor__toolbar {
        grid-template-columns: minmax(180px, .7fr) minmax(240px, 1fr);
    }

    .news-inline-editor__actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 850px) {
    .widget-menu.is-menu-pinned {
        top: 122px;
    }

    .website-admin {
        padding: 22px 14px 70px;
    }

    .admin-navigation {
        overflow-x: auto;
    }

    .admin-navigation a {
        white-space: nowrap;
    }

    .page-admin-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .metric-admin__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .metric-catalog__list {
        max-height: 300px;
    }

    .page-catalog__list {
        max-height: 300px;
    }

    .page-preview__canvas {
        max-height: 70vh;
    }

    .news-feed__header,
    .news-admin__header,
    .news-admin__tags,
    .news-admin__filters,
    .news-admin__feed-hint {
        align-items: stretch;
        flex-direction: column;
    }

    .news-feed__search,
    .news-admin__filters label,
    .news-admin__tag-create,
    .news-admin__tag-create label {
        width: 100%;
    }

    .news-admin__tag-create {
        align-items: stretch;
        flex-direction: column;
    }

    .news-feed__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .news-admin-card {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .news-admin-card > img {
        width: 120px;
        height: 90px;
    }

    .news-admin-card > .angular-button {
        grid-column: 1 / -1;
        justify-self: end;
    }

    .news-inline-editor__toolbar {
        top: 108px;
        grid-template-columns: minmax(0, 1fr);
    }

    .news-inline-editor__actions {
        grid-column: auto;
        justify-content: flex-start;
    }

    .news-inline-editor__metadata {
        grid-template-columns: minmax(0, 1fr);
    }

    .news-document-editor .rich-text-editor__surface {
        min-height: 420px;
        padding: 22px;
    }
}

@media (max-width: 620px) {
    .site-header__account {
        gap: 4px;
    }

    .site-header__account .angular-button {
        min-width: 0;
        padding-right: 7px;
        padding-left: 7px;
        font-size: 10px;
    }

    .site-header__admin-button {
        max-width: 94px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .widget-registrationform {
        width: 100% !important;
    }

    .registration-form__fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .registration-form > .angular-button {
        width: 100%;
    }

    .registration-form-panel__login,
    .account-panel__alternative {
        align-items: flex-start;
        flex-direction: column;
    }

    .news-feed {
        padding: 22px 14px;
    }

    .news-feed__search {
        display: grid;
    }

    .news-admin-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .news-admin-card > img {
        width: 100%;
        height: auto;
        max-height: 190px;
    }

    .news-admin-card > .angular-button {
        grid-column: auto;
        justify-self: stretch;
    }

    .news-inline-editor__toolbar {
        position: relative;
        top: auto;
    }

    .news-inline-editor__actions .angular-button {
        flex: 1 1 140px;
    }

    .news-document-editor {
        width: min(100% - 20px, 980px);
        padding-top: 28px;
    }

    .metric-editor__header {
        align-items: stretch;
        flex-direction: column;
    }

    .metric-editor__row {
        grid-template-columns: minmax(0, 1fr);
    }

    .news-document-editor__title {
        font-size: 38px !important;
    }

    .public-news-index {
        width: calc(100% - 20px);
        padding-top: 24px;
    }

    .public-news-article {
        width: calc(100% - 24px);
        padding-top: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
:where(.image-carousel) {
    position: relative;
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 180px;
}
.image-carousel__track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.image-carousel__track::-webkit-scrollbar { display: none; }
.image-carousel__track figure { flex: 0 0 100%; width: 100%; min-width: 0; margin: 0; scroll-snap-align: start; }
.image-carousel__track img { display: block; width: 100%; height: 100%; max-height: 70vh; min-height: 180px; object-fit: contain; }
.image-carousel > button { position: absolute; z-index: 0; top: 50%; width: 44px; height: 52px; border: 4px solid var(--rim-button-edge); border-radius: 4px; color: #fff; background: linear-gradient(180deg, var(--rim-button-fill-top), var(--rim-button-fill)); box-shadow: inset 0 0 0 1px var(--rim-button-highlight), inset 0 0 0 3px var(--rim-button-frame); cursor: pointer; font-size: 28px; isolation: isolate; text-shadow: none; transform: translateY(-50%); transition: background .12s ease, box-shadow .12s ease, filter .12s ease; }
.image-carousel > button::before { position: absolute; z-index: -1; inset: 2px; content: ""; border: 1px solid rgba(229, 188, 123, .34); border-radius: 1px; pointer-events: none; }
.image-carousel > button::after { position: absolute; z-index: -1; inset: 3px; content: ""; background: transparent; pointer-events: none; transition: background .12s ease; }
.image-carousel > button:hover { background: linear-gradient(180deg, #957044, var(--rim-button-fill-hover)); }
.image-carousel > button:hover::after { background: rgba(255, 255, 255, .1); }
.image-carousel > button:active { background: linear-gradient(180deg, #674624, #79572f); box-shadow: inset 0 0 0 1px #b5874f, inset 0 0 0 3px #3f2916, inset 0 4px 0 rgba(29, 16, 7, .42); filter: brightness(.96); }
.image-carousel__previous { left: 8px; }
.image-carousel__next { right: 8px; }
.image-carousel__dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 8px; }
.image-carousel__dots button { min-width: 30px; min-height: 30px; border: 3px solid var(--rim-button-edge); border-radius: 3px; color: #fff; background: linear-gradient(180deg, var(--rim-button-fill-top), var(--rim-button-fill)); box-shadow: inset 0 0 0 1px var(--rim-button-highlight), inset 0 0 0 2px var(--rim-button-frame); cursor: pointer; text-shadow: none; }
.image-carousel__dots button:hover,
.image-carousel__dots button[aria-current="true"] { color: #fff; background: linear-gradient(180deg, #957044, var(--rim-button-fill-hover)); box-shadow: inset 0 0 0 1px #c09257, inset 0 0 0 2px #53371e; }

/* Служебные кнопки виджетов используют ту же рамку и фаски, что и основные действия сайта. */
.server-system-tabs button,
.server-universe-fallback button,
.image-carousel > button,
.image-carousel__dots button {
    position: relative;
    z-index: 0;
    overflow: hidden;
    border: 3px solid var(--rim-button-edge);
    border-radius: 7px;
    color: #fff;
    background: var(--rim-button-frame);
    box-shadow: 0 2px 2px rgba(0, 0, 0, .72);
    isolation: isolate;
    text-shadow: 0 2px 1px rgba(20, 12, 6, .72);
    transition: filter .08s ease;
}

.server-system-tabs button::before,
.server-universe-fallback button::before,
.image-carousel > button::before,
.image-carousel__dots button::before {
    position: absolute;
    z-index: -1;
    inset: 1px;
    content: "";
    border: 1px solid var(--rim-button-frame-edge);
    border-radius: 2px;
    background: var(--rim-button-frame);
    box-shadow: inset 0 0 0 1px #33240f;
    pointer-events: none;
}

.server-system-tabs button::after,
.server-universe-fallback button::after,
.image-carousel > button::after,
.image-carousel__dots button::after {
    position: absolute;
    z-index: -1;
    inset: 3px;
    content: "";
    background:
        linear-gradient(45deg, var(--rim-button-side-left) 0 49%, var(--rim-button-highlight) 51% 100%) top left / 4px 4px no-repeat,
        linear-gradient(135deg, var(--rim-button-highlight) 0 49%, var(--rim-button-side-right) 51% 100%) top right / 4px 4px no-repeat,
        linear-gradient(135deg, var(--rim-button-side-left) 0 49%, var(--rim-button-side-bottom) 51% 100%) bottom left / 4px 4px no-repeat,
        linear-gradient(45deg, var(--rim-button-side-bottom) 0 49%, var(--rim-button-side-right) 51% 100%) bottom right / 4px 4px no-repeat,
        linear-gradient(var(--rim-button-highlight), var(--rim-button-highlight)) top center / calc(100% - 8px) 4px no-repeat,
        linear-gradient(var(--rim-button-side-bottom), var(--rim-button-side-bottom)) bottom center / calc(100% - 8px) 4px no-repeat,
        linear-gradient(var(--rim-button-side-left), var(--rim-button-side-left)) center left / 4px calc(100% - 8px) no-repeat,
        linear-gradient(var(--rim-button-side-right), var(--rim-button-side-right)) center right / 4px calc(100% - 8px) no-repeat,
        linear-gradient(180deg, var(--rim-button-fill-top), var(--rim-button-fill) 24%, var(--rim-button-fill) 80%, var(--rim-button-fill-bottom)) center / calc(100% - 8px) calc(100% - 8px) no-repeat;
    pointer-events: none;
}

.server-system-tabs button:hover,
.server-system-tabs button.is-active,
.server-universe-fallback button:hover,
.image-carousel > button:hover,
.image-carousel__dots button:hover,
.image-carousel__dots button[aria-current="true"] {
    --rim-button-fill-top: var(--rim-button-fill-hover-top);
    --rim-button-fill: var(--rim-button-fill-hover);
    --rim-button-fill-bottom: var(--rim-button-fill-hover-bottom);
    --rim-button-highlight: var(--rim-button-highlight-hover);
    --rim-button-side-left: var(--rim-button-side-left-hover);
    --rim-button-side-right: var(--rim-button-side-right-hover);
    --rim-button-side-bottom: var(--rim-button-side-bottom-hover);
    color: #fff;
    background: var(--rim-button-frame);
    box-shadow: 0 2px 2px rgba(0, 0, 0, .72);
}

.server-system-tabs button:active,
.server-universe-fallback button:active,
.image-carousel > button:active,
.image-carousel__dots button:active {
    background: var(--rim-button-frame);
    box-shadow: 0 2px 2px rgba(0, 0, 0, .72);
    filter: brightness(.88);
}

.profile-page {
    min-height: calc(100vh - 78px);
    padding: clamp(32px, 6vw, 76px) clamp(18px, 5vw, 72px) 88px;
    color: var(--ink);
    background:
        radial-gradient(circle at 16% 10%, rgba(148, 104, 53, .15), transparent 30rem),
        #090d10;
}

.profile-page__header {
    width: min(1280px, 100%);
    margin: 0 auto 30px;
}

.profile-page__header h1 {
    margin: 0 0 12px;
    color: #d8d1c5;
    font: 600 clamp(38px, 5vw, 64px)/1 var(--font-condensed);
}

.profile-section-navigation {
    width: min(1180px, 100%);
    margin-right: auto;
    margin-left: auto;
    overflow-x: auto;
}

.profile-section-navigation a {
    white-space: nowrap;
}

.profile-page__header > p:last-child,
.profile-card__heading > p:last-child,
.profile-avatar-editor__controls > p,
.profile-form-note {
    color: #aeb1af;
    line-height: 1.55;
}

.profile-page > .form-message,
.profile-grid {
    width: min(1180px, 100%);
    margin-right: auto;
    margin-left: auto;
}

.profile-page > .form-message {
    margin-bottom: 20px;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 20px;
}

.profile-card {
    min-width: 0;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid #4b4b44;
    background: rgba(15, 21, 24, .96);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .32);
}

.profile-card__heading h2,
.profile-card h3 {
    margin: 0;
    color: #d0cbc2;
    font-family: var(--font-condensed);
}

.profile-card__heading h2 {
    font-size: 30px;
}

.profile-card h3 {
    font-size: 22px;
}

.profile-details {
    display: grid;
    margin: 26px 0 0;
    gap: 0;
}

.profile-details > div {
    display: grid;
    grid-template-columns: minmax(110px, .7fr) minmax(0, 1.3fr);
    gap: 18px;
    padding: 15px 0;
    border-top: 1px solid #303638;
    align-items: baseline;
}

.profile-details dt {
    color: #858b8c;
    font: 500 12px/1.3 var(--font-condensed);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.profile-details dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.profile-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.profile-status::before {
    width: 8px;
    height: 8px;
    content: "";
    border-radius: 50%;
    background: #a86b45;
}

.profile-status--ok::before {
    background: #7fa873;
}

.profile-avatar-editor {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: start;
    gap: 28px;
    margin-top: 26px;
}

.profile-avatar {
    width: 150px;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid #9a794e;
    background: #151b1e;
    box-shadow: inset 0 0 0 5px #0c1114, 0 14px 30px rgba(0, 0, 0, .35);
}

.profile-avatar--fallback {
    display: grid;
    place-items: center;
    color: #e0bc83;
    font: 600 64px/1 var(--font-condensed);
    background:
        linear-gradient(135deg, transparent 0 65%, rgba(198, 147, 73, .18) 65%),
        #151b1e;
}

.profile-avatar-editor__controls {
    display: grid;
    gap: 16px;
}

.profile-avatar-editor__controls form > .angular-button {
    width: 100%;
}

.account-page-design {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.account-page-tree {
    gap: 20px;
}

.account-page-tree > .widget-accountform {
    align-self: stretch;
    align-content: space-between;
}

.widget-menu.role-account-navigation {
    width: 100%;
}

.content-menu.account-section-menu {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.account-section-menu ul.admin-navigation {
    flex-direction: row;
    flex-wrap: nowrap;
    margin: 0;
    gap: 6px;
    overflow-x: auto;
}

.account-section-menu a {
    display: block;
    white-space: nowrap;
    font: inherit;
    color: inherit;
}

.account-data-field {
    display: grid;
    grid-template-columns: minmax(110px, 40%) minmax(0, 1fr);
    align-items: baseline;
    gap: 18px;
    padding: 15px 0;
    border-top: 1px solid #303638;
    overflow-wrap: anywhere;
    line-height: 1.4;
}

.account-data-field__label {
    color: inherit;
    opacity: .7;
    font-size: .8em;
    font-family: inherit;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.account-avatar-image {
    display: grid;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid #9a794e;
}

.account-avatar-requirements {
    margin: 0;
    line-height: 1.55;
}

.account-input-field {
    display: grid;
    gap: 7px;
    font: inherit;
    color: inherit;
}

.account-input-field input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 9px 11px;
    color: var(--text-field-color);
    border: 1px solid var(--text-field-border);
    border-radius: 2px;
    background: var(--text-field-background);
    box-shadow: var(--text-field-shadow);
}

.account-control-button {
    width: 100%;
    min-height: 44px;
}

.widget-tree.is-editor .account-input-field input,
.widget-tree.is-editor .account-control-button {
    pointer-events: none;
}

@container site-canvas (max-width: 520px) {
    .account-data-field {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .account-avatar-image {
        width: min(150px, 100%);
    }
}

.profile-avatar-editor__controls > p,
.profile-form-note {
    margin: 0;
    font-size: 13px;
}

.profile-card .account-form label {
    display: grid;
    gap: 7px;
    color: #aeb1af;
    font: 400 13px/1.2 var(--font-condensed);
    letter-spacing: .045em;
}

.profile-card .account-form input {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    color: var(--text-field-color);
    border: 1px solid var(--text-field-border);
    border-radius: 2px;
    background: var(--text-field-background);
    box-shadow: var(--text-field-shadow);
}

.profile-card .account-form input:focus-visible {
    border-color: #d8a45c;
    outline: 1px solid rgba(216, 164, 92, .42);
    outline-offset: 1px;
}

.profile-security {
    grid-column: 1 / -1;
}

.profile-security__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
    margin-top: 28px;
}

.profile-security__grid .account-form {
    display: flex;
    flex-direction: column;
    padding: 22px;
    border: 1px solid #303638;
    background: #0b1013;
}

.profile-security__grid .account-form > .angular-button {
    margin-top: auto;
}

@container site-canvas (max-width: 820px) {
    .profile-grid,
    .profile-security__grid {
        grid-template-columns: 1fr;
    }

    .profile-security {
        grid-column: auto;
    }
}

@container site-canvas (max-width: 520px) {
    .profile-avatar-editor {
        grid-template-columns: 1fr;
    }

    .profile-avatar {
        width: 124px;
    }

    .profile-details > div {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

.profile-page .account-page-design {
    width: min(1280px, 100%);
}

.profile-page .profile-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
}

.profile-column {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 14px;
}

.profile-column > .profile-card {
    flex: 1 1 auto;
}

.profile-section-heading {
    display: flex;
    min-width: 0;
    min-height: 30px;
    align-items: center;
    gap: 12px;
    color: var(--amber);
}

.profile-section-heading svg {
    width: 19px;
    height: 19px;
    flex: none;
}

.profile-section-heading__text {
    min-width: 0;
    color: #d0cbc2;
    font: 600 20px/1.2 var(--font-condensed);
}

.profile-section-heading__text h2,
.profile-section-heading__text p {
    margin: 0;
    font: inherit;
}

.profile-section-heading__rule {
    height: 1px;
    min-width: 20px;
    flex: 1 1 auto;
    background: #303638;
}

.profile-section-heading--editable {
    cursor: pointer;
}

.profile-section-heading--editable:hover .profile-section-heading__text {
    color: var(--amber-bright);
}

.profile-page .profile-card {
    min-width: 0;
    min-height: 620px;
    padding: clamp(20px, 2.5vw, 32px);
}

.profile-card__admin-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.profile-card .account-page-tree {
    gap: 20px;
}

.profile-card .account-page-tree > .widget-richtext:first-child {
    display: none;
}

.profile-card--information .widget-group:has(> .widget-accountform[data-system-id="account.form.AvatarUpdate"]) {
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #303638;
}

.profile-card--information .widget-accountform[data-system-id="account.form.AvatarUpdate"] {
    min-width: 0;
}

.profile-card--information .widget-group:has(> [data-system-id="account.username"]) {
    align-content: center;
}

.profile-card--information .account-data-field {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    padding: 0;
    border: 0;
}

.profile-card--information [data-system-id="account.username"] .account-data-field > span:last-child {
    color: #d8d1c5;
    font: 600 clamp(19px, 2vw, 25px)/1.2 var(--font-condensed);
}

.account-avatar-chooser {
    display: block;
    width: min(118px, 100%);
    cursor: pointer;
}

.account-avatar-chooser .account-avatar-image {
    width: 100%;
    box-shadow: inset 0 0 0 4px #0c1114, 0 8px 22px rgba(0, 0, 0, .28);
}

.account-avatar-chooser:hover .account-avatar-image,
.account-avatar-chooser:focus-within .account-avatar-image {
    border-color: var(--amber);
}

.profile-card--information .account-page-tree:not(.is-editor) [data-system-id="account.avatar.file"],
.profile-card--information .account-page-tree:not(.is-editor) [data-system-id="account.avatar.update"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.account-avatar-requirements {
    color: #aeb1af;
    font-size: 13px;
    line-height: 1.5;
}

.account-avatar-requirements summary {
    width: fit-content;
    cursor: pointer;
}

.account-avatar-requirements ul {
    margin: 10px 0 0;
    padding-left: 18px;
}

.account-avatar-requirements li + li {
    margin-top: 5px;
}

.account-contact-status {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 7px;
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.4;
}

.account-contact-status__icon {
    width: 20px;
    height: 20px;
    flex: none;
    margin-left: 4px;
    color: var(--amber);
}

.account-contact-status__icon--discord {
    height: 16px;
    object-fit: contain;
}

.profile-card--information [data-system-id="account.email.status"],
.profile-card--information [data-system-id="account.discord.status"] {
    display: flex;
    align-items: center;
}

.account-contact-status__label {
    color: #d8d1c5;
    font-weight: 600;
}

.account-contact-status__state {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #bd9b78;
}

.account-contact-status__state::after {
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: #a86b45;
    align-self: center;
    transform: translateY(-1px);
    content: "";
}

.account-contact-status__state--ok {
    color: #9bc093;
}

.account-contact-status__state--ok::after {
    background: #7fa873;
}

.profile-card--information .account-contact-value {
    padding: 0;
    color: #d8d1c5;
    font-size: 14px;
    font-weight: 600;
}

.account-block-status__none {
    color: #9bc093;
    font-weight: 700;
}

.account-support-action {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 7px 9px;
    font-size: 11px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
}

.account-private-value {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.account-private-value > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.account-private-value [hidden] {
    display: none;
}

.account-private-value__toggle {
    width: 31px;
    height: 31px;
    min-width: 31px;
    min-height: 31px;
    padding: 6px;
    flex: none;
}

.account-private-value__toggle svg {
    display: block;
    width: 18px;
    height: 18px;
}

.account-private-value__eye-open,
.account-private-value__toggle[aria-pressed="true"] .account-private-value__eye-closed {
    display: none !important;
}

.account-private-value__toggle[aria-pressed="true"] .account-private-value__eye-open {
    display: block !important;
}

.profile-card--information [data-system-id="account.email.status"],
.profile-card--information [data-system-id="account.discord.status"] {
    grid-column: 1 / -1 !important;
}

.profile-card--information [data-system-id="account.email.edit"],
.profile-card--information [data-system-id="account.discord.edit"] {
    display: flex;
    align-items: center;
    align-self: center;
}

.profile-card--information .widget-group:has(> [data-system-id="account.email"]):not(:has(> [data-system-id="account.username"])),
.profile-card--information .widget-group:has(> [data-system-id="account.discord.username"]):not(:has(> [data-system-id="account.email"])) {
    align-items: center;
}

.account-edit-action {
    width: 100%;
    min-width: 0;
    padding: 8px 3px;
    border-radius: 0;
    font-size: 11px;
    letter-spacing: 0;
    white-space: normal;
}

.account-edit-action::after {
    border-radius: 0;
}

.account-edit-action:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.profile-card--security .widget-accountform[data-system-id="account.form.PasswordChange"] {
    align-content: start;
    gap: 18px;
}

.profile-card--security .widget-accountform[data-system-id="account.form.PasswordChange"] .account-control-button {
    width: 100%;
}

.profile-card--security .profile-email-change {
    display: none;
}

.profile-card--security .profile-email-change.is-open {
    display: grid;
    margin-top: 18px;
    padding-top: 22px;
    border-top: 1px solid #303638;
}

.profile-card--security .profile-telegram,
.profile-card--security .profile-discord {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #303638;
    min-width: 0;
}

.profile-telegram form,
.profile-discord form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-telegram a,
.profile-telegram button,
.profile-discord a,
.profile-discord button {
    justify-self: start;
    max-width: 100%;
    white-space: normal;
}

.profile-discord h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-discord h3 img {
    width: 28px;
    height: 21px;
    object-fit: contain;
}

.profile-discord p {
    overflow-wrap: anywhere;
}

.profile-email-change__close {
    grid-column: 1 / -1;
    justify-self: start;
}

@container site-canvas (max-width: 1100px) {
    .profile-page .profile-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-page .profile-card {
        min-height: 0;
    }
}

@container site-canvas (max-width: 520px) {
    .profile-card--information .widget-group:has(> .widget-accountform[data-system-id="account.form.AvatarUpdate"]) {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-card--information .widget-group:has(> .widget-accountform[data-system-id="account.form.AvatarUpdate"]) > .site-widget {
        grid-column: 1 / -1;
    }

    .profile-card--information .widget-group:has(> [data-system-id="account.email"]),
    .profile-card--information .widget-group:has(> [data-system-id="account.discord.username"]) {
        gap: 6px;
    }
}

button,
button::before,
button::after,
input[type="button"],
input[type="submit"],
.angular-button,
.angular-button::after,
.widget-button,
.widget-button::after,
.content-button {
    border-radius: 0 !important;
}

.support-page {
    width: min(1280px, 100%);
    min-height: 60vh;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 48px);
}

.support-page__content {
    width: min(640px, 100%);
}

.support-page h1 {
    margin: 0 0 12px;
    font: 600 clamp(32px, 4vw, 48px)/1.1 var(--font-condensed);
}

.support-page p {
    color: #d0cbc2;
    line-height: 1.55;
}

.support-page__notice {
    margin: 30px 0;
    padding: 22px;
    border: 1px solid #303638;
    background: #0b1013;
}

.support-page__notice h2 {
    margin: 0 0 10px;
    color: var(--amber);
    font: 600 22px/1.2 var(--font-condensed);
}

.support-page__notice p {
    margin: 0;
}

/* Шаги регистрации используют те же поля и кнопки, что и остальные формы сайта. */
.registration-form__actions {
    display: grid;
    gap: 10px;
    width: 100%;
}

.registration-form__actions > .angular-button {
    width: 100%;
    min-width: 0;
}

.registration-form-field--email-code {
    display: block;
}

.registration-form-field--email-code > label,
.auth-dialog__registration .registration-form-field--email-code > label {
    grid-template-rows: auto 40px;
}

/* Формы изменения данных аккаунта. */
.profile-card--information [data-system-id="account.password.edit"] {
    display: flex;
    align-items: center;
    align-self: center;
}

.account-password-summary {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    height: 100%;
    color: #d8d1c5;
    font-size: 14px;
    font-weight: 600;
}

.account-password-summary svg {
    width: 20px;
    height: 20px;
    flex: none;
    margin-left: 4px;
    color: var(--amber);
}

.profile-card--information .widget-group:has(> .profile-account-change) {
    row-gap: 0 !important;
}

.profile-card--information .widget-group:has(> .profile-account-change) > .site-widget:not(:first-child):not(.profile-account-change) {
    margin-top: 18px;
}

.profile-card--information .profile-account-change {
    display: none;
    min-height: 0 !important;
}

#profile .profile-card--information .profile-account-change.is-open {
    display: grid;
    margin-top: 24px;
    padding: 18px 12px;
    border: 1px solid #303b3d;
    background: #10181b;
    gap: 16px;
}

.profile-card--information .profile-account-change > .widget-accountcontrol:has(.account-input-field) {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.profile-card--information .profile-account-change .account-control-button {
    width: 100%;
}

/* Карточки подписок оставляют название и переключатель на виду. */
.profile-card--security .widget-group:has(> [data-system-id="account.notification.news"]),
.profile-card--security .widget-group:has(> [data-system-id="account.notification.telegram"]) {
    gap: 10px !important;
}

.profile-card--security .widget-group:has(> [data-system-id="account.notification.telegram"]) {
    padding-top: 18px !important;
    border-top: 1px solid #303b3d !important;
}

.account-notification-option {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 10px;
    min-height: 66px;
    height: 100%;
    padding: 10px 11px;
    border: 1px solid #344042;
    background: #121b1e;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease;
}

.account-notification-option:hover,
.account-notification-option:has(input:checked) {
    border-color: #8d7049;
    background: #182225;
}

.account-notification-option__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #475052;
    background: #1d292c;
    color: var(--amber);
}

.account-notification-option__icon svg,
.account-notification-option__icon img {
    display: block;
    width: 20px;
    height: 20px;
}

.account-notification-option__icon img {
    height: 16px;
    object-fit: contain;
}

.account-notification-option__title {
    min-width: 0;
    color: #d8d1c5;
    font: 600 14px/1.2 var(--font-condensed);
    overflow-wrap: anywhere;
}

.account-notification-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.account-notification-option__switch {
    position: relative;
    display: block;
    width: 40px;
    height: 23px;
    border: 1px solid #62543f;
    background: #080d10;
    transition: background .15s ease, border-color .15s ease;
}

.account-notification-option__switch::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 15px;
    height: 15px;
    background: #a49b8c;
    content: "";
    transition: transform .15s ease, background .15s ease;
}

.account-notification-option input:checked + .account-notification-option__switch {
    border-color: var(--amber);
    background: #69502f;
}

.account-notification-option input:checked + .account-notification-option__switch::after {
    transform: translateX(17px);
    background: #f2ce9a;
}

.account-notification-option--delivery {
    grid-template-columns: minmax(0, 1fr) 40px;
    grid-template-rows: 34px auto;
    min-height: 88px;
}

.account-notification-option--delivery .account-notification-option__icon {
    grid-column: 1;
    grid-row: 1;
}

.account-notification-option--delivery .account-notification-option__title {
    grid-column: 1 / -1;
    grid-row: 2;
}

.account-notification-option--delivery .account-notification-option__switch {
    grid-column: 2;
    grid-row: 1;
}

.account-notification-option:focus-within {
    outline: 2px solid var(--amber);
    outline-offset: 2px;
}

@container site-canvas (max-width: 520px) {
    .profile-card--security [data-system-id="account.notification.telegram"],
    .profile-card--security [data-system-id="account.notification.discord"],
    .profile-card--security [data-system-id="account.notification.email"] {
        grid-column: span 6;
        width: 100%;
    }

    .profile-card--security [data-system-id="account.notification.email"] {
        grid-column: 1 / -1;
    }
}

@container site-canvas (max-width: 400px) {
    .profile-card--security [data-system-id^="account.notification."] {
        grid-column: 1 / -1;
        width: 100%;
    }
}


.widget-planethero { overflow: hidden; }

.planet-hero {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    overflow: hidden;

    isolation: isolate;
}

.planet-hero__glow {
    position: absolute;
    inset: 8% 20%;
    background: radial-gradient(circle, rgba(41, 99, 120, .19), transparent 61%);
    filter: blur(34px);
    pointer-events: none;
}

.planet-hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.planet-hero__caption {
    position: absolute;
    z-index: 1;
    left: clamp(20px, 5vw, 90px);
    bottom: clamp(28px, 8vh, 110px);
    max-width: min(650px, 80vw);
    color: #ece8df;
    text-align: left;
    text-shadow: 0 3px 14px #000;
    pointer-events: none;
}

.planet-hero__caption h1 {
    margin: 0;
    font-family: var(--font-condensed);
    font-size: clamp(30px, 5vw, 72px);
    line-height: 1;
    letter-spacing: .04em;
}

.planet-hero__caption p {
    margin: .6em 0 0;
    font-size: clamp(14px, 1.4vw, 20px);
}

.planet-hero__state {
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 40px);
    margin: 0;
    color: #c8d1d4;
    font-size: 14px;
    text-align: center;
}



@media (max-width: 700px) {
    .planet-hero__caption {
        bottom: 22px;
        max-width: calc(100vw - 40px);
    }
}

.site-shell:has(> #home.public-home),
#home.public-home { min-height: 0; }



.planet-hero__poster { position:absolute;inset:0;width:100%;height:100%;object-fit:contain; }
.planet-hero__canvas { opacity:0;transition:opacity .3s ease; }
.planet-hero__canvas[data-ready="true"] { opacity:1; }
.planet-hero:has(.planet-hero__canvas[data-ready="true"]) .planet-hero__state,
.planet-hero:has(.planet-hero__canvas[data-ready="true"]) .planet-hero__poster { visibility:hidden; }
.planet-hero__pause { position:absolute;bottom:16px;right:16px;z-index:2; }
.planet-hero__state { display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:center; }
.planet-settings details { border-bottom:1px solid #394045;padding:10px 0; }
.planet-settings summary { cursor:pointer;color:var(--text-color,#ddd); }
.planet-settings label { display:block;margin:12px 0; }
.planet-settings output { float:right;font-variant-numeric:tabular-nums; }
.planet-settings input[type=range] { width:100%;accent-color:#b98132; }
.planet-settings .checkbox-field { display:flex;align-items:center;gap:8px; }
.planet-settings input[type=color] { display:block;width:100%;height:36px; }

/* Разделы главной страницы остаются обычными блоками редактора. */
.role-home-start,
.role-home-news,
.role-home-features,
.role-home-faq,
.role-home-footer {
    align-items: stretch;
}

.role-home-start > .role-home-content,
.role-home-news > .role-home-content,
.role-home-features > .role-home-content,
.role-home-faq > .role-home-content {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    justify-self: center;
}

.role-home-footer > .role-home-content {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
    justify-self: center;
    align-items: center;
}

.role-home-start::before,
.role-home-news::before,
.role-home-features::before,
.role-home-faq::before {
    position: absolute;
    top: 0;
    right: max(24px, calc((100cqw - 1200px) / 2));
    left: max(24px, calc((100cqw - 1200px) / 2));
    height: 1px;
    content: "";
    background: #8d653a;
}

.role-home-heading .widget-rich-text {
    max-width: 760px;
}

.role-home-heading h2 {
    margin: 0 0 12px;
    color: #e9e5dc;
    font: 600 clamp(36px, 4vw, 62px)/1.04 var(--font-condensed);
    letter-spacing: .025em;
}

.role-home-heading p {
    max-width: 64ch;
    margin: 0;
    color: #aab4b4;
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.55;
}

.role-home-feature {
    min-width: 0;
    transition: border-color .22s ease, transform .22s ease;
}

.role-home-step-flow {
    width: 100%;
    max-width: 1040px;
    margin-inline: auto;
    justify-self: center;
    align-items: stretch;
    grid-auto-rows: 1fr;
    row-gap: 78px !important;
    column-gap: 0 !important;
}

.role-home-step-row {
    min-width: 0;
    align-items: center;
    align-content: center;
    transition: border-color .22s ease, transform .22s ease;
}

.role-home-step-row:not(:last-child)::after {
    position: absolute;
    bottom: -63px;
    left: calc(50% - 22px);
    width: 44px;
    height: 48px;
    content: "";
    background: url("images/icons/step-arrow-down.svg") center / contain no-repeat;
    pointer-events: none;
}

.role-home-step-row:hover,
.role-home-feature:hover {
    border-color: #9b7549;
    transform: translateY(-3px);
}

.role-home-step-row > .role-home-step {
    min-width: 0;
    min-height: 0 !important;
    align-self: center;
    background: transparent !important;
    border: 0 !important;
}

.role-home-step .widget-rich-text {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 18px;
    align-items: center;
}

.role-home-step .widget-rich-text > span {
    grid-row: 1 / 3;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #83613b;
    background: #211d18;
}

.role-home-step h3,
.role-home-step p { grid-column: 2; }

.role-home-step h3 { margin: 0 0 6px; }

.role-home-step p { max-width: 65ch; }

.role-home-feature-grid {
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.role-home-feature-grid > .role-home-feature {
    height: 100%;
    min-height: 0 !important;
    align-self: stretch;
}

.role-home-step .widget-rich-text > span,
.role-home-feature .widget-rich-text > span {
    display: inline-flex;
    min-width: 34px;
    height: 34px;
    align-items: center;
    color: #d6a560;
    font: 600 22px/1 var(--font-condensed);
}

.role-home-feature .widget-rich-text > span { display: none; }

.role-home-feature h3 { margin-top: 0; }

.role-home-step h3,
.role-home-feature h3 {
    margin: 18px 0 10px;
    color: #e5e2da;
    font: 600 clamp(23px, 2vw, 29px)/1.15 var(--font-condensed);
}

.role-home-step p,
.role-home-feature p {
    max-width: 38ch;
    margin: 0;
    color: #aab3b5;
    font-size: 15px;
    line-height: 1.55;
}

.role-home-action,
.role-home-download {
    justify-self: stretch;
    align-self: center;
    max-width: 100%;
}

.role-home-action .content-button,
.role-home-download .content-button {
    display: flex;
    width: 100%;
    min-height: 100%;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    color: inherit;
    background: transparent;
    font: 600 16px/1.2 var(--font-condensed);
    letter-spacing: .035em;
    text-align: center;
    text-decoration: none;
}

.role-home-action:hover,
.role-home-download:hover {
    filter: brightness(1.13);
}

.role-home-news-feed .news-feed {
    border: 0;
    padding: 0;
    background: transparent;
}

.role-home-news-feed .news-feed__header .eyebrow { display: none; }
.role-home-news-feed .news-feed__header h2 {
    margin: 0;
    font-size: clamp(36px, 4vw, 62px);
}

.role-home-news-feed .news-feed__grid { gap: 18px; }
.role-home-news-feed .news-card { height: 100%; }
.role-home-news-feed .news-card__image img { aspect-ratio: 16 / 9; }
.role-home-news-feed .news-feed__state { padding: 24px; }

.role-home-question .accordion-widget { padding: 0 24px; }
.role-home-question summary {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    list-style: none;
    color: #e8e3d8;
    font: 600 clamp(18px, 1.6vw, 22px)/1.3 var(--font-condensed);
    letter-spacing: 0;
}
.role-home-question summary::-webkit-details-marker { display: none; }
.role-home-question summary::after {
    content: "+";
    flex: none;
    color: #d7a65d;
    font: 400 28px/1 var(--font-condensed);
}
.role-home-question details[open] summary::after { content: "−"; }
.role-home-question .accordion-widget .widget-rich-text {
    max-width: 76ch;
    padding: 0 0 24px;
    color: #adb5b6;
    font-size: 15px;
    line-height: 1.55;
}
.role-home-question .accordion-widget .widget-rich-text a {
    color: #e1ad68;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.role-home-footer {
    border-top: 1px solid #8d653a;
}
.role-home-footer .role-home-content > .site-widget { align-self: center; }
.role-home-footer .image-widget,
.role-home-footer .image-widget__link {
    display: grid;
    place-items: center;
}
.role-home-footer .image-widget img {
    width: clamp(48px, 5vw, 70px);
    height: clamp(48px, 5vw, 70px);
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform .2s ease, opacity .2s ease;
}
.role-home-footer .image-widget__link:hover img,
.role-home-footer .image-widget__link:focus-visible img {
    transform: translateY(-4px);
    opacity: .85;
}
.role-home-footer .image-widget__link:focus-visible {
    outline: 2px solid #d6a560;
    outline-offset: 5px;
}

@container site-canvas (max-width: 640px) {
    .role-home-step h3,
    .role-home-feature h3 { font-size: 24px; }
    .role-home-step-row .role-home-step { width: 100% !important; }
    .role-home-step-row .role-home-action,
    .role-home-step-row .role-home-download { width: 100% !important; }
    .role-home-footer .role-home-content { gap: 8px !important; }
    .role-home-footer .image-widget img { width: 48px; height: 48px; }
}

@container site-canvas (max-width: 800px) {
    .role-home-news-feed .news-feed__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container site-canvas (max-width: 540px) {
    .role-home-news-feed .news-feed__grid { grid-template-columns: 1fr; }
}
.planet-import input[type=file] { max-width:100%; }
.planet-import progress { width:100%;accent-color:#b98132; }

.planet-editor-poster { display:block;width:100%;height:auto;max-height:180px;object-fit:contain;margin:8px 0; }
