/*
 * Virii8 Workspace Shell CSS module: inline-style-1
 * Extracted from shell-core.css during v1.6.122 modular shell refactor.
 * Load order is controlled by V8E_Module_WorkspaceShell::enqueue_embedded_shell_assets().
 */
/* ---- inline-style-1 ---- */
html, body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    background: #050505;
  }

  :root {
    --v8-bg-mac: url("https://images.unsplash.com/photo-1557683316-973673baf926?q=80&w=2000&auto=format&fit=crop") /* v8e-bg-mac */;
    --v8-bg-win: url("https://images.unsplash.com/photo-1618553011681-37dce34a66bd?q=80&w=2000&auto=format&fit=crop");
    --v8-bg-ios: linear-gradient(180deg, rgba(24, 31, 58, 0.12), rgba(10, 16, 28, 0.35)), url("https://images.unsplash.com/photo-1519608487953-e999c86e7455?q=80&w=2000&auto=format&fit=crop");
    --v8-bg-android: linear-gradient(180deg, rgba(13, 23, 28, 0.2), rgba(5, 12, 16, 0.45)), url("https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=2000&auto=format&fit=crop");
    --v8-glass-bg: rgba(19, 25, 36, 0.68);
    --v8-glass-strong: rgba(8, 12, 20, 0.84);
    --v8-glass-border: rgba(255, 255, 255, 0.12);
    --v8-glass-border-strong: rgba(255, 255, 255, 0.22);
    --v8-text-main: #f8fafc;
    --v8-text-soft: #cbd5e1;
    --v8-text-muted: #94a3b8;
    --v8-accent: #38bdf8;
    --v8-good: #22c55e;
    --v8-warn: #f59e0b;
    --v8-bad: #ef4444;
    --v8-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  }

  .v8-os-environment {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    max-height: 1050px;
    overflow: hidden;
    margin: 0;
    border-radius: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--v8-text-main);
    background-size: cover;
    background-position: center;
    box-shadow: var(--v8-shadow), 0 0 0 1px rgba(255,255,255,0.06);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-image 0.35s ease, filter 0.25s ease;
    isolation: isolate;
  }

  .v8-os-environment::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.15), transparent 28%),
                linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.25));
    pointer-events: none;
    z-index: 0;
  }

  .v8-os-environment:fullscreen {
    width: 100vw;
    height: 100vh;
    max-height: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .v8-os-environment *,
  .v8-os-environment *::before,
  .v8-os-environment *::after { box-sizing: border-box; }

  .v8-selected-mac.v8-platform-mac { background-image: var(--v8-bg-mac); }
  .v8-selected-win.v8-platform-win { background-image: var(--v8-bg-win); }
  .v8-selected-mac.v8-platform-ios { background-image: var(--v8-bg-ios); }
  .v8-selected-win.v8-platform-android { background-image: var(--v8-bg-android); }

  .v8-is-offline {
    filter: saturate(0.78) brightness(0.9);
  }

  .v8-is-offline::after {
    content: "Offline Mode";
    position: absolute;
    right: 18px;
    bottom: 84px;
    z-index: 9;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
    pointer-events: none;
  }

  .v8-boot-screen {
    position: absolute;
    inset: 0;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #050505;
    transition: opacity 0.55s ease, visibility 0.55s ease;
  }

  .v8-unix-logs {
    position: absolute;
    top: 16px;
    left: 16px;
    width: calc(100% - 32px);
    color: #10b981;
    font: 0.78rem/1.4 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0.9;
  }

  .v8-boot-gui {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: v8-fade-in 0.4s ease forwards;
  }

  .v8-boot-logo {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 0.18em;
  }

  .v8-boot-bar {
    width: 240px;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
  }

  .v8-boot-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #fff, #94e2ff);
    border-radius: inherit;
    animation: v8-boot-load 1.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  @keyframes v8-boot-load {
    0% { width: 0%; }
    40% { width: 34%; }
    80% { width: 82%; }
    100% { width: 100%; }
  }

  @keyframes v8-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .v8-global-controls {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 99998;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: v8-fade-in 1s ease 1.9s forwards;
  }

  .v8-control-chip {
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--v8-glass-border);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(16px);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  }

  .v8-control-chip:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.28);
  }

  .v8-control-chip.active {
    background: rgba(56, 189, 248, 0.92);
    border-color: rgba(56, 189, 248, 0.92);
    color: #02131d;
  }

  .v8-control-chip svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex: 0 0 auto;
  }

  .v8-device-pill {
    pointer-events: none;
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.14);
    color: var(--v8-text-soft);
    font-weight: 500;
  }

  .v8-mobile-topbar,
  .v8-phone-search,
  .v8-phone-dock,
  .v8-android-nav,
  .v8-ios-home-indicator,
  .v8-mobile-page-dots {
    display: none;
  }

  .v8-mobile-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 34px;
    z-index: 9997;
    padding: 0 14px;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
    background: linear-gradient(180deg, rgba(0,0,0,0.36), rgba(0,0,0,0));
  }

  .v8-mobile-topbar-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
  }

  .v8-mobile-topbar button {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
  }

  .v8-phone-search {
    position: absolute;
    top: 52px;
    left: 50%;
    -webkit-transform: translateX(-50%) translateZ(0);
    transform: translateX(-50%) translateZ(0);
    will-change: transform;
    isolation: isolate;
    width: min(92%, 420px);
    height: 38px;
    z-index: 7;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(16, 18, 24, 0.48);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.08);
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.84);
    font-size: 0.84rem;
  }

  .v8-phone-dock {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: min(92%, 420px);
    padding: 10px;
    z-index: 7;
    border-radius: 28px;
    background: rgba(255,255,255,0.17);
    backdrop-filter: blur(32px);
    border: 1px solid rgba(255,255,255,0.22);
    display: none;
    justify-content: center;
    gap: 14px;
  }

  .v8-phone-dock .v8-taskbar-icon {
    width: 56px;
    height: 56px;
    font-size: 1.7rem;
    border-radius: 16px;
    border: none;
    background: rgba(255,255,255,0.14);
  }

  .v8-mobile-page-dots {
    position: absolute;
    bottom: 102px;
    left: 50%;
    transform: translateX(-50%);
    gap: 8px;
    z-index: 7;
  }

  .v8-mobile-page-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.38);
  }

  .v8-mobile-page-dots span.active {
    width: 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.95);
  }

  .v8-ios-home-indicator {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    width: 138px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255,255,255,0.95);
    z-index: 7;
    opacity: 0.94;
  }

  .v8-android-nav {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: min(90%, 360px);
    height: 34px;
    z-index: 7;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 28px;
    color: rgba(255,255,255,0.88);
    font-size: 1rem;
  }

  .v8-android-nav button {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: inherit;
    font-size: 0.95rem;
    cursor: pointer;
  }

  .v8-menubar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    z-index: 9996;
    padding: 0 14px;
    display: none;
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.84rem;
  }

  .v8-menubar-left,
  .v8-menubar-right {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 100%;
  }

  .v8-menubar-right {
    margin-left: auto;
    gap: 8px;
  }

  .v8-menu-root {
    position: relative;
    height: 100%;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    cursor: default;
  }

  .v8-menu-root:hover,
  .v8-menu-root.active { background: rgba(255,255,255,0.14); }

  .v8-mac-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 220px;
    display: none;
    flex-direction: column;
    padding: 6px;
    border-radius: 12px;
    background: rgba(18, 23, 32, 0.82);
    backdrop-filter: blur(28px);
    border: 1px solid var(--v8-glass-border);
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  }

  .v8-menu-root.active .v8-mac-dropdown { display: flex; }

  .v8-mac-dropdown-item {
    padding: 9px 12px;
    border-radius: 8px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.84rem;
  }

  .v8-mac-dropdown-item:hover { background: rgba(56, 189, 248, 0.92); }

  .v8-status-trigger {
    height: 24px;
    padding: 0 9px;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font: inherit;
    cursor: pointer;
    transition: background 0.18s ease;
  }

  .v8-status-trigger:hover { background: rgba(255,255,255,0.15); }

  .v8-network-icon.online { color: #a7f3d0; }
  .v8-network-icon.offline { color: #fecaca; }

  .v8-desktop {
    position: absolute;
    top: 44px;
    left: 16px;
    right: 16px;
    bottom: 84px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-content: flex-start;
    gap: 14px;
    flex-wrap: wrap;
  }

  .v8-desktop-icon {
    width: 88px;
    padding: 10px 6px;
    border-radius: 12px;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
  }

  .v8-desktop-icon:hover,
  .v8-desktop-icon.selected {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-1px);
  }

  .v8-icon-img {
    font-size: 2.15rem;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.45));
  }

  .v8-icon-text {
    font-size: 0.75rem;
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  }

  .v8-context-menu,
  .v8-status-panel {
    position: absolute;
    z-index: 99999;
    display: none;
    flex-direction: column;
    border-radius: 18px;
    background: rgba(15, 21, 32, 0.86);
    backdrop-filter: blur(30px) saturate(160%);
    border: 1px solid var(--v8-glass-border);
    box-shadow: 0 24px 60px rgba(0,0,0,0.52);
  }

  .v8-context-menu.active,
  .v8-status-panel.active {
    display: flex;
    animation: v8-fade-in 0.16s ease forwards;
  }

  .v8-context-menu {
    width: 230px;
    padding: 8px;
  }

  .v8-context-item {
    padding: 10px 12px;
    border-radius: 10px;
    color: #fff;
    font-size: 0.84rem;
    cursor: pointer;
  }

  .v8-context-item:hover { background: rgba(56, 189, 248, 0.9); }

  .v8-context-divider {
    height: 1px;
    margin: 6px 0;
    background: rgba(255,255,255,0.08);
  }

  .v8-status-panel {
    min-width: 310px;
    max-width: 360px;
    padding: 14px;
    gap: 12px;
  }

  .v8-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .v8-panel-title {
    font-size: 1rem;
    font-weight: 700;
  }

  .v8-panel-close {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: inherit;
    cursor: pointer;
  }

  .v8-time-hero {
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.08);
  }

  .v8-time-now {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
  }

  .v8-date-long {
    margin-top: 8px;
    color: var(--v8-text-soft);
    font-size: 0.92rem;
  }

  .v8-calendar-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .v8-calendar-controls button,
  .v8-panel-action,
  .v8-soft-btn {
    height: 36px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.06);
    color: inherit;
    font-weight: 600;
    cursor: pointer;
  }

  .v8-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
  }

  .v8-calendar-weekday,
  .v8-calendar-day {
    display: grid;
    place-items: center;
    min-height: 34px;
    border-radius: 12px;
    font-size: 0.84rem;
  }

  .v8-calendar-weekday {
    color: var(--v8-text-muted);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.69rem;
  }

  .v8-calendar-day.muted { color: rgba(255,255,255,0.35); }
  .v8-calendar-day.today {
    background: rgba(56, 189, 248, 0.92);
    color: #03141d;
    font-weight: 800;
  }

  .v8-panel-card {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
  }

  .v8-network-state {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .v8-network-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    flex: 0 0 auto;
  }

  .v8-network-dot.online {
    background: var(--v8-good);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
  }

  .v8-network-dot.offline {
    background: var(--v8-bad);
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.12);
  }

  .v8-meta-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 16px;
    align-items: center;
    font-size: 0.85rem;
  }

  .v8-meta-grid dt {
    margin: 0;
    color: var(--v8-text-muted);
  }

  .v8-meta-grid dd {
    margin: 0;
    text-align: right;
    font-weight: 600;
    color: #fff;
  }

  .v8-panel-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .v8-panel-action.primary {
    background: rgba(56, 189, 248, 0.92);
    border-color: rgba(56, 189, 248, 0.92);
    color: #03141d;
  }

  .v8-start-menu {
    position: absolute;
    left: 50%;
    bottom: 64px;
    transform: translateX(-50%) translateY(16px);
    width: 400px;
    z-index: 99995;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    border-radius: 22px;
    opacity: 0;
    pointer-events: none;
    background: rgba(15, 23, 42, 0.84);
    backdrop-filter: blur(32px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 28px 70px rgba(0,0,0,0.55);
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .v8-start-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .v8-start-search {
    height: 42px;
    border-radius: 999px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--v8-text-soft);
    font-size: 0.84rem;
  }

  .v8-start-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .v8-start-app {
    padding: 12px 8px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-align: center;
  }

  .v8-start-app:hover { background: rgba(255,255,255,0.08); }

  .v8-start-app-icon { font-size: 1.65rem; }
  .v8-start-app-name { font-size: 0.74rem; color: #fff; }

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

  .v8-start-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.84rem;
  }

  .v8-start-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(56, 189, 248, 0.9);
    color: #06161f;
    font-weight: 800;
  }

  .v8-start-power {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    color: var(--v8-text-main);
    cursor: pointer;
  }

  .v8-window {
    position: absolute;
    width: 760px;
    height: 500px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    opacity: 0.95;
    background: var(--v8-glass-bg);
    backdrop-filter: blur(26px) saturate(170%);
    border: 1px solid var(--v8-glass-border);
    box-shadow: 0 16px 50px rgba(0,0,0,0.45);
    transition: transform 0.24s ease, opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .v8-window.v8-focused {
    opacity: 1;
    border-color: var(--v8-glass-border-strong);
    box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  }

  .v8-window.minimized {
    opacity: 0;
    pointer-events: none;
    transform: translateY(70px) scale(0.92);
  }

  .v8-window.maximized {
    left: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
    transform: none !important;
  }

  .v8-platform-mac .v8-window,
  .v8-platform-ios .v8-window { border-radius: 18px; }

  .v8-platform-win .v8-window,
  .v8-platform-android .v8-window { border-radius: 10px; }

  .v8-platform-mac .v8-window.maximized { top: 30px !important; height: calc(100% - 30px) !important; }
  .v8-platform-win .v8-window.maximized,
  .v8-platform-android .v8-window.maximized { top: 0 !important; height: calc(100% - 54px) !important; }

  .v8-resizer {
    position: absolute;
    z-index: 3;
    touch-action: none;
  }

  .v8-resizer-e { top: 0; right: -5px; bottom: 0; width: 10px; cursor: e-resize; }
  .v8-resizer-s { left: 0; right: 0; bottom: -5px; height: 10px; cursor: s-resize; }
  .v8-resizer-se { right: -5px; bottom: -5px; width: 14px; height: 14px; cursor: se-resize; }

  .v8-window.maximized .v8-resizer { display: none; }

  .v8-window-header {
    position: relative;
    z-index: 2;
    height: 42px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,0,0,0.28);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    cursor: grab;
    touch-action: none;
  }

  .v8-window-header:active { cursor: grabbing; }

  .v8-window-title {
    flex: 1;
    font-size: 0.84rem;
    font-weight: 600;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0.85;
  }

  .v8-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
  }

  .v8-control-btn {
    position: relative;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
  }

  .v8-platform-mac .v8-controls { order: 1; }
  .v8-platform-mac .v8-window-title { order: 2; text-align: center; padding-right: 50px; }
  .v8-platform-ios .v8-controls { order: 1; }
  .v8-platform-ios .v8-window-title { order: 2; text-align: center; padding-right: 12px; }
  .v8-platform-mac .v8-btn-close,
  .v8-platform-ios .v8-btn-close { background: #ff5f56; }
  .v8-platform-mac .v8-btn-min,
  .v8-platform-ios .v8-btn-min { background: #ffbd2e; }
  .v8-platform-mac .v8-btn-max,
  .v8-platform-ios .v8-btn-max { background: #28c840; }

  .v8-platform-win .v8-window-header,
  .v8-platform-android .v8-window-header {
    height: 38px;
    background: rgba(0,0,0,0.52);
  }

  .v8-platform-win .v8-controls,
  .v8-platform-android .v8-controls {
    order: 2;
    margin-left: auto;
    gap: 0;
    height: 100%;
    margin-right: -14px;
  }

  .v8-platform-win .v8-window-title,
  .v8-platform-android .v8-window-title {
    order: 1;
    text-align: left;
    padding-left: 6px;
  }

  .v8-platform-win .v8-control-btn,
  .v8-platform-android .v8-control-btn {
    width: 46px;
    height: 100%;
    border-radius: 0;
    background: transparent;
    color: #fff;
  }

  .v8-win-svg {
    display: none;
    width: 10px;
    height: 10px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.2;
  }

  .v8-platform-win .v8-win-svg,
  .v8-platform-android .v8-win-svg { display: block; }

  .v8-platform-win .v8-control-btn:hover,
  .v8-platform-android .v8-control-btn:hover { background: rgba(255,255,255,0.12); }

  .v8-platform-win .v8-btn-close:hover,
  .v8-platform-android .v8-btn-close:hover { background: #e81123; }

  .v8-window-body {
    flex: 1;
    overflow: auto;
    position: relative;
    z-index: 1;
    user-select: text;
  }

  .v8-window-body::-webkit-scrollbar { width: 7px; }
  .v8-window-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 999px;
  }

  .v8-content-inner {
    padding: 1.4rem;
    color: var(--v8-text-soft);
    line-height: 1.7;
  }

  .v8-content-inner h2 {
    margin: 0 0 1rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1.24rem;
  }

  .v8-content-inner h3 {
    margin: 1.25rem 0 0.45rem;
    color: var(--v8-accent);
    font-size: 1rem;
  }

  .v8-highlight-box {
    padding: 1rem 1.1rem;
    border-radius: 0 16px 16px 0;
    background: rgba(0,0,0,0.28);
    border-left: 3px solid var(--v8-accent);
  }

  .v8-app-layout {
    display: flex;
    min-height: 100%;
  }

  .v8-sidebar {
    width: 230px;
    flex: 0 0 auto;
    padding: 1rem 0;
    background: rgba(0,0,0,0.35);
    border-right: 1px solid rgba(255,255,255,0.06);
    overflow: auto;
  }

  .v8-sidebar-item {
    padding: 10px 15px;
    border-left: 3px solid transparent;
    color: var(--v8-text-muted);
    font-size: 0.84rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
  }

  .v8-sidebar-item:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
  }

  .v8-sidebar-item.active {
    background: rgba(56, 189, 248, 0.12);
    border-left-color: var(--v8-accent);
    color: var(--v8-accent);
    font-weight: 600;
  }

  .v8-app-content {
    flex: 1;
    min-width: 0;
    padding: 1.2rem 1.4rem 1.4rem;
    background: rgba(255,255,255,0.02);
    overflow: auto;
  }

  .v8-tab-pane { display: none; animation: v8-fade-in 0.16s ease forwards; }
  .v8-tab-pane.active { display: block; }

  .v8-stat-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
  }

  .v8-stat-card {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
  }

  .v8-stat-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--v8-text-muted);
  }

  .v8-stat-value {
    margin-top: 6px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
  }

  .v8-taskbar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9994;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: transform 0.25s ease;
  }

  .v8-taskbar-icons {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .v8-taskbar-icon,
  .v8-start-btn {
    position: relative;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    background: rgba(255,255,255,0.14);
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 1.55rem;
    color: #fff;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  }

  .v8-taskbar-icon:hover,
  .v8-start-btn:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.22);
  }

  .v8-taskbar-icon.open::after {
    content: "";
    position: absolute;
    bottom: -6px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
  }

  .v8-taskbar-icon::before,
  .v8-start-btn::before {
    content: attr(data-title);
    position: absolute;
    top: -34px;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 0.73rem;
    color: #fff;
    transition: opacity 0.16s ease, transform 0.16s ease;
  }

  .v8-taskbar-icon:hover::before,
  .v8-start-btn:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .v8-start-btn { display: none; }

  .v8-sys-tray {
    display: none;
    align-items: center;
    gap: 8px;
    position: absolute;
    right: 14px;
  }

  .v8-platform-mac .v8-taskbar,
  .v8-platform-ios .v8-taskbar {
    width: auto;
    left: 50%;
    right: auto;
    bottom: 16px;
    transform: translateX(-50%);
    padding: 10px 14px;
    border-radius: 28px;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(34px);
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 20px 50px rgba(0,0,0,0.28);
  }

  .v8-platform-mac .v8-taskbar-icon:hover,
  .v8-platform-ios .v8-taskbar-icon:hover {
    transform: translateY(-10px) scale(1.08);
  }

  .v8-platform-win .v8-taskbar,
  .v8-platform-android .v8-taskbar {
    bottom: 0;
    width: 100%;
    height: 54px;
    padding: 0 14px;
    justify-content: center;
    background: rgba(12, 18, 31, 0.84);
    backdrop-filter: blur(28px);
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -14px 40px rgba(0,0,0,0.28);
  }

  .v8-platform-win .v8-start-btn,
  .v8-platform-android .v8-start-btn { display: grid; }

  .v8-platform-win .v8-taskbar-icon,
  .v8-platform-android .v8-taskbar-icon,
  .v8-platform-win .v8-start-btn,
  .v8-platform-android .v8-start-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
  }

  .v8-platform-win .v8-taskbar-icon.open,
  .v8-platform-android .v8-taskbar-icon.open {
    background: rgba(255,255,255,0.08);
    border-bottom: 3px solid var(--v8-accent);
    border-radius: 8px 8px 3px 3px;
  }

  .v8-platform-win .v8-sys-tray,
  .v8-platform-android .v8-sys-tray { display: flex; }

  .v8-platform-ios .v8-start-menu,
  .v8-platform-mac .v8-start-menu { display: none !important; }

  .v8-platform-android .v8-start-menu {
    width: min(92%, 420px);
    bottom: 56px;
    border-radius: 26px 26px 0 0;
    padding-bottom: 22px;
  }

  .v8-device-phone .v8-global-controls { display: none; }
  .v8-device-phone .v8-mobile-topbar { display: flex; }
  .v8-device-phone .v8-window {
    left: 0 !important;
    top: 34px !important;
    width: 100% !important;
    height: calc(100% - 34px) !important;
    border-radius: 0 !important;
    transform: none !important;
  }

  .v8-device-phone .v8-window.maximized,
  .v8-device-phone .v8-window { height: calc(100% - 34px) !important; }

  .v8-device-phone .v8-window.minimized {
    transform: translateY(42px) scale(0.97) !important;
  }

  .v8-device-phone .v8-window-header { cursor: default; }
  .v8-device-phone .v8-resizer { display: none !important; }
  .v8-device-phone .v8-btn-max,
  .v8-device-phone .v8-btn-min { display: none; }

  .v8-device-phone .v8-desktop {
    top: 92px;
    left: 14px;
    right: 14px;
    bottom: 126px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 8px;
    justify-items: center;
    align-content: start;
  }

  .v8-device-phone .v8-desktop-icon {
    width: 100%;
    max-width: 86px;
    padding: 0;
    background: transparent;
    border: none;
  }

  .v8-device-phone .v8-icon-img {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.15);
    font-size: 1.65rem;
    backdrop-filter: blur(14px);
  }

  .v8-platform-ios.v8-device-phone .v8-phone-dock,
  .v8-platform-ios.v8-device-phone .v8-mobile-page-dots,
  .v8-platform-ios.v8-device-phone .v8-ios-home-indicator { display: flex; }

  .v8-platform-android.v8-device-phone .v8-phone-search,
  .v8-platform-android.v8-device-phone .v8-android-nav { display: flex; }

  .v8-platform-android.v8-device-phone .v8-desktop {
    top: 102px;
    bottom: 98px;
  }

  .v8-device-phone .v8-taskbar { display: none; }
  .v8-device-phone .v8-menubar { display: none !important; }

  .v8-device-tablet .v8-desktop {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }

  .v8-device-tablet .v8-window {
    max-width: calc(100% - 30px);
  }

  .v8-device-tablet .v8-app-layout {
    flex-direction: column;
  }

  .v8-device-tablet .v8-sidebar {
    width: 100%;
    display: flex;
    padding: 0;
    overflow: auto hidden;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .v8-device-tablet .v8-sidebar-item {
    border-left: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
  }

  .v8-device-tablet .v8-sidebar-item.active {
    border-left: none;
    border-bottom-color: var(--v8-accent);
  }

  .v8-device-phone .v8-start-menu,
  .v8-device-phone .v8-status-panel {
    left: 50% !important;
    right: auto !important;
    width: min(94%, 420px) !important;
    max-width: 420px;
    transform: translateX(-50%);
  }

  .v8-device-phone .v8-status-panel {
    top: auto !important;
    bottom: 56px;
    border-radius: 24px;
  }

  .v8-device-phone .v8-stat-cards {
    grid-template-columns: 1fr;
  }

  .v8-hidden { display: none !important; }

  .v8-platform-mac:not(.v8-device-phone) .v8-menubar {
    display: flex;
  }

  .v8-platform-mac .v8-menubar {
    padding-left: 10px;
    padding-right: 12px;
    background:
      linear-gradient(180deg, rgba(38, 42, 52, 0.78), rgba(20, 24, 31, 0.62));
    border-bottom: 1px solid rgba(255,255,255,0.12);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.16),
      0 10px 24px rgba(0,0,0,0.18);
  }

  .v8-platform-mac .v8-menubar-left {
    gap: 2px;
  }

  .v8-platform-mac .v8-apple-root {
    width: 28px;
    justify-content: center;
    padding: 0;
  }

  .v8-platform-mac .v8-apple-root svg {
    width: 14px;
    height: 14px;
  }

  .v8-platform-mac .v8-taskbar {
    position: absolute;
    gap: 0;
    padding:
      10px 14px
      calc(10px + env(safe-area-inset-bottom, 0px));
    background:
      linear-gradient(180deg, rgba(255,255,255,0.24), rgba(255,255,255,0.12));
    border: 1px solid rgba(255,255,255,0.28);
    box-shadow:
      0 24px 48px rgba(0,0,0,0.34),
      inset 0 1px 0 rgba(255,255,255,0.3),
      inset 0 -1px 0 rgba(0,0,0,0.18);
  }

  .v8-platform-mac .v8-taskbar::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.02) 48%, rgba(0,0,0,0.08));
    pointer-events: none;
  }

  .v8-platform-mac .v8-taskbar-icons {
    position: relative;
    gap: 10px;
    padding: 0 4px;
    z-index: 1;
  }

  .v8-platform-mac .v8-taskbar-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.16);
    background:
      linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.07));
    box-shadow:
      0 12px 24px rgba(0,0,0,0.18),
      inset 0 1px 0 rgba(255,255,255,0.2);
    transform-origin: center bottom;
  }

  .v8-platform-mac .v8-taskbar-icon:hover {
    transform: translateY(-10px) scale(1.12);
  }

  .v8-platform-mac .v8-taskbar-icon.open::after {
    bottom: -8px;
    width: 7px;
    height: 7px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 0 10px rgba(255,255,255,0.55);
  }

  .v8-platform-mac .v8-start-btn {
    display: none !important;
  }

  .v8-platform-mac .v8-sys-tray {
    display: none !important;
  }

  .v8-platform-mac.v8-device-desktop .v8-desktop,
  .v8-platform-mac.v8-device-tablet .v8-desktop {
    bottom: 102px;
  }
