:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --workspace: #171717;
  --rail: #202020;
  --floating: #292929;
  --surface: #202020;
  --surface-2: #343434;
  --surface-3: #404040;
  --border: #3f3f3f;
  --border-soft: #2c2c2c;
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-tertiary: rgba(255, 255, 255, 0.5);
  --text-dim: rgba(255, 255, 255, 0.38);
  --muted: var(--text-secondary);
  --faint: var(--text-tertiary);
  --accent: #ededed;
  --accent-2: #c7c7c7;
  --danger: #ff8585;
  --warning: #d6b45f;
  --status-ok: #0169cc;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: var(--workspace);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 430;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.app-shell {
  --artifact-reserve: 0px;
  --composer-left: max(360px, calc(50vw - 380px));
  --composer-width: min(760px, calc(100vw - 400px));
  width: 100vw;
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-columns: 320px minmax(420px, 1fr);
  position: relative;
  background: var(--workspace);
  overflow: hidden;
}

.control-panel,
.artifact-panel,
.work-panel {
  min-width: 0;
  min-height: 0;
}

.control-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 16px 10px;
  border-right: 0;
  background: var(--rail);
  box-shadow: inset -1px 0 rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(24px);
  overflow-y: auto;
}

.brand-block,
.artifact-header {
  flex: 0 0 auto;
}

.brand-block {
  padding: 4px 6px 12px;
}

.mobile-control-toggle {
  display: none;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.12;
}

h2 {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
}

h3 {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
}

.control-section {
  display: grid;
  gap: 8px;
}

.section-title,
.artifact-kicker,
.meta {
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}

.section-title {
  padding: 0 6px;
}

.connection-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
}

.connection-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.connection-row:hover {
  background: var(--surface);
}

.connection-label {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connection-meta,
.integration-state {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.integration-state.connected {
  color: var(--text);
}

.integration-state.warning {
  color: var(--danger);
}

.status-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: var(--text-dim);
}

.status-dot.alive {
  background: var(--status-ok);
}

.status-dot.error {
  background: var(--danger);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
}

.secondary-button[hidden] {
  display: none;
}

.capacity {
  --capacity-fill: var(--accent);
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 8px;
}

.capacity.warning {
  --capacity-fill: var(--warning);
}

.capacity.stale {
  opacity: 0.84;
}

.capacity.danger,
.capacity.unavailable {
  --capacity-fill: var(--danger);
}

.capacity-heading,
.capacity-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  color: var(--text-secondary);
  font-size: 12px;
}

.capacity-heading span:last-child {
  display: none;
}

