/* [project]/app/globals.css [app-client] (css) */
:root {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  --bg: #0b1117;
  --bg-elevated: #111a24;
  --bg-soft: #162230;
  --panel: rgba(18, 29, 42, .88);
  --line: rgba(164, 189, 215, .16);
  --line-strong: rgba(164, 189, 215, .28);
  --text: #f4f8fc;
  --muted: #95a8bb;
  --accent: #6ed0b8;
  --accent-strong: #86f7d8;
  --danger: #f97777;
  --warning: #f0c36e;
  --info: #7eb7ff;
  --shadow: 0 30px 80px rgba(0, 0, 0, .35);
  --radius: 22px;
  --radius-sm: 14px;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: radial-gradient(circle at 0 0, rgba(110, 208, 184, .12), rgba(0, 0, 0, 0) 30%), radial-gradient(circle at 100% 100%, rgba(126, 183, 255, .16), rgba(0, 0, 0, 0) 30%), linear-gradient(#091018 0%, #0b1117 100%);
  margin: 0;
}

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

button, input, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
}

.dashboard-shell {
  grid-template-columns: 320px 1fr;
  min-height: 100vh;
  display: grid;
}

.sidebar-panel {
  border-right: 1px solid var(--line);
  background: rgba(10, 16, 24, .88);
  flex-direction: column;
  align-self: start;
  height: 100vh;
  padding: 28px 22px;
  display: flex;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  overflow: hidden;
}

.sidebar-scroll-area {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .12) transparent;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.sidebar-settings-icon {
  width: 32px;
  height: 32px;
  color: var(--text-muted, #8a9ab5);
  border-radius: 6px;
  flex-shrink: 0;
  justify-content: center;
  align-self: flex-end;
  align-items: center;
  transition: color .15s, background .15s;
  display: flex;
}

.sidebar-settings-icon:hover, .sidebar-settings-icon-active {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.sidebar-footer-actions {
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  display: flex;
}

.sidebar-footer-actions .sidebar-settings-icon {
  gap: 8px;
  width: auto;
  height: 32px;
  padding: 0 10px;
}

.sidebar-footer-button {
  cursor: pointer;
  color: var(--muted);
  background: none;
  border: none;
  align-items: center;
  gap: 8px;
  padding: 4px;
  display: inline-flex;
}

.sidebar-footer-label {
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .8rem;
}

.brand-block, .panel-header, .project-card-top, .proposal-item, .button-row, .activity-top, .proposal-header, .detail-topline, .topbar {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.detail-topline {
  margin-bottom: 12px;
}

.detail-description-toggle {
  align-items: center;
  margin-left: 6px;
  font-size: .85rem;
  display: inline-flex;
}

.detail-description-copy {
  margin: 6px 0 14px;
}

.brand-block {
  margin-bottom: 20px;
}

.eyebrow, .section-label, .output-label {
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: .74rem;
}

.brand-block h1, .topbar h1, .panel h2 {
  font-family: var(--font-display);
  letter-spacing: -.03em;
  margin: 6px 0 0;
  font-weight: 700;
}

.brand-block h1 {
  font-size: 1.8rem;
}

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

.section-heading {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  display: flex;
}

.section-heading-main {
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.section-heading-main .section-label {
  margin: 0;
}

.section-icon-button {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 22px;
  transition: border-color .16s, background .16s, transform .16s;
  display: flex;
}

.section-icon-button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .08);
  transform: translateY(-1px);
}

.section-icon-button svg {
  width: 13px;
  height: 13px;
}

.section-icon-button span {
  color: inherit;
  margin-top: -1px;
  font-size: 1rem;
  line-height: 1;
}

.project-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .12) transparent;
  gap: 8px;
  max-height: 340px;
  padding-right: 10px;
  display: grid;
  overflow-y: auto;
}

.project-list::-webkit-scrollbar {
  width: 3px;
}

.project-list::-webkit-scrollbar-track {
  background: none;
}

.project-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .12);
  border-radius: 2px;
}

.project-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, .22);
}

.project-search {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  width: calc(100% - 10px);
  color: var(--fg);
  box-sizing: border-box;
  background: rgba(255, 255, 255, .04);
  margin-bottom: 8px;
  padding: 5px 9px;
  font-size: .78rem;
}

.todo-nav-card {
  background: linear-gradient(135deg, rgba(126, 183, 255, .2), rgba(110, 208, 184, .08)), rgba(13, 21, 31, .92);
  border: 1px solid rgba(126, 183, 255, .22);
  border-radius: 18px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  transition: transform .18s, border-color .18s, box-shadow .18s;
  display: flex;
  box-shadow: inset 0 1px rgba(255, 255, 255, .04), 0 16px 36px rgba(4, 8, 12, .34);
}

.todo-nav-card:hover {
  border-color: rgba(126, 183, 255, .4);
  transform: translateY(-1px);
  box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 18px 42px rgba(4, 8, 12, .4);
}

.todo-nav-card-active {
  border-color: rgba(110, 208, 184, .58);
  box-shadow: inset 0 0 0 1px rgba(110, 208, 184, .15), 0 20px 44px rgba(4, 8, 12, .42);
}

