/* ==========================================================================
   NefexOS Ultimate — tema inspirado no visual "Aero" (vidro, brilho, azul).
   Desenho original: sem logotipos, papéis de parede ou marcas de terceiros.
   ========================================================================== */

:root {
    --font-ui: "Segoe UI", "Segoe UI Variable Text", system-ui, -apple-system, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
    --font-mono: Consolas, "Cascadia Mono", "Lucida Console", "DejaVu Sans Mono", "Liberation Mono", monospace;

    --taskbar-h: 40px;

    /* Moldura de vidro das janelas */
    --frame: rgba(118, 170, 222, 0.48);
    --frame-inactive: rgba(160, 180, 200, 0.42);
    --frame-border: rgba(0, 0, 0, 0.55);
    --frame-solid: linear-gradient(180deg, #c3d8ee 0%, #9dbde0 40%, #8fb2d8 100%);
    --frame-solid-inactive: linear-gradient(180deg, #d9e2eb 0%, #c4d0dc 100%);

    /* Controles claros */
    --ui-bg: #f0f0f0;
    --ui-border: #8e8f8f;
    --text: #1e1e1e;
    --text-muted: #5f6b78;
    --link: #0066cc;
    --hover-bg: linear-gradient(180deg, #f2f8fd 0%, #dcebfc 100%);
    --hover-border: #7da2ce;
    --select-bg: linear-gradient(180deg, #e2efff 0%, #c5ddf9 100%);
    --select-border: #84acdd;
    --focus: #3d7bad;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font: 12px/1.4 var(--font-ui);
    color: var(--text);
    background: #0b2f5f;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: default; }
[hidden] { display: none !important; }
svg { flex-shrink: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--text-muted); }
kbd { font: 11px var(--font-ui); padding: 0 4px; border: 1px solid #b5bcc6; border-bottom-width: 2px; border-radius: 3px; background: #f7f9fb; color: #445; }
code { font: 12px var(--font-mono); background: #eef2f7; padding: 0 3px; border-radius: 2px; }

/* --------------------------------------------------------------------------
   Papel de parede (original, só CSS)
   -------------------------------------------------------------------------- */
.screen, .desktop {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 45% at 62% 46%, rgba(120, 220, 255, 0.55), transparent 70%),
        radial-gradient(ellipse 40% 35% at 30% 70%, rgba(40, 160, 120, 0.35), transparent 70%),
        radial-gradient(ellipse 70% 60% at 85% 10%, rgba(70, 120, 230, 0.45), transparent 70%),
        linear-gradient(160deg, #0a2a5c 0%, #1258a8 42%, #0d4a8f 62%, #071f45 100%);
}
.screen::before, .desktop::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(118deg, transparent 0 38%, rgba(255, 255, 255, 0.10) 41%, transparent 47%),
        linear-gradient(112deg, transparent 0 52%, rgba(180, 240, 255, 0.16) 55%, transparent 60%),
        linear-gradient(124deg, transparent 0 60%, rgba(255, 255, 255, 0.07) 63%, transparent 70%),
        radial-gradient(circle at 62% 46%, rgba(255, 255, 255, 0.35) 0, transparent 9%);
    mix-blend-mode: screen;
}

/* --------------------------------------------------------------------------
   Inicialização
   -------------------------------------------------------------------------- */
.boot { background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 50; }
.boot::before { display: none; }
.boot-logo { position: relative; width: 96px; height: 96px; }
.boot-orb { width: 96px; height: 96px; position: relative; z-index: 1; animation: boot-in 1.2s ease-out both; }
.boot-glow { position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(circle, rgba(90, 180, 255, 0.55), transparent 65%); animation: boot-pulse 1.6s ease-in-out infinite; }
.boot-text { margin: 40px 0 0; font-size: 18px; color: #fff; font-weight: 300; letter-spacing: .3px; animation: fade-in .8s .4s both; }
.boot-copy { position: absolute; bottom: 28px; margin: 0; color: rgba(255, 255, 255, 0.45); font-size: 12px; }
@keyframes boot-in { from { opacity: 0; transform: scale(.6) rotate(-25deg); } to { opacity: 1; transform: none; } }
@keyframes boot-pulse { 0%, 100% { opacity: .4; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* --------------------------------------------------------------------------
   Logon
   -------------------------------------------------------------------------- */
.logon { display: flex; align-items: center; justify-content: center; z-index: 40; color: #fff; }
.logon-center { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 320px; padding: 0 16px; }
.logon-form { display: flex; flex-direction: column; align-items: center; width: 100%; animation: fade-in .5s both; }
.user-tile {
    width: 128px; height: 128px; padding: 7px;
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.18) 48%, rgba(255,255,255,.08) 52%, rgba(255,255,255,.25));
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 6px 24px rgba(0, 0, 0, 0.45), inset 0 0 12px rgba(255, 255, 255, 0.35);
}
.user-tile svg { width: 100%; height: 100%; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.4); }
.logon-title { margin: 14px 0 16px; font-size: 24px; font-weight: 400; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); }
.logon-input {
    width: 100%; height: 30px; padding: 0 8px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.55);
    background: #fff; color: #111; font-size: 13px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.25);
    outline: none;
}
.logon-input::placeholder { color: #8a8a8a; font-style: italic; }
.logon-input:focus { border-color: #1d5fb4; box-shadow: 0 0 0 2px rgba(110, 190, 255, 0.75); }
.logon-form > .logon-input { margin-bottom: 8px; }
.logon-pw { position: relative; width: 100%; display: flex; gap: 6px; align-items: center; }
.logon-pw .logon-input { flex: 1; }
.logon-go {
    width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid rgba(0, 0, 0, 0.6);
    background: radial-gradient(circle at 50% 30%, #8fd2ff 0%, #2f86d8 45%, #0d4e9e 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 0 6px rgba(0, 0, 0, 0.4);
}
.logon-go svg { width: 16px; height: 16px; }
.logon-go:hover, .logon-go:focus-visible { background: radial-gradient(circle at 50% 30%, #b5e3ff 0%, #45a0ef 45%, #135fb8 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 0 10px rgba(120, 200, 255, 0.9); outline: none; }
.logon-hint { margin: 10px 0 0; font-size: 12px; text-shadow: 0 1px 3px #000; }
.logon-status { display: flex; align-items: center; gap: 14px; font-size: 26px; font-weight: 300; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); animation: fade-in .3s both; }
.logon-error { text-align: center; font-size: 14px; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7); animation: fade-in .2s both; }
.logon-error p { margin: 0 0 16px; }
.logon-brand { position: absolute; bottom: 36px; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 10px; z-index: 1; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.brand-orb { width: 34px; height: 34px; }
.brand-name { font-size: 26px; font-weight: 300; letter-spacing: .5px; }
.brand-ed { font-size: 26px; font-weight: 600; margin-left: -4px; color: #c7e7ff; }

.spinner {
    width: 26px; height: 26px; border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 20%, rgba(150, 215, 255, 0.95) 70%, #fff);
    -webkit-mask: radial-gradient(circle, transparent 55%, #000 57%);
            mask: radial-gradient(circle, transparent 55%, #000 57%);
    animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Botões e campos (estilo clássico)
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    min-width: 75px; height: 24px; padding: 0 12px;
    border: 1px solid #707070; border-radius: 3px;
    background: linear-gradient(180deg, #f2f2f2 0%, #ebebeb 49%, #dddddd 50%, #cfcfcf 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    color: #111; text-decoration: none; white-space: nowrap; font-size: 12px;
}
.btn svg { width: 14px; height: 14px; }
.btn:hover { border-color: #3c7fb1; background: linear-gradient(180deg, #eaf6fd 0%, #d9f0fc 49%, #bee6fd 50%, #a7d9f5 100%); }
.btn:active { border-color: #2c628b; background: linear-gradient(180deg, #e5f4fc 0%, #c4e5f6 49%, #98d1ef 50%, #68b3db 100%); box-shadow: inset 0 1px 3px rgba(0,0,0,.25); }
.btn:focus-visible, .btn-default { border-color: #3399ff; box-shadow: inset 0 0 0 1px #c4e5f6; outline: none; }
.btn:disabled { color: #8d8d8d; border-color: #adb2b5; background: #f4f4f4; box-shadow: none; }
.linkbtn { border: 0; background: none; color: var(--link); padding: 0; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }

.textbox {
    width: 100%; height: 24px; padding: 0 6px;
    border: 1px solid #abadb3; border-top-color: #abadb3; border-radius: 2px;
    background: #fff; color: #111;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06);
    outline: none;
}
.textbox:hover { border-color: #7eb4ea; }
.textbox:focus { border-color: #569de5; }
.textbox[readonly] { background: #fafcff; }
.field-label { display: block; margin: 10px 0 4px; font-weight: 600; color: #1e395b; }
.field-label:first-child { margin-top: 0; }
.field-hint { margin: 5px 0 0; color: var(--text-muted); font-size: 11.5px; }
.field-error { margin: 6px 0 0; color: #c0261b; min-height: 1em; }
.field-error:empty { display: none; }
.prefixed { display: flex; }
.prefixed-pre { display: flex; align-items: center; padding: 0 6px; border: 1px solid #abadb3; border-right: 0; border-radius: 2px 0 0 2px; background: #eef2f6; color: #4a5866; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.prefixed .textbox { border-radius: 0 2px 2px 0; }

/* --------------------------------------------------------------------------
   Área de trabalho e ícones
   -------------------------------------------------------------------------- */
.desktop { z-index: 1; }
.desktop-icons {
    position: absolute; top: 6px; left: 4px; bottom: calc(var(--taskbar-h) + 6px);
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(auto-fill, 92px);
    grid-auto-columns: 84px;
    gap: 2px;
    align-content: start;
    z-index: 1;
}
.desk-icon {
    width: 80px; padding: 4px 2px 3px;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    border: 1px solid transparent; border-radius: 3px;
    background: transparent;
    color: #fff; text-align: center;
    outline: none;
}
.desk-icon svg { width: 48px; height: 48px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45)); }
.desk-icon span {
    font-size: 12px; line-height: 1.25;
    text-shadow: 0 0 2px #000, 0 1px 2px #000, 0 0 6px rgba(0, 0, 0, 0.6);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    word-break: break-word;
}
.desk-icon:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.28); }
.desk-icon.selected { background: rgba(105, 165, 235, 0.38); border-color: rgba(170, 215, 255, 0.75); }
.desk-icon:focus-visible { border: 1px dotted #fff; }
.desk-icon.launching svg { animation: launch .35s ease-out; }
@keyframes launch { 50% { transform: scale(1.15); filter: drop-shadow(0 0 8px rgba(160, 220, 255, 0.9)); } }

/* --------------------------------------------------------------------------
   Barra de tarefas
   -------------------------------------------------------------------------- */
.taskbar {
    position: absolute; left: 0; right: 0; bottom: 0; height: var(--taskbar-h);
    display: flex; align-items: center;
    padding-left: 54px;
    z-index: 9000;
    background:
        linear-gradient(180deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.08) 48%, rgba(0,0,0,.08) 50%, rgba(0,0,0,.22) 100%),
        rgba(18, 42, 78, 0.62);
    border-top: 1px solid rgba(0, 0, 0, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
            backdrop-filter: blur(14px) saturate(160%);
    color: #fff;
}
body:not(.glass) .taskbar { background: linear-gradient(180deg, #3b5f8c 0%, #284a74 48%, #1b3a60 50%, #16304f 100%); -webkit-backdrop-filter: none; backdrop-filter: none; }

.start-orb {
    position: absolute; left: 4px; bottom: 1px;
    width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid rgba(0, 0, 0, 0.75);
    background:
        radial-gradient(ellipse 70% 45% at 50% 22%, rgba(255,255,255,.85), rgba(255,255,255,0) 70%),
        radial-gradient(circle at 50% 75%, #6ad3ff 0%, #1f7dd1 38%, #0b3f86 75%, #062452 100%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) inset, 0 1px 6px rgba(0, 0, 0, 0.6);
    transition: box-shadow .15s, filter .15s;
}
.start-orb svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.6)); }
.start-orb:hover, .start-orb:focus-visible { outline: none; filter: brightness(1.15); box-shadow: 0 0 0 1px rgba(255,255,255,.5) inset, 0 0 14px 3px rgba(120, 210, 255, 0.85); }
.start-orb[aria-expanded="true"] { filter: brightness(.95) saturate(1.2); box-shadow: 0 0 0 1px rgba(255,255,255,.4) inset, 0 0 12px 2px rgba(80, 170, 255, 0.9); }

.task-buttons { flex: 1; display: flex; gap: 3px; height: 100%; align-items: center; padding: 0 6px; overflow: hidden; min-width: 0; }
.task-btn {
    display: flex; align-items: center; gap: 6px;
    flex: 0 1 168px; min-width: 44px; height: 34px; padding: 0 8px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.45);
    background: linear-gradient(180deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,.06) 50%, rgba(255,255,255,0) 51%, rgba(255,255,255,.08) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
    color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    white-space: nowrap; overflow: hidden;
}
.task-btn svg { width: 24px; height: 24px; }
.task-btn span { overflow: hidden; text-overflow: ellipsis; }
.task-btn:hover { background: linear-gradient(180deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,.14) 50%, rgba(255,255,255,.06) 51%, rgba(170,220,255,.25) 100%); }
.task-btn.active {
    background: linear-gradient(180deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,.2) 50%, rgba(255,255,255,.1) 51%, rgba(140,210,255,.45) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), inset 0 -6px 10px rgba(120, 200, 255, 0.35);
}
.task-btn.minimized { opacity: .82; }
.task-btn:focus-visible { outline: 1px dotted #fff; outline-offset: -4px; }

.tray { display: flex; align-items: center; height: 100%; gap: 4px; padding-left: 8px; border-left: 1px solid rgba(0, 0, 0, 0.35); box-shadow: -1px 0 0 rgba(255, 255, 255, 0.15); }
.tray-user { font-size: 11px; opacity: .85; margin-right: 4px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tray-btn { width: 26px; height: 30px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 3px; background: none; }
.tray-btn svg { width: 16px; height: 16px; }
.tray-btn:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.12); }
.clock { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 74px; height: 34px; padding: 0 6px; font-size: 12px; line-height: 1.25; text-shadow: 0 1px 2px #000; border-radius: 3px; }
.clock:hover { background: rgba(255, 255, 255, 0.12); }
.show-desktop {
    width: 14px; height: 100%; margin-left: 4px;
    border: 0; border-left: 1px solid rgba(0, 0, 0, 0.4);
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
}
.show-desktop:hover { background: linear-gradient(90deg, rgba(255,255,255,.4), rgba(255,255,255,.15)); }

/* --------------------------------------------------------------------------
   Janelas (moldura de vidro)
   -------------------------------------------------------------------------- */
.windows { position: absolute; inset: 0 0 var(--taskbar-h) 0; pointer-events: none; z-index: 2; }
.win {
    position: absolute;
    display: flex; flex-direction: column;
    min-width: 280px; min-height: 160px;
    padding: 0 7px 7px;
    border-radius: 7px 7px 5px 5px;
    border: 1px solid var(--frame-border);
    background:
        linear-gradient(112deg, transparent 0 28%, rgba(255,255,255,.18) 31%, transparent 36%, transparent 62%, rgba(255,255,255,.12) 64%, transparent 68%),
        linear-gradient(180deg, rgba(255,255,255,.45) 0, rgba(255,255,255,.12) 30px, rgba(255,255,255,.04) 100%),
        var(--frame);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.15);
    -webkit-backdrop-filter: blur(9px) saturate(150%);
            backdrop-filter: blur(9px) saturate(150%);
    pointer-events: auto;
    resize: both; overflow: hidden;
    transition: opacity .16s ease, transform .16s ease, box-shadow .16s;
    outline: none;
}
.win:not(.active) { background: linear-gradient(180deg, rgba(255,255,255,.35) 0, rgba(255,255,255,.08) 30px), var(--frame-inactive); box-shadow: inset 0 0 0 1px rgba(255,255,255,.45), 0 4px 16px rgba(0,0,0,.35); }
body:not(.glass) .win { background: var(--frame-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
body:not(.glass) .win:not(.active) { background: var(--frame-solid-inactive); }
.win.no-resize { resize: none; }
.win.opening { animation: win-open .18s ease-out; }
@keyframes win-open { from { opacity: 0; transform: scale(.94) translateY(8px); } }
.win.minimized { opacity: 0; transform: scale(.85) translateY(40%); pointer-events: none; visibility: hidden; transition: opacity .16s, transform .16s, visibility 0s .16s; }
.win.maximized { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0; resize: none; padding: 0 0 2px; }
.win.maximized .win-titlebar { padding-left: 8px; }

.win-titlebar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 0 0 1px; flex-shrink: 0; user-select: none; touch-action: none; }
.win-icon { width: 16px; height: 16px; }
.win-title {
    flex: 1; margin: 0; min-width: 0;
    font-size: 12px; font-weight: 400; color: #000;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    text-shadow: 0 0 8px #fff, 0 0 8px #fff, 0 0 4px #fff;
}
.win:not(.active) .win-title { color: #444; }
.win-caption { display: flex; align-self: flex-start; margin-top: -1px; border-radius: 0 0 5px 5px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); }
.cap {
    position: relative; width: 26px; height: 19px;
    border: 1px solid rgba(0, 0, 0, 0.55); border-left-width: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.2) 45%, rgba(255,255,255,.05) 50%, rgba(255,255,255,.25) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}
.cap:first-child { border-left-width: 1px; border-bottom-left-radius: 5px; }
.cap:last-child { border-bottom-right-radius: 5px; }
.cap::before, .cap::after { content: ""; position: absolute; left: 50%; top: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55); }
.cap-min::before { width: 9px; height: 2px; transform: translate(-50%, 2px); }
.cap-min::after { display: none; }
.cap-max::before { width: 9px; height: 7px; transform: translate(-50%, -50%); background: transparent; border: 2px solid #fff; border-top-width: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.5), inset 0 0 0 1px rgba(0,0,0,.5); }
.cap-max::after { display: none; }
.cap-close { width: 43px; background: linear-gradient(180deg, #e8a493 0%, #d16f5b 45%, #c3462e 50%, #d36a4f 100%); }
.win:not(.active) .cap-close { background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.2) 45%, rgba(255,255,255,.05) 50%, rgba(255,255,255,.25) 100%); }
.cap-close::before, .cap-close::after { width: 12px; height: 2.4px; border-radius: 1px; }
.cap-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.cap-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.cap:hover { background: linear-gradient(180deg, #d2ecff 0%, #8cc8f5 45%, #3b97e3 50%, #77c4ff 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 0 8px rgba(110, 200, 255, 0.9); }
.cap-close:hover { background: linear-gradient(180deg, #f9b7a7 0%, #ec7a5c 45%, #d9310f 50%, #f26b42 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 0 10px rgba(255, 110, 70, 0.9); }
.cap:active { filter: brightness(.85); }
.cap:focus-visible { outline: 1px dotted #000; outline-offset: -3px; }
.win.no-max .cap-max { display: none; }
.win.no-min .cap-min { display: none; }

.win-client {
    flex: 1; min-height: 0;
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.55);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55);
    overflow: hidden;
    user-select: text;
}

/* --------------------------------------------------------------------------
   Diálogos (caixa de mensagem) e camada modal
   -------------------------------------------------------------------------- */
.modal-layer { position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; padding: 16px; background: rgba(0, 20, 50, 0.18); }
.modal-layer .win { position: relative; resize: none; width: min(100%, 440px); max-height: calc(100% - 20px); animation: win-open .16s ease-out; }
.modal-layer .win.wide { width: min(100%, 520px); }
.msgbox { display: flex; gap: 14px; padding: 18px 16px 20px; }
.msgbox svg { width: 32px; height: 32px; }
.msgbox p { margin: 6px 0 0; font-size: 12.5px; color: #1e395b; white-space: pre-line; word-break: break-word; }
.msgbox p.msgbox-main { margin-top: 4px; font-size: 13.5px; color: #003399; }
.dialog-buttons { display: flex; justify-content: flex-end; gap: 8px; padding: 11px 12px; background: #f0f0f0; border-top: 1px solid #dfdfdf; }
.dialog-buttons .btn { min-width: 86px; }
.qrbox { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px; }
.qrbox img { width: 200px; height: 200px; image-rendering: pixelated; border: 1px solid #d5dbe3; }
.qrbox p { margin: 0; font-weight: 600; color: #1e395b; word-break: break-all; text-align: center; }

/* --------------------------------------------------------------------------
   Menu Iniciar
   -------------------------------------------------------------------------- */
.start-menu {
    position: absolute; left: 0; bottom: var(--taskbar-h);
    width: 436px; max-width: 100%; height: 470px; max-height: calc(100% - var(--taskbar-h));
    display: flex; gap: 0;
    padding: 8px 8px 8px 8px;
    border: 1px solid rgba(0, 0, 0, 0.65); border-bottom: 0;
    border-radius: 7px 7px 0 0;
    background:
        linear-gradient(115deg, transparent 0 55%, rgba(255,255,255,.12) 58%, transparent 63%),
        linear-gradient(180deg, rgba(255,255,255,.3), rgba(255,255,255,.05) 40px),
        rgba(40, 80, 130, 0.62);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), 4px -2px 24px rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
            backdrop-filter: blur(14px) saturate(160%);
    z-index: 9100;
    animation: start-open .15s ease-out;
}
body:not(.glass) .start-menu { background: linear-gradient(180deg, #4d74a3, #2b4f7d); -webkit-backdrop-filter: none; backdrop-filter: none; }
@keyframes start-open { from { opacity: 0; transform: translateY(10px); } }
.start-left { flex: 0 0 240px; display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(0, 0, 0, 0.55); border-radius: 4px; box-shadow: 0 0 0 1px rgba(255,255,255,.5); overflow: hidden; }
.start-programs { flex: 1; margin: 0; padding: 6px; list-style: none; overflow-y: auto; }
.start-programs li + li { margin-top: 2px; }
.start-item {
    display: flex; align-items: center; gap: 8px; width: 100%;
    padding: 4px 6px; border: 1px solid transparent; border-radius: 3px;
    background: none; text-align: left; color: #1e1e1e; font-size: 12.5px;
}
.start-item svg { width: 32px; height: 32px; }
.start-item small { display: block; color: var(--text-muted); font-size: 11px; }
.start-item:hover, .start-item:focus-visible, .start-item.kbd { background: var(--select-bg); border-color: var(--select-border); outline: none; }
.start-empty { padding: 10px; color: var(--text-muted); }
.start-sep { height: 1px; margin: 6px 4px; background: linear-gradient(90deg, transparent, #d5dde7, transparent); }
.start-search { position: relative; padding: 8px; background: linear-gradient(180deg, #e9eff6, #dce5ef); border-top: 1px solid #c9d4e1; }
.start-search input { width: 100%; height: 26px; padding: 0 28px 0 8px; border: 1px solid #a7b8cc; border-radius: 3px; background: #fff; outline: none; font-style: italic; }
.start-search input:focus { font-style: normal; border-color: #569de5; }
.start-search svg { position: absolute; right: 15px; top: 14px; width: 14px; height: 14px; }
.start-right { flex: 1; display: flex; flex-direction: column; padding: 0 0 0 8px; min-width: 0; position: relative; }
.start-user-tile { align-self: center; width: 60px; height: 60px; margin: -32px 0 8px; padding: 4px; border-radius: 6px; background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.25)); border: 1px solid rgba(255,255,255,.8); box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 3px 10px rgba(0,0,0,.4); }
.start-user-tile svg { width: 100%; height: 100%; border-radius: 3px; }
.start-place {
    display: flex; justify-content: space-between; align-items: baseline; gap: 8px; width: 100%; padding: 6px 10px;
    border: 1px solid transparent; border-radius: 3px;
    background: none; color: #fff; text-align: left; font-size: 12.5px;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.75), 0 1px 1px rgba(0, 0, 0, 0.6);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.start-place:hover, .start-place:focus-visible { outline: none; border-color: rgba(0, 0, 0, 0.45); background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.12) 50%, rgba(255,255,255,.05) 51%, rgba(255,255,255,.18)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.start-user-name { font-weight: 600; }
.start-place .state { opacity: .75; font-size: 11px; }
.start-right hr { border: 0; height: 1px; margin: 6px 4px; background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.25)); }
.start-power { margin-top: auto; display: flex; justify-content: flex-end; }
.power-btn {
    display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px;
    border: 1px solid rgba(0, 0, 0, 0.6); border-radius: 3px;
    background: linear-gradient(180deg, #e98f78 0%, #cf5a3d 48%, #b8381c 50%, #cc5a36 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
}
.power-btn svg { width: 14px; height: 14px; }
.power-btn:hover, .power-btn:focus-visible { outline: none; filter: brightness(1.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 0 10px rgba(255, 130, 90, 0.8); }

/* --------------------------------------------------------------------------
   Menu de contexto
   -------------------------------------------------------------------------- */
.ctx-menu {
    position: absolute; z-index: 9200; min-width: 210px; margin: 0; padding: 2px;
    list-style: none;
    background: #f0f0f0 linear-gradient(90deg, #f1f1f1 0 28px, #e2e3e3 28px 29px, #fff 29px 30px, #f0f0f0 30px);
    border: 1px solid #979797;
    box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.35);
}
.ctx-menu li.sep { height: 1px; margin: 3px 2px 3px 32px; background: #e0e0e0; border-bottom: 1px solid #fff; }
.ctx-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 24px; padding: 0 20px 0 4px; border: 1px solid transparent; border-radius: 3px; background: none; text-align: left; font-size: 12px; }
.ctx-item .ctx-ico { width: 20px; height: 16px; display: grid; place-items: center; }
.ctx-item svg { width: 16px; height: 16px; }
.ctx-item:hover, .ctx-item:focus-visible { outline: none; background: var(--select-bg); border-color: #aecff7; }

/* --------------------------------------------------------------------------
   Balões de notificação
   -------------------------------------------------------------------------- */
.balloons { position: absolute; right: 10px; bottom: calc(var(--taskbar-h) + 10px); display: flex; flex-direction: column; gap: 8px; align-items: flex-end; z-index: 9300; pointer-events: none; }
.balloon {
    position: relative; width: 300px; max-width: calc(100vw - 20px);
    padding: 10px 28px 10px 10px;
    display: flex; gap: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #e4ecf7 100%);
    border: 1px solid #767676; border-radius: 6px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    animation: balloon-in .25s ease-out;
}
.balloon::after { content: ""; position: absolute; right: 40px; bottom: -9px; width: 14px; height: 14px; background: #e4ecf7; border-right: 1px solid #767676; border-bottom: 1px solid #767676; transform: rotate(45deg) skew(10deg, 10deg); }
.balloon + .balloon::after, .balloon:not(:last-child)::after { display: none; }
.balloon svg { width: 24px; height: 24px; }
.balloon strong { display: block; margin-bottom: 2px; color: #1e395b; }
.balloon p { margin: 0; color: #333; word-break: break-word; }
.balloon-close { position: absolute; top: 5px; right: 5px; width: 18px; height: 18px; border: 1px solid transparent; border-radius: 3px; background: none; color: #666; line-height: 14px; font-size: 14px; }
.balloon-close:hover { border-color: #c45545; background: #e88470; color: #fff; }
.balloon.leaving { animation: balloon-out .25s ease-in forwards; }
@keyframes balloon-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes balloon-out { to { opacity: 0; transform: translateY(8px); } }

/* --------------------------------------------------------------------------
   App: Prompt de comando (encurtador)
   -------------------------------------------------------------------------- */
.cmd { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #0c0c0c; color: #c7c7c7; font: 14px/1.45 var(--font-mono); padding: 6px 8px; overflow-y: auto; cursor: text; }
.cmd-out > div { white-space: pre-wrap; word-break: break-word; min-height: 1.45em; }
.cmd .c-white { color: #f2f2f2; }
.cmd .c-ok { color: #6be36b; }
.cmd .c-err { color: #ff7b72; }
.cmd .c-warn { color: #f5d76e; }
.cmd .c-muted { color: #8a8a8a; }
.cmd .c-cyan { color: #61d6d6; }
.cmd a { color: #79b8ff; }
.cmd .cmd-inline-btn { margin-left: 8px; padding: 0 6px; font: 12px var(--font-ui); color: #ddd; background: #2a2a2a; border: 1px solid #555; border-radius: 2px; cursor: pointer; }
.cmd .cmd-inline-btn:hover { background: #3a3a3a; border-color: #888; }
.cmd-line { display: flex; align-items: baseline; }
.cmd-prompt { white-space: nowrap; }
.cmd-input { flex: 1; min-width: 40px; border: 0; padding: 0 0 0 1px; background: transparent; color: #f2f2f2; font: inherit; outline: none; caret-color: #f2f2f2; }
.cmd::-webkit-scrollbar { width: 16px; }
.cmd::-webkit-scrollbar-track { background: #1b1b1b; }
.cmd::-webkit-scrollbar-thumb { background: #4b4b4b; border: 3px solid #1b1b1b; }

/* --------------------------------------------------------------------------
   App: Explorer (Meus links)
   -------------------------------------------------------------------------- */
.explorer { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cmdbar { display: flex; align-items: center; gap: 2px; height: 34px; padding: 0 6px; background: linear-gradient(180deg, #f5f9fd 0%, #e6eff9 50%, #dce7f5 51%, #dbe6f4 100%); border-bottom: 1px solid #a0afc3; flex-shrink: 0; }
.cmdbar-btn { display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border: 1px solid transparent; border-radius: 3px; background: none; color: #1e395b; white-space: nowrap; }
.cmdbar-btn svg { width: 16px; height: 16px; }
.cmdbar-btn:hover { border-color: #a9c6e7; background: linear-gradient(180deg, #fbfdff, #e3eefb); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8); }
.cmdbar-btn:active { background: linear-gradient(180deg, #d6e6f8, #c6dbf3); }
.cmdbar-spacer { flex: 1; }
.searchbox { position: relative; width: 210px; max-width: 45%; }
.searchbox input { width: 100%; height: 24px; padding: 0 24px 0 6px; border: 1px solid #abadb3; border-radius: 2px; background: #fff; outline: none; font-style: italic; }
.searchbox input:focus { border-color: #569de5; font-style: normal; }
.searchbox svg { position: absolute; right: 6px; top: 5px; width: 14px; height: 14px; pointer-events: none; }
.explorer-body { flex: 1; min-height: 0; display: flex; }
.navpane { flex: 0 0 180px; padding: 8px 4px; background: linear-gradient(90deg, #f1f5fb, #eaf0f8); border-right: 1px solid #d5dfe9; overflow-y: auto; }
.navpane-head { margin: 0 0 4px 8px; font-weight: 600; color: #1e395b; }
.nav-item { display: flex; align-items: center; gap: 6px; width: 100%; height: 26px; padding: 0 8px 0 14px; border: 1px solid transparent; border-radius: 3px; background: none; text-align: left; color: #1e1e1e; }
.nav-item svg { width: 16px; height: 16px; }
.nav-item span { flex: 1; }
.nav-item em { font-style: normal; color: var(--text-muted); font-size: 11px; }
.nav-item:hover { background: var(--hover-bg); border-color: #b8d6fb; }
.nav-item.active { background: var(--select-bg); border-color: var(--select-border); }
.explorer-content { flex: 1; min-width: 0; overflow: auto; background: #fff; }
.statusbar { display: flex; justify-content: space-between; gap: 10px; height: 24px; padding: 0 10px; align-items: center; flex-shrink: 0; background: linear-gradient(180deg, #f6f8fb, #e9eef5); border-top: 1px solid #c9d4e1; color: #1e395b; font-size: 11.5px; }

.grid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.grid th {
    position: sticky; top: 0; z-index: 1;
    height: 24px; padding: 0 8px; text-align: left; font-weight: 400; color: #4c607a;
    background: linear-gradient(180deg, #ffffff 0%, #f6f7f9 50%, #edf0f4 100%);
    border-bottom: 1px solid #d5d5d5; border-right: 1px solid #e5e5e5;
    white-space: nowrap;
}
.grid td { height: 26px; padding: 2px 8px; border: 1px solid transparent; border-left: 0; border-right: 0; white-space: nowrap; max-width: 0; overflow: hidden; text-overflow: ellipsis; }
.grid td:first-child { border-left: 1px solid transparent; border-radius: 3px 0 0 3px; }
.grid td:last-child { border-right: 1px solid transparent; border-radius: 0 3px 3px 0; }
.grid tbody tr:hover td { background: linear-gradient(180deg, #f2f8fd, #e3f0fb); border-color: #b8d6fb; }
.grid tbody tr.selected td { background: var(--select-bg); border-color: var(--select-border); }
.grid .col-name { width: 22%; font-weight: 600; color: #1e395b; }
.grid .col-name svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }
.grid .col-dest { width: auto; color: #3d4f63; }
.grid .col-num { width: 70px; text-align: right; }
.grid .col-date { width: 130px; color: #4c607a; }
.grid .col-act { width: 120px; text-align: right; overflow: visible; }
.row-actions { display: inline-flex; gap: 1px; }
.icon-btn { width: 26px; height: 22px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 3px; background: none; }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { border-color: #3c7fb1; background: linear-gradient(180deg, #eaf6fd, #bee6fd); }
.icon-btn:focus-visible { outline: 1px dotted #000; }
.icon-btn.danger:hover { border-color: #b8432f; background: linear-gradient(180deg, #fde9e5, #f7c4b9); }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; min-height: 200px; padding: 24px; color: var(--text-muted); text-align: center; }
.empty-state svg { width: 56px; height: 56px; opacity: .85; }
.empty-state strong { color: #1e395b; font-size: 13px; font-weight: 600; }
.loading-state { display: flex; align-items: center; justify-content: center; gap: 10px; height: 100%; min-height: 160px; color: var(--text-muted); }
.loading-state .spinner { width: 20px; height: 20px; background: conic-gradient(from 0deg, transparent 0 20%, #3a8be0 70%, #0b3f86); }

/* --------------------------------------------------------------------------
   App: Enviar arquivo
   -------------------------------------------------------------------------- */
.upload { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px; overflow-y: auto; background: linear-gradient(180deg, #fff 0%, #f4f8fc 100%); }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 12px; border: 2px dashed #9fb6cd; border-radius: 6px; background: #f8fbff; text-align: center; outline: none; cursor: pointer; transition: background .15s, border-color .15s; }
.dropzone:hover, .dropzone:focus-visible { border-color: #569de5; background: #eef6ff; }
.dropzone.dragover { border-color: #2c8a1e; background: #ecf9e8; }
.dropzone-icon { width: 48px; height: 48px; }
.dropzone-title { margin: 4px 0 0; font-size: 14px; color: #1e395b; }
.dropzone-or { margin: 0; color: var(--text-muted); }
.upload-hint { margin: 0; color: var(--text-muted); font-size: 11.5px; text-align: center; }
.upload-file { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #d5dfe9; border-radius: 4px; background: #fff; }
.upload-file svg { width: 24px; height: 24px; }
.upload-file-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.upload-file-info strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-file-info span { color: var(--text-muted); font-size: 11.5px; }
.progress { position: relative; height: 18px; border: 1px solid #bcbcbc; border-radius: 3px; background: linear-gradient(180deg, #f3f3f3, #e2e2e2); overflow: hidden; }
.progress-bar { position: relative; height: 100%; width: 0; background: linear-gradient(180deg, #b6f3a5 0%, #4fd23a 45%, #06b025 50%, #1fc33c 100%); transition: width .2s; overflow: hidden; }
.progress-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); width: 80px; animation: progress-shine 1.6s linear infinite; }
@keyframes progress-shine { from { transform: translateX(-80px); } to { transform: translateX(600px); } }
.progress-label { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; color: #222; text-shadow: 0 0 3px #fff; }
.upload-status { margin: 0; min-height: 1em; text-align: center; }
.upload-status.ok { color: #1d7012; }
.upload-status.err { color: #c0261b; }
.upload-status:empty { display: none; }
.result-row { display: flex; gap: 6px; }
.result-row .textbox { flex: 1; min-width: 0; }
.result-row .btn { min-width: 0; }
.upload-footer { margin-top: auto; text-align: center; padding-top: 4px; }

/* --------------------------------------------------------------------------
   App: Novo link (diálogo)
   -------------------------------------------------------------------------- */
.newlink { display: flex; flex-direction: column; }
.newlink > div:first-child, .newlink > div[data-ref="resultView"] { padding: 16px; }
.newlink-success { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14px; color: #1d5e12; }
.newlink-success svg { width: 24px; height: 24px; }
.newlink-result { display: flex; gap: 14px; align-items: flex-start; }
.newlink-result-info { flex: 1; min-width: 0; }
.newlink-dest { margin: 6px 0 10px; font-size: 11.5px; word-break: break-all; }
.newlink-result-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.qr-img { width: 128px; height: 128px; flex-shrink: 0; image-rendering: pixelated; border: 1px solid #d5dbe3; background: #fff; }

/* --------------------------------------------------------------------------
   App: Bloco de notas
   -------------------------------------------------------------------------- */
.notepad { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.menubar { display: flex; gap: 2px; padding: 2px 4px; background: linear-gradient(180deg, #fbfcfd, #e9eef5); border-bottom: 1px solid #c9d4e1; flex-shrink: 0; }
.menubar-btn { display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border: 1px solid transparent; border-radius: 3px; background: none; }
.menubar-btn svg { width: 16px; height: 16px; }
.menubar-btn kbd { margin-left: 4px; font-size: 10px; }
.menubar-btn:hover { border-color: #a9c6e7; background: linear-gradient(180deg, #fbfdff, #e3eefb); }
.notepad-text { flex: 1; min-height: 0; width: 100%; padding: 6px 8px; border: 0; resize: none; outline: none; font: 14px/1.45 var(--font-mono); color: #111; background: #fff; }

/* --------------------------------------------------------------------------
   App: Rádio
   -------------------------------------------------------------------------- */
.player { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px; background: linear-gradient(180deg, #1f3550 0%, #0d1a2b 100%); color: #e8f1fb; }
.player-video { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #000; border: 1px solid #000; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.player-video > div, .player-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.player-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #9fb4ca; }
.player-placeholder svg { width: 48px; height: 48px; opacity: .8; }
.player-meta { display: flex; flex-direction: column; text-align: center; }
.player-meta strong { font-size: 14px; font-weight: 600; }
.player-meta span { color: #9fb4ca; font-size: 11.5px; }
.player-seek { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.player-seek-fill { height: 100%; width: 0; background: linear-gradient(90deg, #4fb4ff, #9fe0ff); }
.player-controls { display: flex; align-items: center; gap: 10px; }
.player-play {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid rgba(0, 0, 0, 0.7);
    background: radial-gradient(ellipse 70% 45% at 50% 22%, rgba(255,255,255,.75), rgba(255,255,255,0) 70%), radial-gradient(circle at 50% 75%, #6ad3ff 0%, #1f7dd1 45%, #0b3f86 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 0 8px rgba(0,0,0,.5);
}
.player-play svg { width: 16px; height: 16px; }
.player-play:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 0 12px rgba(110, 200, 255, 0.9); }
.player-vol-icon { width: 16px; height: 16px; opacity: .8; }
.player-volume { flex: 1; accent-color: #4fb4ff; }

/* --------------------------------------------------------------------------
   App: Sobre
   -------------------------------------------------------------------------- */
.about { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 18px 12px; color: #1e1e1e; }
.about-head { display: flex; gap: 14px; align-items: center; }
.about-logo { width: 56px; height: 56px; }
.about h2 { margin: 0; font-size: 22px; font-weight: 300; color: #1e395b; }
.about h2 span { font-weight: 600; color: #1565c2; }
.about-head p { margin: 2px 0 0; color: var(--text-muted); }
.about hr { border: 0; border-top: 1px solid #d5dfe9; margin: 12px 0; }
.about h3 { margin: 10px 0 4px; font-size: 13px; font-weight: 600; color: #1e395b; }
.about ul { margin: 0; padding-left: 18px; }
.about li { margin: 3px 0; }
.about-actions { display: flex; justify-content: flex-end; margin-top: 14px; }

/* --------------------------------------------------------------------------
   Celular e telas pequenas
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    :root { --taskbar-h: 48px; }
    body { font-size: 14px; }

    .desktop-icons {
        top: 10px; left: 8px; right: 8px; bottom: calc(var(--taskbar-h) + 10px);
        grid-auto-flow: row;
        grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
        grid-template-rows: none; grid-auto-rows: 104px;
        grid-auto-columns: auto;
        justify-items: center;
    }
    .desk-icon { width: 88px; }
    .desk-icon svg { width: 54px; height: 54px; }
    .desk-icon span { font-size: 13px; }

    .taskbar { padding-left: 58px; }
    .start-orb { width: 48px; height: 48px; bottom: 0; }
    .task-btn { flex: 0 0 44px; justify-content: center; padding: 0; height: 40px; }
    .task-btn span { display: none; }
    .tray-user, .tray-btn { display: none; }
    .clock { min-width: 0; font-size: 13px; }
    .clock #clock-date { display: none; }

    .win, .win.maximized {
        left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important;
        border-radius: 0; padding: 0; resize: none; min-width: 0;
    }
    .win .cap-max, .win .cap-min { display: none; }
    .win-titlebar { height: 44px; padding-left: 10px; }
    .win-title { font-size: 15px; }
    .win-icon { width: 20px; height: 20px; }
    .win-caption { align-self: stretch; margin: 0; border-radius: 0; box-shadow: none; }
    .cap-close { width: 52px; height: 100%; border-radius: 0 !important; border-width: 0 0 0 1px; }
    .win-client { border-left: 0; border-right: 0; border-bottom: 0; }

    .modal-layer { align-items: end; padding: 0; }
    .modal-layer .win { width: 100% !important; height: auto !important; max-height: 92%; border-radius: 10px 10px 0 0; padding: 0; }
    .modal-layer .win .win-titlebar { height: 40px; }

    .start-menu { width: 100%; height: auto; max-height: calc(100% - var(--taskbar-h)); border-radius: 10px 10px 0 0; flex-direction: column-reverse; padding: 8px; }
    .start-left { flex: 1 1 auto; min-height: 0; }
    .start-right { flex: none; padding: 0 0 8px; flex-direction: row; flex-wrap: wrap; gap: 4px; align-items: center; }
    .start-user-tile { display: none; }
    .start-right hr { display: none; }
    .start-place { width: auto; flex: 1 1 45%; font-size: 13.5px; }
    .start-user-name { flex-basis: 100%; }
    .start-power { margin: 0; flex: 1 1 100%; }
    .start-item { padding: 8px; font-size: 14.5px; }

    .btn { height: 34px; font-size: 14px; }
    .textbox, .searchbox input { height: 36px; font-size: 16px; }
    .cmd { font-size: 14px; }
    .cmd-input { font-size: 16px; }
    .logon-input { height: 40px; font-size: 16px; }
    .logon-go { width: 40px; height: 40px; }

    .explorer-body { flex-direction: column; }
    .navpane { flex: none; display: flex; gap: 4px; padding: 6px; border-right: 0; border-bottom: 1px solid #d5dfe9; overflow-x: auto; }
    .navpane-head { display: none; }
    .nav-item { flex: 1; height: 34px; padding: 0 10px; justify-content: center; }
    .nav-item span { flex: none; }
    .cmdbar { height: 44px; }
    .cmdbar-btn { height: 34px; }
    .cmdbar-btn span { display: none; }
    .searchbox { width: auto; flex: 1; max-width: none; margin-left: 6px; }

    .grid thead { display: none; }
    .grid, .grid tbody, .grid tr, .grid td { display: block; width: 100%; max-width: none; }
    .grid tr { position: relative; padding: 10px 12px; border-bottom: 1px solid #e3e8ef; }
    .grid td { height: auto; padding: 1px 0; border: 0 !important; white-space: normal; word-break: break-all; background: none !important; }
    .grid .col-name, .grid .col-dest, .grid .col-act { width: auto; max-width: none; }
    .grid .col-dest { font-size: 13px; padding-right: 4px; }
    .grid .col-name { font-size: 15px; padding-right: 150px; word-break: normal; overflow-wrap: anywhere; }
    .grid .col-num, .grid .col-date { display: inline-block; width: auto; text-align: left; margin-right: 12px; color: var(--text-muted); font-size: 12.5px; }
    .grid .col-num::after { content: attr(data-suffix); }
    .grid .col-act { position: absolute; top: 8px; right: 8px; width: auto; }
    .icon-btn { width: 34px; height: 32px; }

    .newlink-result { flex-direction: column; align-items: center; }
    .newlink-result-info { width: 100%; }
    .balloons { left: 10px; right: 10px; align-items: stretch; }
    .balloon { width: auto; }
}

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
