:root {
    color-scheme: dark;

    --bg: #080b16;
    --bg-deep: #050711;
    --panel: rgba(14, 18, 34, .88);
    --panel-strong: rgba(17, 22, 41, .97);
    --panel-hover: rgba(23, 29, 52, .96);
    --line: rgba(157, 169, 220, .12);
    --line-strong: rgba(157, 169, 220, .22);

    --text: #eef0ff;
    --muted: #8e96b5;
    --muted-strong: #b2bad7;

    --accent: #9b8cff;
    --accent-rgb: 155, 140, 255;
    --accent-secondary: #6ee7ff;
    --green: #65e8bb;
    --orange: #ffbd79;
    --red: #ff728a;
    --blue: #72b8ff;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;

    --shadow:
        0 20px 60px rgba(0, 0, 0, .24),
        0 1px 0 rgba(255, 255, 255, .025) inset;

    --topbar-height: 74px;
    --dock-height: 78px;

    --font: "Inter", sans-serif;
    --display: "Space Grotesk", sans-serif;
    --mono: "DM Mono", monospace;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    background: var(--bg-deep);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 13px;
    -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

button {
    -webkit-tap-highlight-color: transparent;
}

button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

button:not(:disabled) {
    cursor: pointer;
}

button svg,
i[data-lucide] {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

input,
textarea,
select {
    color: var(--text);
}

input::placeholder,
textarea::placeholder {
    color: #707995;
}

::selection {
    color: #fff;
    background: rgba(var(--accent-rgb), .38);
}

.hidden {
    display: none !important;
}

.os-shell {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: 100dvh;
    min-height: 540px;
    overflow: hidden;
    background: var(--bg);
}

.wallpaper {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 10%, rgba(52, 46, 104, .16), transparent 40%),
        linear-gradient(145deg, #0a0d1b, #080a14 50%, #0b0b19);
    transition: filter .3s ease;
}

.wallpaper-grid {
    position: absolute;
    inset: 0;
    opacity: .24;
    background-image:
        linear-gradient(rgba(153, 153, 223, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(153, 153, 223, .07) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 75%, transparent);
}

.wallpaper-noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .045;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.wallpaper-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    opacity: .13;
    transition: opacity .3s ease;
}

.glow-one {
    top: -380px;
    left: 10%;
    background: var(--accent);
}

.glow-two {
    right: -350px;
    top: 20%;
    background: #4c83ff;
    opacity: .09;
}

.glow-three {
    bottom: -500px;
    left: 35%;
    background: #ba74ff;
    opacity: .08;
}

.orbital-system {
    position: absolute;
    width: 900px;
    height: 900px;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: .15;
    pointer-events: none;
}

.orbit {
    position: absolute;
    inset: 15%;
    border: 1px solid rgba(var(--accent-rgb), .42);
    border-radius: 50%;
}

.orbit-a {
    transform: rotateX(65deg) rotate(22deg);
}

.orbit-b {
    inset: 5%;
    transform: rotateX(70deg) rotate(-38deg);
}

.orbit-c {
    inset: 25%;
    transform: rotateY(65deg) rotate(20deg);
}

.orbit-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 25px 9px rgba(var(--accent-rgb), .32);
}

.orbit-node {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-secondary);
    box-shadow: 0 0 15px var(--accent-secondary);
}

.node-a {
    top: 17%;
    left: 35%;
}

.node-b {
    right: 19%;
    top: 48%;
}

.node-c {
    left: 28%;
    bottom: 21%;
}

.topbar {
    position: relative;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--topbar-height);
    padding: 0 30px;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 9, 19, .76);
    backdrop-filter: blur(24px);
}

.brand-button,
.profile-button,
.icon-button,
.text-button,
.secondary-button,
.primary-button,
.subtle-button,
.dock-app,
.dock-status-button,
.dock-clock-button,
.dock-launcher-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--text);
}

.brand-button {
    gap: 12px;
    padding: 0;
    text-align: left;
}

.brand-symbol {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(var(--accent-rgb), .5);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(var(--accent-rgb), .17), rgba(255, 255, 255, .02));
    box-shadow: 0 0 30px rgba(var(--accent-rgb), .08);
}

.brand-symbol-core {
    width: 12px;
    height: 12px;
    border: 2px solid var(--accent-secondary);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(110, 231, 255, .45);
}

.brand-symbol-ring {
    position: absolute;
    width: 24px;
    height: 10px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    transform: rotate(-32deg);
}

.brand-copy {
    display: grid;
    gap: 3px;
}

.brand-copy strong {
    font-family: var(--display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .13em;
}

.brand-copy strong span {
    margin-left: 4px;
    color: var(--accent);
}

.brand-copy small {
    color: #707995;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .13em;
}

.topbar-center {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #8b94b1;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .04em;
}

.system-indicator,
.live-badge span,
.status-pill span,
.live-badge span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px rgba(101, 232, 187, .55);
}

.topbar-divider {
    width: 1px;
    height: 14px;
    margin: 0 5px;
    background: var(--line-strong);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.icon-button {
    position: relative;
    width: 38px;
    height: 38px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #aab1ce;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.icon-button:hover {
    border-color: var(--line);
    background: rgba(255, 255, 255, .05);
    color: var(--text);
}

.icon-button svg {
    width: 17px;
    height: 17px;
}

.small-button {
    width: 31px;
    height: 31px;
    border-radius: 9px;
}

.notification-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-secondary);
}

.profile-button {
    gap: 10px;
    padding: 5px 0 5px 8px;
    text-align: left;
}

.profile-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(var(--accent-rgb), .55);
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(var(--accent-rgb), .25), rgba(110, 231, 255, .08));
    color: #e8e3ff;
    font-family: var(--display);
    font-size: 16px;
    font-weight: 700;
}

.profile-copy {
    display: grid;
    gap: 4px;
}

.profile-copy strong {
    font-size: 11px;
    font-weight: 600;
}

.profile-copy small {
    color: #7882a1;
    font-family: var(--mono);
    font-size: 8px;
}

.profile-button > svg {
    width: 13px;
    color: #7982a1;
}

.desktop {
    position: relative;
    height: calc(100dvh - var(--topbar-height) - var(--dock-height));
    min-height: 400px;
    padding: 22px 30px 34px;
    overflow: auto;
    scrollbar-color: rgba(var(--accent-rgb), .45) transparent;
    scrollbar-width: thin;
}

.desktop::-webkit-scrollbar {
    width: 6px;
}

.desktop::-webkit-scrollbar-thumb {
    border-radius: 20px;
    background: rgba(var(--accent-rgb), .4);
}

.desktop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 26px;
    margin-bottom: 18px;
}

.desktop-breadcrumb,
.desktop-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.desktop-breadcrumb {
    color: #aab1ce;
    font-size: 11px;
}

.desktop-breadcrumb svg {
    width: 13px;
    height: 13px;
    color: #626c8d;
}

.breadcrumb-muted {
    color: #68718f;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .06em;
}

.desktop-breadcrumb strong {
    color: #dfe3fb;
    font-weight: 600;
}

.live-clock {
    color: #828baa;
    font-family: var(--mono);
    font-size: 10px;
}

.subtle-button {
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 255, 255, .025);
    color: #aeb5d2;
    font-size: 10px;
    transition: .2s ease;
}

.subtle-button:hover {
    border-color: rgba(var(--accent-rgb), .35);
    background: rgba(var(--accent-rgb), .07);
}

.subtle-button svg {
    width: 14px;
    height: 14px;
}