.todo-nav-card-copy {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.todo-nav-card-eyebrow {
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(244, 248, 252, .62);
  font-size: .68rem;
}

.todo-nav-card-copy strong {
  font-family: var(--font-display);
  letter-spacing: -.02em;
  font-size: 1rem;
}

.todo-nav-card-text {
  color: var(--muted);
  font-size: .8rem;
}

.todo-nav-card-badge {
  width: 24px;
  min-width: 24px;
  height: 24px;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: linear-gradient(rgba(255, 102, 102, .98), rgba(218, 41, 41, .98));
  border: 1px solid rgba(255, 96, 96, .45);
  border-radius: 999px;
  flex: 0 0 24px;
  justify-content: center;
  align-items: center;
  padding: 0;
  font-size: .7rem;
  line-height: 1;
  display: inline-flex;
  box-shadow: inset 0 1px rgba(255, 255, 255, .18), 0 10px 22px rgba(154, 16, 16, .28);
}

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

.project-search:focus {
  border-color: var(--line-strong);
  outline: none;
}

.project-icon {
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.project-icon-placeholder {
  border: 1px solid var(--line);
  width: 28px;
  height: 28px;
  color: var(--muted);
  text-transform: uppercase;
  background: rgba(255, 255, 255, .08);
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  font-size: .7rem;
  font-weight: 700;
  display: flex;
}

.icon-upload-area {
  align-items: center;
  gap: 12px;
  display: flex;
}

.icon-preview {
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 50%;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
}

.icon-preview-placeholder {
  border: 1px dashed var(--line-strong);
  width: 52px;
  height: 52px;
  color: var(--muted);
  background: rgba(255, 255, 255, .06);
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  display: flex;
}

.icon-upload-controls {
  flex-direction: column;
  gap: 6px;
  display: flex;
}

.link-stack, .simple-list, .session-stack, .output-stack, .activity-list, .proposal-list, .detail-stack, .form-stack {
  gap: 8px;
  display: grid;
}

.project-card, .tab-chip, .panel, .session-box, .output-card, .activity-item, .info-block, .proposal-item, .modal-card {
  border: 1px solid var(--line);
  background: var(--panel);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.project-card {
  text-align: left;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  transition: transform .18s, border-color .18s;
  display: flex;
}

.project-card-body {
  flex: 1;
  min-width: 0;
}

.project-card:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .05);
}

.tab-chip:hover, .task-table tbody tr:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.project-card p, .topbar-copy, .detail-copy, .session-box p, .info-block p, .output-card p, .proposal-item p, .activity-item p {
  color: var(--muted);
}

.live-console-box {
  min-height: 260px;
}

.live-console-header, .live-console-meta {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.live-console-header {
  margin-bottom: 12px;
}

.live-console-meta {
  color: var(--muted);
  flex-direction: column;
  align-items: flex-end;
  font-size: .78rem;
}

.live-console-output {
  border: 1px solid var(--line);
  color: #d8efe9;
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(7, 12, 18, .94);
  border-radius: 16px;
  min-height: 180px;
  max-height: 420px;
  margin: 0;
  padding: 14px;
  font-family: IBM Plex Mono, SFMono-Regular, Consolas, monospace;
  font-size: .8rem;
  line-height: 1.45;
  overflow: auto;
}

.project-card-active {
  background: linear-gradient(135deg, rgba(110, 208, 184, .12), rgba(110, 208, 184, .04));
  border-color: rgba(110, 208, 184, .6);
  box-shadow: inset 0 0 0 1px rgba(110, 208, 184, .15), 0 0 8px rgba(110, 208, 184, .08);
}

.project-card-active strong {
  color: var(--accent);
}

.project-card-active:hover {
  background: linear-gradient(135deg, rgba(110, 208, 184, .16), rgba(110, 208, 184, .06));
  border-color: rgba(110, 208, 184, .75);
}

.project-card-meta, .topbar-meta, .task-meta-inline {
  color: var(--muted);
  gap: 12px;
  font-size: .82rem;
  display: flex;
}

.link-stack a {
  color: var(--muted);
  border: 1px solid rgba(0, 0, 0, 0);
  border-radius: 12px;
  padding: 10px 12px;
  display: block;
}

.link-stack a:hover {
  border-color: var(--line);
  color: var(--text);
}

.sidebar-link-active {
  background: rgba(18, 31, 46, .98);
  color: var(--text) !important;
  border-color: rgba(126, 183, 255, .34) !important;
}

.main-shell {
  padding: 30px;
}

.topbar {
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  padding-bottom: 18px;
}

.topbar-copy {
  max-width: 760px;
}

.summary-url-link {
  color: var(--accent);
  word-break: break-all;
  text-decoration: none;
}

.summary-url-link:hover {
  text-decoration: underline;
}

.topbar-main {
  gap: 28px;
  width: 100%;
  margin: 0;
  display: grid;
}

.topbar-title-row {
  justify-content: flex-start;
  align-items: flex-end;
  gap: 12px;
  width: 100%;
  display: flex;
}

.topbar-title-stack {
  justify-items: flex-start;
  gap: 6px;
  min-width: 0;
  display: grid;
}

.topbar-title-stack .eyebrow {
  margin: 0;
}

.topbar-title-group {
  align-items: flex-end;
  gap: 14px;
  min-width: 0;
  display: inline-flex;
}

.topbar-project-logo, .topbar-project-logo-placeholder {
  border-radius: 50%;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
}

.topbar-project-logo {
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
}

.topbar-project-logo-placeholder {
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--font-display);
  text-transform: uppercase;
  background: linear-gradient(rgba(110, 208, 184, .18), rgba(126, 183, 255, .16));
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
}

.topbar-title-actions {
  align-items: flex-end;
  margin-left: auto;
  display: flex;
}

.topbar-title {
  margin: 6px 0 0;
}

.topbar-meta {
  flex-wrap: wrap;
  align-items: center;
}

.topbar-meta div {
  min-width: 120px;
}

.topbar-meta span {
  color: var(--muted);
  font-size: .8rem;
  display: block;
}

.page-actions {
  min-width: auto !important;
}

.breadcrumbs ol {
  color: var(--muted);
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: .88rem;
  list-style: none;
  display: flex;
}

.breadcrumbs li {
  align-items: center;
  gap: 8px;
  display: inline-flex;
}

.breadcrumbs li:not(:last-child):after {
  content: "/";
  color: rgba(149, 168, 187, .55);
}

.breadcrumbs a:hover {
  color: var(--text);
}

.tabs-row {
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 6px;
  display: flex;
  overflow: auto;
}

.tab-chip {
  text-align: left;
  min-width: 160px;
  padding: 12px 16px;
}

.tab-chip small {
  color: var(--muted);
  margin-top: 4px;
  display: block;
}

.tab-chip-active {
  background: rgba(18, 31, 46, .98);
  border-color: rgba(126, 183, 255, .34);
}

.content-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 18px;
  display: grid;
}

.main-column, .side-column {
  gap: 18px;
  display: grid;
}

.panel {
  padding: 18px;
}

.page-stack, .overview-card-grid {
  gap: 18px;
  display: grid;
}

.overview-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.overview-link-card {
  gap: 8px;
  transition: transform .18s, border-color .18s;
  display: grid;
}

.overview-link-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.proxy-globe-panel {
  gap: 18px;
  display: grid;
}

.proxy-globe-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  align-items: start;
  gap: 18px;
  display: grid;
}

.proxy-globe-stage {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 42%, rgba(126, 183, 255, .14), rgba(0, 0, 0, 0) 34%), radial-gradient(circle at 20% 18%, rgba(110, 208, 184, .12), rgba(0, 0, 0, 0) 18%), linear-gradient(rgba(14, 22, 32, .96), rgba(10, 16, 24, .92));
  border-radius: 28px;
  min-height: 420px;
  padding: 14px;
  overflow: hidden;
}

.proxy-globe-stage svg {
  width: 100%;
  height: 100%;
  display: block;
}

.proxy-globe-outline {
  fill: rgba(10, 16, 24, .3);
  stroke: rgba(126, 183, 255, .34);
  stroke-width: 1.25px;
}

.proxy-globe-sidebar {
  gap: 14px;
  display: grid;
}

.proxy-globe-legend {
  gap: 10px;
  display: grid;
}

.proxy-globe-layer-toggle {
  border: 1px solid var(--line);
  width: 100%;
  color: var(--text);
  text-align: left;
  background: rgba(18, 29, 42, .66);
  border-radius: 16px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  display: flex;
}

.proxy-globe-layer-toggle-active {
  background: rgba(18, 31, 46, .96);
  border-color: rgba(126, 183, 255, .34);
}

.proxy-globe-layer-swatch {
  border-radius: 999px;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .03);
}

.proxy-globe-layer-copy {
  gap: 2px;
  display: grid;
}

.proxy-globe-layer-copy strong {
  font-size: .92rem;
}

.proxy-globe-layer-copy small {
  color: var(--muted);
}

.proxy-globe-summary-card {
  border: 1px solid var(--line);
  background: rgba(18, 29, 42, .66);
  border-radius: 18px;
  gap: 8px;
  padding: 14px;
  display: grid;
}

.proxy-globe-summary-card strong {
  font-size: .95rem;
}

.proxy-globe-summary-card p, .proxy-globe-summary-card span {
  color: var(--muted);
  margin: 0;
  font-size: .9rem;
}

.proxy-globe-badges {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.proxy-globe-badge {
  border: 1px solid var(--line);
  min-height: 30px;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(18, 29, 42, .66);
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
  font-size: .78rem;
  display: inline-flex;
}

.project-summary-panel .panel-header {
  align-items: flex-start;
}

.project-summary-panel .panel-header h3 {
  margin: 4px 0;
}

.project-summary-panel .project-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
  display: grid;
}

.project-summary-grid p {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: .9rem;
}

.section-tabs {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  display: flex;
}

.tab-content {
  margin-top: 18px;
}

.agent-type-choice {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 24px;
  display: grid;
}

.agent-type-button {
  all: unset;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  cursor: pointer;
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 32px 20px;
  transition: border-color .16s, background .16s, transform .16s;
  display: flex;
}

.agent-type-button:hover {
  border-color: var(--accent);
  background: rgba(110, 208, 184, .06);
  transform: translateY(-2px);
}

.agent-type-icon {
  font-size: 2.6rem;
  line-height: 1;
}

.agent-type-button strong {
  color: var(--fg);
  font-size: 1rem;
}

.agent-type-desc {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.4;
}

.template-pick-list {
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  display: flex;
}

.template-pick-card {
  all: unset;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  cursor: pointer;
  text-align: left;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  transition: border-color .16s, background .16s;
  display: flex;
}

