:root {
    color-scheme: dark;
    --PageBackground: #11161d;
    --PageBackgroundStart: #10151c;
    --PageBackgroundEnd: #10251f;
    --PanelBackground: #f8fbff;
    --PanelText: #16202a;
    --MutedText: #637184;
    --Accent: #2d7ff9;
    --AccentSoft: #dcecff;
    --Ring: rgba(45, 127, 249, 0.28);
    --FontSans: Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html,
body {
    width: 100%;
    min-height: 100%;
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: var(--FontSans);
    font-weight: 300;
    background:
        radial-gradient(circle at 20% 18%, var(--Ring), transparent 30rem),
        linear-gradient(
            135deg,
            var(--PageBackgroundStart) 0%,
            var(--PageBackground) 45%,
            var(--PageBackgroundEnd) 100%
        );
    color: var(--PanelText);
}

.Main {
    width: 100%;
    height: 100svh;
    height: 100dvh;
    min-width: 0;
    min-height: 0;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 4vw, 2.5rem);
    overflow: hidden;
}

html:has(body > .Main),
body:has(> .Main) {
    height: 100%;
    overflow: hidden;
}

.CommandBox {
    width: min(100%, 29rem);
    max-width: calc(100vw - 2rem);
    min-width: 0;
    padding: clamp(1.35rem, 6vw, 2.5rem);
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 8px;
    background: rgba(248, 251, 255, 0.94);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
    animation: MainFadeIn 520ms ease-out both;
    font-family: var(--FontSans);
    font-weight: 300;
}

.CommandBox h1 {
    margin: 0;
    text-align: center;
    font-size: clamp(1.85rem, 11vw, 3.15rem);
    line-height: 1.12;
    font-weight: 300;
    letter-spacing: 0;
}

.CommandBox__Prompt::before {
    content: ">_";
}

.CommandBox h1 span {
    color: var(--Accent);
}

.CommandBox__Text {
    margin: 0.8rem 0 1.45rem;
    text-align: center;
    color: var(--MutedText);
    font-size: 1rem;
    font-weight: 300;
}

.CommandForm {
    display: block;
    min-width: 0;
    max-width: 100%;
}

.CommandInput {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-family: var(--FontSans);
    font-weight: 300;
}

.CommandInput::part(input) {
    font-family: var(--FontSans);
    font-weight: 300;
}

.CommandInput::part(input)::placeholder {
    font-weight: 300;
}

.CommandInput::part(base) {
    box-shadow: 0 0 0 0 var(--Ring);
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.CommandInput:focus-within::part(base) {
    box-shadow: 0 0 0 0.25rem var(--Ring);
}

.NotFound {
    text-align: center;
}

.NotFound__Number {
    margin: 0 0 0.4rem;
    color: var(--Accent);
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1;
}

.NotFound code {
    overflow-wrap: anywhere;
    color: var(--PanelText);
}

.NotFound__Home {
    display: inline-flex;
    min-height: 2.7rem;
    align-items: center;
    gap: 0.55rem;
    border-radius: 8px;
    padding: 0 1rem;
    background: var(--Accent);
    color: #ffffff;
    text-decoration: none;
}

.LegalLinks {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.LegalLinks button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--MutedText);
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 300;
}

.LegalLinks button:hover,
.LegalLinks button:focus-visible {
    color: var(--Accent);
    outline: 0;
}

.LegalDialog {
    --width: min(92vw, 42rem);
}

.LegalDialog::part(dialog) {
    border-radius: 8px;
}

.LegalDialog::part(body) {
    min-height: 0;
    overflow: hidden;
}

#CodeContentDialog[data-size="narrow"] {
    --width: min(92vw, 30rem);
}

#CodeContentDialog[data-size="normal"] {
    --width: min(92vw, 42rem);
}

#CodeContentDialog[data-size="wide"] {
    --width: min(92vw, 68rem);
}

.DialogScroller {
    width: 100%;
    min-width: 0;
    max-height: min(68svh, 42rem);
    --shadow-color: #f8fbff;
}

.DialogScroller::part(content) {
    padding-right: 0.45rem;
}

.LegalContent {
    width: 100%;
    min-width: 0;
    color: var(--PanelText);
    font-family: var(--FontSans);
    font-weight: 300;
    line-height: 1.6;
}

.SnippetExcluded {
    width: 100%;
    min-width: 0;
}

.LegalContent h1,
.LegalContent h2,
.LegalContent h3,
.LegalContent h4,
.LegalContent h5,
.LegalContent h6 {
    margin: 0 0 0.65rem;
    font-weight: 300;
    line-height: 1.25;
}