.welcome-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
    align-items: center;
    min-height: 278px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(var(--accent-rgb), .18);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(105deg, rgba(20, 23, 44, .94), rgba(13, 17, 33, .88) 58%, rgba(23, 20, 48, .84));
    box-shadow: var(--shadow);
}

.welcome-panel::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(var(--accent-rgb), .045), transparent 50%),
        radial-gradient(ellipse at 75% 50%, rgba(var(--accent-rgb), .08), transparent 55%);
}

.welcome-panel::after {
    position: absolute;
    top: 0;
    left: 7%;
    width: 86%;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), .55), transparent);
}

.welcome-copy {
    position: relative;
    z-index: 2;
    max-width: 540px;
    padding: 31px 0 31px 36px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #a5a4d6;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .12em;
}

.eyebrow-line {
    width: 20px;
    height: 1px;
    background: var(--accent);
}

.welcome-copy h1 {
    margin: 18px 0 13px;
    font-family: var(--display);
    font-size: clamp(30px, 3.2vw, 43px);
    font-weight: 600;
    letter-spacing: -.055em;
    line-height: 1.03;
}

.welcome-copy h1 span {
    color: var(--accent);
    text-shadow: 0 0 28px rgba(var(--accent-rgb), .2);
}

.welcome-copy p {
    max-width: 410px;
    margin: 0;
    color: #9ba3c0;
    font-size: 11px;
    line-height: 1.8;
}

.welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.primary-button,
.secondary-button,
.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 39px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.primary-button {
    background: linear-gradient(115deg, var(--accent), #8175e6);
    box-shadow: 0 6px 20px rgba(var(--accent-rgb), .18);
    color: #0b0b18;
}

.primary-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.primary-button svg {
    width: 15px;
    height: 15px;
}

.secondary-button {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, .025);
    color: #d4d8ef;
}

.secondary-button:hover {
    border-color: rgba(var(--accent-rgb), .42);
    background: rgba(var(--accent-rgb), .08);
}

.danger-button {
    background: rgba(255, 114, 138, .14);
    border-color: rgba(255, 114, 138, .28);
    color: #ff9aac;
}

.welcome-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 22px;
}

.welcome-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #7f89a8;
    font-size: 9px;
}

.welcome-meta svg {
    width: 12px;
    height: 12px;
    color: #a1a5d9;
}

.welcome-visual {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 278px;
    place-items: center;
    overflow: hidden;
    perspective: 600px;
}

.visual-orbit {
    position: absolute;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(var(--accent-rgb), .28);
    border-radius: 50%;
}

.visual-orbit-one {
    transform: rotateX(65deg) rotate(-20deg);
}

.visual-orbit-two {
    width: 190px;
    height: 190px;
    transform: rotateX(68deg) rotate(40deg);
    border-color: rgba(110, 231, 255, .3);
}

.visual-orbit-three {
    width: 145px;
    height: 145px;
    border-color: rgba(var(--accent-rgb), .2);
}

.visual-center {
    position: relative;
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border: 1px solid rgba(var(--accent-rgb), .52);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), .2), rgba(10, 13, 27, .92) 68%);
    box-shadow: 0 0 45px rgba(var(--accent-rgb), .13), 0 0 90px rgba(var(--accent-rgb), .06);
}

.visual-center-letter {
    font-family: var(--display);
    font-size: 42px;
    font-weight: 700;
    color: #e1dcff;
    text-shadow: 0 0 28px rgba(var(--accent-rgb), .55);
}

.visual-center-caption {
    position: absolute;
    bottom: -23px;
    color: #8f8abf;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .15em;
    white-space: nowrap;
}

.visual-center-glow {
    position: absolute;
    inset: -14px;
    border: 1px solid rgba(110, 231, 255, .16);
    border-radius: 50%;
    animation: pulseRing 4s ease-in-out infinite;
}

.visual-satellite {
    position: absolute;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(var(--accent-rgb), .35);
    border-radius: 11px;
    background: rgba(16, 20, 38, .9);
    color: var(--accent-secondary);
    box-shadow: 0 7px 20px rgba(0, 0, 0, .2);
}

.visual-satellite svg {
    width: 15px;
    height: 15px;
}

.satellite-one {
    top: 35%;
    left: 24%;
}

.satellite-two {
    top: 27%;
    right: 25%;
}

.satellite-three {
    right: 23%;
    bottom: 27%;
}

.satellite-four {
    left: 26%;
    bottom: 25%;
}

.visual-coordinate {
    position: absolute;
    color: #686f96;
    font-family: var(--mono);
    font-size: 7px;
    letter-spacing: .1em;
}

.coordinate-one {
    top: 18%;
    left: 12%;
}

.coordinate-two {
    right: 8%;
    top: 46%;
}

.coordinate-three {
    right: 13%;
    bottom: 13%;
}

.desktop-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.panel {
    position: relative;
    min-width: 0;
    padding: 19px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
    backdrop-filter: blur(20px);
    transition: border-color .2s ease, background .2s ease;
}

.panel:hover {
    border-color: rgba(var(--accent-rgb), .2);
}

.panel-heading,
.floating-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 17px;
}

.panel-kicker {
    display: block;
    margin-bottom: 7px;
    color: #777fa1;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .12em;
}

.panel-heading h2,
.floating-panel-heading h2 {
    margin: 0;
    font-family: var(--display);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.025em;
}

.text-button {
    gap: 6px;
    padding: 6px 0;
    color: #a99aff;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}

.text-button:hover {
    color: #d5ceff;
}

.text-button svg {
    width: 13px;
    height: 13px;
}

.system-overview {
    grid-column: span 1;
}

.system-status-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(var(--accent-rgb), .14);
    border-radius: 13px;
    background: linear-gradient(110deg, rgba(var(--accent-rgb), .075), rgba(255, 255, 255, .015));
}

.status-visual {
    position: relative;
    display: grid;
    width: 47px;
    height: 47px;
    flex-shrink: 0;
    place-items: center;
}

.status-ring {
    position: absolute;
    border: 1px solid rgba(var(--accent-rgb), .35);
    border-radius: 50%;
}

.status-ring-outer {
    inset: 0;
    border-top-color: var(--accent);
    transform: rotate(-35deg);
}

.status-ring-inner {
    inset: 7px;
    border-color: rgba(110, 231, 255, .4);
    transform: rotate(30deg);
}

.status-ring-center {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), .14);
    color: var(--accent-secondary);
}

.status-ring-center svg {
    width: 13px;
    height: 13px;
}

.status-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
    flex: 1;
}

.status-label {
    color: #7f88a8;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .09em;
}

.status-copy strong {
    font-family: var(--display);
    font-size: 14px;
    font-weight: 600;
}

.status-copy small {
    max-width: 210px;
    color: #838cab;
    font-size: 9px;
    line-height: 1.5;
}

.status-pill,
.resource-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border: 1px solid rgba(101, 232, 187, .18);
    border-radius: 7px;
    background: rgba(101, 232, 187, .05);
    color: #83e9c4;
    font-family: var(--mono);
    font-size: 8px;
    white-space: nowrap;
}

.status-pill span {
    width: 5px;
    height: 5px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    margin-top: 13px;
}

.metric-card {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 11px 8px;
    border: 1px solid rgba(157, 169, 220, .08);
    border-radius: 11px;
    background: rgba(255, 255, 255, .018);
}

.metric-icon {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 8px;
}

.metric-icon svg {
    width: 13px;
    height: 13px;
}

.metric-icon.violet {
    color: #c0b2ff;
    background: rgba(155, 140, 255, .13);
}

.metric-icon.blue {
    color: #7ac7ff;
    background: rgba(114, 184, 255, .13);
}

.metric-icon.orange {
    color: #ffbd79;
    background: rgba(255, 189, 121, .12);
}