.template-pick-card:hover {
  border-color: var(--accent);
  background: rgba(110, 208, 184, .05);
}

.template-pick-card strong {
  color: var(--fg);
  font-size: .9rem;
}

.agent-card-identity {
  justify-content: center;
  align-items: center;
  margin-right: 16px;
  display: inline-flex;
}

.agent-card-avatar {
  object-fit: cover;
  width: 96px;
  height: 96px;
  box-shadow: none;
  background: none;
  border: none;
  border-radius: 999px;
  flex-shrink: 0;
}

.agent-card-avatar-placeholder {
  color: var(--fg);
  box-shadow: none;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 700;
}

.agents-grid {
  gap: 18px;
  display: grid;
}

.view-toggle-btn {
  font-size: .82rem;
  font: inherit;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border-radius: 8px;
  padding: 5px 14px;
  transition: border-color .14s, background .14s, color .14s;
}

.view-toggle-btn:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.view-toggle-btn-active {
  color: var(--fg);
  background: rgba(18, 31, 46, .98);
  border-color: rgba(126, 183, 255, .45);
}

.agent-network-wrap {
  gap: 12px;
  display: grid;
}

.agent-network-controls {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  display: flex;
}

.agent-row-menu-trigger {
  width: 28px;
  height: 28px;
  color: var(--muted);
  cursor: pointer;
  vertical-align: middle;
  background: none;
  border: 0;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  transition: background .12s, color .12s;
  display: inline-flex;
}

.agent-row-menu-trigger:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, .08);
}

.agent-node-menu {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  min-width: 220px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .45);
}

.agent-node-menu-header {
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 10px;
  padding: 12px 14px 10px;
  display: flex;
}

.agent-node-menu-name {
  color: var(--fg);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: .82rem;
  font-weight: 600;
  overflow: hidden;
}

.agent-node-menu-actions {
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  display: flex;
}

.agent-node-menu-action {
  width: 100%;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 6px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-size: .84rem;
  transition: background .12s;
  display: flex;
}

.agent-node-menu-action:hover {
  background: rgba(255, 255, 255, .06);
}

.agent-node-menu-action-icon {
  text-align: center;
  opacity: .75;
  flex-shrink: 0;
  width: 18px;
  font-size: 1rem;
}

.agent-node-menu-action.is-primary {
  color: var(--fg);
  font-weight: 600;
}

.agent-node-menu-action.is-danger {
  color: #f08080;
}

.agent-node-menu-action.is-danger:hover {
  background: rgba(240, 128, 128, .1);
}

.agent-node-menu-divider {
  background: var(--line);
  height: 1px;
  margin: 4px 6px;
}

.agent-network-canvas {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, .08);
  height: 640px;
  position: relative;
  overflow: hidden;
}

.agent-network-node {
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  background: rgba(14, 21, 29, .9);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  width: 100%;
  padding: 20px 22px 16px;
  transition: border-color .15s;
}

.agent-network-node:hover {
  border-color: rgba(130, 182, 255, .45);
}

.agent-network-node-name {
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--fg);
  margin-top: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  overflow: hidden;
}

.agent-network-node-sub {
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 5px;
  font-size: .88rem;
  overflow: hidden;
}

.agent-network-node-badges {
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 5px;
  display: flex;
}

.network-badge {
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 99px;
  padding: 1px 5px;
  font-size: .58rem;
  font-weight: 600;
}

.network-badge-default {
  color: #5dba7d;
  background: rgba(93, 186, 125, .18);
}

.network-badge-helper {
  color: #6b9fff;
  background: rgba(107, 159, 255, .18);
}

.network-badge-collab {
  color: #5dba7d;
  background: rgba(93, 186, 125, .18);
}

.network-badge-recv {
  color: #ffb950;
  background: rgba(255, 185, 80, .18);
}

.network-legend-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  display: inline-block;
}

.agent-network-legend {
  color: var(--muted);
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: .72rem;
  display: flex;
}

.network-legend-swatch {
  vertical-align: middle;
  border-radius: 2px;
  width: 18px;
  height: 2px;
  margin-right: 5px;
  display: inline-block;
}

.network-legend-swatch-dashed {
  background: repeating-linear-gradient(to right, #5dba7d 0, #5dba7d 5px, rgba(0, 0, 0, 0) 5px, rgba(0, 0, 0, 0) 9px);
}

.agent-project-card .agent-card-grid {
  gap: 12px;
  margin-top: 12px;
  display: grid;
}

.agent-card {
  border-radius: var(--radius-sm);
  background: rgba(14, 21, 29, .6);
  border: 1px solid rgba(255, 255, 255, .08);
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  display: flex;
}

.agent-card .button-row {
  align-items: center;
  margin: 0;
}

.table-wrap {
  overflow: auto;
}

.task-header-row {
  width: 100%;
  min-width: 0;
  margin-top: 12px;
}

.task-table-header {
  width: 100%;
}

.task-table-header-content, .task-header-controls {
  width: 100%;
  min-width: 0;
}

.task-filter-toolbar {
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: end;
  gap: 12px;
  width: 100%;
  min-width: 0;
  display: flex;
}

.task-filter-group {
  flex-direction: column;
  flex: 0 132px;
  gap: 6px;
  min-width: 0;
  display: flex;
}

.task-filter-toolbar .search-filter {
  flex: 260px;
  min-width: 220px;
}

.task-filter-pair {
  flex-wrap: nowrap;
  flex: 0 auto;
  align-items: end;
  gap: 12px;
  min-width: 0;
  display: flex;
}

.task-filter-group.status-filter, .task-filter-group.priority-filter, .task-filter-group.project-filter-group, .task-filter-group.unread-filter-group, .task-filter-group.columns-filter-group {
  flex: 0 auto;
  min-width: 0;
}

.task-filter-group.unread-filter-group, .task-filter-group.columns-filter-group {
  width: auto;
}

.task-filter-group.columns-filter-group {
  position: relative;
}

.filter-label {
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  font-size: .66rem;
}

.filter-control {
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  background: linear-gradient(rgba(126, 183, 255, .09), rgba(10, 16, 24, .92)), rgba(10, 16, 24, .9);
  border: 1px solid rgba(150, 184, 230, .18);
  border-radius: 16px;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 12px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  display: flex;
  box-shadow: inset 0 1px rgba(255, 255, 255, .04), 0 18px 34px rgba(4, 6, 8, .45);
}

.filter-control:focus-within {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(110, 208, 184, .35);
}

.filter-toggle-shell {
  padding: 0;
}

.filter-input {
  width: 100%;
  color: var(--text);
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: .86rem;
}

.filter-input:focus-visible {
  outline: none;
}

.filter-control select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  color: inherit;
  background-color: rgba(0, 0, 0, 0);
  min-height: 1.2em;
  padding-left: 2px;
  padding-right: 0;
  line-height: 1.4;
}

.filter-field {
  align-items: center;
  width: 100%;
  min-height: 24px;
  display: flex;
}

.filter-field .filter-toggle-copy {
  width: 100%;
}

.search-icon {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1;
}

.filter-chevron {
  color: var(--muted);
  pointer-events: none;
  font-size: .86rem;
  line-height: 1;
}

.filter-toggle {
  width: 100%;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-align: left;
  background: none;
  border: 0;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 24px;
  padding: 0;
  display: flex;
}

.filter-toggle:focus-visible {
  outline: none;
}

.filter-toggle-copy {
  min-width: 0;
  color: var(--text);
  white-space: nowrap;
  align-items: center;
  gap: 10px;
  font-size: .86rem;
  display: inline-flex;
}

.filter-status-dot {
  background: none;
  border: 1px solid rgba(150, 184, 230, .5);
  border-radius: 999px;
  flex: none;
  width: 8px;
  height: 8px;
}

.filter-status-dot.is-active {
  background: var(--accent);
  border-color: rgba(110, 208, 184, .8);
  box-shadow: 0 0 0 4px rgba(110, 208, 184, .14);
}