.LegalContent h1 {
    font-size: 1.65rem;
}

.LegalContent h2 {
    font-size: 1.35rem;
}

.LegalContent h3 {
    margin-top: 1.35rem;
    color: var(--MutedText);
    font-size: 1.1rem;
}

.LegalContent h4,
.LegalContent h5,
.LegalContent h6 {
    margin-top: 1.15rem;
    color: var(--MutedText);
    font-size: 1rem;
}

.LegalContent p,
.LegalContent address {
    margin: 0;
    font-style: normal;
}

.CodeModalContent > :first-child {
    margin-top: 0;
}

.CodeModalContent > :last-child {
    margin-bottom: 0;
}

.CodeModalContent h1,
.CodeModalContent h2,
.CodeModalContent h3,
.CodeModalContent h4,
.CodeModalContent h5,
.CodeModalContent h6 {
    margin-top: 1.4rem;
}

.CodeModalContent p,
.CodeModalContent ul,
.CodeModalContent ol,
.CodeModalContent blockquote,
.CodeModalContent pre {
    margin: 0 0 1rem;
}

.CodeModalContent ul,
.CodeModalContent ol {
    padding-left: 1.4rem;
}

.CodeModalContent blockquote {
    padding-left: 1rem;
    border-left: 3px solid var(--Accent);
    color: var(--MutedText);
}

.CodeModalContent pre {
    overflow: auto;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: rgba(22, 32, 42, 0.06);
}

.CodeModalContent code {
    overflow-wrap: anywhere;
}

.ExternalLinkAddress {
    margin: 1rem 0 !important;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(22, 32, 42, 0.14);
    border-radius: 8px;
    background: rgba(22, 32, 42, 0.05);
    overflow-wrap: anywhere;
    color: var(--PanelText);
    font-family: Consolas, "Liberation Mono", monospace;
    font-size: 0.88rem;
}

.ExternalLinkNote {
    color: var(--MutedText);
    font-size: 0.8rem;
    line-height: 1.45;
}

.ExternalLinkActions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
}

.ControlPage {
    min-height: 100svh;
    padding: clamp(1rem, 4vw, 2.5rem);
}

.ControlShell {
    width: min(100%, 76rem);
    margin: 0 auto;
    animation: MainFadeIn 520ms ease-out both;
}

.ControlHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #f8fbff;
}

.ControlHeader h1,
.ControlHeader p {
    margin: 0;
    font-weight: 300;
}

.ControlHeader h1 {
    font-size: clamp(2rem, 8vw, 3.4rem);
}

.ControlKicker {
    color: rgba(248, 251, 255, 0.68);
}

.ControlHeaderActions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ControlHeaderActions form {
    margin: 0;
}

.ControlHome,
.ControlTable__ActionButtons a,
.ControlTable__ActionButtons button {
    display: inline-grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: rgba(248, 251, 255, 0.14);
    color: inherit;
    cursor: pointer;
    text-decoration: none;
}

.ControlMessage {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: var(--AccentSoft);
    color: var(--PanelText);
}

#ControlToast {
    --width: min(28rem, calc(100vw - 2rem));
}

.ControlNav {
    display: flex;
    gap: 0.5rem;
    margin: 0 0 1rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
}

.ControlNav a {
    display: inline-flex;
    min-height: 2.45rem;
    align-items: center;
    gap: 0.5rem;
    border-radius: 8px;
    padding: 0 0.85rem;
    background: rgba(248, 251, 255, 0.16);
    color: rgba(248, 251, 255, 0.78);
    text-decoration: none;
    white-space: nowrap;
}

.ControlNav a:hover,
.ControlNav a:focus-visible,
.ControlNav a.is-active {
    background: rgba(248, 251, 255, 0.94);
    color: var(--PanelText);
    outline: 0;
}

.ControlGrid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.ControlSectionTitle {
    margin: 0 0 1rem;
    color: #f8fbff;
    font-size: 1.25rem;
    font-weight: 300;
}

.ControlStatGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ControlStat {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.15rem 0.75rem;
    align-items: center;
    min-width: 0;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(248, 251, 255, 0.94);
    color: var(--PanelText);
    text-decoration: none;
}

.ControlStat i {
    grid-row: 1 / 3;
    color: var(--Accent);
    font-size: 1.25rem;
}

.ControlStat strong {
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1;
}

.ControlStat span {
    overflow-wrap: anywhere;
    color: var(--MutedText);
    font-size: 0.85rem;
}

