:root {
  --bg: #0a0c10;
  --bg-soft: #0d1016;
  --panel: #11151d;
  --panel-2: #151a23;
  --panel-3: #1b2230;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #e8edf5;
  --muted: #8b94a7;
  --muted-2: #5f6879;
  --accent: #e08a5b;
  --accent-2: #8ab4ff;
  --green: #4ade80;
  --yellow: #fbbf24;
  --red: #fb7185;
  --radius: 14px;
  --font: "Inter", "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  background: #ffffff;
  color-scheme: only light;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

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

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(224, 138, 91, 0.35);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.09);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.16);
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.muted {
  color: var(--muted);
}

.text-green {
  color: var(--green);
}

.text-red {
  color: var(--red);
}

.dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--muted-2);
}

.dot-green {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.08);
}

.dot-muted {
  background: var(--muted-2);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.badge-green {
  border-color: rgba(74, 222, 128, 0.18);
  background: rgba(74, 222, 128, 0.08);
  color: #86efac;
}

.badge-amber {
  border-color: rgba(251, 191, 36, 0.2);
  background: rgba(251, 191, 36, 0.08);
  color: #fcd34d;
}

.app-body {
  overflow: hidden;
  background: var(--bg);
}

body.modal-open {
  overflow: hidden;
}

.app-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 12% -12%, rgba(224, 138, 91, 0.11), transparent 62%),
    radial-gradient(900px 600px at 92% -10%, rgba(138, 180, 255, 0.075), transparent 62%),
    radial-gradient(700px 500px at 55% 110%, rgba(74, 222, 128, 0.035), transparent 62%);
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 248px 300px minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  min-height: 0;
}

.rail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #0d1016 0%, #0b0e13 100%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 6px 18px;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #e89a70, #b95638);
  color: #21110b;
  font-size: 18px;
  font-weight: 750;
  box-shadow: 0 8px 26px rgba(224, 138, 91, 0.22);
}

.brand-copy {
  min-width: 0;
  flex: 1;
}

