/* Stage pieces for manager screens outside the two editors (settings pages, external systems, localization), and for code, terminal and response windows. */
/* Colours the manager uses for feedback, warnings, the AI actions and tooltips, which tokens.css does not carry. Light values first, then dark, switched as tokens.css switches. */
:root {
    --mg-danger-bg: rgb(254 242 242);
    --mg-danger-border: rgb(254 202 202);
    --mg-danger-edge: rgb(252 165 165);
    --mg-danger-solid: rgb(220 38 38);
    --mg-warn-bg: rgb(255 251 235);
    --mg-warn-border: rgb(253 230 138);
    --mg-warn-fg: rgb(146 64 14);
    --mg-warn-ink: rgb(180 83 9);
    --mg-warn-dot: rgb(245 158 11);
    --mg-warn-icon: rgb(217 119 6);
    --mg-warn-soft: rgb(254 243 199);
    --mg-ok-border: rgb(187 247 208);
    --mg-ok-dot: rgb(34 197 94);
    --mg-ok-icon: rgb(22 163 74);
    --mg-ai-bg: rgb(238 242 255);
    --mg-ai-strong: rgb(224 231 255);
    --mg-ai-border: rgb(199 210 254);
    --mg-ai-fg: rgb(79 70 229);
    --mg-ai-ink: rgb(67 56 202);
    --mg-tooltip: rgb(30 37 56);
    --mg-scrim: rgb(0 0 0 / 0.5);
    --mg-subtle: rgb(154 161 173);
    --mg-fs: 15px;
    --mg-fs-sm: 13.5px;
    --mg-fs-cap: 13px;
    --mg-fs-mono: 14px;
    --mg-fs-meta: 12.5px;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) {
        --mg-danger-bg: rgb(51 29 34);
        --mg-danger-border: rgb(103 40 43);
        --mg-danger-edge: rgb(140 48 50);
        --mg-danger-solid: rgb(242 84 84);
        --mg-warn-bg: rgb(52 42 26);
        --mg-warn-border: rgb(106 74 22);
        --mg-warn-fg: rgb(253 230 138);
        --mg-warn-ink: rgb(252 211 77);
        --mg-warn-icon: rgb(247 170 20);
        --mg-warn-soft: rgb(70 53 24);
        --mg-ok-border: rgb(25 89 53);
        --mg-ok-icon: rgb(48 206 106);
        --mg-ai-bg: rgb(31 34 58);
        --mg-ai-strong: rgb(37 40 75);
        --mg-ai-border: rgb(50 53 109);
        --mg-ai-fg: rgb(110 115 243);
        --mg-ai-ink: rgb(165 180 252);
        --mg-tooltip: rgb(39 45 59);
        --mg-subtle: rgb(95 103 115);
    }
}
:root[data-theme='dark'] {
    --mg-danger-bg: rgb(51 29 34);
    --mg-danger-border: rgb(103 40 43);
    --mg-danger-edge: rgb(140 48 50);
    --mg-danger-solid: rgb(242 84 84);
    --mg-warn-bg: rgb(52 42 26);
    --mg-warn-border: rgb(106 74 22);
    --mg-warn-fg: rgb(253 230 138);
    --mg-warn-ink: rgb(252 211 77);
    --mg-warn-icon: rgb(247 170 20);
    --mg-warn-soft: rgb(70 53 24);
    --mg-ok-border: rgb(25 89 53);
    --mg-ok-icon: rgb(48 206 106);
    --mg-ai-bg: rgb(31 34 58);
    --mg-ai-strong: rgb(37 40 75);
    --mg-ai-border: rgb(50 53 109);
    --mg-ai-fg: rgb(110 115 243);
    --mg-ai-ink: rgb(165 180 252);
    --mg-tooltip: rgb(39 45 59);
    --mg-subtle: rgb(95 103 115);
}