.ControlDashboardGrid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
}

.ControlSettingsLayout {
    display: grid;
    min-width: 0;
    gap: 1rem;
}

.ControlSettingsTabs {
    margin: 0;
}

.ControlSettingsPage {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 1rem;
}

.ControlLogFilters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ControlLogFilters label {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
    color: var(--MutedText);
    font-size: 0.82rem;
}

.ControlLogFilters input,
.ControlLogFilters select {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(22, 32, 42, 0.18);
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    background: #ffffff;
    color: var(--PanelText);
    font: inherit;
}

.ControlLogFilterActions {
    grid-column: 1 / -1;
}

.ControlResultCount {
    margin: 0 0 0.75rem;
    color: var(--MutedText);
    font-size: 0.82rem;
}

.ControlLogEntry.is-code {
    border-left: 4px solid var(--Accent);
}

.ControlLogEntry.is-internal-test {
    border-left-color: #8a5a00;
    background: #fff8e8;
}

.ControlLogHeading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.ControlLogWarning {
    width: 100%;
}

.ControlLogWarning::part(message) {
    width: 100%;
}

.ControlLogOverview {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    color: var(--MutedText);
    font-size: 0.78rem;
}

.ControlLogOverview span,
.ControlLogOverview code {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ControlLogOverview i {
    margin-right: 0.25rem;
    color: var(--Accent);
}

.ControlLogDisclosure {
    margin-top: 0.15rem;
    --spacing: 0.55rem 0;
    font-size: 0.82rem;
}

.ControlLogDisclosure::part(header) {
    padding-inline: 0;
}

.ControlLogDisclosure::part(content) {
    padding-inline: 0;
}

.ControlLogCodeTitle {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem;
}

.ControlLogCodeTitle code {
    border-radius: 4px;
    padding: 0.12rem 0.35rem;
    background: var(--AccentSoft);
    color: var(--PanelText);
    font-size: 0.9em;
}

.ControlLogMeta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.7rem;
    color: var(--MutedText);
    font-size: 0.8rem;
}

.ControlLogMeta > *:not(:last-child)::after {
    content: "·";
    margin-left: 0.7rem;
}

.ControlLogTestBadge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 4px;
    padding: 0.2rem 0.4rem;
    background: #f5d88d;
    color: #493000 !important;
    font-size: 0.72rem !important;
    font-weight: 600;
}

.ControlLogDetails {
    display: grid;
    gap: 0;
    margin: 0;
    border-top: 1px solid rgba(22, 32, 42, 0.1);
}

.ControlLogDetails > div {
    display: grid;
    grid-template-columns: minmax(6.5rem, 0.25fr) minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.42rem 0;
    border-bottom: 1px solid rgba(22, 32, 42, 0.07);
}

.ControlLogDetails > div:last-child {
    border-bottom: 0;
}

.ControlLogDetails dt,
.ControlLogDetails dd {
    min-width: 0;
    margin: 0;
}

.ControlLogDetails dt {
    color: var(--MutedText);
    font-size: 0.78rem;
}

.ControlLogDetails dt i {
    width: 1rem;
    color: var(--Accent);
}

.ControlLogDetails a {
    min-width: 0;
    color: var(--Accent);
    text-decoration: none;
}

.ControlLogDetails code {
    display: block;
    padding: 0;
    background: transparent;
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 560px) {
    .ControlLogDetails > div {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}

.ControlPanelHeader a {
    color: var(--Accent);
    font-size: 0.85rem;
    text-decoration: none;
}

.ControlStack--Dashboard {
    max-height: none;
}

.ControlEmpty {
    margin: 0;
    color: var(--MutedText);
}

.ControlDetails {
    display: grid;
    gap: 0;
    margin: 0;
}

.ControlDetails div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(22, 32, 42, 0.1);
}

.ControlDetails div:last-child {
    border-bottom: 0;
}

.ControlDetails dt {
    color: var(--MutedText);
}

.ControlDetails dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

.ControlDetails a {
    color: var(--Accent);
}

.ControlPanel {
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 8px;
    background: rgba(248, 251, 255, 0.94);
    box-shadow: 0 1rem 2.8rem rgba(0, 0, 0, 0.24);
}

.ControlPanel h2 {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    font-weight: 300;
}

.ControlPanelHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ControlPanelHeader h2 {
    margin: 0;
}

.ControlForm {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 0.85rem;
}

