:root {
    color-scheme: dark;
    --text: #f7fbff;
    --muted: #b6c3d4;
    --soft: rgba(255, 255, 255, .11);
    --line: rgba(255, 255, 255, .18);
    --glass: rgba(13, 22, 36, .66);
    --glass-strong: rgba(18, 29, 47, .78);
    --shadow: 0 28px 80px rgba(0, 0, 0, .42);
    --accent: #59d7ff;
    --accent-2: #a78bfa;
    --green: #42e3a4;
    --pink: #ff73b7;
    --taskbar-h: 72px;
    --taskbar-safe-area: calc(var(--taskbar-h) + 12px);
    --brightness: 1;
    --night-light: 0;
    --volume: .36;
    --system-zoom: 1;
    --inverse-system-zoom: 1;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

.rmc-login-popout-layer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(2, 6, 18, .58);
    backdrop-filter: blur(8px);
}

.rmc-login-popout-layer[hidden] {
    display: none;
}

.rmc-login-popout {
    width: min(760px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: auto;
    padding: 20px;
    border: 1px solid rgba(255, 184, 107, .38);
    border-radius: 14px;
    background: rgba(11, 15, 24, .98);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .55);
}

.rmc-login-popout h2 {
    margin: 0 0 12px;
}

.rmc-login-popout-list {
    display: grid;
    gap: 12px;
}

.rmc-login-popout-item {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
}

.rmc-login-popout-item p {
    margin: 0;
}

.rmc-login-popout footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.rmc-login-popout footer button {
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    padding: 0 18px;
    color: #17110a;
    background: linear-gradient(135deg, #ffb86b, #ffe08a);
    box-shadow: 0 10px 24px rgba(255, 184, 107, .18);
    font-weight: 900;
    cursor: pointer;
}

.rmc-login-popout footer button:hover,
.rmc-login-popout footer button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(255, 184, 107, .26);
    outline: 2px solid rgba(255, 224, 138, .34);
    outline-offset: 2px;
}

.rmc-dashboard-pill,
.rmc-login-popout .rmc-dashboard-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(125, 211, 252, .14);
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 900;
}

.rmc-dashboard-pill.is-new { background: rgba(96, 255, 174, .14); color: #a7f3d0; }
.rmc-dashboard-pill.is-important { background: rgba(255, 217, 102, .16); color: #fde68a; }
.rmc-dashboard-pill.is-warning { background: rgba(248, 113, 113, .16); color: #fecaca; }

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    overflow: hidden;
    background: #07111f;
    color: var(--text);
    font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
    letter-spacing: 0;
}

body.is-opening-busy,
body.is-opening-busy * {
    cursor: wait !important;
}

body[data-page-mode="intern"] .desktop-icons,
body[data-page-mode="intern"] .widgets-stack,
body[data-page-mode="intern"] .window:not([data-window="settings"]),
body[data-page-mode="intern"] .taskbar,
body[data-page-mode="intern"] .start-menu,
body[data-page-mode="intern"] .quick-settings,
body[data-page-mode="intern"] .notification-center,
body[data-page-mode="intern"] .context-menu,
body[data-page-mode="intern"] .permission-dialog,
body[data-page-mode="intern"] .desktop-dialog,
body[data-page-mode="intern"] .toast {
    zoom: var(--system-zoom);
}

button,
input {
    font: inherit;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(226, 232, 240, .45);
    border-radius: 6px;
    background: rgba(255, 255, 255, .1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
    cursor: pointer;
}

input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 6px;
    border-left: 2px solid #06111f;
    border-bottom: 2px solid #06111f;
    opacity: 0;
    transform: rotate(-45deg) translateY(-1px);
}

input[type="checkbox"]:checked {
    border-color: transparent;
    background: linear-gradient(145deg, #59d7ff, #42e3a4);
}

input[type="checkbox"]:checked::before {
    opacity: 1;
}

input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: .45;
}

button {
    color: inherit;
    border: 0;
    cursor: pointer;
}

.admin-only {
    display: none !important;
}

.desktop.can-admin :not(.window).admin-only:not([hidden]),
.desktop.can-manager :not(.window).admin-only:not([hidden]) {
    display: grid !important;
}

.login-screen {
    position: fixed;
    inset: 0;
    z-index: 190;
    display: grid;
    place-items: center;
    visibility: hidden;
    opacity: 0;
    background: radial-gradient(circle at 50% 35%, rgba(89, 215, 255, .16), transparent 28%), rgba(2, 6, 23, .94);
    transition: opacity .6s ease, visibility .6s ease;
}

.login-screen.is-visible {
    visibility: visible;
    opacity: 1;
}

.login-card {
    width: min(380px, calc(100vw - 32px));
    display: grid;
    gap: 14px;
    padding: 24px;
    border-radius: 8px;
}

.login-card h1,
.login-card p {
    margin: 0;
}

.login-card label {
    display: grid;
    gap: 6px;
    color: var(--muted);
}

.login-fields,
.session-resume {
    display: grid;
    gap: 14px;
}

.login-fields[hidden],
.session-resume[hidden] {
    display: none;
}

.resume-user-button {
    display: grid;
    gap: 6px;
    justify-items: start;
    padding: 14px 16px !important;
    text-align: left;
}

.resume-user-button strong {
    font-size: 18px;
    line-height: 1.1;
}

.resume-user-button small {
    color: rgba(6, 17, 26, .76);
    font-size: 13px;
}

.secondary-action {
    background: rgba(255, 255, 255, .11) !important;
    color: var(--text) !important;
    font-weight: 650;
}

.login-card input,
.login-card button,
.modal-card input,
.modal-card textarea,
.modal-card button,
.user-form input,
.user-form select,
.user-form button,
.session-toolbar select,
.session-toolbar input,
.session-toolbar button {
    min-height: 40px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .11);
    color: var(--text);
    padding: 0 12px;
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(226, 232, 240, .85) 50%),
        linear-gradient(135deg, rgba(226, 232, 240, .85) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 34px !important;
}

select:focus {
    outline: 2px solid rgba(89, 215, 255, .45);
    outline-offset: 1px;
}

select option {
    background: #17243a;
    color: #eef6ff;
}

.password-field {
    position: relative;
    display: block;
}

.password-field input {
    width: 100%;
    padding-right: 48px;
}

.login-card .password-toggle {
    position: absolute;
    right: 5px;
    top: 5px;
    display: grid;
    place-items: center;
    width: 34px;
    min-height: 30px;
    padding: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, .12);
    color: var(--text);
}