/* Icons: lucide paths as masks, named .mg-i-<name>. */
.mg-i-chev-down {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.mg-i-chev-up {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 15-6-6-6 6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 15-6-6-6 6'/%3E%3C/svg%3E");
}
.mg-i-chev-right {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
}
.mg-i-check {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.mg-i-x {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E");
}
.mg-i-plus {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5v14'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5v14'/%3E%3C/svg%3E");
}
.mg-i-search {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
}
.mg-i-copy {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='14' height='14' x='8' y='8' rx='2'/%3E%3Cpath d='M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='14' height='14' x='8' y='8' rx='2'/%3E%3Cpath d='M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2'/%3E%3C/svg%3E");
}
.mg-i-trash {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3C/svg%3E");
}
.mg-i-more {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='1.2'/%3E%3Ccircle cx='19' cy='12' r='1.2'/%3E%3Ccircle cx='5' cy='12' r='1.2'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='1.2'/%3E%3Ccircle cx='19' cy='12' r='1.2'/%3E%3Ccircle cx='5' cy='12' r='1.2'/%3E%3C/svg%3E");
}
.mg-i-arrow-left {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 19-7-7 7-7'/%3E%3Cpath d='M19 12H5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 19-7-7 7-7'/%3E%3Cpath d='M19 12H5'/%3E%3C/svg%3E");
}
.mg-i-arrow-right {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
}
.mg-i-users {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}
.mg-i-palette {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z'/%3E%3Ccircle cx='13.5' cy='6.5' r='.5'/%3E%3Ccircle cx='17.5' cy='10.5' r='.5'/%3E%3Ccircle cx='6.5' cy='12.5' r='.5'/%3E%3Ccircle cx='8.5' cy='7.5' r='.5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z'/%3E%3Ccircle cx='13.5' cy='6.5' r='.5'/%3E%3Ccircle cx='17.5' cy='10.5' r='.5'/%3E%3Ccircle cx='6.5' cy='12.5' r='.5'/%3E%3Ccircle cx='8.5' cy='7.5' r='.5'/%3E%3C/svg%3E");
}
.mg-i-plug {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22v-5'/%3E%3Cpath d='M9 8V2'/%3E%3Cpath d='M15 8V2'/%3E%3Cpath d='M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22v-5'/%3E%3Cpath d='M9 8V2'/%3E%3Cpath d='M15 8V2'/%3E%3Cpath d='M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z'/%3E%3C/svg%3E");
}
.mg-i-activity {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2'/%3E%3C/svg%3E");
}
.mg-i-warn {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
}
.mg-i-alert-circle {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4'/%3E%3Cpath d='M12 16h.01'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4'/%3E%3Cpath d='M12 16h.01'/%3E%3C/svg%3E");
}
.mg-i-check-circle {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpath d='m9 11 3 3L22 4'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpath d='m9 11 3 3L22 4'/%3E%3C/svg%3E");
}
.mg-i-info {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
}
.mg-i-key {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z'/%3E%3Ccircle cx='16.5' cy='7.5' r='.5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z'/%3E%3Ccircle cx='16.5' cy='7.5' r='.5'/%3E%3C/svg%3E");
}
.mg-i-shield {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}
.mg-i-pencil {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z'/%3E%3Cpath d='m15 5 4 4'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z'/%3E%3Cpath d='m15 5 4 4'/%3E%3C/svg%3E");
}
.mg-i-send {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z'/%3E%3Cpath d='m21.854 2.147-10.94 10.939'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z'/%3E%3Cpath d='m21.854 2.147-10.94 10.939'/%3E%3C/svg%3E");
}
.mg-i-grid {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='7' height='7' x='3' y='3' rx='1'/%3E%3Crect width='7' height='7' x='14' y='3' rx='1'/%3E%3Crect width='7' height='7' x='14' y='14' rx='1'/%3E%3Crect width='7' height='7' x='3' y='14' rx='1'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='7' height='7' x='3' y='3' rx='1'/%3E%3Crect width='7' height='7' x='14' y='3' rx='1'/%3E%3Crect width='7' height='7' x='14' y='14' rx='1'/%3E%3Crect width='7' height='7' x='3' y='14' rx='1'/%3E%3C/svg%3E");
}
.mg-i-link {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 17H7A5 5 0 0 1 7 7h2'/%3E%3Cpath d='M15 7h2a5 5 0 1 1 0 10h-2'/%3E%3Cpath d='M8 12h8'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 17H7A5 5 0 0 1 7 7h2'/%3E%3Cpath d='M15 7h2a5 5 0 1 1 0 10h-2'/%3E%3Cpath d='M8 12h8'/%3E%3C/svg%3E");
}
.mg-i-building {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z'/%3E%3Cpath d='M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2'/%3E%3Cpath d='M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M10 6h4'/%3E%3Cpath d='M10 10h4'/%3E%3Cpath d='M10 14h4'/%3E%3Cpath d='M10 18h4'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z'/%3E%3Cpath d='M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2'/%3E%3Cpath d='M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M10 6h4'/%3E%3Cpath d='M10 10h4'/%3E%3Cpath d='M10 14h4'/%3E%3Cpath d='M10 18h4'/%3E%3C/svg%3E");
}
.mg-i-upload {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='m17 8-5-5-5 5'/%3E%3Cpath d='M12 3v12'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='m17 8-5-5-5 5'/%3E%3Cpath d='M12 3v12'/%3E%3C/svg%3E");
}
.mg-i-download {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M12 15V3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M12 15V3'/%3E%3C/svg%3E");
}
.mg-i-sparkles {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z'/%3E%3C/svg%3E");
}
.mg-i-panel {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2'/%3E%3Cpath d='M9 3v18'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2'/%3E%3Cpath d='M9 3v18'/%3E%3C/svg%3E");
}
.mg-i-lock {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}
.mg-i-help {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
}
.mg-i-sun {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2'/%3E%3Cpath d='M12 20v2'/%3E%3Cpath d='m4.93 4.93 1.41 1.41'/%3E%3Cpath d='m17.66 17.66 1.41 1.41'/%3E%3Cpath d='M2 12h2'/%3E%3Cpath d='M20 12h2'/%3E%3Cpath d='m6.34 17.66-1.41 1.41'/%3E%3Cpath d='m19.07 4.93-1.41 1.41'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2'/%3E%3Cpath d='M12 20v2'/%3E%3Cpath d='m4.93 4.93 1.41 1.41'/%3E%3Cpath d='m17.66 17.66 1.41 1.41'/%3E%3Cpath d='M2 12h2'/%3E%3Cpath d='M20 12h2'/%3E%3Cpath d='m6.34 17.66-1.41 1.41'/%3E%3Cpath d='m19.07 4.93-1.41 1.41'/%3E%3C/svg%3E");
}
.mg-i-file {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3C/svg%3E");
}
.mg-i-terminal {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 17 10 11 4 5'/%3E%3Cline x1='12' x2='20' y1='19' y2='19'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 17 10 11 4 5'/%3E%3Cline x1='12' x2='20' y1='19' y2='19'/%3E%3C/svg%3E");
}

/* ========== Basics: icons, text, dots, chips, keys, small buttons ========== */

/* An icon drawn from a mask, in the text colour: <i class="mg-i mg-i-check"></i>. A size is set with width and height. */
.mg-i {
    display: inline-block;
    flex: none;
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.mg-i.sm {
    width: 13px;
    height: 13px;
}
.mg-i.lg {
    width: 20px;
    height: 20px;
}
.se-btn > .mg-i {
    margin-right: 7px;
}
.se-btn > .mg-i.after {
    margin: 0 0 0 7px;
}
.mg-mono {
    font-family: var(--mono);
    font-size: var(--mg-fs-mono);
}
.mg-muted {
    color: var(--fg-muted);
}
.mg-faint {
    color: var(--mg-subtle);
}
.mg-strong {
    color: var(--fg-strong);
}
.mg-cap {
    font-size: var(--mg-fs-cap);
    line-height: 1.4;
    color: var(--fg-muted);
}
/* The red star after a required label. */
.mg-req {
    color: var(--mg-danger-solid);
}
/* Mono text on the hover grey, as a count or a key: "2 roles", "admin". */
.mg-chip {
    display: inline-flex;
    align-items: center;
    flex: none;
    height: 22px;
    padding: 0 8px;
    border-radius: var(--r-chip);
    background: var(--hover);
    color: var(--fg);
    font-family: var(--mono);
    font-size: var(--mg-fs-meta);
    white-space: nowrap;
}
.mg-chip.plain {
    font-family: var(--sans);
    font-size: var(--mg-fs-cap);
}
/* A bordered note chip: amber (warn), green (ok), red (bad). */
.mg-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: none;
    height: 22px;
    padding: 0 8px;
    border: 1px solid var(--mg-warn-border);
    border-radius: var(--r-chip);
    background: var(--mg-warn-bg);
    color: var(--mg-warn-fg);
    font-size: var(--mg-fs-cap);
    white-space: nowrap;
}
.mg-badge.ok {
    border-color: var(--mg-ok-border);
    background: var(--ok-bg);
    color: var(--ok-fg);
}
.mg-badge.bad {
    border-color: var(--mg-danger-border);
    background: var(--mg-danger-bg);
    color: var(--bad-fg);
}
/* A fully round amber note such as "Ends in 3 days". */
.mg-badge.round {
    height: 24px;
    border-radius: 999px;
}
/* A small neutral tab count after a label. */
.mg-num {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border-radius: var(--r-chip);
    background: var(--hover);
    color: var(--fg-secondary);
    font-family: var(--mono);
    font-size: var(--mg-fs-meta);
    font-weight: 400;
}
/* The 7 px status dot. */
.mg-dot {
    display: inline-block;
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mg-subtle);
}
.mg-dot.ok {
    background: var(--mg-ok-dot);
}
.mg-dot.warn {
    background: var(--mg-warn-dot);
}
.mg-dot.bad {
    background: var(--bad-line);
}
.mg-dot.brand {
    background: var(--primary-ink);
}
.mg-dot.hollow {
    background: transparent;
    border: 1px solid var(--line-strong);
}
/* A dot and a label: "Enabled", "Saved". */
.mg-stat {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: none;
    font-size: var(--mg-fs-cap);
    color: var(--fg);
    white-space: nowrap;
}
/* A key hint: "/" in a search box, "N" or "Ctrl S" in a button. */
.mg-kbd {
    display: inline-flex;
    align-items: center;
    padding: 0 6px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-chip);
    color: var(--fg-muted);
    font-family: var(--mono);
    font-size: 12px;
    line-height: 18px;
}
.se-btn.pri .mg-kbd,
.mg-kbd.on-pri {
    border-color: color-mix(in srgb, var(--on-primary) 40%, transparent);
    color: color-mix(in srgb, var(--on-primary) 80%, transparent);
}
.se-btn .mg-kbd {
    margin-left: 8px;
}
/* A square icon button without a border: back, copy, close, more. */
.mg-ibtn {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    color: var(--fg-muted);
}
.mg-ibtn.sm {
    width: 26px;
    height: 26px;
}
.mg-ibtn.bad {
    color: var(--mg-danger-solid);
}
/* A text action in the brand colour: "Add pair", "Configure", "Edit role". */
.mg-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 8px;
    border-radius: 6px;
    color: var(--primary-ink);
    font-size: var(--mg-fs-sm);
    font-weight: 500;
    white-space: nowrap;
}
.mg-link.flush {
    height: auto;
    padding: 0;
}
/* Button add-ons for .se-btn: a solid red delete, a medium weight secondary, a lower control, a disabled look. */
.se-btn.mg-dng {
    background: var(--mg-danger-solid);
    border-color: var(--mg-danger-solid);
    color: #fff;
}
.se-btn.mg-med {
    font-weight: 500;
}
.se-btn.mg-sm {
    height: 30px;
    padding: 0 11px;
    font-size: var(--mg-fs-sm);
}
.se-btn.mg-dis {
    opacity: 0.5;
}
.se-btn.mg-ai {
    border-color: var(--mg-ai-border);
    color: var(--mg-ai-fg);
    font-weight: 500;
}
.se-btn.mg-dash {
    justify-content: center;
    border-style: dashed;
    background: var(--surface);
    color: var(--fg);
    font-weight: 500;
}
/* The tooltip bubble of a hover hint, such as the reason a button is greyed. */
.mg-hint {
    position: absolute;
    max-width: 260px;
    padding: 7px 11px;
    border-radius: 6px;
    background: var(--mg-tooltip);
    color: #fff;
    font-size: var(--mg-fs-cap);
    font-weight: 500;
    line-height: 1.35;
    box-shadow: var(--shadow-panel);
}
.mg-hint::before {
    content: '';
    position: absolute;
    top: -4px;
    right: 22px;
    width: 8px;
    height: 8px;
    background: var(--mg-tooltip);
    transform: rotate(45deg);
}
.mg-hint.left::before {
    right: auto;
    left: 22px;
}