.ControlForm label {
    display: grid;
    min-width: 0;
    gap: 0.35rem;
    color: var(--MutedText);
    font-size: 0.9rem;
}

.ControlForm input,
.ControlForm select,
.ControlForm textarea {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border: 1px solid rgba(22, 32, 42, 0.18);
    border-radius: 8px;
    padding: 0.72rem 0.8rem;
    background: #ffffff;
    color: var(--PanelText);
    font: inherit;
    font-weight: 300;
}

.ControlForm input:focus,
.ControlForm select:focus,
.ControlForm textarea:focus {
    border-color: var(--Accent);
    outline: 0;
    box-shadow: inset 0 0 0 2px var(--Accent);
}

.ControlForm wa-textarea {
    width: 100%;
    color: var(--PanelText);
    font-family: var(--FontSans);
    font-weight: 300;
}

.ControlForm .CodeMirror {
    width: 100%;
    height: 18rem;
    min-height: 18rem;
    border: 1px solid rgba(22, 32, 42, 0.18);
    border-radius: 8px;
    background: #ffffff;
    color: var(--PanelText);
    font-family: Consolas, "Liberation Mono", monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ControlForm .CodeMirror-scroll {
    min-height: 18rem;
}

.ControlForm .CodeMirror-gutters {
    border-right: 1px solid rgba(22, 32, 42, 0.1);
    background: #f3f6fa;
}

.ControlForm textarea {
    min-height: 14rem;
    resize: vertical;
    font-family: Consolas, "Liberation Mono", monospace;
    font-size: 0.9rem;
}

.ControlForm textarea[name="meta_description"],
.ControlSettings textarea {
    min-height: 5.5rem;
    font-family: var(--FontSans);
    font-size: 0.9rem;
}

.ControlFieldHint {
    color: var(--MutedText);
    font-size: 0.8rem;
    line-height: 1.45;
}

.ControlFieldHint code {
    color: var(--PanelText);
}

.ControlSwitches,
.ControlPrettyUrlSettings {
    display: grid;
    gap: 0.9rem;
}

.ControlPrettyUrlSettings {
    margin-top: 0.15rem;
    border-left: 2px solid rgba(22, 32, 42, 0.14);
    padding-left: 1rem;
}

.ControlPrettyUrlSettings[hidden],
.ControlCrawlerPolicy[hidden] {
    display: none;
}

.ControlSwitches wa-switch,
.ControlPrettyUrlSettings > wa-switch {
    width: fit-content;
    max-width: 100%;
    color: var(--PanelText);
}

.ControlCrawlerPolicy {
    display: grid;
    gap: 1rem;
    min-width: 0;
    margin: 0.35rem 0;
    border: 1px solid rgba(22, 32, 42, 0.14);
    border-radius: 8px;
    padding: 1rem;
}

.ControlCrawlerPolicy legend {
    padding: 0 0.35rem;
    color: var(--PanelText);
    font-weight: 400;
}

.ControlCrawlerPolicy .ControlFieldHint {
    margin: 0;
}

.ControlCrawlerGroup {
    display: grid;
    gap: 0.7rem;
}

.ControlCrawlerGroupSwitch {
    width: fit-content;
    max-width: 100%;
    color: var(--PanelText);
    font-weight: 400;
}

.ControlCrawlerChoices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.65rem 1rem;
    padding-left: 1rem;
}

.ControlCrawlerAgentSwitch {
    width: fit-content;
    max-width: 100%;
    color: var(--PanelText);
}

.ControlColorSetting {
    display: grid;
    width: fit-content;
    gap: 0.35rem;
    color: var(--MutedText);
    font-size: 0.9rem;
}

.ControlForm .ControlColorSetting input[type="color"] {
    width: 4rem;
    height: 2.7rem;
    padding: 0.2rem;
    cursor: pointer;
}

.ControlForm .ControlNotesField::part(textarea) {
    min-height: 14rem;
}

.ControlModalEditor {
    display: grid;
    gap: 0.55rem;
    color: var(--MutedText);
    font-size: 0.9rem;
}

.ControlModalEditor > span {
    color: var(--MutedText);
}

.ControlEditorTabs,
.ControlFormatSwitch {
    display: inline-flex;
    width: fit-content;
    gap: 0.2rem;
    padding: 0.2rem;
    border-radius: 8px;
    background: rgba(22, 32, 42, 0.08);
}

.ControlEditorTabs button,
.ControlFormatSwitch button {
    display: inline-flex;
    min-height: 2.2rem;
    align-items: center;
    gap: 0.45rem;
    border: 0;
    border-radius: 6px;
    padding: 0 0.75rem;
    background: transparent;
    color: var(--MutedText);
    cursor: pointer;
    font: inherit;
}