.metric-icon.green {
    color: #75e8c0;
    background: rgba(101, 232, 187, .12);
}

.metric-value {
    margin-top: 2px;
    font-family: var(--display);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.04em;
}

.metric-label {
    overflow: hidden;
    color: #8189a7;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-access-panel {
    grid-column: span 2;
}

.quick-app-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.quick-app {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    min-width: 0;
    gap: 6px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: rgba(255, 255, 255, .018);
    text-align: left;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.quick-app:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--accent-rgb), .23);
    background: rgba(var(--accent-rgb), .05);
}

.app-icon {
    display: grid;
    width: 34px;
    height: 34px;
    margin-bottom: 3px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 11px;
}

.app-icon svg {
    width: 16px;
    height: 16px;
}

.app-files {
    color: #b8a8ff;
    background: rgba(155, 140, 255, .13);
}

.app-notes {
    color: #7fc8ff;
    background: rgba(114, 184, 255, .12);
}

.app-calendar {
    color: #ffc38d;
    background: rgba(255, 189, 121, .12);
}

.app-terminal {
    color: #77e8c2;
    background: rgba(101, 232, 187, .12);
}

.app-browser {
    color: #8edbff;
    background: rgba(110, 231, 255, .1);
}

.app-settings {
    color: #d0b0ff;
    background: rgba(190, 140, 255, .12);
}

.quick-app strong {
    overflow: hidden;
    max-width: 100%;
    font-size: 10px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-app small {
    overflow: hidden;
    max-width: 100%;
    color: #7e87a4;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #7f8ba7;
    font-family: var(--mono);
    font-size: 8px;
}

.activity-list {
    display: grid;
    gap: 0;
}

.activity-item {
    display: grid;
    grid-template-columns: 29px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 0;
    border-bottom: 1px solid rgba(157, 169, 220, .07);
}

.activity-item:first-child {
    padding-top: 0;
}

.activity-item:last-child {
    border-bottom: 0;
}

.activity-icon {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 255, 255, .025);
    color: var(--accent-secondary);
}

.activity-icon svg {
    width: 13px;
    height: 13px;
}

.activity-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.activity-copy strong {
    overflow: hidden;
    font-size: 10px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-copy small {
    color: #777f9c;
    font-size: 9px;
}

.activity-time {
    color: #6e7693;
    font-family: var(--mono);
    font-size: 8px;
    white-space: nowrap;
}

.panel-footer-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 12px;
    padding: 11px 0 0;
    border: 0;
    border-top: 1px solid var(--line);
    background: transparent;
    color: #969fbd;
    font-size: 9px;
    text-align: left;
}

.panel-footer-button:hover {
    color: var(--accent);
}

.panel-footer-button svg {
    width: 14px;
    height: 14px;
}

.task-form {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.task-form input,
.workspace-create-form input,
.launcher-search input,
.search-dialog-input input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
}

.task-form input {
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 255, 255, .025);
    font-size: 10px;
}

.task-form button {
    display: grid;
    width: 36px;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid rgba(var(--accent-rgb), .28);
    border-radius: 9px;
    background: rgba(var(--accent-rgb), .11);
    color: var(--accent);
}

.task-form button:hover {
    background: rgba(var(--accent-rgb), .2);
}

.task-list {
    display: grid;
    gap: 5px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 9px 8px;
    border-radius: 9px;
    transition: background .2s ease;
}

.task-item:hover {
    background: rgba(255, 255, 255, .025);
}

.task-checkbox {
    display: grid;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid #4f5877;
    border-radius: 5px;
    background: transparent;
    color: #101422;
}

.task-item.completed .task-checkbox {
    border-color: var(--green);
    background: var(--green);
}

.task-checkbox svg {
    width: 11px;
    height: 11px;
}

.task-title {
    overflow: hidden;
    flex: 1;
    color: #cdd2eb;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-item.completed .task-title {
    color: #707a98;
    text-decoration: line-through;
}

.task-delete {
    display: grid;
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #777f9c;
    opacity: 0;
    transition: opacity .2s ease, color .2s ease;
}

.task-item:hover .task-delete {
    opacity: 1;
}

.task-delete:hover {
    color: var(--red);
}

.task-delete svg {
    width: 13px;
    height: 13px;
}

.task-progress {
    margin-top: 17px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
}

.task-progress-copy {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #828ba8;
    font-size: 9px;
}

.task-progress-copy strong {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 10px;
}

.progress-track,
.storage-track {
    height: 4px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(255, 255, 255, .07);
}

.progress-track span,
.storage-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    transition: width .3s ease;
}

.upcoming-events {
    display: grid;
    gap: 9px;
}

.event-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(157, 169, 220, .07);
    border-radius: 11px;
    background: rgba(255, 255, 255, .018);
}

.event-date-block {
    display: grid;
    gap: 3px;
    place-items: center;
    padding: 8px 4px;
    border: 1px solid rgba(var(--accent-rgb), .2);
    border-radius: 8px;
    background: rgba(var(--accent-rgb), .08);
}

.event-date-block strong {
    font-family: var(--display);
    font-size: 17px;
}

.event-date-block small {
    color: #a89bff;
    font-family: var(--mono);
    font-size: 7px;
    text-transform: uppercase;
}

.event-copy {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.event-copy strong {
    overflow: hidden;
    font-size: 10px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-copy small {
    color: #818aa8;
    font-size: 9px;
}

.event-create-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 11px;
    border: 1px dashed rgba(var(--accent-rgb), .3);
    border-radius: 10px;
    background: rgba(var(--accent-rgb), .025);
    color: #b8acff;
    font-size: 10px;
}

.event-create-button:hover {
    background: rgba(var(--accent-rgb), .08);
}

.event-create-button svg {
    width: 15px;
    height: 15px;
}

.storage-overview {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 15px;
}

.storage-icon {
    display: grid;
    width: 39px;
    height: 39px;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid rgba(110, 231, 255, .16);
    border-radius: 12px;
    background: rgba(110, 231, 255, .06);
    color: var(--accent-secondary);
}

.storage-copy {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.storage-copy strong {
    font-size: 11px;
    font-weight: 600;
}

.storage-copy small {
    color: #818aa8;
    font-size: 9px;
    line-height: 1.5;
}

.storage-track {
    height: 5px;
}

.storage-track span {
    width: 28%;
}

.storage-details {
    display: flex;
    justify-content: space-between;
    margin-top: 11px;
    color: #7d86a4;
    font-size: 9px;
}

.storage-details strong {
    color: var(--green);
    font-weight: 500;
}

.system-dock {
    position: absolute;
    z-index: 250;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--dock-height);
    padding: 0 26px;
    border-top: 1px solid rgba(157, 169, 220, .1);
    background: rgba(7, 9, 18, .84);
    backdrop-filter: blur(28px);
}

.dock-left,
.dock-right {
    display: flex;
    align-items: center;
    gap: 7px;
}

.dock-launcher-button {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(var(--accent-rgb), .42);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(var(--accent-rgb), .18), rgba(255, 255, 255, .025));
    box-shadow: 0 0 28px rgba(var(--accent-rgb), .09);
    transition: transform .2s ease, background .2s ease;
}

.dock-launcher-button:hover {
    transform: translateY(-3px);
    background: rgba(var(--accent-rgb), .23);
}

.dock-orbit-mark {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 1px solid var(--accent);
    border-radius: 50%;
    color: #ded7ff;
    font-family: var(--display);
    font-size: 16px;
    font-weight: 700;
}

.dock-separator {
    width: 1px;
    height: 29px;
    margin: 0 7px;
    background: var(--line-strong);
}