/* ========== App chrome ========== */

/* The app below a .win bar: a column that fills the window body. */
.mg-app {
    position: absolute;
    inset: 44px 0 0 0;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    overflow: hidden;
}
.mg-topbar {
    display: flex;
    align-items: stretch;
    gap: 22px;
    flex: none;
    height: 54px;
    padding: 0 22px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}
.mg-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--fg-strong);
    white-space: nowrap;
}
.mg-logo i {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--primary);
}
.mg-nav {
    display: flex;
    align-items: stretch;
    flex: 1;
    min-width: 0;
}
.mg-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 12px;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    font-size: var(--mg-fs);
    font-weight: 500;
    color: var(--fg-secondary);
    white-space: nowrap;
}
.mg-tab.on {
    border-bottom-color: var(--primary);
    color: var(--primary-ink);
}
.mg-tab .mg-i {
    width: 13px;
    height: 13px;
}
.mg-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
    color: var(--fg-muted);
}
.mg-avatar {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary-ink);
    font-size: 12.5px;
    font-weight: 600;
}
/* A menu panel: the Settings menu, a row's More actions. Place it with left and top. */
.mg-menu {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 240px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface);
    box-shadow: var(--shadow-panel);
}
.mg-mi {
    display: flex;
    align-items: center;
    gap: 11px;
    height: 38px;
    padding: 0 10px;
    border-radius: 6px;
    color: var(--fg);
    font-size: var(--mg-fs);
    white-space: nowrap;
}
.mg-mi > span {
    flex: 1;
}
.mg-mi .mg-i {
    color: var(--fg-secondary);
}
.mg-mi.cur {
    background: var(--primary-soft);
    color: var(--fg-strong);
}
.mg-mi.cur > .mg-i:last-child {
    width: 14px;
    height: 14px;
    color: var(--primary-ink);
}
.mg-mi.dng,
.mg-mi.dng .mg-i {
    color: var(--mg-danger-solid);
}
.mg-msep {
    height: 1px;
    margin: 3px 0;
    background: var(--hover);
}
/* The page: padding around a header, a toolbar and the content. */
.mg-page {
    flex: 1;
    min-height: 0;
    padding: 24px 28px;
    overflow: hidden;
}
.mg-ph {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.mg-title {
    margin: 0;
    font-size: 21px;
    line-height: 28px;
    font-weight: 400;
    letter-spacing: -0.025em;
    color: var(--fg-muted);
    white-space: nowrap;
}
.mg-title b {
    font-weight: 600;
    color: var(--fg-strong);
}
.mg-count {
    font-family: var(--mono);
    font-size: var(--mg-fs-mono);
    color: var(--fg-muted);
}
.mg-sp {
    flex: 1;
    min-width: 0;
}
.mg-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.mg-search {
    position: relative;
    display: flex;
    align-items: center;
    flex: none;
    width: 290px;
    height: 36px;
    padding: 0 34px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    font-size: var(--mg-fs);
    color: var(--fg-strong);
    white-space: nowrap;
}
.mg-search.ph {
    color: var(--mg-subtle);
}
.mg-search > .mg-i-search {
    position: absolute;
    left: 11px;
    top: 50%;
    width: 15px;
    height: 15px;
    margin-top: -7.5px;
    color: var(--mg-subtle);
}
.mg-search > .mg-kbd {
    position: absolute;
    right: 9px;
    top: 50%;
    margin-top: -10px;
}
/* A filter chip: dashed and empty ("+ Status") or solid with a value ("Status is Enabled"). */
.mg-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border: 1px dashed var(--line-strong);
    border-radius: 8px;
    color: var(--fg-muted);
    font-size: var(--mg-fs-sm);
    white-space: nowrap;
}
.mg-filter.on {
    border: 1px solid var(--line);
    background: var(--hover);
    color: var(--fg-strong);
}
.mg-filter.on i {
    font-style: normal;
    color: var(--fg-muted);
}
.mg-filter .mg-i {
    width: 12px;
    height: 12px;
}
/* The list footer: range, rows per page, previous and next. */
.mg-pager {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    font-size: var(--mg-fs-cap);
    color: var(--fg-muted);
}
.mg-pager .pgbox {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--surface);
    color: var(--fg-strong);
}
.mg-pager .pgnav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mg-pager .pgbtn {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--surface);
    color: var(--fg-strong);
}
.mg-pager .pgbtn.off {
    border-color: var(--line);
    background: transparent;
    color: var(--mg-subtle);
}