.ControlEditorTabs button[aria-selected="true"],
.ControlFormatSwitch button[aria-selected="true"] {
    background: #ffffff;
    color: var(--PanelText);
    box-shadow: 0 0.15rem 0.4rem rgba(22, 32, 42, 0.1);
}

.ControlVisualEditor {
    overflow: hidden;
    border: 1px solid rgba(22, 32, 42, 0.18);
    border-radius: 8px;
    background: #ffffff;
}

.ControlEditorToolbar {
    display: flex;
    min-height: 2.7rem;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.35rem;
    border-bottom: 1px solid rgba(22, 32, 42, 0.12);
    background: rgba(22, 32, 42, 0.04);
}

.ControlEditorToolbar button {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--PanelText);
    cursor: pointer;
}

.ControlEditorToolbar button:hover,
.ControlEditorToolbar button:focus-visible {
    background: rgba(45, 127, 249, 0.12);
    color: var(--Accent);
    outline: 0;
}

.ControlWysiwyg {
    min-height: 16rem;
    padding: 0.85rem;
    overflow-wrap: anywhere;
    color: var(--PanelText);
    font-size: 1rem;
    line-height: 1.55;
    outline: 0;
}

.ControlWysiwyg:focus {
    box-shadow: inset 0 0 0 0.2rem var(--Ring);
}

.ControlWysiwyg h2 {
    margin: 0 0 0.7rem;
    font-size: 1.4rem;
    font-weight: 400;
}

.ControlWysiwyg p {
    margin: 0 0 0.7rem;
}

.ControlEditorDialog {
    --width: min(32rem, calc(100vw - 2rem));
}

.ControlDialogMessage {
    margin: 0;
    color: #b42318;
}

.ControlIconPreview {
    display: grid;
    min-height: 4.5rem;
    place-items: center;
    color: var(--Accent);
    font-size: 2rem;
}

.ControlIconChoices {
    display: grid;
    grid-template-columns: repeat(5, 2.6rem);
    gap: 0.45rem;
}

.ControlIconChoices button {
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    place-items: center;
    border: 1px solid rgba(22, 32, 42, 0.14);
    border-radius: 6px;
    background: #ffffff;
    color: var(--PanelText);
    cursor: pointer;
    font-size: 1rem;
}

.ControlIconChoices button:hover,
.ControlIconChoices button:focus-visible {
    border-color: var(--Accent);
    color: var(--Accent);
    outline: 0;
}

.ControlCheckbox {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
}

.ControlCheckbox input {
    width: auto;
}

.ControlActions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ControlActions button,
.ControlActions a {
    display: inline-flex;
    min-height: 2.55rem;
    align-items: center;
    gap: 0.5rem;
    border: 0;
    border-radius: 8px;
    padding: 0 1rem;
    background: var(--Accent);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
}

.ControlActions a {
    background: rgba(22, 32, 42, 0.08);
    color: var(--PanelText);
}

.ControlActions .ControlDangerButton {
    background: #a82f3f;
}

.ControlActions .ControlRunButton {
    width: 2.55rem;
    justify-content: center;
    padding: 0;
    background: #18704a;
}

.ControlAuthenticatorSetup {
    display: grid;
    gap: 0.8rem;
    justify-items: start;
    margin-bottom: 1rem;
}

.ControlAuthenticatorSetup wa-qr-code {
    width: 200px;
    height: 200px;
    max-width: 100%;
    background: #ffffff;
}

.ControlAuthenticatorSetup code,
.ControlRecoveryCode code {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-family: Consolas, "Liberation Mono", monospace;
}

.ControlAuthenticatorStatus {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    color: #18704a;
}

.ControlRecoveryCode {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
    padding: 0.85rem;
    border-left: 3px solid #d49a16;
    background: #fff8df;
}

.ControlRecoveryCode small {
    color: var(--MutedText);
}

.ControlIconButton {
    display: inline-grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: var(--Accent);
    color: #ffffff;
    cursor: pointer;
    text-decoration: none;
}

.ControlIconButton i {
    display: block;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1;
}

.ControlTableWrap {
    overflow-x: auto;
}

.ControlTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.ControlTable th,
.ControlTable td {
    padding: 0.72rem 0.5rem;
    border-bottom: 1px solid rgba(22, 32, 42, 0.1);
    text-align: left;
    vertical-align: top;
}