.dock-app {
    position: relative;
    width: 43px;
    height: 43px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: #a5adcb;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.dock-app:hover {
    transform: translateY(-4px);
    border-color: var(--line);
    background: rgba(255, 255, 255, .055);
    color: var(--accent-secondary);
}

.dock-app svg {
    width: 19px;
    height: 19px;
}

.dock-running-indicators {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
}

.dock-running-indicators span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(var(--accent-rgb), .4);
}

.dock-status-button {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    color: #929bb9;
}

.dock-status-button:hover {
    background: rgba(255, 255, 255, .06);
    color: var(--text);
}

.dock-status-button svg {
    width: 16px;
    height: 16px;
}

.dock-clock-button {
    display: grid;
    justify-items: end;
    gap: 3px;
    padding: 7px 0 7px 12px;
    text-align: right;
}

.dock-clock-button strong {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
}

.dock-clock-button small {
    color: #7d86a4;
    font-size: 9px;
}

/* Painéis flutuantes */

.floating-panel {
    position: absolute;
    z-index: 500;
    width: min(450px, calc(100vw - 28px));
    padding: 20px;
    border: 1px solid var(--line-strong);
    border-radius: 19px;
    background: var(--panel-strong);
    box-shadow: 0 30px 100px rgba(0, 0, 0, .5);
    backdrop-filter: blur(30px);
    animation: panelEnter .18s ease-out;
}

.launcher-panel {
    bottom: 88px;
    left: 24px;
    width: min(490px, calc(100vw - 28px));
}

.launcher-search,
.search-dialog-input {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(var(--accent-rgb), .24);
    border-radius: 11px;
    background: rgba(255, 255, 255, .025);
}

.launcher-search > svg,
.search-dialog-input > svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.launcher-search input,
.search-dialog-input input {
    flex: 1;
    font-size: 11px;
}

.launcher-search > span {
    color: #77809e;
    font-family: var(--mono);
    font-size: 8px;
}

.launcher-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 15px 0;
}

.category-chip {
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: #8d96b3;
    font-size: 9px;
}

.category-chip.active,
.category-chip:hover {
    border-color: rgba(var(--accent-rgb), .3);
    background: rgba(var(--accent-rgb), .09);
    color: #c6bdff;
}

.launcher-app-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-height: 300px;
    overflow: auto;
}

.launcher-app {
    display: grid;
    justify-items: start;
    gap: 8px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: rgba(255, 255, 255, .02);
    text-align: left;
    transition: .2s ease;
}

.launcher-app:hover {
    border-color: rgba(var(--accent-rgb), .28);
    background: rgba(var(--accent-rgb), .06);
    transform: translateY(-2px);
}

.launcher-app strong {
    overflow: hidden;
    max-width: 100%;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.launcher-app small {
    color: #7e87a4;
    font-size: 9px;
}

.search-overlay {
    position: absolute;
    z-index: 700;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: min(18vh, 150px) 16px 30px;
    background: rgba(4, 5, 12, .64);
    backdrop-filter: blur(9px);
}

.search-dialog {
    width: min(620px, 100%);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 17px;
    background: #101426;
    box-shadow: 0 30px 100px rgba(0, 0, 0, .55);
    animation: panelEnter .16s ease-out;
}

.search-dialog-input {
    min-height: 59px;
    padding: 0 17px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: rgba(255, 255, 255, .015);
}

.search-dialog-input input {
    font-size: 13px;
}

kbd {
    padding: 4px 6px;
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    background: rgba(255, 255, 255, .025);
    color: #919ab8;
    font-family: var(--mono);
    font-size: 9px;
}

.search-results {
    display: grid;
    gap: 3px;
    max-height: 340px;
    padding: 9px;
    overflow: auto;
}

.search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    text-align: left;
}

.search-result:hover,
.search-result.selected {
    border-color: rgba(var(--accent-rgb), .22);
    background: rgba(var(--accent-rgb), .075);
}

.search-result-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .025);
    color: var(--accent-secondary);
}

.search-result-copy {
    display: grid;
    flex: 1;
    gap: 4px;
}

.search-result-copy strong {
    font-size: 11px;
    font-weight: 600;
}

.search-result-copy small {
    color: #8089a7;
    font-size: 9px;
}

.search-result > span:last-child {
    color: #737d9b;
    font-size: 9px;
}

.search-dialog-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 15px;
    border-top: 1px solid var(--line);
    color: #7d86a3;
    font-size: 9px;
}

.search-dialog-footer span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.control-center {
    right: 24px;
    bottom: 88px;
    width: min(370px, calc(100vw - 28px));
}

.control-center-clock {
    display: grid;
    gap: 5px;
    padding: 12px 0 18px;
}

.control-center-clock strong {
    font-family: var(--display);
    font-size: 36px;
    font-weight: 500;
    letter-spacing: -.05em;
}

.control-center-clock span {
    color: #8992b0;
    font-size: 10px;
}

.control-tile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.control-tile {
    display: grid;
    justify-items: start;
    gap: 9px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .018);
    text-align: left;
    transition: .2s ease;
}

.control-tile > svg {
    color: #8d96b4;
}

.control-tile span {
    font-size: 10px;
    font-weight: 600;
}

.control-tile small {
    color: #7e87a4;
    font-size: 9px;
}

.control-tile.active {
    border-color: rgba(var(--accent-rgb), .35);
    background: rgba(var(--accent-rgb), .085);
}

.control-tile.active > svg {
    color: var(--accent);
}

.control-slider-group {
    margin-top: 20px;
}

.control-slider-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    color: #a6aecb;
    font-size: 10px;
}

.control-slider-label span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.control-slider-label svg {
    width: 14px;
    height: 14px;
    color: var(--accent-secondary);
}

.control-slider-label strong {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 9px;
}

input[type="range"] {
    width: 100%;
    height: 4px;
    accent-color: var(--accent);
    cursor: pointer;
}

.notification-center {
    right: 24px;
    top: 67px;
    width: min(380px, calc(100vw - 28px));
}

.notification-list {
    display: grid;
    gap: 8px;
    max-height: 360px;
    overflow: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .02);
}

.notification-item > span {
    display: grid;
    width: 31px;
    height: 31px;
    flex-shrink: 0;
    place-items: center;
    border-radius: 9px;
    background: rgba(var(--accent-rgb), .11);
    color: var(--accent);
}

.notification-item > span svg {
    width: 15px;
    height: 15px;
}

.notification-item > div {
    display: grid;
    gap: 5px;
    flex: 1;
}

.notification-item strong {
    font-size: 10px;
}

.notification-item p {
    margin: 0;
    color: #8a93b0;
    font-size: 9px;
    line-height: 1.6;
}

.notification-item small {
    color: #707995;
    font-size: 8px;
}

.context-menu {
    position: absolute;
    z-index: 800;
    width: 210px;
    padding: 6px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #111629;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.context-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #c0c7e1;
    font-size: 10px;
    text-align: left;
}

.context-menu button:hover {
    background: rgba(var(--accent-rgb), .1);
    color: var(--text);
}

.context-menu button svg {
    width: 14px;
    height: 14px;
    color: var(--accent-secondary);
}

.context-divider {
    height: 1px;
    margin: 5px 0;
    background: var(--line);
}

.workspace-overlay {
    position: absolute;
    z-index: 650;
    inset: 0;
    display: grid;
    padding: 20px;
    place-items: center;
    background: rgba(4, 5, 12, .76);
    backdrop-filter: blur(10px);
}

.workspace-dialog {
    width: min(650px, 100%);
    padding: 25px;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: #101426;
    box-shadow: 0 30px 100px rgba(0, 0, 0, .5);
}