/* ========== Toasts and dialogs ========== */

/* A notification: a toned icon, a title, an optional body line and a close mark. Tone: .ok, .bad, .warn, .info on the icon. */
.mg-toast {
    position: absolute;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 380px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface);
    box-shadow: var(--shadow-panel);
}
.mg-toast > .mg-i:first-child {
    margin-top: 2px;
}
.mg-toast .ok {
    color: var(--mg-ok-icon);
}
.mg-toast .bad {
    color: var(--mg-danger-solid);
}
.mg-toast .warn {
    color: var(--mg-warn-icon);
}
.mg-toast .info {
    color: var(--primary-ink);
}
.mg-toast div {
    flex: 1;
    min-width: 0;
}
.mg-toast b {
    display: block;
    font-size: var(--mg-fs-sm);
    font-weight: 600;
    line-height: 20px;
    color: var(--fg-strong);
}
.mg-toast p {
    margin: 2px 0 0;
    font-size: var(--mg-fs-cap);
    line-height: 19px;
    color: var(--fg-muted);
}
.mg-toast > .mg-i:last-child {
    width: 14px;
    height: 14px;
    margin-top: 3px;
    color: var(--fg-muted);
}
/* The dimmed backdrop behind a dialog. */
.mg-scrim {
    position: absolute;
    inset: 0;
    background: var(--mg-scrim);
}
/* A dialog: header (tile, title, close), body, footer. Place it with left, top and width. */
.mg-modal {
    position: absolute;
    display: flex;
    flex-direction: column;
    width: 560px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-panel);
    overflow: hidden;
}
.mg-mh {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
    min-height: 58px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--line);
}
.mg-mh > div {
    flex: 1;
    min-width: 0;
}
.mg-mt {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--fg-strong);
}
.mg-mt small {
    font-size: inherit;
    font-weight: 400;
    color: var(--fg-muted);
}
.mg-msub {
    margin-top: 1px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--fg-muted);
}
.mg-mh > .mg-i:last-child {
    color: var(--fg-muted);
}
.mg-tile {
    display: grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary-ink);
}
.mg-tile.round {
    border-radius: 50%;
}
.mg-tile.ok {
    background: var(--ok-bg);
    color: var(--mg-ok-icon);
}
.mg-tile.warn {
    background: var(--mg-warn-bg);
    color: var(--mg-warn-icon);
}
.mg-tile.bad {
    background: var(--mg-danger-bg);
    color: var(--mg-danger-solid);
}
.mg-mb {
    flex: 1;
    min-height: 0;
    padding: 16px 20px;
    font-size: var(--mg-fs);
    line-height: 1.55;
    color: var(--fg-secondary);
    overflow: hidden;
}
.mg-mb.col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mg-mf {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: none;
    padding: 12px 20px;
    border-top: 1px solid var(--line);
    background: var(--sunken);
}
.mg-mf .mfn {
    margin-right: auto;
    font-size: var(--mg-fs-cap);
    color: var(--fg-muted);
}
.mg-mf .mfn.mono {
    font-family: var(--mono);
    font-size: var(--mg-fs-meta);
}
/* A callout inside a dialog: amber by default; .bad for a red notice. */
.mg-callout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--mg-warn-border);
    border-radius: 7px;
    background: var(--mg-warn-bg);
    color: var(--mg-warn-fg);
    font-size: var(--mg-fs-cap);
    line-height: 1.4;
}
.mg-callout.bad {
    border-color: var(--mg-danger-border);
    background: var(--mg-danger-bg);
    color: var(--bad-fg);
}
.mg-callout .mg-i {
    width: 15px;
    height: 15px;
}

/* ========== Cards, fields and form controls ========== */

