:root,
[data-theme="dark"] {
  --bg: #08090c;
  --surface: #111319;
  --surface-2: #181b23;
  --surface-3: #222632;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --fg: #f4f5f7;
  --fg-sub: #c6cbd4;
  --muted: #7f8594;
  --primary: #ff6b2b;
  --primary-fg: #ffffff;
  --primary-soft: rgba(255, 107, 43, 0.15);
  --primary-tint: rgba(255, 107, 43, 0.07);
  --primary-border: rgba(255, 107, 43, 0.48);
  --emerald: #10b981;
  --amber: #f59e0b;
  --arrow-idle: rgba(160, 168, 186, 0.34);

  /* Exact @opencode/ui v2 Tokens (packages/ui/src/styles/tokens/colors.css + theme.css) */
  --v2-shell: #080808;
  --v2-base: #161616;
  --v2-layer-01: #242424;
  --v2-layer-02: #2e2e2e;
  --v2-layer-03: #3a3a3a;
  --v2-composer-bg: #242424;
  --v2-border-muted: rgba(255, 255, 255, 0.08);
  --v2-border: rgba(255, 255, 255, 0.10);
  --v2-border-strong: rgba(255, 255, 255, 0.20);
  --v2-overlay-hover: rgba(255, 255, 255, 0.06);
  --v2-overlay-pressed: rgba(255, 255, 255, 0.10);
  --v2-text: #fafafa;
  --v2-text-muted: #aeaeae;
  --v2-text-faint: #808080;
  --v2-icon: #dbdbdb;
  --v2-icon-muted: #808080;
  --v2-icon-faint: #5c5c5c;
  --v2-contrast-bg: #3a3a3a;
  --v2-contrast-fg: #fafafa;
  --v2-submit-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 100%), linear-gradient(90deg, #aeaeae 0%, #aeaeae 100%);
  --v2-submit-fg: #161616;
  --v2-submit-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 0 0.5px rgba(255, 255, 255, 0.4), 0 -0.5px 0 rgba(255, 255, 255, 0.3);
  --v2-switch-on: #fafafa;
  --v2-switch-knob-on: #161616;
  --v2-raised: 0 2px 4px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.3), 0 0 0 0.5px rgba(255, 255, 255, 0.16), 0 -0.5px 0 rgba(255, 255, 255, 0.06);
  --v2-shadow: 0 32px 76px -18px rgba(0, 0, 0, 0.88), 0 0 0 1px rgba(255, 255, 255, 0.11);
  --v2-dialog-shadow: 0 20px 44px rgba(0, 0, 0, 0.56), 0 8px 16px rgba(0, 0, 0, 0.36), 0 0 0 0.5px rgba(255, 255, 255, 0.18);
  --pill-local-bg: rgba(16, 185, 129, 0.12);
  --pill-local-fg: #34d399;
  --pill-ssh-bg: rgba(59, 130, 246, 0.13);
  --pill-ssh-fg: #60a5fa;
  --pill-codex-bg: rgba(16, 185, 129, 0.15);
  --pill-codex-fg: #34d399;
  --pill-claude-bg: rgba(245, 158, 11, 0.15);
  --pill-claude-fg: #fbbf24;
  --pill-agy-bg: rgba(59, 130, 246, 0.15);
  --pill-agy-fg: #60a5fa;
  --pill-pigu-bg: rgba(99, 102, 241, 0.16);
  --pill-pigu-fg: #818cf8;
}