.brand-name {
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.brand-sub {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.icon-btn.rail-close,
.icon-btn.sessions-close {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 15px;
  line-height: 1;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease, filter 0.16s ease;
}

.btn:hover {
  border-color: var(--line-strong);
  background: #1a202b;
}

.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #e69a70, #c96f43);
  color: #21110b;
  font-weight: 650;
  box-shadow: 0 10px 28px rgba(224, 138, 91, 0.17);
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  color: var(--text);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.btn:disabled:hover {
  filter: none;
  transform: none;
}

.btn-new-project {
  width: 100%;
  margin-bottom: 20px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.icon-btn:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.rail-section {
  min-height: 0;
  flex: 1;
  overflow: auto;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 8px;
  color: var(--muted-2);
  font-size: 12.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.count {
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 12px;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.project-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.project-item:hover {
  background: rgba(255, 255, 255, 0.035);
}

.project-item.is-active {
  border-color: rgba(224, 138, 91, 0.2);
  background: linear-gradient(90deg, rgba(224, 138, 91, 0.13), rgba(224, 138, 91, 0.025));
}

.project-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border-radius: 8px;
  background: var(--panel-3);
  color: var(--muted);
}

.project-item.is-active .project-icon {
  color: var(--accent);
}

.project-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.project-name {
  overflow: hidden;
  font-size: 15px;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-path {
  overflow: hidden;
  color: var(--muted-2);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
}

.project-item.is-active .project-dot {
  opacity: 1;
}

.rail-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.user-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.avatar {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b4a63, #1f2937);
  color: #dbe7ff;
  font-size: 14px;
  font-weight: 650;
}

.user-copy {
  min-width: 0;
  flex: 1;
}

.user-name {
  font-size: 14.5px;
}

.user-status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 12.5px;
}

.sessions {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: var(--panel);
}

.panel-head {
  padding: 0 2px;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.panel-title-row h2 {
  margin: 0;
  overflow: hidden;
  font-size: 20px;
  font-weight: 640;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-title-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.folder-link {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 0 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.folder-link-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border-radius: 8px;
  background: var(--panel-3);
  color: var(--accent);
}

.folder-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.folder-name {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-sub {
  overflow: hidden;
  color: var(--muted-2);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sync-state {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  font-size: 12px;
  white-space: nowrap;
}

.btn-new-session {
  width: 100%;
  margin: 4px 0 12px;
  border-style: dashed;
  background: transparent;
  color: var(--muted);
}

.btn-new-session:hover {
  color: var(--text);
}

.session-list {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  overflow: auto;
}

.session-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 9px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.session-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.session-item.is-active {
  border-color: var(--line);
  background: var(--panel-2);
  box-shadow: inset 2px 0 0 var(--accent);
}

.session-state {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 18px;
  flex: none;
}

.session-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.session-title {
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 540;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-meta {
  overflow: hidden;
  color: var(--muted-2);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-badge {
  flex: none;
  transform: scale(0.92);
  transform-origin: top right;
}

.sync-card {
  margin-top: 12px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005));
}

.sync-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13.5px;
}

.sync-card-head .icon {
  width: 14px;
  height: 14px;
  color: var(--accent-2);
}

.sync-card-head .muted {
  margin-left: auto;
  font-size: 12.5px;
}

.sync-bar {
  height: 3px;
  margin: 10px 0 7px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--panel-3);
}

.sync-bar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2ed3a0, #8ef0c8);
}

.sync-meta {
  color: var(--muted-2);
  font-size: 12px;
}

.workspace {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  background:
    radial-gradient(1100px 600px at 50% -30%, rgba(255, 255, 255, 0.025), transparent 60%),
    var(--bg);
}

.workspace-head {
  display: flex;
  height: 58px;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 14, 19, 0.72);
  backdrop-filter: blur(18px);
}

.workspace-head-left,
.workspace-head-right {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.crumbs {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14.5px;
  white-space: nowrap;
}

.crumbs span,
.crumbs strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.crumbs strong {
  color: var(--text);
  font-weight: 560;
}

.crumb-sep {
  color: var(--muted-2);
}

.model-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
}

.workspace-body {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.chat {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
}

.timeline {
  min-width: 0;
  min-height: 0;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 28px 28px 18px;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

.timeline > * {
  width: 100%;
  max-width: 880px;
  margin-right: auto;
  margin-left: auto;
}

.chat-date {
  margin: 4px auto 20px;
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.message-user {
  display: flex;
  margin: 18px auto 26px;
  justify-content: flex-end;
}

.message-bubble {
  max-width: 78%;
  padding: 11px 14px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(224, 138, 91, 0.17);
  border-radius: 14px 14px 4px 14px;
  background: linear-gradient(135deg, rgba(224, 138, 91, 0.16), rgba(224, 138, 91, 0.055));
  color: #f1e6df;
  font-size: 15.5px;
  line-height: 1.75;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.message-assistant {
  min-width: 0;
  max-width: 880px;
  margin: 0 auto 30px;
}

.agent-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
}

.agent-avatar {
  display: grid;
  width: 28px;
  height: 28px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #171d27;
  color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 138, 91, 0.03);
}

.agent-avatar .icon {
  width: 14px;
  height: 14px;
}

.agent-copy {
  min-width: 0;
  flex: 1;
}

.agent-name {
  font-size: 14.5px;
  font-weight: 620;
}

.agent-meta {
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 12.5px;
}

.agent-row > .badge {
  margin-left: auto;
}

.assistant-content {
  display: flex;
  min-width: 0;
  max-width: 100%;
  flex-direction: column;
  gap: 11px;
  padding-left: 37px;
  color: #cbd5e3;
  font-size: 15.5px;
  line-height: 1.78;
}

.assistant-content p {
  margin: 0;
}

.assistant-content code {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  color: #f0c9b4;
  font-family: var(--mono);
  font-size: 0.95em;
}

.card {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.card-kicker {
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.plan-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 10px 11px 11px;
  list-style: none;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.plan-list li.is-done {
  color: #c6d0df;
}

.check {
  display: grid;
  width: 16px;
  height: 16px;
  flex: none;
  place-items: center;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.1);
  color: var(--green);
}

.check .icon {
  width: 10px;
  height: 10px;
  stroke-width: 2.4;
}

.tool-card {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d1118;
}

.tool-card summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  cursor: pointer;
  list-style: none;
}

.tool-card summary::-webkit-details-marker {
  display: none;
}

.tool-icon {
  color: var(--accent-2);
}

.tool-icon .icon {
  width: 14px;
  height: 14px;
}

.tool-name {
  overflow: hidden;
  color: #cbd5e1;
  font-family: var(--mono);
  font-size: 13.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: var(--green);
  font-size: 12px;
  white-space: nowrap;
}

.tool-chevron {
  width: 14px;
  height: 14px;
  color: var(--muted-2);
  transition: transform 0.18s ease;
}

.tool-card[open] .tool-chevron {
  transform: rotate(180deg);
}

.tool-card pre {
  max-width: 100%;
  margin: 0;
  padding: 10px 11px;
  overflow: auto;
  border-top: 1px solid var(--line);
  background: #0a0e14;
  color: #9fb0c7;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
}

.diff-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
}

.diff-path {
  overflow: hidden;
  color: #cbd5e1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.diff-stat {
  color: var(--green);
  font-size: 12.5px;
  white-space: nowrap;
}

.diff-body {
  max-width: 100%;
  margin: 0;
  padding: 8px 0;
  overflow: auto;
  background: #0a0e14;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
}

.line {
  display: block;
  padding: 0 11px;
  white-space: pre;
}

.diff-ctx {
  color: #77859a;
}

.diff-add {
  background: rgba(34, 197, 94, 0.08);
  color: #86efac;
}

.diff-del {
  background: rgba(244, 63, 94, 0.07);
  color: #fda4af;
}

.approval-card {
  min-width: 0;
  max-width: 100%;
  padding: 11px;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.07), rgba(251, 191, 36, 0.015));
}

.approval-head {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.approval-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: none;
  place-items: center;
  border-radius: 8px;
  background: rgba(251, 191, 36, 0.1);
  color: var(--yellow);
}

.approval-icon .icon {
  width: 15px;
  height: 15px;
}

.approval-copy {
  min-width: 0;
  flex: 1;
}

.approval-title {
  font-size: 14.5px;
  font-weight: 600;
}

.approval-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.approval-head > .badge {
  margin-left: auto;
}

.approval-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.approval-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 11px;
}

.approval-card.is-approved {
  border-color: rgba(74, 222, 128, 0.22);
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.06), rgba(74, 222, 128, 0.012));
}