.ControlTable th {
    color: var(--MutedText);
    font-weight: 300;
}

.ControlTable small {
    display: block;
    margin-top: 0.2rem;
    color: var(--MutedText);
}

.ControlTable__Actions {
    width: 8.15rem;
    text-align: right;
    white-space: nowrap;
}

.ControlTable__ActionButtons {
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
}

.ControlTable__ActionButtons form {
    margin: 0;
}

.ControlTable__ActionButtons button {
    color: #9f2434;
}

.ControlSystemCodeLock {
    display: inline-grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    color: var(--MutedText);
}

.ControlTable__ActionButtons .ControlCodeToggle.is-active {
    color: #167044;
}

.ControlTable__ActionButtons .ControlCodeToggle.is-inactive {
    color: var(--MutedText);
}

.ControlDeleteWarning {
    margin-top: 0.8rem !important;
    color: #9f2434;
}

.ControlFileSummary {
    margin: 0.25rem 0 0;
    color: var(--MutedText);
    font-size: 0.82rem;
}

.ControlFileHeaderActions {
    display: flex;
    gap: 0.5rem;
}

.ControlBreadcrumbs {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    color: var(--MutedText);
    font-size: 0.85rem;
    white-space: nowrap;
}

.ControlBreadcrumbs a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--PanelText);
    text-decoration: none;
}

.ControlFileTools {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.ControlFileTool {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: end;
    min-width: 0;
    border: 1px solid rgba(22, 32, 42, 0.12);
    border-radius: 8px;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.66);
}

.ControlFileTool label {
    display: grid;
    min-width: 0;
    gap: 0.35rem;
    color: var(--MutedText);
    font-size: 0.85rem;
}

.ControlFileTool input {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(22, 32, 42, 0.18);
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    background: #ffffff;
    color: var(--PanelText);
    font: inherit;
}

.ControlFileTool button {
    display: inline-flex;
    min-height: 2.65rem;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 0;
    border-radius: 8px;
    padding: 0 0.9rem;
    background: var(--Accent);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
}

.ControlFolderGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.ControlFolder {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border: 1px solid rgba(22, 32, 42, 0.12);
    border-radius: 8px;
    background: #ffffff;
}

.ControlFolder a {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem;
    color: var(--PanelText);
    text-decoration: none;
}

.ControlFolder a span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ControlFolder a i {
    color: #d49a16;
}

.ControlFolder button {
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #9f2434;
    cursor: pointer;
}

.ControlFolder .ControlFolderRename {
    color: var(--MutedText);
}

.ControlFilesEmpty {
    display: grid;
    place-items: center;
    gap: 0.5rem;
    min-height: 10rem;
    color: var(--MutedText);
    text-align: center;
}

.ControlFilesEmpty i {
    font-size: 2rem;
}

.ControlFilesEmpty p {
    margin: 0;
}

.ControlFileName {
    display: flex;
    min-width: 13rem;
    align-items: center;
    gap: 0.7rem;
}

.ControlFilePreview {
    display: grid;
    width: 3rem;
    height: 3rem;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(22, 32, 42, 0.12);
    border-radius: 6px;
    background: #f3f6fa;
    color: var(--MutedText);
}

.ControlFilePreview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ControlFileTable code {
    overflow-wrap: anywhere;
    font-size: 0.75rem;
}

.ControlFileTable .ControlTable__Actions {
    width: 10.8rem;
}

.ControlFileTable [data-copy-value],
.ControlFileTable [data-rename-file] {
    color: var(--MutedText);
}

.ControlFileDialog {
    --width: min(92vw, 38rem);
}

.ControlUploadContent {
    width: 100%;
    min-width: 0;
}

.ControlFileDropzone {
    position: relative;
    display: grid;
    min-height: 14rem;
    place-items: center;
    align-content: center;
    gap: 0.75rem;
    border: 2px dashed rgba(22, 32, 42, 0.24);
    border-radius: 8px;
    padding: 1.5rem;
    background: rgba(243, 246, 250, 0.8);
    color: var(--PanelText);
    cursor: pointer;
    text-align: center;
    transition: border-color 160ms ease, background 160ms ease;
}

@media (max-height: 46rem) {
    .ControlFileDropzone {
        min-height: 9rem;
        gap: 0.5rem;
        padding: 1rem;
    }

    .ControlFileDropzone > i {
        font-size: 1.8rem;
    }
}

.ControlFileDropzone.is-dragging,
.ControlFileDropzone:has(input:focus-visible) {
    border-color: var(--Accent);
    background: var(--AccentSoft);
    outline: 0;
}