/* A white card with a 10 px corner. */
.mg-card {
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface);
}
/* The system card of a list: name and status, id, chips, updated. */
.mg-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.mg-sys {
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 16px;
}
.mg-sys.sel {
    border-color: var(--primary-ink);
    box-shadow: inset 0 0 0 1px var(--primary-ink);
}
.mg-sys .row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.mg-sys .name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--fg-strong);
}
.mg-sys .sid {
    font-family: var(--mono);
    font-size: var(--mg-fs-meta);
    color: var(--fg);
}
.mg-sys .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.mg-sys .upd {
    font-size: 12.5px;
    color: var(--fg-muted);
}
/* The empty state of a list: one centred line in a card. */
.mg-empty {
    padding: 40px 16px;
    text-align: center;
}
.mg-empty b {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: var(--mg-fs);
    font-weight: 500;
    color: var(--fg-strong);
}
.mg-empty.col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 16px;
    font-size: var(--mg-fs-sm);
    color: var(--fg);
}
.mg-empty.col .mg-i {
    width: 30px;
    height: 30px;
    color: var(--mg-subtle);
}
/* A section card: a sunken header (eyebrow title, hint mark, meta, action) over a body. */
.mg-sc {
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface);
}
.mg-sch {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 6px 16px;
    border-bottom: 1px solid var(--hover);
    border-radius: 9px 9px 0 0;
    background: var(--sunken);
}
.mg-sch.plain {
    background: var(--surface);
    border-bottom-color: var(--line);
}
.mg-eyebrow {
    margin: 0;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg-muted);
    white-space: nowrap;
}
.mg-meta {
    font-family: var(--mono);
    font-size: var(--mg-fs-meta);
    color: var(--fg-muted);
    white-space: nowrap;
}
.mg-scb {
    padding: 16px;
}
.mg-scb.flush {
    padding: 0;
}
.mg-scb.col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
/* A label over a control: medium text, an optional star and hint mark. */
.mg-f {
    min-width: 0;
}
.mg-lab {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
    font-size: var(--mg-fs-cap);
    font-weight: 500;
    line-height: 1.3;
    color: var(--fg);
}
.mg-lab small {
    font-size: inherit;
    font-weight: 400;
    color: var(--mg-subtle);
}
.mg-g2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.mg-g3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}
/* A red border for a field with a problem, and the problem line under it. */
.se-in.mg-bad {
    border-color: var(--bad-line);
}
.mg-prob {
    margin-top: 4px;
    font-size: var(--mg-fs-cap);
    color: var(--mg-danger-solid);
}
/* A multi-line input. */
.se-in.mg-area {
    align-items: flex-start;
    padding-top: 9px;
    padding-bottom: 9px;
    white-space: normal;
    line-height: 1.45;
}
.se-in.mg-area.mono {
    font-size: 13px;
}
.se-in.mg-w-sm {
    width: 88px;
}
/* A dropdown that is smaller and sits in a table row. */
.se-in.mg-sel {
    min-height: 34px;
    font-size: var(--mg-fs-sm);
}
/* Chips that edit a list of words: tags, then a text input. */
.mg-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    min-height: 36px;
    padding: 4px 6px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
}
.mg-tags.mg-bad {
    border-color: var(--bad-line);
}
.mg-tags .ph {
    padding: 0 5px;
    font-size: var(--mg-fs);
    color: var(--mg-subtle);
}
.mg-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 26px;
    padding: 0 5px 0 9px;
    border-radius: var(--r-chip);
    background: var(--hover);
    color: var(--fg-strong);
    font-family: var(--mono);
    font-size: var(--mg-fs-meta);
    white-space: nowrap;
}
.mg-tag::after {
    content: '\00d7';
    padding: 0 4px;
    border-radius: 3px;
    color: var(--fg-secondary);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1;
}
.mg-tag.locked::after {
    display: none;
}
.mg-tag.locked {
    padding-right: 9px;
}
/* A segmented control: a bordered track, the chosen option filled. */
.mg-seg {
    display: inline-flex;
    flex: none;
    gap: 2px;
    padding: 2px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}
.mg-seg > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    border-radius: 6px;
    color: var(--fg-muted);
    font-size: var(--mg-fs-sm);
    white-space: nowrap;
}
.mg-seg > span.on {
    background: var(--hover);
    color: var(--fg-strong);
}
.mg-seg.sm > span {
    height: 26px;
    padding: 0 9px;
    font-size: var(--mg-fs-cap);
}
.mg-seg.fill {
    display: flex;
}
.mg-seg.fill > span {
    flex: 1;
    justify-content: center;
}
/* A radio card: radio and title, a note under the title. .on is the chosen card. */
.mg-choice {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface);
}
.mg-choice.on {
    border: 1.5px solid var(--primary-ink);
    padding: 12.5px;
    background: var(--primary-soft);
}
.mg-choice b {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--mg-fs-sm);
    font-weight: 600;
    color: var(--fg-strong);
}
.mg-choice p {
    margin: 0;
    padding-left: 26px;
    font-size: var(--mg-fs-cap);
    color: var(--fg-secondary);
}
.mg-radio {
    flex: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--line-strong);
    border-radius: 50%;
    background: var(--surface);
}
.mg-choice.on .mg-radio {
    border: 5px solid var(--primary);
}
/* A check box with its label; .on is ticked. */
.mg-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: var(--mg-fs-sm);
    color: var(--fg-strong);
    white-space: nowrap;
}
.mg-check i {
    display: grid;
    place-items: center;
    flex: none;
    width: 16px;
    height: 16px;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    background: var(--surface);
}
.mg-check.on i {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--on-primary);
}
.mg-check.on i::after {
    content: '';
    width: 11px;
    height: 11px;
    background: currentColor;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
/* A mono block of the product: sunken, bordered, with a copy button in its corner. */
.mg-code {
    position: relative;
    padding: 12px 40px 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--sunken);
    font-family: var(--mono);
    font-size: 13px;
    line-height: 19px;
    color: var(--fg);
    white-space: pre-wrap;
    word-break: break-all;
}
.mg-code > .mg-ibtn {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 26px;
    height: 26px;
}
/* A bordered list of rows, such as the enabled routes or the calls of a step. */
.mg-rows {
    border: 1px solid var(--line);
    border-radius: 8px;
}
.mg-rows > div {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 6px 12px;
}
.mg-rows > div + div {
    border-top: 1px solid var(--hover);
}
.mg-rows.sunken {
    background: var(--sunken);
}
.mg-rows code {
    flex: 1;
    min-width: 0;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--fg-strong);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* A table in a card: toolbar, then .we-trow rows with the columns set inline. */
.mg-tcard {
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface);
    overflow: hidden;
}
.mg-tbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--line);
}
.we-trow.mg-pad {
    padding-top: 9px;
    padding-bottom: 9px;
}
.we-trow.mg-top {
    align-items: start;
}
.we-trow.mg-last {
    border-bottom: 0;
}
.we-trow.mg-sub {
    border-bottom-color: var(--hover);
}
.we-trow > .mg-wrap {
    overflow: visible;
    white-space: normal;
}
.we-trow > .mg-end {
    justify-self: end;
}
.mg-tcard .we-trow.th {
    border-bottom-color: var(--line);
    font-weight: 500;
}
.mg-acts {
    display: flex;
    align-items: center;
    gap: 3px;
}
/* A label and a value on one line, ruled below: the overview rows. */
.mg-kv {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--hover);
    font-size: var(--mg-fs);
}
.mg-kv:last-child {
    border-bottom: 0;
}
.mg-kv > :first-child {
    color: var(--fg-muted);
}
.mg-kv > :last-child {
    min-width: 0;
    color: var(--fg-strong);
}
.mg-kv .m {
    font-family: var(--mono);
    font-size: var(--mg-fs-meta);
}
/* The page tabs of a detail page: icon, label, count; the open one underlined. */
.mg-ptabs {
    display: flex;
    gap: 22px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.mg-ptab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 42px;
    margin-bottom: -1px;
    padding: 0 2px;
    border-bottom: 2px solid transparent;
    font-size: var(--mg-fs);
    font-weight: 500;
    color: var(--fg-secondary);
    white-space: nowrap;
}
.mg-ptab.on {
    border-bottom-color: var(--primary);
    color: var(--primary-ink);
}
.mg-ptab .mg-i {
    width: 16px;
    height: 16px;
}

/* ========== External systems ========== */