.approval-card.is-rejected {
  border-color: rgba(251, 113, 133, 0.22);
  background: linear-gradient(180deg, rgba(251, 113, 133, 0.05), rgba(251, 113, 133, 0.01));
}

.approval-card.is-approved .approval-icon {
  background: rgba(74, 222, 128, 0.1);
  color: var(--green);
}

.approval-card.is-rejected .approval-icon {
  background: rgba(251, 113, 133, 0.1);
  color: var(--red);
}

.composer-wrap {
  min-width: 0;
  flex: none;
  padding: 8px 28px 18px;
  background: linear-gradient(180deg, transparent, var(--bg) 36%);
}

.composer {
  width: 100%;
  min-width: 0;
  max-width: 880px;
  margin: 0 auto;
  padding: 10px 10px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(17, 21, 29, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.composer:focus-within {
  border-color: rgba(224, 138, 91, 0.38);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42), 0 0 0 3px rgba(224, 138, 91, 0.06);
}

.composer textarea {
  width: 100%;
  min-height: 24px;
  max-height: 180px;
  padding: 4px 6px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.65;
}

.composer textarea::placeholder {
  color: var(--muted-2);
}

.composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
}

.composer-tools {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 2px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.chip:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.chip .icon {
  width: 13px;
  height: 13px;
}

.composer-hint {
  margin-left: 4px;
  color: var(--muted-2);
  font-size: 12px;
  white-space: nowrap;
}

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

.context-chip {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}

.btn-send {
  display: grid;
  width: 32px;
  height: 32px;
  flex: none;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #e69a70, #c96f43);
  color: #21110b;
  box-shadow: 0 8px 24px rgba(224, 138, 91, 0.2);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-send:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-send .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.composer-foot {
  max-width: 880px;
  margin: 7px auto 0;
  color: var(--muted-2);
  font-size: 12px;
  text-align: center;
}

.inspector {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: rgba(13, 16, 22, 0.72);
}

.inspector-tabs {
  display: flex;
  gap: 2px;
  padding: 10px 10px 0;
  border-bottom: 1px solid var(--line);
}

.inspector-tab {
  position: relative;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
}

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

.inspector-tab.is-active {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.inspector-tab.is-active::after {
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
  content: "";
}

.inspector-panel {
  display: none;
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 14px;
}

.inspector-panel.is-active {
  display: block;
}

.panel-section + .panel-section {
  margin-top: 18px;
}

.panel-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tree {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.tree-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 6px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13.5px;
}

.tree-row:hover {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.tree-row .icon {
  width: 13px;
  height: 13px;
  color: var(--muted-2);
}

.tree-row.is-file.is-active {
  background: rgba(224, 138, 91, 0.08);
  color: #f1d2c3;
}

.tree-row.is-file.is-active .icon {
  color: var(--accent);
}

.tree-indent {
  padding-left: 19px;
}

.tree-chevron {
  margin-left: auto;
}

.tree-meta {
  margin-left: auto;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11.5px;
}

.mini-card {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
  color: var(--muted);
  font-size: 13px;
}

.mini-row strong {
  overflow: hidden;
  color: var(--text);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.diff-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: #cbd5e1;
  font-family: var(--mono);
  font-size: 13px;
}

.artifact-card {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.artifact-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border-radius: 8px;
  background: var(--panel-3);
  color: var(--accent-2);
}

.artifact-copy {
  min-width: 0;
  flex: 1;
}

.artifact-name {
  overflow: hidden;
  font-size: 13.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artifact-meta {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 6, 10, 0.72);
  backdrop-filter: blur(10px);
}

.modal {
  width: min(620px, 100%);
  max-height: min(720px, 90dvh);
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #11151d;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
}

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

.modal-head h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.modal-desc {
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.picker {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0d1117;
}

.picker-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.picker-crumbs {
  overflow: hidden;
  color: var(--muted);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.picker-crumbs strong {
  color: var(--text);
  font-weight: 550;
}

.search {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted-2);
}

.search .icon {
  width: 12px;
  height: 12px;
}

.search input {
  width: 108px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}

.search input::placeholder {
  color: var(--muted-2);
}

.folder-list {
  display: flex;
  max-height: 300px;
  flex-direction: column;
  gap: 3px;
  overflow: auto;
  padding: 6px;
}

.folder-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.folder-row:hover {
  background: rgba(255, 255, 255, 0.035);
}

.folder-row.is-selected {
  border-color: rgba(224, 138, 91, 0.2);
  background: rgba(224, 138, 91, 0.08);
}

.folder-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border-radius: 8px;
  background: var(--panel-3);
  color: var(--accent);
}

.folder-row .folder-copy {
  gap: 2px;
}

.folder-row .folder-name {
  font-size: 13.5px;
}

.folder-row .folder-meta {
  color: var(--muted-2);
  font-size: 12px;
}

.folder-check {
  display: grid;
  width: 16px;
  height: 16px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: transparent;
}

.folder-check .icon {
  width: 9px;
  height: 9px;
  stroke-width: 2.4;
}

.folder-row.is-selected .folder-check {
  border-color: var(--accent);
  background: var(--accent);
  color: #21110b;
}

.picker-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12.5px;
}

.picker-foot strong {
  color: var(--text);
  font-weight: 500;
}

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--accent);
  font-size: 12.5px;
}

.text-btn:hover {
  background: rgba(224, 138, 91, 0.08);
}

.text-btn .icon {
  width: 12px;
  height: 12px;
}

.form-row {
  margin-top: 14px;
}

.form-row label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.form-row input {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  background: #0d1117;
  color: var(--text);
  font-size: 15px;
}

.form-row input:focus {
  border-color: rgba(224, 138, 91, 0.4);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 200;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #171d27;
  color: var(--text);
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.drawer-scrim,
.mobile-only {
  display: none;
}

/* ---- 桌面窗口预览 ---- */

.preview-body {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  overflow: auto;
  padding: 32px;
  background:
    radial-gradient(1000px 600px at 20% 0%, rgba(224, 138, 91, 0.1), transparent 60%),
    radial-gradient(900px 600px at 90% 100%, rgba(138, 180, 255, 0.08), transparent 60%),
    #06080c;
}

.preview-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%);
}