.filter-toggle-state {
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  font-size: .74rem;
}

.filter-toggle-meta {
  white-space: nowrap;
  flex: none;
  align-items: center;
  gap: 10px;
  display: inline-flex;
}

.task-filter-group.columns-filter-group .filter-control, .task-filter-group.columns-filter-group .filter-toggle, .task-filter-group.status-filter .filter-control, .task-filter-group.status-filter .filter-toggle, .task-filter-group.priority-filter .filter-control, .task-filter-group.priority-filter .filter-toggle {
  width: 100%;
}

.task-filter-group.unread-filter-group .filter-control, .task-filter-group.unread-filter-group .filter-toggle {
  width: 100%;
  min-width: 0;
}

.filter-toggle.is-active .filter-toggle-state, .filter-toggle.is-active .filter-chevron {
  color: var(--accent);
}

.task-filter-group.status-filter, .task-filter-group.priority-filter {
  position: relative;
}

.task-filter-group.status-filter .filter-control, .task-filter-group.priority-filter .filter-control, .task-filter-group.project-filter-group .filter-control {
  min-width: 160px;
}

.task-filter-group.unread-filter-group .filter-control {
  min-width: 148px;
}

.task-filter-group.columns-filter-group .filter-control {
  min-width: 170px;
}

.filter-menu-dropdown {
  min-width: 100%;
  padding: 4px 0;
  top: calc(100% + 6px);
  left: 0;
  right: auto;
}

.filter-menu-option {
  text-transform: capitalize;
}

.task-menu-dropdown button.is-selected {
  color: var(--accent);
  background: rgba(110, 208, 184, .14);
}

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

.achieved-toggle {
  cursor: pointer;
  color: var(--text);
  background: none;
  border: 0;
  border-radius: 18px;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  transition: background .18s, color .18s, box-shadow .18s;
  display: inline-flex;
}

.achieved-toggle:hover {
  background: rgba(255, 255, 255, .03);
}

.achieved-toggle:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(126, 183, 255, .45);
}

.achieved-toggle.active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(110, 208, 184, .08), rgba(255, 255, 255, .02));
}

.achieved-toggle-track {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  flex-shrink: 0;
  align-items: center;
  width: 38px;
  height: 22px;
  padding: 3px;
  transition: border-color .18s, background .18s;
  display: inline-flex;
}

.achieved-toggle.active .achieved-toggle-track {
  border-color: var(--accent);
  background: rgba(110, 208, 184, .3);
}

.achieved-toggle-thumb {
  background: rgba(255, 255, 255, .95);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  transition: transform .18s, background .18s;
}

.achieved-toggle.active .achieved-toggle-thumb {
  background: var(--accent-strong);
  transform: translateX(16px);
}

.achieved-toggle-state {
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: .72rem;
}

.achieved-toggle-copy {
  text-align: left;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  display: flex;
}

.achieved-toggle-title {
  color: var(--text);
  font-size: .92rem;
  font-weight: 600;
}

.task-table {
  border-collapse: collapse;
  width: 100%;
}

.task-table th, .task-table td {
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  padding: 16px 12px;
}

.task-table th {
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  font-size: .78rem;
}

.task-table th button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
  align-items: center;
  gap: 4px;
  padding: 0;
  display: flex;
}

.task-table th button:focus-visible {
  outline: 2px solid rgba(126, 183, 255, .8);
}

.task-table tbody tr {
  cursor: pointer;
  transition: background .18s, transform .18s;
}

.task-agent-cell {
  align-items: center;
  gap: 12px;
  display: inline-flex;
}

.task-agent-avatar {
  object-fit: cover;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(150, 184, 230, .2);
  border-radius: 999px;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.task-row-active {
  background: rgba(110, 208, 184, .08);
}

.task-cell-main {
  gap: 6px;
  display: grid;
}

.task-cell-main p {
  color: var(--muted);
  margin: 0;
}

.task-number-badge {
  color: #cfe3ff;
  letter-spacing: .08em;
  white-space: nowrap;
  text-transform: uppercase;
  background: linear-gradient(rgba(59, 130, 246, .18), rgba(59, 130, 246, .08));
  border: 1px solid rgba(126, 183, 255, .28);
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  min-width: 88px;
  padding: .35rem .65rem;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
}

.task-status-stack {
  flex-direction: column;
  gap: 4px;
  display: flex;
}

.task-status-meta {
  color: var(--muted);
  text-transform: none;
  font-size: .75rem;
}

.empty-row, .empty-state {
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: rgba(14, 21, 29, .8);
  padding: 18px;
}

.large-empty {
  margin-top: 24px;
}

.detail-content, .output-grid, .detail-grid, .session-grid, .form-grid {
  gap: 14px;
  display: grid;
}

.detail-grid, .output-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.session-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.session-stat, .info-block, .output-card {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(14, 22, 31, .8);
  padding: 14px;
}

.session-stat span, .output-label {
  margin-bottom: 8px;
  display: block;
}

.proposal-panel {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(14, 22, 31, .84);
  padding: 16px;
}

.template-detail-layout, .template-panel-grid {
  gap: 14px;
  display: grid;
}

.template-detail-layout {
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  align-items: start;
}

.template-selector-rail {
  position: -webkit-sticky;
  position: sticky;
  top: 18px;
}

.template-selector-list {
  gap: 10px;
  display: grid;
}

.template-list-button {
  text-align: left;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  width: 100%;
  color: var(--text);
  background: rgba(14, 22, 31, .72);
  gap: 6px;
  padding: 14px;
  transition: transform .18s, border-color .18s, background .18s;
  display: grid;
}

.template-list-button:hover, .template-list-button.is-active {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .05);
  transform: translateY(-1px);
}

.template-list-heading {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}

.template-header-copy {
  max-width: 76ch;
}

.template-overview-summary-grid {
  margin-bottom: 16px;
}

.template-overview-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.template-overview-card {
  flex-direction: column;
  align-items: stretch;
}

.template-overview-card-main {
  gap: 12px;
  display: grid;
}

.template-overview-header {
  grid-template-columns: 52px 1fr;
  align-items: start;
  gap: 12px;
  display: grid;
}

.template-overview-header h3 {
  margin: 0;
  font-size: 1.12rem;
}

.template-card-image {
  object-fit: cover;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  width: 52px;
  height: 52px;
}

.template-card-image-placeholder {
  color: var(--fg);
  justify-content: center;
  align-items: center;
  font-size: .9rem;
  font-weight: 700;
  display: flex;
}

.template-overview-guidance {
  color: var(--text);
  margin: 0;
  line-height: 1.55;
}

.template-overview-meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.template-overview-actions {
  justify-content: flex-end;
  margin-top: 14px;
}

.template-panel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.template-inline-checkbox {
  align-items: center;
  gap: 8px;
  display: flex;
}

.template-warning-list {
  color: var(--muted);
  margin: 0;
  padding-left: 18px;
}

.template-feedback-success {
  color: var(--accent-strong);
}

.template-featured-main h3, .template-store-heading h3 {
  margin: 0;
}

.template-marketplace-featured-section {
  gap: 14px;
  display: grid;
}

.template-marketplace-section-heading {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.template-marketplace-summary-grid {
  margin-bottom: 16px;
}

.template-view-filter-group {
  min-width: 170px;
}

.template-view-toggle {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 4px;
  display: inline-flex;
}

.template-view-toggle-button {
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: .88rem;
  font-weight: 600;
  transition: background .16s, color .16s, transform .16s;
}

.template-view-toggle-button:hover {
  color: var(--text);
}

.template-view-toggle-button.is-active {
  color: var(--text);
  background: rgba(126, 183, 255, .18);
  box-shadow: inset 0 0 0 1px rgba(126, 183, 255, .2);
}

.template-marketplace-featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  display: grid;
}

.template-featured-card {
  background: linear-gradient(160deg, rgba(14, 22, 31, .96), rgba(21, 35, 49, .9));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px;
  gap: 18px;
  min-height: 240px;
  padding: 22px;
  display: grid;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
}