.workspace-description {
    margin: -4px 0 18px;
    color: #8d96b3;
    font-size: 10px;
    line-height: 1.7;
}

.workspace-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.workspace-card {
    position: relative;
    display: grid;
    gap: 13px;
    min-height: 115px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .02);
    text-align: left;
    transition: .2s ease;
}

.workspace-card:hover,
.workspace-card.active {
    border-color: rgba(var(--accent-rgb), .42);
    background: rgba(var(--accent-rgb), .075);
}

.workspace-preview {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 37px;
    padding: 7px;
    border: 1px solid rgba(var(--accent-rgb), .15);
    border-radius: 8px;
    background: rgba(var(--accent-rgb), .05);
}

.workspace-preview span {
    width: 19%;
    height: 19px;
    border-radius: 4px;
    background: rgba(var(--accent-rgb), .25);
}

.workspace-preview span:nth-child(2) {
    height: 24px;
    background: rgba(110, 231, 255, .2);
}

.workspace-preview span:nth-child(3) {
    height: 13px;
}

.workspace-card strong {
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-card small {
    color: #7d86a3;
    font-size: 9px;
}

.workspace-card .workspace-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: rgba(255, 114, 138, .09);
    color: #ff9aac;
}

.workspace-delete svg {
    width: 12px;
    height: 12px;
}

.workspace-create-form {
    display: flex;
    gap: 9px;
    margin-top: 17px;
}

.workspace-create-form input {
    min-height: 39px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 255, 255, .025);
    font-size: 10px;
}

.lock-screen {
    position: absolute;
    z-index: 1000;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 8%;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 25% 45%, rgba(var(--accent-rgb), .16), transparent 40%),
        radial-gradient(ellipse at 80% 10%, rgba(110, 231, 255, .08), transparent 40%),
        #070914;
    animation: fadeIn .35s ease;
}

.lock-screen-orbit {
    position: relative;
    display: grid;
    width: min(400px, 80%);
    aspect-ratio: 1;
    place-self: center;
    place-items: center;
}

.lock-orbit-one,
.lock-orbit-two,
.lock-orbit-three {
    position: absolute;
    border: 1px solid rgba(var(--accent-rgb), .27);
    border-radius: 50%;
}

.lock-orbit-one {
    inset: 0;
    transform: rotateX(64deg) rotate(-25deg);
}

.lock-orbit-two {
    inset: 12%;
    transform: rotateY(60deg) rotate(35deg);
}

.lock-orbit-three {
    inset: 22%;
}

.lock-core {
    display: grid;
    width: 90px;
    height: 90px;
    place-items: center;
    border: 1px solid rgba(var(--accent-rgb), .45);
    border-radius: 50%;
    background: rgba(var(--accent-rgb), .1);
    color: #ddd6ff;
    font-family: var(--display);
    font-size: 45px;
    box-shadow: 0 0 80px rgba(var(--accent-rgb), .13);
}

.lock-screen-content {
    display: grid;
    justify-items: start;
    max-width: 340px;
}

.lock-eyebrow {
    color: #a89cff;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .15em;
}

.lock-screen-content > strong {
    margin-top: 15px;
    font-family: var(--display);
    font-size: clamp(48px, 7vw, 75px);
    font-weight: 500;
    letter-spacing: -.07em;
}

.lock-screen-content > span:nth-child(3) {
    color: #9098b5;
    font-size: 12px;
}

.lock-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 35px 0 20px;
    padding: 15px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.large-avatar {
    width: 45px;
    height: 45px;
}

.lock-profile > div {
    display: grid;
    gap: 5px;
}

.lock-profile strong {
    font-size: 12px;
}

.lock-profile small {
    color: #7e87a4;
    font-size: 10px;
}

.lock-power-button {
    position: absolute;
    right: 25px;
    bottom: 25px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .025);
    color: #9ca5c2;
}

.confirm-overlay {
    position: absolute;
    z-index: 1200;
    inset: 0;
    display: grid;
    padding: 20px;
    place-items: center;
    background: rgba(4, 5, 12, .75);
    backdrop-filter: blur(8px);
}

.confirm-dialog {
    width: min(380px, 100%);
    padding: 25px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: #111629;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
}

.confirm-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(255, 189, 121, .22);
    border-radius: 12px;
    background: rgba(255, 189, 121, .09);
    color: var(--orange);
}

.confirm-dialog h3 {
    margin: 18px 0 8px;
    font-family: var(--display);
    font-size: 17px;
}

.confirm-dialog p {
    margin: 0;
    color: #919ab7;
    font-size: 11px;
    line-height: 1.7;
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 23px;
}

.toast-stack {
    position: absolute;
    z-index: 1500;
    right: 22px;
    bottom: calc(var(--dock-height) + 20px);
    display: grid;
    gap: 9px;
    width: min(330px, calc(100vw - 28px));
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: rgba(16, 21, 39, .97);
    box-shadow: 0 15px 45px rgba(0, 0, 0, .3);
    animation: toastIn .25s ease;
    pointer-events: auto;
}

.toast-icon {
    display: grid;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    place-items: center;
    border-radius: 9px;
    background: rgba(101, 232, 187, .1);
    color: var(--green);
}

.toast-icon.error {
    background: rgba(255, 114, 138, .1);
    color: var(--red);
}

.toast-icon svg {
    width: 14px;
    height: 14px;
}

.toast-copy {
    display: grid;
    gap: 4px;
}

.toast-copy strong {
    font-size: 10px;
}

.toast-copy span {
    color: #8c95b2;
    font-size: 9px;
    line-height: 1.6;
}

.command-palette {
    position: absolute;
    z-index: 900;
    inset: 0;
    display: grid;
    padding: 20px;
    place-items: center;
    background: rgba(4, 5, 12, .78);
    backdrop-filter: blur(10px);
}

.command-palette-card {
    width: min(420px, 100%);
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 17px;
    background: #101426;
    box-shadow: 0 30px 100px rgba(0, 0, 0, .5);
}

.command-palette-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 13px;
    border-bottom: 1px solid var(--line);
    color: #a3a9c8;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .08em;
}

.command-palette-head > svg {
    color: var(--accent);
}

.command-palette-head button {
    margin-left: auto;
}

.command-palette-card > button {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 12px 8px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    text-align: left;
}

.command-palette-card > button:hover {
    background: rgba(var(--accent-rgb), .08);
}

.command-palette-card > button span {
    flex: 1;
    color: #c8cee7;
    font-size: 10px;
}

.command-palette-card > button > svg {
    width: 14px;
    height: 14px;
    color: #828ba9;
}

/* Janelas das aplicações */

.window-layer {
    position: absolute;
    z-index: 300;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.app-window {
    position: absolute;
    display: flex;
    flex-direction: column;
    min-width: 320px;
    min-height: 240px;
    overflow: hidden;
    border: 1px solid rgba(170, 177, 224, .2);
    border-radius: 15px;
    background: rgba(13, 17, 32, .97);
    box-shadow: 0 30px 100px rgba(0, 0, 0, .42);
    pointer-events: auto;
    backdrop-filter: blur(25px);
    animation: windowEnter .2s ease-out;
}

.app-window.maximized {
    top: 9px !important;
    left: 9px !important;
    width: calc(100% - 18px) !important;
    height: calc(100% - 18px) !important;
    transform: none !important;
    border-radius: 12px;
}

.app-window.minimized {
    display: none;
}

.window-titlebar {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 49px;
    padding: 0 13px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .018);
    cursor: grab;
    user-select: none;
}

.window-titlebar:active {
    cursor: grabbing;
}

