  :root{
    --v60-purple:#7c5cff; --v60-cyan:#00d4ff; --v60-gold:#ffb347; --v60-red:#ff5a5f; --v60-green:#00ffaa;
    --v60-glass:rgba(255,255,255,0.045); --v60-border:rgba(255,255,255,0.085);
  }
  body.v60-theme-midnight{
    background:
      radial-gradient(circle at 10% 12%, rgba(124,92,255,0.16), transparent 28%),
      radial-gradient(circle at 88% 18%, rgba(0,212,255,0.10), transparent 24%),
      linear-gradient(180deg, #06070a, #0c0d14 55%, #08090b);
  }
  body.v60-theme-nebula{
    background:
      radial-gradient(circle at 18% 10%, rgba(149,94,255,0.22), transparent 30%),
      radial-gradient(circle at 84% 14%, rgba(0,212,255,0.18), transparent 24%),
      radial-gradient(circle at 50% 100%, rgba(255,179,71,0.10), transparent 30%),
      linear-gradient(180deg, #05060a, #0b0d16);
  }
  body.v60-theme-carbon{ background: linear-gradient(180deg, #090a0b, #111317); }
  body.v60-theme-ember{
    background:
      radial-gradient(circle at 18% 12%, rgba(255,90,95,0.18), transparent 30%),
      radial-gradient(circle at 84% 12%, rgba(255,179,71,0.14), transparent 24%),
      linear-gradient(180deg, #090607, #141011);
  }
  body.v60-theme-arctic{
    background:
      radial-gradient(circle at 16% 10%, rgba(0,212,255,0.20), transparent 28%),
      radial-gradient(circle at 84% 18%, rgba(124,92,255,0.12), transparent 24%),
      linear-gradient(180deg, #070b0f, #0c1218);
  }
  body.v60-theme-midnight .panel,
  body.v60-theme-nebula .panel,
  body.v60-theme-carbon .panel,
  body.v60-theme-ember .panel,
  body.v60-theme-arctic .panel{
    background: linear-gradient(180deg, rgba(20,21,28,0.94), rgba(10,12,18,0.94));
    border:1px solid var(--v60-border);
    box-shadow: 0 24px 80px rgba(0,0,0,0.46), inset 0 1px 0 rgba(255,255,255,0.025);
    backdrop-filter: blur(18px);
  }
  #app{ padding-top:76px !important; padding-bottom:76px !important; }
  .v60-top-ribbon,.v60-statusbar{
    position: fixed; left:12px; right:12px; z-index:10002;
    display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap;
    padding:10px 12px; border-radius:18px;
    background: linear-gradient(180deg, rgba(14,16,22,0.90), rgba(8,10,14,0.90));
    border:1px solid var(--v60-border); backdrop-filter: blur(18px);
    box-shadow: 0 16px 44px rgba(0,0,0,0.34);
  }
  .v60-top-ribbon{ top:12px; }
  .v60-statusbar{ bottom:12px; }
  .v60-mini-brand{ display:flex; align-items:center; gap:10px; font-weight:900; letter-spacing:.05em; }
  .v60-mini-brand .mark{ width:14px; height:14px; border-radius:999px; background:linear-gradient(135deg, var(--v60-purple), var(--v60-cyan)); box-shadow:0 0 18px rgba(124,92,255,0.55); }
  .v60-dock-btns,.v60-chipbar,.v60-statusbar .cluster{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
  .v60-pill{
    padding:7px 10px; border-radius:999px; font-family:'JetBrains Mono', monospace; font-size:10px; letter-spacing:.03em;
    background:var(--v60-glass); border:1px solid var(--v60-border); color:#bac0ca;
  }
  .v60-pill strong{ color:#fff; }
  .v60-select{
    background: rgba(255,255,255,0.05); color:#ededed; border:1px solid var(--v60-border); border-radius:10px;
    padding:8px 10px; font-family:'JetBrains Mono', monospace; font-size:11px;
  }
  .v60-view-wrap{ position:relative; }
  .v60-view-menu{
    position:absolute; top:calc(100% + 8px); right:0; width:min(280px, calc(100vw - 24px)); z-index:10030;
    display:none; padding:10px; border-radius:16px; border:1px solid var(--v60-border);
    background:linear-gradient(180deg, rgba(17,19,27,0.98), rgba(8,10,15,0.98));
    box-shadow:0 22px 60px rgba(0,0,0,0.48); backdrop-filter:blur(18px);
  }
  .v60-view-menu.open{ display:block; }
  .v60-view-title{ padding:4px 6px 10px; font-family:'JetBrains Mono', monospace; font-size:10px; color:#8e98a8; letter-spacing:.12em; text-transform:uppercase; }
  .v60-view-toggle{
    width:100%; display:flex; justify-content:space-between; align-items:center; gap:10px;
    padding:9px 10px; border-radius:10px; text-align:left; text-transform:none !important;
  }
  .v60-view-toggle .state{ font-family:'JetBrains Mono', monospace; font-size:9px; color:var(--v60-cyan); }
  .v60-view-actions{ display:grid; grid-template-columns:1fr 1fr; gap:8px; padding-top:8px; margin-top:8px; border-top:1px solid var(--v60-border); }
  .v60-view-actions button{ padding:8px; font-size:9px; }
  body.v60-hide-dashboard .app-dock,
  body.v60-hide-browser .browser-deck,
  body.v60-hide-macros #v60-performance-macros,
  body.v60-hide-session #v60-session-lab,
  body.v60-hide-history #native-history-panel,
  body.v60-hide-library #v60-library-panel,
  body.v60-hide-statusbar .v60-statusbar{ display:none !important; }
  body.v60-hide-statusbar #app{ padding-bottom:18px !important; }
  .v60-overlay{ position:fixed; inset:0; z-index:10020; display:none; align-items:center; justify-content:center; padding:24px; background:rgba(4,6,10,0.72); backdrop-filter:blur(20px); }
  .v60-overlay.open{ display:flex; }
  .v60-shell{ width:min(900px,94vw); background:linear-gradient(180deg, rgba(20,21,28,0.98), rgba(10,12,18,0.98)); border:1px solid var(--v60-border); border-radius:24px; overflow:hidden; box-shadow:0 34px 90px rgba(0,0,0,0.55), 0 0 50px rgba(124,92,255,0.14); }
  .v60-head{ padding:18px 20px; border-bottom:1px solid var(--v60-border); display:flex; justify-content:space-between; align-items:center; gap:16px; }
  .v60-search{ width:100%; padding:16px 18px; border:none; outline:none; background:rgba(255,255,255,0.04); color:#ededed; font-size:16px; font-family:Inter, system-ui, sans-serif; }
  .v60-list{ max-height:58vh; overflow:auto; padding:10px; display:flex; flex-direction:column; gap:8px; }
  .v60-item{
    width:100%; text-align:left; text-transform:none !important; padding:14px 16px; border-radius:14px; border:1px solid var(--v60-border);
    background:rgba(255,255,255,0.03); display:flex; justify-content:space-between; align-items:center; gap:12px;
  }
  .v60-item:hover,.v60-item.active{ border-color:rgba(0,212,255,0.32); box-shadow:0 0 0 1px rgba(0,212,255,0.14) inset, 0 0 18px rgba(0,212,255,0.10); }
  .v60-grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
  .v60-grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
  .v60-workspace-studio #app{ max-width:1500px; }
  .v60-workspace-performance #app{ max-width:1700px; }
  .v60-workspace-compact #app{ max-width:1240px; }
  .v60-workspace-cinematic #app{ max-width:1640px; }
  .v60-workspace-library #app{ max-width:1760px; }
  body.v60-workspace-performance .panel:not(:has(#pad-grid)):not(:has(#seq-grid)){ opacity:.92; }
  .v60-native-list{ display:flex; flex-direction:column; gap:8px; margin-top:10px; }
  .v60-card-note{ color:#aab2be; font-family:'JetBrains Mono', monospace; font-size:10px; }
  .v60-tag{ font-family:'JetBrains Mono', monospace; font-size:10px; padding:4px 8px; border-radius:999px; border:1px solid var(--v60-border); background:rgba(255,255,255,.03); }
  @media (max-width: 980px){
    .v60-grid-2,.v60-grid-3{ grid-template-columns:1fr; }
    .v60-top-ribbon,.v60-statusbar{ left:10px; right:10px; }
    #app{ padding-top:90px !important; }
  }
  @media (max-width: 1180px), (max-height: 860px){
    body{ padding-bottom:0; overflow-x:hidden; }
    #app{
      width:100%;
      max-width:100% !important;
      gap:12px !important;
      padding:58px 12px 52px !important;
    }
    .panel{ padding:14px !important; border-radius:12px; }
    .panel-header{ margin-bottom:10px; padding-bottom:8px; gap:8px; }
    header.panel{ gap:10px; }
    .brand{ font-size:22px; }
    .console-controls{ gap:7px; padding:6px 8px; }
    button{ padding:7px 10px; font-size:10px; }
    .settings-strip{ gap:8px; padding:10px; grid-template-columns:repeat(auto-fit, minmax(92px, 1fr)); }
    #pad-grid{ gap:7px; margin-bottom:12px; }
    .pad{ padding:8px; border-radius:10px; }
    .pad-label,.pad-midi,.pad-name{ font-size:9px; }
    #waveform{ height:86px; margin-bottom:10px; }
    #cursor-handle,
    #cursor-handle::before,
    #cursor-handle::after,
    #drop-text{ height:86px !important; }
    .chop-actions{ gap:8px; grid-template-columns:repeat(auto-fit, minmax(96px, 1fr)); }
    #seq-grid{ gap:4px; padding:10px; }
    .seq-row{ gap:4px; }
    .seq-label{ width:18px; font-size:9px; }
    .seq-step{ height:19px; border-radius:5px; }
    .seq-step:nth-child(4n + 2){ margin-right:6px; }
    .step-inspector{ margin-top:10px; padding:10px; grid-template-columns:minmax(120px, 180px) 1fr; gap:10px; }
    .v60-top-ribbon,.v60-statusbar{
      left:8px;
      right:8px;
      gap:6px;
      padding:6px 8px;
      border-radius:12px;
    }
    .v60-top-ribbon{ top:6px; }
    .v60-statusbar{ bottom:6px; }
    .v60-mini-brand .v60-card-note,
    .v60-statusbar #v60-diag-pill{ display:none; }
    .v60-dock-btns,.v60-chipbar,.v60-statusbar .cluster{ gap:5px; }
    .v60-pill{ padding:5px 7px; font-size:9px; }
    .v60-select{ padding:5px 7px; font-size:9px; border-radius:8px; }
  }
  @media (max-width: 980px){
    .workspace{ grid-template-columns:minmax(260px, 0.95fr) minmax(280px, 1.05fr); gap:12px !important; }
    .browser-deck{ grid-template-columns:1fr; }
    .app-dock{ grid-template-columns:1fr; }
  }
  @media (max-width: 780px){
    #app{ padding:54px 8px 48px !important; }
    .workspace{ grid-template-columns:1fr; }
    header.panel::after,
    .utility-row .status-pill:not(#project-status):not(#shell-status){ display:none; }
    .console-controls{ width:100%; justify-content:space-between; }
    #project-name{ min-width:120px !important; }
    .step-inspector{ grid-template-columns:1fr; }
  }
  @media (max-height: 820px){
    body:not(.v60-allow-small-extras) .app-dock,
    body:not(.v60-allow-small-extras) .browser-deck,
    body:not(.v60-allow-small-extras) #v60-performance-macros,
    body:not(.v60-allow-small-extras) #v60-session-lab,
    body:not(.v60-allow-small-extras) #native-history-panel,
    body:not(.v60-allow-small-extras):not(.v60-workspace-library) #v60-library-panel{ display:none !important; }
  }
  @media (max-height: 680px){
    #app{ gap:8px !important; padding-top:48px !important; padding-bottom:42px !important; }
    .utility-row,
    .step-inspector,
    .v60-statusbar #v60-session-pill,
    .v60-statusbar #v60-mode-pill{ display:none !important; }
    .panel{ padding:10px !important; }
    .settings-strip{ margin-bottom:6px; padding:8px; }
    #waveform{ height:64px; }
    #cursor-handle,
    #cursor-handle::before,
    #cursor-handle::after,
    #drop-text{ height:64px !important; }
    .seq-step{ height:15px; }
  }
