    .rightbar {
      min-width: 0;
      background: var(--panel);
      border-left: 1px solid var(--border);
      display: grid;
      grid-template-rows: 44px minmax(0, 1fr);
      overflow: hidden;
    }
    .right-content { min-height: 0; overflow: auto; padding: 10px; }
    .card { border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.03); margin-bottom: 10px; overflow: hidden; }
    .card-head { padding: 10px; border-bottom: 1px solid var(--border-soft); font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
    .card-body { padding: 10px; color: #cbd5e1; display: grid; gap: 8px; }
    .statusline { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); }
    .settings-project-head { align-items: center; }
    .settings-card-actions { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: #f8fafc; }
    .settings-card-actions > span { font-weight: 800; }
    .settings-project-delete {
      width: 30px;
      height: 30px;
      display: inline-grid;
      place-items: center;
      border: 1px solid rgba(248,113,113,.24);
      border-radius: 9px;
      color: #fb7185;
      background: rgba(239,68,68,.08);
    }
    .settings-project-delete svg { width: 15px; height: 15px; }
    .settings-project-delete:hover { color: #fecaca; background: rgba(239,68,68,.18); border-color: rgba(248,113,113,.42); }
    .project-delete-modal .startup-modal { width: min(560px, 100%); }
    .project-delete-warning {
      display: grid;
      gap: 5px;
      padding: 10px;
      border: 1px solid rgba(248,113,113,.28);
      border-radius: 12px;
      background: rgba(127,29,29,.20);
      color: #fecaca;
    }
    .project-delete-warning b { color: #fff; }
    .project-delete-warning span { color: #fca5a5; font-size: 12px; }
    .project-delete-modal .statusline span:last-child { min-width: 0; text-align: right; overflow-wrap: anywhere; color: #e2e8f0; }
    .settings-project-body .statusline span:last-child { min-width: 0; text-align: right; overflow-wrap: anywhere; color: #e2e8f0; }
    .settings-project-name { color: #f8fafc; font-size: 18px; font-weight: 800; line-height: 1.1; }
    .settings-project-body .project-stack { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 2px; }
    .settings-project-body .stack-tag {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      max-width: 118px;
      padding: 3px 7px;
      border: 1px solid rgba(148,163,184,.18);
      border-radius: 999px;
      background: rgba(255,255,255,.055);
      color: #dbeafe;
      font: 700 10px/1 JetBrains Mono, monospace;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .settings-project-body .stack-tag[data-tone="cyan"] { color: #a5f3fc; background: rgba(34,211,238,.10); border-color: rgba(34,211,238,.20); }
    .settings-project-body .stack-tag[data-tone="blue"] { color: #bfdbfe; background: rgba(59,130,246,.10); border-color: rgba(59,130,246,.20); }
    .settings-project-body .stack-tag[data-tone="green"] { color: #bbf7d0; background: rgba(34,197,94,.10); border-color: rgba(34,197,94,.20); }
    .settings-project-body .stack-tag[data-tone="purple"] { color: #ddd6fe; background: rgba(139,92,246,.12); border-color: rgba(139,92,246,.24); }
    .settings-project-body .stack-tag[data-tone="orange"] { color: #fed7aa; background: rgba(249,115,22,.11); border-color: rgba(249,115,22,.22); }
    .settings-project-body .stack-tag[data-tone="yellow"] { color: #fde68a; background: rgba(234,179,8,.10); border-color: rgba(234,179,8,.20); }
    .statusbar { height: 4px; min-height: 4px; background: linear-gradient(90deg, #7c3aed, #22c55e, #f59e0b); box-shadow: 0 -1px 8px rgba(124,58,237,.35); }
    .chat { display: grid; gap: 8px; }
    .message-item {
      display: flex;
      flex-direction: column;
      max-width: min(76%, 760px);
    }
    .message-item.user { align-self: flex-end; margin-left: auto; }
    .message-item.assistant { align-self: flex-start; margin-right: auto; }
    .message-time {
      margin-bottom: 2px;
      padding: 0 4px;
      color: var(--dim);
      font: 9px JetBrains Mono, ui-monospace, monospace;
    }
    .message-item.user .message-time { text-align: right; }
    .message-item.assistant .message-time { text-align: left; }
    .bubble {
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 9px 11px;
      line-height: 1.45;
      white-space: pre-wrap;
      word-break: break-word;
      max-width: 100%;
    }
    .bubble.user {
      background: rgba(139,92,246,.24);
      border-color: rgba(139,92,246,.45);
      border-bottom-right-radius: 5px;
    }
    .bubble.assistant {
      background: rgba(255,255,255,.04);
      color: #dbe1ee;
      border-bottom-left-radius: 5px;
    }

    .job-progress {
      margin-top: 8px;
      padding-top: 8px;
      border-top: 1px solid var(--border-soft);
      display: grid;
      gap: 5px;
      color: var(--muted);
      font-size: 11px;
      font-family: Inter, system-ui, sans-serif;
    }
    .job-progress-fold {
      margin-bottom: 8px;
      border: 1px solid var(--border-soft);
      border-radius: 8px;
      background: rgba(0,0,0,.14);
      overflow: hidden;
    }
    .job-progress-fold summary {
      cursor: pointer;
      list-style: none;
      padding: 5px 7px;
      color: var(--muted);
      font: 11px JetBrains Mono, monospace;
      display: inline-flex;
      gap: 5px;
      align-items: center;
    }
    .job-progress-fold summary::-webkit-details-marker { display: none; }
    .job-progress-fold .diff-icon { font-size: 9px; transition: transform .12s ease; }
    .job-progress-fold[open] .diff-icon { transform: rotate(90deg); }
    .job-progress-fold .job-progress { margin: 0; padding: 8px; border-top: 1px solid var(--border-soft); }
    .job-line { display: grid; grid-template-columns: 58px 16px minmax(0, 1fr); gap: 6px; align-items: start; }
    .job-line .time { color: var(--dim); font-family: JetBrains Mono, monospace; }
    .job-line.success { color: #bbf7d0; }
    .job-line.error { color: #fecaca; }
    .job-status { display: inline-flex; gap: 6px; align-items: center; color: var(--accent-2); font-weight: 800; margin-bottom: 4px; }
    .answer-text { white-space: pre-wrap; }
    .diff-fold { margin-top: 8px; border: 1px solid var(--border-soft); border-radius: 8px; background: rgba(0,0,0,.16); white-space: normal; }
    .diff-fold summary { cursor: pointer; list-style: none; padding: 5px 7px; color: var(--muted); font: 11px JetBrains Mono, monospace; display: inline-flex; gap: 5px; align-items: center; }
    .diff-fold summary::-webkit-details-marker { display: none; }
    .diff-fold .diff-icon { font-size: 9px; transition: transform .12s ease; }
    .diff-fold[open] .diff-icon { transform: rotate(90deg); }
    .diff-fold pre { margin: 0; padding: 8px; border-top: 1px solid var(--border-soft); overflow: auto; white-space: pre-wrap; font: 11px JetBrains Mono, monospace; color: #cbd5e1; }
    .commit-note { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border-soft); color: var(--muted); font-size: 12px; text-align: right; }
    .git-list { display: grid; gap: 7px; align-content: start; align-items: start; }
    body.git-mode .right-content {
      min-height: 0;
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
      overflow: hidden;
    }
    body.git-mode .git-list {
      min-height: 0;
      overflow: auto;
      padding-right: 2px;
    }
    body.git-mode .side-content {
      overflow: visible;
    }
    .git-commit { height: 64px; max-height: 64px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.035); overflow: hidden; position: relative; }
    .git-commit.synced { border-color: rgba(34,197,94,.45); }
    .git-commit.remote-only { opacity: .58; border-color: rgba(148,163,184,.25); background: rgba(148,163,184,.045); filter: grayscale(.35); }
    .git-commit.remote-only > summary { color: #cbd5e1; }
    .git-commit.remote-only .git-commit-meta,
    .git-commit.remote-only .git-commit-author { color: #7f8794; }
    .git-remote-flag { display: inline-flex; align-items: center; gap: 4px; width: max-content; margin-left: 6px; border: 1px solid rgba(148,163,184,.35); border-radius: 999px; padding: 2px 6px; color: #cbd5e1; background: rgba(148,163,184,.12); font: 10px JetBrains Mono, monospace; }
    .git-synced-flag { display: inline-flex; align-items: center; gap: 4px; width: max-content; margin-left: 6px; border: 1px solid rgba(34,197,94,.35); border-radius: 999px; padding: 2px 6px; color: #bbf7d0; background: rgba(34,197,94,.12); font: 10px JetBrains Mono, monospace; }
    .git-commit > summary { height: 100%; cursor: default; padding: 8px 12px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(96px, max-content); align-items: center; gap: 14px; color: #fff; list-style: none; position: relative; }
    .git-commit > summary::-webkit-details-marker { display: none; }
    .git-commit-main { min-width: 0; display: grid; gap: 4px; }
    .git-commit-subject { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 1.25; }
    .git-commit-meta { color: var(--muted); font: 11px JetBrains Mono, monospace; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .git-commit-author { align-self: center; justify-self: end; color: var(--muted); font: 11px JetBrains Mono, monospace; line-height: 1; white-space: nowrap; text-align: right; padding-right: 4px; transition: opacity .18s ease, transform .18s ease; }
    .git-commit-body { display: none; }
    .git-commit-actions { position: absolute; right: 10px; top: 50%; display: flex; gap: 6px; opacity: 0; visibility: hidden; pointer-events: none; transform: translate(18px, -50%); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
    .git-reset-btn, .git-revert-btn { width: auto; min-width: 70px; padding: 6px 8px; font-size: 11px; }
    .git-reset-btn { background: rgba(245,158,11,.14); border-color: rgba(245,158,11,.36); color: #fde68a; }
    .git-commit:hover .git-commit-author,
    .git-commit:focus-within .git-commit-author,
    .git-commit.revert-visible .git-commit-author { opacity: .14; transform: translateX(-160px); }
    .git-commit:hover .git-commit-actions,
    .git-commit:focus-within .git-commit-actions,
    .git-commit.revert-visible .git-commit-actions { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(0, -50%); }
    .git-commit.remote-only:hover .git-commit-author,
    .git-commit.remote-only:focus-within .git-commit-author,
    .git-commit.remote-only.revert-visible .git-commit-author { opacity: 1; transform: none; }
    .git-toolbar { display: flex; justify-content: flex-end; gap: 8px; align-items: center; margin: 0 0 10px; }
    .git-toolbar .btn { width: auto; min-width: 76px; }
    .git-toolbar .icon-btn { width: 38px; min-width: 38px; height: 38px; padding: 0; display: grid; place-items: center; font-size: 16px; }
    .git-toolbar .icon-btn[hidden] { display: none; }
    .git-toolbar-actions { display: flex; gap: 8px; align-items: center; }
    .git-toolbar .git-sync-btn.active { color: #22c55e; border-color: rgba(34,197,94,.55); background: rgba(34,197,94,.12); }
    .git-github-card { margin-top: 8px; display: grid; gap: 6px; }
    .git-github-card .btn { width: 100%; }
    .git-tree-toggle { display: none; }
    .git-working-grid { display: grid; gap: 1px; font-family: Inter, system-ui, sans-serif; }
    .git-working-grid .statusline {
      min-height: 28px;
      display: grid;
      grid-template-columns: minmax(92px, max-content) minmax(0, 1fr);
      align-items: center;
      gap: 7px;
      padding: 5px 7px;
      border-radius: 7px;
      color: #c9ceda;
      white-space: nowrap;
    }
    .git-working-grid .statusline:hover { background: rgba(255,255,255,.06); color: #fff; }
    .git-working-grid .statusline.clickable { cursor: pointer; }
    .git-working-grid .statusline.changed-files-row { justify-content: start; }
    .git-changed-files-link { justify-self: start; min-width: 34px; padding: 2px 8px; border-radius: 999px; color: #86efac; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.26); font: 12px JetBrains Mono, monospace; }
    .git-changed-files-zero { justify-self: start; min-width: 34px; text-align: center; font: 11px JetBrains Mono, monospace; color: #e2e8f0; }
    .git-changed-files-link:hover { color: #fff; background: rgba(34,197,94,.22); }
    .git-working-grid .statusline span:first-child { color: var(--muted); font-size: 12px; }
    .git-working-grid .statusline span:last-child { min-width: 0; white-space: normal; overflow-wrap: anywhere; text-align: right; font: 11px JetBrains Mono, monospace; }
    .git-empty { color: var(--muted); border: 1px dashed var(--border); border-radius: 10px; padding: 12px; }
    .console-filter-section { display: grid; gap: 8px; }
    .console-filter-list { display: grid; gap: 6px; }
    .console-filter {
      width: 100%;
      min-height: 30px;
      padding: 6px 8px;
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 8px;
      background: rgba(255,255,255,.035);
      color: #cbd5e1;
      text-align: left;
      font: 700 11px/1 Inter, system-ui, sans-serif;
    }
    .console-filter:hover,
    .console-filter.active { color: #fff; background: rgba(139,92,246,.16); border-color: rgba(139,92,246,.34); }
    .console-meta { color: var(--dim); font: 10px/1.4 JetBrains Mono, ui-monospace, monospace; padding: 2px 6px; overflow-wrap: anywhere; }
    body.console-mode .right-content { min-height: 0; overflow: hidden; padding: 0; }
    body.console-mode .workbench { grid-template-columns: 48px clamp(220px, 32vw, 340px) minmax(0, 1fr); grid-template-areas: "activity sidebar right"; }
    body.console-mode .activity { grid-area: activity; }
    body.console-mode .sidebar { grid-area: sidebar; display: grid; }
    body.console-mode .main { display: none; }
    body.console-mode .rightbar { grid-area: right; min-height: 0; }
    .console-panel { height: 100%; min-height: 0; display: grid; background: rgba(2,6,23,.24); }
    .console-list { min-height: 0; overflow: auto; padding: 10px; display: flex; flex-direction: column; gap: 7px; scroll-behavior: smooth; }
    .console-entry { flex: 0 0 auto; border: 1px solid rgba(255,255,255,.075); border-radius: 10px; background: rgba(255,255,255,.028); overflow: hidden; }
    .console-entry summary { min-height: 34px; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; padding: 7px 10px; color: #dbe1ee; line-height: 1.25; }
    .console-entry summary::-webkit-details-marker { display: none; }
    .console-entry[open] summary { border-bottom: 1px solid rgba(255,255,255,.07); }
    .console-type { flex: 0 0 auto; min-width: 66px; text-align: center; justify-self: start; padding: 2px 7px; border-radius: 999px; background: rgba(148,163,184,.12); color: #cbd5e1; font: 700 10px/1.4 JetBrains Mono, ui-monospace, monospace; text-transform: uppercase; }
    .console-entry.error .console-type { background: rgba(239,68,68,.15); color: #fecaca; }
    .console-entry.warning .console-type { background: rgba(245,158,11,.15); color: #fde68a; }
    .console-entry.success .console-type { background: rgba(34,197,94,.14); color: #bbf7d0; }
    .console-entry.request .console-type { background: rgba(59,130,246,.14); color: #bfdbfe; }
    .console-time { flex: 0 0 auto; color: var(--dim); font: 10px JetBrains Mono, ui-monospace, monospace; white-space: nowrap; }
    .console-summary { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 12px JetBrains Mono, ui-monospace, monospace; }
    .console-entry pre { margin: 0; padding: 10px; max-height: 45vh; overflow: auto; white-space: pre-wrap; color: #cbd5e1; font: 11px/1.55 JetBrains Mono, ui-monospace, monospace; background: rgba(0,0,0,.18); }
    .git-back-btn { padding: 3px 8px; border-radius: 999px; color: #c4b5fd; background: rgba(139,92,246,.12); border: 1px solid rgba(139,92,246,.24); font: 10px Inter, system-ui, sans-serif; font-weight: 800; letter-spacing: .04em; }
    .git-change-nav { margin-bottom: 1px; }
    .git-affected-wrap { display: grid; gap: 14px; padding: 2px 0 20px; min-height: 0; }
    body.git-mode .right-content.git-changes-mode {
      display: block;
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
    }
    body.git-mode .right-content.git-changes-mode #gitAffectedLines {
      min-height: 0;
    }
    .git-affected-folder { display: grid; gap: 10px; scroll-margin-top: 10px; }
    .git-affected-folder h3 { margin: 0; color: #dbe1ee; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
    .git-affected-file { border: 1px solid rgba(255,255,255,.075); border-radius: 12px; background: rgba(255,255,255,.025); overflow: hidden; scroll-margin-top: 10px; }
    .git-affected-file-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(15,17,23,.72); }
    .git-affected-file-head b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
    .git-affected-file-head span { color: var(--muted); font: 11px JetBrains Mono, monospace; white-space: nowrap; }
    .git-affected-lines { display: grid; font: 11px/1.6 JetBrains Mono, ui-monospace, monospace; overflow-x: auto; }
    .git-affected-line { display: grid; grid-template-columns: 48px minmax(max-content, 1fr); gap: 10px; padding: 1px 10px; border-left: 2px solid transparent; }
    .git-affected-line.added { color: #d1fae5; background: rgba(34,197,94,.06); border-left-color: rgba(34,197,94,.65); }
    .git-affected-line.removed { color: #fecaca; background: rgba(239,68,68,.06); border-left-color: rgba(239,68,68,.65); }
    .git-affected-line-no { color: var(--dim); text-align: right; user-select: none; }
    .git-affected-line code { white-space: pre; color: inherit; background: transparent; }
    .git-modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
    .git-modal .startup-modal-body { gap: 10px; }
    .git-message-wrap { position: relative; display: grid; }
    .git-message-wrap .input { padding-right: 54px; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease; }
    .git-message-wrap.drafting .input {
      color: #dbe1ee;
      border-color: rgba(139,92,246,.44);
      background: linear-gradient(90deg, rgba(139,92,246,.07), rgba(255,255,255,.04), rgba(96,165,250,.07));
      background-size: 240% 100%;
      box-shadow: 0 0 0 2px rgba(139,92,246,.07), inset 0 0 16px rgba(139,92,246,.06);
      animation: gitDraftFieldGlow 2.2s ease-in-out infinite;
    }
    @keyframes gitDraftFieldGlow { 0%,100% { background-position: 0% 50%; box-shadow: 0 0 0 2px rgba(139,92,246,.06), inset 0 0 14px rgba(139,92,246,.045); } 50% { background-position: 100% 50%; box-shadow: 0 0 0 2px rgba(96,165,250,.08), inset 0 0 20px rgba(96,165,250,.06); } }
    .git-message-wrap.drafting::after {
      content: '';
      position: absolute;
      right: 16px;
      top: 50%;
      width: 18px;
      height: 18px;
      margin-top: -9px;
      border-radius: 999px;
      border: 2px solid rgba(196,181,253,.22);
      border-top-color: rgba(196,181,253,.9);
      box-shadow: 0 0 14px rgba(139,92,246,.18);
      animation: gitDraftSpinner .9s linear infinite;
      pointer-events: none;
    }
    @keyframes gitDraftSpinner { to { transform: rotate(360deg); } }
    @media (prefers-reduced-motion: reduce) {
      .git-message-wrap.drafting .input,
      .git-message-wrap.drafting::after { animation: none; }
    }
    .git-clear-message-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; border: 1px solid rgba(139,92,246,.28); color: #c4b5fd; background: rgba(139,92,246,.12); font-size: 18px; line-height: 1; transition: opacity .16s ease, transform .16s ease, background .16s ease, color .16s ease; }
    .git-clear-message-btn:hover { color: #fff; background: rgba(139,92,246,.24); }
    .git-message-wrap.drafting .git-clear-message-btn,
    .git-clear-message-btn[hidden] { display: none; }
    .btn.danger { background: rgba(239,68,68,.16); border-color: rgba(239,68,68,.38); color: #fecaca; }

    body.settings-mode .sidebar,
    body.settings-mode .main { display: none; }
    body.settings-mode .workbench { grid-template-columns: 48px minmax(0, 1fr); }
    body.settings-mode .rightbar { border-left: 1px solid var(--border); }

    body.agent-mode .ide { grid-template-rows: 34px minmax(0, 1fr) 4px; }
    body.agent-mode .sidebar,
    body.agent-mode .main { display: none; }
    body.agent-mode .workbench {
      min-height: calc(var(--app-height) - 38px);
      grid-template-columns: 48px minmax(0, 1fr);
    }
    body.agent-mode .rightbar {
      border-left: 1px solid var(--border);
      grid-template-rows: 44px minmax(0, 1fr);
    }
    body.agent-mode .right-content { padding: 0; overflow: hidden; min-height: 0; }