/* The editor below a .win bar: header, then outline, cards and the test panel side by side. */
.xs-ed {
    position: absolute;
    inset: 44px 0 0 0;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    overflow: hidden;
}
.xs-ed > .se-head {
    flex: none;
    background: var(--surface);
}
.xs-ed .se-head .se-crumb {
    margin-left: 4px;
    color: var(--mg-subtle);
}
.xs-ed .se-head .se-name {
    font-size: 17px;
}
.xs-work {
    display: flex;
    flex: 1;
    min-height: 0;
}
.xs-outline {
    flex: none;
    width: 208px;
    padding: 14px 10px;
    border-right: 1px solid var(--line);
    background: var(--sunken);
}
.xs-outline .mg-eyebrow {
    padding: 0 8px 8px;
    font-size: 12px;
}
.xs-o {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 36px;
    padding: 0 9px;
    border-radius: 6px;
    color: var(--fg);
    font-size: var(--mg-fs);
}
.xs-o > span {
    flex: 1;
    min-width: 0;
}
.xs-o.on {
    background: var(--primary-soft);
    color: var(--fg-strong);
    box-shadow: inset 2px 0 0 var(--primary);
}
.xs-o em {
    font-style: normal;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--bad-fg);
}
.xs-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 14px;
    background-color: var(--bg);
    overflow: hidden;
}
.xs-test {
    display: flex;
    flex: none;
    flex-direction: column;
    width: 350px;
    border-left: 1px solid var(--line);
    background: var(--surface);
}
.xs-test > .hd {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: none;
    height: 44px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
}
.xs-test > .bd {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    padding: 16px;
    overflow: hidden;
}
.xs-run {
    display: flex;
    align-items: center;
    gap: 10px;
}
.xs-run span {
    font-size: 12.5px;
    color: var(--fg-muted);
}
/* The result of a test: the stages with their dots, then the blocks it read. */
.xs-res {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding-top: 13px;
    border-top: 1px solid var(--hover);
}
.xs-stages {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.xs-stage {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: var(--mg-fs-sm);
    color: var(--fg-muted);
}
.xs-stage.ok {
    color: var(--fg-strong);
}
.xs-stage.bad {
    font-weight: 500;
    color: var(--bad-fg);
}
.xs-stage .dot-bad {
    background: var(--bad-line);
}
.xs-probs {
    margin: -2px 0 0;
    padding: 0 0 0 28px;
    font-size: var(--mg-fs-cap);
    line-height: 1.45;
    color: var(--bad-fg);
}
.xs-probs code {
    margin-left: 4px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--fg-muted);
}
.xs-sub {
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg-secondary);
}
.xs-json {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--sunken);
    font-family: var(--mono);
    font-size: 13px;
    line-height: 19px;
    color: var(--fg);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.xs-json .k {
    color: var(--ft-file-fg);
}
.xs-json .d {
    color: var(--primary-ink);
}
.xs-roles {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.xs-wr {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--mg-fs-sm);
    color: var(--fg-strong);
}
.xs-wr em {
    font-style: normal;
    font-family: var(--mono);
    font-size: var(--mg-fs-meta);
}
/* The call line of an integration step: a mono method and path, an auth chip. */
.xs-steps {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
}
.xs-step {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
}
.xs-step .head {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}
.xs-step .sn {
    display: grid;
    place-items: center;
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: var(--r-chip);
    background: var(--hover);
    color: var(--fg-secondary);
    font-family: var(--mono);
    font-size: 12px;
}
.xs-step h4 {
    margin: 0;
    font-size: var(--mg-fs-sm);
    font-weight: 600;
    line-height: 19px;
    color: var(--fg-strong);
}
.xs-step p {
    margin: 0;
    font-size: var(--mg-fs-cap);
    line-height: 1.4;
    color: var(--fg-muted);
}
.xs-lines {
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--sunken);
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 19px;
    color: var(--fg);
}
.xs-lines div {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.xs-call {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 9px;
    margin-bottom: 7px;
    font-size: var(--mg-fs-cap);
    font-weight: 500;
    color: var(--fg);
}
.xs-call code {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 400;
    color: var(--fg-strong);
}
.xs-cap {
    margin: 8px 0 5px;
    font-size: var(--mg-fs-cap);
    font-weight: 500;
    color: var(--fg-muted);
}
/* The key itself, shown once: mono on sunken, a copy cell at the right. */
.xs-secret {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    overflow: hidden;
}
.xs-secret code {
    flex: 1;
    min-width: 0;
    padding: 11px 13px;
    background: var(--sunken);
    font-family: var(--mono);
    font-size: var(--mg-fs-sm);
    line-height: 1.5;
    color: var(--fg-strong);
    word-break: break-all;
}
.xs-secret span {
    display: grid;
    place-items: center;
    padding: 0 10px;
    border-left: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--fg-muted);
}
.xs-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.xs-pair .pl {
    font-size: var(--mg-fs-cap);
    color: var(--fg-muted);
}
.xs-pair .pv {
    margin-top: 3px;
    font-size: var(--mg-fs);
    color: var(--fg-strong);
}
/* The optional panel of a role window: a sunken header with a switch-like check at the right. */
.xs-panel {
    border: 1px solid var(--line);
    border-radius: var(--r-card);
}
.xs-panel > .hd {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 9px;
    background: var(--sunken);
}
.xs-panel > .hd .mg-check {
    margin-left: auto;
}
/* A mapping row: selects separated by an arrow, a remove button. Columns are set inline. */
.xs-pairs {
    display: grid;
    align-items: center;
    gap: 8px;
}
/* One system in the user role's mappings panel: a collapsed or open head, then the rows. */
.xs-sys {
    border: 1px solid var(--line);
    border-radius: var(--r-card);
}
.xs-sys > .hd {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    font-size: var(--mg-fs-sm);
}
.xs-sys > .hd b {
    font-weight: 500;
    color: var(--fg-strong);
}
.xs-sys > .bd {
    padding: 10px 13px 12px;
    border-top: 1px solid var(--hover);
}
.xs-sys .cols {
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--fg-muted);
}

/* ========== Localization ========== */