.login-card .password-toggle:hover,
.login-card .password-toggle:focus-visible {
    background: rgba(89, 215, 255, .24);
    outline: 1px solid rgba(89, 215, 255, .42);
}

.eye-icon {
    position: relative;
    width: 20px;
    height: 13px;
    border: 2px solid currentColor;
    border-radius: 999px 999px 999px 999px / 760px 760px 760px 760px;
    transform: rotate(-2deg);
}

.eye-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.eye-icon::after {
    content: "";
    position: absolute;
    left: -3px;
    top: 5px;
    width: 26px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0;
    transform: rotate(-35deg);
}

.password-toggle[aria-pressed="false"] .eye-icon::after {
    opacity: 1;
}

.login-card button,
.modal-card button,
.user-form button,
.session-toolbar button {
    background: linear-gradient(135deg, rgba(89, 215, 255, .85), rgba(66, 227, 164, .7));
    color: #06111a;
    font-weight: 750;
}

.link-button {
    min-height: auto !important;
    justify-self: start;
    padding: 0 !important;
    background: transparent !important;
    color: var(--accent) !important;
    font-weight: 650;
}

.modal-screen {
    position: fixed;
    inset: 0;
    z-index: 195;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(2, 6, 23, .72);
}

.modal-screen[hidden] {
    display: none;
}

.modal-card {
    width: min(420px, calc(100vw - 32px));
    display: grid;
    gap: 12px;
    padding: 22px;
    border-radius: 8px;
}

.modal-card label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
}

.modal-card h2,
.modal-card p {
    margin: 0;
}

.modal-card textarea {
    min-height: 86px;
    padding-top: 10px;
    resize: vertical;
}

.contract-action {
    display: inline-grid;
    place-items: center;
    min-height: 40px;
    border: 1px solid rgba(89, 215, 255, .32);
    border-radius: 8px;
    background: rgba(89, 215, 255, .14);
    color: #dff8ff;
    padding: 0 14px;
    text-decoration: none;
    font-weight: 800;
}

.contract-action:hover,
.contract-action:focus-visible {
    background: rgba(89, 215, 255, .22);
    outline: 2px solid rgba(89, 215, 255, .28);
    outline-offset: 1px;
}

.contract-action.is-disabled {
    opacity: .55;
    pointer-events: none;
}

.contract-consent {
    display: grid !important;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px !important;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.modal-actions {
    display: flex;
    gap: 8px;
}

.window-confirm {
    position: absolute;
    inset: 42px 0 0;
    z-index: 12;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(2, 6, 23, .68);
    backdrop-filter: blur(10px);
}

.window-confirm[hidden] {
    display: none;
}

.window-confirm-card {
    width: min(460px, calc(100% - 28px));
    display: grid;
    gap: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 116, 116, .55);
    border-radius: 8px;
    background: rgba(43, 18, 24, .94);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .44);
}

.window-confirm-card h3,
.window-confirm-card p {
    margin: 0;
}

.window-confirm-card p {
    color: var(--muted);
}

.boot-screen {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 18px;
    background:
        radial-gradient(circle at 50% 44%, rgba(89, 215, 255, .18), transparent 24%),
        radial-gradient(circle at 50% 58%, rgba(167, 139, 250, .14), transparent 28%),
        #020617;
    color: #f8fbff;
    opacity: 1;
    transition: opacity .75s ease, visibility .75s ease;
}

.shutdown-screen {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 18px;
    visibility: hidden;
    background:
        radial-gradient(circle at 50% 44%, rgba(89, 215, 255, .12), transparent 24%),
        #020617;
    color: #eef6ff;
    opacity: 0;
    transition: opacity .7s ease, visibility .7s ease;
}

.shutdown-screen.is-active {
    visibility: visible;
    opacity: 1;
}

.shutdown-screen.is-off {
    background: #000;
}

.shutdown-screen.is-off .shutdown-spinner,
.shutdown-screen.is-off h2,
.shutdown-screen.is-off p {
    opacity: 0;
}

.shutdown-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, .16);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: shutdown-spin 1s linear infinite;
}

.shutdown-screen h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 680;
}

.shutdown-screen p {
    margin: 0;
    color: #b8c7da;
}

@keyframes shutdown-spin {
    to { transform: rotate(360deg); }
}

.boot-screen.is-finished {
    visibility: hidden;
    opacity: 0;
}

.boot-mark {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 26px;
    background: rgba(255, 255, 255, .08);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .18),
        0 0 70px rgba(89, 215, 255, .38);
}

.boot-screen.is-booting .boot-mark {
    animation: boot-float 2.8s ease-in-out infinite;
}

.boot-mark span {
    width: 44px;
    height: 44px;
    display: block;
    background:
        linear-gradient(#59d7ff, #59d7ff) left top / 19px 19px no-repeat,
        linear-gradient(#a78bfa, #a78bfa) right top / 19px 19px no-repeat,
        linear-gradient(#42e3a4, #42e3a4) left bottom / 19px 19px no-repeat,
        linear-gradient(#ff73b7, #ff73b7) right bottom / 19px 19px no-repeat;
    filter: drop-shadow(0 0 22px rgba(89, 215, 255, .55));
}

.boot-screen h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 64px);
    font-weight: 720;
}

.boot-screen p {
    margin: -8px 0 8px;
    color: #b8c7da;
}

.boot-start-button {
    min-width: 132px;
    height: 42px;
    padding: 0 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(89, 215, 255, .92), rgba(66, 227, 164, .82));
    color: #031018;
    font-weight: 750;
    box-shadow: 0 14px 34px rgba(89, 215, 255, .22);
}

.boot-start-button:hover,
.boot-start-button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .62);
    outline-offset: 3px;
}

.boot-screen.is-booting .boot-start-button {
    display: none;
}

.boot-progress {
    width: min(320px, calc(100vw - 64px));
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    opacity: 0;
}

.boot-progress span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, #59d7ff, #42e3a4, transparent);
}

.boot-screen.is-booting .boot-progress {
    opacity: 1;
}

.boot-screen.is-booting .boot-progress span {
    animation: boot-progress 1.45s ease-in-out infinite;
}

@keyframes boot-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-7px) scale(1.035); }
}

@keyframes boot-progress {
    0% { transform: translateX(-105%); }
    100% { transform: translateX(245%); }
}