.template-featured-card-1 {
  background: radial-gradient(circle at 0 0, rgba(85, 166, 255, .28), rgba(0, 0, 0, 0) 34%), linear-gradient(160deg, rgba(14, 22, 31, .98), rgba(19, 34, 54, .92));
}

.template-featured-card-2 {
  background: radial-gradient(circle at 100% 0, rgba(71, 198, 167, .24), rgba(0, 0, 0, 0) 34%), linear-gradient(160deg, rgba(14, 22, 31, .98), rgba(16, 41, 40, .92));
}

.template-featured-card-3 {
  background: radial-gradient(circle at 0 100%, rgba(255, 176, 94, .22), rgba(0, 0, 0, 0) 30%), linear-gradient(160deg, rgba(14, 22, 31, .98), rgba(45, 31, 24, .92));
}

.template-featured-main {
  align-content: start;
  gap: 10px;
  display: grid;
}

.template-featured-main p, .template-store-description {
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

.template-featured-footer, .template-store-meta {
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: .86rem;
  display: flex;
}

.template-store-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  display: grid;
}

.template-store-list {
  gap: 14px;
  display: grid;
}

.template-store-card {
  background: linear-gradient(rgba(255, 255, 255, .024), rgba(0, 0, 0, 0) 40%), rgba(11, 17, 25, .96);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  padding: 18px;
  transition: transform .18s, border-color .18s;
  display: flex;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .16);
}

.template-store-card-link {
  color: inherit;
  flex-direction: column;
  flex: auto;
  gap: 16px;
  display: flex;
}

.template-store-card:hover {
  border-color: rgba(130, 182, 255, .28);
  transform: translateY(-2px);
}

.template-store-card-top {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 14px;
  display: grid;
}

.template-store-list-row {
  background: linear-gradient(rgba(255, 255, 255, .024), rgba(0, 0, 0, 0) 40%), rgba(11, 17, 25, .96);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 16px;
  padding: 18px 20px;
  transition: transform .18s, border-color .18s;
  display: grid;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .16);
}

.template-store-list-row:hover {
  border-color: rgba(130, 182, 255, .28);
  transform: translateY(-2px);
}

.template-store-list-link {
  min-width: 0;
  color: inherit;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  display: grid;
}

.template-store-list-icon {
  object-fit: cover;
  border-radius: 999px;
  width: 72px;
  height: 72px;
}

.template-store-list-main, .template-store-list-heading {
  gap: 10px;
  min-width: 0;
  display: grid;
}

.template-store-list-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.template-store-list-heading h3, .template-store-list-heading p {
  margin: 0;
}

.template-store-list-heading p {
  color: var(--muted);
}

.template-store-list-pills {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  display: flex;
}

.template-store-icon {
  object-fit: cover;
  width: 96px;
  height: 96px;
  box-shadow: none;
  letter-spacing: .08em;
  background: none;
  border: none;
  border-radius: 999px;
  place-items: center;
  font-size: .86rem;
  font-weight: 700;
  display: grid;
}

.template-store-heading {
  gap: 8px;
  display: grid;
}

.template-store-heading p {
  color: var(--muted);
  margin: 0;
}

.template-store-badges, .template-store-actions {
  flex-wrap: wrap;
  gap: 10px;
  display: flex;
}

.template-store-actions {
  justify-content: flex-end;
  align-items: stretch;
  margin-top: auto;
}

.template-store-list-actions {
  align-self: end;
}

.template-store-action-button {
  box-sizing: border-box;
  white-space: nowrap;
  justify-content: center;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  line-height: 1;
  display: inline-flex;
}

.template-store-actions .template-store-action-button {
  flex: none;
}

.proposal-item, .activity-item {
  border-radius: var(--radius-sm);
  padding: 14px;
}

.proposal-main small {
  color: var(--muted);
}

.simple-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.simple-list li {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  display: flex;
}

.simple-list li:last-child {
  border-bottom: 0;
}

.summary-list-link {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  display: flex;
}

.summary-list-link:last-child {
  border-bottom: 0;
}

.summary-list-link span {
  color: var(--muted);
}

.status-pill {
  border: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: .1em;
  border-radius: 999px;
  align-items: center;
  padding: 6px 10px;
  font-size: .8rem;
  display: inline-flex;
}

.status-pill-neutral {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
}

.status-pill-info {
  color: var(--info);
  background: rgba(126, 183, 255, .1);
  border-color: rgba(126, 183, 255, .2);
}

.status-pill-success {
  color: var(--accent-strong);
  background: rgba(110, 208, 184, .1);
  border-color: rgba(110, 208, 184, .24);
}

.status-pill-warning {
  color: var(--warning);
  background: rgba(240, 195, 110, .1);
  border-color: rgba(240, 195, 110, .22);
}

.status-pill-danger {
  color: var(--danger);
  background: rgba(249, 119, 119, .1);
  border-color: rgba(249, 119, 119, .22);
}

.primary-button, .secondary-button, .danger-button, .success-button, .ghost-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  border-radius: 14px;
  padding: 11px 14px;
  transition: transform .18s, border-color .18s;
}

.primary-button {
  background: linear-gradient(rgba(110, 208, 184, .18), rgba(57, 139, 118, .24));
  border-color: rgba(110, 208, 184, .28);
}

.danger-button {
  background: linear-gradient(rgba(249, 119, 119, .16), rgba(145, 58, 58, .25));
  border-color: rgba(249, 119, 119, .26);
}

.success-button {
  color: var(--accent-strong);
  background: linear-gradient(rgba(110, 208, 184, .22), rgba(44, 122, 97, .3));
  border-color: rgba(110, 208, 184, .34);
}

.ghost-button {
  background: none;
}

.primary-button:hover, .secondary-button:hover, .danger-button:hover, .success-button:hover, .ghost-button:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.primary-cta-button {
  padding: 12px 20px;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(8, 15, 25, .35);
}

.raw-output summary {
  cursor: pointer;
  color: var(--muted);
}

.raw-output pre {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  white-space: pre-wrap;
  background: rgba(9, 13, 18, .96);
  margin: 12px 0 0;
  padding: 14px;
  overflow: auto;
}

.error-copy {
  color: var(--danger);
}