[data-theme="light"] {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #efede7;
  --surface-3: #e4e1d9;
  --border: rgba(24, 24, 23, 0.085);
  --border-strong: rgba(24, 24, 23, 0.18);
  --fg: #171716;
  --fg-sub: #42413d;
  --muted: #72706a;
  --primary: #e85512;
  --primary-fg: #ffffff;
  --primary-soft: rgba(232, 85, 18, 0.12);
  --primary-tint: rgba(232, 85, 18, 0.05);
  --primary-border: rgba(232, 85, 18, 0.42);
  --emerald: #059669;
  --amber: #d97706;
  --arrow-idle: rgba(100, 98, 92, 0.34);

  /* Exact @opencode/ui v2 Tokens (Light) */
  --v2-shell: #fafafa;
  --v2-base: #ffffff;
  --v2-layer-01: #fafafa;
  --v2-layer-02: #f2f2f2;
  --v2-layer-03: #eeeeee;
  --v2-composer-bg: #ffffff;
  --v2-border-muted: rgba(0, 0, 0, 0.08);
  --v2-border: rgba(0, 0, 0, 0.10);
  --v2-border-strong: rgba(0, 0, 0, 0.20);
  --v2-overlay-hover: rgba(0, 0, 0, 0.04);
  --v2-overlay-pressed: rgba(0, 0, 0, 0.08);
  --v2-text: #161616;
  --v2-text-muted: #5c5c5c;
  --v2-text-faint: #808080;
  --v2-icon: #3a3a3a;
  --v2-icon-muted: #808080;
  --v2-icon-faint: #aeaeae;
  --v2-contrast-bg: #242424;
  --v2-contrast-fg: #ffffff;
  --v2-submit-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%), linear-gradient(90deg, #242424 0%, #242424 100%);
  --v2-submit-fg: #ffffff;
  --v2-submit-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.2), 0 0 0 0.5px #3a3a3a;
  --v2-switch-on: #161616;
  --v2-switch-knob-on: #ffffff;
  --v2-raised: 0 2px 4px rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.08), 0 0 0 0.5px rgba(0, 0, 0, 0.12);
  --v2-shadow: 0 28px 64px -18px rgba(24, 24, 23, 0.18), 0 0 0 1px rgba(24, 24, 23, 0.11);
  --v2-dialog-shadow: 0 18px 40px rgba(0, 0, 0, 0.14), 0 6px 14px rgba(0, 0, 0, 0.08), 0 0 0 0.5px rgba(0, 0, 0, 0.14);
  --pill-local-bg: rgba(16, 185, 129, 0.11);
  --pill-local-fg: #059669;
  --pill-ssh-bg: rgba(37, 99, 235, 0.10);
  --pill-ssh-fg: #2563eb;
  --pill-codex-bg: rgba(16, 185, 129, 0.13);
  --pill-codex-fg: #059669;
  --pill-claude-bg: rgba(217, 119, 6, 0.13);
  --pill-claude-fg: #d97706;
  --pill-agy-bg: rgba(37, 99, 235, 0.12);
  --pill-agy-fg: #2563eb;
  --pill-pigu-bg: rgba(79, 70, 229, 0.12);
  --pill-pigu-fg: #4f46e5;
}

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

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

code,
pre,
kbd,
.mono {
  font-family: "SF Mono", "JetBrains Mono", "Menlo", "Consolas", ui-monospace, monospace;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* =========================================================
   1. SITE SHELL, BORDERLESS TOPBAR & PROMINENT SWITCHER
   ========================================================= */
.stage-shell {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg);
}