.start-menu,
.quick-settings {
    position: fixed;
    z-index: 10020;
    bottom: 82px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px) scale(.985);
    transition: opacity .18s ease, transform .18s ease;
}

.start-menu.is-open,
.quick-settings.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.start-menu {
    left: 50%;
    width: min(640px, calc(100vw - 24px));
    max-height: min(720px, calc(100vh - 104px));
    padding: 20px;
    border-radius: 8px;
    transform-origin: bottom center;
    translate: -50% 0;
}

.start-search {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .11);
}

.start-search span,
.taskbar-search span:first-child {
    width: 14px;
    height: 14px;
    border: 2px solid #dce7f8;
    border-radius: 50%;
    position: relative;
}

.start-search span::after,
.taskbar-search span:first-child::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 7px;
    height: 2px;
    border-radius: 2px;
    background: #dce7f8;
    transform: rotate(45deg);
}

.start-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}

.start-search input::placeholder {
    color: #c5d2e4;
}

.start-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0 12px;
}

.pinned-apps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.pinned-apps button {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 82px;
    padding: 10px 4px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    font-size: 12px;
}

.pinned-apps button:hover,
.recommendations button:hover,
.taskbar-button:hover,
.taskbar-search:hover,
.tray:hover,
.quick-grid button:hover {
    background: rgba(255, 255, 255, .16);
}

.recommendations {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.recommendations button {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    text-align: left;
    overflow: hidden;
}

.recommendations button > span {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(145deg, #59d7ff, #42e3a4);
    flex: 0 0 auto;
}

.recommendations strong,
.recommendations small {
    display: block;
    overflow: hidden;
    overflow-wrap: anywhere;
    line-height: 1.2;
}

.recommendations button > div {
    min-width: 0;
    flex: 1 1 auto;
}

.recommendations strong {
    font-size: 14px;
    hyphens: auto;
}

.recommendations small {
    color: var(--muted);
    margin-top: 2px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.start-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    margin-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 999px;
    background: transparent;
}

.user-chip span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff73b7, #59d7ff);
}

.power-button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    position: relative;
}

.power-button::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 2px solid #e2e8f0;
    border-top-color: transparent;
    border-radius: 50%;
}

.power-button::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 8px;
    width: 2px;
    height: 13px;
    background: #e2e8f0;
    transform: translateX(-50%);
}

.quick-settings {
    right: 12px;
    width: min(330px, calc(100vw - 24px));
    padding: 16px;
    border-radius: 8px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.quick-grid button {
    min-height: 64px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .09);
}

.quick-grid button.is-on {
    background: linear-gradient(145deg, rgba(89, 215, 255, .78), rgba(66, 227, 164, .62));
    color: #041019;
    font-weight: 700;
}

.slider-row {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    color: var(--muted);
}

.slider-row span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.slider-row input {
    width: 100%;
    accent-color: var(--accent);
}

.taskbar {
    position: fixed;
    left: 50%;
    bottom: 10px;
    z-index: 10010;
    width: fit-content;
    min-width: min(860px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
    height: 58px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    transform: translateX(-50%);
}

.desktop.is-compact .taskbar {
    min-width: min(640px, calc(100vw - 20px));
}

.desktop.is-compact .taskbar-search {
    display: none;
}

.screen-effects {
    position: fixed;
    inset: 0;
    z-index: 90;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.screen-effects::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #000;
    opacity: clamp(0, calc((1 - var(--brightness)) * .72), .6);
}

.screen-effects::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 154, 64, .34);
    opacity: var(--night-light);
}

.taskbar-button,
.taskbar-search,
.tray {
    height: 42px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
}

.taskbar-button.is-open,
.taskbar-search.is-open {
    background: rgba(255, 255, 255, .16);
    box-shadow: inset 0 0 0 1px rgba(89, 215, 255, .2);
}

.taskbar-button {
    width: 44px;
    display: grid;
    place-items: center;
    position: relative;
}

.start-button span {
    width: 20px;
    height: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
}

.start-button span::before,
.start-button span::after {
    content: "";
}

.start-button span,
.start-button span::before,
.start-button span::after {
    background:
        linear-gradient(#59d7ff, #59d7ff) left top / 8px 8px no-repeat,
        linear-gradient(#a78bfa, #a78bfa) right top / 8px 8px no-repeat,
        linear-gradient(#42e3a4, #42e3a4) left bottom / 8px 8px no-repeat,
        linear-gradient(#ff73b7, #ff73b7) right bottom / 8px 8px no-repeat;
}

.taskbar-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    color: #dce7f8;
    text-align: left;
}

.taskbar-apps {
    display: flex;
    flex: 0 1 auto;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    max-width: calc(100vw - 260px);
    overflow-x: auto;
    scrollbar-width: none;
}

.tray {
    margin-left: auto;
}

.taskbar-apps::-webkit-scrollbar {
    display: none;
}

.taskbar-button.is-running::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 18px;
    height: 3px;
    border-radius: 999px;
    background: var(--accent);
    transform: translateX(-50%);
}

.tray {
    display: grid;
    grid-template-rows: 1fr 1fr;
    align-items: center;
    min-width: 96px;
    padding: 5px 12px;
    color: #e2e8f0;
}

.tray strong,
.tray small {
    text-align: right;
    line-height: 1.05;
}

.tray small {
    color: var(--muted);
}

@media (max-width: 760px) {
    body {
        overflow: hidden;
    }

    .desktop-icons {
        top: 14px;
        left: 10px;
        width: 74px;
    }

    .widgets-panel {
        display: none;
    }

.window,
.window.is-maximized {
        left: 8px !important;
        top: 8px !important;
        width: calc(100vw - 16px) !important;
        height: calc(100vh - var(--taskbar-safe-area) - 8px) !important;
        min-width: 0;
    }

    .explorer-layout,
    .settings-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .browser-page h2 {
        font-size: 26px;
    }

    .browser-metrics,
    .widget-grid,
    .recommendations {
        grid-template-columns: 1fr;
    }

    .pinned-apps {
        grid-template-columns: repeat(3, 1fr);
    }

    .taskbar {
        grid-template-columns: auto 1fr auto auto;
    }

    .taskbar-search {
        display: none;
    }

    .tray {
        min-width: 96px;
    }
}

.desktop {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    isolation: isolate;
    filter: brightness(var(--brightness));
    opacity: 0;
    transform: scale(1.015);
    transition: opacity .8s ease, transform .8s ease, filter .2s ease;
}

.desktop.is-ready {
    opacity: 1;
    transform: scale(1);
}

.desktop.is-shutting-down {
    opacity: 0;
    transform: scale(.985);
    transition: opacity 1s ease, transform 1s ease, filter 1s ease;
    filter: brightness(.42) saturate(.72);
}

.wallpaper {
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(180deg, rgba(4, 9, 18, .15), rgba(5, 7, 12, .42)),
        var(--wallpaper-image, url("../img/roadrunner-garage.png")) center / cover no-repeat;
    transform: scale(1.02);
}

.wallpaper::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 18%, rgba(89, 215, 255, .22), transparent 26%),
        radial-gradient(circle at 85% 28%, rgba(255, 115, 183, .16), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 35%, rgba(0, 0, 0, .26));
    pointer-events: none;
}