.modal-backdrop {
  z-index: 9999;
  isolation: isolate;
  background: rgba(5, 8, 12, .76);
  place-items: center;
  padding: 20px;
  display: grid;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.modal-card {
  width: min(860px, 100%);
  max-height: calc(100dvh - 40px);
  padding: 22px;
  overflow-y: auto;
}

.form-stack label {
  gap: 8px;
  display: grid;
}

.project-combobox {
  display: inline-block;
  position: relative;
}

.project-combobox-trigger {
  all: unset;
  cursor: pointer;
  font-size: inherit;
  color: var(--accent);
  border-bottom: 1px dashed var(--accent);
  align-items: center;
  padding-bottom: 1px;
  font-weight: 700;
  line-height: 1.3;
  display: inline-flex;
}

.project-combobox-trigger-error {
  border-bottom-color: var(--danger);
  color: var(--danger);
}

.field-error {
  color: var(--danger);
  margin: 2px 0 0;
  font-size: .75rem;
  line-height: 1.3;
}

.project-combobox-dropdown {
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  z-index: 50;
  min-width: 200px;
  box-shadow: var(--shadow);
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  overflow: hidden;
}

.project-combobox-search {
  border: none;
  border-bottom: 1px solid var(--line);
  width: 100%;
  color: var(--text);
  background: none;
  outline: none;
  padding: 8px 12px;
  font-size: .85rem;
  display: block;
}

.project-combobox-list {
  max-height: 200px;
  overflow-y: auto;
}

.project-combobox-trigger-content, .project-combobox-option {
  align-items: center;
  gap: .84rem;
  display: flex;
}

.project-combobox-identity {
  flex-wrap: nowrap;
  align-items: center;
  gap: .84rem;
  min-width: 0;
  display: inline-flex;
}

.project-combobox-trigger-content {
  white-space: nowrap;
  min-width: 0;
}

.project-combobox-label {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  line-height: 1.2;
  display: block;
  overflow: hidden;
}

.project-combobox-icon, .project-combobox-icon-placeholder {
  flex-shrink: 0;
  align-self: center;
  width: 22px;
  height: 22px;
}

.project-combobox-icon {
  display: block;
}

.project-combobox-icon-placeholder {
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.project-combobox-option {
  all: unset;
  cursor: pointer;
  width: 100%;
  color: var(--text);
  box-sizing: border-box;
  padding: 9px 14px;
  font-size: .88rem;
  transition: background .1s;
}

.project-combobox-option:hover {
  background: rgba(255, 255, 255, .07);
}

.project-combobox-option.selected {
  color: var(--accent);
}

.project-combobox-empty {
  color: var(--muted);
  margin: 0;
  padding: 10px 14px;
  font-size: .85rem;
}

.agent-select-combobox {
  position: relative;
}

.agent-select-trigger {
  all: unset;
  box-sizing: border-box;
  background: var(--bg-input, var(--bg-elevated));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  width: 100%;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  gap: .6rem;
  padding: .45rem .65rem;
  font-size: .9rem;
  transition: border-color .1s;
  display: flex;
}

.agent-select-trigger:hover {
  border-color: var(--accent);
}

.agent-select-trigger--disabled {
  cursor: default;
  color: var(--muted);
  pointer-events: none;
}

.agent-select-icon {
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

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

.agent-select-dropdown {
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  z-index: 50;
  box-shadow: var(--shadow);
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  overflow: hidden;
}

.agent-select-option {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  width: 100%;
  color: var(--text);
  align-items: center;
  gap: .6rem;
  padding: 8px 12px;
  font-size: .88rem;
  transition: background .1s;
  display: flex;
}

.agent-select-option:hover {
  background: rgba(255, 255, 255, .07);
}

.agent-select-option.selected {
  color: var(--accent);
}

.form-field {
  flex-direction: column;
  gap: .3rem;
  display: flex;
}

.form-label {
  color: var(--text);
  font-size: .85rem;
  font-weight: 500;
}

.collapsible-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.collapsible-section summary {
  cursor: pointer;
  color: var(--muted);
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  font-size: .88rem;
  list-style: none;
}

.collapsible-section summary::-webkit-details-marker {
  display: none;
}

.collapsible-section summary:before {
  content: "▶ ";
  opacity: .6;
  font-size: .7em;
}

.collapsible-section[open] summary:before {
  content: "▼ ";
}

.execute-immediately-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(110, 208, 184, .04);
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 12px 16px;
  display: flex;
}

.execute-immediately-label {
  color: var(--text);
  font-size: .92rem;
  font-weight: 600;
}

.toggle-switch {
  cursor: pointer;
  flex-shrink: 0;
  align-items: center;
  display: inline-flex;
  position: relative;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-track {
  background: var(--line-strong);
  border-radius: 12px;
  width: 44px;
  height: 24px;
  transition: background .18s;
  display: block;
  position: relative;
}

.toggle-switch input:checked + .toggle-track {
  background: var(--accent);
}

.toggle-thumb {
  background: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  transition: transform .18s;
  position: absolute;
  top: 3px;
  left: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}

.toggle-switch input:checked + .toggle-track .toggle-thumb {
  transform: translateX(20px);
}

.form-stack .helper-copy {
  color: var(--muted);
  font-size: .74rem;
}

.form-stack .helper-copy code {
  font-family: var(--font-mono);
  color: inherit;
}

.form-stack input, .form-stack textarea, .form-stack select {
  border: 1px solid var(--line);
  width: 100%;
  color: var(--text);
  background: rgba(10, 16, 23, .92);
  border-radius: 14px;
  padding: 12px 14px;
}

.form-stack select[multiple] {
  min-height: 140px;
}

.activity-info {
  border-color: rgba(126, 183, 255, .18);
}

.activity-warn {
  border-color: rgba(240, 195, 110, .18);
}

.activity-error {
  border-color: rgba(249, 119, 119, .18);
}

.artifact-link {
  cursor: pointer;
  color: var(--accent);
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
}

.artifact-link:hover {
  -webkit-text-decoration-style: solid;
  text-decoration-style: solid;
}

.next-steps-list {
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.next-step-item {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 0;
  display: flex;
}

.next-step-item:last-child {
  border-bottom: 0;
}

.next-step-item span {
  flex: 1;
  font-size: .85rem;
}

.next-step-btn {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 4px 10px !important;
  font-size: .75rem !important;
}

.file-content-preview {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  white-space: pre;
  font-family: var(--font-mono);
  background: rgba(9, 13, 18, .96);
  max-height: 60vh;
  margin: 12px 0 0;
  padding: 14px;
  font-size: .78rem;
  line-height: 1.5;
  overflow: auto;
}

.office-preview-modal {
  flex-direction: column;
  width: min(92vw, 1100px);
  max-height: 92vh;
  display: flex;
}

.office-preview-frame {
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  background: #fff;
  flex: 1;
  width: 100%;
  min-height: 560px;
}

.integrated-browser-panel {
  flex-direction: column;
  min-height: calc(100vh - 220px);
  display: flex;
}

.integrated-browser-frame {
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  background: #fff;
  flex: 1;
  width: 100%;
  min-height: 72vh;
}

.card-actions {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  display: flex;
}

.summary-list-meta {
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  display: flex;
}

.unread-dot {
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  display: inline-block;
}

tr:has(.unread-dot) {
  background: rgba(110, 208, 184, .04);
}

.task-menu-cell {
  text-align: right;
  vertical-align: middle;
  width: 1%;
  position: relative;
  padding: 10px 12px !important;
}

.task-menu-trigger {
  cursor: pointer;
  letter-spacing: 0;
  width: 28px;
  height: 28px;
  color: var(--muted);
  font-size: 1.1rem;
  font: inherit;
  vertical-align: middle;
  background: none;
  border: 0;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  transition: background .12s, color .12s;
  display: inline-flex;
}

.task-menu-trigger:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, .08);
}

.task-menu-dropdown {
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  z-index: 20;
  flex-direction: column;
  min-width: 120px;
  display: flex;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  overflow: hidden;
}

.column-picker-dropdown {
  min-width: 140px;
  padding: 4px 0;
  top: calc(100% + 6px);
  left: 0;
  right: auto;
}

.column-picker-option {
  cursor: pointer;
  color: var(--text);
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: .85rem;
  display: flex;
}

.task-menu-dropdown button {
  all: unset;
  cursor: pointer;
  color: var(--text);
  padding: 9px 14px;
  font-size: .82rem;
  transition: background .12s;
  display: block;
}

.task-menu-dropdown button:hover {
  background: rgba(255, 255, 255, .07);
}

.task-menu-dropdown button.danger {
  color: var(--danger);
}

.task-menu-dropdown button:disabled {
  opacity: .4;
  cursor: default;
}

.task-menu-cell {
  white-space: nowrap;
}

.task-row-actions {
  vertical-align: middle;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin-right: 8px;
  display: inline-flex;
}

.task-review-button, .task-quick-complete {
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  vertical-align: middle;
  background: rgba(110, 208, 184, .1);
  border: 1px solid rgba(110, 208, 184, .24);
  border-radius: 999px;
  justify-content: center;
  align-self: center;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  font-size: .76rem;
  line-height: 1.2;
  transition: background .12s, border-color .12s, color .12s;
  display: inline-flex;
}

.task-review-button {
  color: #cfe3ff;
  background: rgba(59, 130, 246, .1);
  border-color: rgba(126, 183, 255, .22);
}

.task-review-button:hover:not(:disabled), .task-quick-complete:hover:not(:disabled) {
  background: rgba(110, 208, 184, .16);
  border-color: rgba(110, 208, 184, .4);
}

.task-review-button:hover:not(:disabled) {
  background: rgba(59, 130, 246, .16);
  border-color: rgba(126, 183, 255, .4);
}

.task-review-button:disabled, .task-quick-complete:disabled {
  opacity: .45;
  cursor: default;
}

.task-review-row-open {
  background: rgba(126, 183, 255, .05);
}

.task-review-panel-row td {
  background: rgba(9, 14, 24, .72);
  padding-top: 0;
}

.settings-stack {
  gap: 24px;
  display: grid;
}

.settings-panel {
  overflow: hidden;
}

.settings-panel-header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
  padding-bottom: 20px;
}

.settings-panel-heading {
  gap: 6px;
  display: grid;
}

.settings-category {
  gap: 18px;
  display: grid;
}

.settings-category + .settings-category {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.settings-category-heading {
  gap: 8px;
  display: grid;
}

.settings-category-heading h3 {
  margin: 6px 0 0;
  font-size: 1.1rem;
}

.settings-category-grid, .settings-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}

.settings-field, .settings-option {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  border-radius: 14px;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 18px;
  display: flex;
}

.settings-field {
  flex-direction: column;
  justify-content: flex-start;
}

.settings-field-label, .settings-choice-title {
  color: var(--text);
  font-size: .95rem;
  font-weight: 600;
}

.settings-field-copy, .settings-choice-copy, .settings-footer-copy {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}

.settings-field input, .settings-field select {
  border: 1px solid var(--line);
  width: 100%;
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  border-radius: 12px;
  padding: 10px 12px;
}

.settings-field input:focus, .settings-field select:focus {
  border-color: var(--line-strong);
  outline: none;
}

.settings-option-copy {
  gap: 6px;
  display: grid;
}

.settings-option-toggle {
  min-height: 100%;
}

.settings-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.settings-choice {
  all: unset;
  border: 1px solid var(--line);
  cursor: pointer;
  background: rgba(255, 255, 255, .02);
  border-radius: 14px;
  gap: 8px;
  padding: 18px;
  transition: border-color .12s, background .12s, transform .12s;
  display: grid;
}

.settings-choice:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .04);
  transform: translateY(-1px);
}