.preview-meta {
  position: fixed;
  top: 14px;
  left: 50%;
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.app-window {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1440px, calc(100vw - 64px));
  height: min(900px, calc(100dvh - 96px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: #0b0e13;
  box-shadow: 0 40px 140px rgba(0, 0, 0, 0.72), inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.window-bar {
  display: flex;
  height: 46px;
  flex: none;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #12161e, #0e1218);
}

.traffic {
  display: flex;
  gap: 7px;
}

.traffic span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2a3240;
}

.traffic span:nth-child(1) {
  background: #ff5f57;
}

.traffic span:nth-child(2) {
  background: #febc2e;
}

.traffic span:nth-child(3) {
  background: #28c840;
}

.window-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 13.5px;
  white-space: nowrap;
}

.window-title strong {
  color: var(--text);
  font-weight: 600;
}

.window-url {
  margin-left: auto;
  overflow: hidden;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0b0e13;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-link {
  flex: none;
  color: var(--muted-2);
  font-size: 12.5px;
}

.window-link:hover {
  color: var(--accent);
}

.app-frame {
  display: block;
  width: 100%;
  min-height: 0;
  flex: 1;
  border: 0;
  background: var(--bg);
}

/* ---- 响应式 ---- */

@media (max-width: 1279px) {
  .app-shell {
    grid-template-columns: 228px 276px minmax(0, 1fr);
  }

  .workspace-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .inspector {
    display: none;
  }
}

@media (max-width: 1023px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .sessions {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 44;
    width: min(320px, 88vw);
    border-right-color: var(--line-strong);
    box-shadow: 24px 0 80px rgba(0, 0, 0, 0.4);
    transform: translateX(-100%);
    transition: transform 0.22s ease;
  }

  .app-shell.sessions-open .sessions {
    transform: translateX(0);
  }

  .sessions-toggle {
    display: inline-flex;
  }

  .icon-btn.sessions-close {
    display: inline-flex;
  }

  .app-shell.sessions-open .drawer-scrim {
    display: block;
  }

  .drawer-scrim {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(4, 6, 10, 0.62);
    backdrop-filter: blur(3px);
  }
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    width: min(280px, 86vw);
    border-right-color: var(--line-strong);
    box-shadow: 24px 0 80px rgba(0, 0, 0, 0.4);
    transform: translateX(-100%);
    transition: transform 0.22s ease;
  }

  .app-shell.rail-open .rail {
    transform: translateX(0);
  }

  .icon-btn.rail-close,
  .rail-toggle {
    display: inline-flex;
  }

  .app-shell.rail-open .drawer-scrim {
    display: block;
  }

  .sessions {
    z-index: 44;
  }

  .workspace-head {
    padding: 0 12px;
  }

  .timeline {
    padding: 20px 16px 14px;
  }

  .composer-wrap {
    padding: 8px 12px 14px;
  }

  .composer-hint {
    display: none;
  }

  .model-pill {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 640px) {
  .workspace-head {
    height: 52px;
  }

  .crumbs {
    font-size: 14px;
  }

  .model-pill {
    display: none;
  }

  .chat-date {
    margin-bottom: 16px;
  }

  .message-user {
    margin-bottom: 22px;
  }

  .message-bubble {
    max-width: 92%;
    font-size: 15px;
  }

  .assistant-content {
    padding-left: 0;
    font-size: 15px;
  }

  .agent-row {
    margin-bottom: 10px;
  }

  .agent-row > .badge {
    transform: scale(0.9);
    transform-origin: right center;
  }

  .composer textarea {
    font-size: 19px;
  }

  .composer-foot {
    display: none;
  }

  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal {
    width: 100%;
    max-height: 94dvh;
    border-radius: 18px 18px 0 0;
  }

  .modal-head h2 {
    font-size: 21px;
  }

  .picker-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .search {
    width: 100%;
  }

  .search input {
    width: 100%;
  }

  .toast {
    bottom: 16px;
    max-width: calc(100vw - 32px);
    white-space: nowrap;
  }

  .preview-body {
    padding: 0;
  }

  .preview-meta,
  .window-bar {
    display: none;
  }

  .app-window {
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }
}

@media (max-width: 1023px) {
  .app-shell.rail-open .drawer-scrim,
  .app-shell.sessions-open .drawer-scrim {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---- 侧边栏版：项目内嵌会话 ---- */

.app-shell {
  grid-template-columns: 240px minmax(0, 1fr);
}

.workspace-body {
  grid-template-columns: minmax(0, 1fr);
}

.icon-btn.rail-toggle {
  display: none;
}

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid rgba(74, 222, 128, 0.14);
  border-radius: 99px;
  background: rgba(74, 222, 128, 0.045);
  color: #86efac;
  font-size: 12px;
  white-space: nowrap;
}

.workspace-btn {
  min-height: 28px;
  padding: 5px 8px;
  font-size: 13px;
}

.workspace-btn .icon {
  width: 13px;
  height: 13px;
}

.folder-pair {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
  color: var(--text);
  font-family: inherit;
  text-align: left;
  transition: background 0.15s ease;
}

.folder-pair:hover {
  background: rgba(255, 255, 255, 0.03);
}

.folder-pair-item {
  display: flex;
  min-width: 0;
  flex: 1 1 0;
  align-items: center;
  gap: 7px;
}

.folder-pair-icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
}

.folder-pair-icon .icon {
  width: 12px;
  height: 12px;
}

.folder-pair-item:first-child .folder-pair-icon {
  color: var(--accent);
}

.folder-pair-item:last-of-type .folder-pair-icon {
  color: var(--accent-2);
}

.folder-pair-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.folder-pair-label {
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.folder-pair-name {
  overflow: hidden;
  color: #cbd5e1;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-pair-arrow {
  flex: none;
  color: var(--muted-2);
  font-size: 14px;
}

.folder-pair-note {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 12px;
  white-space: nowrap;
}

.project-groups {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.project-group {
  min-width: 0;
}

.project-group-head {
  display: flex;
  align-items: center;
  gap: 2px;
  border-radius: 8px;
}

.project-group-head:hover {
  background: rgba(255, 255, 255, 0.03);
}

.project-toggle {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 7px;
  padding: 7px 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.project-toggle:hover {
  color: var(--text);
}

.project-group.is-active .project-toggle {
  color: var(--text);
}

.project-chevron {
  width: 13px;
  height: 13px;
  flex: none;
  color: var(--muted-2);
  transform: rotate(-90deg);
  transition: transform 0.16s ease;
}

.project-group.is-open .project-chevron {
  transform: rotate(0deg);
}

.project-name {
  overflow: hidden;
  flex: 1;
  font-size: 14.5px;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-count {
  color: var(--muted-2);
  font-size: 12px;
}

.project-add {
  display: none;
  width: 24px;
  height: 24px;
  opacity: 0.7;
}

.project-group.is-active .project-add,
.project-group:hover .project-add {
  display: inline-flex;
}

.project-sessions {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 1px 0 7px 12px;
  padding-left: 7px;
  border-left: 1px solid var(--line);
}

.project-group:not(.is-open) .project-sessions {
  display: none;
}

.project-sessions .session-item {
  align-items: center;
  gap: 7px;
  padding: 6px 7px;
  border-radius: 7px;
}

.project-sessions .session-item.is-active {
  border-color: rgba(224, 138, 91, 0.16);
  background: rgba(224, 138, 91, 0.075);
  box-shadow: none;
}

.project-sessions .session-title {
  flex: 1;
  font-size: 13.5px;
  font-weight: 500;
}

.session-time {
  flex: none;
  color: var(--muted-2);
  font-size: 11px;
  white-space: nowrap;
}

.session-new {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  padding: 6px 7px;
  border: 1px dashed transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted-2);
  font-size: 12.5px;
  text-align: left;
}

.session-new:hover {
  border-color: var(--line);
  color: var(--muted);
}

.session-new .icon {
  width: 12px;
  height: 12px;
}

.plan-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
}

.plan-step {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.plan-step.is-done {
  color: #c6d0df;
}

.plan-step .check {
  width: 14px;
  height: 14px;
}

.plan-step .check .icon {
  width: 9px;
  height: 9px;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  justify-content: flex-end;
  background: rgba(4, 6, 10, 0.58);
  backdrop-filter: blur(6px);
}

.sheet {
  display: flex;
  width: min(420px, 100%);
  height: 100%;
  flex-direction: column;
  overflow: auto;
  padding: 18px;
  border-left: 1px solid var(--line-strong);
  background: #11151d;
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.4);
  animation: sheet-in 0.2s ease-out;
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.sheet-head h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.sheet-folders {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 14px 0;
}

.sheet-folder {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.sheet-folder-label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 1px;
  color: var(--muted-2);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sheet-folder-label .icon {
  width: 12px;
  height: 12px;
}

.sheet-folder strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-folder > span:last-child {
  color: var(--muted-2);
  font-size: 12px;
}

.sheet-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
}

.sheet-tab {
  position: relative;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px 7px 0 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

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

.sheet-tab.is-active {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.sheet-tab.is-active::after {
  position: absolute;
  right: 8px;
  bottom: -1px;
  left: 8px;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
  content: "";
}

.sheet-panels {
  padding-top: 14px;
}

.sheet-panel {
  display: none;
}

.sheet-panel.is-active {
  display: block;
}

.folder-map {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.folder-map-side {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.folder-map-label {
  color: var(--muted-2);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.folder-map-side strong {
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-map-side > span:last-child {
  color: var(--muted-2);
  font-size: 11.5px;
}

.map-arrow {
  flex: none;
  color: var(--accent);
  font-size: 15px;
}

@media (max-width: 1279px) {
  .app-shell {
    grid-template-columns: 228px minmax(0, 1fr);
  }
}

@media (max-width: 1023px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .folder-pair-note {
    display: none;
  }
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .rail {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: auto;
    width: auto;
    transform: none;
    border-right-color: var(--line);
    box-shadow: none;
    transition: none;
  }

  .app-shell.rail-open .rail {
    transform: none;
  }

  .icon-btn.rail-close,
  .icon-btn.rail-toggle {
    display: none;
  }

  .app-shell.rail-open .drawer-scrim {
    display: none;
  }

  .workspace-head {
    padding: 0 12px;
  }

  .folder-pair {
    padding: 8px 12px;
  }

  .timeline {
    padding: 20px 16px 14px;
  }

  .composer-wrap {
    padding: 8px 12px 14px;
  }
}

@media (max-width: 640px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    width: min(280px, 86vw);
    transform: translateX(-100%);
    border-right-color: var(--line-strong);
    box-shadow: 24px 0 80px rgba(0, 0, 0, 0.4);
    transition: transform 0.22s ease;
  }

  .app-shell.rail-open .rail {
    transform: translateX(0);
  }

  .icon-btn.rail-close,
  .icon-btn.rail-toggle {
    display: inline-flex;
  }

  .app-shell.rail-open .drawer-scrim {
    display: block;
  }

  .folder-pair {
    flex-wrap: wrap;
    gap: 6px;
  }

  .folder-pair-arrow,
  .folder-pair-note {
    display: none;
  }

  .folder-pair-item {
    flex: 1 1 100%;
  }

  .workspace-btn {
    padding: 5px 7px;
  }

  .sync-pill {
    display: none;
  }

  .sheet {
    width: 100%;
  }

  .sheet-backdrop {
    padding: 0;
  }

  .folder-map {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-arrow {
    align-self: center;
    transform: rotate(90deg);
  }
}

@media (min-width: 641px) {
  .app-window {
    width: min(760px, calc(100vw - 48px));
    height: min(900px, calc(100dvh - 80px));
  }
}

/* ---- 可收缩左右栏 ---- */

.app-shell {
  --rail-w: 260px;
  --panel-w: 340px;
  grid-template-columns: var(--rail-w) minmax(0, 1fr) var(--panel-w);
  transition: grid-template-columns 0.2s ease;
}

.app-shell.rail-collapsed {
  --rail-w: 0px;
}

.app-shell.panel-collapsed {
  --panel-w: 0px;
}

.icon-btn.rail-toggle {
  display: inline-flex;
}

.rail,
.workspace-panel {
  min-width: 0;
}

.workspace-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: rgba(13, 16, 22, 0.82);
  transition: opacity 0.16s ease, transform 0.22s ease;
}

.workspace-panel .sheet-head {
  flex: none;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.panel-nav {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
}

.panel-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.panel-nav-btn:hover {
  color: var(--text);
}

.panel-nav-btn.is-active {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.panel-nav-btn .icon {
  width: 14px;
  height: 14px;
}

.panel-view {
  display: none;
}

.panel-view.is-active {
  display: block;
}

.panel-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  color: var(--muted);
  font-size: 13px;
}

.panel-context strong {
  overflow: hidden;
  color: var(--text);
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-context .muted {
  color: var(--muted-2);
}

.panel-view .sheet-tabs {
  margin-top: 2px;
}

.folder-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.folder-detail-label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
  color: var(--muted-2);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.folder-detail-label .icon {
  width: 13px;
  height: 13px;
}

.folder-detail strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-detail > span {
  color: var(--muted-2);
  font-size: 12px;
}

.folder-detail-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.folder-detail + .mini-card {
  margin-top: 10px;
}

.panel-scroll {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 0 18px 18px;
}

@media (min-width: 1200px) {
  .app-shell.rail-collapsed .rail,
  .app-shell.panel-collapsed .workspace-panel {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
}

@media (min-width: 1200px) and (max-width: 1279px) {
  .app-shell {
    --rail-w: 240px;
    --panel-w: 320px;
  }
}

@media (max-width: 1199px) {
  .app-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .app-shell.rail-collapsed {
    grid-template-columns: 0 minmax(0, 1fr);
  }

  .app-shell.rail-collapsed .rail {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .workspace-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 46;
    width: min(360px, 92vw);
    border-left-color: var(--line-strong);
    box-shadow: -24px 0 80px rgba(0, 0, 0, 0.42);
    transform: translateX(100%);
  }

  .app-shell.panel-open .workspace-panel {
    transform: translateX(0);
  }

  .app-shell.panel-open .drawer-scrim {
    display: block;
  }

  .drawer-scrim {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(4, 6, 10, 0.62);
    backdrop-filter: blur(3px);
  }
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    width: min(300px, 88vw);
    border-right-color: var(--line-strong);
    box-shadow: 24px 0 80px rgba(0, 0, 0, 0.42);
    transform: translateX(-100%);
    transition: transform 0.22s ease;
  }

  .app-shell.rail-open .rail {
    transform: translateX(0);
  }

  .app-shell.rail-open .drawer-scrim {
    display: block;
  }

  .icon-btn.rail-close {
    display: inline-flex;
  }

  .timeline {
    padding-bottom: 24px;
  }

  .workspace-panel {
    width: min(360px, 92vw);
  }

  .workspace-head {
    padding: 0 12px;
  }

  .folder-pair {
    padding: 8px 12px;
  }

  .timeline {
    padding: 20px 16px 14px;
  }

  .composer-wrap {
    padding: 8px 12px 14px;
  }
}

@media (max-width: 640px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-panel,
  .sheet {
    width: 100%;
  }

  .folder-pair {
    flex-wrap: wrap;
    gap: 6px;
  }

  .folder-pair-arrow,
  .folder-pair-note {
    display: none;
  }

  .folder-pair-item {
    flex: 1 1 100%;
  }

  .sync-pill {
    display: none;
  }

  .folder-map {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-arrow {
    align-self: center;
    transform: rotate(90deg);
  }
}

.assistant-content p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.empty-state {
  padding: 24px 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 16px;
}

.message-assistant.is-pending .assistant-content p {
  color: var(--muted);
}

.workspace-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.workspace-breadcrumb .text-btn {
  padding: 2px 4px;
  font-size: 13px;
}

.panel-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.tree-row[data-workspace-dir],
.tree-row[data-workspace-file],
.tree-row[data-feishu-dir],
.tree-row[data-feishu-file] {
  cursor: pointer;
}

.file-preview {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

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

.file-preview-head strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-preview-meta {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.file-preview-body {
  max-height: 320px;
  margin: 0;
  overflow: auto;
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 2px 0 18px;
}

.rail-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 14.5px;
  text-align: left;
}

.rail-nav-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.rail-nav-item .icon {
  width: 15px;
  height: 15px;
  color: var(--muted-2);
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-add {
  width: 24px;
  height: 24px;
}

.section-add .icon {
  width: 14px;
  height: 14px;
}

.session-row {
  display: flex;
  align-items: center;
  gap: 2px;
}

.session-row .session-item {
  min-width: 0;
  flex: 1;
}

.session-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: none;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted-2);
  opacity: 0.35;
  transition: opacity 0.15s ease;
}

.session-row:hover .session-delete,
.session-item.is-active + .session-delete {
  opacity: 1;
}

.session-delete:hover {
  background: rgba(251, 113, 133, 0.08);
  color: var(--red);
}

.session-delete .icon {
  width: 13px;
  height: 13px;
}

.file-tabs {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.file-tabs::-webkit-scrollbar {
  display: none;
}

.file-tabs-empty {
  overflow: hidden;
  color: var(--muted-2);
  font-size: 13.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-tab {
  display: flex;
  flex: none;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.file-tab.is-active {
  border-color: var(--line-strong);
  background: var(--panel-2);
}

.file-tab-open {
  display: flex;
  max-width: 180px;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
}

.file-tab.is-active .file-tab-open {
  color: var(--text);
}

.file-tab-open .icon {
  width: 13px;
  height: 13px;
  flex: none;
}

.file-tab-open span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-tab-close {
  display: flex;
  width: 22px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--muted-2);
}

.file-tab-close:hover {
  background: rgba(251, 113, 133, 0.08);
  color: var(--red);
}

.file-tab-close .icon {
  width: 12px;
  height: 12px;
}

.chat.is-hidden,
.file-viewer.is-hidden {
  display: none !important;
}

.file-viewer {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}

.file-viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.file-viewer-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.file-viewer-title .icon {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--accent-2);
}

.file-viewer-title strong {
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-viewer-title span {
  overflow: hidden;
  color: var(--muted-2);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-viewer-meta {
  flex: none;
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
}

.file-viewer-body {
  min-height: 0;
  flex: 1;
  margin: 0;
  padding: 18px 20px 28px;
  overflow: auto;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.folder-pair.is-cloud-only .folder-pair-item:first-child,
.folder-pair.is-cloud-only .folder-pair-arrow {
  display: none;
}

.folder-pair.is-cloud-only .folder-pair-item:last-of-type {
  flex: 1;
}

.is-hidden {
  display: none !important;
}

.panel-section-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: normal;
  text-transform: none;
}

.panel-refresh {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
}

.panel-refresh .icon {
  width: 12px;
  height: 12px;
}

.login-btn {
  padding: 4px 9px;
  white-space: nowrap;
}


/* ---- light theme ---- */
.theme-light,
:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --panel: #ffffff;
  --panel-2: #f3f5f8;
  --panel-3: #e9edf2;
  --line: rgba(15, 23, 42, 0.10);
  --line-strong: rgba(15, 23, 42, 0.16);
  --text: #1f2329;
  --muted: #5f6673;
  --muted-2: #8a919e;
}

.theme-light.app-body,
.theme-light.preview-body,
.app-body,
.preview-body {
  background: #ffffff;
}

.theme-light .app-glow,
.app-glow {
  opacity: 0.45;
}

.theme-light .rail,
.rail {
  background: #f7f8fa;
}

.theme-light .workspace,
.workspace {
  background: #ffffff;
}

.theme-light .workspace-head,
.workspace-head {
  background: rgba(255, 255, 255, 0.9);
}

.theme-light .workspace-panel,
.theme-light .sheet,
.workspace-panel,
.sheet {
  background: #ffffff;
}

.theme-light .composer-wrap,
.composer-wrap {
  background: linear-gradient(180deg, transparent, #ffffff 36%);
}

.theme-light .composer,
.composer {
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
}

.theme-light .composer:focus-within,
.composer:focus-within {
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12), 0 0 0 3px rgba(224, 138, 91, 0.08);
}

.theme-light .modal,
.modal {
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.24);
}

.theme-light .modal-backdrop,
.modal-backdrop {
  background: rgba(15, 23, 42, 0.36);
}

.theme-light .picker,
.picker {
  background: #f7f8fa;
}

.theme-light .picker-bar,
.picker-bar {
  background: #ffffff;
}

.theme-light .form-row input,
.theme-light .search input,
.form-row input,
.search input {
  background: #ffffff;
  color: var(--text);
}

.theme-light .toast,
.toast {
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

.theme-light .user-card,
.theme-light .mini-card,
.theme-light .artifact-card,
.theme-light .folder-detail,
.theme-light .sync-card,
.theme-light .card,
.user-card,
.mini-card,
.artifact-card,
.folder-detail,
.sync-card,
.card {
  background: #f7f8fa;
}

.theme-light .agent-avatar,
.agent-avatar {
  background: #f3f5f8;
}

.theme-light .tool-card,
.tool-card {
  background: #f7f8fa;
}

.theme-light .tool-card pre,
.theme-light .diff-body,
.tool-card pre,
.diff-body {
  background: #f1f3f5;
  color: #334155;
}

.theme-light .assistant-content code,
.assistant-content code {
  background: #f1f3f5;
  color: #9a3412;
}

.theme-light .message-bubble,
.message-bubble {
  color: #3a2418;
}

.theme-light .folder-pair,
.folder-pair {
  background: #fafbfc;
}

.theme-light .folder-pair:hover,
.theme-light .folder-row:hover,
.theme-light .tree-row:hover,
.theme-light .session-item:hover,
.theme-light .project-group-head:hover,
.theme-light .rail-nav-item:hover,
.theme-light .icon-btn:hover,
.theme-light .chip:hover,
.theme-light .panel-nav-btn:hover,
.theme-light .sheet-tab:hover,
.folder-pair:hover,
.folder-row:hover,
.tree-row:hover,
.session-item:hover,
.project-group-head:hover,
.rail-nav-item:hover,
.icon-btn:hover,
.chip:hover,
.panel-nav-btn:hover,
.sheet-tab:hover {
  background: rgba(15, 23, 42, 0.05);
}

.theme-light .file-tab,
.file-tab {
  background: #f7f8fa;
}

.theme-light .file-tab.is-active,
.theme-light .panel-nav-btn.is-active,
.theme-light .sheet-tab.is-active,
.file-tab.is-active,
.panel-nav-btn.is-active,
.sheet-tab.is-active {
  background: #eef1f5;
}

.theme-light .sync-pill,
.sync-pill {
  background: #f3f5f8;
}

.theme-light .diff-summary,
.diff-summary {
  color: #475569;
}

.theme-light .app-window,
.app-window {
  background: #ffffff;
  box-shadow: 0 40px 140px rgba(15, 23, 42, 0.28);
}

.theme-light .window-bar,
.window-bar {
  background: #f7f8fa;
}

.theme-light .window-url,
.window-url {
  background: #ffffff;
}

.theme-light .traffic span,
.traffic span {
  background: #cbd5e1;
}

.theme-light,
:root {
  color-scheme: only light;
}

.theme-light .assistant-content,
.theme-light .tool-name,
.theme-light .diff-path,
.theme-light .diff-summary,
.theme-light .folder-pair-name,
.theme-light .plan-step.is-done,
.theme-light .plan-list li.is-done,
.assistant-content,
.tool-name,
.diff-path,
.diff-summary,
.folder-pair-name,
.plan-step.is-done,
.plan-list li.is-done {
  color: var(--text);
}

.theme-light .diff-ctx,
.diff-ctx {
  color: var(--muted);
}

.theme-light .diff-add,
.diff-add {
  background: rgba(34, 197, 94, 0.10);
  color: #166534;
}

.theme-light .diff-del,
.diff-del {
  background: rgba(244, 63, 94, 0.08);
  color: #9f1239;
}

.theme-light .badge-green,
.badge-green {
  color: #166534;
}

.theme-light .badge-amber,
.badge-amber {
  color: #92400e;
}

.feishu-tree-arrow,
.feishu-tree-spacer {
  display: inline-flex;
  width: 12px;
  flex: none;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
  font-size: 10px;
}

.project-delete {
  display: none;
  width: 24px;
  height: 24px;
  opacity: 0.7;
}

.project-group.is-active .project-delete,
.project-group:hover .project-delete {
  display: inline-flex;
}

.project-delete:hover {
  background: rgba(251, 113, 133, 0.08);
  color: var(--red);
}

.project-edit {
  display: none;
  width: 24px;
  height: 24px;
  opacity: 0.7;
}

.project-group.is-active .project-edit,
.project-group:hover .project-edit {
  display: inline-flex;
}

.project-edit:hover {
  background: rgba(138, 180, 255, 0.10);
  color: var(--accent-2);
}