.site-topbar {
  height: 54px;
  flex-shrink: 0;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 40;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.topbar-left {
  overflow-x: auto;
  scrollbar-width: none;
}

.topbar-left::-webkit-scrollbar {
  display: none;
}

.topbar-right {
  flex-shrink: 0;
  gap: 14px;
}

.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.brand-box {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--fg);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.topbar-sep {
  width: 1px;
  height: 15px;
  background: var(--border-strong);
  flex-shrink: 0;
}

.ghost-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.ghost-tab {
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: color 0.16s ease, background 0.16s ease;
}

.ghost-tab:hover {
  color: var(--fg);
  background: var(--surface-2);
}

.ghost-tab.active {
  color: var(--fg);
  background: var(--surface-2);
  font-weight: 700;
}

.ghost-tab .step-idx {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}

.ghost-tab.active .step-idx {
  color: var(--primary);
}

.top-meta {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.ghost-action {
  height: 32px;
  padding: 0 9px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s ease, background 0.15s ease;
}

.ghost-action:hover {
  color: var(--fg);
  background: var(--surface-2);
}

.ghost-action.active-note {
  color: var(--primary);
  background: var(--primary-soft);
}

.mode-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  gap: 3px;
  flex-shrink: 0;
}

.mode-switch-item {
  height: 31px;
  min-width: 102px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.mode-switch-item:hover {
  color: var(--fg);
}

.mode-switch-item.active {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: 0 2px 10px rgba(255, 107, 43, 0.32);
}

.h-viewport {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.h-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.h-pane {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 6px 20px;
}

.h-pane-inner {
  width: 100%;
  max-width: 1280px;
  margin: auto;
}

.site-bottombar {
  height: 46px;
  flex-shrink: 0;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-ghost {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--fg-sub);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-ghost:hover:not(:disabled) {
  color: var(--fg);
  background: var(--surface-2);
}

.nav-ghost.next {
  color: var(--primary);
  font-weight: 700;
}

.nav-ghost.next:hover:not(:disabled) {
  background: var(--primary-soft);
}

.nav-ghost:disabled {
  opacity: 0.28;
  cursor: default;
}

.dots-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slide-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--border-strong);
  cursor: pointer;
  transition: all 0.22s ease;
}

.slide-dot.active {
  width: 22px;
  background: var(--primary);
}

/* =========================================================
   2. HOME PPT SLIDES (index.html)
   ========================================================= */
.ppt-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  padding: 12px max(28px, calc((100% - 1040px) / 2));
}

.teleprompter-bar {
  flex-shrink: 0;
  max-width: 980px;
  width: calc(100% - 56px);
  margin: 0 auto 4px;
  padding: 9px 16px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--fg-sub);
}

.slide-head {
  text-align: center;
  margin-bottom: 22px;
}

.kicker {
  margin: 0 0 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.slide-title {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.accent-text {
  color: var(--primary);
}

.hero-emblem {
  width: 74px;
  height: 74px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.hero-wordmark {
  height: clamp(48px, 5.8vh, 66px);
  color: var(--fg);
  display: block;
  margin: 4px auto 14px;
}

.hero-lead {
  margin: 0 auto 20px;
  max-width: 700px;
  font-size: clamp(18px, 2.2vw, 27px);
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.02em;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.keynote-chip {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--surface);
  color: var(--fg-sub);
}

.keynote-chip.highlight {
  background: var(--primary-soft);
  color: var(--primary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cta-lg {
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.cta-lg:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.cta-lg.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-fg);
}

.pill-btn {
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--fg);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pill-btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-3);
}

.pill-btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-fg);
}

.ver-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
}

.ppt-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ppt-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.ppt-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.k-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.vendor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
}

.vendor-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hotswap-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
}

.hotswap-head {
  padding: 10px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
}

.hotswap-step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
}

.hotswap-step.featured {
  border-color: var(--primary-border);
}

.foundation-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.foundation-title {
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.foundation-num {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

.foundation-desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.im-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 12px;
  text-align: center;
}

.im-icon-wrap {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.im-label {
  font-size: 17px;
  font-weight: 750;
}

.hop-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  text-align: center;
  margin-bottom: 16px;
}

.hop-node {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 18px;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 750;
}

.hop-node.center {
  border-color: var(--primary);
}

.hop-arrow {
  font-size: 22px;
  font-weight: 700;
  color: var(--muted);
}

.stat-big {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 2px 0 4px;
}

.bar-group {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bar-row-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.bar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--muted);
  opacity: 0.45;
}

.bar-fill.primary {
  background: var(--primary);
  opacity: 1;
}

.compare-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: center;
}

.compare-table th,
.compare-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  font-weight: 650;
}

.compare-table thead th {
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 700;
}

.compare-table thead th.pigu-col {
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 14.5px;
  font-weight: 800;
}

.compare-table td.pigu-col {
  background: var(--primary-tint);
  color: var(--primary);
  font-weight: 700;
}

.compare-table td.dim {
  color: var(--muted);
}

.cmd-dock {
  max-width: 820px;
  width: 100%;
  margin: 14px auto 0;
  padding: 8px 10px 8px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cmd-text {
  font-size: 12.5px;
  color: var(--fg);
  overflow-x: auto;
  white-space: nowrap;
}

.dl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.15s ease;
}