.settings-choice-active {
  background: linear-gradient(135deg, rgba(110, 208, 184, .12), rgba(110, 208, 184, .04));
  border-color: rgba(110, 208, 184, .55);
  box-shadow: inset 0 0 0 1px rgba(110, 208, 184, .14);
}

.admin-stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  display: grid;
}

.admin-filter-bar {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  display: grid;
}

.admin-stat-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  border-radius: 16px;
  gap: 8px;
  padding: 18px;
  display: grid;
}

.admin-stat-card strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.admin-create-grid, .admin-user-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}

.settings-field-wide {
  grid-column: span 3;
}

.admin-create-footer, .admin-user-card-footer {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  display: flex;
}

.admin-user-list {
  gap: 16px;
  display: grid;
}

.admin-audit-list {
  gap: 12px;
  margin-top: 18px;
  display: grid;
}

.admin-audit-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  border-radius: 16px;
  gap: 10px;
  padding: 16px 18px;
  display: grid;
}

.admin-audit-topline, .admin-audit-meta-row {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.admin-audit-meta, .admin-audit-copy, .admin-audit-meta-row {
  color: var(--muted);
  font-size: .9rem;
}

.admin-audit-copy {
  margin: 0;
}

.admin-audit-meta-row {
  flex-wrap: wrap;
}

.admin-user-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  gap: 18px;
  padding: 20px;
  display: grid;
}

.admin-user-card-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  display: flex;
}

.admin-user-card-title {
  gap: 4px;
  display: grid;
}

.admin-user-card-title strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.admin-user-card-meta, .admin-user-card-message {
  color: var(--muted);
  margin: 0;
  font-size: .9rem;
}

.admin-user-card-badges {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  display: flex;
}

.admin-role-pill, .admin-self-pill {
  border: 1px solid var(--line);
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  font-size: .72rem;
  display: inline-flex;
}

.admin-role-pill-admin {
  color: var(--accent-strong);
  background: rgba(110, 208, 184, .12);
  border-color: rgba(110, 208, 184, .45);
}

.admin-role-pill-user {
  color: var(--info);
  background: rgba(126, 183, 255, .12);
  border-color: rgba(126, 183, 255, .34);
}

.admin-self-pill {
  color: var(--muted);
}

.settings-footer {
  border-top: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  display: flex;
}

.settings-footer-actions {
  align-items: center;
}

.settings-save-message {
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 1180px) {
  .dashboard-shell, .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    height: auto;
    position: static;
  }

  .task-filter-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: grid;
  }

  .task-filter-toolbar .search-filter {
    grid-column: span 2;
  }

  .task-filter-pair {
    grid-column: span 2;
    justify-content: flex-start;
  }

  .task-filter-group, .task-filter-group.status-filter, .task-filter-group.priority-filter, .task-filter-group.project-filter-group, .task-filter-group.unread-filter-group, .task-filter-group.columns-filter-group, .task-filter-group.template-view-filter-group {
    flex: initial;
  }

  .settings-category-grid, .settings-choice-grid, .admin-filter-bar, .admin-stats-grid, .admin-create-grid, .admin-user-card-grid {
    grid-template-columns: 1fr;
  }

  .settings-field-wide {
    grid-column: span 1;
  }
}

@media (max-width: 760px) {
  .main-shell {
    padding: 18px;
  }

  .template-detail-layout, .template-panel-grid, .template-overview-grid, .template-overview-meta-grid, .template-marketplace-featured, .detail-grid, .output-grid, .session-grid, .form-grid {
    grid-template-columns: 1fr;
  }

  .template-selector-rail {
    position: static;
  }

  .topbar, .panel-header, .project-card-top, .proposal-item, .button-row, .settings-footer {
    flex-direction: column;
  }

  .topbar-title-row, .topbar-title-stack, .topbar-title-group {
    width: 100%;
  }

  .topbar-title-group {
    align-items: flex-start;
  }

  .template-store-card-top, .template-store-list-link, .template-store-list-row, .template-store-list-heading {
    grid-template-columns: 1fr;
  }

  .template-store-list-pills, .template-store-list-actions {
    justify-content: flex-start;
  }

  .task-header-controls, .task-filter-toolbar .search-filter {
    width: 100%;
  }

  .task-filter-toolbar {
    grid-template-columns: 1fr;
  }

  .task-filter-toolbar .search-filter {
    grid-column: auto;
  }

  .task-filter-pair {
    flex-wrap: wrap;
    grid-column: auto;
  }
}

.file-explorer {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  grid-template-columns: 280px 1fr;
  height: calc(100vh - 200px);
  min-height: 480px;
  display: grid;
  overflow: hidden;
}

.file-tree-panel {
  border-right: 1px solid var(--line);
  flex-direction: column;
  min-width: 0;
  display: flex;
  overflow: hidden;
}

.file-tree-header {
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  display: flex;
}

.file-tree-search {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  min-width: 0;
  color: var(--text);
  border-radius: 8px;
  outline: none;
  flex: 1;
  padding: 5px 9px;
  font-size: .78rem;
}

.file-tree-search:focus {
  border-color: var(--line-strong);
}

.file-tree-list {
  flex: 1;
  padding: 4px 0;
  overflow-y: auto;
}

.file-tree-row {
  cursor: pointer;
  color: var(--text);
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  white-space: nowrap;
  border-radius: 0;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  font-size: .8rem;
  display: flex;
  overflow: hidden;
}

.file-tree-row:hover {
  background: rgba(164, 189, 215, .07);
}

.file-tree-row.active {
  color: var(--accent-strong);
  background: rgba(110, 208, 184, .1);
}

.file-tree-chevron {
  width: 10px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  padding: 0;
  font-size: .7rem;
  display: inline-flex;
}

.file-tree-chevron:disabled {
  cursor: default;
}