/* The pill tabs under a page title: Workflow, Schema, Constants, System. */
.mg-pills {
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}
.mg-pills > span {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 13px;
    border-radius: 6px;
    color: var(--fg-muted);
    font-size: var(--mg-fs);
    font-weight: 500;
}
.mg-pills > span.on {
    background: var(--hover);
    color: var(--fg-strong);
}
.mg-sub {
    margin: 0;
    font-size: 15px;
    line-height: 20px;
    font-weight: 600;
    color: var(--fg-strong);
}
.mg-langs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.mg-lang {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 32px;
    padding: 0 11px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--surface);
    color: var(--fg);
    font-size: var(--mg-fs-cap);
    font-weight: 500;
}
.mg-lang.on {
    border-color: var(--primary-ink);
    background: var(--primary-soft);
    color: var(--fg-strong);
}
.mg-lang::after {
    content: '\00d7';
    color: var(--mg-subtle);
    font-size: 15px;
    line-height: 1;
}
.mg-lnav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
}
.mg-lnav h5 {
    margin: 9px 0 4px;
    padding: 0 10px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mg-subtle);
}
.mg-lnav h5:first-child {
    margin-top: 0;
}
.mg-lnav > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 34px;
    padding: 0 10px;
    border-radius: 6px;
    color: var(--fg);
    font-size: var(--mg-fs);
}
.mg-lnav > div.on {
    background: var(--primary-soft);
    color: var(--fg-strong);
    font-weight: 500;
}
.mg-lnav > div small {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--mg-subtle);
}
/* One translatable string: a meta line (label, mono key, placeholder tags), the English text and the translation. */
.mg-tr + .mg-tr {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.mg-trmeta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 7px;
    font-size: var(--mg-fs-cap);
    font-weight: 500;
    color: var(--fg-muted);
}
.mg-trmeta .key {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 400;
    color: var(--mg-subtle);
}
.mg-trmeta .plh {
    padding: 1px 6px;
    border-radius: var(--r-chip);
    background: var(--mg-warn-soft);
    color: var(--mg-warn-fg);
    font-family: var(--mono);
    font-size: 11px;
}
.mg-trmeta .grp {
    padding: 2px 7px;
    border-radius: var(--r-chip);
    background: var(--hover);
    color: var(--fg-muted);
    font-size: 11px;
}
.mg-trmeta .typ {
    padding: 2px 7px;
    border-radius: var(--r-chip);
    background: var(--primary-soft);
    color: var(--primary-ink);
    font-family: var(--mono);
    font-size: 11px;
}
.mg-trline {
    display: flex;
    align-items: center;
    gap: 9px;
}
.mg-trline + .mg-trline {
    margin-top: 5px;
}
.mg-trline > b {
    flex: none;
    width: 28px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--mg-subtle);
}
.mg-trline > b.on {
    color: var(--primary-ink);
}
.mg-trline > div {
    flex: 1;
    min-width: 0;
    height: 34px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    font-size: var(--mg-fs);
    color: var(--fg-strong);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.mg-trline > div.ro {
    border-color: var(--line);
    background: var(--sunken);
    color: var(--fg-muted);
}
.mg-trline > div.ph {
    font-style: italic;
    color: var(--mg-subtle);
}
.mg-trline > .ai {
    flex: none;
    padding: 2px 6px;
    border-radius: var(--r-chip);
    background: var(--mg-ai-strong);
    color: var(--mg-ai-ink);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.mg-trwarn {
    margin: 4px 0 0 37px;
    font-size: 12.5px;
    color: var(--mg-warn-ink);
}
.mg-bar {
    display: flex;
    justify-content: flex-end;
    padding: 12px 28px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

/* The workflow editor header's publish state: the status dot of a published workflow and the key-hint placement. */
.we-status.mg-pub::before {
    background: var(--mg-ok-dot);
}
.we-status.mg-dep::before {
    background: var(--mg-subtle);
}

/* ========== Code, terminal and response windows ========== */

/* Syntax tints, readable on the sunken code surface in both themes. */
:root {
    --cw-bg: var(--sunken);
    --cw-bar: var(--surface);
    --cw-lit: var(--primary-soft);
    --cw-lit-bar: var(--primary);
    --cw-ins: var(--ok-bg);
    --cw-del: var(--mg-danger-bg);
}
.cw-win {
    position: absolute;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--cw-bg);
    box-shadow: var(--shadow-panel);
    overflow: hidden;
}
.cw-win.flow {
    position: relative;
}
/* The bar over the code: the file name tab at the left, the language at the right. */
.cw-bar {
    display: flex;
    align-items: stretch;
    flex: none;
    height: 42px;
    padding: 0 6px 0 0;
    border-bottom: 1px solid var(--line);
    background: var(--cw-bar);
}
.cw-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    margin-bottom: -1px;
    border-bottom: 2px solid var(--primary);
    color: var(--fg-strong);
    font-family: var(--mono);
    font-size: 14px;
    white-space: nowrap;
}
.cw-tab.idle {
    border-bottom-color: transparent;
    color: var(--fg-muted);
}
.cw-tab::before {
    content: '';
    width: 14px;
    height: 14px;
    background: currentColor;
    opacity: 0.6;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cw-lang {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding: 0 12px;
    color: var(--fg-muted);
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
/* The lines of code. Each line is a .cw-l; the window pads the block. */
.cw-code {
    flex: 1;
    min-height: 0;
    padding: 14px 0;
    font-family: var(--mono);
    font-size: 15px;
    line-height: 25px;
    color: var(--fg);
    counter-reset: cw;
    overflow: hidden;
}
.cw-l {
    position: relative;
    display: block;
    min-height: 25px;
    padding: 0 20px 0 22px;
    border-left: 3px solid transparent;
    white-space: pre;
}
/* Line numbers: a number before each line that is shown. */
.cw-code.num .cw-l {
    counter-increment: cw;
    padding-left: 58px;
}
.cw-code.num .cw-l::before {
    content: counter(cw);
    position: absolute;
    left: 0;
    width: 38px;
    text-align: right;
    color: var(--mg-subtle);
}
/* A line that is the point: tinted, with a bar at the left. */
.cw-l.lit {
    border-left-color: var(--cw-lit-bar);
    background: var(--cw-lit);
}
/* A line that steps back. */
.cw-l.dim {
    opacity: 0.38;
}
/* A line hidden but keeping its space, for a timeline that reveals it; .gone removes it. */
.cw-l.off {
    opacity: 0;
}
.cw-l.gone {
    display: none;
}
.cw-l.ins {
    border-left-color: var(--mg-ok-dot);
    background: var(--cw-ins);
}
.cw-l.del {
    border-left-color: var(--bad-line);
    background: var(--cw-del);
}
.cw-l.ins::after,
.cw-l.del::after {
    position: absolute;
    left: 6px;
    font-weight: 600;
}
.cw-l.ins::after {
    content: '+';
    color: var(--ok-fg);
}
.cw-l.del::after {
    content: '\2212';
    color: var(--bad-fg);
}
.cw-code.num .cw-l.ins::after,
.cw-code.num .cw-l.del::after {
    left: 44px;
}
.cw-code.num .cw-l.ins::before,
.cw-code.num .cw-l.del::before {
    left: -8px;
}
/* A token inside a line: lit with a tint, struck through, or newly inserted. */
.cw-hl {
    padding: 1px 3px;
    margin: 0 -3px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--primary) 20%, transparent);
    color: var(--fg-strong);
}
.cw-x {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--bad-line);
    color: var(--fg-muted);
}
.cw-new {
    padding: 1px 3px;
    margin: 0 -3px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--mg-ok-dot) 24%, transparent);
    color: var(--fg-strong);
}
.cw-k {
    color: var(--action-fg);
}
.cw-s {
    color: var(--token-fg);
}
.cw-t {
    color: var(--form-fg);
}
.cw-a {
    color: var(--math-fg);
}
.cw-c {
    color: var(--fg-muted);
    font-style: italic;
}
.cw-n {
    color: var(--ft-file-fg);
}
.cw-f {
    color: var(--ft-choice-fg);
}
.cw-p {
    color: var(--ft-structure-fg);
}
.cw-v {
    color: var(--ft-constant-fg);
}
.cw-o {
    color: var(--fg-muted);
}
/* A terminal: the same window with a prompt before each command line. */
.cw-term .cw-bar .cw-tab::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 17 10 11 4 5'/%3E%3Cline x1='12' x2='20' y1='19' y2='19'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 17 10 11 4 5'/%3E%3Cline x1='12' x2='20' y1='19' y2='19'/%3E%3C/svg%3E");
}
.cw-tab.plain {
    font-family: var(--sans);
}
.cw-l.cmd {
    color: var(--fg-strong);
}
.cw-l.cmd::before {
    content: '$';
    margin-right: 10px;
    color: var(--primary-ink);
}
.cw-l.hd {
    color: var(--fg-secondary);
}
/* A status line such as "HTTP/1.1 403 Forbidden", with the code in a chip: .ok, .warn, .bad. */
.cw-st {
    display: inline-block;
    padding: 0 8px;
    border-radius: 5px;
    background: var(--hover);
    color: var(--fg-strong);
    font-weight: 600;
    line-height: 21px;
}
.cw-st.ok {
    background: var(--ok-bg);
    color: var(--ok-fg);
}
.cw-st.warn {
    background: var(--mg-warn-bg);
    color: var(--mg-warn-fg);
}
.cw-st.bad {
    background: var(--mg-danger-bg);
    color: var(--bad-fg);
}
.cw-gap {
    display: block;
    height: 12px;
}
/* The response window: a bar with a label, the status chip and the time at the right. */
.cw-bar .cw-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding: 0 12px;
    color: var(--fg-muted);
    font-family: var(--mono);
    font-size: 12.5px;
}
/* A request: a method badge and the path, then the header rows. */
.cw-req {
    position: absolute;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--cw-bg);
    box-shadow: var(--shadow-panel);
    overflow: hidden;
}
.cw-req > .line {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--cw-bar);
    font-family: var(--mono);
    font-size: 15px;
    color: var(--fg-strong);
    white-space: nowrap;
}
.cw-method {
    padding: 2px 9px;
    border-radius: 5px;
    background: var(--form-bg);
    color: var(--form-fg);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.cw-method.get {
    background: var(--ok-bg);
    color: var(--ok-fg);
}
.cw-method.del {
    background: var(--mg-danger-bg);
    color: var(--bad-fg);
}
.cw-hrow {
    display: flex;
    gap: 10px;
    padding: 0 18px;
    min-height: 28px;
    align-items: center;
    font-family: var(--mono);
    font-size: 14px;
    white-space: nowrap;
}
.cw-hrow:first-of-type {
    margin-top: 8px;
}
.cw-req > .hs {
    padding-bottom: 10px;
}
.cw-hrow b {
    font-weight: 400;
    color: var(--cw-hn, var(--ft-structure-fg));
}
.cw-hrow span {
    color: var(--fg);
}
.cw-hrow.lit {
    background: var(--cw-lit);
    box-shadow: inset 3px 0 0 var(--cw-lit-bar);
}
.cw-hrow.dim {
    opacity: 0.38;
}
.cw-hrow.off {
    opacity: 0;
}
/* A browser storage row: the key, then the value. */
.cw-store {
    position: absolute;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--cw-bg);
    box-shadow: var(--shadow-panel);
    overflow: hidden;
}
.cw-store > .hd {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 40px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    background: var(--cw-bar);
    color: var(--fg-muted);
    font-size: 13px;
    font-weight: 600;
}
.cw-store > .hd small {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 400;
}
.cw-srow {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 36px;
    padding: 0 16px;
    border-bottom: 1px solid var(--hover);
    font-family: var(--mono);
    font-size: 14px;
}
.cw-srow:last-child {
    border-bottom: 0;
}
.cw-srow.th {
    min-height: 30px;
    background: var(--sunken);
    color: var(--fg-muted);
    font-family: var(--sans);
    font-size: 12.5px;
    font-weight: 600;
}
.cw-srow > :first-child {
    color: var(--fg-strong);
}
.cw-srow > :last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--fg);
}
.cw-srow.lit {
    background: var(--cw-lit);
    box-shadow: inset 3px 0 0 var(--cw-lit-bar);
}
.cw-srow.dim {
    opacity: 0.38;
}
.cw-srow.off {
    opacity: 0;
}
/* A token and what is in it: the encoded string cut into its three parts, then the decoded parts. */
.cw-tok {
    position: absolute;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--cw-bg);
    box-shadow: var(--shadow-panel);
    overflow: hidden;
}
.cw-tok > .raw {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--cw-bar);
    font-family: var(--mono);
    font-size: 13px;
    line-height: 21px;
    word-break: break-all;
}
.cw-jh {
    color: var(--ft-file-fg);
}
.cw-jp {
    color: var(--action-fg);
}
.cw-js {
    color: var(--ft-choice-fg);
}
.cw-tok .cs {
    padding: 10px 0 8px;
}
.cw-tok .cs + .cs {
    border-top: 1px solid var(--line);
}
.cw-tok .cs > h6 {
    margin: 0 0 4px;
    padding: 0 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--fg-muted);
}
.cw-tok .cs > h6.h {
    color: var(--ft-file-fg);
}
.cw-tok .cs > h6.p {
    color: var(--action-fg);
}
.cw-tok .cs > h6.s {
    color: var(--ft-choice-fg);
}
.cw-tok .cw-code {
    padding: 0;
    font-size: 14px;
    line-height: 24px;
}
/* A label over a window or beside it: who owns it ("Browser", "Your backend"). */
.cw-tag {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 26px;
    padding: 0 11px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--fg-secondary);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

/* The header's free space is taken by the status, so the first button does not also push. */
.se-in.mg-area.mono {
    word-break: break-all;
}