.ControlFileDropzone input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.ControlFileDropzone > i {
    color: var(--Accent);
    font-size: 2.4rem;
}

.ControlFileDropzone > strong {
    font-weight: 400;
}

.ControlFileDropzone > span {
    color: var(--MutedText);
    font-size: 0.82rem;
}

.ControlScanContent > code {
    display: block;
    margin: 0.75rem 0 1rem;
    overflow-wrap: anywhere;
    border-radius: 6px;
    padding: 0.75rem;
    background: #f3f6fa;
    color: var(--PanelText);
    font-size: 0.8rem;
}

.ControlScanContent .ControlDetails {
    margin-bottom: 1rem;
}

.ControlStorageGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.75rem;
}

.ControlStorageItem {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.25rem 0.7rem;
    align-items: center;
    border: 1px solid rgba(22, 32, 42, 0.12);
    border-radius: 8px;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.68);
}

.ControlStorageItem > i {
    grid-row: 1 / 3;
    color: var(--Accent);
}

.ControlStorageItem > span {
    color: var(--MutedText);
    font-size: 0.8rem;
}

.ControlStorageItem > strong {
    color: var(--PanelText);
    font-size: 1.15rem;
    font-weight: 300;
}

.ControlInstallSummary {
    margin: 0.25rem 0 0;
    color: var(--MutedText);
    font-size: 0.8rem;
}

.ControlInstallChecks {
    display: grid;
    gap: 0;
}

.ControlInstallCheck {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(22, 32, 42, 0.1);
}

.ControlInstallCheck:last-child {
    border-bottom: 0;
}

.ControlInstallCheck > i {
    margin-top: 0.15rem;
}

.ControlInstallCheck.is-success > i {
    color: #167044;
}

.ControlInstallCheck.is-warning > i {
    color: #b27800;
}

.ControlInstallCheck.is-danger > i {
    color: #9f2434;
}

.ControlInstallCheck > div {
    display: grid;
    min-width: 0;
    gap: 0.2rem;
}

.ControlInstallCheck strong {
    color: var(--PanelText);
    font-weight: 400;
}

.ControlInstallCheck span {
    overflow-wrap: anywhere;
    color: var(--MutedText);
    font-size: 0.8rem;
}

#DeleteCodeForm {
    margin: 0;
}

.ControlStack {
    display: grid;
    max-height: 24rem;
    gap: 0.65rem;
    overflow: auto;
}