.window-app-icon {
    display: grid;
    width: 29px;
    height: 29px;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid rgba(var(--accent-rgb), .2);
    border-radius: 9px;
    background: rgba(var(--accent-rgb), .09);
    color: var(--accent-secondary);
}

.window-app-icon svg {
    width: 14px;
    height: 14px;
}

.window-title-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
    flex: 1;
}

.window-title-copy strong {
    overflow: hidden;
    font-size: 10px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.window-title-copy small {
    color: #78819e;
    font-family: var(--mono);
    font-size: 8px;
}

.window-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.window-control {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #8a93b0;
}

.window-control:hover {
    background: rgba(255, 255, 255, .06);
    color: var(--text);
}

.window-control.close:hover {
    background: rgba(255, 114, 138, .12);
    color: var(--red);
}

.window-control svg {
    width: 13px;
    height: 13px;
}

.window-content {
    min-height: 0;
    flex: 1;
    overflow: auto;
    scrollbar-color: rgba(var(--accent-rgb), .4) transparent;
    scrollbar-width: thin;
}

.window-content::-webkit-scrollbar {
    width: 5px;
}

.window-content::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background: rgba(var(--accent-rgb), .35);
}

.window-resize-handle {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 0;
    width: 18px;
    height: 18px;
    cursor: nwse-resize;
}

.window-resize-handle::after {
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 7px;
    height: 7px;
    border-right: 1px solid #6e7694;
    border-bottom: 1px solid #6e7694;
    content: "";
}

/* Aplicações */

.app-padding {
    padding: 19px;
}

.app-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

.app-toolbar h3 {
    margin: 0;
    font-family: var(--display);
    font-size: 15px;
}

.app-muted {
    color: #8790ad;
    font-size: 10px;
    line-height: 1.7;
}

.app-input,
.app-textarea,
.app-select {
    width: 100%;
    min-height: 37px;
    padding: 9px 11px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    outline: 0;
    background: rgba(255, 255, 255, .025);
    color: var(--text);
    font-size: 10px;
}

.app-textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.7;
}

.app-input:focus,
.app-textarea:focus,
.app-select:focus {
    border-color: rgba(var(--accent-rgb), .55);
}

.app-small-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 31px;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: rgba(255, 255, 255, .025);
    color: #b7bfdc;
    font-size: 9px;
}

.app-small-button:hover {
    border-color: rgba(var(--accent-rgb), .35);
    background: rgba(var(--accent-rgb), .07);
}

.app-small-button svg {
    width: 13px;
    height: 13px;
}

.app-small-button.primary {
    border-color: rgba(var(--accent-rgb), .32);
    background: rgba(var(--accent-rgb), .13);
    color: #c6bcff;
}

.app-empty {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 35px 15px;
    color: #8089a6;
    text-align: center;
}

.app-empty > svg {
    width: 25px;
    height: 25px;
    color: var(--accent);
}

.app-empty strong {
    color: #cbd1ea;
    font-size: 11px;
}

.app-empty small {
    max-width: 240px;
    font-size: 9px;
    line-height: 1.7;
}

.files-layout {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 100%;
}

.files-sidebar {
    padding: 15px 10px;
    border-right: 1px solid var(--line);
    background: rgba(255, 255, 255, .012);
}

.files-sidebar-title {
    padding: 6px 9px 10px;
    color: #727c9a;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .1em;
}

.files-sidebar button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #9099b6;
    font-size: 9px;
    text-align: left;
}

.files-sidebar button:hover,
.files-sidebar button.active {
    background: rgba(var(--accent-rgb), .1);
    color: #c6bcff;
}

.files-sidebar button svg {
    width: 14px;
    height: 14px;
}

.files-main {
    min-width: 0;
    padding: 17px;
}

.files-breadcrumb {
    margin-bottom: 14px;
    color: #818aa8;
    font-size: 9px;
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 9px;
}

.file-card {
    display: grid;
    justify-items: center;
    gap: 10px;
    min-width: 0;
    padding: 14px 8px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: rgba(255, 255, 255, .018);
    text-align: center;
    transition: .2s ease;
}

.file-card:hover,
.file-card.selected {
    border-color: rgba(var(--accent-rgb), .3);
    background: rgba(var(--accent-rgb), .06);
}

.file-card-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(var(--accent-rgb), .17);
    border-radius: 12px;
    background: rgba(var(--accent-rgb), .08);
    color: var(--accent);
}

.file-card-icon svg {
    width: 19px;
    height: 19px;
}

.file-card strong {
    overflow: hidden;
    max-width: 100%;
    font-size: 9px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-card small {
    color: #7982a0;
    font-size: 8px;
}

.notes-layout {
    display: grid;
    grid-template-columns: 175px minmax(0, 1fr);
    height: 100%;
    min-height: 360px;
}

.notes-sidebar {
    padding: 14px 10px;
    border-right: 1px solid var(--line);
}

.notes-sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px 12px;
}

.notes-sidebar-top strong {
    color: #a5adca;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .08em;
}

.notes-list {
    display: grid;
    gap: 5px;
}

.note-list-item {
    display: grid;
    gap: 6px;
    padding: 11px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    text-align: left;
}

.note-list-item:hover,
.note-list-item.active {
    border-color: rgba(var(--accent-rgb), .2);
    background: rgba(var(--accent-rgb), .065);
}

.note-list-item strong {
    overflow: hidden;
    font-size: 10px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.note-list-item small {
    color: #7d86a3;
    font-size: 8px;
}

.notes-editor {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 17px;
}

.notes-editor input {
    padding: 5px 0 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
    outline: 0;
    background: transparent;
    font-family: var(--display);
    font-size: 18px;
    font-weight: 600;
}

.notes-editor textarea {
    min-height: 160px;
    flex: 1;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #aab2ce;
    font-size: 11px;
    line-height: 1.9;
    resize: none;
}

.notes-editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    color: #7982a0;
    font-size: 8px;
}

.notes-editor-actions {
    display: flex;
    gap: 6px;
}

.calendar-app {
    padding: 18px;
}

.calendar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 16px;
}

.calendar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.calendar-top h3 {
    margin: 0;
    font-family: var(--display);
    font-size: 15px;
}

.calendar-navigation {
    display: flex;
    gap: 5px;
}

.calendar-navigation button {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, .02);
    color: #aab2ce;
}

.calendar-navigation svg {
    width: 13px;
    height: 13px;
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
}

.calendar-weekdays {
    margin-bottom: 7px;
}

.calendar-weekdays span {
    padding: 7px 0;
    color: #7d86a3;
    font-family: var(--mono);
    font-size: 8px;
    text-align: center;
}

.calendar-day {
    position: relative;
    display: grid;
    min-height: 35px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    background: rgba(255, 255, 255, .015);
    color: #b4bbd5;
    font-size: 9px;
}

.calendar-day:hover {
    border-color: rgba(var(--accent-rgb), .3);
    background: rgba(var(--accent-rgb), .07);
}

.calendar-day.muted {
    color: #505a78;
}

.calendar-day.today {
    border-color: rgba(var(--accent-rgb), .5);
    background: rgba(var(--accent-rgb), .14);
    color: #d4cdff;
}

.calendar-day.selected {
    background: var(--accent);
    color: #0a0b16;
}

.calendar-day.has-event::after {
    position: absolute;
    bottom: 4px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--accent-secondary);
    content: "";
}

.calendar-side {
    padding-left: 14px;
    border-left: 1px solid var(--line);
}

.calendar-side h4 {
    margin: 0 0 12px;
    font-family: var(--display);
    font-size: 12px;
}

.calendar-event-list {
    display: grid;
    gap: 8px;
}

