  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    font-family: 'Inter', sans-serif;
    background: #0c0d10;
    color: #e8e8ed;
    overflow: hidden;
    user-select: none;
    -webkit-font-smoothing: antialiased;
  }
  .mono { font-family: 'JetBrains Mono', monospace; }

  .app-grid {
    display: grid;
    grid-template-columns: 320px 1fr 340px;
    grid-template-rows: 52px 1fr 34px;
    grid-template-areas:
      "topbar topbar topbar"
      "left   stage  right"
      "status status status";
    height: 100vh; width: 100vw;
  }
  .topbar { grid-area: topbar; }
  .left-panel { grid-area: left; }
  .stage-area { grid-area: stage; }
  .right-panel { grid-area: right; }
  .status-bar { grid-area: status; }

  /* TOP BAR */
  .topbar {
    display: flex; align-items: center;
    background: #121419;
    border-bottom: 1px solid #262a33;
    padding: 0 16px; z-index: 100; gap: 20px;
  }
  .app-logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 12px; letter-spacing: 1.8px;
  }
  .app-logo-mark {
    width: 26px; height: 26px; border-radius: 7px;
    background: linear-gradient(135deg, #ff6b3d, #ffb02e);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 900; color: white;
    box-shadow: 0 0 18px rgba(255,107,61,0.45);
  }
  .topbar-tabs { display: flex; gap: 2px; }
  .topbar-tab {
    padding: 7px 14px; font-size: 11px; font-weight: 600;
    color: #5a5a68; border-radius: 6px; cursor: pointer;
    transition: all 0.15s; letter-spacing: 0.4px;
  }
  .topbar-tab:hover { color: #a0a0b0; background: #171a20; }
  .topbar-tab.active { color: #ff6b3d; background: rgba(255,107,61,0.08); }
  .topbar-stats { display: flex; gap: 22px; margin-left: auto; align-items: center; }
  .topbar-stat { display: flex; align-items: center; gap: 8px; }
  .topbar-stat-icon {
    width: 30px; height: 30px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; font-size: 12px;
  }
  .topbar-stat-value { font-family: 'JetBrains Mono', monospace; font-weight: 600; color: #e8e8ed; font-size: 12px; }
  .topbar-stat-label { font-size: 9px; color: #5a5a68; text-transform: uppercase; letter-spacing: 0.5px; }

  /* PANELS */
  .left-panel, .right-panel {
    background: #121419;
    overflow-y: auto; overflow-x: hidden;
  }
  .left-panel { border-right: 1px solid #262a33; }
  .right-panel { border-left: 1px solid #262a33; }
  .left-panel::-webkit-scrollbar, .right-panel::-webkit-scrollbar { width: 6px; }
  .left-panel::-webkit-scrollbar-thumb, .right-panel::-webkit-scrollbar-thumb {
    background: #353a45; border-radius: 3px;
  }

  /* STAGE */
  .stage-area {
    position: relative; overflow: hidden;
    background: radial-gradient(ellipse at 50% 45%, #1a1d24 0%, #0c0d10 75%);
    display: flex; align-items: center; justify-content: center;
  }
  .stage-area::before {
    content: ''; position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
    background-size: 48px 48px; pointer-events: none;
  }
  .stage-area::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
  }

  /* PHONE */
  .phone-wrapper {
    position: relative; perspective: 2400px; z-index: 5;
    animation: float 7s ease-in-out infinite;
  }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
  .phone {
    position: relative; width: 320px; height: 660px;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .phone-frame {
    position: absolute; inset: -1.5px; border-radius: 56px;
    background: linear-gradient(180deg,
      var(--frame-l, #d4d4dc) 0%, var(--frame-m, #a0a0ab) 12%,
      var(--frame-d, #5a5a68) 50%, var(--frame-m, #a0a0ab) 88%,
      var(--frame-l, #d4d4dc) 100%);
    z-index: 0;
  }
  .phone-frame::before {
    content: ''; position: absolute; inset: 0; border-radius: 56px;
    background: linear-gradient(90deg, rgba(0,0,0,0.35) 0%, transparent 6%, transparent 94%, rgba(0,0,0,0.35) 100%);
    pointer-events: none;
  }

  .phone-back {
    position: absolute; inset: 3px; border-radius: 53px;
    background: var(--body-color, #e879a0);
    overflow: hidden; z-index: 1;
    box-shadow:
      inset 0 0 0 1px rgba(255,255,255,0.08),
      inset 0 0 80px rgba(0,0,0,0.12);
  }
  .phone-back::before {
    content: ''; position: absolute; inset: 0;
    background:
      radial-gradient(circle at 25% 12%, rgba(255,255,255,0.22) 0%, transparent 45%),
      radial-gradient(circle at 75% 90%, rgba(0,0,0,0.18) 0%, transparent 40%);
    pointer-events: none; mix-blend-mode: overlay; z-index: 1;
  }
  .phone-back::after {
    content: ''; position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.2'/%3E%3C/svg%3E");
    opacity: 0.35; pointer-events: none; mix-blend-mode: overlay; z-index: 2;
  }

  .phone-glare {
    position: absolute; inset: 3px; border-radius: 53px;
    background: linear-gradient(125deg,
      rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.05) 25%,
      transparent 45%, transparent 75%, rgba(255,255,255,0.06) 100%);
    pointer-events: none; z-index: 15; transition: opacity 0.3s;
  }

  /* CAMERA */
  #camera-container { position: absolute; z-index: 10; }
  .cam-lens { position: absolute; border-radius: 50%; z-index: 3; }
  .cam-lens__ring { position: absolute; inset: 0; border-radius: 50%; transition: all 0.3s; }
  .cam-lens__glass {
    position: absolute; inset: 14%; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #2a2a4a 0%, #12122a 40%, #05050f 70%, #000 100%);
    box-shadow: inset 0 0 12px rgba(0,0,0,0.95), inset 0 0 4px rgba(80,80,180,0.5), 0 0 6px rgba(0,0,0,0.6);
    overflow: hidden;
  }
  .cam-lens__glass::before {
    content: ''; position: absolute; width: 45%; height: 45%; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(180,200,255,0.85) 0%, rgba(120,140,220,0.4) 40%, transparent 75%);
    top: 12%; left: 14%; filter: blur(0.6px);
  }
  .cam-lens__glass::after {
    content: ''; position: absolute; width: 12%; height: 12%; border-radius: 50%;
    background: rgba(255,255,255,0.85); top: 22%; right: 22%; filter: blur(0.4px);
  }
  .cam-lens__pupil {
    position: absolute; inset: 28%; border-radius: 50%;
    background: radial-gradient(circle, #0a0a1e 0%, #05050e 60%, #000 100%);
    box-shadow: inset 0 0 6px rgba(0,0,0,1);
  }
  .cam-lens__pupil.blue { background: radial-gradient(circle, #1a2a5e 0%, #0a1535 60%, #000 100%); box-shadow: inset 0 0 8px rgba(60,100,200,0.6); }
  .cam-lens__pupil.purple { background: radial-gradient(circle, #2a1a5e 0%, #150a35 60%, #000 100%); box-shadow: inset 0 0 8px rgba(120,60,200,0.6); }
  .cam-lens__pupil.amber { background: radial-gradient(circle, #5e3a1a 0%, #351f0a 60%, #000 100%); box-shadow: inset 0 0 8px rgba(200,140,60,0.6); }

  /* LOGO / SPEAKER */
  .phone-logo {
    position: absolute; font-weight: 300; letter-spacing: 8px; font-size: 12px;
    color: rgba(255,255,255,0.7);
    text-shadow: 0 0 10px rgba(255,255,255,0.25), 0 1px 2px rgba(0,0,0,0.4);
    text-transform: uppercase; display: flex; align-items: center; gap: 5px; z-index: 5;
  }
  .phone-logo .accent { color: #fff; text-shadow: 0 0 14px rgba(255,255,255,0.7); font-weight: 600; }
  .speaker-grille { position: absolute; display: flex; gap: 3px; align-items: center; justify-content: center; z-index: 5; }
  .speaker-hole {
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #1a1a22 0%, #05050a 100%);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.95), 0 0 1px rgba(255,255,255,0.08);
  }
  .side-btn {
    position: absolute; border-radius: 2px;
    background: linear-gradient(90deg, var(--frame-d, #5a5a68) 0%, var(--frame-m, #a0a0ab) 50%, var(--frame-d, #5a5a68) 100%);
    box-shadow: 0 1px 2px rgba(0,0,0,0.5); z-index: 2;
  }
  .usb-port {
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
    width: 48px; height: 5px; border-radius: 3px; background: #05050a;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.95), 0 0 1px rgba(255,255,255,0.1); z-index: 5;
  }

  /* SCREEN HOME */
  .phone-screen-preview {
    position: absolute; inset: 3px; border-radius: 53px;
    background: #000; overflow: hidden; z-index: 20;
    opacity: 0; transition: opacity 0.4s; pointer-events: none;
  }
  .phone-screen-preview::before {
    content: ''; position: absolute; inset: 0;
    background: var(--wp, linear-gradient(160deg, #1a0a2e, #0a0a1a));
  }
  .home-layer {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    padding: 46px 16px 20px; z-index: 5;
  }
  .status-bar-ui {
    position: absolute; top: 12px; left: 0; right: 0;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 22px;
    color: rgba(255,255,255,0.9);
    font-size: 11px; font-weight: 600;
    z-index: 30;
    text-shadow: 0 0 8px rgba(0,0,0,0.4);
  }
  .status-bar-ui .right-icons { display: flex; gap: 5px; align-items: center; }
  .status-bar-ui .right-icons i { font-size: 10px; }

  .clock-widget { text-align: center; margin-top: 20px; margin-bottom: 8px; }
  .clock-widget .time {
    font-size: 54px; font-weight: 200;
    letter-spacing: -2.5px;
    color: rgba(255,255,255,0.95);
    line-height: 1;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  }
  .clock-widget .date {
    font-size: 10px; color: rgba(255,255,255,0.7);
    letter-spacing: 2px; text-transform: uppercase;
    margin-top: 6px;
  }

  .weather-widget {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 18px;
    padding: 12px 14px;
    margin: 10px 0;
    display: flex; align-items: center; justify-content: space-between;
    color: rgba(255,255,255,0.95);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  }
  .weather-widget .w-temp { font-size: 22px; font-weight: 300; letter-spacing: -0.5px; }
  .weather-widget .w-city { font-size: 9px; color: rgba(255,255,255,0.65); letter-spacing: 1px; text-transform: uppercase; }
  .weather-widget .w-icon { font-size: 26px; color: #ffe08a; filter: drop-shadow(0 0 12px rgba(255,220,140,0.6)); }

  .music-widget {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 10px 12px; margin: 4px 0 12px;
    display: flex; align-items: center; gap: 10px;
    color: rgba(255,255,255,0.95);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  }
  .music-art {
    width: 36px; height: 36px; border-radius: 8px;
    background: linear-gradient(135deg, #ff7ab8, #a855f7);
    box-shadow: 0 0 12px rgba(168,85,247,0.4);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: white;
  }
  .music-info { flex: 1; min-width: 0; }
  .music-title { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .music-artist { font-size: 9px; color: rgba(255,255,255,0.6); margin-top: 1px; }
  .music-wave { display: flex; gap: 2px; align-items: flex-end; height: 16px; }
  .music-wave span {
    width: 2px; background: rgba(255,255,255,0.7); border-radius: 1px;
    animation: wave 0.9s ease-in-out infinite;
  }
  .music-wave span:nth-child(1) { height: 40%; animation-delay: 0s; }
  .music-wave span:nth-child(2) { height: 80%; animation-delay: 0.15s; }
  .music-wave span:nth-child(3) { height: 60%; animation-delay: 0.3s; }
  .music-wave span:nth-child(4) { height: 90%; animation-delay: 0.45s; }
  @keyframes wave { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1); } }

  .app-grid-home {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 8px; flex: 1; margin-top: 4px;
  }
  .app-icon { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; transition: transform 0.15s; }
  .app-icon:hover { transform: scale(1.08); }
  .app-icon .icon {
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: white;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.3), 0 4px 12px rgba(0,0,0,0.3);
    position: relative; overflow: hidden;
  }
  .app-icon .icon::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    pointer-events: none;
  }
  .app-icon .label {
    font-size: 8.5px; color: rgba(255,255,255,0.85);
    text-align: center; font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  .dock {
    position: absolute;
    bottom: 22px; left: 16px; right: 16px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 24px;
    padding: 10px 12px;
    display: flex; justify-content: space-around;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 10;
  }
  .dock .app-icon .label { display: none; }
  .dock .app-icon .icon { width: 44px; height: 44px; font-size: 20px; }

  .screen-cutout { position: absolute; background: #000; z-index: 25; }
  .screen-cutout.punch {
    width: 12px; height: 12px; border-radius: 50%;
    top: 18px; left: 50%; transform: translateX(-50%);
    box-shadow: 0 0 0 1.5px rgba(30,30,40,0.9), inset 0 0 2px rgba(0,0,0,1);
  }
  .screen-cutout.punch-left {
    width: 12px; height: 12px; border-radius: 50%;
    top: 18px; left: 24px;
    box-shadow: 0 0 0 1.5px rgba(30,30,40,0.9), inset 0 0 2px rgba(0,0,0,1);
  }
  .screen-cutout.pill {
    width: 80px; height: 22px; border-radius: 14px;
    top: 16px; left: 50%; transform: translateX(-50%);
    box-shadow: 0 0 0 1.5px rgba(30,30,40,0.9), inset 0 0 3px rgba(0,0,0,1);
  }
  .screen-cutout.notch {
    width: 130px; height: 26px; border-radius: 0 0 16px 16px;
    top: 3px; left: 50%; transform: translateX(-50%);
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.9);
  }

  /* INTERNAL VIEW */
  .internal-view {
    position: absolute; inset: 3px; border-radius: 53px;
    background: #0a0a10; overflow: hidden;
    z-index: 22; opacity: 0; transition: opacity 0.4s;
    pointer-events: none;
    display: flex; flex-direction: column;
    padding: 30px 20px 20px;
  }
  .internal-view::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(122,184,255,0.08) 0%, transparent 60%),
      linear-gradient(180deg, #0a0a14 0%, #05050a 100%);
  }
  .comp-block {
    position: relative; border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 10px 12px; margin-bottom: 8px;
    display: flex; align-items: center; gap: 10px;
    backdrop-filter: blur(6px);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.05);
    z-index: 2;
  }
  .comp-block .comp-icon {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.2), 0 2px 6px rgba(0,0,0,0.4);
  }
  .comp-block .comp-info { flex: 1; min-width: 0; }
  .comp-block .comp-name {
    font-size: 10px; color: rgba(255,255,255,0.5);
    letter-spacing: 1.2px; text-transform: uppercase; font-weight: 600;
  }
  .comp-block .comp-spec {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; color: #e8e8ed; font-weight: 600; margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .comp-block .comp-meter { width: 44px; height: 44px; position: relative; flex-shrink: 0; }
  .comp-meter svg { transform: rotate(-90deg); }
  .comp-meter circle { fill: none; stroke-width: 3; stroke-linecap: round; }
  .comp-meter .bg-circle { stroke: rgba(255,255,255,0.08); }
  .comp-meter .fg-circle { stroke-dasharray: 125.6; stroke-dashoffset: 125.6; transition: stroke-dashoffset 0.5s ease, stroke 0.3s; }
  .comp-meter .meter-value {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px; font-weight: 700; color: #e8e8ed;
  }

  .battery-visual { margin-top: auto; margin-bottom: 8px; position: relative; z-index: 2; }
  .battery-visual-label {
    display: flex; justify-content: space-between;
    font-size: 9px; color: rgba(255,255,255,0.5);
    letter-spacing: 1px; text-transform: uppercase; font-weight: 600;
    margin-bottom: 6px; padding: 0 4px;
  }
  .battery-cells {
    display: flex; gap: 4px;
    padding: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
  }
  .battery-cell {
    flex: 1; height: 24px; border-radius: 3px;
    background: rgba(255,255,255,0.05);
    position: relative; overflow: hidden;
    transition: background 0.3s;
  }
  .battery-cell.active {
    background: linear-gradient(180deg, #22c55e, #16a34a);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.4), 0 0 8px rgba(34,197,94,0.4);
  }
  .battery-cell.active::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 50%);
  }
  .battery-cell.dim {
    background: linear-gradient(180deg, #854d0e, #713f12);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.2);
  }

  /* UI CONTROLS */
  .section-title {
    font-size: 10px; font-weight: 700;
    letter-spacing: 1.8px; text-transform: uppercase;
    color: #6a6a7a;
    padding: 16px 18px 10px;
    display: flex; align-items: center; gap: 8px;
  }
  .section-title::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, #262a33, transparent);
  }
  .control-row { padding: 10px 18px; display: flex; flex-direction: column; gap: 8px; }
  .control-label {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 11px; color: #8a8a98; font-weight: 500;
  }
  .control-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; color: #ff6b3d;
    background: rgba(255,107,61,0.08);
    padding: 2px 8px; border-radius: 4px;
    border: 1px solid rgba(255,107,61,0.18);
  }
  input[type="range"] {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 3px;
    border-radius: 2px; background: #262a33;
    outline: none; cursor: pointer;
  }
  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 14px; height: 14px; border-radius: 50%;
    background: linear-gradient(135deg, #ff6b3d, #e5481a);
    cursor: pointer; border: 2px solid #0c0d10;
    box-shadow: 0 0 10px rgba(255,107,61,0.5), 0 0 0 1px rgba(255,107,61,0.3);
    transition: all 0.15s;
  }
  input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 16px rgba(255,107,61,0.8), 0 0 0 1px rgba(255,107,61,0.5);
  }

  .swatch-grid {
    display: grid; grid-template-columns: repeat(6, 1fr);
    gap: 8px; padding: 4px 18px 14px;
  }
  .swatch {
    aspect-ratio: 1; border-radius: 9px;
    cursor: pointer; position: relative;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1), inset 0 -2px 4px rgba(0,0,0,0.25);
  }
  .swatch:hover {
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 6px 14px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.2);
  }
  .swatch.active {
    box-shadow: 0 0 0 2px #0c0d10, 0 0 0 4px #ff6b3d, 0 6px 20px rgba(255,107,61,0.5);
  }
  .swatch.active::after {
    content: '\f00c'; font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: white; font-size: 11px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  }

  .option-grid { display: grid; gap: 6px; padding: 4px 18px 14px; }
  .option-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .option-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .option-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .opt-btn {
    padding: 10px 6px;
    background: #181b21;
    border: 1px solid #262a33;
    border-radius: 8px; cursor: pointer;
    text-align: center; font-size: 10px;
    font-weight: 600; letter-spacing: 0.4px;
    color: #6a6a7a;
    transition: all 0.15s;
    display: flex; flex-direction: column; align-items: center; gap: 5px;
  }
  .opt-btn i { font-size: 15px; }
  .opt-btn:hover { background: #1d2128; border-color: #353a45; color: #a0a0b0; }
  .opt-btn.active {
    background: rgba(255,107,61,0.1);
    border-color: rgba(255,107,61,0.5);
    color: #ff6b3d;
    box-shadow: 0 0 24px rgba(255,107,61,0.12);
  }

  .panel-tabs {
    display: flex;
    padding: 10px 12px 0;
    gap: 4px;
    background: #121419;
    position: sticky; top: 0;
    z-index: 10;
    border-bottom: 1px solid #262a33;
    flex-wrap: wrap;
  }
  .panel-tab {
    flex: 1; min-width: 55px;
    padding: 8px 4px;
    font-size: 9px; font-weight: 700;
    color: #5a5a68;
    border-radius: 6px 6px 0 0;
    cursor: pointer; text-align: center;
    transition: all 0.15s; letter-spacing: 0.4px;
    border-bottom: 2px solid transparent;
  }
  .panel-tab:hover { color: #a0a0b0; }
  .panel-tab.active { color: #ff6b3d; border-bottom-color: #ff6b3d; }

  .preset-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px; padding: 4px 14px 14px;
  }
  .preset-card {
    background: #15181e;
    border: 1px solid #262a33;
    border-radius: 10px;
    padding: 8px; cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative; overflow: hidden;
  }
  .preset-card:hover {
    border-color: #353a45;
    background: #1c2027;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  }
  .preset-card.active {
    border-color: #ff6b3d;
    background: rgba(255,107,61,0.06);
    box-shadow: 0 0 20px rgba(255,107,61,0.2);
  }
  .preset-card.active::after {
    content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; top: 6px; right: 6px; font-size: 9px;
    color: #ff6b3d; background: rgba(255,107,61,0.15);
    width: 16px; height: 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
  }
  .preset-preview {
    aspect-ratio: 1;
    background: #0c0d10;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 8px; overflow: hidden; position: relative;
  }
  .preset-name { font-size: 10px; font-weight: 600; color: #a0a0b0; text-align: center; letter-spacing: 0.3px; }
  .preset-brand { font-size: 8px; color: #5a5a68; text-align: center; letter-spacing: 0.5px; text-transform: uppercase; margin-top: 2px; }

  .spec-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 11px 18px;
    border-bottom: 1px solid #181b21;
    font-size: 11px;
  }
  .spec-item:last-child { border-bottom: none; }
  .spec-label { color: #6a6a7a; display: flex; align-items: center; gap: 9px; }
  .spec-label i { width: 14px; text-align: center; color: #4a4a5a; font-size: 11px; }
  .spec-value { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #e8e8ed; }

  .perf-bar-container { padding: 10px 18px 16px; }
  .perf-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
  .perf-bar-label { width: 68px; color: #6a6a7a; font-weight: 500; font-size: 10px; }
  .perf-bar-track { flex: 1; height: 4px; background: #171a20; border-radius: 2px; overflow: hidden; }
  .perf-bar-fill {
    height: 100%; border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
  }
  .perf-bar-fill::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
    border-radius: 2px;
  }
  .perf-bar-value { width: 28px; text-align: right; font-family: 'JetBrains Mono', monospace; color: #a0a0b0; font-size: 10px; }

  .status-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 18px;
    background: #121419;
    border-top: 1px solid #262a33;
    font-size: 10px; color: #5a5a68;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.4px;
  }
  .status-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #22c55e; box-shadow: 0 0 8px #22c55e;
    display: inline-block; margin-right: 6px;
    animation: pulse 2s infinite;
  }
  @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

  .stage-label {
    position: absolute; font-family: 'JetBrains Mono', monospace;
    font-size: 9px; color: rgba(255,255,255,0.18);
    letter-spacing: 2px; text-transform: uppercase;
    pointer-events: none; z-index: 3;
  }
  .view-controls {
    position: absolute; top: 16px; right: 16px;
    display: flex; gap: 4px; z-index: 50;
  }
  .view-btn {
    width: 34px; height: 34px;
    background: rgba(20,20,28,0.75);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: #6a6a7a; font-size: 12px;
    cursor: pointer; transition: all 0.15s;
  }
  .view-btn:hover {
    background: rgba(30,30,40,0.9);
    color: #e8e8ed;
    border-color: rgba(255,107,61,0.35);
  }
  .view-btn.active {
    background: rgba(255,107,61,0.15);
    color: #ff6b3d;
    border-color: rgba(255,107,61,0.5);
  }
  .zoom-container {
    position: absolute; bottom: 16px; right: 16px;
    display: flex; align-items: center; gap: 8px;
    background: rgba(20,20,28,0.75);
    backdrop-filter: blur(14px);
    padding: 8px 14px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    z-index: 50;
  }
  .zoom-container input { width: 100px; }
  .zoom-container i { color: #6a6a7a; font-size: 10px; }
  .dimension-display {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; color: rgba(255,255,255,0.3);
    letter-spacing: 1px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    padding: 6px 16px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
    z-index: 50;
  }

  @keyframes highlight {
    0% { box-shadow: 0 0 0 0 rgba(255,107,61,0.5); }
    100% { box-shadow: 0 0 0 14px rgba(255,107,61,0); }
  }
  .highlight-flash { animation: highlight 0.7s ease-out; }

  .spec-pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 2px 8px;
    background: rgba(255,107,61,0.08);
    border: 1px solid rgba(255,107,61,0.2);
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px; color: #ff6b3d;
    font-weight: 600; letter-spacing: 0.3px;
  }

  .feature-chip {
    padding: 8px 10px;
    background: #181b21;
    border: 1px solid #262a33;
    border-radius: 8px;
    cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    font-size: 10px; font-weight: 600;
    color: #6a6a7a;
    transition: all 0.15s;
  }
  .feature-chip:hover { background: #1d2128; border-color: #353a45; color: #a0a0b0; }
  .feature-chip.active {
    background: rgba(96,165,250,0.1);
    border-color: rgba(96,165,250,0.5);
    color: #60a5fa;
  }
  .feature-chip.active i:first-child { color: #60a5fa; }
  .feature-chip .feature-name { flex: 1; }
  .feature-chip .feature-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    color: #5a5a68;
  }
  .feature-chip.active .feature-status { color: #60a5fa; }

  .color-picker-row {
    display: flex; align-items: center; gap: 10px;
    padding: 4px 18px 14px;
  }
  .color-picker-input {
    -webkit-appearance: none;
    appearance: none;
    width: 50px; height: 32px;
    border: 1px solid #353a45;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
    padding: 2px;
  }
  .color-picker-input::-webkit-color-swatch-wrapper { padding: 0; }
  .color-picker-input::-webkit-color-swatch { border: none; border-radius: 6px; }
  .color-picker-input::-moz-color-swatch { border: none; border-radius: 6px; }
  .color-picker-preset {
    width: 26px; height: 26px;
    border-radius: 7px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.15s;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
  }
  .color-picker-preset:hover { transform: scale(1.15); }
  .color-picker-preset.active { border-color: white; box-shadow: 0 0 0 2px #0c0d10, 0 0 0 3px #ff6b3d; }

  /* ============ R&D LAB STYLES ============ */
  .rd-layout {
    display: flex; flex-direction: column; height: 100%;
    padding: 18px 24px 24px;
    overflow-y: auto;
    position: relative;
    z-index: 5;
  }
  .rd-layout::-webkit-scrollbar { width: 6px; }
  .rd-layout::-webkit-scrollbar-thumb { background: #353a45; border-radius: 3px; }

  .rd-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .rd-title {
    font-size: 22px; font-weight: 700;
    letter-spacing: -0.5px;
    display: flex; align-items: center; gap: 12px;
  }
  .rd-title-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: linear-gradient(135deg, #ff6b3d, #ffb02e);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: white;
    box-shadow: 0 0 24px rgba(255,107,61,0.4);
  }
  .rd-subtitle {
    font-size: 11px; color: #6a6a7a;
    margin-top: 4px; letter-spacing: 0.5px;
  }
  .rd-pills { display: flex; gap: 8px; }
  .rd-pill {
    padding: 6px 14px;
    background: rgba(255,107,61,0.1);
    border: 1px solid rgba(255,107,61,0.3);
    border-radius: 20px;
    font-size: 11px; font-weight: 600;
    color: #ff6b3d;
    font-family: 'JetBrains Mono', monospace;
  }
  .rd-pill.gold {
    background: rgba(251,191,36,0.1);
    border-color: rgba(251,191,36,0.3);
    color: #fbbf24;
  }

  .rd-tabs {
    display: flex; gap: 6px;
    margin-bottom: 18px;
  }
  .rd-tab {
    padding: 10px 20px;
    background: #15181e;
    border: 1px solid #262a33;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px; font-weight: 600;
    color: #6a6a7a;
    transition: all 0.2s;
    display: flex; align-items: center; gap: 8px;
  }
  .rd-tab:hover { color: #a0a0b0; border-color: #353a45; }
  .rd-tab.active {
    background: rgba(255,107,61,0.1);
    border-color: rgba(255,107,61,0.5);
    color: #ff6b3d;
    box-shadow: 0 0 24px rgba(255,107,61,0.15);
  }
  .rd-tab.active i { color: #ff6b3d; }

  .rd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    flex: 1;
    min-height: 0;
  }

  .rd-panel {
    background: rgba(14,14,22,0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 18px;
    display: flex; flex-direction: column;
    overflow-y: auto;
    position: relative;
  }
  .rd-panel::-webkit-scrollbar { width: 5px; }
  .rd-panel::-webkit-scrollbar-thumb { background: #353a45; border-radius: 3px; }

  .rd-panel-title {
    font-size: 11px; font-weight: 700;
    letter-spacing: 1.8px; text-transform: uppercase;
    color: #8a8a98;
    margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
  }
  .rd-panel-title i { color: #ff6b3d; }

  /* Part selector */
  .part-selector {
    display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap;
  }
  .part-chip {
    padding: 8px 12px;
    background: #181b21;
    border: 1px solid #262a33;
    border-radius: 8px;
    cursor: pointer;
    font-size: 10px; font-weight: 600;
    color: #6a6a7a;
    transition: all 0.15s;
    letter-spacing: 0.3px;
    display: flex; align-items: center; gap: 6px;
  }
  .part-chip:hover { background: #1d2128; border-color: #353a45; color: #a0a0b0; }
  .part-chip.active {
    background: rgba(255,107,61,0.1);
    border-color: rgba(255,107,61,0.5);
    color: #ff6b3d;
  }

  /* Stat bar (for reliability/temp/etc) */
  .stat-row {
    margin-bottom: 14px;
  }
  .stat-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 6px;
    font-size: 10px;
  }
  .stat-name {
    color: #8a8a98; font-weight: 600;
    letter-spacing: 0.8px; text-transform: uppercase;
    display: flex; align-items: center; gap: 6px;
  }
  .stat-name i { width: 12px; text-align: center; font-size: 10px; }
  .stat-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; font-weight: 700;
    color: #e8e8ed;
  }
  .stat-track {
    height: 8px;
    background: #181b21;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
  }
  .stat-fill {
    height: 100%; border-radius: 4px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
  }
  .stat-fill::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25));
  }
  .stat-fill.perf { background: linear-gradient(90deg, #3b82f6, #1d4ed8); }
  .stat-fill.rel { background: linear-gradient(90deg, #22c55e, #16a34a); }
  .stat-fill.cost { background: linear-gradient(90deg, #fbbf24, #d97706); }
  .stat-fill.heat { background: linear-gradient(90deg, #ef4444, #dc2626); }
  .stat-fill.eff { background: linear-gradient(90deg, #a855f7, #7e22ce); }

  /* Reliability warning */
  .warning-box {
    padding: 10px 14px;
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 8px;
    font-size: 10px;
    color: #f87171;
    margin-top: 10px;
    display: flex; align-items: flex-start; gap: 8px;
    line-height: 1.5;
  }
  .warning-box i { margin-top: 1px; }
  .warning-box.safe {
    background: rgba(34,197,94,0.08);
    border-color: rgba(34,197,94,0.3);
    color: #22c55e;
  }
  .warning-box.warn {
    background: rgba(251,191,36,0.08);
    border-color: rgba(251,191,36,0.3);
    color: #fbbf24;
  }

  /* Save button */
  .rd-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff6b3d, #e5481a);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px; font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(255,107,61,0.3);
    margin-top: 14px;
  }
  .rd-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,107,61,0.5);
  }
  .rd-btn:active { transform: translateY(0); }
  .rd-btn.secondary {
    background: #262a33;
    color: #a0a0b0;
    border: 1px solid #353a45;
    box-shadow: none;
  }
  .rd-btn.secondary:hover {
    background: #2a2f3a;
    color: #e8e8ed;
    box-shadow: none;
  }

  /* Component list */
  .component-list {
    display: flex; flex-direction: column; gap: 8px;
    max-height: 260px; overflow-y: auto;
    padding-right: 4px;
  }
  .component-list::-webkit-scrollbar { width: 4px; }
  .component-list::-webkit-scrollbar-thumb { background: #353a45; border-radius: 2px; }

  .component-item {
    padding: 12px 14px;
    background: #15181e;
    border: 1px solid #262a33;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
  }
  .component-item:hover {
    border-color: #353a45;
    background: #171a20;
  }
  .component-item.active {
    border-color: #ff6b3d;
    background: rgba(255,107,61,0.06);
    box-shadow: 0 0 20px rgba(255,107,61,0.15);
  }
  .component-item-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 6px;
  }
  .component-item-name {
    font-size: 12px; font-weight: 700;
    color: #e8e8ed;
  }
  .component-item-tier {
    font-size: 9px; font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
  }
  .tier-budget { background: rgba(96,165,250,0.15); color: #60a5fa; }
  .tier-mid { background: rgba(34,197,94,0.15); color: #22c55e; }
  .tier-high { background: rgba(168,85,247,0.15); color: #a855f7; }
  .tier-flagship { background: rgba(251,191,36,0.15); color: #fbbf24; }

  .component-item-stats {
    display: flex; gap: 12px;
    font-size: 9px;
    color: #6a6a7a;
    font-family: 'JetBrains Mono', monospace;
  }
  .component-item-stats span {
    display: flex; align-items: center; gap: 3px;
  }
  .component-item-stats i { font-size: 8px; }

  /* Live preview box */
  .live-preview {
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(255,107,61,0.08), rgba(255,176,46,0.08));
    border: 1px solid rgba(255,107,61,0.2);
    border-radius: 12px;
    margin-top: 14px;
  }
  .live-preview-title {
    font-size: 10px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: #ff6b3d;
    margin-bottom: 10px;
    display: flex; align-items: center; gap: 6px;
  }
  .live-preview-row {
    display: flex; justify-content: space-between;
    padding: 5px 0;
    font-size: 11px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .live-preview-row:last-child { border-bottom: none; }
  .live-preview-row .lbl { color: #8a8a98; }
  .live-preview-row .val {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: #e8e8ed;
  }

  /* Warnings for reliability */
  .reliability-meter {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    background: #15181e;
    border: 1px solid #262a33;
    border-radius: 10px;
    margin-top: 12px;
  }
  .reliability-meter .icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
  }
  .reliability-meter .info { flex: 1; }
  .reliability-meter .title {
    font-size: 9px; text-transform: uppercase;
    letter-spacing: 1px; color: #6a6a7a;
    font-weight: 700;
  }
  .reliability-meter .desc {
    font-size: 11px; font-weight: 600;
    color: #e8e8ed; margin-top: 2px;
  }
  .reliability-meter.risk-low .icon { background: rgba(34,197,94,0.15); color: #22c55e; }
  .reliability-meter.risk-mid .icon { background: rgba(251,191,36,0.15); color: #fbbf24; }
  .reliability-meter.risk-high .icon { background: rgba(239,68,68,0.15); color: #ef4444; }
  .reliability-meter.risk-low .desc { color: #22c55e; }
  .reliability-meter.risk-mid .desc { color: #fbbf24; }
  .reliability-meter.risk-high .desc { color: #ef4444; }