.ControlMini {
    display: grid;
    gap: 0.3rem;
    padding: 0.75rem;
    border: 1px solid rgba(22, 32, 42, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.ControlMini strong {
    overflow-wrap: anywhere;
    font-weight: 300;
}

.ControlMini span {
    color: var(--MutedText);
    font-size: 0.85rem;
}

.ControlMini code {
    overflow: hidden;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: #2f3a46;
    font-size: 0.78rem;
}

.ControlSessionLink {
    color: inherit;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease;
}

.ControlSessionLink.is-current {
    border-color: var(--Accent);
    border-left-width: 4px;
    background: var(--AccentSoft);
}

.ControlSessionLink__Header {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.ControlSessionLink__Header strong {
    min-width: 0;
}

.ControlSessionFilters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ControlSessionFilters label {
    display: grid;
    min-width: min(100%, 14rem);
    gap: 0.35rem;
    color: var(--MutedText);
    font-size: 0.82rem;
}

.ControlSessionFilters select {
    width: 100%;
    border: 1px solid rgba(22, 32, 42, 0.18);
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    background: #ffffff;
    color: var(--PanelText);
    font: inherit;
}

.ControlSessionBadges {
    display: inline-flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.ControlSessionOrigin {
    display: inline-flex;
    width: fit-content;
    border-radius: 4px;
    padding: 0.18rem 0.42rem;
    background: #e7ebef;
    color: #45515e !important;
    font-size: 0.74rem !important;
    font-weight: 600;
    white-space: nowrap;
}

.ControlSessionOrigin.is-florian {
    background: #dcecff;
    color: #164f88 !important;
}

.ControlSessionOrigin.is-codex {
    background: #f5d88d;
    color: #493000 !important;
}

.ControlSessionBadge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.35rem;
    color: var(--PanelText);
    font-size: 0.78rem;
    font-weight: 400;
    white-space: nowrap;
}

.ControlSessionBadge i {
    color: var(--Accent);
}

.ControlCurrentSessionDetail {
    background: var(--AccentSoft);
}

.ControlSessionLink:hover,
.ControlSessionLink:focus-visible {
    border-color: var(--Accent);
    background: #ffffff;
    outline: 0;
}

.ControlSessionDetails {
    margin-bottom: 1.5rem;
}

.ControlSessionDetails code {
    overflow-wrap: anywhere;
}

@media (max-width: 560px) {
    .ControlSessionLink__Header {
        align-items: stretch;
        flex-direction: column;
    }

    .ControlSessionBadges {
        justify-content: flex-start;
    }
}

.ControlActivityTitle {
    padding-top: 0.25rem;
    border-top: 1px solid rgba(22, 32, 42, 0.1);
}

.ControlTimeline {
    display: grid;
    gap: 0.75rem;
}

.ControlActivity {
    display: grid;
    gap: 0.45rem;
    padding: 0.85rem 0 0.85rem 1rem;
    border-left: 3px solid var(--Accent);
    background: rgba(255, 255, 255, 0.55);
}

.ControlActivity > strong {
    font-weight: 400;
}

.ControlActivity > code {
    overflow-wrap: anywhere;
    color: #2f3a46;
    font-size: 0.82rem;
}

.ControlActivity > span {
    color: var(--MutedText);
    font-size: 0.85rem;
}

.ControlActivity__Meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.35rem 1rem;
    color: var(--MutedText);
    font-size: 0.78rem;
}

.ControlMuted {
    color: var(--MutedText);
}

.ContactForm {
    margin-top: 0;
}

.ContactSuccess {
    display: grid;
    gap: 1rem;
}

.ContactSuccess .ControlMessage {
    margin-bottom: 0;
    text-align: center;
}

.ContactSuccess__Actions {
    justify-content: center;
}

.Honeypot {
    position: absolute;
    left: -100vw;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@keyframes MainFadeIn {
    from {
        opacity: 0;
        transform: translateY(0.8rem) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .CommandBox {
        animation: none;
    }
}

@media (max-width: 36rem) {
    .Main {
        padding-inline: 1.25rem;
    }

    .CommandBox {
        width: 100%;
        max-width: calc(100vw - 2.5rem);
        padding: 1.25rem;
    }

    .ControlLogFilters {
        grid-template-columns: 1fr;
    }

    .ControlSessionLink__Header {
        display: grid;
    }

    .ControlSessionBadge {
        white-space: normal;
    }

    .ControlFileTool {
        grid-template-columns: 1fr;
    }

    .ControlFileTool button {
        width: 100%;
    }

    .ControlFileTable thead {
        display: none;
    }

    .ControlFileTable,
    .ControlFileTable tbody,
    .ControlFileTable tr,
    .ControlFileTable td {
        display: block;
        width: 100%;
    }

    .ControlFileTable tbody {
        display: grid;
        gap: 0.75rem;
    }

    .ControlFileTable tr {
        border: 1px solid rgba(22, 32, 42, 0.12);
        border-radius: 8px;
        padding: 0.75rem;
        background: rgba(255, 255, 255, 0.72);
    }

    .ControlFileTable td {
        display: grid;
        grid-template-columns: 4.5rem minmax(0, 1fr);
        gap: 0.65rem;
        border-bottom: 1px solid rgba(22, 32, 42, 0.08);
        padding: 0.6rem 0;
    }

    .ControlFileTable td::before {
        content: attr(data-label);
        color: var(--MutedText);
        font-size: 0.75rem;
    }

    .ControlFileTable td:first-child {
        display: block;
        padding-top: 0;
    }

    .ControlFileTable td:first-child::before {
        display: none;
    }

    .ControlFileTable td:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .ControlFileTable .ControlTable__Actions {
        width: 100%;
        text-align: left;
    }

    .ControlFileTable .ControlTable__ActionButtons {
        justify-content: flex-start;
    }

    .ControlFileTable code {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .ControlFileTable td[data-label="UUIDv7"] small {
        display: none;
    }
}

@media (min-width: 58rem) {
    .ControlGrid {
        grid-template-columns: minmax(22rem, 0.8fr) minmax(0, 1.2fr);
    }

    .ControlStatGrid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .ControlDashboardGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ControlSettingsLayout {
        grid-template-columns: 12rem minmax(0, 1fr);
        align-items: start;
    }

    .ControlSettingsTabs {
        position: sticky;
        top: 1rem;
        flex-direction: column;
        margin: 0;
        overflow: visible;
    }

    .ControlSettingsTabs a {
        width: 100%;
    }

    .ControlFileTools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