.dl-item:hover {
  background: var(--surface-3);
}

/* =========================================================
   3. GUIDE STEP 1: CLEAN ALL-3-OS INSTALL
   ========================================================= */
.install-clean-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.clean-page-head {
  text-align: center;
  margin-bottom: 26px;
}

.clean-page-head h1 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.clean-page-head p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.os-list {
  display: flex;
  flex-direction: column;
}

.os-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 24px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--border);
}

.os-row:first-child {
  border-top: 1px solid var(--border);
}

.os-name {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.os-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.os-cmd-line {
  background: var(--v2-shell);
  border: 1px solid var(--v2-border);
  border-radius: 9px;
  padding: 9px 10px 9px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.os-cmd-line code {
  font-size: 12.5px;
  color: var(--fg);
  overflow-x: auto;
  white-space: nowrap;
}

.os-win-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================================================
   4. AUTHENTIC 1:1 PIGU DESKTOP APP REPLICA (@opencode/ui v2)
   ========================================================= */
.stage-caption {
  text-align: center;
  margin-bottom: 10px;
}

.stage-caption h1 {
  margin: 0;
  font-size: 18.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: inline;
}

.stage-caption span {
  margin-left: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.annotated-stage {
  position: relative;
  display: grid;
  grid-template-columns: 192px minmax(0, 844px) 192px;
  justify-content: center;
  align-items: stretch;
  gap: 18px;
  width: 100%;
}

.arrow-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 35;
  overflow: visible;
}

.callout-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 0 16px;
  z-index: 20;
}

.callout-col.left {
  text-align: right;
  align-items: flex-end;
}

.callout-col.right {
  text-align: left;
  align-items: flex-start;
}

.callout-note {
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  max-width: 190px;
  transition: opacity 0.16s ease;
  opacity: 0.62;
}

.callout-note:hover {
  opacity: 0.92;
}

.callout-note.active {
  opacity: 1;
}

.callout-kicker {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.callout-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
  margin-bottom: 3px;
}

.callout-note.active .callout-title {
  color: var(--primary);
}

.callout-desc {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.42;
}

/* Tutorial Spotlight Ring */
.hl-target {
  position: relative;
  cursor: pointer;
  transition: box-shadow 0.18s ease;
}

.hl-target.active {
  box-shadow: 0 0 0 1.5px var(--primary), 0 0 14px rgba(255, 107, 43, 0.34);
  z-index: 16;
}

/* Outer Desktop Frame (shell.tsx: bg-v2-background-bg-deep, verticalTabs=true -> horizontal row, NO top bar) */
.pigu-shell {
  background: var(--v2-shell);
  color: var(--v2-text);
  border-radius: 12px;
  box-shadow: var(--v2-shadow);
  height: 492px;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  position: relative;
  z-index: 10;
  font-size: 13px;
  font-weight: 440;
  user-select: none;
}

/* Left Vertical Sidebar (titlebar.tsx + sidebar-organized.tsx) */
.pigu-vsidebar {
  width: 204px;
  flex-shrink: 0;
  background: var(--v2-shell);
  padding: 8px 4px 10px 10px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: width 0.2s ease;
}

.pigu-shell.compact-sidebar .pigu-vsidebar {
  width: 186px;
}

.pigu-vsb-head {
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 0 3px;
  margin-bottom: 3px;
}

.pigu-traffic {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pigu-traffic i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.pigu-traffic i:nth-child(1) {
  background: #ff5f57;
}
.pigu-traffic i:nth-child(2) {
  background: #febc2e;
}
.pigu-traffic i:nth-child(3) {
  background: #28c840;
}

.pigu-vsb-actions {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}

/* titlebar.tsx lines 420 & 464: vertical-tabs-home & vertical-tabs-search */
.pigu-vsb-act {
  height: 28px;
  width: 100%;
  padding: 0 8px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--v2-text-faint);
  font-size: 12.5px;
  font-weight: 450;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-align: left;
}

.pigu-vsb-act:hover {
  background: var(--v2-overlay-hover);
  color: var(--v2-text);
}

.pigu-vsb-act.pressed {
  background: var(--v2-overlay-pressed);
  color: var(--v2-text);
}

.pigu-vsb-sec-head {
  margin-top: 12px;
  height: 24px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--v2-text-muted);
  font-size: 12px;
  font-weight: 500;
}

