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

  /* Respect reduced motion — keep opacity/color, remove transforms */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.15s !important;
      transition-property: opacity, color, background-color, border-color !important;
    }
  }

  /* Gate hover animations for touch devices */
  @media (hover: none) {
    .item:hover,
    .tool-btn:hover,
    .preview-cmd:hover,
    .color-row:hover,
    .continue-tag:hover,
    .icon-card:hover,
    .unicode-card:hover,
    .palette-swatch:hover,
    .shade-chip:hover,
    .recent-dot:hover {
      transform: none !important;
    }
  }

  :root {
    --bg: #000000;
    --surface: rgba(255,255,255,0.04);
    --surface-hover: rgba(255,255,255,0.07);
    --surface-active: rgba(255,255,255,0.12);
    --border: rgba(255,255,255,0.06);
    --border-light: rgba(255,255,255,0.09);
    --text: #f5f5f7;
    --text-muted: rgba(255,255,255,0.5);
    --text-dim: rgba(255,255,255,0.25);
    --accent: #0A84FF;
    --accent-glow: rgba(10,132,255,0.10);
    --green: #30D158;
    --orange: #FF9F0A;
    --pink: #FF375F;
    --purple: #BF5AF2;
    --radius: 12px;
    --radius-lg: 18px;
    --btn-height: 38px;
    --btn-height-sm: 34px;
    --btn-radius: 12px;
    --btn-bg: rgba(255,255,255,0.045);
    --btn-bg-hover: rgba(255,255,255,0.078);
    --btn-border: rgba(255,255,255,0.1);
    --btn-border-hover: rgba(255,255,255,0.16);
    --btn-text: rgba(255,255,255,0.78);
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  }

  body {
    font-family: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  body.host-side-panel-body {
    --panel-stage-width: 648px;
    align-items: stretch;
    justify-content: stretch;
    background: linear-gradient(180deg, rgba(17,20,24,0.98), rgba(18,18,20,0.98));
    padding-top: calc(env(safe-area-inset-top, 0px) + 8px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  body.host-side-panel-body .backdrop {
    display: none;
  }

  body.host-side-panel-body .launcher {
    width: 100%;
    height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 8px);
    min-height: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background:
      radial-gradient(circle at 50% -8%, rgba(255,255,255,0.05), transparent 28%),
      linear-gradient(180deg, rgba(20,23,28,0.94), rgba(16,18,22,0.98));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
    position: relative;
    isolation: isolate;
  }

  body.host-side-panel-body .launcher::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.028), transparent 18%),
      radial-gradient(circle at 50% 0%, rgba(10,132,255,0.05), transparent 34%);
    pointer-events: none;
    z-index: 0;
  }

  body.host-side-panel-body .launcher::after {
    content: '';
    position: absolute;
    inset: 0;
    border-top: 0.5px solid rgba(255,255,255,0.05);
    pointer-events: none;
    z-index: 0;
  }

  /* Backdrop — subtle ambient light */
  .backdrop {
    position: fixed; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(10,132,255,0.04) 0%, transparent 50%);
    pointer-events: none;
  }

  /* Launcher — the window */
  .launcher {
    width: 860px;
    height: 520px;
    background: rgba(28,28,30,0.85);
    backdrop-filter: blur(80px) saturate(1.5);
    -webkit-backdrop-filter: blur(80px) saturate(1.5);
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 0 0.5px rgba(255,255,255,0.05),
                0 25px 80px -12px rgba(0,0,0,0.8),
                0 0 40px -15px rgba(10,132,255,0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: launchIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes launchIn {
    from { opacity: 0; transform: scale(0.97) translateY(-8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
  }

  /* Search */
  .search-bar {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    gap: 12px;
    border-bottom: 0.5px solid var(--border);
    position: relative;
    min-width: 0;
    overflow: hidden;
  }

  .search-icon {
    width: 18px; height: 18px;
    color: var(--text-dim);
    flex-shrink: 0;
    transition: color 0.25s ease;
  }
  .search-bar.has-query .search-icon { color: var(--accent); }

  .search-bar input {
    flex: 1; background: none; border: none; outline: none;
    font-size: 16px; font-family: inherit; font-weight: 400;
    color: var(--text); letter-spacing: -0.015em;
    caret-color: var(--accent);
    min-width: 0;
  }
  .search-bar input::placeholder { color: var(--text-dim); font-weight: 400; }

  .launcher.extension-first-run .search-bar {
    padding: 16px 22px 10px;
    border-bottom-color: rgba(255,255,255,0.04);
  }

  .launcher.extension-first-run .body-split,
  .launcher.extension-first-run .footer {
    display: none;
  }

  .launcher.extension-first-run .search-bar input {
    font-size: 18px;
    letter-spacing: -0.02em;
  }

  .launcher.extension-first-run .search-icon {
    width: 20px;
    height: 20px;
  }

  .extension-launchpad {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
    padding: 18px 24px 24px;
    animation: previewFade 0.2s ease-out;
  }

  .extension-launchpad[hidden] {
    display: none !important;
  }

  .extension-launchpad-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .extension-launchpad-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.38);
  }

  .extension-launchpad-title {
    font-size: 24px;
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 600;
    color: var(--text);
    max-width: 360px;
  }

  .extension-launchpad-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .extension-launchpad-card {
    text-align: left;
    padding: 14px 16px;
    min-height: 94px;
    background: rgba(255,255,255,0.035);
    border: 0.5px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    color: var(--text);
    cursor: pointer;
    transition: transform 0.2s ease-out, background 0.2s ease-out, border-color 0.2s ease-out;
  }

  .extension-launchpad-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-1px);
  }

  .extension-launchpad-card.is-primary {
    grid-column: 1 / -1;
    min-height: 84px;
    background: linear-gradient(180deg, rgba(10,132,255,0.1), rgba(255,255,255,0.03));
    border-color: rgba(10,132,255,0.2);
    box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.04);
  }

  .extension-launchpad-card.is-primary:hover {
    background: linear-gradient(180deg, rgba(10,132,255,0.14), rgba(255,255,255,0.04));
    border-color: rgba(10,132,255,0.28);
  }

  .extension-launchpad-card-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 5px;
  }

  .extension-launchpad-card.is-primary .extension-launchpad-card-title {
    font-size: 16px;
  }

  .extension-launchpad-card-copy {
    display: block;
    font-size: 12px;
    line-height: 1.35;
    color: rgba(255,255,255,0.52);
  }

  .extension-launchpad-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }

  .extension-example-chip {
    padding: 6px 11px;
    border-radius: 999px;
    border: 0.5px solid rgba(255,255,255,0.09);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.68);
    font-size: 11px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    cursor: pointer;
    transition: background 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out;
  }

  .extension-example-chip:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.14);
    color: var(--text);
  }

  .extension-launchpad-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 11px;
    color: rgba(255,255,255,0.42);
    padding-top: 2px;
  }

  @media (max-width: 760px) {
    .extension-launchpad-title {
      font-size: 22px;
      max-width: none;
    }

    .extension-launchpad-cards {
      grid-template-columns: 1fr;
    }

    .extension-launchpad-card.is-primary {
      grid-column: auto;
    }
  }

  .pipeline-chips {
    display: flex; align-items: center; gap: 4px; flex-shrink: 1; min-width: 0; max-width: 52%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  }
  .pipeline-chips::-webkit-scrollbar { display: none; }

  .pipeline-chip {
    display: flex; align-items: center; gap: 5px;
    padding: 4px 10px;
    background: var(--accent-glow);
    border: 0.5px solid rgba(10,132,255,0.18);
    border-radius: 8px;
    font-size: 12px; font-weight: 500; color: var(--accent);
    white-space: nowrap;
    flex-shrink: 0;
    animation: chipPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  @keyframes chipPop {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
  }

  .pipeline-chip .chip-x {
    cursor: pointer; opacity: 0.5; font-size: 13px; line-height: 1;
    transition: opacity 0.15s;
  }
  .pipeline-chip .chip-x:hover { opacity: 1; }

  .pipe-arrow {
    color: var(--text-dim); font-size: 14px; flex-shrink: 0;
    animation: chipPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .search-meta {
    display: flex; align-items: center; gap: 6px; flex-shrink: 0;
  }

  .kbd {
    padding: 2px 6px;
    background: rgba(255,255,255,0.05);
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 5px;
    font-size: 10px; color: var(--text-dim);
    font-family: inherit; font-weight: 500; line-height: 1;
  }

  /* Context bar */
  .context-bar {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 20px;
    border-bottom: 0.5px solid var(--border);
    background: rgba(10,132,255,0.02);
    cursor: pointer;
    transition: background 0.2s ease;
  }
  .context-bar:hover { background: rgba(10,132,255,0.05); }

  .selection-bar {
    border-bottom: 0.5px solid var(--border);
    background: linear-gradient(180deg, rgba(10,132,255,0.04), transparent);
    padding: 10px 16px;
    animation: selBarIn 0.25s var(--ease-spring);
    transition: opacity 0.2s, max-height 0.25s var(--ease-out), padding 0.25s;
    overflow: hidden;
  }

  .selection-bar.hidden {
    opacity: 0;
    max-height: 0;
    padding: 0 16px;
    border-bottom-color: transparent;
    pointer-events: none;
  }

  @keyframes selBarIn {
    from { opacity: 0; max-height: 0; padding: 0 16px; }
    to { opacity: 1; max-height: 120px; padding: 10px 16px; }
  }

  .selection-bar-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .selection-bar-detected {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .selection-bar-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--surface);
    border: 0.5px solid var(--border-light);
  }

  .selection-bar-icon svg {
    width: 14px;
    height: 14px;
  }

  .selection-bar-icon.c-accent { background: rgba(10,132,255,0.1); border-color: rgba(10,132,255,0.15); }
  .selection-bar-icon.c-accent svg { stroke: var(--accent); }
  .selection-bar-icon.c-green { background: rgba(48,209,88,0.08); border-color: rgba(48,209,88,0.12); }
  .selection-bar-icon.c-green svg { stroke: var(--green); }
  .selection-bar-icon.c-orange { background: rgba(255,159,10,0.08); border-color: rgba(255,159,10,0.12); }
  .selection-bar-icon.c-orange svg { stroke: var(--orange); }
  .selection-bar-icon.c-pink { background: rgba(255,55,95,0.08); border-color: rgba(255,55,95,0.12); }
  .selection-bar-icon.c-pink svg { stroke: var(--pink); }
  .selection-bar-icon.c-purple { background: rgba(191,90,242,0.08); border-color: rgba(191,90,242,0.12); }
  .selection-bar-icon.c-purple svg { stroke: var(--purple); }
  .selection-bar-icon.c-media { background: rgba(255,55,95,0.08); border-color: rgba(255,55,95,0.14); }
  .selection-bar-icon.c-media svg { stroke: #FF375F; }

  .selection-bar-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
  }

  .selection-bar-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.01em;
  }

  .selection-bar-preview {
    font-size: 11px;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'SF Mono', 'Fira Code', monospace;
  }

  .selection-bar-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }

  .selection-bar-btn {
    padding: 7px 14px;
    border-radius: 8px;
    border: 0.5px solid var(--border-light);
    background: var(--surface);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s var(--ease-out);
    white-space: nowrap;
  }

  .selection-bar-btn:hover {
    background: var(--surface-hover);
    color: var(--text);
    border-color: rgba(255,255,255,0.12);
  }

  .selection-bar-btn:active {
    transform: scale(0.97);
  }

  .selection-bar-btn.primary {
    background: var(--accent);
    border-color: transparent;
    color: white;
  }

  .selection-bar-btn.primary:hover {
    background: #3B8DF0;
  }

  .intent-card {
    padding: 18px 18px 16px;
    border-radius: 18px;
    border: 0.5px solid rgba(10,132,255,0.2);
    background:
      linear-gradient(180deg, rgba(10,132,255,0.14), rgba(255,255,255,0.024)),
      rgba(255,255,255,0.018);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.04),
      0 12px 36px rgba(3,8,18,0.26);
  }

  .intent-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
  }

  .intent-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.42);
  }

  .intent-title {
    margin-top: 6px;
    font-size: 24px;
    line-height: 0.98;
    letter-spacing: -0.05em;
    font-weight: 650;
    color: var(--text);
  }

  .intent-confidence {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 0.5px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.76);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
  }

  .intent-copy {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255,255,255,0.68);
  }

  .intent-why {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
  }

  .intent-why span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.045);
    border: 0.5px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.64);
    font-size: 11px;
  }

  .intent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
  }

  .intent-btn {
    min-height: 38px;
    padding: 9px 14px;
    border-radius: 12px;
    border: 0.5px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.045);
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
  }

  .intent-btn:hover {
    background: rgba(255,255,255,0.075);
    border-color: rgba(255,255,255,0.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  }

  .intent-btn.primary {
    background: var(--accent);
    border-color: transparent;
    color: white;
  }

  .intent-btn.primary:hover {
    background: #3B8DF0;
  }

  .intent-btn.subtle {
    color: rgba(255,255,255,0.56);
  }

  .ctx-dot {
    width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
    animation: ctxPulse 2.5s ease-in-out infinite;
  }
  @keyframes ctxPulse {
    0%, 100% { opacity: 0.5; } 50% { opacity: 1; }
  }

  .ctx-text { font-size: 12px; color: var(--text-muted); flex: 1; }
  .ctx-text b { color: var(--text); font-weight: 500; }
  .ctx-cycle { font-size: 10px; color: var(--text-dim); }

  /* Body: split pane */
  .body-split {
    display: flex;
    flex: 1;
    overflow: hidden;
  }

  /* Left pane: results */
  .left-pane {
    width: 380px;
    border-right: 0.5px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
  }

  .results {
    flex: 1; overflow-y: auto; padding: 6px;
    scrollbar-width: none;
  }
  .results::-webkit-scrollbar { display: none; }

  .section-label {
    padding: 10px 14px 4px;
    font-size: 11px; font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .item {
    display: flex; align-items: center;
    padding: 7px 10px;
    border-radius: 10px;
    cursor: pointer;
    gap: 12px;
    transition: background 0.15s ease;
    position: relative;
    width: 100%;
    border: none;
    background: transparent;
    color: inherit;
    text-align: left;
  }
  .item:hover { background: var(--surface-hover); }
  .item.active {
    background: rgba(10,132,255,0.12);
  }

  .item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 18px;
    border-radius: 0 3px 3px 0;
    background: var(--accent);
  }

  /* Focus-visible for keyboard navigation */
  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 8px;
  }
  .item:focus-visible, .tool-btn:focus-visible, .preview-cmd:focus-visible, .intent-btn:focus-visible, .panel-back-btn:focus-visible, .selection-bar-btn:focus-visible, .ai-limit-actions button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
  }
  input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: none;
    border-color: var(--accent);
  }

  .item-icon {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    background: var(--surface);
    border: 0.5px solid var(--border-light);
  }
  .item-icon svg {
    width: 16px; height: 16px;
    stroke: var(--text-muted); fill: none;
    stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  }
  .item-icon.c-accent { background: rgba(10,132,255,0.1); border-color: rgba(10,132,255,0.15); }
  .item-icon.c-accent svg { stroke: var(--accent); }
  .item-icon.c-green { background: rgba(48,209,88,0.08); border-color: rgba(48,209,88,0.12); }
  .item-icon.c-green svg { stroke: var(--green); }
  .item-icon.c-orange { background: rgba(255,159,10,0.08); border-color: rgba(255,159,10,0.12); }
  .item-icon.c-orange svg { stroke: var(--orange); }
  .item-icon.c-purple { background: rgba(191,90,242,0.08); border-color: rgba(191,90,242,0.12); }
  .item-icon.c-purple svg { stroke: var(--purple); }
  .item-icon.c-pink { background: rgba(255,55,95,0.08); border-color: rgba(255,55,95,0.12); }
  .item-icon.c-pink svg { stroke: var(--pink); }
  .item-icon.c-util { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.08); }
  .item-icon.c-util svg { stroke: rgba(255,255,255,0.7); }

  /* Pipeline icon */
  .item-icon.c-pipeline {
    background: linear-gradient(135deg, var(--accent-glow), rgba(160,100,255,0.06));
    border-color: rgba(10,132,255,0.12);
  }
  .item-icon.c-pipeline svg { stroke: var(--accent); }

  /* Context action icon */
  .item-icon.c-ctx {
    background: linear-gradient(135deg, rgba(48,209,88,0.08), rgba(10,132,255,0.06));
    border-color: rgba(48,209,88,0.12);
  }
  .item-icon.c-ctx svg { stroke: var(--green); }

  .item-info { flex: 1; min-width: 0; }
  .item-title {
    font-size: 13px; font-weight: 500; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    letter-spacing: -0.01em;
  }
  .item-title .fuzz-hl { color: var(--accent); }
  .item-sub {
    font-size: 11px; color: var(--text-muted); margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  .item-right {
    font-size: 10px; color: var(--text-dim); flex-shrink: 0;
  }

  .inline-steps {
    display: flex; align-items: center; gap: 3px; margin-top: 2px;
  }
  .step-tag {
    padding: 1px 5px; border-radius: 4px;
    font-size: 9px; font-weight: 500;
    background: var(--surface); border: 0.5px solid var(--border);
    color: var(--text-dim);
  }
  .step-arr { color: var(--text-dim); font-size: 9px; }

  /* Right pane: preview */
  .right-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .launcher.shell-browser .left-pane {
    width: 340px;
  }

  .launcher.shell-browser.workspace-active .left-pane {
    width: 292px;
  }

  .launcher.shell-browser .results {
    padding: 7px;
  }

  .launcher.shell-browser .item {
    padding: 8px 11px;
    gap: 10px;
  }

  .launcher.shell-browser .item-title {
    font-size: 13px;
  }

  .launcher.shell-browser .item-sub {
    font-size: 11px;
    line-height: 1.35;
    margin-top: 2px;
  }

  .launcher.shell-browser .section-label {
    padding: 10px 14px 5px;
  }

  .preview {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    scrollbar-width: none;
    animation: previewFade 0.25s ease;
  }
  .preview::-webkit-scrollbar { display: none; }

  @keyframes previewFade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .preview-header {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 20px;
  }

  .preview-head-copy {
    min-width: 0;
  }

  .preview.tool-workspace {
    padding-top: 16px;
  }

  .preview.tool-workspace .preview-header {
    gap: 12px;
    margin-bottom: 12px;
  }

  .preview.tool-workspace .preview-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .preview.tool-workspace .preview-icon svg {
    width: 17px;
    height: 17px;
  }

  .preview.tool-workspace .preview-name {
    font-size: 14px;
    letter-spacing: -0.02em;
  }

  .preview.tool-workspace .preview-tagline {
    font-size: 11px;
    line-height: 1.35;
    max-width: 34ch;
  }

  .launcher.host-side-panel .preview.tool-workspace {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .launcher.host-side-panel .preview.tool-workspace > * {
    width: min(100%, var(--panel-stage-width));
    margin-inline: auto;
  }

  .preview-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface); border: 0.5px solid var(--border-light);
  }
  .preview-icon svg {
    width: 20px; height: 20px;
    stroke: var(--text-muted); fill: none;
    stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  }

  .preview-name { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
  .preview-tagline { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

  .preview-section {
    font-size: 11px; font-weight: 500; color: var(--text-dim);
    letter-spacing: 0.02em; text-transform: uppercase;
    margin: 20px 0 8px;
  }

  .preview-cmd {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px;
    background: var(--surface);
    border: 0.5px solid var(--border-light);
    border-radius: 10px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    font-size: 13px;
  }
  .preview-cmd:hover { background: var(--surface-hover); border-color: rgba(255,255,255,0.12); }
  .preview-cmd:active { transform: scale(0.98); }
  .preview-cmd .arr { color: var(--text-dim); font-size: 13px; }

  /* ── Shared interactive widget styles ── */
  .widget {
    padding: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.032), rgba(255,255,255,0.018));
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    margin-bottom: 10px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 8px 22px rgba(0,0,0,0.08);
  }

  .tool-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .tool-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .tool-codearea {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 11px;
  }

  .tool-status-row {
    min-height: 20px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-dim);
  }

  .tool-status-success {
    color: var(--green);
    font-weight: 500;
  }

  .tool-status-error {
    color: #ff8e8e;
    font-weight: 500;
  }

  .tool-status-muted {
    color: var(--text-dim);
  }

  .tool-output-tall {
    min-height: 140px;
  }

  .tool-empty-card {
    min-height: auto;
    padding: 15px 16px;
    color: var(--text-dim);
    border-radius: 14px;
    background: rgba(255,255,255,0.022);
    border: 0.5px solid rgba(255,255,255,0.06);
  }

  .tool-stat-card {
    padding: 14px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.025);
    border: 0.5px solid rgba(255,255,255,0.06);
  }

  .tool-textarea {
    width: 100%;
    min-height: 74px;
    background: rgba(0,0,0,0.2);
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    color: var(--text);
    font-family: inherit;
    font-size: 13.5px;
    padding: 13px 14px;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    line-height: 1.6;
  }
  .tool-textarea:focus {
    border-color: rgba(255,255,255,0.18);
    background: rgba(0,0,0,0.24);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.025);
  }
  .tool-textarea::placeholder { color: var(--text-dim); }

  .tool-input {
    width: 100%;
    min-height: var(--btn-height);
    background: rgba(0,0,0,0.2);
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    color: var(--text);
    font-family: inherit;
    font-size: 13.5px;
    padding: 10px 13px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  }
  .tool-input:focus {
    border-color: rgba(255,255,255,0.18);
    background: rgba(0,0,0,0.24);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.025);
  }
  .tool-input::placeholder { color: var(--text-dim); }

  .tool-btn,
  .selection-bar-btn,
  .intent-btn,
  .ai-limit-actions button {
    min-height: var(--btn-height);
    padding: 10px 15px;
    background: rgba(255,255,255,0.045);
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    color: rgba(255,255,255,0.76);
    font-family: inherit;
    font-size: 13px;
    font-weight: 620;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s var(--ease-out), box-shadow 0.16s ease;
    white-space: nowrap;
  }
  .tool-btn:hover,
  .selection-bar-btn:hover,
  .intent-btn:hover,
  .ai-limit-actions button:hover {
    background: var(--btn-bg-hover);
    color: var(--text);
    border-color: var(--btn-border-hover);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  }
  .tool-btn:active,
  .selection-bar-btn:active,
  .intent-btn:active,
  .ai-limit-actions button:active {
    transform: scale(0.985);
  }
  .tool-btn.primary,
  .selection-bar-btn.primary,
  .intent-btn.primary,
  .ai-limit-actions button.primary {
    background: linear-gradient(180deg, #2893ff, #0A84FF);
    border-color: transparent;
    color: white;
    box-shadow: 0 12px 24px rgba(10,132,255,0.2);
  }
  .tool-btn.primary:hover,
  .selection-bar-btn.primary:hover,
  .intent-btn.primary:hover,
  .ai-limit-actions button.primary:hover {
    background: linear-gradient(180deg, #4aa1ff, #248cff);
    border-color: transparent;
  }
  .tool-btn.success {
    background: rgba(48,209,88,0.08);
    border-color: rgba(48,209,88,0.18);
    color: var(--green);
  }
  .tool-btn.success:hover { background: rgba(48,209,88,0.15); }
  .tool-btn.danger {
    background: rgba(255,55,95,0.08);
    border-color: rgba(255,55,95,0.15);
    color: #FF375F;
  }
  .tool-btn.danger:hover { background: rgba(255,55,95,0.15); }

  .tool-btn-row {
    display: flex; gap: 10px; flex-wrap: wrap;
  }

  .tool-toggle-chip {
    position: relative;
    display: inline-flex;
  }

  .tool-toggle-chip input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
  }

  .tool-toggle-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--btn-height);
    min-width: 40px;
    padding: 0 14px;
    border-radius: 14px;
    border: 0.5px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.038);
    color: rgba(255,255,255,0.52);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  }

  .tool-toggle-chip:hover span {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.14);
    color: var(--text);
  }

  .tool-toggle-chip input:checked + span {
    background: linear-gradient(180deg, rgba(10,132,255,0.18), rgba(10,132,255,0.11));
    border-color: rgba(10,132,255,0.3);
    color: #8fc4ff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 18px rgba(10,132,255,0.08);
  }

  .cron-preset {
    padding: 4px 10px;
    border-radius: 6px;
    border: 0.5px solid var(--border-light);
    background: var(--surface);
    color: var(--text-dim);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 10px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
  }

  .cron-preset:hover {
    background: var(--surface-hover);
    color: var(--text);
    border-color: rgba(255,255,255,0.12);
  }

  .calc-shell {
    background:
      radial-gradient(circle at top, rgba(255,255,255,0.06), transparent 42%),
      linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  }

  .calc-display {
    padding: 18px 16px 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 0.5px solid rgba(255,255,255,0.08);
  }

  .calc-memory {
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.01em;
    min-height: 16px;
  }

  .calc-expression {
    margin-top: 8px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 14px;
    color: rgba(255,255,255,0.62);
    min-height: 20px;
    word-break: break-all;
  }

  .calc-result {
    margin-top: 6px;
    font-size: 34px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--text);
    min-height: 34px;
    word-break: break-all;
  }

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

  .calc-key {
    min-height: 54px;
    border-radius: 18px;
    border: 0.5px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font-size: 22px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  }

  .calc-key:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.12);
  }

  .calc-key:active {
    transform: scale(0.97);
  }

  .calc-key.operator {
    background: linear-gradient(180deg, rgba(10,132,255,0.94), rgba(48,120,242,0.92));
    border-color: transparent;
    color: #fff;
  }

  .calc-key.function {
    background: rgba(255,255,255,0.09);
    color: rgba(255,255,255,0.86);
    font-size: 18px;
  }

  .calc-key.wide {
    grid-column: span 2;
  }

  .note-card {
    position: relative;
    padding: 13px 15px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.018));
    border: 0.5px solid var(--border-light);
    border-radius: 16px;
    margin-bottom: 8px;
  }

  .note-card-text {
    color: var(--text);
    font-size: 13.5px;
    line-height: 1.55;
    white-space: pre-wrap;
    padding-right: 24px;
  }

  .note-card-meta {
    margin-top: 6px;
    color: var(--text-dim);
    font-size: 11px;
    line-height: 1.45;
  }

  .note-card-del {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 0.5px solid var(--border-light);
    background: rgba(255,255,255,0.04);
    color: var(--text-dim);
    cursor: pointer;
  }

  .note-card-del:hover {
    color: var(--text);
    background: rgba(255,255,255,0.08);
  }

  .todo-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--btn-height);
    padding: 0 15px;
    border-radius: 999px;
    border: 0.5px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.042);
    color: rgba(255,255,255,0.62);
    font: inherit;
    font-size: 13px;
    font-weight: 620;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  }

  .todo-filter-chip:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.14);
    color: var(--text);
  }

  .todo-filter-chip.active {
    background: linear-gradient(180deg, rgba(48,209,88,0.16), rgba(48,209,88,0.1));
    border-color: rgba(48,209,88,0.22);
    color: var(--green);
    box-shadow: 0 10px 20px rgba(48,209,88,0.08);
  }

  .todo-shell {
    gap: 16px;
  }

  .todo-compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .todo-input {
    min-width: 0;
  }

  .todo-add-btn {
    min-width: 106px;
  }

  .todo-toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .todo-filter-row,
  .todo-actions-row,
  .todo-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .todo-actions-row .tool-btn {
    min-width: 132px;
  }

  .todo-heading {
    justify-content: space-between;
    gap: 12px;
  }

  .todo-count {
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .todo-list {
    max-height: 360px;
    overflow-y: auto;
    padding-right: 2px;
  }

  .todo-empty-state {
    min-height: auto;
  }

  .todo-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 13px 15px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.018));
    border: 0.5px solid var(--border-light);
    border-radius: 16px;
    margin-bottom: 8px;
  }

  .todo-card.is-done .todo-card-text {
    color: var(--text-dim);
    text-decoration: line-through;
  }

  .todo-card-check {
    position: relative;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .todo-card-check input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
  }

  .todo-card-check span {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1.5px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.04);
  }

  .todo-card-check input:checked + span {
    background: rgba(48,209,88,0.18);
    border-color: rgba(48,209,88,0.6);
    box-shadow: inset 0 0 0 4px rgba(48,209,88,0.9);
  }

  .todo-card-copy {
    min-width: 0;
  }

  .todo-card-text {
    color: var(--text);
    font-size: 13.5px;
    line-height: 1.5;
    word-break: break-word;
  }

  .todo-card-meta {
    margin-top: 5px;
    color: var(--text-dim);
    font-size: 11px;
  }

  .todo-card-del {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 0.5px solid var(--border-light);
    background: rgba(255,255,255,0.04);
    color: var(--text-dim);
    cursor: pointer;
  }

  .todo-card-del:hover {
    color: var(--text);
    background: rgba(255,255,255,0.08);
  }

  .tool-2col {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  }

  .launcher.shell-browser .preview.tool-workspace {
    padding: 14px 16px 16px;
  }

  .launcher.shell-browser .preview.tool-workspace .widget {
    padding: 12px;
    border-radius: 14px;
  }

  .launcher.shell-browser .preview.tool-workspace .tool-2col {
    grid-template-columns: 1fr;
  }

  .tool-output {
    width: 100%;
    min-height: 60px;
    background: rgba(0,0,0,0.2);
    border: 0.5px solid rgba(255,255,255,0.085);
    border-radius: 14px;
    color: rgba(255,255,255,0.85);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12.5px;
    padding: 13px 14px;
    overflow-x: auto;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-all;
  }

  .tool-output-pre {
    margin: 0;
    color: inherit;
    font: inherit;
    white-space: pre-wrap;
    word-break: break-word;
  }

  .tool-output-compact {
    min-height: auto;
    padding: 11px 13px;
  }

  .tool-output-muted {
    color: var(--text-dim);
  }

  .tool-label {
    font-size: 10px; font-weight: 650; color: rgba(255,255,255,0.33);
    letter-spacing: 0.12em; text-transform: uppercase;
    margin-bottom: 5px;
  }

  .jp-input,
  .wc-input {
    min-height: 116px;
  }

  .tool-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    text-align: center;
  }
  .tool-stat-grid .stat-val {
    font-size: 24px; font-weight: 650; color: var(--text);
    letter-spacing: -0.05em; font-variant-numeric: tabular-nums;
  }
  .tool-stat-grid .stat-lbl {
    font-size: 10px; color: var(--text-dim); margin-top: 3px; letter-spacing: 0.08em; text-transform: uppercase;
  }

  .ext-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px;
    background: rgba(255,160,60,0.06);
    border: 0.5px solid rgba(255,160,60,0.12);
    border-radius: 6px;
    font-size: 10px; font-weight: 500; color: var(--orange);
    margin-top: 10px;
  }

  /* ── Global preview form polish ── */
  .preview textarea {
    background: rgba(255,255,255,0.04);
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: rgba(255,255,255,0.9);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 13px;
    padding: 10px 12px;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s;
  }
  .preview textarea:focus { border-color: rgba(255,255,255,0.15); }

  .preview select {
    background: rgba(255,255,255,0.04);
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    color: rgba(255,255,255,0.9);
    padding: 6px 10px;
    font-size: 12px;
    font-family: inherit;
    outline: none;
  }

  .preview input[type="range"] {
    -webkit-appearance: none;
    background: rgba(255,255,255,0.08);
    height: 4px;
    border-radius: 2px;
    outline: none;
  }
  .preview input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  }

  /* Color picker styles */
  .color-swatch-big {
    width: 100%; height: 48px;
    border-radius: 8px;
    border: 0.5px solid var(--border);
    transition: background 0.2s;
  }
  .color-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 6px 0;
    border-bottom: 0.5px solid var(--border);
    font-size: 12px;
    cursor: pointer;
    transition: background 0.1s;
  }
  .color-row:last-child { border-bottom: none; }
  .color-row:hover { background: var(--surface-hover); border-radius: 6px; padding: 6px 6px; margin: 0 -6px; }
  .color-row .cr-label { color: var(--text-dim); font-size: 10px; font-weight: 500; text-transform: uppercase; }
  .color-row .cr-value { color: var(--text); font-family: 'SF Mono', monospace; font-size: 11px; }
  .recent-colors { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
  .recent-dot {
    width: 22px; height: 22px; border-radius: 6px;
    border: 0.5px solid var(--border); cursor: pointer;
    transition: transform 0.15s;
  }
  .recent-dot:hover { transform: scale(1.15); }

  /* Pomodoro */
  .pomo-time {
    font-size: 48px; font-weight: 600; color: var(--text);
    letter-spacing: -2px; font-variant-numeric: tabular-nums;
    text-align: center;
  }
  .pomo-label { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 4px; }
  .pomo-progress {
    width: 100%; height: 4px; border-radius: 2px;
    background: var(--surface); margin-top: 12px; overflow: hidden;
  }
  .pomo-progress-bar {
    height: 100%; border-radius: 2px;
    background: var(--accent);
    transition: width 0.5s linear;
  }
  .pomo-sessions { font-size: 11px; color: var(--text-dim); text-align: center; margin-top: 8px; }

  /* Blur tool */
  .blur-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 5px 0; border-bottom: 0.5px solid var(--border); font-size: 12px;
  }
  .blur-item:last-child { border-bottom: none; }
  .blur-item .bi-text { color: var(--text); transition: filter 0.3s; }
  .blur-item .bi-text.blurred { filter: blur(5px); }
  .blur-item .bi-type { font-size: 9px; color: var(--text-dim); text-transform: uppercase; font-weight: 500; }
  .blur-toggle {
    width: 32px; height: 18px; border-radius: 9px;
    background: var(--surface-active); border: none; cursor: pointer;
    position: relative; transition: background 0.2s;
  }
  .blur-toggle.on { background: rgba(160,100,255,0.35); }
  .blur-toggle::after {
    content: ''; position: absolute; top: 2px; left: 2px;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--text); transition: transform 0.2s;
  }
  .blur-toggle.on::after { transform: translateX(14px); }

  /* Link list */
  .ll-item {
    padding: 5px 0; border-bottom: 0.5px solid var(--border);
    font-size: 11px; color: var(--accent);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .ll-item:last-child { border-bottom: none; }

  /* Clean link */
  .cl-param {
    display: flex; align-items: center; justify-content: space-between;
    padding: 4px 0; border-bottom: 0.5px solid var(--border); font-size: 12px;
  }
  .cl-param:last-child { border-bottom: none; }
  .cl-param .cp-name { color: var(--orange); font-family: 'SF Mono', monospace; font-size: 11px; text-decoration: line-through; }
  .cl-param .cp-val { color: var(--text-dim); font-size: 10px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Speed demo */
  .speed-controls { display: flex; gap: 6px; }
  .speed-btn {
    flex: 1; padding: 10px;
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-family: inherit; font-size: 13px; font-weight: 500;
    cursor: pointer; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; text-align: center;
  }
  .speed-btn:hover { background: var(--surface-hover); color: var(--text); }
  .speed-btn.active { background: var(--accent-glow); border-color: rgba(10,132,255,0.2); color: var(--accent); }

  .speed-demo-box {
    width: 100%; height: 80px; border-radius: 8px;
    background: rgba(0,0,0,0.3); border: 0.5px solid var(--border);
    position: relative; overflow: hidden; margin-bottom: 10px;
  }
  .speed-ball {
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--accent); position: absolute; top: 30px;
    animation: ballBounce 2s linear infinite;
  }
  @keyframes ballBounce {
    0% { left: 0; } 50% { left: calc(100% - 20px); } 100% { left: 0; }
  }
  .speed-current {
    font-size: 32px; font-weight: 600; color: var(--text);
    text-align: center; margin: 10px 0 6px;
    font-variant-numeric: tabular-nums;
  }

  /* Scrollmark / TabVault list */
  .sv-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 7px 0; border-bottom: 0.5px solid var(--border); font-size: 12px;
  }
  .sv-item:last-child { border-bottom: none; }
  .sv-item .sv-name { color: var(--text); font-weight: 500; }
  .sv-item .sv-meta { color: var(--text-dim); font-size: 10px; }
  .sv-item .sv-del {
    color: var(--text-dim); cursor: pointer; font-size: 14px;
    transition: color 0.15s; padding: 0 4px;
  }
  .sv-item .sv-del:hover { color: #FF375F; }
  .sv-empty { font-size: 12px; color: var(--text-dim); text-align: center; padding: 16px 0; }

  /* JSON syntax highlight */
  .json-hl .j-key { color: var(--accent); }
  .json-hl .j-str { color: var(--green); }
  .json-hl .j-num { color: var(--orange); }
  .json-hl .j-bool { color: var(--pink); }
  .json-hl .j-null { color: var(--text-dim); }
  .json-hl .j-err { color: #FF375F; text-decoration: underline wavy #FF375F; }
  .json-hl .j-line { display: block; }
  .json-hl .j-lineno {
    display: inline-block; width: 30px; text-align: right;
    color: var(--text-dim); margin-right: 12px; user-select: none;
    font-size: 10px; opacity: 0.5;
  }

  /* Pipeline preview in right pane */
  .pipe-step {
    display: flex; align-items: flex-start; gap: 12px;
    padding-bottom: 4px;
  }
  .pipe-connector {
    display: flex; flex-direction: column; align-items: center;
    width: 32px; flex-shrink: 0;
  }
  .pipe-dot {
    width: 32px; height: 32px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-glow); border: 0.5px solid rgba(10,132,255,0.18);
    font-size: 12px; font-weight: 600; color: var(--accent);
  }
  .pipe-line {
    width: 2px; height: 24px;
    background: linear-gradient(to bottom, rgba(10,132,255,0.25), rgba(10,132,255,0.04));
    margin: 3px 0;
  }
  .pipe-info { padding-top: 5px; flex: 1; }
  .pipe-name { font-size: 13px; font-weight: 500; }
  .pipe-desc { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
  .pipe-output {
    margin-top: 6px; padding: 6px 10px;
    background: var(--surface); border: 0.5px solid var(--border);
    border-radius: 7px; font-size: 11px; color: var(--text-dim);
  }
  .pipe-output em { color: var(--accent); font-style: normal; font-weight: 500; }

  .run-btn {
    margin: 12px 0 0;
    padding: 11px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(10,132,255,0.12), rgba(10,132,255,0.06));
    border: 0.5px solid rgba(10,132,255,0.2);
    color: var(--accent);
    font-family: inherit; font-size: 13px; font-weight: 500;
    cursor: pointer; width: 100%;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s var(--ease-out);
    display: flex; align-items: center; justify-content: center; gap: 7px;
  }
  .run-btn:hover {
    background: linear-gradient(135deg, rgba(10,132,255,0.2), rgba(10,132,255,0.1));
    border-color: rgba(10,132,255,0.35);
  }
  .run-btn:active { transform: scale(0.97); }
  .run-btn svg {
    width: 14px; height: 14px; stroke: var(--accent); fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  }

  /* Footer */
  .footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 20px;
    border-top: 0.5px solid var(--border);
  }
  .launcher.shell-browser .footer {
    padding: 7px 16px;
  }
  .footer-left, .footer-right { display: flex; align-items: center; gap: 12px; }
  .f-act { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-dim); }
  .f-act .kbd { font-size: 9px; }
  .f-count { font-size: 11px; color: var(--text-dim); }

  @keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

  /* Diff checker */
  .diff-line { font-family: 'SF Mono','Fira Code',monospace; font-size: 11px; padding: 1px 8px; white-space: pre-wrap; word-break: break-all; }
  .diff-add { background: rgba(48,209,88,0.1); color: var(--green); }
  .diff-del { background: rgba(255,55,95,0.1); color: #FF375F; }
  .diff-same { color: var(--text-dim); }

  /* Regex matches */
  .regex-match { background: rgba(10,132,255,0.25); border-radius: 2px; padding: 0 1px; }
  .regex-group { background: rgba(160,100,255,0.2); border-radius: 2px; padding: 0 1px; }
  .regex-shell {
    gap: 14px;
  }
  .regex-pattern-input {
    text-transform: none;
  }
  .regex-test-input {
    min-height: 118px;
  }
  .regex-flag-row {
    align-items: center;
  }
  .regex-output-card,
  .regex-highlighted-card {
    min-height: 124px;
  }
  .regex-result-card + .regex-result-card {
    margin-top: 10px;
  }
  .regex-result-head {
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 5px;
  }
  .regex-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    color: var(--text-dim);
    font-size: 11px;
  }
  .regex-empty-state {
    display: flex;
    align-items: center;
  }
  .regex-highlighted-copy {
    white-space: pre-wrap;
    word-break: break-word;
  }

  /* Palette swatches */
  .palette-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
  .palette-swatch {
    width: 52px; height: 52px; border-radius: 10px; border: 0.5px solid var(--border);
    cursor: pointer; transition: transform 0.15s; position: relative;
  }
  .palette-swatch:hover { transform: scale(1.1); }
  .palette-swatch-label { font-size: 9px; color: var(--text-dim); text-align: center; margin-top: 2px; font-family: 'SF Mono', monospace; }

  /* Shadow preview */
  .shadow-preview-box {
    width: 120px; height: 120px; border-radius: 16px;
    background: var(--surface-hover); margin: 16px auto;
    transition: box-shadow 0.2s;
  }

  .icon-preview-stage {
    display: flex; align-items: center; justify-content: center;
    min-height: 120px; border-radius: 12px; border: 0.5px solid var(--border);
    background: rgba(255,255,255,0.02); margin-bottom: 10px;
  }
  .icon-preview-stage svg {
    fill: none; stroke-linecap: round; stroke-linejoin: round;
  }
  .icon-grid {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px; max-height: 250px; overflow-y: auto; margin-top: 10px;
  }
  .icon-card {
    padding: 10px 6px 8px; border-radius: 10px; text-align: center;
    background: rgba(255,255,255,0.02); border: 0.5px solid var(--border);
    cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.15s;
  }
  .icon-card:hover { background: var(--surface-hover); border-color: var(--border-light); transform: translateY(-1px); }
  .icon-card.active { background: var(--accent-glow); border-color: rgba(10,132,255,0.2); }
  .icon-card svg {
    width: 24px; height: 24px;
    fill: none; stroke-linecap: round; stroke-linejoin: round;
  }
  .icon-card-name {
    margin-top: 8px; font-size: 9px; color: var(--text-dim);
    line-height: 1.3; word-break: break-word;
  }
  .icon-toolbar-meta {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin-top: 8px; font-size: 10px; color: var(--text-dim);
  }

  .shade-strip {
    display: grid; grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 6px; margin-top: 8px;
  }
  .shade-chip {
    height: 42px; border-radius: 10px; border: 0.5px solid var(--border);
    cursor: pointer; transition: transform 0.15s, border-color 0.15s;
  }
  .shade-chip:hover { transform: translateY(-1px); border-color: var(--border-light); }
  .shade-base {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 12px; border-radius: 10px; border: 0.5px solid var(--border);
    background: rgba(255,255,255,0.02); margin-top: 10px; cursor: pointer;
  }

  .shadow-stage {
    display: flex; align-items: center; justify-content: center;
    min-height: 170px; border-radius: 14px; border: 0.5px solid var(--border);
    background: #ffffff; margin-bottom: 12px; transition: background 0.2s;
  }
  .shadow-stage.dark { background: #1C1C1E; }
  .shadow-stage-box {
    width: 144px; height: 108px; border-radius: 18px;
    transition: box-shadow 0.2s, background 0.2s;
  }
  .shadow-stage-box.dark { background: #1C1C1E; }
  .shadow-stage-box.light { background: #ffffff; }
  .shadow-layer-row, .shadow-preset-row {
    display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px;
  }
  .shadow-layer-chip {
    padding: 5px 10px; border-radius: 8px; border: 0.5px solid var(--border);
    background: rgba(255,255,255,0.02); color: var(--text-muted); font-size: 11px;
    cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }
  .shadow-layer-chip.active {
    background: var(--accent-glow); border-color: rgba(10,132,255,0.2); color: var(--accent);
  }
  .shadow-controls-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; margin-top: 10px;
  }

  .unicode-filter-row {
    display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px;
  }
  .unicode-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px; max-height: 320px; overflow-y: auto; margin-top: 10px;
  }
  .unicode-card {
    padding: 10px; border-radius: 10px; border: 0.5px solid var(--border);
    background: rgba(255,255,255,0.02); cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
  }
  .unicode-card:hover { background: var(--surface-hover); border-color: var(--border-light); transform: translateY(-1px); }
  .unicode-glyph {
    font-size: 28px; line-height: 1; color: var(--text); margin-bottom: 8px;
  }
  .unicode-name {
    font-size: 11px; color: var(--text); line-height: 1.35; min-height: 30px;
  }
  .unicode-meta {
    margin-top: 6px; font-family: 'SF Mono', monospace; font-size: 9px; color: var(--text-dim); line-height: 1.5;
    word-break: break-all;
  }

  /* Slider */
  .tool-range {
    -webkit-appearance: none; width: 100%; height: 5px; border-radius: 999px;
    background: rgba(255,255,255,0.08); outline: none; margin: 8px 0;
  }
  .tool-range::-webkit-slider-thumb {
    -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
    background: #fff; cursor: pointer; border: 3px solid var(--accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.24);
  }

  /* Strength bar */
  .strength-bar { height: 4px; border-radius: 2px; background: var(--surface); margin-top: 8px; overflow: hidden; }
  .strength-fill { height: 100%; border-radius: 2px; transition: width 0.3s, background 0.3s; }

  .pg-shell,
  .jwt-shell {
    gap: 14px;
  }

  .pg-output,
  .jwt-input {
    min-height: 96px;
  }

  .pg-length-card,
  .pg-strength-card {
    margin-top: 0;
  }

  .pg-options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .pg-options-row .tool-toggle-chip span {
    min-width: 0;
  }

  .jwt-result-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .jwt-meta-card {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.025);
    border: 0.5px solid rgba(255,255,255,0.06);
  }

  .jwt-empty-state {
    min-height: auto;
  }

  .jwt-status-valid {
    color: var(--green);
  }

  .jwt-status-expired {
    color: var(--pink);
  }

  /* Markdown preview */
  .md-preview { font-size: 13px; line-height: 1.7; color: var(--text); }
  .md-preview h1 { font-size: 20px; font-weight: 600; margin: 12px 0 6px; border-bottom: 0.5px solid var(--border); padding-bottom: 4px; }
  .md-preview h2 { font-size: 17px; font-weight: 600; margin: 10px 0 5px; }
  .md-preview h3 { font-size: 15px; font-weight: 600; margin: 8px 0 4px; }
  .md-preview h4, .md-preview h5, .md-preview h6 { font-size: 13px; font-weight: 600; margin: 6px 0 3px; }
  .md-preview strong { font-weight: 600; }
  .md-preview em { font-style: italic; }
  .md-preview code { background: rgba(0,0,0,0.3); padding: 1px 5px; border-radius: 4px; font-family: 'SF Mono',monospace; font-size: 11px; }
  .md-preview pre { background: rgba(0,0,0,0.3); padding: 10px 12px; border-radius: 8px; overflow-x: auto; margin: 8px 0; }
  .md-preview pre code { background: none; padding: 0; }
  .md-preview blockquote { border-left: 3px solid var(--accent); padding-left: 12px; color: var(--text-muted); margin: 8px 0; }
  .md-preview ul, .md-preview ol { padding-left: 20px; margin: 6px 0; }
  .md-preview li { margin: 2px 0; }
  .md-preview a { color: var(--accent); text-decoration: none; }
  .md-preview a:hover { text-decoration: underline; }
  .md-preview hr { border: none; border-top: 0.5px solid var(--border); margin: 12px 0; }

  /* Timezone rows */
  .tz-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 6px 0; border-bottom: 0.5px solid var(--border); font-size: 12px;
  }
  .tz-row:last-child { border-bottom: none; }
  .tz-label { color: var(--text-dim); font-size: 10px; font-weight: 500; text-transform: uppercase; }
  .tz-time { color: var(--text); font-family: 'SF Mono', monospace; font-size: 12px; font-variant-numeric: tabular-nums; }

  /* QR code canvas */
  .qr-canvas-wrap { display: flex; justify-content: center; margin: 12px 0; }

  /* Smart Paste badge */
  .smart-paste-badge {
    display: flex; align-items: center; gap: 5px;
    padding: 3px 10px 3px 7px;
    background: linear-gradient(135deg, rgba(48,209,88,0.12), rgba(48,209,88,0.06));
    border: 0.5px solid rgba(48,209,88,0.2);
    border-radius: 8px;
    font-size: 11px; font-weight: 500; color: #30D158;
    white-space: nowrap;
    animation: chipPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
  }
  .smart-paste-badge svg { width: 12px; height: 12px; stroke: #30D158; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

  /* Global toast */
  .toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
    padding: 8px 18px; border-radius: 10px;
    background: rgba(16,16,20,0.95); border: 0.5px solid rgba(48,209,88,0.25);
    color: #30D158; font-size: 12px; font-weight: 500; font-family: 'Inter', sans-serif;
    pointer-events: none; opacity: 0; transition: opacity 0.2s, transform 0.2s;
    z-index: 9999; backdrop-filter: blur(20px);
  }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

  /* Continue-with suggestions */
  .continue-row {
    display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 8px;
    border-top: 0.5px solid var(--border);
    flex-wrap: wrap;
  }
  .continue-label { font-size: 10px; color: var(--text-dim); white-space: nowrap; }
  .continue-tag {
    padding: 3px 8px; border-radius: 6px; font-size: 10px; font-weight: 500;
    background: var(--surface); border: 0.5px solid var(--border); color: var(--text-muted);
    cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; white-space: nowrap;
  }
  .continue-tag:hover { background: var(--surface-hover); color: var(--text); border-color: var(--border-light); }

  /* Summarizer key points */
  .sum-point { display: flex; gap: 8px; padding: 6px 0; font-size: 12px; color: var(--text); line-height: 1.5; }
  .sum-bullet { color: var(--green); font-weight: 600; flex-shrink: 0; margin-top: 1px; }
  .sum-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
  .sum-stat { text-align: center; padding: 8px; background: rgba(255,255,255,0.02); border: 0.5px solid var(--border); border-radius: 8px; }
  .sum-stat-val { font-size: 18px; font-weight: 600; color: var(--text); }
  .sum-stat-label { font-size: 10px; color: var(--text-dim); margin-top: 2px; }

  /* Quick Note */
  .qn-note { padding: 10px 12px; background: rgba(255,255,255,0.02); border: 0.5px solid var(--border); border-radius: 8px; margin-bottom: 6px; position: relative; }
  .qn-note-text { font-size: 12px; color: var(--text); line-height: 1.5; white-space: pre-wrap; }
  .qn-note-meta { font-size: 10px; color: var(--text-dim); margin-top: 4px; }
  .qn-note-del { position: absolute; top: 8px; right: 8px; background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 14px; opacity: 0; transition: opacity 0.15s; }
  .qn-note:hover .qn-note-del { opacity: 1; }

  /* Readability gauge */
  .rd-gauge { width: 100%; height: 8px; background: rgba(255,255,255,0.05); border-radius: 4px; overflow: hidden; margin-top: 4px; }
  .rd-gauge-fill { height: 100%; border-radius: 4px; transition: width 0.4s ease; }

  /* Clipboard History */
  .ch-group-label { font-size: 10px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; padding: 10px 0 4px; }
  .ch-list { display: flex; flex-direction: column; gap: 8px; }
  .ch-item { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px 13px; background: rgba(255,255,255,0.024); border: 0.5px solid rgba(255,255,255,0.07); border-radius: 12px; margin-bottom: 0; cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.15s; position: relative; text-align: left; }
  .ch-item:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.11); transform: translateY(-1px); }
  .ch-item:focus-visible { outline: 2px solid rgba(10,132,255,0.75); outline-offset: 2px; }
  .ch-item-text { flex: 1; font-size: 12px; color: var(--text); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
  .ch-item-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
  .ch-item-time { font-size: 10px; color: var(--text-dim); white-space: nowrap; }
  .ch-type-badge { font-size: 9px; font-weight: 600; padding: 1px 5px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
  .ch-type-text { background: rgba(255,255,255,0.06); color: var(--text-muted); }
  .ch-type-url { background: rgba(10,132,255,0.12); color: var(--accent); }
  .ch-type-json { background: rgba(48,209,88,0.12); color: var(--green); }
  .ch-type-code { background: rgba(160,100,255,0.12); color: var(--purple); }
  .ch-type-email { background: rgba(255,164,60,0.12); color: var(--orange); }
  .ch-type-number { background: rgba(255,100,150,0.12); color: var(--pink); }
  .ch-item-del { position: absolute; top: 6px; right: 6px; background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 14px; opacity: 0; transition: opacity 0.15s; padding: 2px; }
  .ch-item:hover .ch-item-del { opacity: 1; }
  .ch-source { font-size: 10px; color: var(--text-dim); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
  .ch-source img { width: 12px; height: 12px; border-radius: 2px; }
  .ch-empty { text-align: center; padding: 30px 10px; color: var(--text-dim); font-size: 12px; }
  .ch-install-banner { padding: 8px 12px; background: rgba(10,132,255,0.06); border: 0.5px solid rgba(10,132,255,0.15); border-radius: 8px; margin-bottom: 8px; font-size: 11px; color: var(--accent); display: flex; align-items: center; gap: 6px; }
  .ch-scroll { max-height: 280px; overflow-y: auto; }

  /* Snippets */
  .sn-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: rgba(255,255,255,0.02); border: 0.5px solid var(--border); border-radius: 8px; margin-bottom: 4px; position: relative; }
  .sn-item:hover { background: var(--surface-hover); }
  .sn-trigger { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 12px; font-weight: 600; color: var(--green); background: rgba(48,209,88,0.08); padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
  .sn-expansion { flex: 1; font-size: 12px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sn-desc { font-size: 10px; color: var(--text-dim); }
  .sn-item-del { position: absolute; top: 8px; right: 8px; background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 14px; opacity: 0; transition: opacity 0.15s; }
  .sn-item:hover .sn-item-del { opacity: 1; }
  .sn-builtin { font-size: 9px; color: var(--text-dim); background: rgba(255,255,255,0.04); padding: 1px 5px; border-radius: 4px; }
  .sn-scroll { max-height: 240px; overflow-y: auto; }
  .sn-var-tag { display: inline-block; font-family: monospace; font-size: 10px; padding: 1px 5px; background: rgba(255,255,255,0.04); border: 0.5px solid var(--border); border-radius: 4px; margin: 2px; color: var(--text-muted); }

  /* AI Mode */
  .search-bar.ai-mode { border-bottom-color: rgba(10,132,255,0.2); }
  .search-bar.ai-mode .search-icon { color: var(--accent); }

  /* ── AI Command ── */
  .ai-command-widget {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: min(760px, 78vh);
  }

  .ai-topbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 4px 8px 0;
    text-align: center;
  }

  .ai-topbar.has-conversation {
    gap: 5px;
    padding-top: 0;
  }

  .ai-topbar-brand {
    font-size: 13px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: rgba(255,255,255,0.96);
  }

  .ai-topbar-meta {
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255,255,255,0.48);
  }

  .ai-topbar-note {
    max-width: 38ch;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255,255,255,0.46);
    text-wrap: balance;
  }

  .ai-topbar-actions {
    width: min(100%, 560px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
    gap: 8px;
    align-items: stretch;
  }

  .ai-upgrade-btn {
    box-shadow: 0 8px 20px rgba(10,132,255,0.14);
  }

  .ai-topbar-actions .tool-btn {
    width: 100%;
    min-width: 0;
  }

  .ai-topbar-actions .ai-settings-fab {
    grid-column: 3;
    min-width: 44px;
    min-height: 44px;
    padding-inline: 0;
  }

  .ai-settings-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.024);
    border: 0.5px solid rgba(255,255,255,0.065);
    border-radius: 18px;
  }

  .ai-settings-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .ai-settings-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    border: 0.5px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.022);
    cursor: pointer;
  }

  .ai-settings-card-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  .ai-settings-card-copy {
    min-width: 0;
  }

  .ai-settings-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
  }

  .ai-settings-card-meta {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.45;
    color: var(--text-dim);
  }

  .ai-settings-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 26px;
  }

  .ai-radio {
    margin-top: 2px;
    accent-color: var(--accent);
  }

  .ai-inline-link {
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text-dim);
    font-size: 11px;
    cursor: pointer;
  }

  .ai-register-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .ai-conversation-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
  }

  #ai-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    overflow-y: auto;
    padding: 0;
  }
  #ai-messages::-webkit-scrollbar { width: 4px; }
  #ai-messages::-webkit-scrollbar-track { background: transparent; }
  #ai-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
  #ai-messages::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

  .ai-messages-panel {
    flex: 1;
    min-height: 220px;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.022), rgba(255,255,255,0.012));
    border: 0.5px solid rgba(255,255,255,0.055);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    overflow-x: hidden;
  }

  .ai-input-label {
    margin: 0;
  }

  .ai-composer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    border: 0.5px solid rgba(255,255,255,0.07);
    background: linear-gradient(180deg, rgba(255,255,255,0.032), rgba(255,255,255,0.02));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  }

  .ai-command-input {
    min-height: 92px;
    max-height: 220px;
    resize: none;
    line-height: 1.55;
  }

  .ai-composer-actions {
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .ai-composer-hint {
    font-size: 11px;
    color: rgba(255,255,255,0.42);
  }

  .ai-composer-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .ai-empty-state {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    justify-content: center;
    min-height: 120px;
    padding: 8px 2px;
  }

  .ai-empty-title {
    font-size: 16px;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: rgba(255,255,255,0.96);
    text-wrap: balance;
  }

  .ai-empty-copy {
    max-width: 38ch;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255,255,255,0.48);
  }

  .ai-starter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .ai-starter-btn {
    appearance: none;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 0.5px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.82);
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  }

  .ai-starter-btn:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.94);
  }

  /* Chat bubbles */
  .ai-bubble {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(100%, 88%);
    padding: 14px 15px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.65;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
    overflow: visible;
  }
  .ai-bubble-user {
    background: linear-gradient(180deg, rgba(10,132,255,0.16), rgba(10,132,255,0.1));
    border: 0.5px solid rgba(81,155,255,0.22);
    border-radius: 18px 18px 8px 18px;
    color: rgba(255,255,255,0.9);
    align-self: flex-end;
    margin-left: 32px;
  }
  .ai-bubble-assistant {
    background: rgba(255,255,255,0.035);
    border: 0.5px solid rgba(255,255,255,0.065);
    border-radius: 18px 18px 18px 8px;
    color: rgba(255,255,255,0.85);
    align-self: flex-start;
    margin-right: 32px;
  }

  .ai-message-body > :first-child {
    margin-top: 0;
  }

  .ai-message-body > :last-child {
    margin-bottom: 0;
  }

  .ai-message-body p {
    margin: 0 0 10px;
    overflow-wrap: anywhere;
  }

  .ai-message-actions {
    margin-top: 0;
  }

  .ai-outage-copy {
    color: rgba(255,255,255,0.92);
  }

  .ai-list {
    margin: 0 0 10px;
    padding-left: 18px;
    color: inherit;
  }

  .ai-list li + li {
    margin-top: 4px;
  }

  /* Inline code & code blocks in chat */
  .ai-bubble code {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 12px;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    padding: 2px 6px;
  }
  .ai-bubble pre {
    margin: 8px 0;
    padding: 10px 12px;
    background: rgba(0,0,0,0.3);
    border: 0.5px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    overflow-x: auto;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 12px;
    white-space: pre-wrap;
  }
  .ai-bubble pre code {
    padding: 0;
    background: none;
    border-radius: 0;
  }
  .ai-bubble strong { color: rgba(255,255,255,0.95); }

  /* Streaming typing indicator */
  .ai-typing {
    display: inline-flex;
    gap: 3px;
    padding: 8px 14px;
    align-self: flex-start;
  }
  .ai-typing-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    animation: aiTyping 1.2s ease-in-out infinite;
  }
  .ai-typing-dot:nth-child(2) { animation-delay: 0.15s; }
  .ai-typing-dot:nth-child(3) { animation-delay: 0.3s; }
  @keyframes aiTyping {
    0%, 60%, 100% { opacity: 0.3; transform: scale(1); }
    30% { opacity: 1; transform: scale(1.2); }
  }

  /* Legacy AI response (search bar inline) */
  .ai-response { font-size: 13px; line-height: 1.7; color: var(--text); max-height: 320px; overflow-y: auto; }
  .ai-response pre { background: rgba(255,255,255,0.03); padding: 12px; border-radius: 8px; overflow-x: auto; font-size: 12px; margin: 8px 0; font-family: 'SF Mono', 'Fira Code', monospace; white-space: pre-wrap; }
  .ai-response code { background: rgba(255,255,255,0.06); padding: 1px 4px; border-radius: 3px; font-size: 12px; font-family: 'SF Mono', 'Fira Code', monospace; }

  /* Tool cards in AI responses */
  .ai-tool-card {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 12px;
    background: rgba(10,132,255,0.05);
    border: 0.5px solid rgba(10,132,255,0.18);
    border-radius: 12px;
    margin-top: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
    color: var(--text);
    font: inherit;
    text-align: left;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  }
  .ai-tool-card:hover {
    background: rgba(10,132,255,0.09);
    border-color: rgba(10,132,255,0.24);
    transform: translateY(-1px);
  }
  .ai-tool-card:focus-visible {
    outline: 2px solid rgba(10,132,255,0.8);
    outline-offset: 2px;
  }
  .ai-tool-card-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-wrap: anywhere;
  }
  .ai-tool-card-title {
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
  }
  .ai-tool-card-meta {
    color: var(--text-dim);
    font-size: 11px;
    line-height: 1.45;
  }

  /* Usage pill */
  .ai-usage {
    display: inline-block;
    margin-top: 6px;
    padding: 0;
    background: none;
    border: none;
    font-size: 10px;
    color: rgba(255,255,255,0.25);
    cursor: pointer;
  }
  .ai-usage:hover { color: rgba(255,255,255,0.5); }
  .ai-usage.low { color: rgba(255,159,10,0.6); }
  .ai-usage.critical { color: rgba(255,69,58,0.6); }

  /* Limit / outage states */
  .ai-limit { padding: 16px; text-align: center; }
  .ai-limit-text { font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 12px; }
  .ai-limit-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
  .ai-limit-actions button {
    padding-left: 16px;
    padding-right: 16px;
    font-size: 13px;
  }
  .onboard-tip {
    padding: 8px 12px;
    margin: 8px 0 12px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.03);
    border-left: 2px solid rgba(255,255,255,0.1);
    border-radius: 0 6px 6px 0;
    transition: opacity 0.3s ease-out;
  }

  .item-icon.c-media { background: rgba(255,55,95,0.08); border-color: rgba(255,55,95,0.14); }
  .item-icon.c-media svg { stroke: #FF375F; }
  .sr-dot { width: 8px; height: 8px; border-radius: 999px; background: #FF375F; box-shadow: 0 0 0 rgba(255,55,95,0.4); display: inline-block; }
  .sr-dot.live { animation: srPulse 1.1s infinite; }
  @keyframes srPulse {
    0% { box-shadow: 0 0 0 0 rgba(255,55,95,0.55); }
    70% { box-shadow: 0 0 0 10px rgba(255,55,95,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,55,95,0); }
  }
  .sr-slider-card {
    padding: 10px 12px;
    border-radius: 12px;
    border: 0.5px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.024);
  }
  .sr-slider-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 11px;
    color: var(--text-muted);
  }
  .sr-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
  }
  .sr-toggle input { accent-color: var(--accent); }
  .sr-field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
  .gc-progress {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
  }
  .gc-progress > span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    transition: width 200ms ease-out, background 200ms ease-out;
  }
  .gc-shell {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .gc-url-input {
    flex: 1 1 220px;
  }
  .gc-file-input {
    display: none;
  }
  .gc-field-label {
    margin-bottom: 0;
  }
  .gc-source-card {
    min-height: auto;
  }
  .gc-source-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .gc-stage {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-radius: 16px;
    border: 0.5px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.024);
    overflow: hidden;
  }
  .gc-stage video {
    width: 100%;
    display: block;
    border-radius: 14px;
    background: #000;
  }
  .gc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .gc-meta-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .gc-mono {
    color: var(--text);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 11px;
  }
  .gc-preview-image {
    width: 100%;
    display: block;
    border-radius: 14px;
    border: 0.5px solid rgba(255,255,255,0.06);
    background:
      linear-gradient(45deg, rgba(255,255,255,0.04) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.04) 75%),
      linear-gradient(45deg, rgba(255,255,255,0.04) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.04) 75%);
    background-position: 0 0, 8px 8px;
    background-size: 16px 16px;
  }
  .sf-shell {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .sf-stage,
  .sf-sidebar-card {
    border-radius: 16px;
    border: 0.5px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.024);
    overflow: hidden;
  }
  .sf-stage {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .sf-stage video,
  .sf-stage img {
    width: 100%;
    display: block;
    border-radius: 14px;
    background: #000;
  }
  .sf-empty {
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-dim);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.012));
    border: 0.5px dashed rgba(255,255,255,0.08);
    padding: 20px;
  }
  .sf-sidebar-card {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .sf-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .sf-meta .tool-output {
    min-height: auto;
    padding: 10px 12px;
  }
  .sf-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .sf-toolbar .tool-input { flex: 1; min-width: 0; }
  .sf-toolbar .tool-btn { flex-shrink: 0; }
  .sf-url-input {
    flex: 1 1 220px;
  }
  .sf-file-input {
    display: none;
  }
  .sf-source-card {
    flex: 1 1 190px;
  }
  .sf-source-name {
    color: var(--text);
    font-size: 12px;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sf-range {
    width: 100%;
  }
  /* Preview pane is always ~440px — stack by default, no viewport query needed */
  .gc-grid {
    grid-template-columns: 1fr;
  }

  .launcher.shell-browser .preview.tool-workspace .gc-shell,
  .launcher.shell-browser .preview.tool-workspace .sf-shell {
    gap: 10px;
  }

  .launcher.shell-browser .preview.tool-workspace .gc-stage,
  .launcher.shell-browser .preview.tool-workspace .sf-stage,
  .launcher.shell-browser .preview.tool-workspace .sf-sidebar-card {
    padding: 10px;
    gap: 10px;
    border-radius: 14px;
  }

  .launcher.shell-browser .preview.tool-workspace .sf-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
  }

  .launcher.shell-browser .preview.tool-workspace .sf-toolbar .tool-input {
    grid-column: 1 / -1;
  }

  .launcher.shell-browser .preview.tool-workspace .sf-toolbar .tool-btn {
    width: 100%;
  }

  .launcher.shell-browser .preview.tool-workspace .sf-meta {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .launcher.shell-browser .preview.tool-workspace .sf-empty {
    min-height: 170px;
  }

  .launcher.shell-browser .preview[data-tool-id="screenshot-frame"] #sf-tool:not(.has-output) .sf-sidebar-card,
  .launcher.shell-browser .preview[data-tool-id="gif-creator"] #gc-tool:not(.has-output) .sf-sidebar-card {
    display: none;
  }

  .launcher.shell-browser .preview[data-tool-id="gif-creator"] .gc-primary-actions {
    margin-top: -2px;
  }

  .launcher.shell-browser .preview[data-tool-id="gif-creator"] .gc-stage {
    gap: 8px;
  }

  .launcher.shell-browser .preview[data-tool-id="gif-creator"] .gc-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .launcher.shell-browser .preview[data-tool-id="gif-creator"] .gc-settings-grid .tool-input {
    padding: 10px 12px;
  }

  .launcher.shell-browser .preview[data-tool-id="gif-creator"] .sr-slider-card,
  .launcher.shell-browser .preview[data-tool-id="screenshot-frame"] .sr-slider-card {
    padding: 9px 10px;
  }

  .launcher.shell-browser .preview[data-tool-id="gif-creator"] .sr-slider-head,
  .launcher.shell-browser .preview[data-tool-id="screenshot-frame"] .sr-slider-head,
  .launcher.shell-browser .preview[data-tool-id="diff-check"] .diff-stats {
    font-size: 10px;
  }

  .launcher.shell-browser .preview[data-tool-id="gif-creator"] .gc-primary-actions .tool-btn,
  .launcher.shell-browser .preview[data-tool-id="screenshot-frame"] .sf-toolbar .tool-btn,
  .launcher.shell-browser .preview[data-tool-id="diff-check"] .tool-btn-row .tool-btn {
    min-height: 40px;
  }

  .launcher.shell-browser .preview[data-tool-id="screenshot-frame"] .sf-stage {
    gap: 8px;
  }

  .launcher.shell-browser .preview[data-tool-id="screenshot-frame"] .sf-actionbar {
    grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 1fr));
  }

  .launcher.shell-browser .preview[data-tool-id="screenshot-frame"] .sf-actionbar .tool-output {
    grid-column: 1 / -1;
    padding: 9px 10px !important;
  }

  .diff-shell {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .diff-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .diff-input-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .diff-output-card {
    white-space: pre-wrap;
  }

  .launcher.shell-browser .preview[data-tool-id="diff-check"] .diff-stack {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .launcher.shell-browser .preview[data-tool-id="diff-check"] .diff-output-card {
    min-height: 220px !important;
  }

  .launcher.shell-browser .preview[data-tool-id="diff-check"] .tool-textarea {
    min-height: 120px !important;
    padding: 12px;
  }

  .launcher.shell-browser .preview[data-tool-id="diff-check"] .diff-actions {
    margin-top: 2px !important;
  }

  .launcher.shell-browser .preview.tool-workspace .continue-row {
    margin-top: 8px;
    padding-top: 8px;
  }

  .preview-empty-state {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 8px 4px;
  }

  .preview-empty-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.36);
  }

  .preview-empty-title {
    font-size: 28px;
    line-height: 1.02;
    letter-spacing: -0.045em;
    font-weight: 600;
    color: var(--text);
    max-width: 13ch;
  }

  .preview-empty-copy {
    max-width: 34ch;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-muted);
  }

  .launcher.shell-browser .preview-empty-title {
    font-size: 24px;
  }

  .launcher.shell-browser .preview.tool-workspace #ai-messages {
    gap: 6px;
  }

  .launcher.shell-browser .preview.tool-workspace .ai-bubble-user {
    margin-left: 10px;
  }

  .launcher.shell-browser .preview.tool-workspace .ai-bubble-assistant {
    margin-right: 10px;
  }

  .launcher.shell-browser .preview[data-tool-id="ai-command"] .continue-row {
    display: none;
  }

  .launcher.shell-browser .preview[data-tool-id="ai-command"] .ai-command-widget {
    min-height: 0;
    padding: 10px;
    gap: 10px;
  }

  .launcher.shell-browser .preview[data-tool-id="ai-command"] #ai-settings-panel {
    margin-top: 0 !important;
  }

  .launcher.shell-browser .preview[data-tool-id="ai-command"] #ai-messages {
    margin-top: 0 !important;
  }

  .launcher.shell-browser .preview[data-tool-id="ai-command"] .tool-label {
    margin-top: 0 !important;
  }

  .launcher.shell-browser .preview[data-tool-id="ai-command"] .ai-command-input {
    min-height: 88px;
    max-height: 180px;
    padding: 9px 11px;
  }

  .launcher.shell-browser .preview[data-tool-id="ai-command"] .ai-bubble {
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.5;
  }

  .launcher.shell-browser .preview[data-tool-id="ai-command"] .ai-topbar-actions,
  .launcher.shell-browser .preview[data-tool-id="ai-command"] .ai-messages-panel,
  .launcher.shell-browser .preview[data-tool-id="ai-command"] .ai-composer {
    border-radius: 16px;
  }

  .launcher.shell-browser .preview[data-tool-id="ai-command"] .ai-topbar-actions,
  .launcher.shell-browser .preview[data-tool-id="ai-command"] .ai-composer-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .launcher.shell-browser .preview[data-tool-id="ai-command"] .ai-topbar-actions,
  .launcher.shell-browser .preview[data-tool-id="ai-command"] .ai-composer-buttons {
    justify-content: stretch;
  }

  .launcher.shell-browser .preview[data-tool-id="ai-command"] .ai-topbar-actions .tool-btn,
  .launcher.shell-browser .preview[data-tool-id="ai-command"] .ai-composer-buttons .tool-btn {
    flex: 1;
  }

  .launcher.shell-browser .preview[data-tool-id="ai-command"] .ai-messages-panel {
    min-height: 170px;
    padding: 10px;
  }

  .launcher.host-side-panel .preview[data-tool-id="ai-command"] .ai-settings-fab {
    min-width: 44px;
    min-height: 40px;
  }

  .launcher.host-side-panel .preview[data-tool-id="ai-command"] .ai-topbar-actions,
  .launcher.host-side-panel .preview[data-tool-id="ai-command"] .ai-settings-panel,
  .launcher.host-side-panel .preview[data-tool-id="ai-command"] .ai-messages-panel,
  .launcher.host-side-panel .preview[data-tool-id="ai-command"] .ai-composer {
    border-radius: 16px;
  }

  .launcher.host-side-panel .preview[data-tool-id="ai-command"] .ai-topbar-actions {
    width: 100%;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px;
  }

  .launcher.host-side-panel .preview[data-tool-id="ai-command"] .ai-topbar-actions,
  .launcher.host-side-panel .preview[data-tool-id="ai-command"] .ai-composer-buttons {
    width: 100%;
  }

  .launcher.host-side-panel .preview[data-tool-id="ai-command"] .ai-topbar-actions .tool-btn,
  .launcher.host-side-panel .preview[data-tool-id="ai-command"] .ai-composer-buttons .tool-btn {
    flex: 1;
    min-width: 0;
  }

  .launcher.host-side-panel .preview[data-tool-id="ai-command"] .ai-topbar-actions .ai-settings-fab {
    min-width: 40px;
    min-height: 40px;
  }

  .launcher.host-side-panel .preview[data-tool-id="ai-command"] .ai-composer-hint {
    text-align: left;
  }

  .launcher.host-side-panel .preview[data-tool-id="ai-command"] .ai-bubble {
    width: 100%;
  }

  .launcher.host-side-panel .preview[data-tool-id="ai-command"] .ai-bubble-user {
    margin-left: 14px;
  }

  .launcher.host-side-panel .preview[data-tool-id="ai-command"] .ai-bubble-assistant {
    margin-right: 14px;
  }

  .launcher.host-side-panel .body-split {
    display: block;
    flex: 1;
    min-height: 0;
  }

  .launcher.host-side-panel .left-pane,
  .launcher.host-side-panel .footer {
    display: none;
  }

  .launcher.host-side-panel .right-pane {
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 0;
  }

  .launcher.host-side-panel .preview {
    flex: 1;
    height: auto;
    min-height: 0;
    padding: 18px 16px 24px;
    overflow-y: auto;
    overflow-x: hidden;
    background:
      radial-gradient(circle at 50% 0%, rgba(255,255,255,0.04), transparent 34%),
      linear-gradient(180deg, rgba(255,255,255,0.012), rgba(255,255,255,0));
    position: relative;
    z-index: 1;
  }

  .launcher.host-side-panel.side-panel-home-open .search-bar {
    width: min(calc(100% - 32px), var(--panel-stage-width));
    margin: 14px auto 0;
    padding: 14px 17px;
    gap: 12px;
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.036), rgba(255,255,255,0.02));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 16px 32px rgba(0,0,0,0.15);
  }

  .launcher.host-side-panel.side-panel-home-open .search-icon {
    width: 20px;
    height: 20px;
    color: rgba(255,255,255,0.3);
  }

  .launcher.host-side-panel.side-panel-home-open .search-bar input {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.03em;
  }

  .launcher.host-side-panel.side-panel-home-open .search-bar input::placeholder {
    color: rgba(255,255,255,0.28);
  }

  .launcher.host-side-panel.side-panel-home-open .search-meta {
    opacity: 0.72;
  }

  .launcher.host-side-panel.side-panel-tool-open .search-bar {
    display: none;
  }

  .launcher.host-side-panel .selection-bar {
    width: min(calc(100% - 32px), var(--panel-stage-width));
    margin: 12px auto 0;
    padding: 12px 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.038), rgba(255,255,255,0.022));
    border: 0.5px solid rgba(255,255,255,0.075);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 16px 32px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
  }

  .launcher.host-side-panel .selection-bar-actions {
    gap: 8px;
  }

  .launcher.host-side-panel .selection-bar-btn {
    font-size: 13px;
  }

  .launcher.host-side-panel.side-panel-tool-open .selection-bar {
    display: none;
  }

  .launcher.host-side-panel.side-panel-tool-open .preview {
    height: auto;
    min-height: 0;
    padding: 14px 18px 30px;
  }

  .side-panel-home {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 100%;
    min-width: 0;
  }

  .side-panel-home > * {
    width: min(100%, var(--panel-stage-width));
    margin-inline: auto;
  }

  .side-panel-home-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px 2px 2px;
    text-align: center;
  }

  .launcher.host-side-panel .preview-empty-kicker {
    font-size: 11px;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.34);
  }

  .launcher.host-side-panel .preview-empty-title {
    font-size: 32px;
    line-height: 0.94;
    letter-spacing: -0.06em;
    max-width: 12ch;
  }

  .launcher.host-side-panel .preview-empty-copy {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255,255,255,0.5);
    max-width: 40ch;
  }

  .side-panel-context-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
    justify-content: center;
  }

  .side-panel-context-summary span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.03);
    border: 0.5px solid rgba(255,255,255,0.06);
    font-size: 11px;
    color: rgba(255,255,255,0.42);
  }

  .side-panel-context-strip,
  .side-panel-tool-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .home-surface {
    padding: 16px;
    border-radius: 24px;
    border: 0.5px solid rgba(255,255,255,0.075);
    background: linear-gradient(180deg, rgba(255,255,255,0.034), rgba(255,255,255,0.018));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 18px 34px rgba(0,0,0,0.14);
  }

  .side-panel-context-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    min-width: 0;
  }

  .side-panel-context-pill {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 14px 15px;
    border-radius: 16px;
    border: 0.5px solid rgba(255,255,255,0.065);
    background: rgba(255,255,255,0.02);
    text-align: left;
    color: inherit;
    cursor: pointer;
    transition: transform 160ms ease-out, border-color 160ms ease-out, background 160ms ease-out;
    min-width: 0;
  }

  .side-panel-context-pill:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.11);
    background: rgba(255,255,255,0.04);
  }

  .side-panel-context-pill.is-accent {
    border-color: rgba(10,132,255,0.12);
    background: linear-gradient(180deg, rgba(10,132,255,0.08), rgba(255,255,255,0.02));
  }

  .side-panel-context-pill.is-pink {
    border-color: rgba(255,55,95,0.14);
    background: linear-gradient(180deg, rgba(255,55,95,0.08), rgba(255,255,255,0.02));
  }

  .side-panel-context-pill.is-green {
    border-color: rgba(48,209,88,0.12);
    background: linear-gradient(180deg, rgba(48,209,88,0.08), rgba(255,255,255,0.02));
  }

  .side-panel-context-pill.is-orange {
    border-color: rgba(255,159,10,0.14);
    background: linear-gradient(180deg, rgba(255,159,10,0.08), rgba(255,255,255,0.02));
  }

  .side-panel-context-pill.is-media {
    border-color: rgba(255,55,95,0.14);
    background: linear-gradient(180deg, rgba(255,55,95,0.08), rgba(255,255,255,0.02));
  }

  .side-panel-context-pill-top {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .side-panel-context-pill .item-icon {
    width: 32px;
    height: 32px;
    border-radius: 11px;
    flex-shrink: 0;
  }

  .side-panel-context-pill .item-icon svg {
    width: 15px;
    height: 15px;
  }

  .side-panel-context-pill-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text);
  }

  .side-panel-context-pill-copy {
    font-size: 11px;
    line-height: 1.45;
    color: rgba(255,255,255,0.5);
  }

  .side-panel-section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.34);
    padding: 0 2px 2px;
  }

  .side-panel-tool-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
    min-width: 0;
  }

  .side-panel-tool-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    min-height: 72px;
    padding: 15px 15px 14px;
    border-radius: 18px;
    border: 0.5px solid rgba(255,255,255,0.065);
    background: linear-gradient(180deg, rgba(255,255,255,0.024), rgba(255,255,255,0.014));
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 180ms ease-out, border-color 180ms ease-out, transform 180ms ease-out, box-shadow 180ms ease-out;
    min-width: 0;
  }

  .side-panel-tool-card:hover {
    background: rgba(255,255,255,0.034);
    border-color: rgba(255,255,255,0.11);
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 10px 28px rgba(0,0,0,0.15);
  }

  .side-panel-tool-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .side-panel-tool-card .item-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .side-panel-tool-card .item-icon svg {
    width: 16px;
    height: 16px;
  }

  .side-panel-tool-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1.2;
  }

  .side-panel-tool-sub {
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255,255,255,0.46);
  }

  .side-panel-empty-state {
    padding: 18px 4px 8px;
    font-size: 13px;
    color: var(--text-dim);
  }

  .panel-preview-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
  }

  .panel-tool-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 12px;
  }

  .panel-tool-stage::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 50%;
    width: min(100%, calc(var(--panel-stage-width) + 40px));
    height: 180px;
    transform: translateX(-50%);
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.045), transparent 70%);
    pointer-events: none;
    opacity: 0.8;
  }

  .panel-tool-stage > * {
    position: relative;
    z-index: 1;
  }

  .panel-preview-top {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) 82px;
    align-items: center;
    gap: 8px;
    min-height: 42px;
  }

  .panel-preview-titlebar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }

  .panel-preview-titlebar .preview-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.028));
    border-color: rgba(255,255,255,0.09);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    flex-shrink: 0;
  }

  .panel-preview-titlebar .preview-icon svg {
    width: 18px;
    height: 18px;
  }

  .panel-preview-titlebar .preview-name {
    font-size: 18px;
    font-weight: 650;
    line-height: 1.08;
    letter-spacing: -0.04em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    max-width: 14ch;
    white-space: normal;
    overflow: hidden;
    text-align: center;
    text-wrap: balance;
  }

  .panel-preview-tagline {
    padding: 0 2px;
    font-size: 11px;
    line-height: 1.5;
    color: rgba(255,255,255,0.42);
    text-align: center;
    text-wrap: balance;
    max-width: 34ch;
    margin: 0 auto;
  }

  .panel-preview-spacer {
    display: block;
    width: 82px;
    height: 1px;
    justify-self: end;
  }

  .panel-back-btn {
    justify-self: start;
    width: 82px;
    min-height: var(--btn-height-sm);
    padding: 7px 10px;
    border: 0.5px solid rgba(255,255,255,0.07);
    border-radius: 999px;
    background: rgba(255,255,255,0.02);
    color: rgba(255,255,255,0.62);
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    letter-spacing: 0;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
  }

  .panel-back-btn:hover {
    background: var(--btn-bg-hover);
    border-color: var(--btn-border-hover);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  }

  .launcher.host-side-panel .preview[data-tool-id="color-pick"] .cp-copy-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .launcher.host-side-panel .preview[data-tool-id="color-pick"] .cp-copy-row .tool-input,
  .launcher.host-side-panel .preview[data-tool-id="color-pick"] #cp-copy-hsl {
    grid-column: 1 / -1;
  }

  .launcher.host-side-panel .preview[data-tool-id="color-pick"] .cp-copy-row .tool-btn {
    width: 100%;
    text-align: center;
  }

  .launcher.host-side-panel .preview[data-tool-id="ai-command"] .panel-tool-stage {
    flex: 1;
    min-height: 0;
  }

  .launcher.host-side-panel .preview[data-tool-id="ai-command"] .ai-command-widget {
    flex: 1;
    min-height: 0;
  }

  .cp-hex-input {
    text-transform: uppercase;
    letter-spacing: -0.01em;
  }

  .cp-swatch {
    height: 72px;
    border-radius: 16px;
    border: 0.5px solid rgba(255,255,255,0.08);
    background: #ff5733;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
  }

  .cp-slider-row-top {
    margin-top: 2px;
  }

  .cp-value-grid-top {
    align-items: stretch;
  }

  .cp-section-label-top {
    margin-top: 4px;
  }

  .cp-contrast-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 66px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-align: center;
    white-space: normal;
  }

  .launcher.host-side-panel .preview[data-tool-id="color-pick"] #cp-swatch {
    height: 60px !important;
    margin-top: 10px !important;
  }

  .launcher.host-side-panel .preview[data-tool-id="color-pick"] .cp-slider-row {
    gap: 8px;
    margin-top: 10px !important;
  }

  .launcher.host-side-panel .preview[data-tool-id="color-pick"] .cp-value-grid {
    margin-top: 10px !important;
  }

  .launcher.host-side-panel .preview[data-tool-id="color-pick"] .cp-section-label {
    margin-top: 12px !important;
  }

  .launcher.host-side-panel .preview[data-tool-id="color-pick"] .cp-contrast-card {
    padding: 18px 20px !important;
    font-size: 13px;
    letter-spacing: -0.02em;
  }

  .launcher.host-side-panel .preview[data-tool-id="color-pick"] .cp-palette-group {
    margin-top: 10px;
  }

  .launcher.host-side-panel .preview[data-tool-id="color-pick"] .cp-palette-label {
    margin-bottom: 6px !important;
  }

  .launcher.host-side-panel .preview[data-tool-id="color-pick"] .cp-palette-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .launcher.host-side-panel .preview[data-tool-id="color-pick"] .cp-palette-chip {
    padding: 0;
    border: none;
    overflow: hidden;
    background: none;
  }

  .launcher.host-side-panel .preview[data-tool-id="color-pick"] .cp-palette-chip span {
    display: block;
    min-width: 78px;
    height: 42px;
    padding: 0 12px;
    border-radius: 14px;
    border: 0.5px solid rgba(255,255,255,0.08);
    background: var(--cp-chip);
    color: var(--cp-chip-text);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 11px;
    line-height: 42px;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
  }

  .launcher.host-side-panel .continue-row {
    display: none;
  }

  .launcher.host-side-panel .preview.tool-workspace .widget {
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.018));
    border-color: rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 22px 40px rgba(0,0,0,0.16);
  }

  .launcher.host-side-panel .preview[data-tool-id="gif-creator"] .gc-stage,
  .launcher.host-side-panel .preview[data-tool-id="screenshot-frame"] .sf-stage,
  .launcher.host-side-panel .preview[data-tool-id="screenshot-frame"] .sf-sidebar-card,
  .launcher.host-side-panel .preview[data-tool-id="diff-check"] .diff-shell {
    padding: 10px;
    gap: 10px;
    border-radius: 14px;
  }

  .launcher.host-side-panel .preview[data-tool-id="gif-creator"] .gc-stage video,
  .launcher.host-side-panel .preview[data-tool-id="screenshot-frame"] .sf-stage video,
  .launcher.host-side-panel .preview[data-tool-id="screenshot-frame"] .sf-stage img {
    border-radius: 12px;
  }

  .launcher.host-side-panel .preview[data-tool-id="gif-creator"] .sf-empty,
  .launcher.host-side-panel .preview[data-tool-id="screenshot-frame"] .sf-empty {
    min-height: 140px;
    padding: 14px;
  }

  .launcher.host-side-panel .preview[data-tool-id="gif-creator"] .gc-primary-actions,
  .launcher.host-side-panel .preview[data-tool-id="screenshot-frame"] .sf-actionbar,
  .launcher.host-side-panel .preview[data-tool-id="diff-check"] .diff-actions {
    gap: 8px;
  }

  .launcher.host-side-panel .preview[data-tool-id="gif-creator"] .gc-primary-actions .tool-btn,
  .launcher.host-side-panel .preview[data-tool-id="screenshot-frame"] .sf-actionbar .tool-btn,
  .launcher.host-side-panel .preview[data-tool-id="diff-check"] .diff-actions .tool-btn {
    min-height: 40px;
    flex: 1 1 0;
    min-width: 0;
  }

  .launcher.host-side-panel .preview[data-tool-id="gif-creator"] .gc-settings-grid,
  .launcher.host-side-panel .preview[data-tool-id="screenshot-frame"] .sf-actionbar,
  .launcher.host-side-panel .preview[data-tool-id="diff-check"] .tool-2col {
    grid-template-columns: 1fr;
  }

  .launcher.host-side-panel .preview[data-tool-id="gif-creator"] .tool-input,
  .launcher.host-side-panel .preview[data-tool-id="screenshot-frame"] .tool-input {
    padding: 10px 12px;
  }

  .launcher.host-side-panel .preview[data-tool-id="diff-check"] .tool-textarea {
    min-height: 110px !important;
  }

  .launcher.host-side-panel .preview[data-tool-id="diff-check"] .diff-output-card {
    min-height: 140px !important;
  }

  .launcher.host-side-panel .preview[data-tool-id="diff-check"] .diff-stats {
    font-size: 10px;
    color: rgba(255,255,255,0.42);
    letter-spacing: -0.01em;
  }

  .launcher.host-side-panel .preview[data-tool-id="screen-rec"] .sr-shell {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .launcher.host-side-panel .preview[data-tool-id="screen-rec"] .sr-controls-card,
  .launcher.host-side-panel .preview[data-tool-id="screen-rec"] .sr-preview-card {
    border-radius: 14px;
    border: 0.5px solid rgba(255,255,255,0.06);
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.018));
    padding: 10px;
  }

  .launcher.host-side-panel .preview[data-tool-id="screen-rec"] .sr-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
  }

  .launcher.host-side-panel .preview[data-tool-id="screen-rec"] .sr-actions {
    gap: 8px;
    flex-wrap: wrap;
  }

  .launcher.host-side-panel .preview[data-tool-id="screen-rec"] .sr-actions .tool-btn {
    min-height: 40px;
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }

  .launcher.host-side-panel .preview[data-tool-id="screen-rec"] .sr-actions .sr-cta {
    flex-basis: 100%;
  }

  .launcher.host-side-panel .preview[data-tool-id="screen-rec"] .sr-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
  }

  .launcher.host-side-panel .preview[data-tool-id="screen-rec"] .sr-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.028);
    color: rgba(255,255,255,0.54);
  }

  .launcher.host-side-panel .preview[data-tool-id="screen-rec"] .sr-status-copy {
    min-height: 16px;
    font-size: 11px;
    color: rgba(255,255,255,0.42);
    text-align: right;
    flex: 1;
  }

  .launcher.host-side-panel .preview[data-tool-id="screen-rec"] .sr-preview-empty {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(255,255,255,0.32);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 14px;
    border-radius: 12px;
    border: 0.5px dashed rgba(255,255,255,0.07);
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  }

  .launcher.host-side-panel .preview[data-tool-id="screen-rec"] .sr-preview-video {
    width: 100%;
    display: block;
    border-radius: 12px;
    background: #000;
  }

  .launcher.host-side-panel .preview[data-tool-id="screen-rec"] .sr-preview-meta {
    margin-top: 8px;
    font-size: 11px;
    color: rgba(255,255,255,0.42);
  }

  .launcher.host-side-panel .preview[data-tool-id="gif-creator"] .gc-stage,
  .launcher.host-side-panel .preview[data-tool-id="screenshot-frame"] .sf-stage {
    gap: 8px;
  }

  .launcher.host-side-panel .preview[data-tool-id="gif-creator"] .gc-primary-actions .tool-btn {
    flex: 1 1 calc(50% - 4px);
  }

  .launcher.host-side-panel .preview[data-tool-id="gif-creator"] .gc-primary-actions .tool-btn.primary {
    flex-basis: 100%;
  }

  .launcher.host-side-panel .preview[data-tool-id="gif-creator"] .sr-slider-card,
  .launcher.host-side-panel .preview[data-tool-id="screenshot-frame"] .sr-slider-card {
    padding: 9px 10px;
  }

  .launcher.host-side-panel .preview[data-tool-id="screenshot-frame"] .sf-actionbar .tool-btn.primary {
    flex-basis: 100%;
  }

  .launcher.host-side-panel .preview[data-tool-id="screenshot-frame"] .sf-actionbar .tool-output {
    padding: 9px 10px !important;
  }

  .launcher.host-side-panel .preview[data-tool-id="diff-check"] .diff-stack {
    gap: 8px;
  }

  .launcher.host-side-panel .preview[data-tool-id="diff-check"] .diff-input-card,
  .launcher.host-side-panel .preview[data-tool-id="diff-check"] .diff-output-card {
    padding: 0;
  }

  .launcher.host-side-panel .preview[data-tool-id="diff-check"] .diff-actions .tool-btn.primary {
    flex-basis: 100%;
  }
  .ai-badge { padding: 2px 8px; background: rgba(10,132,255,0.1); color: var(--accent); font-size: 10px; font-weight: 600; border-radius: 4px; letter-spacing: 0.04em; }

  /* Tab search results */
  .tab-favicon { width: 16px; height: 16px; border-radius: 3px; flex-shrink: 0; }
  .tab-url { font-size: 10px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
  .tab-badge { font-size: 9px; font-weight: 600; padding: 1px 5px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
  .tab-badge-tab { background: rgba(48,209,88,0.10); color: var(--green); }
  .tab-badge-bookmark { background: rgba(255,164,60,0.10); color: var(--orange); }
  .tab-badge-history { background: rgba(160,100,255,0.10); color: var(--purple); }
  .recent-icon { opacity: 0.5; }