.capacity-heading span:first-child {
  overflow: hidden;
  color: var(--text);
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capacity-bars {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.capacity-window {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.capacity-label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  white-space: nowrap;
}

.capacity-label span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.capacity-label span:last-child {
  color: var(--text-secondary);
  text-align: right;
}

.capacity-bar {
  display: block;
  width: 100%;
  height: 5px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--surface-3);
}

.capacity-bar::-webkit-progress-bar {
  border-radius: 999px;
  background: var(--surface-3);
}

.capacity-bar::-webkit-progress-value {
  border-radius: 999px;
  background: var(--capacity-fill);
}

.capacity-bar::-moz-progress-bar {
  border-radius: 999px;
  background: var(--capacity-fill);
}

.tool-list {
  display: grid;
  gap: 6px;
}

.tool-button {
  width: 100%;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}

.tool-button:hover,
.tool-button.active {
  border-color: transparent;
  background: var(--surface-2);
  color: var(--text);
}

.control-spacer {
  flex: 1 1 auto;
}

.settings-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: calc(100% - 18px);
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.settings-button:hover {
  background: rgba(255, 255, 255, 0.055);
}

.settings-icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.work-panel {
  display: grid;
  grid-column: 2;
  grid-template-rows: minmax(0, 1fr);
  margin-left: -14px;
  border-left: 1px solid var(--border);
  border-top-left-radius: 26px;
  border-bottom-left-radius: 26px;
  background: var(--workspace);
  overflow: hidden;
  z-index: 1;
}

.chat {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
}

.chat[hidden],
.login[hidden] {
  display: none;
}

.login {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 24px;
}

.login-form {
  display: grid;
  gap: 14px;
  width: min(420px, 100%);
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.login-error {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  font-size: 13px;
}

.messages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding: 56px 80px 140px;
  overscroll-behavior: contain;
  scroll-padding-bottom: 140px;
}

.app-shell.artifact-pinned .messages {
  padding-right: max(80px, calc(var(--artifact-reserve) + 24px));
}

.message {
  width: min(768px, 100%);
  padding: 8px 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-weight: 400;
  white-space: pre-wrap;
  line-height: 1.45;
}

.message.user {
  align-self: center;
  border-color: var(--border);
  background: var(--floating);
  padding: 14px 16px;
  border-radius: 18px;
}

.message.assistant {
  align-self: center;
}

.message.typing {
  width: fit-content;
  min-width: 88px;
}

.meta {
  margin-bottom: 6px;
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 18px;
}

.typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-2);
  opacity: 0.4;
  animation: typing-pulse 1.1s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.14s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes typing-pulse {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.composer {
  position: fixed;
  left: var(--composer-left);
  bottom: calc(22px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: var(--composer-width);
  margin: 0;
  padding: 12px 12px 12px 18px;
  border: 0;
  border-radius: 24px;
  background: var(--floating);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  transition: left 160ms ease, width 160ms ease;
  z-index: 2;
}

.app-shell.artifact-pinned .composer {
  transform: none;
}

input {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  padding: 0 13px;
  font: inherit;
}

input::placeholder {
  color: var(--text-tertiary);
}

input:focus {
  outline: 0;
}

button {
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #0a0a0a;
  padding: 0 16px;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
}

button:focus {
  outline: 0;
}

button:focus-visible {
  outline: 1px solid var(--accent-2);
  outline-offset: 2px;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.send-button {
  width: 44px;
  border-radius: 999px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

.jump-to-latest-shell {
  position: fixed;
  left: var(--composer-left);
  bottom: calc(128px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  width: var(--composer-width);
  pointer-events: none;
  transition: left 160ms ease, width 160ms ease;
  z-index: 4;
}

.jump-to-latest-shell[hidden] {
  display: none;
}

.jump-to-latest {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.68);
  color: var(--text-secondary);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  pointer-events: auto;
}

.jump-to-latest:hover {
  background: rgba(32, 32, 32, 0.9);
  color: var(--text);
}

.jump-to-latest::before,
.jump-to-latest::after {
  position: absolute;
  left: 50%;
  content: "";
}

.jump-to-latest::before {
  top: 17px;
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}

.jump-to-latest::after {
  top: 11px;
  width: 2px;
  height: 18px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
}

.artifact-panel {
  position: fixed;
  right: 20px;
  top: 78px;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 386px;
  max-height: calc(100dvh - 110px);
  margin: 0;
  padding: 22px 22px 20px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(41, 41, 41, 0.34);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  backdrop-filter: blur(22px) saturate(1.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  overflow-y: auto;
  z-index: 5;
}

.artifact-panel.is-pinned {
  background: rgba(41, 41, 41, 0.34);
}

.artifact-panel.is-positioned {
  right: auto;
}

.artifact-panel.is-collapsed {
  right: 18px;
  top: 18px;
  width: 48px;
  height: 48px;
  max-height: 48px;
  gap: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
}

.artifact-panel.is-collapsed .artifact-body,
.artifact-panel.is-collapsed .artifact-resize-handle {
  display: none;
}

.artifact-panel.is-collapsed .artifact-header {
  position: static;
  width: 100%;
  height: 100%;
  cursor: default;
  justify-content: center;
}

.artifact-panel.is-collapsed .artifact-header h2,
.artifact-panel.is-collapsed .panel-pin-button {
  display: none;
}

.artifact-panel.is-collapsed .artifact-header-actions {
  display: grid;
  place-items: center;
}

.artifact-panel.is-collapsed .panel-collapse-button {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--text-secondary);
}

.artifact-header {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  cursor: move;
  touch-action: none;
  user-select: none;
}

.artifact-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.artifact-header h2 {
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
}

.panel-collapse-button {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  position: relative;
}

.panel-pin-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
}

.panel-collapse-button:hover,
.panel-pin-button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.panel-pin-button[aria-pressed="true"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.095);
}

.panel-pin-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.panel-pin-button[aria-pressed="true"] .panel-pin-icon {
  fill: currentColor;
  stroke-width: 0;
}

.panel-collapse-button::before,
.panel-collapse-button::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.panel-collapse-button::after {
  display: none;
  transform: translate(-50%, -50%) rotate(90deg);
}

.artifact-panel.is-collapsed .panel-collapse-button::after {
  display: block;
}

.artifact-body {
  display: grid;
  gap: 16px;
  padding-top: 10px;
}

.workspace-section {
  display: grid;
  gap: 11px;
}

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

.progress-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.38;
}

.progress-copy {
  display: grid;
  gap: 3px;
}

.progress-copy p {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 1.35;
}

.progress-dot {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1px solid var(--faint);
  border-radius: 999px;
  position: relative;
}

.progress-dot.done {
  border-color: var(--muted);
  background: var(--muted);
}

.progress-dot.done::after {
  position: absolute;
  left: 5px;
  top: 3px;
  width: 5px;
  height: 8px;
  border: solid var(--floating);
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}

.progress-dot.active {
  border-color: var(--text-secondary);
}

.progress-dot.active::after {
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: var(--text-secondary);
  content: "";
}

.progress-dot.blocked {
  border-color: var(--danger);
}

.panel-divider {
  height: 1px;
  background: var(--border);
}

.artifact-list,
.scheduled-list {
  display: grid;
  gap: 12px;
}

.panel-section-title {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.panel-row {
  display: grid;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
}

.panel-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.empty-panel-row {
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 1.35;
}

.artifact-resize-handle {
  position: absolute;
  left: -12px;
  top: 20px;
  bottom: 20px;
  width: 24px;
  border: 0;
  background: transparent;
  cursor: ew-resize;
  touch-action: none;
}

.artifact-resize-handle::after {
  position: absolute;
  left: 11px;
  top: 50%;
  width: 2px;
  height: 54px;
  border-radius: 999px;
  background: var(--faint);
  content: "";
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 140ms ease;
}

.artifact-panel:hover .artifact-resize-handle::after,
.artifact-resize-handle:focus-visible::after {
  opacity: 0.48;
}

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

  .messages {
    align-items: flex-start;
    padding: 64px 372px 140px 48px;
  }

  .app-shell.artifact-pinned .messages {
    padding-right: max(320px, calc(var(--artifact-reserve) + 16px));
  }

  .message {
    width: min(440px, 100%);
  }

  .composer {
    width: var(--composer-width);
  }

  .jump-to-latest-shell {
    width: var(--composer-width);
  }

  .artifact-panel {
    width: 340px;
    right: 16px;
  }
}

@media (max-width: 720px) {
  body {
    overflow: hidden;
  }

  .app-shell {
    --composer-left: 14px;
    --composer-width: calc(100vw - 28px);
    display: block;
    grid-template-columns: 1fr;
  }

  .control-panel {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 20;
    display: grid;
    gap: 0;
    height: 58px;
    max-height: none;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
    border-radius: 0;
    background: rgba(32, 32, 32, 0.94);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.18);
    backdrop-filter: blur(24px) saturate(1.18);
    overflow: hidden;
  }

  .control-panel.is-mobile-open {
    height: auto;
    max-height: min(440px, calc(100dvh - 18px));
    padding-bottom: 12px;
    border-bottom-right-radius: 22px;
    border-bottom-left-radius: 22px;
    overflow-y: auto;
  }

  .brand-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    padding: 0 2px 0 4px;
  }

  .brand-block h1 {
    font-size: 18px;
  }

  .mobile-control-toggle {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
  }

  .mobile-control-toggle:hover {
    background: rgba(255, 255, 255, 0.055);
    color: var(--text);
  }

  .mobile-control-toggle span,
  .mobile-control-toggle::before,
  .mobile-control-toggle::after {
    width: 16px;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
    content: "";
    transition: transform 140ms ease, opacity 140ms ease;
  }

  .mobile-control-toggle::before,
  .mobile-control-toggle::after {
    position: absolute;
    left: 11px;
  }

  .mobile-control-toggle::before {
    top: 13px;
  }

  .mobile-control-toggle::after {
    bottom: 13px;
  }

  .mobile-control-toggle[aria-expanded="true"] span {
    opacity: 0;
  }

  .mobile-control-toggle[aria-expanded="true"]::before {
    transform: translateY(5px) rotate(45deg);
  }

  .mobile-control-toggle[aria-expanded="true"]::after {
    transform: translateY(-5px) rotate(-45deg);
  }

  .control-section,
  .settings-button {
    display: none;
  }

  .control-panel.is-mobile-open .control-section[aria-label="Connections"] {
    display: grid;
    gap: 6px;
    margin-top: 10px;
  }

  .control-panel.is-mobile-open .settings-button {
    display: inline-flex;
    width: 100%;
    margin-top: 8px;
  }

  .control-section[aria-label="Workspace tools"] {
    display: none;
  }

  .connection-row {
    min-height: 36px;
    padding: 6px 8px;
  }

  .connection-label {
    font-size: 12px;
  }

  .integration-state,
  .capacity-heading,
  .capacity-label {
    font-size: 11px;
  }

  .capacity-bars {
    gap: 6px;
  }

  .capacity-unavailable {
    display: none;
  }

  .tool-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tool-button {
    text-align: center;
  }

  .control-spacer {
    display: none;
  }

  .artifact-panel {
    position: fixed;
    top: 70px;
    right: 12px;
    bottom: auto;
    left: auto;
    z-index: 15;
    display: flex;
    width: min(360px, calc(100vw - 24px));
    max-height: calc(100dvh - 176px);
    height: auto;
    margin: 0;
    padding: 50px 18px 18px;
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .artifact-header {
    position: absolute;
    top: 9px;
    right: 9px;
    display: flex;
    cursor: default;
  }

  .artifact-resize-handle {
    display: none;
  }

  .panel-pin-button {
    display: none;
  }

  .panel-collapse-button {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.055);
  }

  .artifact-panel.is-collapsed {
    top: 70px;
    right: 12px;
    width: 46px;
    height: 46px;
    max-height: 46px;
    padding: 0;
    border-radius: 15px;
  }

  .artifact-panel.is-collapsed .artifact-header {
    position: static;
    width: 100%;
    height: 100%;
    justify-content: center;
  }

  .artifact-panel.is-collapsed .panel-collapse-button {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .artifact-body {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding-top: 0;
  }

  .workspace-section {
    width: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    gap: 8px;
  }

  .panel-section-title {
    font-size: 12px;
  }

  .panel-divider {
    display: none;
  }

  .progress-list,
  .scheduled-list,
  .artifact-list {
    display: grid;
    gap: 8px;
    min-width: 0;
  }

  .progress-item {
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 8px;
    font-size: 12px;
  }

  .progress-dot {
    width: 14px;
    height: 14px;
  }

  .progress-dot.done::after {
    left: 4px;
    top: 2px;
    width: 4px;
    height: 7px;
  }

  .panel-row p,
  .progress-copy p,
  .empty-panel-row {
    font-size: 11px;
  }

  .work-panel {
    height: 100dvh;
    margin-left: 0;
    padding-top: 58px;
    border-left: 0;
    border-top: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }

  .messages {
    align-items: stretch;
    padding: 66px 14px 132px;
    scroll-padding-bottom: 132px;
  }

  .jump-to-latest-shell {
    left: var(--composer-left);
    right: auto;
    bottom: calc(104px + env(safe-area-inset-bottom));
    width: var(--composer-width);
  }

  .message {
    width: 100%;
    font-size: 15px;
  }

  .message.user {
    width: fit-content;
    max-width: min(86%, 340px);
    align-self: flex-end;
  }

  .composer {
    grid-template-columns: minmax(0, 1fr) auto;
    position: fixed;
    left: var(--composer-left);
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: var(--composer-width);
    margin: 0;
    padding: 10px 10px 10px 14px;
    border-radius: 22px;
  }
}