.calendar-event-card {
    display: grid;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 255, 255, .018);
}

.calendar-event-card strong {
    font-size: 9px;
}

.calendar-event-card small {
    color: #858eab;
    font-size: 8px;
    line-height: 1.5;
}

.calendar-event-card button {
    justify-self: start;
    border: 0;
    background: transparent;
    color: #ff9bac;
    font-size: 8px;
}

.browser-app {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: #0d1120;
}

.browser-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .018);
}

.browser-toolbar button {
    display: grid;
    width: 29px;
    height: 29px;
    flex-shrink: 0;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #9ba4c1;
}

.browser-toolbar button:hover {
    background: rgba(255, 255, 255, .06);
}

.browser-toolbar svg {
    width: 14px;
    height: 14px;
}

.browser-address {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(0, 0, 0, .14);
}

.browser-address svg {
    color: var(--green);
}

.browser-address input {
    width: 100%;
    min-width: 0;
    min-height: 32px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #c6cde6;
    font-size: 10px;
}

.browser-content {
    flex: 1;
    min-height: 280px;
    padding: 23px;
    overflow: auto;
}

.browser-home {
    display: grid;
    justify-items: center;
    padding: 35px 0;
    text-align: center;
}

.browser-home-mark {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 20px;
    place-items: center;
    border: 1px solid rgba(var(--accent-rgb), .4);
    border-radius: 18px;
    background: rgba(var(--accent-rgb), .1);
    color: var(--accent);
}

.browser-home-mark svg {
    width: 27px;
    height: 27px;
}

.browser-home h3 {
    margin: 0;
    font-family: var(--display);
    font-size: 23px;
    letter-spacing: -.04em;
}

.browser-home p {
    max-width: 360px;
    color: #8b94b1;
    font-size: 10px;
    line-height: 1.8;
}

.browser-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    width: 100%;
    margin-top: 20px;
}

.browser-shortcuts button {
    display: grid;
    justify-items: center;
    gap: 9px;
    padding: 15px 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .02);
    color: #b9c1dd;
    font-size: 9px;
}

.browser-shortcuts button:hover {
    border-color: rgba(var(--accent-rgb), .3);
    background: rgba(var(--accent-rgb), .06);
}

.browser-shortcuts svg {
    color: var(--accent-secondary);
}

.browser-external-notice {
    max-width: 450px;
    margin: 30px auto;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, .02);
}

.browser-external-notice > svg {
    width: 25px;
    height: 25px;
    color: var(--accent-secondary);
}

.browser-external-notice h3 {
    font-family: var(--display);
    font-size: 16px;
}

.browser-external-notice p {
    color: #8e97b4;
    font-size: 10px;
    line-height: 1.8;
}

.terminal-app {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: #080d13;
    color: #a7f0d0;
    font-family: var(--mono);
}

.terminal-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(101, 232, 187, .12);
    color: #7c9f98;
    font-size: 9px;
}

.terminal-output {
    min-height: 240px;
    flex: 1;
    padding: 16px;
    overflow: auto;
    font-size: 10px;
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.terminal-line {
    margin-bottom: 5px;
}

.terminal-line.command {
    color: #eef0ff;
}

.terminal-line.error {
    color: #ff879b;
}

.terminal-line.success {
    color: #8debc8;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    border-top: 1px solid rgba(101, 232, 187, .12);
}

.terminal-prompt {
    color: #65e8bb;
    font-size: 10px;
    white-space: nowrap;
}

.terminal-input-line input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: #e6f8f0;
    font-family: var(--mono);
    font-size: 10px;
}

.settings-layout {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 100%;
}

.settings-sidebar {
    padding: 15px 10px;
    border-right: 1px solid var(--line);
}

.settings-sidebar button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #9099b6;
    font-size: 9px;
    text-align: left;
}

.settings-sidebar button.active,
.settings-sidebar button:hover {
    background: rgba(var(--accent-rgb), .09);
    color: #c7beff;
}

.settings-sidebar svg {
    width: 14px;
    height: 14px;
}

.settings-content {
    min-width: 0;
    padding: 18px;
}

.settings-content h3 {
    margin: 0 0 7px;
    font-family: var(--display);
    font-size: 16px;
}

.settings-description {
    margin: 0 0 20px;
    color: #8790ad;
    font-size: 10px;
    line-height: 1.7;
}

.settings-section {
    margin-bottom: 23px;
}

.settings-section h4 {
    margin: 0 0 12px;
    color: #aab2ce;
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .07em;
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(157, 169, 220, .08);
}

.settings-row:last-child {
    border-bottom: 0;
}

.settings-row-copy {
    display: grid;
    gap: 5px;
}

.settings-row-copy strong {
    font-size: 10px;
    font-weight: 500;
}

.settings-row-copy small {
    max-width: 290px;
    color: #818aa8;
    font-size: 9px;
    line-height: 1.6;
}

.toggle-switch {
    position: relative;
    width: 35px;
    height: 20px;
    flex-shrink: 0;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: #242a40;
    transition: background .2s ease;
}

.toggle-switch span {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #8e97b4;
    transition: transform .2s ease, background .2s ease;
}

.toggle-switch.active {
    border-color: rgba(var(--accent-rgb), .4);
    background: rgba(var(--accent-rgb), .4);
}

.toggle-switch.active span {
    transform: translateX(15px);
    background: #f3f0ff;
}

.accent-options {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.accent-option {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 2px solid transparent;
    border-radius: 10px;
    background: var(--swatch);
}

.accent-option.active {
    border-color: #f0efff;
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .25);
}

.accent-option svg {
    width: 13px;
    height: 13px;
    color: #fff;
}

.trash-list {
    display: grid;
    gap: 8px;
}

.trash-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .018);
}

.trash-item > svg {
    color: #9ba4c1;
}

