
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --accent:  #e8a04c;
    --accent2: #3ddc84;
    --red:     #ff5f57;
    --yellow:  #febc2e;
    --green:   #28c840;
    --text:    #ededf0;
    --text-muted: #8a8a94;
    --border:  rgba(255,255,255,0.08);
    --win-bg:  rgba(16,16,22,0.93);
    --font: 'Inter', 'Noto Sans JP', -apple-system, system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
    --radius-win: 13px;
  }

  html, body {
    height: 100%; width: 100%;
    overflow: hidden;
    font-family: var(--font);
    font-feature-settings: "cv01","cv03","cv04","ss01";
    background: #08080f;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    user-select: none;
    -webkit-user-select: none;
  }

  /* ── Background slideshow ── */
  #wallpaper {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 0;
    background: #08080f;
    overflow: hidden;
  }

  .bg-photo {
    position: absolute; top: -8%; right: -8%; bottom: -8%; left: -8%;
    background-size: cover; background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    will-change: transform, opacity;
  }
  .bg-photo.active {
    opacity: 1;
    animation: kenBurns 12s ease-in-out forwards;
  }
  @keyframes kenBurns {
    from { transform: scale(1.00) translate(0, 0); }
    to   { transform: scale(1.08) translate(-1%, 0.5%); }
  }

  /* Dark vignette over photos */
  #photo-overlay {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 0;
    background:
      linear-gradient(to bottom, rgba(4,4,12,0.72) 0%, rgba(4,4,12,0.52) 40%, rgba(4,4,12,0.65) 100%);
    pointer-events: none;
  }

  #stars-canvas { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; opacity: 0.35; }

  /* ── Menu bar ── */
  #menubar {
    position: fixed; top: 0; left: 0; right: 0;
    height: 28px;
    background: rgba(12,12,20,0.82);
    backdrop-filter: blur(40px) saturate(1.6);
    -webkit-backdrop-filter: blur(40px) saturate(1.6);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 6px;
    z-index: 9000;
    color: rgba(255,255,255,0.82);
    user-select: none;
    -webkit-user-select: none;
  }

  #menu-left  { display: flex; align-items: center; gap: 0; height: 100%; flex: 1; min-width: 0;
                clip-path: inset(0 0 -200vh 0); /* clip sides/top, allow dropdowns below */ }
  #menu-right { display: flex; align-items: center; gap: 2px; height: 100%; flex-shrink: 0; }

  /* Apple-style logo button */
  .menu-yh {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 100%; border-radius: 0;
    font-size: 17px; cursor: pointer; flex-shrink: 0;
    color: rgba(255,255,255,0.88);
    transition: background 0.1s;
    position: relative;
  }
  .menu-yh:hover, .menu-yh.active { background: rgba(255,255,255,0.12); }

  /* App name (bold, first item after logo) */
  .menu-app-name-btn {
    font-size: 13px; font-weight: 700;
    color: rgba(255,255,255,0.92);
    letter-spacing: -0.01em;
    padding: 0 10px; height: 100%;
    display: flex; align-items: center;
    cursor: pointer; border-radius: 0;
    transition: background 0.1s;
    white-space: nowrap; position: relative;
  }
  .menu-app-name-btn:hover, .menu-app-name-btn.active { background: rgba(255,255,255,0.12); }

  /* Nav menu items */
  .menu-nav { display: flex; align-items: center; height: 100%; }
  .menu-nav-item {
    font-size: 13px; color: rgba(255,255,255,0.78);
    padding: 0 10px; height: 100%;
    display: flex; align-items: center;
    cursor: pointer; white-space: nowrap;
    position: relative; transition: background 0.1s;
  }
  .menu-nav-item:hover, .menu-nav-item.active { background: rgba(255,255,255,0.12); color: #fff; }

  /* ── Dropdown menus ── */
  .mb-dropdown {
    position: absolute; top: 100%; left: 0;
    min-width: 200px;
    background: rgba(30,30,38,0.96);
    backdrop-filter: blur(32px) saturate(1.4);
    -webkit-backdrop-filter: blur(32px) saturate(1.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 2px 8px rgba(0,0,0,0.4);
    padding: 4px 0; z-index: 9999;
    display: none; flex-direction: column;
    animation: mbDropIn 0.1s ease;
  }
  .mb-dropdown.open { display: flex; }
  @keyframes mbDropIn {
    from { opacity:0; transform:translateY(-4px) scale(0.98); }
    to   { opacity:1; transform:translateY(0)    scale(1); }
  }
  .mb-item {
    font-size: 13px; color: rgba(255,255,255,0.82);
    padding: 4px 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    transition: background 0.08s;
    white-space: nowrap;
  }
  .mb-item:hover { background: rgba(255,255,255,0.1); color: #fff; }
  .mb-item.disabled { color: rgba(255,255,255,0.25); cursor: default; pointer-events: none; }
  .mb-item kbd {
    font-size: 11px; color: rgba(255,255,255,0.32);
    font-family: inherit; background: none; border: none; padding: 0;
  }
  .mb-sep {
    height: 1px; background: rgba(255,255,255,0.08);
    margin: 4px 0;
  }
  .mb-section {
    font-size: 11px; color: rgba(255,255,255,0.28);
    padding: 6px 16px 2px; letter-spacing: 0.06em; text-transform: uppercase;
  }

  /* ── Right-side menu extras ── */
  .mb-extra {
    height: 100%; display: flex; align-items: center;
    padding: 0 8px; cursor: pointer; border-radius: 0;
    transition: background 0.1s; position: relative;
    font-size: 12px; color: rgba(255,255,255,0.72);
    white-space: nowrap;
  }
  .mb-extra:hover, .mb-extra.active { background: rgba(255,255,255,0.12); }
  .mb-extra svg { width: 13px; height: 13px; fill: rgba(255,255,255,0.75); display: block; }
  #menu-clock { font-size: 12px; color: rgba(255,255,255,0.78); padding: 0 10px; cursor: pointer; letter-spacing: 0.01em; }
  #menu-clock:hover { color: rgba(255,255,255,0.95); }
  .cal-header { display:flex; align-items:center; justify-content:space-between; padding:10px 14px 6px; border-bottom:1px solid rgba(255,255,255,0.07); }
  .cal-month { font-size:13px; font-weight:700; color:#dcdce4; }
  .cal-nav { display:flex; gap:4px; }
  .cal-nav button { background:none; border:none; color:rgba(255,255,255,0.55); font-size:14px; cursor:pointer; padding:2px 6px; border-radius:4px; }
  .cal-nav button:hover { background:rgba(255,255,255,0.08); color:#fff; }
  .cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:1px; padding:8px 10px; }
  .cal-dow { font-size:9.5px; text-align:center; color:#606070; font-weight:600; letter-spacing:.06em; padding-bottom:4px; }
  .cal-day { font-size:11.5px; text-align:center; padding:4px 2px; border-radius:5px; cursor:default; position:relative; color:rgba(255,255,255,0.65); min-height:22px; }
  .cal-day.today { background:rgba(232,160,76,0.2); color:var(--accent); font-weight:700; }
  .cal-day.has-event { color:#fff; font-weight:600; }
  .cal-day.has-event::after { content:''; position:absolute; bottom:1px; left:50%; transform:translateX(-50%); width:4px; height:4px; border-radius:50%; background:var(--accent); }
  .cal-day.other-month { color:rgba(255,255,255,0.2); }
  .cal-events { padding:8px 14px 10px; border-top:1px solid rgba(255,255,255,0.06); }
  .cal-events-title { font-size:10px; color:var(--accent); letter-spacing:.1em; margin-bottom:6px; font-weight:600; }
  .cal-event { display:flex; gap:8px; align-items:flex-start; padding:5px 0; border-bottom:1px solid rgba(255,255,255,0.04); }
  .cal-event:last-child { border-bottom:none; }
  .cal-event-dot { width:7px; height:7px; border-radius:50%; flex-shrink:0; margin-top:3px; }
  .cal-event-body { flex:1; }
  .cal-event-title { font-size:11.5px; color:#dcdce4; font-weight:600; }
  .cal-event-sub { font-size:10px; color:#606070; margin-top:1px; }

  /* Control Center panel */
  #cc-panel {
    position: fixed; top: 32px; right: 8px;
    width: 280px;
    background: rgba(30,30,38,0.96);
    backdrop-filter: blur(32px) saturate(1.4);
    -webkit-backdrop-filter: blur(32px) saturate(1.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.7);
    padding: 14px;
    z-index: 9999; display: none;
  }
  #cc-panel.open { display: block; animation: mbDropIn 0.15s ease; }
  .cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .cc-tile {
    background: rgba(255,255,255,0.08); border-radius: 10px;
    padding: 10px 12px; cursor: pointer;
    transition: background 0.12s;
  }
  .cc-tile:hover { background: rgba(255,255,255,0.13); }
  .cc-tile-icon { font-size: 18px; margin-bottom: 4px; }
  .cc-tile-label { font-size: 11px; color: rgba(255,255,255,0.5); }
  .cc-tile-val { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.9); }
  .cc-tile.wide { grid-column: span 2; }
  .cc-sep { height: 1px; background: rgba(255,255,255,0.07); margin: 10px 0; grid-column: span 2; }

  /* ── Admin badge & login ── */
  #admin-badge {
    display: flex; align-items: center; gap: 6px; cursor: pointer;
    background: rgba(232,160,76,0.1); border: 1px solid rgba(232,160,76,0.2);
    border-radius: 20px; padding: 2px 9px 2px 4px;
    transition: background 0.12s;
  }
  #admin-badge:hover { background: rgba(232,160,76,0.2); }
  .admin-badge-av { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
  .admin-badge-text { font-size: 10.5px; color: var(--accent); font-weight: 600; }

  /* ── Login window ── */
  .login-win { display: flex; flex-direction: column; height: 100%; }
  .login-form { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 24px; gap: 14px; }
  .login-icon-wrap { width: 52px; height: 52px; margin: 0 auto 4px; }
  .login-title { font-size: 16px; font-weight: 700; color: #e8e8f0; text-align: center; }
  .login-sub { font-size: 12px; color: #505060; text-align: center; }
  .login-step { width: 100%; max-width: 260px; display: flex; flex-direction: column; gap: 10px; }
  .login-input {
    width: 100%; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px; color: #f0f0f0; padding: 9px 13px; font-size: 13px;
    outline: none; font-family: var(--font);
  }
  .login-input:focus { border-color: rgba(232,160,76,0.5); }
  .login-btn {
    width: 100%; background: var(--accent); color: #080808; border: none;
    border-radius: 8px; padding: 9px 20px; font-size: 13px; font-weight: 700;
    cursor: pointer; transition: opacity 0.15s; font-family: var(--font);
  }
  .login-btn:hover { opacity: 0.85; }
  .login-btn:disabled { opacity: 0.35; cursor: default; }
  .login-btn-ghost {
    width: 100%; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; padding: 9px 20px; font-size: 13px;
    cursor: pointer; font-family: var(--font); transition: background 0.12s;
  }
  .login-btn-ghost:hover { background: rgba(255,255,255,0.1); }
  .login-err { color: #ff5f57; font-size: 11px; text-align: center; min-height: 14px; }
  .login-hint-text { font-size: 11px; color: rgba(255,255,255,0.28); text-align: center; }

  /* ── Admin xterm terminal ── */
  .admin-xterm-wrap { height: 100%; overflow: hidden; background: #0a0c14; }
  .admin-xterm-wrap .xterm { height: 100%; }
  .admin-xterm-wrap .xterm-viewport { overflow-y: auto !important; }

  /* ── Desktop area ── */
  #desktop {
    position: fixed; top: 32px; bottom: 78px; left: 0; right: 0;
    z-index: 1;
  }

  /* ── Desktop icons (right, wraps leftward when full) ── */
  #desktop-icons {
    position: absolute; top: 16px; right: 14px; bottom: 10px;
    display: flex; flex-direction: column; flex-wrap: wrap-reverse;
    align-content: flex-end;
    max-height: 100%;
    gap: 2px;
    z-index: 10;
    overflow: hidden;
  }

  .desk-icon {
    display: flex; flex-direction: column; align-items: center;
    gap: 6px; padding: 8px 6px 7px;
    border-radius: 14px; cursor: pointer;
    transition: background 0.15s, transform 0.18s cubic-bezier(0.34,1.56,0.64,1);
    width: 76px;
    border: 1px solid transparent;
  }
  @media (hover: hover) {
    .desk-icon:hover { background: rgba(255,255,255,0.08); transform: scale(1.07); }
    .desk-icon:hover .ai { filter: brightness(1.08); }
  }
  .desk-icon:active { transform: scale(0.95) !important; }
  .desk-icon.sel   { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.12); }

  .desk-icon-img { line-height: 0; }

  .desk-icon-label {
    font-size: 11px; font-weight: 500;
    color: rgba(255,255,255,0.9);
    text-align: center; line-height: 1.25;
    text-shadow: 0 1px 6px rgba(0,0,0,1), 0 2px 12px rgba(0,0,0,0.8);
    letter-spacing: 0.01em;
  }

  /* ── App icon component ── */
  .ai {
    display: flex; align-items: center; justify-content: center;
    border-radius: 22%; flex-shrink: 0; position: relative; overflow: hidden;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.35),
      inset 0 -1px 0 rgba(0,0,0,0.15),
      0 2px 8px rgba(0,0,0,0.45),
      0 6px 24px rgba(0,0,0,0.35);
    transition: box-shadow 0.15s, transform 0.15s, filter 0.15s;
  }
  /* Gloss overlay */
  .ai::after {
    content: '';
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(170deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.05) 45%, rgba(0,0,0,0) 50%);
    border-radius: inherit; pointer-events: none;
  }
  /* Color variants — richer, more saturated */
  .ai-blog     { background: linear-gradient(145deg,#fbbf24 0%,#d97706 50%,#92400e 100%); }
  .ai-about    { background: linear-gradient(145deg,#818cf8 0%,#4f46e5 50%,#312e81 100%); }
  .ai-projects { background: linear-gradient(145deg,#fb923c 0%,#dc2626 50%,#7f1d1d 100%); }
  .ai-career   { background: linear-gradient(145deg,#e879f9 0%,#a21caf 50%,#581c87 100%); }
  .ai-music    { background: linear-gradient(145deg,#f472b6 0%,#db2777 50%,#831843 100%); }
  .ai-soluna   { background: linear-gradient(145deg,#38bdf8 0%,#2563eb 50%,#1e1b4b 100%); }
  .ai-anime    { background: linear-gradient(145deg,#f87171 0%,#dc2626 50%,#7f1d1d 100%); }
  .ai-terminal { background: linear-gradient(145deg,#4ade80 0%,#16a34a 50%,#14532d 100%); }
  .ai-x        { background: linear-gradient(145deg,#6b7280 0%,#374151 50%,#111827 100%); }
  .ai-github   { background: linear-gradient(145deg,#9ca3af 0%,#4b5563 50%,#111827 100%); }
  .ai-chat     { background: linear-gradient(145deg,#34d399 0%,#0d9488 50%,#134e4a 100%); }
  .ai-browser  { background: linear-gradient(145deg,#60a5fa 0%,#2563eb 50%,#1e3a8a 100%); }
  .ai-koe      { background: linear-gradient(145deg,#a78bfa 0%,#7c3aed 50%,#3b0764 100%); }
  .ai-game     { background: linear-gradient(145deg,#4ade80 0%,#16a34a 50%,#052e16 100%); }
  .ai-uta      { background: linear-gradient(145deg,#f472b6 0%,#ec4899 50%,#9d174d 100%); }
  .ai-news     { background: linear-gradient(145deg,#f59e0b 0%,#d97706 50%,#92400e 100%); }
  .ai-settings  { background: linear-gradient(145deg,#94a3b8 0%,#64748b 50%,#1e293b 100%); }
  .ai-analytics { background: linear-gradient(145deg,#6ee7b7 0%,#059669 50%,#064e3b 100%); }
  .ai-m5dash    { background: linear-gradient(145deg,#fcd34d 0%,#d97706 50%,#78350f 100%); }
  .ai-mail      { background: linear-gradient(145deg,#67e8f9 0%,#0284c7 50%,#0c4a6e 100%); }
  .ai-camera    { background: linear-gradient(145deg,#f1f5f9 0%,#94a3b8 50%,#0f172a 100%); }
  .ai-launchpad { background: linear-gradient(145deg,#475569 0%,#1e293b 55%,#0f172a 100%); }
  /* ── Launchpad (all apps, one button) ── */
  #launchpad {
    position: fixed; inset: 0; z-index: 8800;
    background: rgba(8,8,18,0.78);
    backdrop-filter: blur(30px) saturate(1.2); -webkit-backdrop-filter: blur(30px) saturate(1.2);
    display: none; opacity: 0; transition: opacity 0.22s ease;
    overflow-y: auto; padding: 64px 20px 110px;
  }
  #launchpad.show { display: block; }
  #launchpad.visible { opacity: 1; }
  #lp-search {
    display: block; margin: 0 auto 36px; width: min(380px, 84vw);
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px; padding: 9px 16px; color: #fff; font-size: 14px;
    font-family: inherit; outline: none; text-align: center;
  }
  #lp-search::placeholder { color: rgba(255,255,255,0.35); }
  #lp-search:focus { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.12); }
  #lp-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 30px 8px; max-width: 760px; margin: 0 auto;
  }
  .lp-app {
    display: flex; flex-direction: column; align-items: center; gap: 9px;
    cursor: pointer; user-select: none; -webkit-user-select: none;
    transition: transform 0.15s ease;
  }
  .lp-app:hover { transform: scale(1.08); }
  .lp-app:active { transform: scale(0.94); }
  .lp-app:focus { outline: none; }
  .lp-app:focus-visible { outline: 2px solid rgba(255,255,255,0.8); outline-offset: 4px; border-radius: 14px; }
  .lp-app .ai { width: 62px; height: 62px; border-radius: 15px; box-shadow: 0 8px 22px rgba(0,0,0,0.45); }
  .lp-label { font-size: 11.5px; color: rgba(255,255,255,0.85); text-shadow: 0 1px 4px rgba(0,0,0,0.6); white-space: nowrap; }
  .lp-app.lp-hidden { display: none; }
  .lp-app.dock-admin { display: none; }
  body.admin-user .lp-app.dock-admin { display: flex; }
  @media (max-width: 767px) {
    #launchpad { padding: 46px 14px 90px; }
    #lp-grid { gap: 22px 4px; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
    .lp-app .ai { width: 56px; height: 56px; }
  }
  .mail-folder-btn { display:flex;align-items:center;gap:8px;background:none;border:none;color:rgba(255,255,255,0.55);cursor:pointer;padding:7px 14px;border-radius:6px;margin:0 6px;font-size:12.5px;text-align:left;transition:background 0.12s,color 0.12s; }
  .mail-folder-btn:hover { background:rgba(255,255,255,0.07);color:rgba(255,255,255,0.85); }
  .mail-folder-btn.active { background:rgba(2,132,199,0.25);color:#7dd3fc; }
  .mail-row { display:flex;flex-direction:column;gap:2px;padding:11px 14px;border-bottom:1px solid rgba(255,255,255,0.05);cursor:pointer;transition:background 0.1s; }
  .mail-row:hover { background:rgba(255,255,255,0.05); }
  .mail-row.selected { background:rgba(2,132,199,0.15); }
  .mail-row-from { font-size:12px;font-weight:600;color:#e2e8f0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
  .mail-row-subj { font-size:12px;color:#94a3b8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
  .mail-row-date { font-size:10px;color:rgba(255,255,255,0.3);flex-shrink:0; }
  .mail-row-top  { display:flex;justify-content:space-between;align-items:baseline;gap:6px; }
  .mail-unread-dot { width:6px;height:6px;border-radius:50%;background:#3b82f6;flex-shrink:0;margin-right:4px; }
  .mail-body-hdr { border-bottom:1px solid rgba(255,255,255,0.08);padding-bottom:16px;margin-bottom:16px; }
  .mail-body-subj { font-size:18px;font-weight:700;color:#f1f5f9;margin-bottom:10px;line-height:1.3; }
  .mail-body-meta { font-size:12px;color:rgba(255,255,255,0.4);display:flex;flex-direction:column;gap:3px; }
  .mail-body-text { font-size:13px;color:#cbd5e1;line-height:1.7;white-space:pre-wrap;word-break:break-word; }
  /* Overview Dashboard */
  .ai-overview { background: linear-gradient(145deg,#a78bfa 0%,#7c3aed 50%,#2e1065 100%); }
  .ov-wrap { height:100%;overflow-y:auto;padding:20px 24px;background:#080c1a;color:#e2e8f0;font-size:13px; }
  .ov-topbar { display:flex;align-items:center;justify-content:space-between;margin-bottom:18px; }
  .ov-title { font-size:17px;font-weight:700;color:#f1f5f9; }
  .ov-date { font-size:11px;color:rgba(255,255,255,0.35); }
  .ov-kpi-row { display:flex;gap:10px;margin-bottom:20px;flex-wrap:wrap; }
  .ov-kpi { background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.08);border-radius:10px;padding:12px 16px;flex:1;min-width:100px; }
  .ov-kpi-num { font-size:24px;font-weight:700;line-height:1; }
  .ov-kpi-label { font-size:10px;color:rgba(255,255,255,0.4);margin-top:4px;text-transform:uppercase;letter-spacing:0.06em; }
  .ov-section { margin-bottom:20px; }
  .ov-section-title { font-size:11px;font-weight:600;letter-spacing:0.08em;text-transform:uppercase;color:rgba(255,255,255,0.35);margin-bottom:10px;padding-bottom:6px;border-bottom:1px solid rgba(255,255,255,0.07); }
  .ov-cards { display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px; }
  .ov-card { background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.08);border-radius:10px;padding:14px 16px; }
  .ov-card-hdr { display:flex;align-items:center;justify-content:space-between;margin-bottom:10px; }
  .ov-card-title { font-weight:600;font-size:13px;color:#f1f5f9; }
  .ov-badge { font-size:10px;font-weight:600;padding:2px 8px;border-radius:20px;letter-spacing:0.04em; }
  .ov-badge-red    { background:rgba(239,68,68,0.2);color:#fca5a5;border:1px solid rgba(239,68,68,0.3); }
  .ov-badge-orange { background:rgba(249,115,22,0.2);color:#fdba74;border:1px solid rgba(249,115,22,0.3); }
  .ov-badge-yellow { background:rgba(234,179,8,0.15);color:#fde047;border:1px solid rgba(234,179,8,0.3); }
  .ov-badge-green  { background:rgba(34,197,94,0.15);color:#86efac;border:1px solid rgba(34,197,94,0.3); }
  .ov-badge-gray   { background:rgba(255,255,255,0.07);color:rgba(255,255,255,0.45);border:1px solid rgba(255,255,255,0.12); }
  .ov-thread { display:flex;align-items:flex-start;gap:8px;padding:6px 0;border-bottom:1px solid rgba(255,255,255,0.05); }
  .ov-thread:last-child { border-bottom:none; }
  .ov-dot { width:7px;height:7px;border-radius:50%;flex-shrink:0;margin-top:4px; }
  .ov-dot-red    { background:#f87171; }
  .ov-dot-orange { background:#fb923c; }
  .ov-dot-yellow { background:#facc15; }
  .ov-dot-green  { background:#4ade80; }
  .ov-dot-gray   { background:rgba(255,255,255,0.2); }
  .ov-thread-txt { flex:1;min-width:0; }
  .ov-thread-main { font-size:12px;color:#e2e8f0;line-height:1.4; }
  .ov-thread-sub  { font-size:10.5px;color:rgba(255,255,255,0.35);margin-top:1px; }
  .ov-thread-badge { font-size:10px;font-weight:600;padding:1px 7px;border-radius:10px;flex-shrink:0;align-self:center; }
  /* Admin-only dock items */
  .dock-admin { display:none; }
  body.admin-user .dock-admin { display:flex; }
  /* Settings skin cards */
  .skin-cards { display:flex; flex-direction:column; gap:8px; padding:16px; }
  .skin-card { display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:10px; border:2px solid rgba(255,255,255,0.07); cursor:pointer; transition:border-color 0.15s,background 0.15s; }
  .skin-card:hover { border-color:rgba(232,160,76,0.3); background:rgba(232,160,76,0.04); }
  .skin-card.active { border-color:var(--accent); background:rgba(232,160,76,0.08); }
  .skin-card-preview { width:52px; height:36px; border-radius:5px; flex-shrink:0; overflow:hidden; border:1px solid rgba(255,255,255,0.1); }
  .skin-card-info { flex:1; }
  .skin-card-name { font-size:13px; font-weight:600; color:#dcdce4; }
  .skin-card-year { font-size:11px; color:#606070; margin-top:2px; }
  .settings-row { padding:6px 14px; font-size:12px; color:rgba(255,255,255,0.65); cursor:pointer; border-radius:0; }
  .settings-row:hover { background:rgba(255,255,255,0.06); }
  .settings-row.active { background:rgba(232,160,76,0.12); color:var(--accent); font-weight:600; }

  /* Browser window */
  .browser-win { display:flex; flex-direction:column; height:100%; background:#0d1117; }
  .koe-win { height:100%; background:#0a0814; }
  .koe-iframe { width:100%; height:100%; border:none; display:block; }

  /* ── Koe Video Call ─────────────────────────────────── */
  .kva{display:flex;flex-direction:column;height:100%;background:#0a0010;position:relative;overflow:hidden;user-select:none}
  /* AI large area */
  .kva-main{flex:1;position:relative;background:#0d0118;display:flex;align-items:center;justify-content:center;overflow:hidden;min-height:0}
  .kva-ai-bg{position:absolute;inset:0;background:radial-gradient(ellipse 80% 70% at 50% 50%,rgba(109,40,217,.25) 0%,transparent 70%);transition:opacity .5s}
  .kva-ai-bg.active{background:radial-gradient(ellipse 80% 70% at 50% 50%,rgba(109,40,217,.45) 0%,transparent 70%)}
  .kva-ai-avatar{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;gap:10px}
  .kva-ai-orb{width:88px;height:88px;border-radius:50%;background:linear-gradient(135deg,#7c3aed,#4c1d95);box-shadow:0 0 48px rgba(124,58,237,.6);display:flex;align-items:center;justify-content:center;position:relative;transition:box-shadow .3s}
  .kva-ai-orb.speaking{box-shadow:0 0 64px rgba(167,139,250,.9),0 0 100px rgba(124,58,237,.5);animation:kva-orb-speak .6s ease-in-out infinite alternate}
  .kva-ai-orb.thinking{animation:kva-orb-think .9s ease-in-out infinite}
  @keyframes kva-orb-speak{0%{transform:scale(1)}100%{transform:scale(1.08)}}
  @keyframes kva-orb-think{0%,100%{transform:scale(1);opacity:.8}50%{transform:scale(1.04);opacity:1}}
  .kva-ai-ring{position:absolute;inset:-14px;border-radius:50%;border:1.5px solid rgba(167,139,250,.4);animation:kva-ring-idle 2.2s ease-out infinite}
  .kva-ai-ring2{inset:-26px;animation-delay:.8s;border-color:rgba(167,139,250,.18)}
  .kva-ai-ring.active{animation:kva-ring-active 1s ease-out infinite}
  .kva-ai-ring2.active{animation:kva-ring-active 1s ease-out infinite;animation-delay:.4s}
  @keyframes kva-ring-idle{0%{transform:scale(.92);opacity:.5}100%{transform:scale(1.08);opacity:0}}
  @keyframes kva-ring-active{0%{transform:scale(.88);opacity:.8}100%{transform:scale(1.18);opacity:0}}
  .kva-canvas{position:absolute;bottom:0;left:0;right:0;height:44px;opacity:.7}
  .kva-ai-name{font-size:13px;font-weight:600;color:rgba(167,139,250,.9);letter-spacing:.06em}
  .kva-status{font-size:11px;color:rgba(255,255,255,.4);letter-spacing:.04em;transition:color .3s;text-align:center}
  .kva-status.listening{color:#a78bfa;animation:kva-pulse-txt 1.2s ease-in-out infinite}
  .kva-status.thinking{color:#60a5fa}
  .kva-status.speaking{color:#34d399}
  @keyframes kva-pulse-txt{0%,100%{opacity:1}50%{opacity:.45}}
  .kva-interim{position:absolute;bottom:52px;left:0;right:0;text-align:center;font-size:11px;color:rgba(167,139,250,.7);font-style:italic;padding:0 16px;pointer-events:none;z-index:3;min-height:16px}
  /* user camera pip */
  .kva-pip{position:absolute;bottom:12px;right:12px;width:80px;height:106px;border-radius:10px;overflow:hidden;border:1.5px solid rgba(124,58,237,.5);z-index:4;background:#111;box-shadow:0 4px 20px rgba(0,0,0,.6)}
  .kva-pip video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}
  .kva-pip-off{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:22px;color:rgba(255,255,255,.2)}
  /* transcript */
  .kva-msgs{max-height:120px;overflow-y:auto;padding:0 14px 4px;display:flex;flex-direction:column;gap:6px;flex-shrink:0}
  .kva-msgs::-webkit-scrollbar{width:2px}.kva-msgs::-webkit-scrollbar-thumb{background:rgba(124,58,237,.4);border-radius:2px}
  .kva-msg{max-width:90%;font-size:12px;line-height:1.6;padding:7px 12px;border-radius:12px;animation:kva-msg-in .2s ease}
  @keyframes kva-msg-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
  .kva-msg-user{align-self:flex-end;background:rgba(124,58,237,.32);color:#ede9f8;border-bottom-right-radius:3px}
  .kva-msg-bot{align-self:flex-start;background:rgba(255,255,255,.06);color:#e2dff0;border-bottom-left-radius:3px}
  .kva-msg-thinking{color:rgba(255,255,255,.4);font-style:italic}
  /* controls */
  .kva-controls{flex-shrink:0;display:flex;align-items:center;justify-content:center;gap:14px;padding:10px 14px 12px;border-top:1px solid rgba(255,255,255,.05)}
  .kva-ctrl-btn{width:46px;height:46px;border-radius:50%;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:18px;transition:transform .15s,background .2s;outline:none}
  .kva-ctrl-btn:active{transform:scale(.9)}
  .kva-ctrl-call{background:linear-gradient(135deg,#22c55e,#16a34a);box-shadow:0 0 24px rgba(34,197,94,.5);width:60px;height:60px;font-size:24px}
  .kva-ctrl-call.calling{background:linear-gradient(135deg,#ef4444,#b91c1c);box-shadow:0 0 24px rgba(239,68,68,.5)}
  .kva-ctrl-mute{background:rgba(255,255,255,.1)}
  .kva-ctrl-mute.muted{background:rgba(239,68,68,.3)}
  .kva-ctrl-cam{background:rgba(255,255,255,.1)}
  .kva-ctrl-cam.off{background:rgba(239,68,68,.3)}
  /* text input */
  .kva-input-row{flex-shrink:0;display:flex;gap:6px;padding:0 12px 10px}
  .kva-input{flex:1;background:rgba(255,255,255,.07);border:1px solid rgba(124,58,237,.3);border-radius:20px;padding:7px 13px;color:#e8e4f8;font-size:12px;outline:none;font-family:inherit}
  .kva-input:focus{border-color:rgba(124,58,237,.6)}
  .kva-input::placeholder{color:rgba(255,255,255,.22)}
  .kva-send{flex-shrink:0;width:32px;height:32px;border-radius:50%;background:rgba(124,58,237,.5);border:none;color:#fff;font-size:15px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s}
  .kva-send:hover{background:rgba(124,58,237,.8)}
  .browser-toolbar {
    display:flex; align-items:center; gap:6px; padding:7px 10px;
    background:#1c1f26; border-bottom:1px solid rgba(255,255,255,0.06); flex-shrink:0;
  }
  .browser-nav-btn {
    background:transparent; border:none; color:rgba(255,255,255,0.45); cursor:pointer;
    padding:4px 6px; border-radius:4px; font-size:13px; line-height:1;
    transition:background 0.12s, color 0.12s;
  }
  .browser-nav-btn:hover { background:rgba(255,255,255,0.08); color:rgba(255,255,255,0.85); }
  .browser-nav-btn:disabled { opacity:0.22; cursor:default; }
  .browser-url-wrap {
    flex:1; display:flex; align-items:center; gap:6px;
    background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.1);
    border-radius:20px; padding:4px 12px; transition:border-color 0.15s;
  }
  .browser-url-wrap:focus-within { border-color:rgba(96,165,250,0.6); background:rgba(255,255,255,0.09); }
  .browser-url-icon { font-size:11px; color:rgba(255,255,255,0.3); flex-shrink:0; }
  .browser-url-input {
    flex:1; background:transparent; border:none; outline:none;
    color:#e8e8f0; font-size:12.5px; font-family:inherit;
  }
  .browser-url-input::placeholder { color:rgba(255,255,255,0.28); }
  .browser-content { flex:1; position:relative; overflow:hidden; }
  .browser-iframe { width:100%; height:100%; border:none; background:#fff; }
  .browser-newtab {
    position:absolute; top:0; right:0; bottom:0; left:0; display:flex; flex-direction:column;
    align-items:center; justify-content:center; gap:24px;
    background:#0d1117; color:#e8e8f0;
  }
  .browser-google-logo {
    font-size:52px; font-weight:700; letter-spacing:-2px; user-select:none;
  }
  .browser-google-logo span:nth-child(1){color:#4285F4}
  .browser-google-logo span:nth-child(2){color:#EA4335}
  .browser-google-logo span:nth-child(3){color:#FBBC05}
  .browser-google-logo span:nth-child(4){color:#4285F4}
  .browser-google-logo span:nth-child(5){color:#34A853}
  .browser-google-logo span:nth-child(6){color:#EA4335}
  .browser-search-box {
    display:flex; align-items:center; gap:10px; width:480px; max-width:90vw;
    background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12);
    border-radius:24px; padding:10px 18px; cursor:text;
    transition:border-color 0.15s, box-shadow 0.15s;
  }
  .browser-search-box:hover { border-color:rgba(255,255,255,0.2); box-shadow:0 2px 12px rgba(0,0,0,0.3); }
  .browser-search-input {
    flex:1; background:transparent; border:none; outline:none;
    color:#e8e8f0; font-size:15px; font-family:inherit;
  }
  .browser-search-input::placeholder { color:rgba(255,255,255,0.3); }
  .browser-search-go {
    background:transparent; border:none; color:rgba(255,255,255,0.4); cursor:pointer;
    font-size:16px; padding:0; line-height:1; transition:color 0.12s;
  }
  .browser-search-go:hover { color:rgba(255,255,255,0.8); }
  .browser-shortcuts {
    display:flex; gap:14px; margin-top:8px;
  }
  .browser-shortcut {
    display:flex; flex-direction:column; align-items:center; gap:6px;
    cursor:pointer; padding:8px 12px; border-radius:10px; transition:background 0.12s;
  }
  .browser-shortcut:hover { background:rgba(255,255,255,0.06); }
  .browser-shortcut-ico {
    width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center;
    font-size:18px; background:rgba(255,255,255,0.08);
  }
  .browser-shortcut-label { font-size:10px; color:rgba(255,255,255,0.5); }

  /* Chat window */
  .chat-win { display: flex; flex-direction: column; height: 100%; background: #080a10; }
  .chat-head {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(13,149,136,0.08); flex-shrink: 0;
  }
  .chat-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(52,211,153,0.4); }
  .chat-name  { font-size: 13px; font-weight: 700; color: #e8e8f0; }
  .chat-status { font-size: 11px; color: #34d399; margin-top: 1px; }
  .chat-reset-btn {
    margin-left: auto; background: transparent; border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px; color: rgba(255,255,255,0.3); cursor: pointer;
    padding: 4px 8px; font-size: 11px; transition: color 0.12s, border-color 0.12s;
  }
  .chat-reset-btn:hover { color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.15); }
  .chat-msgs {
    flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px;
    min-height: 0;
  }
  .chat-msgs::-webkit-scrollbar { width: 4px; }
  .chat-msgs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }
  .chat-msg {
    max-width: 84%; padding: 10px 14px; border-radius: 16px;
    font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-word;
  }
  .chat-msg-user {
    align-self: flex-end;
    background: rgba(52,211,153,0.18); color: #e8f8f4;
    border-bottom-right-radius: 4px;
  }
  .chat-msg-bot {
    align-self: flex-start;
    background: rgba(255,255,255,0.06); color: #d0d0da;
    border-bottom-left-radius: 4px;
  }
  .chat-msg-thinking { color: rgba(255,255,255,0.38); font-style: italic; background: transparent !important; }
  .chat-input-row {
    display: flex; gap: 8px; padding: 10px 12px;
    border-top: 1px solid rgba(255,255,255,0.07); flex-shrink: 0;
    background: rgba(255,255,255,0.02);
  }
  .chat-input {
    flex: 1; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px; color: #f0f0f8; padding: 9px 13px;
    font-size: 13px; outline: none; font-family: var(--font);
    transition: border-color 0.15s;
  }
  .chat-input:focus { border-color: rgba(52,211,153,0.5); }
  .chat-input::placeholder { color: rgba(255,255,255,0.22); }
  .chat-send-btn {
    background: #0d9488; border: none; border-radius: 10px;
    color: #fff; cursor: pointer; width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, transform 0.12s; flex-shrink: 0;
  }
  .chat-send-btn:hover { background: #14b8a6; }
  .chat-send-btn:active { transform: scale(0.92); }
  .chat-send-btn:disabled { opacity: 0.35; cursor: default; }
  .chat-mic-btn {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px; cursor: pointer; width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0; transition: background 0.15s;
  }
  .chat-mic-btn:hover { background: rgba(255,255,255,0.12); }
  .chat-mic-btn.recording { background: rgba(239,68,68,0.25); border-color: rgba(239,68,68,0.5); animation: pulse-red 0.8s infinite; }
  @keyframes pulse-red { 0%,100%{opacity:1} 50%{opacity:0.6} }
  @keyframes pulse-btn { 0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(232,160,76,.5)} 50%{transform:scale(1.03);box-shadow:0 0 0 8px rgba(232,160,76,0)} }
  .chat-quick-btns {
    display: flex; gap: 6px; padding: 8px 12px 4px;
    overflow-x: auto; flex-shrink: 0;
    scrollbar-width: none;
  }
  .chat-quick-btns::-webkit-scrollbar { display: none; }
  .chat-quick-btn {
    white-space: nowrap; font-size: 11px; padding: 5px 10px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px; color: rgba(255,255,255,0.7); cursor: pointer;
    transition: all 0.15s; font-family: var(--font);
  }
  .chat-quick-btn:hover { background: rgba(52,211,153,0.15); border-color: rgba(52,211,153,0.4); color: #5eead4; }
  /* External link confirm overlay */
  #ext-overlay {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 99999;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: none; align-items: center; justify-content: center;
  }
  #ext-overlay.show { display: flex; }
  .ext-box {
    background: rgba(20,22,34,0.98); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px; padding: 24px 26px; width: 320px; max-width: 90vw;
    box-shadow: 0 24px 80px rgba(0,0,0,0.7);
    animation: winOpen 0.22s cubic-bezier(0.22,1,0.36,1) forwards;
  }
  .ext-icon { margin-bottom: 12px; }
  .ext-title { font-size: 15px; font-weight: 700; color: #e8e8f0; margin-bottom: 6px; }
  .ext-domain {
    font-size: 12px; color: #606070; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 8px;
    padding: 6px 10px; font-family: var(--mono); word-break: break-all;
    margin-bottom: 18px;
  }
  .ext-btns { display: flex; gap: 8px; justify-content: flex-end; }
  .ext-cancel {
    padding: 8px 16px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1);
    background: transparent; color: rgba(255,255,255,0.5); font-size: 13px; cursor: pointer;
    transition: background 0.12s; font-family: var(--font);
  }
  .ext-cancel:hover { background: rgba(255,255,255,0.07); }
  .ext-go {
    padding: 8px 18px; border-radius: 8px; border: none;
    background: rgba(232,160,76,0.15); color: var(--accent); font-size: 13px; font-weight: 600;
    cursor: pointer; transition: background 0.12s; font-family: var(--font);
    border: 1px solid rgba(232,160,76,0.25);
  }
  .ext-go:hover { background: rgba(232,160,76,0.25); }

  /* Desktop icon size */
  .desk-icon .ai { width: 54px; height: 54px; }

  /* ── Windows layer ── */
  #win-layer { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 100; pointer-events: none; }
  #win-layer > * { pointer-events: all; }

  /* ── OS Window ── */
  .os-win {
    position: absolute;
    display: flex; flex-direction: column;
    border-radius: var(--radius-win); overflow: hidden;
    background: var(--win-bg);
    backdrop-filter: blur(48px) saturate(1.5);
    -webkit-backdrop-filter: blur(48px) saturate(1.5);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow:
      0 0 0 0.5px rgba(255,255,255,0.04),
      0 4px 16px rgba(0,0,0,0.4),
      0 20px 60px rgba(0,0,0,0.65);
    transition: box-shadow 0.25s;
    min-width: 280px; min-height: 160px;
  }
  .os-win.on-top {
    border-color: rgba(255,255,255,0.13);
    box-shadow:
      0 0 0 0.5px rgba(255,255,255,0.07),
      0 4px 20px rgba(0,0,0,0.5),
      0 28px 80px rgba(0,0,0,0.8);
  }
  .os-win.anim-open  { animation: winOpen  0.26s cubic-bezier(0.22,1,0.36,1) forwards; }
  .os-win.anim-close { animation: winClose 0.16s cubic-bezier(0.4,0,1,1) forwards; }

  @keyframes winOpen  { from { opacity:0; transform:scale(0.88) translateY(6px); } to { opacity:1; transform:none; } }
  @keyframes winClose { from { opacity:1; transform:none; } to { opacity:0; transform:scale(0.88) translateY(6px); } }

  /* Title bar */
  .win-bar {
    height: 40px; flex-shrink: 0;
    background: rgba(22,22,32,0.6);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex; align-items: center;
    padding: 0 14px; gap: 8px;
    position: relative; cursor: default;
  }

  .win-dots { display: flex; gap: 8px; flex-shrink: 0; }
  .win-dot {
    width: 12px; height: 12px; border-radius: 50%;
    border: none; cursor: pointer; padding: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0; color: transparent;
    transition: filter 0.12s;
    box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.25);
  }
  .win-dot:hover { filter: brightness(1.2) saturate(1.1); }
  .win-dots:hover .win-dot { font-size: 7.5px; color: rgba(0,0,0,0.55); }
  .dot-close { background: radial-gradient(circle at 35% 35%, #ff7a73, var(--red)); }
  .dot-min   { background: radial-gradient(circle at 35% 35%, #ffd160, var(--yellow)); }
  .dot-max   { background: radial-gradient(circle at 35% 35%, #5de05d, var(--green)); }

  .win-title {
    position: absolute; left: 50%; transform: translateX(-50%);
    font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em;
    color: rgba(255,255,255,0.65);
    pointer-events: none; white-space: nowrap;
    max-width: 58%; overflow: hidden; text-overflow: ellipsis;
  }
  .os-win.on-top .win-title { color: rgba(255,255,255,0.82); }

  .win-body {
    flex: 1; overflow-y: auto; overflow-x: hidden;
    min-height: 0;
    color: var(--text);
  }
  .win-body::-webkit-scrollbar { width: 5px; }
  .win-body::-webkit-scrollbar-track { background: transparent; }
  .win-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

  .win-resize {
    position: absolute; bottom: 0; right: 0;
    width: 18px; height: 18px; cursor: se-resize;
    background: linear-gradient(135deg, transparent 50%, rgba(255,255,255,0.06) 50%);
  }

  /* ── Dock ── */
  #dock-trigger {
    position: fixed; bottom: 0; left: 0; right: 0; height: 8px; z-index: 7999;
  }
  #dock {
    position: fixed; bottom: 8px; left: 50%; transform: translateX(-50%) translateY(calc(100% + 20px));
    display: flex; align-items: flex-end; gap: 5px;
    padding: 8px 14px 10px;
    background: rgba(255,255,255,0.075);
    backdrop-filter: blur(32px) saturate(1.5); -webkit-backdrop-filter: blur(32px) saturate(1.5);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    z-index: 8000;
    transition: transform 0.38s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 4px 32px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.06) inset;
  }
  #dock.dock-visible {
    transform: translateX(-50%) translateY(0);
  }

  .dock-sep { width: 1px; height: 42px; background: rgba(255,255,255,0.12); margin: 0 3px; }

  .dock-app {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    cursor: pointer; position: relative;
    transition: transform 0.18s cubic-bezier(0.34,1.56,0.64,1);
  }
  @media (hover: hover) {
    .dock-app:hover { transform: translateY(-10px) scale(1.15); }
  }
  /* Tooltip label on hover */
  .dock-app[title]:hover::before {
    content: attr(title);
    position: absolute; bottom: calc(100% + 8px);
    left: 50%; transform: translateX(-50%);
    background: rgba(20,20,30,0.9);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.88);
    font-size: 11px; font-weight: 500;
    padding: 4px 10px; border-radius: 6px;
    white-space: nowrap; pointer-events: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  }

  .dock-icon-wrap {
    width: 50px; height: 50px; border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    transition: box-shadow 0.15s, filter 0.15s;
  }
  .dock-app:hover .dock-icon-wrap { filter: brightness(1.08); }

  .dock-icon-wrap img { width: 34px; height: 34px; object-fit: contain; }

  .dock-dot {
    width: 4px; height: 4px; border-radius: 50%;
    background: rgba(255,255,255,0.5);
    opacity: 0; transition: opacity 0.2s;
  }
  .dock-app.running .dock-dot { opacity: 1; }
  .dock-app.running.minimized .dock-dot { background: var(--accent); }

  /* ── Desktop hero (Jobs: don't bury the lead) ── */
  #desktop-hero {
    position: absolute;
    left: 48px; bottom: 96px;
    display: flex; flex-direction: column; gap: 14px;
    z-index: 5; pointer-events: none;
    animation: heroFade 1.2s 0.6s ease-out both;
  }
  @keyframes heroFade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  .hero-tagline {
    font-size: clamp(24px, 3.5vw, 40px); font-weight: 800; letter-spacing: -0.04em;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 24px rgba(0,0,0,0.7), 0 1px 6px rgba(0,0,0,0.5);
    line-height: 1.15; pointer-events: none;
  }
  .hero-sub {
    font-size: 14px; font-weight: 400; letter-spacing: -0.01em;
    color: rgba(255,255,255,0.52);
    text-shadow: 0 1px 8px rgba(0,0,0,0.6);
    pointer-events: none;
  }
  .hero-latest {
    display: flex; flex-direction: column; gap: 5px;
    background: rgba(8,8,18,0.72); backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
    padding: 12px 16px; max-width: 360px;
    pointer-events: all; cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
  }
  .hero-latest:hover { background: rgba(8,8,18,0.88); border-color: rgba(232,160,76,0.25); }
  .hero-latest-label {
    font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--accent); font-weight: 700;
  }
  .hero-latest-title {
    font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,0.88);
    line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .hero-latest-arrow { font-size: 11px; color: rgba(232,160,76,0.6); margin-top: 2px; }
  @media (max-width: 767px) { #desktop-hero { display: none; } }

  /* ── Keyboard shortcut hint pill ── */
  .kbd-hint { display: inline-flex; gap: 3px; align-items: center; }
  .kbd-hint kbd {
    font-family: var(--mono); font-size: 9px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px; padding: 1px 5px; color: rgba(255,255,255,0.4);
  }

  /* ── App content ── */
  .app-pad { padding: 16px 18px; }

  /* Blog */
  .blog-list { display: flex; flex-direction: column; padding: 4px 0; }
  .blog-row {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 11px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    text-decoration: none; color: inherit;
    transition: background 0.12s;
    position: relative;
  }
  .blog-row:hover { background: rgba(255,255,255,0.05); }
  .blog-row:hover .blog-arrow { opacity: 0.7; transform: translateX(2px); }
  .blog-row time { font-size: 10.5px; color: #555568; white-space: nowrap; font-variant-numeric: tabular-nums; flex-shrink: 0; padding-top: 3px; min-width: 62px; }
  .blog-footer { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,0.04); text-align: center; }
  .blog-more-link { font-size: 12px; color: var(--accent); text-decoration: none; opacity: 0.8; }
  .blog-more-link:hover { opacity: 1; }
  .blog-row-body { flex: 1; min-width: 0; }
  .blog-row-body h3 { font-size: 15px; font-weight: 600; color: #e8e8f0; margin: 0; line-height: 1.4; letter-spacing: -0.02em; }
  .blog-row-body p  { font-size: 13px; color: #6a6a7a; margin: 4px 0 0; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .blog-row-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
  .blog-read-time { font-size: 10px; color: #484858; font-variant-numeric: tabular-nums; }
  .blog-arrow { margin-left: auto; font-size: 13px; color: rgba(232,160,76,0.5); flex-shrink: 0; transition: opacity 0.15s, transform 0.15s; opacity: 0; padding-top: 2px; }
  .blog-section-label { padding: 10px 18px 6px; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: #484858; font-weight: 700; border-top: 1px solid rgba(255,255,255,0.06); margin-top: 4px; display: flex; align-items: center; gap: 8px; }
  .blog-soluna-badge { font-size: 8.5px; background: linear-gradient(90deg,#f59e0b,#d97706); color: #fff; border-radius: 3px; padding: 1px 5px; font-weight: 700; letter-spacing: .08em; flex-shrink: 0; }
  /* Blog filter bar */
  .blog-filter-bar { display: flex; gap: 6px; padding: 10px 14px 8px; border-bottom: 1px solid rgba(255,255,255,0.07); flex-wrap: wrap; }
  .blog-filter-btn { font-size: 11px; font-family: var(--font); padding: 3px 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.12); background: transparent; color: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.12s; white-space: nowrap; }
  .blog-filter-btn:hover { border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.7); }
  .blog-filter-btn.active { background: var(--accent); border-color: var(--accent); color: #080808; font-weight: 700; }
  .blog-source-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; margin-top: 1px; }
  .blog-source-dot.soluna { background: #f59e0b; }
  .blog-source-dot.yuki { background: rgba(255,255,255,0.25); }

  /* Projects */
  .proj-list { display: flex; flex-direction: column; gap: 4px; padding: 12px; }
  .proj-row {
    display: flex; align-items: center; gap: 8px;
    border-radius: 8px; border: 1px solid transparent;
    padding-right: 8px;
    transition: background 0.12s, border-color 0.12s;
  }
  .proj-row:hover { background: rgba(255,255,255,0.05); border-color: rgba(232,160,76,0.15); }
  .proj-row-link {
    display: flex; align-items: center; gap: 11px;
    flex: 1; min-width: 0; padding: 9px 6px 9px 10px;
    text-decoration: none; color: inherit;
  }
  .proj-ico {
    width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
    background: rgba(232,160,76,0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; color: var(--accent);
    overflow: hidden;
  }
  .proj-ico img { width: 100%; height: 100%; object-fit: contain; }
  .proj-name  { font-size: 13px; font-weight: 600; color: #dcdce4; display: flex; align-items: center; gap: 7px; }
  .proj-desc  { font-size: 11.5px; color: rgba(150,150,165,0.8); margin-top: 2px; line-height: 1.5; }
  .proj-badge { font-size: 10px; color: var(--accent); margin-left: auto; white-space: nowrap; flex-shrink: 0; font-variant-numeric: tabular-nums; }
  .proj-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent2); flex-shrink: 0; animation: livePulse 2s ease-in-out infinite; }
  @keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
  .proj-list .proj-row:first-child { border-color: rgba(232,160,76,0.18); background: rgba(232,160,76,0.04); }
  .proj-app-btn {
    display: flex; align-items: center; padding: 5px 10px; margin-right: 6px;
    font-size: 10px; font-weight: 600; color: var(--accent);
    background: rgba(232,160,76,0.12); border: 1px solid rgba(232,160,76,0.25);
    border-radius: 6px; text-decoration: none; white-space: nowrap; flex-shrink: 0;
    transition: background 0.12s;
  }
  .proj-app-btn:hover { background: rgba(232,160,76,0.22); }
  .proj-open-btn {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.55); font-size: 12px; cursor: pointer;
    transition: background 0.12s, color 0.12s; font-family: var(--font);
  }
  .proj-open-btn:hover { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9); }
  .proj-ext-btn {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0;
    color: rgba(255,255,255,0.28); font-size: 13px; text-decoration: none;
    transition: color 0.12s;
  }
  .proj-ext-btn:hover { color: rgba(255,255,255,0.65); }
  .proj-row-link { cursor: pointer; }

  /* Career */
  .career-list { padding: 12px 16px 4px; display: flex; flex-direction: column; }
  .career-row {
    display: flex; gap: 14px;
    padding: 14px 6px;
    border-left: 2px solid rgba(255,255,255,0.06);
    margin-left: 6px; position: relative;
  }
  .career-row::before {
    content: ''; position: absolute; left: -5px; top: 18px;
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.12);
  }
  .career-row.hl::before { background: var(--accent); box-shadow: 0 0 0 3px rgba(232,160,76,0.2); }
  .career-row.hl { border-left-color: rgba(232,160,76,0.3); }
  .career-period { font-size: 10px; color: #606075; white-space: nowrap; min-width: 68px; padding-top: 2px; font-variant-numeric: tabular-nums; }
  .career-body { flex: 1; }
  .career-body h3 { font-size: 13.5px; font-weight: 700; color: #dcdce4; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .career-body h3 img { width: 18px; height: 18px; border-radius: 4px; object-fit: contain; }
  .career-role    { font-size: 11.5px; color: var(--accent); margin-top: 3px; }
  .career-desc    { font-size: 12px; color: rgba(160,160,180,0.72); margin-top: 6px; line-height: 1.65; }

  /* Music */
  .music-list { display: flex; flex-direction: column; gap: 2px; padding: 10px; }
  .track-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 8px; cursor: pointer;
    transition: background 0.12s;
  }
  .track-row:hover   { background: rgba(255,255,255,0.06); }
  .track-row.playing { background: rgba(232,160,76,0.1); }
  .track-art { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
  .track-meta { flex: 1; min-width: 0; }
  .track-name   { font-size: 13px; font-weight: 500; color: #dcdce4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .track-artist { font-size: 11px; color: #606070; }
  .track-btn {
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,0.06); border: none;
    color: #e8e8ec; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.12s;
  }
  .track-btn:hover { background: rgba(232,160,76,0.2); color: var(--accent); }
  .track-row.playing .track-btn { background: var(--accent); color: #080808; }

  /* About */
  .about-hero { padding: 28px 22px 20px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .about-av   { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px;
    border: 2px solid rgba(232,160,76,0.4);
    box-shadow: 0 0 0 4px rgba(232,160,76,0.08), 0 8px 32px rgba(0,0,0,0.5); }
  .about-name { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
  .about-role { font-size: 12px; color: var(--accent); margin-top: 4px; letter-spacing: 0.02em; }
  .about-bio  { font-size: 13.5px; color: rgba(180,180,196,0.85); margin-top: 10px; line-height: 1.75; }
  .about-links { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 12px; }
  .about-link {
    padding: 5px 13px; border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 12px; color: var(--text); text-decoration: none;
    transition: background 0.12s, border-color 0.12s;
  }
  .about-link:hover { background: rgba(232,160,76,0.1); border-color: rgba(232,160,76,0.3); color: var(--accent); }
  .about-now { padding: 14px 20px; background: rgba(232,160,76,0.04); border-bottom: 1px solid rgba(232,160,76,0.08); }
  .about-now-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 8px; font-weight: 600; }
  .about-now-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
  .about-now-list li { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
  .about-now-list a { color: var(--accent); text-decoration: none; font-weight: 600; }
  .about-stats { display: flex; gap: 0; }
  .about-stat { flex: 1; text-align: center; padding: 10px 0; border-right: 1px solid rgba(255,255,255,0.04); }
  .about-stat:last-child { border-right: none; }
  .about-stat-n { display: block; font-size: 20px; font-weight: 800; color: var(--accent); letter-spacing: -0.03em; }
  .about-stat-l { display: block; font-size: 10px; color: #505060; margin-top: 2px; }
  .about-cta { padding: 18px 20px; text-align: center; }
  .about-cta-btn { display: inline-block; padding: 11px 28px; background: var(--accent); color: #080808; border-radius: 8px; font-size: 14px; font-weight: 700; text-decoration: none; transition: opacity 0.12s; cursor: pointer; border: none; }
  .about-cta-btn:hover { opacity: 0.85; }
  .about-cta-sub { display: block; font-size: 11px; color: #505060; margin-top: 8px; }
  .about-sec { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.03); }
  .about-sec-title { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: #505060; margin-bottom: 9px; }
  .tag-cloud { display: flex; flex-wrap: wrap; gap: 5px; }
  .tag { padding: 4px 10px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07); font-size: 11px; color: var(--text-muted); }

  /* Soluna */
  .soluna-head { padding: 18px 20px 14px; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .soluna-head h2 { font-size: 18px; font-weight: 700; }
  .soluna-head p  { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
  .soluna-head a  {
    display: inline-block; margin-top: 10px;
    padding: 6px 16px; border-radius: 20px;
    background: rgba(232,160,76,0.12); border: 1px solid rgba(232,160,76,0.3);
    color: var(--accent); font-size: 12px; text-decoration: none;
    transition: background 0.12s;
  }
  .soluna-head a:hover { background: rgba(232,160,76,0.2); }
  .sol-what { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.04); display: flex; flex-direction: column; gap: 10px; }
  .sol-what-row { display: flex; gap: 12px; align-items: flex-start; }
  .sol-what-ic { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
  .sol-what-row strong { font-size: 12px; font-weight: 700; color: #dcdce4; }
  .sol-what-row span { font-size: 11px; color: #606070; line-height: 1.5; }
  .sol-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 2px; }
  .sol-photo { position: relative; aspect-ratio: 4/3; overflow: hidden; }
  .sol-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
  .sol-photo:hover img { transform: scale(1.05); }
  .sol-cap { position: absolute; bottom: 0; left: 0; right: 0; padding: 6px 8px; background: linear-gradient(transparent, rgba(0,0,0,0.65)); font-size: 10px; color: rgba(255,255,255,0.8); }

  /* Anime */
  .anime-pad { padding: 14px 16px; }
  .anime-ep {
    display: flex; align-items: center; gap: 12px;
    border-radius: 10px; border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden; text-decoration: none; color: inherit;
    margin-bottom: 8px;
    transition: border-color 0.15s;
  }
  .anime-ep:hover { border-color: rgba(232,160,76,0.3); }
  .anime-ep img { width: 88px; height: 58px; object-fit: cover; flex-shrink: 0; }
  .anime-ep-info { padding: 0 6px 0 0; }
  .anime-ep-num   { font-size: 10px; color: var(--accent); letter-spacing: 0.12em; }
  .anime-ep-title { font-size: 13px; font-weight: 600; color: #dcdce4; }
  .anime-ep-desc  { font-size: 11px; color: #606070; }

  /* Terminal */
  .term-body {
    background: #0d0d0f; height: 100%;
    padding: 14px 16px;
    font-family: var(--mono);
    font-size: 12.5px; line-height: 1.7;
    overflow-y: auto; cursor: text;
  }
  .term-body::-webkit-scrollbar { width: 4px; }
  .term-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); }
  .term-prompt-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
  .term-ps1  { color: var(--green); white-space: nowrap; }
  .term-input {
    background: transparent; border: none; outline: none;
    color: #e8e8ec; font-family: inherit; font-size: inherit;
    flex: 1; caret-color: var(--accent);
  }

  /* ── Spotlight ── */
  #spotlight {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    z-index: 20000; display: none;
    align-items: flex-start; justify-content: center;
    padding-top: 18vh;
  }
  #spotlight.show { display: flex; }
  .sp-box {
    width: 620px; max-width: 92vw;
    background: rgba(28,28,40,0.97);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 40px 120px rgba(0,0,0,0.8);
  }
  .sp-row {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px;
  }
  .sp-icon { font-size: 20px; opacity: 0.5; }
  #sp-input {
    flex: 1; background: transparent; border: none; outline: none;
    font-size: 20px; color: #e8e8ec;
    font-family: var(--font);
  }
  #sp-input::placeholder { color: rgba(255,255,255,0.2); }
  .sp-results { border-top: 1px solid rgba(255,255,255,0.06); max-height: 280px; overflow-y: auto; }
  .sp-item {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 18px; cursor: pointer;
    transition: background 0.1s;
  }
  .sp-item:hover, .sp-item.cur { background: rgba(232,160,76,0.14); }
  .sp-item-icon  { width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; }
  .sp-item-title { font-size: 14px; color: #e0e0e8; }
  .sp-item-desc  { font-size: 11px; color: #60607080; }

  /* ── Article (blog post window) ── */
  .post-win-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  /* Reading progress bar inside window */
  .post-progress {
    height: 2px;
    background: rgba(255,255,255,0.06);
    flex-shrink: 0;
    position: relative;
  }
  .post-progress-fill {
    position: absolute; top: 0; left: 0; height: 100%;
    background: var(--accent);
    width: 0%; transition: width 0.1s linear;
  }

  /* Back button bar */
  .post-topbar {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
    background: rgba(20,20,30,0.5);
  }
  .post-back-btn {
    display: flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 6px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted); font-size: 12px; cursor: pointer;
    transition: background 0.12s, color 0.12s;
    font-family: var(--font);
  }
  .post-back-btn:hover { background: rgba(255,255,255,0.1); color: var(--text); }

  .post-open-btn {
    margin-left: auto;
    display: flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: 6px;
    background: rgba(232,160,76,0.1); border: 1px solid rgba(232,160,76,0.2);
    color: var(--accent); font-size: 11px; cursor: pointer; text-decoration: none;
    transition: background 0.12s;
    font-family: var(--font);
  }
  .post-open-btn:hover { background: rgba(232,160,76,0.2); }

  /* Article scroll area */
  .post-scroll {
    flex: 1; overflow-y: auto; min-height: 0;
    padding: 28px 32px 40px;
  }
  .post-scroll > * {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }
  .post-scroll::-webkit-scrollbar { width: 5px; }
  .post-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

  /* Article header */
  .post-meta {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-bottom: 14px;
  }
  .post-meta time { font-size: 12px; color: #606070; }
  .post-meta-badge {
    font-size: 11px; color: var(--accent);
    background: rgba(232,160,76,0.1);
    padding: 2px 8px; border-radius: 10px;
  }
  .post-tag {
    font-size: 11px; color: #606070;
    background: rgba(255,255,255,0.05);
    padding: 2px 8px; border-radius: 10px;
  }

  .post-h1 {
    font-size: 26px; font-weight: 800;
    color: #ececf0; line-height: 1.3;
    letter-spacing: -0.03em; margin-bottom: 12px;
  }
  .post-lead {
    font-size: 15px; color: #8b8b94; line-height: 1.75;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  /* Article body */
  .post-body { color: #d0d0d8; font-size: 16px; line-height: 1.85; user-select: text; -webkit-user-select: text; }

  .post-body h2 {
    font-size: 20px; font-weight: 700; color: #ececf0;
    margin: 40px 0 14px; letter-spacing: -0.02em;
    padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .post-body h3 {
    font-size: 15px; font-weight: 600; color: #dcdce4;
    margin: 24px 0 8px;
  }
  .post-body h4 {
    font-size: 14px; font-weight: 600; color: #dcdce4;
    margin: 16px 0 6px;
  }
  .post-body p { margin: 0 0 18px; }
  .post-body p:last-child { margin-bottom: 0; }

  .post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(232,160,76,0.4); }
  .post-body a:hover { text-decoration-color: var(--accent); }

  .post-body ul, .post-body ol {
    margin: 0 0 14px 20px;
  }
  .post-body li { margin: 4px 0; }

  .post-body code {
    font-family: var(--mono); font-size: 12.5px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 1px 6px; border-radius: 4px;
    color: #e8b64a;
  }
  .post-body pre {
    background: #0d0d12;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 14px 16px; margin: 14px 0;
    overflow-x: auto;
    font-family: var(--mono); font-size: 12px;
    line-height: 1.6; color: #c0c0cc;
  }
  .post-body pre code {
    background: none; border: none; padding: 0;
    color: inherit; font-size: inherit;
  }
  .post-body blockquote {
    border-left: 3px solid var(--accent);
    margin: 14px 0; padding: 8px 16px;
    background: rgba(232,160,76,0.05);
    border-radius: 0 6px 6px 0;
    color: #9090a0;
    font-style: italic;
  }
  .post-body img {
    max-width: 100%; border-radius: 8px;
    margin: 14px 0;
    border: 1px solid rgba(255,255,255,0.06);
  }
  .post-body hr {
    border: none; border-top: 1px solid rgba(255,255,255,0.08);
    margin: 28px 0;
  }
  .post-body .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 14px 0; }
  .post-body table {
    width: 100%; border-collapse: collapse; margin: 0;
    font-size: 13px; min-width: 400px;
  }
  .post-body th, .post-body td {
    padding: 8px 12px; text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .post-body th { color: #e0e0e8; font-weight: 600; background: rgba(255,255,255,0.03); }
  .post-body strong { color: #e0e0e8; font-weight: 600; }
  .post-body em { color: #aaa0b8; }

  /* Podcast player */
  .podcast-player {
    display: flex; align-items: center; gap: 12px;
    background: rgba(232,160,76,0.06);
    border: 1px solid rgba(232,160,76,0.2);
    border-radius: 12px; padding: 12px 16px;
    margin-bottom: 24px;
  }
  .podcast-play-btn {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    background: var(--accent); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: opacity .15s;
  }
  .podcast-play-btn:hover { opacity: .85; }
  .podcast-play-btn svg { width: 16px; height: 16px; fill: #111; }
  .podcast-info { flex: 1; min-width: 0; }
  .podcast-label { font-size: 10px; letter-spacing: .12em; color: var(--accent); font-weight: 600; text-transform: uppercase; margin-bottom: 3px; }
  .podcast-progress-wrap { position: relative; height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; cursor: pointer; margin-top: 6px; }
  .podcast-progress-fill { height: 100%; background: var(--accent); border-radius: 2px; width: 0%; transition: width .5s linear; pointer-events: none; }
  .podcast-time { font-size: 11px; color: #606070; white-space: nowrap; flex-shrink: 0; }

  /* Loading state */
  .post-loading {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; gap: 14px; color: var(--text-muted); font-size: 13px;
  }
  .post-spinner {
    width: 24px; height: 24px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent);
    animation: spin 0.7s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* ── DJ Player ── */
  .dj-wrap {
    display: flex; flex-direction: column; height: 100%;
    background: #07070e; overflow: hidden;
  }
  .dj-decks {
    display: flex; flex: 0 0 auto;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .dj-deck {
    flex: 1; padding: 9px 10px; display: flex; flex-direction: column; gap: 6px;
    border-right: 1px solid rgba(255,255,255,0.06); min-width: 0;
  }
  .dj-deck:last-child { border-right: none; }
  .dj-deck-header { display: flex; align-items: center; justify-content: space-between; }
  .dj-deck-label { font-size: 9px; font-weight: 700; letter-spacing: 0.12em; color: rgba(255,255,255,0.25); text-transform: uppercase; }
  .dj-deck-a .dj-deck-label { color: #e8a04c; }
  .dj-deck-b .dj-deck-label { color: #7dd3fc; }
  .dj-time-display { font-size: 10px; font-family: var(--mono); color: rgba(255,255,255,0.28); letter-spacing: 0.04em; }
  .dj-deck-a .dj-time-display { color: rgba(232,160,76,0.6); }
  .dj-deck-b .dj-time-display { color: rgba(125,211,252,0.6); }

  /* Vinyl + info row */
  .dj-top-row { display: flex; align-items: center; gap: 10px; }
  .dj-vinyl-wrap { position: relative; flex-shrink: 0; }
  .dj-vinyl {
    width: 52px; height: 52px; border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, #1a1a28 0%, #0a0a14 55%, #1c1c2c 56%, #0d0d1a 60%, #1a1a28 70%, #0a0a14 100%);
    border: 2px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,0.5);
  }
  .dj-vinyl-art { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
  .dj-vinyl-hole { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #07070e; z-index: 2; }
  @keyframes djSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
  .dj-vinyl.spinning { animation: djSpin 1.8s linear infinite; }

  /* Per-deck VU */
  .dj-vu-deck {
    width: 6px; height: 52px; background: rgba(255,255,255,0.05); border-radius: 3px;
    overflow: hidden; position: relative; flex-shrink: 0;
  }
  .dj-vu-deck-fill {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, #4cd964 0%, #e8a04c 70%, #ff3b30 90%);
    border-radius: 3px; transition: height 0.05s;
    height: 0%;
  }

  /* Track info */
  .dj-track-name { font-size: 12px; font-weight: 600; color: #dcdce4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dj-bpm { font-size: 10px; color: rgba(150,150,165,0.6); font-family: var(--mono); }

  /* Waveform */
  .dj-wave { width: 100%; height: 40px; border-radius: 6px; background: rgba(255,255,255,0.03); cursor: pointer; }

  /* Deck buttons row */
  .dj-deck-btns { display: flex; align-items: center; gap: 5px; }
  .dj-btn {
    width: 30px; height: 30px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.6);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-family: var(--font); flex-shrink: 0;
    transition: background .12s, color .12s;
  }
  .dj-btn:hover { background: rgba(255,255,255,0.13); color: #fff; }
  .dj-btn.active { background: var(--accent); color: #080808; border-color: var(--accent); }
  .dj-deck-b .dj-btn.active { background: #7dd3fc; color: #080808; border-color: #7dd3fc; }
  .dj-sync-btn { font-size: 8px; font-weight: 700; letter-spacing: 0.05em; width: 34px; }
  .dj-tempo-wrap { display: flex; align-items: center; gap: 4px; flex: 1; }
  .dj-tempo-label { font-size: 8px; color: rgba(255,255,255,0.22); font-family: var(--mono); white-space: nowrap; }

  /* Sliders */
  .dj-slider {
    -webkit-appearance: none; appearance: none;
    height: 3px; border-radius: 2px; outline: none; cursor: pointer;
    background: rgba(255,255,255,0.12);
  }
  .dj-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%;
    background: #e8a04c; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,0.5);
  }
  .dj-deck-b .dj-slider::-webkit-slider-thumb { background: #7dd3fc; }

  /* EQ + controls row */
  .dj-controls { display: flex; flex-direction: column; gap: 4px; }
  .dj-eq { display: flex; gap: 6px; }
  .dj-knob-wrap { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; }
  .dj-knob-label { font-size: 7.5px; color: rgba(255,255,255,0.22); letter-spacing: 0.08em; }
  .dj-kill-btn {
    width: 18px; height: 10px; border-radius: 2px; border: none; cursor: pointer;
    font-size: 6px; font-weight: 700; letter-spacing: 0.04em;
    background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.3);
    transition: background .1s, color .1s;
  }
  .dj-kill-btn.killed { background: #ff3b30; color: #fff; }

  /* Filter sweep */
  .dj-filter-row { display: flex; align-items: center; gap: 5px; }
  .dj-filter-label { font-size: 7.5px; color: rgba(255,255,255,0.22); letter-spacing: 0.06em; white-space: nowrap; }

  /* Loop buttons */
  .dj-loop-row { display: flex; align-items: center; gap: 4px; }
  .dj-loop-btn {
    flex: 1; padding: 3px 0; border-radius: 4px; border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.4);
    font-size: 9px; font-weight: 700; cursor: pointer; font-family: var(--font);
    transition: background .1s, color .1s, border-color .1s;
  }
  .dj-loop-btn:hover { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); }
  .dj-loop-btn.active { background: rgba(76,217,100,0.18); border-color: rgba(76,217,100,0.5); color: #4cd964; }

  /* FX row */
  .dj-fx-row { display: flex; gap: 6px; }
  .dj-fx-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .dj-fx-label { font-size: 7.5px; color: rgba(255,255,255,0.22); letter-spacing: 0.06em; }
  /* Hot cue buttons */
  .dj-hotcue-row { display: flex; align-items: center; gap: 4px; }
  .dj-hc-btn {
    flex: 1; padding: 3px 2px; border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.25);
    font-size: 7.5px; font-weight: 700; cursor: pointer; font-family: var(--mono);
    transition: all .12s; white-space: nowrap;
  }
  .dj-hc-btn.set  { background: rgba(76,217,100,0.2); border-color: #4cd964; color: #4cd964; }
  .dj-hc-btn.jump { background: rgba(255,159,10,0.25); border-color: #ff9f0a; color: #ff9f0a; }
  .dj-deck-b .dj-hc-btn.set  { background: rgba(125,211,252,0.2); border-color: #7dd3fc; color: #7dd3fc; }
  .dj-deck-b .dj-hc-btn.jump { background: rgba(125,211,252,0.15); border-color: #7dd3fc; color: #7dd3fc; }
  /* Reverse button */
  .dj-rev-btn { font-size: 9px; font-weight: 700; letter-spacing: 0.04em; }
  .dj-rev-btn.active { background: #ff3b30 !important; color: #fff !important; border-color: #ff3b30 !important; animation: revPulse 0.5s ease-in-out infinite alternate; }
  @keyframes revPulse { from{opacity:1} to{opacity:0.7} }
  /* Stutter button */
  .dj-stutter-btn.active { background: #bf5af2 !important; color: #fff !important; border-color: #bf5af2 !important; }
  /* Upload drop zone */
  .dj-upload-row {
    border: 1.5px dashed rgba(255,255,255,0.12); border-radius: 8px;
    padding: 10px 14px; text-align: center; cursor: pointer;
    font-size: 11px; color: rgba(255,255,255,0.3);
    transition: all .15s; margin: 4px 0;
  }
  .dj-upload-row:hover, .dj-upload-row.drag { border-color: var(--accent); color: var(--accent); background: rgba(52,211,153,0.06); }
  .dj-upload-row input[type=file] { display: none; }

  /* Vol row */
  .dj-vol-row { display: flex; align-items: center; gap: 5px; }

  /* Mixer */
  .dj-mixer {
    width: 110px; flex-shrink: 0;
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    padding: 10px 10px; border-left: 1px solid rgba(255,255,255,0.06); border-right: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.25);
  }
  .dj-mixer-label { font-size: 8px; letter-spacing: 0.1em; color: rgba(255,255,255,0.18); text-transform: uppercase; }
  .dj-cf-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
  .dj-cf-labels { display: flex; justify-content: space-between; width: 100%; font-size: 9px; color: rgba(255,255,255,0.25); }
  .dj-cf {
    -webkit-appearance: none; appearance: none;
    height: 4px; border-radius: 2px; outline: none; cursor: pointer;
    background: linear-gradient(to right, #e8a04c 0%, rgba(255,255,255,0.15) 50%, #7dd3fc 100%);
    width: 100%;
  }
  .dj-cf::-webkit-slider-thumb {
    -webkit-appearance: none; width: 14px; height: 22px; border-radius: 3px;
    background: #fff; cursor: pointer; box-shadow: 0 1px 6px rgba(0,0,0,0.5);
  }
  .dj-master-vol { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; }
  .dj-vu { width: 100%; height: 8px; background: rgba(255,255,255,0.05); border-radius: 4px; overflow: hidden; }
  .dj-vu-fill { height: 100%; width: 0%; background: linear-gradient(to right, #4cd964 0%, #e8a04c 70%, #ff3b30 90%); border-radius: 4px; transition: width 0.05s; }

  /* Auto DJ */
  .dj-auto-btn {
    display: flex; align-items: center; justify-content: center; gap: 4px;
    width: 100%; padding: 6px 0; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.45);
    font-size: 9px; font-weight: 700; letter-spacing: 0.1em; cursor: pointer;
    font-family: var(--font); transition: background .15s, color .15s, border-color .15s;
  }
  .dj-auto-btn.active { background: rgba(76,217,100,0.15); border-color: rgba(76,217,100,0.4); color: #4cd964; animation: autoPulse 2s ease-in-out infinite; }
  @keyframes autoPulse { 0%,100%{box-shadow:0 0 0 0 rgba(76,217,100,0)} 50%{box-shadow:0 0 8px 2px rgba(76,217,100,0.2)} }
  .dj-auto-indicator { font-size: 8px; color: rgba(76,217,100,0.7); text-align: center; letter-spacing: 0.06em; min-height: 12px; }

  /* Start overlay */
  .dj-start-overlay {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 20;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
    background: rgba(6,6,14,0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: inherit;
  }
  .dj-start-disc { width: 72px; height: 72px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2a2a3a, #0a0a14); border: 2px solid rgba(232,160,76,0.3); display: flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: 0 0 30px rgba(232,160,76,0.15); }
  .dj-start-text { font-size: 13px; color: rgba(200,200,210,0.7); text-align: center; line-height: 1.6; }
  .dj-start-btn { display: flex; align-items: center; gap: 8px; padding: 11px 26px; border-radius: 10px; border: 1px solid rgba(232,160,76,0.4); background: rgba(232,160,76,0.18); color: #e8a04c; font-size: 14px; font-weight: 700; font-family: var(--font); cursor: pointer; transition: background .15s; }
  .dj-start-btn:hover { background: rgba(232,160,76,0.3); }
  .dj-start-skip { font-size: 11px; color: rgba(255,255,255,0.22); cursor: pointer; background: none; border: none; font-family: var(--font); }
  .dj-start-skip:hover { color: rgba(255,255,255,0.5); }

  /* Track list */
  .dj-tracklist { flex: 1; overflow-y: auto; padding: 6px; display: flex; flex-direction: column; gap: 3px; min-height: 0; }
  .dj-tracklist::-webkit-scrollbar { width: 4px; }
  .dj-tracklist::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }
  .dj-track { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; border: 1px solid transparent; cursor: pointer; transition: background .1s, border-color .1s; }
  .dj-track:hover { background: rgba(255,255,255,0.05); }
  .dj-track.loaded-a { border-color: rgba(232,160,76,0.3); background: rgba(232,160,76,0.07); }
  .dj-track.loaded-b { border-color: rgba(125,211,252,0.3); background: rgba(125,211,252,0.07); }
  .dj-track-art { width: 32px; height: 32px; border-radius: 5px; object-fit: cover; flex-shrink: 0; }
  .dj-track-info { flex: 1; min-width: 0; }
  .dj-track-title { font-size: 12px; font-weight: 500; color: #dcdce4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dj-track-meta  { font-size: 10px; color: #606070; }
  .dj-load-btns { display: flex; gap: 4px; flex-shrink: 0; }
  .dj-load-btn { font-size: 9px; font-weight: 700; padding: 3px 7px; border-radius: 4px; border: none; cursor: pointer; transition: opacity .12s; }
  .dj-load-a { background: rgba(232,160,76,0.2); color: #e8a04c; }
  .dj-load-a:hover { background: rgba(232,160,76,0.35); }
  .dj-load-b { background: rgba(125,211,252,0.2); color: #7dd3fc; }
  .dj-load-b:hover { background: rgba(125,211,252,0.35); }


  /* ── Mobile ── */
  /* Mobile hero card — shown only on mobile */
  #mobile-hero {
    display: none;
    position: absolute; left: 16px; right: 16px; top: 50px;
    background: rgba(15,17,23,0.88);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    padding: 22px 20px 18px;
    z-index: 5;
    animation: heroFade 0.6s 0.3s ease-out both;
  }
  .mh-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
  .mh-av { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(232,160,76,0.4); flex-shrink: 0; }
  .mh-av-placeholder { width: 52px; height: 52px; border-radius: 50%; background: rgba(232,160,76,0.12); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
  .mh-name { font-size: 18px; font-weight: 700; color: #eaeaf2; letter-spacing: -0.3px; }
  .mh-role { font-size: 11.5px; color: rgba(150,150,165,0.85); margin-top: 3px; line-height: 1.5; }
  .mh-tagline { font-size: 15px; font-weight: 600; color: rgba(232,160,76,0.95); margin-bottom: 14px; line-height: 1.5; }
  .mh-btns { display: flex; flex-wrap: wrap; gap: 8px; }
  .mh-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 9px 14px; border-radius: 10px; font-size: 12.5px; font-weight: 600;
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
    color: rgba(220,220,228,0.9); cursor: pointer; text-decoration: none;
    transition: background .14s;
  }
  .mh-btn:hover { background: rgba(255,255,255,0.12); }
  .mh-btn.primary { background: rgba(232,160,76,0.15); border-color: rgba(232,160,76,0.3); color: rgba(232,160,76,0.95); }

  /* ── Mobile WOW: Hero 3D tilt ── */
  #mobile-hero {
    transform-style: preserve-3d;
    will-change: transform;
    transition: box-shadow .2s;
  }
  #mobile-hero.tilt-active {
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(232,160,76,0.12);
  }

  /* ── Touch ripple ── */
  .touch-ripple {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: scale(0);
    background: radial-gradient(circle, rgba(232,160,76,0.35) 0%, rgba(232,160,76,0.08) 50%, transparent 70%);
    animation: rippleOut 0.7s cubic-bezier(0.22,1,0.36,1) forwards;
  }
  @keyframes rippleOut {
    to { transform: scale(1); opacity: 0; }
  }

  /* ── Dock spring pop-in (mobile) ── */
  @media (max-width: 767px) {
    .dock-app {
      opacity: 0;
      transform: translateY(30px) scale(0.7);
      animation: dockPop 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards;
    }
    @keyframes dockPop {
      to { opacity: 1; transform: translateY(0) scale(1); }
    }
    .dock-app:active .dock-icon-wrap {
      transform: scale(0.82);
      transition: transform 0.1s cubic-bezier(0.34,1.56,0.64,1);
    }
    /* Hero entry animation */
    #mobile-hero {
      animation: heroSpring 0.7s cubic-bezier(0.34,1.4,0.64,1) both;
    }
    @keyframes heroSpring {
      from { opacity: 0; transform: scale(0.88) translateY(24px); }
      to   { opacity: 1; transform: scale(1) translateY(0); }
    }
  }

  @media (max-width: 767px) {
    #mobile-hero { display: block; }

    /* Hide desktop icons on mobile */
    #desktop-icons { display: none; }

    /* Windows become full-screen bottom sheets */
    .os-win {
      position: fixed !important;
      bottom: 76px !important; top: 44px !important;
      left: 0 !important; right: 0 !important;
      width: auto !important; height: auto !important;
      border-radius: 16px 16px 0 0 !important;
      max-height: calc(100dvh - 120px) !important;
    }
    .win-body {
      font-size: 14px;
    }

    /* Dock: always visible on mobile, full-width scrollable */
    #dock-trigger { display: none; }
    #dock {
      left: 0 !important; right: 0 !important; bottom: 0 !important;
      transform: none !important; width: auto !important;
      border-radius: 0 !important;
      justify-content: space-around;
      padding: 8px 4px calc(8px + env(safe-area-inset-bottom)) !important;
      gap: 0 !important;
      overflow-x: auto; -webkit-overflow-scrolling: touch;
      scroll-snap-type: x mandatory;
    }
    #dock::-webkit-scrollbar { display: none; }
    .dock-app {
      gap: 3px; min-width: 60px;
      scroll-snap-align: center;
    }
    .dock-icon-wrap { width: 46px; height: 46px; border-radius: 12px; }
    .dock-label { display: block !important; font-size: 9.5px; color: rgba(255,255,255,0.55); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 58px; }
    .dock-sep { display: none; }
    .dock-app.running .dock-dot { display: none; }

    /* Menubar */
    .menu-nav { display: none !important; }
    .menu-app-name-btn { display: none !important; }
    .mb-extra.hide-mobile { display: none !important; }
    #menu-clock { font-size: 11px; padding: 0 8px; }

    /* Projects: bigger touch targets */
    .proj-list { padding: 6px 8px; }
    .proj-open-btn { width: 36px; height: 36px; font-size: 14px; }
    .proj-ext-btn { width: 36px; height: 36px; font-size: 16px; }
    .proj-app-btn { padding: 8px 12px; font-size: 12px; }
    .proj-row { padding-right: 6px; }
    .proj-name { font-size: 13.5px; }
    .proj-desc { font-size: 12px; }

    /* Blog filter bar: horizontal scroll */
    .blog-filter-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; padding-bottom: 4px; }
    .blog-filter-bar::-webkit-scrollbar { display: none; }
    .blog-filter-btn { white-space: nowrap; flex-shrink: 0; padding: 6px 14px; font-size: 12.5px; }
    .blog-row { padding: 10px 12px; }
    .blog-row-title { font-size: 13.5px; }

    /* DJ: vertical layout */
    .dj-decks { flex-direction: column; }
    .dj-mixer { width: 100%; flex-direction: row; align-items: center; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); flex-wrap: wrap; }
    .dj-vu { display: none; }
    .dj-cf-wrap { flex: 1; }
    .dj-master-vol { flex: 0 0 60px; }

    /* About */
    .about-stats { flex-wrap: wrap; }
    .about-stat { flex: 1 1 33%; }
    .about-cta-btn { font-size: 16px; padding: 14px 32px; }
    .about-now-list li { font-size: 13px; }

    /* Career */
    .career-row { flex-direction: column; gap: 6px; }
    .career-period { min-width: unset; }

    /* Soluna */
    .sol-what-row strong { font-size: 13px; }

    /* General */
    .win-resize { display: none; }
    .win-bar { cursor: default; }
  }

  /* ── Skin: Windows 3.1 ── */
  body[data-skin="win31"] {
    font-family: 'MS Sans Serif','Courier New',monospace;
    background: #008080 !important;
  }
  body[data-skin="win31"] #wallpaper, body[data-skin="win31"] #wallpaper-overlay { display:none !important; }
  body[data-skin="win31"] #menubar {
    background: #c0c0c0 !important; backdrop-filter:none !important;
    border-bottom:2px solid #808080 !important;
    font-family:'MS Sans Serif','Courier New',monospace;
  }
  body[data-skin="win31"] #menubar * { color:#000 !important; }
  body[data-skin="win31"] .menu-yh span { color:#000080 !important; font-family:serif; }
  body[data-skin="win31"] .mb-extra { color:#000 !important; }
  body[data-skin="win31"] #menu-clock { color:#000 !important; }
  body[data-skin="win31"] .mb-dropdown {
    background:#c0c0c0 !important; border:2px solid #000 !important;
    border-radius:0 !important; box-shadow:2px 2px 0 #000 !important;
    backdrop-filter:none !important;
  }
  body[data-skin="win31"] .mb-item { color:#000 !important; }
  body[data-skin="win31"] .mb-item:hover { background:#000080 !important; color:#fff !important; }
  body[data-skin="win31"] .os-win {
    border:2px solid #000 !important; border-radius:0 !important;
    background:#c0c0c0 !important; backdrop-filter:none !important;
    box-shadow:4px 4px 0 #808080, 2px 2px 0 #000 !important;
  }
  body[data-skin="win31"] .win-bar {
    background:linear-gradient(90deg,#000080,#1084d0) !important;
    border-radius:0 !important; padding:3px 6px !important; min-height:20px !important;
    font-size:11px !important; font-family:'MS Sans Serif',monospace;
  }
  body[data-skin="win31"] .win-title { color:#fff !important; font-size:11px !important; font-weight:700 !important; }
  body[data-skin="win31"] .win-dot { border-radius:0 !important; width:14px !important; height:12px !important; font-size:9px !important; border:1px solid #000 !important; }
  body[data-skin="win31"] .dot-close { background:#c0c0c0 !important; color:#000 !important; }
  body[data-skin="win31"] .dot-min, body[data-skin="win31"] .dot-max { background:#c0c0c0 !important; color:#000 !important; }
  body[data-skin="win31"] .win-body { background:#fff !important; color:#000 !important; }
  body[data-skin="win31"] #desktop { background:transparent !important; }
  body[data-skin="win31"] .desk-icon-img .ai { border:1px solid #808080 !important; border-radius:0 !important; }
  body[data-skin="win31"] .desk-icon-label { color:#fff !important; text-shadow:1px 1px 0 #000 !important; font-size:10px !important; }
  body[data-skin="win31"] #dock { background:#c0c0c0 !important; border-top:2px solid #808080 !important; backdrop-filter:none !important; border-radius:0 !important; }
  body[data-skin="win31"] .dock-icon-wrap { border-radius:0 !important; }

  /* ── Skin: Windows 95 ── */
  body[data-skin="win95"] {
    font-family:'MS Sans Serif','Tahoma',sans-serif;
    background:#008080 !important;
  }
  body[data-skin="win95"] #wallpaper, body[data-skin="win95"] #wallpaper-overlay { display:none !important; }
  body[data-skin="win95"] #menubar {
    background:#c0c0c0 !important; backdrop-filter:none !important;
    border-bottom:2px solid #fff !important;
    box-shadow:0 2px 0 #808080 !important;
  }
  body[data-skin="win95"] #menubar * { color:#000 !important; }
  body[data-skin="win95"] .menu-yh span { color:#000080 !important; font-weight:900; }
  body[data-skin="win95"] .mb-extra { color:#000 !important; }
  body[data-skin="win95"] #menu-clock {
    color:#000 !important; background:#c0c0c0 !important;
    border:2px inset #808080 !important; padding:1px 6px !important;
  }
  body[data-skin="win95"] .mb-dropdown {
    background:#c0c0c0 !important; backdrop-filter:none !important; border-radius:0 !important;
    border:2px solid !important; border-color:#fff #808080 #808080 #fff !important;
    box-shadow:1px 1px 0 #000 !important;
  }
  body[data-skin="win95"] .mb-item { color:#000 !important; font-size:12px !important; }
  body[data-skin="win95"] .mb-item:hover { background:#000080 !important; color:#fff !important; }
  body[data-skin="win95"] .os-win {
    border:0 !important; border-radius:0 !important;
    background:#c0c0c0 !important; backdrop-filter:none !important;
    box-shadow:inset -1px -1px #000, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf !important;
  }
  body[data-skin="win95"] .win-bar {
    background:linear-gradient(90deg,#000080,#1084d0) !important;
    border-radius:0 !important; padding:3px 6px !important; min-height:22px !important;
    font-size:12px !important; font-family:'MS Sans Serif',sans-serif;
  }
  body[data-skin="win95"] .win-title { color:#fff !important; font-size:12px !important; font-weight:700 !important; }
  body[data-skin="win95"] .win-dot {
    border-radius:0 !important; width:16px !important; height:14px !important;
    font-size:10px !important;
    box-shadow:inset -1px -1px #808080, inset 1px 1px #fff !important;
    background:#c0c0c0 !important; color:#000 !important; border:0 !important;
  }
  body[data-skin="win95"] .win-body { background:#fff !important; color:#000 !important; }
  body[data-skin="win95"] #desktop { background:transparent !important; }
  body[data-skin="win95"] .desk-icon-img .ai { border:1px solid #808080 !important; border-radius:0 !important; }
  body[data-skin="win95"] .desk-icon-label { color:#fff !important; text-shadow:1px 1px 0 #000 !important; font-size:11px !important; }
  body[data-skin="win95"] #dock {
    background:#c0c0c0 !important; backdrop-filter:none !important; border-radius:0 !important;
    border-top:2px solid !important; border-color:#fff #808080 #808080 #fff !important;
  }
  body[data-skin="win95"] .dock-icon-wrap { border-radius:0 !important; }

  /* Retro skins: Launchpad follows the theme */
  body[data-skin="win31"] #launchpad, body[data-skin="win95"] #launchpad {
    background:rgba(192,192,192,0.97) !important;
    backdrop-filter:none !important; -webkit-backdrop-filter:none !important;
  }
  body[data-skin="win31"] .lp-app .ai, body[data-skin="win95"] .lp-app .ai {
    border-radius:0 !important; box-shadow:none !important; border:1px solid #808080 !important;
  }
  body[data-skin="win31"] .lp-label, body[data-skin="win95"] .lp-label {
    color:#000 !important; text-shadow:none !important;
  }
  body[data-skin="win31"] #lp-search {
    background:#fff !important; color:#000 !important;
    border:1px solid #808080 !important; border-radius:0 !important;
  }
  body[data-skin="win95"] #lp-search {
    background:#fff !important; color:#000 !important;
    border:2px inset #808080 !important; border-radius:0 !important;
  }
  body[data-skin="win31"] #lp-search::placeholder, body[data-skin="win95"] #lp-search::placeholder { color:#808080 !important; }

  /* Skin switcher button */
  #skin-btn { font-size:11px; color:rgba(255,255,255,0.6); padding:0 6px; cursor:pointer; letter-spacing:.02em; white-space:nowrap; }
  #skin-btn:hover { color:rgba(255,255,255,0.9); }
  body[data-skin="win31"] #skin-btn, body[data-skin="win95"] #skin-btn { color:#000; }
  body[data-skin="win31"] #skin-btn:hover, body[data-skin="win95"] #skin-btn:hover { color:#000080; }
  