.glass-panel,
.window {
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .05)), var(--glass);
    box-shadow: var(--shadow);
    backdrop-filter: blur(28px) saturate(1.45);
    -webkit-backdrop-filter: blur(28px) saturate(1.45);
}

.workspace {
    position: absolute;
    inset: 0 0 var(--taskbar-h) 0;
}

.desktop-icons {
    position: absolute;
    top: 28px;
    left: 22px;
    display: grid;
    gap: 12px;
    width: 92px;
    grid-auto-rows: 104px;
}

.desktop-shortcut {
    display: grid;
    justify-items: center;
    gap: 6px;
    min-height: 100px;
    padding: 8px 6px;
    border-radius: 8px;
    background: transparent;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .65);
}

.desktop-shortcut.is-positioned {
    position: fixed;
    width: 92px;
    z-index: 8;
}

.desktop-shortcut:hover,
.desktop-shortcut:focus-visible {
    background: rgba(255, 255, 255, .13);
    outline: 1px solid rgba(255, 255, 255, .18);
}

.desktop-shortcut span:last-child {
    width: 100%;
    overflow: visible;
    font-size: 12px;
    line-height: 1.18;
    text-align: center;
    overflow-wrap: anywhere;
    white-space: normal;
}

.shortcut-icon,
.mini-icon,
.file-icon {
    display: inline-grid;
    place-items: center;
    position: relative;
    flex: 0 0 auto;
}

.dynamic-app-anchor {
    display: none !important;
}

.shortcut-icon {
    width: 42px;
    height: 42px;
}

.mini-icon {
    width: 26px;
    height: 26px;
}

.file-icon {
    width: 44px;
    height: 40px;
}