.pigu-vsb-tree {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

/* sidebar-organized.tsx ProjectRow */
.v2-proj-row {
  height: 28px;
  padding: 0 6px 0 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--v2-text-muted);
  cursor: pointer;
}

.v2-proj-row:hover {
  background: var(--v2-overlay-hover);
  color: var(--v2-text);
}

.v2-proj-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-proj-pill {
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 9.5px;
  line-height: 1;
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
}

.v2-proj-pill.local {
  background: var(--pill-local-bg);
  color: var(--pill-local-fg);
}

.v2-proj-pill.ssh {
  background: var(--pill-ssh-bg);
  color: var(--pill-ssh-fg);
}

.v2-proj-count {
  font-size: 10.5px;
  color: var(--v2-text-faint);
  flex-shrink: 0;
}

/* project-session-row.tsx ProjectSessionRow */
.v2-ses-row {
  height: 27px;
  padding: 0 6px 0 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--v2-text-faint);
  cursor: pointer;
}

.v2-ses-row:hover {
  background: var(--v2-overlay-hover);
  color: var(--v2-text);
}

.v2-ses-row.selected {
  background: var(--v2-overlay-pressed);
  color: var(--v2-text);
}

/* sidebar-organized.tsx lines 563-577 & 703-721: Archived Sessions & Archived Projects */
.v2-archived-ses-btn {
  height: 23px;
  width: 100%;
  padding: 0 6px 0 26px;
  border-radius: 5px;
  border: none;
  background: transparent;
  color: var(--v2-text-faint);
  font-size: 11px;
  font-weight: 450;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  text-align: left;
  margin-top: 1px;
}

.v2-archived-ses-btn:hover {
  background: var(--v2-overlay-hover);
  color: var(--v2-text-muted);
}

.v2-archived-ses-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0.78;
}

.v2-archived-proj-sec {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 0.5px solid var(--v2-border-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.v2-archived-proj-btn {
  height: 24px;
  width: 100%;
  padding: 0 6px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--v2-text-faint);
  font-size: 11.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  text-align: left;
}

.v2-archived-proj-btn:hover {
  background: var(--v2-overlay-hover);
  color: var(--v2-text-muted);
}

.v2-tri-icon {
  flex-shrink: 0;
  color: var(--v2-icon-faint);
  transform: rotate(-90deg);
  transition: transform 0.15s ease;
}

[aria-expanded="true"] > .v2-tri-icon {
  transform: rotate(0deg);
}

.v2-model-effort-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border-radius: 6px;
  min-width: 0;
  flex-shrink: 1;
}

.v2-src-pill {
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 9.5px;
  line-height: 1;
  font-weight: 500;
  flex-shrink: 0;
}
.v2-src-pill.codex {
  background: var(--pill-codex-bg);
  color: var(--pill-codex-fg);
}
.v2-src-pill.claude {
  background: var(--pill-claude-bg);
  color: var(--pill-claude-fg);
}
.v2-src-pill.agy {
  background: var(--pill-agy-bg);
  color: var(--pill-agy-fg);
}
.v2-src-pill.pigu {
  background: var(--pill-pigu-bg);
  color: var(--pill-pigu-fg);
}

/* Shared IconButton (icon-button.tsx) */
.v2-icon-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--v2-icon-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.v2-icon-btn:hover,
.v2-icon-btn.pressed {
  background: var(--v2-overlay-hover);
  color: var(--v2-text);
}

/* Right <main> Area (shell.tsx + screen.tsx: inset 8px) */
.pigu-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 8px 8px 8px 4px;
  display: flex;
  flex-direction: row;
  position: relative;
}