.trash-item > div {
    display: grid;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.trash-item strong {
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trash-item small {
    color: #7f88a5;
    font-size: 8px;
}

.trash-item button {
    border: 0;
    background: transparent;
    color: #b5a8ff;
    font-size: 9px;
}

.app-form-grid {
    display: grid;
    gap: 12px;
}

.app-form-field {
    display: grid;
    gap: 7px;
}

.app-form-field label {
    color: #9aa3c0;
    font-size: 9px;
}

.app-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}

.app-form-error {
    color: #ff91a4;
    font-size: 9px;
}

/* Modo foco */

.os-shell.focus-mode .welcome-panel {
    min-height: 200px;
}

.os-shell.focus-mode .welcome-visual,
.os-shell.focus-mode .system-overview,
.os-shell.focus-mode .activity-panel,
.os-shell.focus-mode .calendar-preview-panel,
.os-shell.focus-mode .resource-panel {
    display: none;
}

.os-shell.focus-mode .welcome-panel {
    grid-template-columns: 1fr;
}

.os-shell.focus-mode .welcome-copy {
    max-width: 750px;
    padding-top: 25px;
    padding-bottom: 25px;
}

.os-shell.focus-mode .desktop-grid {
    grid-template-columns: minmax(0, 1fr);
}

.os-shell.focus-mode .quick-access-panel,
.os-shell.focus-mode .tasks-panel {
    grid-column: auto;
}

/* Animações */

@keyframes panelEnter {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes windowEnter {
    from {
        opacity: 0;
        transform: translateY(7px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulseRing {
    0%, 100% {
        opacity: .35;
        transform: scale(.98);
    }
    50% {
        opacity: .8;
        transform: scale(1.06);
    }
}

/* Responsividade */

@media (min-width: 1500px) {
    .desktop {
        padding-right: 4vw;
        padding-left: 4vw;
    }

    .welcome-panel {
        min-height: 300px;
    }

    .welcome-visual {
        min-height: 300px;
    }

    .panel {
        padding: 22px;
    }
}

@media (max-width: 1200px) {
    .desktop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .system-overview,
    .quick-access-panel {
        grid-column: span 1;
    }

    .welcome-panel {
        grid-template-columns: minmax(0, 1.1fr) minmax(220px, .9fr);
    }

    .welcome-copy {
        padding-left: 25px;
    }

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metric-card {
        grid-template-columns: 25px 1fr;
        align-items: center;
    }

    .metric-value {
        margin: 0;
    }

    .metric-label {
        grid-column: 2;
    }
}

@media (max-width: 850px) {
    :root {
        --topbar-height: 65px;
        --dock-height: 69px;
    }

    .topbar {
        padding: 0 16px;
    }

    .topbar-center {
        display: none;
    }

    .profile-copy,
    .profile-button > svg {
        display: none;
    }

    .desktop {
        padding: 16px 16px 28px;
    }

    .welcome-panel {
        grid-template-columns: minmax(0, 1fr) 200px;
        min-height: 250px;
    }

    .welcome-copy {
        padding: 25px 0 25px 22px;
    }

    .welcome-copy h1 {
        font-size: 34px;
    }

    .welcome-visual {
        min-height: 250px;
        transform: scale(.85);
    }

    .welcome-meta {
        gap: 10px;
    }

    .desktop-grid {
        gap: 12px;
    }

    .panel {
        padding: 15px;
    }

    .quick-app-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .system-dock {
        padding: 0 14px;
    }

    .dock-app {
        width: 37px;
        height: 39px;
    }

    .dock-left,
    .dock-right {
        gap: 4px;
    }

    .files-layout,
    .notes-layout,
    .settings-layout {
        grid-template-columns: 125px minmax(0, 1fr);
    }

    .calendar-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .calendar-side {
        padding: 15px 0 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .calendar-event-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    body {
        overflow: auto;
    }

    .os-shell {
        height: 100dvh;
        min-height: 520px;
    }

    .topbar {
        gap: 8px;
        padding: 0 12px;
    }

    .brand-symbol {
        width: 34px;
        height: 34px;
    }

    .brand-copy strong {
        font-size: 15px;
    }

    .brand-copy small {
        font-size: 7px;
    }

    .topbar-actions {
        gap: 2px;
    }

    .topbar-actions .icon-button {
        width: 33px;
        height: 33px;
    }

    .topbar-actions #quickNotesButton {
        display: none;
    }

    .profile-button {
        padding-left: 2px;
    }

    .profile-avatar {
        width: 30px;
        height: 30px;
    }

    .desktop {
        padding: 13px 12px 24px;
    }

    .desktop-toolbar {
        margin-bottom: 13px;
    }

    .subtle-button span {
        display: none;
    }

    .welcome-panel {
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
    }

    .welcome-copy {
        padding: 25px 20px 23px;
    }

    .welcome-copy h1 {
        margin-top: 15px;
        font-size: 36px;
    }

    .welcome-copy p {
        max-width: 100%;
        font-size: 10px;
    }

    .welcome-visual {
        display: none;
    }

    .welcome-meta {
        margin-top: 18px;
    }

    .welcome-meta span {
        font-size: 8px;
    }

    .desktop-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .system-overview,
    .quick-access-panel {
        grid-column: auto;
    }

    .metric-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .metric-card {
        grid-template-columns: 1fr;
        justify-items: start;
        padding: 9px 7px;
    }

    .metric-label {
        grid-column: auto;
    }

    .metric-value {
        font-size: 17px;
    }

    .quick-app-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .quick-app {
        padding: 10px 7px;
    }

    .quick-app strong {
        font-size: 9px;
    }

    .quick-app small {
        font-size: 8px;
    }

    .status-pill {
        display: none;
    }

    .system-dock {
        height: 64px;
        padding: 0 10px;
    }

    .dock-launcher-button {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .dock-orbit-mark {
        width: 22px;
        height: 22px;
        font-size: 14px;
    }

    .dock-separator {
        margin: 0 3px;
    }

    .dock-app {
        width: 34px;
        height: 36px;
    }

    .dock-app svg {
        width: 17px;
        height: 17px;
    }

    .dock-left {
        gap: 2px;
    }

    .dock-running-indicators {
        display: none;
    }

    .dock-status-button {
        width: 29px;
        height: 31px;
    }

    .dock-clock-button {
        padding-left: 5px;
    }

    .dock-clock-button strong {
        font-size: 10px;
    }

    .dock-clock-button small {
        font-size: 8px;
    }

    .launcher-panel {
        left: 10px;
        bottom: 72px;
        padding: 15px;
    }

    .launcher-app-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .launcher-app {
        padding: 10px 7px;
    }

    .control-center {
        right: 10px;
        bottom: 72px;
    }

    .notification-center {
        top: 60px;
        right: 10px;
    }

    .workspace-overlay {
        padding: 10px;
    }

    .workspace-dialog {
        padding: 17px;
    }

    .workspace-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workspace-create-form {
        flex-direction: column;
    }

    .app-window {
        top: 7px !important;
        left: 7px !important;
        width: calc(100% - 14px) !important;
        height: calc(100% - 14px) !important;
        min-width: 0;
        min-height: 0;
        transform: none !important;
        border-radius: 12px;
    }

    .window-resize-handle {
        display: none;
    }

    .files-layout,
    .notes-layout,
    .settings-layout {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .files-sidebar {
        padding: 10px 6px;
    }

    .files-sidebar button {
        gap: 5px;
        padding: 9px 5px;
        font-size: 8px;
    }

    .files-sidebar-title {
        padding-left: 5px;
        font-size: 7px;
    }

    .files-main,
    .notes-editor,
    .settings-content {
        padding: 12px;
    }

    .file-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .notes-sidebar {
        padding: 9px 5px;
    }

    .note-list-item {
        padding: 8px 6px;
    }

    .note-list-item strong {
        font-size: 9px;
    }

    .notes-editor input {
        font-size: 15px;
    }

    .notes-editor textarea {
        font-size: 10px;
    }

    .calendar-app {
        padding: 12px;
    }

    .calendar-layout {
        gap: 12px;
    }

    .calendar-day {
        min-height: 31px;
    }

    .calendar-event-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .browser-content {
        padding: 14px;
    }

    .browser-shortcuts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .settings-sidebar button {
        gap: 5px;
        padding: 9px 6px;
        font-size: 8px;
    }

    .settings-sidebar svg {
        width: 12px;
        height: 12px;
    }

    .lock-screen {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 25px;
    }

    .lock-screen-orbit {
        width: min(250px, 65vw);
        margin-bottom: 20px;
    }

    .lock-screen-content {
        justify-items: center;
        text-align: center;
    }

    .lock-screen-content > strong {
        font-size: 55px;
    }

    .lock-profile {
        justify-content: center;
    }

    .lock-power-button {
        right: 15px;
        bottom: 15px;
    }

    .search-overlay {
        padding-top: 90px;
    }

    .search-dialog-footer {
        justify-content: flex-start;
    }
}

@media (max-width: 380px) {
    .brand-copy small {
        display: none;
    }

    .topbar-actions #notificationButton {
        display: none;
    }

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-app-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .welcome-actions > button {
        flex: 1;
        padding: 0 10px;
    }

    .dock-app:nth-of-type(5) {
        display: none;
    }

    .launcher-app-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

.os-shell.no-animations *,
.os-shell.no-animations *::before,
.os-shell.no-animations *::after {
    animation: none !important;
    transition: none !important;
}