.plugin-app-icon {
    border-radius: 10px;
    background: linear-gradient(145deg, var(--plugin-app-color, #59d7ff), rgba(255,255,255,.92));
    color: #07111f;
    font-weight: 800;
}

.folder-icon::before {
    content: "";
    width: 78%;
    height: 62%;
    margin-top: 8%;
    border-radius: 5px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--folder-color, #f8cf5d) 88%, #fff), color-mix(in srgb, var(--folder-color, #f8cf5d) 74%, #000));
    box-shadow: inset 0 1px rgba(255, 255, 255, .45), 0 8px 20px rgba(0, 0, 0, .22);
}

.folder-icon::after {
    content: "";
    position: absolute;
    top: 17%;
    left: 16%;
    width: 36%;
    height: 16%;
    border-radius: 4px 4px 0 0;
    background: color-mix(in srgb, var(--folder-color, #f8cf5d) 54%, #fff);
}

.folder-icon.cyan::before { background: linear-gradient(145deg, #67e8f9, #1686d9); }
.folder-icon.cyan::after { background: #baf5ff; }
.folder-icon.green::before { background: linear-gradient(145deg, #7cf4b3, #1eaa74); }
.folder-icon.green::after { background: #c8ffe1; }

.notepad-icon::before {
    content: "";
    width: 70%;
    height: 82%;
    border-radius: 5px;
    background:
        repeating-linear-gradient(180deg, transparent 0 8px, rgba(7, 17, 31, .18) 8px 10px),
        linear-gradient(145deg, #f8fafc, #b7d7ff);
    box-shadow: inset 6px 0 rgba(89, 215, 255, .45), inset 0 0 0 2px rgba(255, 255, 255, .35), 0 8px 18px rgba(0, 0, 0, .24);
}

.notepad-icon::after {
    content: "";
    position: absolute;
    top: 12%;
    left: 25%;
    width: 50%;
    height: 4px;
    border-radius: 999px;
    background: rgba(7, 17, 31, .32);
    box-shadow: 0 10px rgba(7, 17, 31, .24), 0 20px rgba(7, 17, 31, .18);
}

.browser-icon::before {
    content: "";
    width: 78%;
    height: 78%;
    border-radius: 50%;
    background: conic-gradient(from 220deg, #42e3a4, #59d7ff, #a78bfa, #42e3a4);
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .2);
}

.gear-icon::before {
    content: "";
    width: 88%;
    height: 88%;
    background: linear-gradient(145deg, #d8dee8, #7f8da2);
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M19.43 12.98c.04-.32.07-.65.07-.98s-.02-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.37-.31-.6-.22l-2.49 1a7.34 7.34 0 0 0-1.69-.98L14.5 2.42A.5.5 0 0 0 14 2h-4a.5.5 0 0 0-.5.42L9.12 5.07c-.61.24-1.18.56-1.69.98l-2.49-1a.5.5 0 0 0-.6.22l-2 3.46a.5.5 0 0 0 .12.64l2.11 1.65c-.05.32-.08.65-.08.98s.03.66.08.98l-2.11 1.65a.5.5 0 0 0-.12.64l2 3.46c.12.22.37.31.6.22l2.49-1c.51.4 1.08.73 1.69.98l.38 2.65c.04.24.25.42.5.42h4c.25 0 .46-.18.5-.42l.38-2.65c.61-.25 1.18-.58 1.69-.98l2.49 1c.23.09.48 0 .6-.22l2-3.46a.5.5 0 0 0-.12-.64l-2.11-1.65ZM12 15.5A3.5 3.5 0 1 1 12 8a3.5 3.5 0 0 1 0 7Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M19.43 12.98c.04-.32.07-.65.07-.98s-.02-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.37-.31-.6-.22l-2.49 1a7.34 7.34 0 0 0-1.69-.98L14.5 2.42A.5.5 0 0 0 14 2h-4a.5.5 0 0 0-.5.42L9.12 5.07c-.61.24-1.18.56-1.69.98l-2.49-1a.5.5 0 0 0-.6.22l-2 3.46a.5.5 0 0 0 .12.64l2.11 1.65c-.05.32-.08.65-.08.98s.03.66.08.98l-2.11 1.65a.5.5 0 0 0-.12.64l2 3.46c.12.22.37.31.6.22l2.49-1c.51.4 1.08.73 1.69.98l.38 2.65c.04.24.25.42.5.42h4c.25 0 .46-.18.5-.42l.38-2.65c.61-.25 1.18-.58 1.69-.98l2.49 1c.23.09.48 0 .6-.22l2-3.46a.5.5 0 0 0-.12-.64l-2.11-1.65ZM12 15.5A3.5 3.5 0 1 1 12 8a3.5 3.5 0 0 1 0 7Z'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .34));
}

.widget-icon::before,
.quick-icon::before,
.app-icon::before,
.cloud-icon::before,
.chip-icon::before {
    content: "";
    width: 74%;
    height: 74%;
    border-radius: 8px;
    background: linear-gradient(145deg, #59d7ff, #a78bfa);
}

.quick-icon::before { background: linear-gradient(145deg, #42e3a4, #59d7ff); }
.app-icon::before { background: linear-gradient(145deg, #ff73b7, #a78bfa); }
.cloud-icon::before { border-radius: 50% 50% 42% 42%; background: linear-gradient(145deg, #dbeafe, #59d7ff); }
.chip-icon::before { background: linear-gradient(145deg, #cbd5e1, #64748b); }
.users-icon::before { content: ""; width: 78%; height: 78%; border-radius: 50%; background: linear-gradient(145deg, #f0abfc, #38bdf8); box-shadow: -10px 8px 0 -5px rgba(240,171,252,.65), 10px 8px 0 -5px rgba(56,189,248,.65); }

.desktop-folder-window {
    border-color: color-mix(in srgb, var(--folder-color, #f8cf5d) 44%, rgba(255, 255, 255, .18));
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--folder-color, #f8cf5d) 22%, rgba(7, 17, 31, .9)),
            rgba(7, 17, 31, .94)
        );
}

.desktop-folder-window .window-titlebar {
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--folder-color, #f8cf5d) 36%, rgba(255, 255, 255, .08)),
            color-mix(in srgb, var(--folder-color, #f8cf5d) 14%, rgba(255, 255, 255, .06))
        );
}

.desktop-folder-body {
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fill, 92px);
    grid-auto-rows: 88px;
    align-content: start;
    gap: 12px;
    overflow: auto;
    background:
        radial-gradient(circle at 16% 10%, color-mix(in srgb, var(--folder-color, #f8cf5d) 22%, transparent), transparent 34%),
        color-mix(in srgb, var(--folder-color, #f8cf5d) 12%, rgba(7, 17, 31, .88));
}

.desktop-folder-body .desktop-shortcut {
    position: static;
    width: 92px;
}

.folder-empty {
    margin: 0;
    color: var(--muted);
}

.widgets-stack {
    position: absolute;
    right: 28px;
    top: 28px;
    width: min(360px, calc(100vw - 150px));
    display: grid;
    gap: 8px;
    align-content: start;
}

.widgets-panel {
    padding: 10px 12px;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    transform: translateY(0);
    transition: opacity .2s ease, transform .2s ease;
}

.users-widget {
    padding: 10px 12px;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: min(340px, calc(100vh - 220px));
    overflow: hidden;
    transform: translateY(0);
    transition: opacity .2s ease, transform .2s ease;
}

.plugin-widget-shell {
    padding: 10px 12px;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: min(340px, calc(100vh - 220px));
    overflow: hidden;
}

.plugin-widget-shell h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.06;
}

.widget-heading-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.widget-heading-row .widget-updated {
    margin-top: 0;
    white-space: nowrap;
    font-size: 10px;
    opacity: .82;
}

.window {
    position: absolute;
    left: min(var(--x), calc(100vw - 320px));
    top: min(var(--y), calc(100vh - 220px));
    width: min(var(--w), calc(100vw - 24px));
    height: min(var(--h), calc(100vh - var(--taskbar-h) - 24px));
    min-width: 320px;
    min-height: 220px;
    display: none;
    overflow: hidden;
    border-radius: 8px;
}

.window.is-open {
    display: grid;
    grid-template-rows: 44px 1fr;
}

.desktop.can-admin .window.admin-only.is-open,
.desktop.can-manager .window.admin-only.is-open {
    display: grid !important;
    grid-template-rows: 44px 1fr;
}

.window.is-active {
    display: grid;
    z-index: 20;
    box-shadow: 0 32px 90px rgba(0, 0, 0, .52), 0 0 0 1px rgba(89, 215, 255, .22);
}

.window.is-maximized {
    left: 0 !important;
    top: 0 !important;
    width: calc(100vw * var(--inverse-system-zoom, 1)) !important;
    height: calc((100vh - var(--taskbar-safe-area)) * var(--inverse-system-zoom, 1)) !important;
    border-radius: 0;
}

.window-resize-handle {
    position: absolute;
    z-index: 2;
    padding: 0;
    border: 0;
    background: transparent;
    opacity: 0;
}

.window-resize-handle.is-n,
.window-resize-handle.is-s {
    left: 14px;
    right: 14px;
    height: 8px;
    cursor: ns-resize;
}

.window-resize-handle.is-n {
    top: 0;
}

.window-resize-handle.is-s {
    bottom: 0;
}

.window-resize-handle.is-e,
.window-resize-handle.is-w {
    top: 14px;
    bottom: 14px;
    width: 8px;
    cursor: ew-resize;
}

.window-resize-handle.is-e {
    right: 0;
}

.window-resize-handle.is-w {
    left: 0;
}

.window-resize-handle.is-ne,
.window-resize-handle.is-nw,
.window-resize-handle.is-se,
.window-resize-handle.is-sw {
    width: 14px;
    height: 14px;
}

.window-resize-handle.is-ne {
    top: 0;
    right: 0;
    cursor: nesw-resize;
}

.window-resize-handle.is-nw {
    top: 0;
    left: 0;
    cursor: nwse-resize;
}

.window-resize-handle.is-se {
    right: 0;
    bottom: 0;
    cursor: nwse-resize;
}

.window-resize-handle.is-sw {
    left: 0;
    bottom: 0;
    cursor: nesw-resize;
}

.window.is-maximized .window-resize-handle {
    display: none;
}

.window-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 14px;
    background: rgba(255, 255, 255, .08);
    user-select: none;
}

.window-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: 13px;
    font-weight: 650;
}

.app-dot {
    width: 14px;
    height: 14px;
    border-radius: 5px;
}

.app-blue { background: #59d7ff; }
.app-cyan { background: #42e3a4; }
.app-green { background: #22c55e; }
.app-slate { background: #cbd5e1; }

.window-actions {
    display: flex;
    height: 100%;
}

.window-actions button {
    width: 46px;
    height: 100%;
    background: transparent;
    position: relative;
}

.window-actions button:hover {
    background: rgba(255, 255, 255, .13);
}

.window-actions button:last-child:hover {
    background: #d83b3b;
}

.window-actions button::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 12px;
    height: 1.5px;
    background: currentColor;
    opacity: .9;
}

.window-actions button:nth-child(2)::before {
    height: 10px;
    border: 1.5px solid currentColor;
    background: transparent;
}

.window-actions button:last-child::before,
.window-actions button:last-child::after {
    width: 14px;
    height: 1.6px;
    transform: rotate(45deg);
}

.window-actions button:last-child::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    background: currentColor;
    transform: rotate(-45deg);
}

.window-body {
    min-height: 0;
    overflow: auto;
    color: #eef6ff;
}

.explorer-layout,
.settings-layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    overflow: hidden;
}

.sidebar {
    min-height: 0;
    overflow: auto;
    padding: 12px;
    border-right: 1px solid rgba(255, 255, 255, .12);
    background: rgba(3, 7, 18, .18);
}

.sidebar button {
    width: 100%;
    padding: 10px 12px;
    border-radius: 7px;
    background: transparent;
    color: #dbeafe;
    text-align: left;
}

.sidebar button:hover,
.sidebar button.is-selected {
    background: rgba(255, 255, 255, .13);
}

.content-pane {
    min-width: 0;
    min-height: 0;
    overflow: auto;
    padding: 14px;
}

.commandbar {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.commandbar button,
.start-section-title button {
    padding: 7px 12px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .12);
    color: #e8f3ff;
}

.addressbar,
.browserbar div {
    min-width: 0;
    margin-bottom: 14px;
    padding: 10px 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 12px;
}

.note-grid:empty::before {
    content: "Keine Notizen vorhanden";
    color: var(--muted);
    padding: 18px;
}

.note-card small {
    display: block;
}

.note-card {
    position: relative;
}

.note-card-main {
    width: 100%;
    min-height: 100%;
    padding: 0;
    background: transparent;
    text-align: inherit;
}

.note-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.note-card-actions button {
    padding: 5px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .12);
    font-size: 12px;
}

.note-editor {
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    gap: 10px;
    padding: 14px;
}

.note-editor input,
.note-editor textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    color: var(--text);
    padding: 10px 12px;
}

.note-editor textarea {
    min-height: 220px;
    resize: none;
}

.note-editor-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.note-editor-actions button,
.user-row button {
    min-height: 34px;
    border-radius: 8px;
    background: rgba(89, 215, 255, .22);
    color: var(--text);
    padding: 0 12px;
}

.user-admin-body {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 12px;
    padding: 14px;
}

.user-tabs,
.session-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.user-tabs button {
    padding: 9px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
}

.user-tabs button.is-selected {
    background: rgba(89, 215, 255, .25);
}

.user-pane {
    display: none;
    min-height: 0;
    overflow: auto;
}

.user-pane.is-visible {
    display: grid;
    gap: 12px;
}

.user-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    align-content: start;
    gap: 8px;
}

.user-detail-form,
.profile-form,
.config-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    align-content: start;
    gap: 10px;
    padding: 18px;
}

.profile-form,
.config-form {
    padding: 18px;
}

.user-detail-form textarea,
.profile-form textarea {
    min-height: 120px;
    resize: vertical;
}

.user-detail-form textarea,
.profile-form textarea,
.user-detail-form input,
.user-detail-form select,
.profile-form input,
.user-form input,
.user-form select,
.config-form input,
.config-form select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    color: var(--text);
    padding: 10px 12px;
}

.user-detail-form input[readonly],
.profile-form input[readonly] {
    color: var(--muted);
    background: rgba(255, 255, 255, .055);
    cursor: default;
}

.user-form input,
.user-form select,
.user-detail-form input,
.user-detail-form select,
.profile-form input,
.config-form input,
.config-form select {
    height: 42px;
}

.user-form label,
.user-detail-form label,
.profile-form label,
.config-form label {
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 0;
    color: var(--muted);
    font-size: 12px;
}

.user-detail-form textarea,
.profile-form textarea,
.config-form header,
.config-form button,
.user-detail-form .note-editor-actions,
.form-wide {
    grid-column: 1 / -1;
}

.config-form {
    padding: 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
}

.config-form header {
    display: grid;
    gap: 4px;
}

.config-form header small,
.config-form label {
    color: var(--muted);
}

.config-form button {
    min-height: 38px;
    border-radius: 8px;
    background: rgba(89, 215, 255, .22);
    color: var(--text);
}

.note-editor-actions button:disabled,
.config-form button:disabled {
    background: rgba(148, 163, 184, .22);
    color: rgba(226, 232, 240, .58);
    cursor: not-allowed;
}

.user-form button {
    align-self: end;
    height: 42px;
    border-radius: 8px;
    background: rgba(89, 215, 255, .22);
    color: var(--text);
}

.secondary-action {
    min-height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
    color: var(--text);
}

.password-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 8px;
    background: rgba(255, 255, 255, .055);
}

.password-section[hidden] {
    display: none;
}

.config-check {
    grid-column: 1 / -1;
    display: flex !important;
    grid-auto-flow: column;
    align-items: center;
    justify-content: start;
    gap: 10px;
}

.config-check input[type="checkbox"] {
    width: 20px;
    min-width: 20px;
    height: 20px;
    min-height: 20px;
    padding: 0;
    flex: 0 0 auto;
}

.user-table {
    display: grid;
    gap: 8px;
    align-content: start;
}

.group-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
}

.group-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    align-content: start;
    gap: 10px;
    padding: 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
}

.group-form input,
.group-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    color: var(--text);
    padding: 10px 12px;
}

.group-form input {
    height: 40px;
}

.group-form textarea {
    min-height: 96px;
    resize: vertical;
}

.group-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
}

.group-card {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
}

.group-card header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: start;
}

.group-card strong,
.group-card small {
    display: block;
}

.group-card small,
.group-card p {
    color: var(--muted);
}

.group-card p {
    margin: 0;
}

.group-card header > span,
.group-members span {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(89, 215, 255, .13);
    color: var(--text);
    font-size: 12px;
}

.group-members {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.group-card-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 6px;
}

.group-card-actions button {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: var(--text);
}

.group-card-actions button:hover {
    background: rgba(255, 255, 255, .16);
}

.session-toolbar {
    align-items: center;
}

.session-toolbar select,
.session-toolbar input,
.session-toolbar button {
    min-height: 36px;
    height: 36px;
    padding: 0 10px;
}

.session-toolbar input[type="month"] {
    min-width: 154px;
}

.session-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    width: min(100%, 780px);
    align-self: start;
    padding: 14px;
    border-radius: 8px;
    background: rgba(89, 215, 255, .12);
}

.session-summary strong {
    font-size: 24px;
}

.session-summary span {
    color: var(--muted);
}

.user-row,
.session-row,
.notification-item {
    display: grid;
    gap: 4px;
    align-content: start;
    min-height: 86px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
}

.user-row {
    cursor: pointer;
}

.user-row:focus-visible,
.user-row:hover {
    outline: 1px solid rgba(89, 215, 255, .55);
    background: rgba(255, 255, 255, .12);
}

.user-row strong,
.session-row strong {
    font-size: 15px;
}

.time-clock-row {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 0;
}

.time-clock-row div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.time-clock-row span,
.time-clock-row small {
    color: var(--muted);
}

.notification-center {
    position: fixed;
    right: 356px;
    bottom: 82px;
    z-index: 10020;
    width: min(390px, calc(100vw - 24px));
    max-height: min(520px, calc(100vh - 110px));
    display: none;
    overflow: auto;
    padding: 14px;
    border-radius: 8px;
}

.notification-center.is-open {
    display: grid;
    gap: 10px;
}

.notification-item {
    grid-template-columns: 1fr auto;
}

.notification-item p {
    margin: 0;
    color: var(--muted);
}

.notification-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}

.notification-badge {
    position: absolute;
    right: -3px;
    top: -4px;
    z-index: 2;
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ff3b7a;
    color: #fff;
    font-size: 11px;
}

.notification-badge[hidden] {
    display: none;
}

.context-menu {
    position: fixed;
    z-index: 220;
    display: none;
    min-width: 190px;
    padding: 6px;
    border-radius: 8px;
}

.context-menu.is-open {
    display: grid;
}

.context-menu button {
    padding: 9px 10px;
    border-radius: 7px;
    background: transparent;
    text-align: left;
}

.context-menu button:hover {
    background: rgba(255, 255, 255, .12);
}

.desktop-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: rgba(2, 6, 18, .42);
    backdrop-filter: blur(6px);
}

.desktop-dialog-card {
    width: min(420px, calc(100vw - 32px));
    padding: 18px;
    border-radius: 8px;
    display: grid;
    gap: 14px;
}

.desktop-dialog-card h3,
.desktop-dialog-card p {
    margin: 0;
}

.desktop-dialog-card label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.desktop-dialog-card input {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    background: rgba(0, 0, 0, .26);
    color: var(--text);
    padding: 0 12px;
}

.desktop-dialog-card input[type="color"] {
    padding: 4px;
}

.desktop-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.desktop-dialog-actions button {
    min-height: 40px;
    border-radius: 8px;
    padding: 0 16px;
    background: linear-gradient(135deg, rgba(89, 215, 255, .85), rgba(66, 227, 164, .7));
    color: #07111f;
    font-weight: 800;
}

.permission-dialog {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 180;
    width: min(520px, calc(100vw - 32px));
    max-height: min(620px, calc(100vh - 48px));
    overflow: auto;
    padding: 14px;
    border-radius: 8px;
}

.permission-dialog[hidden] {
    display: none;
}

.permission-dialog header,
.permission-tabs,
.permission-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.permission-dialog header {
    justify-content: space-between;
    margin-bottom: 10px;
}

.permission-dialog header button,
.permission-tabs button {
    min-height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
    color: var(--text);
    padding: 0 12px;
}

.permission-tabs button.is-selected {
    background: rgba(89, 215, 255, .24);
}

.permission-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.permission-row {
    justify-content: space-between;
    min-height: 46px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .07);
}

.permission-row strong {
    flex: 1;
    min-width: 130px;
}

.permission-row span {
    white-space: nowrap;
    color: var(--muted);
}

.file-grid button {
    display: grid;
    justify-items: start;
    gap: 8px;
    min-height: 118px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .09);
    text-align: left;
}

.file-grid button:hover,
.settings-list button:hover {
    background: rgba(255, 255, 255, .15);
}

.file-grid .note-card {
    min-height: 118px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .09);
}

.file-grid .note-card-main {
    min-height: 0;
    padding: 0;
    background: transparent;
}

.file-grid .note-card-actions button {
    display: inline-flex;
    min-height: 0;
    padding: 5px 8px;
}

.file-grid small,
.settings-list span,
.settings-hero p {
    color: var(--muted);
}

.settings-hero {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    margin-bottom: 14px;
    border-radius: 8px;
    background: linear-gradient(120deg, rgba(89, 215, 255, .16), rgba(167, 139, 250, .12));
}

.device-plate {
    width: 82px;
    height: 58px;
    border-radius: 8px;
    background: linear-gradient(145deg, #dbeafe, #64748b);
    box-shadow: inset 0 -10px 18px rgba(15, 23, 42, .25);
}

.settings-pane {
    display: none;
}

.settings-pane.is-visible {
    display: grid;
    gap: 10px;
}

.setting-control,
.setting-toggle,
.settings-list button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    text-align: left;
}

.hub-status-error,
.hub-status-ok {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.hub-status-error {
    color: #ffd5d5 !important;
    border-color: rgba(255, 107, 107, .58);
    background: rgba(92, 20, 28, .48);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, .12);
}

.hub-status-ok {
    color: #d6fff2 !important;
    border-color: rgba(141, 255, 217, .35);
    background: rgba(20, 68, 61, .34);
}

.settings-permission-matrix {
    display: grid;
    grid-template-columns: minmax(170px, 1.25fr) repeat(var(--permission-cols), minmax(104px, 1fr));
    gap: 6px;
    min-width: max-content;
    overflow: auto;
    padding: 4px;
}

.settings-permission-head,
.settings-permission-app,
.settings-permission-cell {
    min-height: 44px;
    display: grid;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
}

.settings-permission-head {
    font-weight: 800;
    color: var(--text);
}

.settings-permission-app {
    font-weight: 700;
}

.settings-permission-cell {
    justify-items: center;
}

.settings-permission-cell.is-dirty {
    outline: 1px solid rgba(255, 224, 102, .65);
    background: rgba(255, 224, 102, .12);
}

.settings-permission-cell input {
    width: 24px;
    height: 24px;
}

.settings-permission-actions {
    position: sticky;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 4px 2px;
}

.settings-permission-actions span {
    margin-right: auto;
    color: var(--muted);
    font-size: 13px;
}

.settings-permission-actions button {
    padding: 10px 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, #8df7c4, #fff37a);
    color: #07111f;
    font-weight: 800;
}

.settings-permission-actions button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.setting-control {
    display: grid;
}

.profile-form button {
    grid-column: 1 / -1;
    min-height: 40px;
    border-radius: 8px;
    background: rgba(89, 215, 255, .22);
    color: var(--text);
}

.profile-form small {
    grid-column: 1 / -1;
    color: var(--muted);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 104px;
    z-index: 240;
    width: fit-content;
    max-width: min(520px, calc(100vw - 32px));
    transform: translateX(-50%);
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(24, 33, 49, .92);
    box-shadow: var(--shadow);
    color: var(--text);
    backdrop-filter: blur(18px);
}

.toast[hidden] {
    display: none;
}

@media (max-width: 760px) {
    .notification-center {
        right: 12px;
        bottom: 260px;
    }
}

.setting-control span,
.setting-toggle span {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.setting-control small,
.setting-toggle small {
    color: var(--muted);
}

.setting-control input[type="range"] {
    width: 100%;
    accent-color: var(--accent);
}

.setting-toggle input {
    width: 46px;
    height: 26px;
    accent-color: var(--accent);
}

.accent-grid {
    display: grid;
    grid-template-columns: repeat(4, 52px);
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
}

.accent-grid button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--swatch);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .28);
}

.accent-grid button.is-selected {
    outline: 3px solid color-mix(in srgb, var(--swatch), white 36%);
    outline-offset: 3px;
}

.wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.wallpaper-grid button {
    display: grid;
    grid-template-rows: auto 1fr;
    align-content: start;
    gap: 10px;
    padding: 10px;
    min-width: 0;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .08);
    color: rgba(244, 247, 255, .92);
    text-align: left;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.wallpaper-grid button:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, .24);
}

.wallpaper-grid button.is-selected {
    border-color: color-mix(in srgb, var(--accent) 72%, white 28%);
    background: rgba(255, 255, 255, .14);
    box-shadow: 0 14px 28px rgba(4, 12, 26, .24);
}

.wallpaper-preview {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.wallpaper-grid strong {
    display: block;
    min-width: 0;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.test-sound {
    justify-self: start;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(89, 215, 255, .18);
}

.browser-body {
    display: grid;
    grid-template-rows: auto 1fr;
    padding: 12px;
    background: rgba(248, 250, 252, .08);
}

.browserbar {
    display: grid;
    grid-template-columns: 34px 34px minmax(120px, 1fr) auto auto;
    gap: 8px;
    margin-bottom: 10px;
}

.browserbar-fixed {
    grid-template-columns: 40px 1fr;
    align-items: center;
}

.browserbar-fixed span {
    color: var(--text-muted);
    font-weight: 700;
}

.browserbar button,
.browserbar input {
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    color: var(--text);
}

.browserbar input {
    min-width: 0;
    padding: 0 12px;
    outline: none;
}

.browserbar input:focus {
    border-color: var(--accent);
}

.browserbar button:nth-child(1)::before {
    content: "<";
}

.browserbar-fixed button:nth-child(1)::before {
    content: "↻";
}

.browserbar button:nth-child(2)::before {
    content: "↻";
}

.browser-frame {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: 8px;
    background: #fff;
}

.browser-page {
    display: grid;
    align-content: center;
    gap: 18px;
    padding: 28px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(89, 215, 255, .19), rgba(255, 115, 183, .12)),
        rgba(2, 6, 23, .35);
}

.browser-page h2 {
    max-width: 620px;
    font-size: 34px;
    line-height: 1.08;
}

.browser-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.widgets-panel.is-hidden,
.users-widget.is-hidden,
.plugin-widget-shell.is-hidden {
    display: none;
}

.widgets-stack.is-empty {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-18px);
}

.eyebrow {
    margin: 0;
    color: #99f6e4;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.widgets-panel h1,
.browser-page h2,
.settings-hero h2 {
    margin: 0;
    letter-spacing: 0;
}

.widget-updated {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.weather-orb {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #fff7b7, #f7b731 42%, #f59e0b 70%);
    box-shadow: 0 0 38px rgba(250, 204, 21, .45);
}

.weather-orb span {
    display: block;
    width: 54px;
    height: 24px;
    margin: 36px 0 0 -8px;
    border-radius: 999px;
    background: rgba(241, 245, 249, .82);
}

.widget-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 8px;
}

.widget-grid article,
.browser-metrics article {
    min-width: 0;
    padding: 9px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
}

.widget-grid strong,
.browser-metrics strong {
    display: block;
    font-size: 20px;
}

.widget-grid span,
.browser-metrics span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.25;
}

.active-user-list {
    display: grid;
    gap: 8px;
    min-height: 0;
    overflow: auto;
    padding-right: 2px;
}

.widget-settings-list,
.widget-order-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.widget-setting-row {
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}

.widget-order-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}

.widget-order-row small {
    color: var(--muted);
}

.widget-order-actions {
    display: flex;
    gap: 8px;
}

.widget-order-actions button {
    min-width: 40px;
    min-height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
}

.active-user-list p {
    margin: 0;
    color: var(--muted);
}

.active-user-card {
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 9px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .09);
    text-align: left;
}

.active-user-card:hover {
    background: rgba(255, 255, 255, .15);
}

.active-user-avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #59d7ff, #42e3a4);
    color: #06111f;
    font-size: 13px;
    font-weight: 800;
}

.active-user-card span:last-child {
    min-width: 0;
}

.active-user-card strong,
.active-user-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.active-user-card small {
    color: var(--muted);
    font-size: 12px;
}