.file-tree-name {
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.file-tree-size {
  color: var(--muted);
  flex-shrink: 0;
  font-size: .68rem;
}

.ext-badge {
  letter-spacing: .03em;
  text-transform: lowercase;
  opacity: .85;
  border-radius: 4px;
  flex-shrink: 0;
  padding: 1px 5px;
  font-size: .62rem;
  font-weight: 600;
}

.ext-ts {
  color: #7eb7ff;
  background: rgba(49, 120, 198, .25);
}

.ext-js {
  color: #f0c36e;
  background: rgba(240, 195, 110, .2);
}

.ext-py {
  color: #5fcf83;
  background: rgba(55, 168, 103, .2);
}

.ext-go {
  color: #4ec9e0;
  background: rgba(0, 173, 216, .2);
}

.ext-rs {
  color: #e08050;
  background: rgba(220, 100, 50, .2);
}

.ext-json {
  color: var(--muted);
  background: rgba(164, 189, 215, .1);
}

.ext-md {
  color: #b0c8e0;
  background: rgba(164, 189, 215, .12);
}

.ext-txt {
  color: var(--muted);
  background: rgba(164, 189, 215, .08);
}

.ext-css {
  color: #c084fc;
  background: rgba(150, 90, 210, .2);
}

.ext-html {
  color: #f07060;
  background: rgba(220, 80, 60, .2);
}

.ext-sh {
  color: #95a8bb;
  background: rgba(164, 189, 215, .12);
}

.ext-env {
  color: #c8a04a;
  background: rgba(240, 195, 110, .15);
}

.ext-sql {
  color: #7eb7ff;
  background: rgba(49, 120, 198, .18);
}

.ext-other {
  color: var(--muted);
  background: rgba(164, 189, 215, .08);
}

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

.file-pane-toolbar {
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  display: flex;
}

.file-pane-path {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .78rem;
  font-family: var(--font-mono, monospace);
  flex: 1;
  overflow: hidden;
}

.file-pane-actions {
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  display: flex;
}

.file-pane-body {
  flex: 1;
  position: relative;
  overflow: auto;
}

.file-pane-status {
  height: 100%;
  color: var(--muted);
  justify-content: center;
  align-items: center;
  font-size: .85rem;
  display: flex;
}

.file-view-pre {
  color: var(--text);
  white-space: pre;
  -moz-tab-size: 2;
  tab-size: 2;
  margin: 0;
  padding: 14px 18px;
  font-family: IBM Plex Mono, Fira Code, Cascadia Code, monospace;
  font-size: .8rem;
  line-height: 1.6;
}

.file-edit-area {
  width: 100%;
  height: 100%;
  color: var(--text);
  resize: none;
  -moz-tab-size: 2;
  tab-size: 2;
  caret-color: var(--accent);
  background: none;
  border: none;
  outline: none;
  padding: 14px 18px;
  font-family: IBM Plex Mono, Fira Code, Cascadia Code, monospace;
  font-size: .8rem;
  line-height: 1.6;
}

.file-truncated-notice {
  color: var(--warning);
  background: rgba(240, 195, 110, .1);
  border-bottom: 1px solid rgba(240, 195, 110, .2);
  padding: 6px 16px;
  font-size: .75rem;
}

.task-feedback-widget {
  z-index: 70;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  display: flex;
  position: fixed;
  bottom: 24px;
  right: 24px;
}

.task-feedback-widget.inline {
  z-index: auto;
  align-items: stretch;
  width: 100%;
  padding: 8px 0 2px;
  position: static;
  bottom: auto;
  right: auto;
}

.task-feedback-launcher {
  box-shadow: none;
  cursor: pointer;
  background: none;
  border: none;
  align-items: center;
  gap: 12px;
  padding: 0;
  display: inline-flex;
}

.task-feedback-panel strong {
  display: block;
}

.task-feedback-panel small, .task-feedback-message-meta span {
  color: rgba(226, 236, 255, .76);
}

.task-feedback-launcher-bubble {
  color: #f5f8ff;
  white-space: nowrap;
  background: radial-gradient(circle at 0 0, rgba(71, 157, 255, .24), rgba(0, 0, 0, 0) 50%), linear-gradient(145deg, rgba(15, 23, 42, .96), rgba(20, 33, 61, .94));
  border: 1px solid rgba(132, 201, 255, .28);
  border-radius: 999px;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: .86rem;
  display: inline-flex;
  position: relative;
  box-shadow: 0 16px 42px rgba(8, 13, 27, .35);
}

.task-feedback-launcher-bubble:after {
  content: "";
  background: rgba(19, 31, 55, .96);
  border-top: 1px solid rgba(132, 201, 255, .28);
  border-right: 1px solid rgba(132, 201, 255, .28);
  width: 12px;
  height: 12px;
  position: absolute;
  top: 50%;
  right: -7px;
  transform: translateY(-50%)rotate(45deg);
}

.task-feedback-launcher-avatar, .task-feedback-agent-avatar {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  display: inline-flex;
  overflow: hidden;
}

.task-feedback-launcher-avatar {
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .2), rgba(0, 0, 0, 0) 45%), linear-gradient(160deg, #0f172a, rgba(24, 41, 72, .96));
  border-width: 2px;
  width: 58px;
  height: 58px;
  box-shadow: 0 18px 42px rgba(8, 13, 27, .42);
}

.task-feedback-launcher-avatar img, .task-feedback-agent-avatar img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.task-feedback-panel {
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  color: #f5f8ff;
  background: radial-gradient(circle at 100% 0, rgba(90, 161, 255, .22), rgba(0, 0, 0, 0) 32%), linear-gradient(rgba(9, 13, 23, .97), rgba(16, 24, 39, .96));
  border: 1px solid rgba(132, 201, 255, .28);
  border-radius: 24px;
  flex-direction: column;
  gap: 14px;
  width: min(420px, 100vw - 32px);
  max-height: min(72vh, 760px);
  padding: 16px;
  display: flex;
  box-shadow: 0 28px 64px rgba(4, 9, 19, .5);
}

.task-feedback-widget.inline .task-feedback-panel {
  border-radius: 18px;
  width: 100%;
  max-height: none;
  box-shadow: 0 20px 44px rgba(4, 9, 19, .32);
}

.task-feedback-panel-header, .task-feedback-agent, .task-feedback-actions {
  align-items: center;
  display: flex;
}

.task-feedback-panel-header, .task-feedback-actions {
  justify-content: space-between;
  gap: 10px;
}

.task-feedback-agent {
  gap: 12px;
}

.task-feedback-thread {
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
  max-height: 320px;
  padding-right: 4px;
  display: flex;
  overflow: auto;
}

.task-feedback-message, .task-feedback-empty {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  padding: 12px 14px;
}

.task-feedback-message.system, .task-feedback-empty {
  background: rgba(255, 255, 255, .06);
}

.task-feedback-message.user {
  background: linear-gradient(160deg, rgba(56, 132, 255, .34), rgba(89, 87, 255, .24));
  align-self: flex-end;
}

.task-feedback-message-meta {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: .75rem;
  display: flex;
}

.task-feedback-message p, .task-feedback-empty p {
  color: #eef4ff;
  margin: 0;
  line-height: 1.55;
}

.task-feedback-controls {
  flex-direction: column;
  gap: 10px;
  display: flex;
}

.task-feedback-controls label {
  color: rgba(226, 236, 255, .82);
  flex-direction: column;
  gap: 6px;
  font-size: .8rem;
  display: flex;
}

.task-feedback-controls select, .task-feedback-controls textarea {
  color: #f5f8ff;
  background: rgba(10, 16, 28, .88);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  width: 100%;
  padding: 10px 12px;
}

.task-feedback-controls textarea {
  resize: vertical;
  min-height: 110px;
}

.task-feedback-actions .primary-button, .task-feedback-actions .success-button {
  flex: 1;
}

/*# sourceMappingURL=app_globals_71f961d1.css.map*/