/* SessionPanelFrame (session-frame.tsx: rounded-[10px], bg-v2-background-bg-base, shadow-raised) */
.pigu-session-frame {
  flex: 1;
  min-width: 0;
  min-height: 0;
  background: var(--v2-base);
  border-radius: 10px;
  box-shadow: var(--v2-raised);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.pigu-main.with-side .pigu-session-frame {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 0.5px solid var(--v2-border);
}

/* Floating top-right review & notification actions (screen.tsx line 507, NO header bar) */
.pigu-top-float {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* MessageTimeline (message-timeline.tsx + message-part.css + markdown.css) */
.pigu-timeline {
  flex: 1;
  min-height: 0;
  padding: 34px 24px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  position: relative;
}

.v2-user-turn {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.v2-user-bubble {
  background: var(--v2-layer-02);
  color: var(--v2-text);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.48;
  max-width: 84%;
}

.v2-user-meta {
  font-size: 11px;
  color: var(--v2-text-faint);
}

/* BasicTool single-line edit disclosure (basic-tool.tsx) */
.v2-basic-tool {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--v2-text-muted);
}

.v2-basic-tool .tool-verb {
  font-weight: 530;
  color: var(--v2-text-muted);
}

.v2-basic-tool .tool-path {
  color: var(--v2-text-faint);
}

.v2-asst-text {
  font-size: 13px;
  line-height: 1.56;
  color: var(--v2-text);
}

/* Markdown Code Block with Sandbox Preview Action (markdown.css + sandbox/renderer.tsx) */
.v2-md-code {
  position: relative;
  background: var(--v2-layer-02);
  border: 0.5px solid var(--v2-border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 11.5px;
  line-height: 1.52;
  color: var(--v2-text);
}

.v2-md-code-actions {
  position: absolute;
  top: 5px;
  right: 6px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.v2-code-act {
  height: 22px;
  padding: 0 6px;
  border-radius: 4px;
  border: 0.5px solid var(--v2-border);
  background: var(--v2-base);
  color: var(--v2-text-muted);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.v2-code-act:hover {
  color: var(--v2-text);
  border-color: var(--v2-border-strong);
}

/* SessionComposerRegion + Composer + ComposerEditor (composer.tsx + editor.tsx + editor.css) */
.pigu-composer-dock {
  padding: 0 14px 12px;
  position: relative;
}

.v2-composer {
  background: var(--v2-composer-bg);
  border-radius: 12px;
  box-shadow: var(--v2-raised);
  overflow: hidden;
}

.v2-composer-editor {
  padding: 12px 14px 6px;
  font-size: 12.5px;
  line-height: 19px;
  color: var(--v2-text-faint);
  border-radius: 6px;
}

.v2-composer-bar {
  height: 38px;
  padding: 0 8px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.v2-ghost-chip {
  height: 27px;
  padding: 0 7px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--v2-text);
  font-size: 12.5px;
  font-weight: 440;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.v2-ghost-chip:hover {
  background: var(--v2-overlay-hover);
}

/* Exact variant="submit" button from packages/ui/src/actions/submit.css */
.v2-submit-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background-image: var(--v2-submit-bg);
  color: var(--v2-submit-fg);
  box-shadow: var(--v2-submit-shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
}

/* Right SideRegion Split Panel (side-region.tsx + sandbox/panel.tsx) */
.pigu-side-region {
  width: 266px;
  flex-shrink: 0;
  background: var(--v2-base);
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  box-shadow: var(--v2-raised);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pigu-pane-tabs {
  height: 36px;
  padding: 0 8px;
  border-bottom: 0.5px solid var(--v2-border);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}

.pigu-pane-tab {
  height: 26px;
  padding: 0 8px;
  border-radius: 5px;
  background: var(--v2-overlay-pressed);
  color: var(--v2-text);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
}

.pigu-sb-toolbar {
  height: 34px;
  padding: 0 8px 0 10px;
  border-bottom: 0.5px solid var(--v2-border-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
}

/* =========================================================
   5. AUTHENTIC 1:1 SETTINGS SCREEN (.settings-screen in settings.css)
   ========================================================= */
.pigu-settings-screen {
  flex: 1;
  min-width: 0;
  min-height: 0;
  border-radius: 10px;
  background: var(--v2-base);
  box-shadow: var(--v2-raised);
  display: grid;
  grid-template-columns: 152px 1fr;
  overflow: hidden;
  position: relative;
}

.pigu-settings-nav {
  padding: 20px 14px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v2-search-input {
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  border: 0.5px solid var(--v2-border);
  background: var(--v2-layer-01);
  color: var(--v2-text-faint);
  font-size: 11.5px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
}

.v2-search-input svg {
  flex-shrink: 0;
}

.v2-search-input span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Session notification bell tooltip (session-header-actions.tsx:28-35) */
.v2-bell-tip {
  position: absolute;
  top: 36px;
  right: 8px;
  background: var(--v2-layer-02);
  border: 0.5px solid var(--v2-border-strong);
  color: var(--v2-text);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 11px;
  white-space: nowrap;
  box-shadow: var(--v2-dialog-shadow);
  z-index: 25;
}

/* Tabs variant="pill" in SettingsExtensions (extensions.tsx:644) */
.v2-pill-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--v2-layer-01);
  border: 0.5px solid var(--v2-border);
  border-radius: 7px;
  padding: 2px;
  align-self: flex-start;
}

.v2-pill-tab {
  height: 24px;
  padding: 0 10px;
  border-radius: 5px;
  border: none;
  background: transparent;
  color: var(--v2-text-muted);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.v2-pill-tab:hover {
  color: var(--v2-text);
}

.v2-pill-tab.selected {
  background: var(--v2-overlay-pressed);
  color: var(--v2-text);
}

.v2-inline-form {
  border-radius: 8px;
  border: 0.5px solid var(--v2-border);
  background: var(--v2-layer-01);
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* SettingsRow Select trigger in SettingsGeneral (general.tsx) */
.v2-select-btn {
  height: 26px;
  padding: 0 8px 0 10px;
  border-radius: 6px;
  border: 0.5px solid var(--v2-border-strong);
  background: var(--v2-layer-01);
  color: var(--v2-text);
  font-size: 12px;
  font-weight: 450;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.v2-select-btn:hover {
  background: var(--v2-overlay-hover);
}

.v2-nav-item {
  height: 28px;
  padding: 0 8px;
  border-radius: 4px;
  color: var(--v2-text-muted);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.v2-nav-item:hover {
  background: var(--v2-overlay-hover);
  color: var(--v2-text);
}

.v2-nav-item.selected {
  background: var(--v2-overlay-pressed);
  color: var(--v2-text);
  font-weight: 500;
}

.pigu-settings-content {
  padding: 20px 20px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
  overflow-y: auto;
}

.v2-tab-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.v2-tab-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.v2-sec-title {
  margin: 0 0 5px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--v2-text-muted);
}

.v2-badge {
  border-radius: 3px;
  border: 0.5px solid var(--v2-border-strong);
  padding: 1px 4px;
  font-size: 10px;
  line-height: 1.2;
  color: var(--v2-text-muted);
  flex-shrink: 0;
  white-space: nowrap;
}

.v2-badge.ver {
  border: none;
  background: var(--v2-layer-02);
  font-size: 10px;
  padding: 1.5px 5px;
}

.v2-badge.ok {
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--pill-local-fg);
}

/* Authentic @opencode/ui Button Variants */
.v2-btn {
  height: 26px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  border: 0.5px solid transparent;
}

.v2-btn.ghost {
  background: transparent;
  color: var(--v2-text-muted);
}
.v2-btn.ghost:hover {
  background: var(--v2-overlay-hover);
  color: var(--v2-text);
}

.v2-btn.neutral {
  background: var(--v2-layer-02);
  border-color: var(--v2-border);
  color: var(--v2-text);
}
.v2-btn.neutral:hover {
  background: var(--v2-layer-03);
}

.v2-btn.outline {
  background: transparent;
  border-color: var(--v2-border-strong);
  color: var(--v2-text);
}
.v2-btn.outline:hover {
  background: var(--v2-overlay-hover);
}

.v2-btn.contrast {
  background-image: var(--v2-submit-bg);
  color: var(--v2-submit-fg);
  box-shadow: var(--v2-submit-shadow);
  border: none;
  font-weight: 600;
}

/* Catalog List & Rows (SettingsList variant="catalog") */
.v2-catalog {
  border: 0.5px solid var(--v2-border);
  border-radius: 8px;
  background: var(--v2-layer-01);
  overflow: hidden;
}

.v2-cat-row {
  min-height: 36px;
  padding: 6px 10px;
  border-bottom: 0.5px solid var(--v2-border-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.v2-cat-row:last-child {
  border-bottom: none;
}

.v2-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #49c970;
  flex-shrink: 0;
}

/* Authentic Monochrome v2 Switch */
.v2-switch {
  width: 28px;
  height: 16px;
  border-radius: 999px;
  border: 0.5px solid var(--v2-border-strong);
  background: var(--v2-layer-03);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: background 0.14s ease;
}

.v2-switch.on {
  background: var(--v2-switch-on);
  border-color: var(--v2-switch-on);
}

.v2-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--v2-text-muted);
  transition: transform 0.14s ease, background 0.14s ease;
}

.v2-switch.on::after {
  transform: translateX(12px);
  background: var(--v2-switch-knob-on);
}

/* Indented Device Providers Tree (models.tsx line 165) */
.v2-device-sub {
  margin: 0 0 6px 18px;
  padding-left: 12px;
  border-left: 1px solid var(--v2-border);
  display: flex;
  flex-direction: column;
}

.v2-model-item {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0.5px solid var(--v2-border-muted);
  font-size: 12px;
  padding-right: 6px;
}

.v2-model-item:last-child {
  border-bottom: none;
}

/* Authentic Centered Modal Dialogs inside Window (DialogSelectModel / DialogSessionMemory / DialogSsh / DialogAddMobileRobot) */
.v2-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 28;
}

.v2-dialog {
  width: 100%;
  max-width: 420px;
  background: var(--v2-base);
  border-radius: 10px;
  box-shadow: var(--v2-dialog-shadow);
  overflow: hidden;
}

.v2-dialog.wide {
  max-width: 560px;
}

.v2-dialog-head {
  padding: 11px 14px;
  border-bottom: 0.5px solid var(--v2-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}

.v2-dialog-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v2-dialog-foot {
  padding: 9px 14px;
  border-top: 0.5px solid var(--v2-border);
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.v2-input-box {
  height: 30px;
  padding: 0 9px;
  border-radius: 6px;
  border: 0.5px solid var(--v2-border-strong);
  background: var(--v2-layer-01);
  color: var(--v2-text);
  font-size: 12px;
  display: flex;
  align-items: center;
}

/* ComposerEditorPopover Slash Menu & Thinking Effort Menu (above composer) */
.v2-floating-menu {
  position: absolute;
  bottom: 84px;
  left: 14px;
  width: 320px;
  background: var(--v2-base);
  border-radius: 8px;
  padding: 5px;
  box-shadow: var(--v2-dialog-shadow);
  z-index: 26;
}

.v2-floating-menu.v2-effort-menu {
  bottom: 46px;
  left: 148px;
  width: 148px;
}

.v2-ctx-menu {
  position: absolute;
  width: 138px;
  background: var(--v2-base);
  border-radius: 8px;
  padding: 4px;
  box-shadow: var(--v2-dialog-shadow);
  z-index: 32;
}

.v2-ctx-sep {
  height: 0.5px;
  background: var(--v2-border);
  margin: 3px 4px;
}

.v2-menu-row {
  height: 28px;
  padding: 0 8px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  cursor: pointer;
}

.v2-menu-row:hover,
.v2-menu-row.selected {
  background: var(--v2-overlay-pressed);
}

@media (max-width: 1120px) {
  .annotated-stage {
    grid-template-columns: 1fr;
    max-width: 844px;
    margin: 0 auto;
  }
  .arrow-layer {
    display: none;
  }
  .callout-col,
  .callout-col.left,
  .callout-col.right {
    flex-direction: row;
    flex-wrap: wrap;
    text-align: left;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    gap: 8px;
  }
  .os-row,
  .ppt-grid-3,
  .ppt-grid-2 {
    grid-template-columns: 1fr;
  }
}
