:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101418;
  color: #f7faf9;
}

/* The Studio workflow is intentionally staged; cloud actions stay out of the capture toolbar. */
.tool-domain-list.studio-domain-switch { display: block; }
.tool-domain-list.studio-domain-switch select {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px;
  color: inherit; background: #233a3e; border: 1px solid #526366;
}
.linked-studio {
  --studio-ink: #183c44;
  --studio-muted: #536b70;
  --studio-accent: #126b69;
  display: grid;
  gap: 16px;
  color: var(--studio-ink);
  padding: clamp(14px, 3vw, 24px);
  border-radius: 24px;
  background: linear-gradient(140deg, #e9f5ef 0%, #f7f3e8 50%, #eaf0f8 100%);
  min-width: 0;
}
.studio-hero { padding: 6px 2px 10px; }
.studio-hero h2 { font-family: Georgia, serif; font-size: clamp(1.65rem, 4vw, 2.35rem); line-height: 1.14; margin: 8px 0; }
.studio-hero p { color: var(--studio-muted); }
.studio-eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .14em; }
.studio-stage {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px;
  background: #ffffffd9;
  border: 1px solid #fff;
  border-radius: 18px;
  box-shadow: 0 5px 20px #1a3c4510;
  min-width: 0;
}
.studio-stage h3 { flex: 1 0 100%; margin: 0 0 2px; font-size: 1.05rem; }
.linked-studio .studio-button {
  border: 1px solid var(--studio-accent); border-radius: 12px;
  color: #fff; background: var(--studio-accent); padding: 11px 15px;
  font-weight: 600; text-decoration: none; display: inline-flex; align-items: center;
  min-height: 44px; justify-content: center; text-align: center;
}
.linked-studio .studio-button.secondary { background: #f2f8f7; color: var(--studio-accent); }
.linked-studio button:disabled { opacity: .48; cursor: not-allowed; }
.studio-stage input[type=file], .studio-stage select, .studio-stage textarea {
  min-width: 0; width: 100%; background: #f6f8f8; color: var(--studio-ink);
  border: 1px solid #c8d8d6; border-radius: 10px; padding: 12px; font: inherit;
}
.studio-stage textarea { resize: vertical; }
.studio-stage input[type=checkbox] { accent-color: var(--studio-accent); width: 19px; height: 19px; flex-shrink: 0; margin-top: 2px; }
.studio-check { display: flex; gap: 9px; width: 100%; font-size: .87rem; line-height: 1.5; align-items: flex-start; }
.studio-badge { color: #11635b; background: #e4f4ed; padding: 6px 10px; border-radius: 10px; font-size: .8rem; overflow-wrap: anywhere; }
.studio-footnote { flex: 1 0 100%; margin: 0; font-size: .8rem; line-height: 1.5; color: var(--studio-muted); }
.studio-feedback { margin: 0; width: 100%; padding: 12px; border-radius: 10px; background: #fff0d2; color: #654915; font-size: .87rem; line-height: 1.5; overflow-wrap: anywhere; }
.studio-code { width: 100%; font: 700 1.65rem monospace; letter-spacing: .15em; color: var(--studio-accent); }
.studio-preview { width: 100%; max-height: 360px; border-radius: 12px; background: #183139; }
.studio-stage details { width: 100%; font-size: .85rem; color: var(--studio-muted); }
.studio-stage summary { cursor: pointer; min-height: 36px; }
.studio-stage progress { width: 100%; accent-color: var(--studio-accent); }
.studio-operation { font-size: .72rem; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .linked-studio { padding: 12px; border-radius: 16px; }
  .studio-stage { padding: 14px; }
  .studio-stage .studio-button { flex-grow: 1; }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(160deg, rgba(32, 75, 86, 0.45), transparent 38%),
    linear-gradient(22deg, rgba(82, 88, 48, 0.32), transparent 52%),
    #101418;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  border-radius: 8px;
}

button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f7faf9;
  background: rgba(255, 255, 255, 0.1);
  padding: 9px 12px;
  cursor: pointer;
}

button:active {
  transform: translateY(1px);
}

.app-shell {
  width: min(100%, 1120px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 16px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 14px;
}

.app-shell > *,
.work-panel > *,
.assistant-workspace > *,
.assistant-section > * {
  min-width: 0;
  max-width: 100%;
}

.topbar,
.tab-list,
.panel-header,
.action-row,
.stat,
.memory-row,
.device-controls {
  display: flex;
  align-items: center;
}

.topbar {
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow,
.shell-label,
.stat span,
.memory-row span {
  color: #b8c8c4;
}

.eyebrow {
  margin: 0 0 5px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.shell-label {
  margin: 4px 0 0;
}

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

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: 1.42rem;
}

h2 {
  font-size: clamp(1.22rem, 3vw, 1.55rem);
  line-height: 1.15;
}

.locale-select {
  min-width: 128px;
  color: #f7faf9;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 10px 12px;
}

.tab-list {
  grid-column: 1 / -1;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.tab-list::-webkit-scrollbar {
  display: none;
}

.tab-list button {
  flex: 0 0 auto;
  min-width: 104px;
}

.tab-list button[data-active="true"],
.action-row button:first-child {
  color: #101418;
  background: #f7faf9;
}

.work-panel,
.preview-panel,
.activity-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(16, 20, 24, 0.62);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.work-panel {
  min-height: 382px;
  padding: 18px;
}

.preview-panel,
.activity-panel {
  padding: 16px;
}

.activity-panel {
  grid-column: 1 / -1;
}

.panel-header {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.action-row {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.action-row button {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stat-grid.compact {
  grid-template-columns: 1fr;
}

.stat {
  min-height: 70px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.stat strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.row-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.list-row,
.memory-row {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  padding: 10px 12px;
}

.list-row {
  line-height: 1.36;
}

.memory-row {
  justify-content: space-between;
  gap: 12px;
}

.memory-row strong,
.memory-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.memory-row[data-pinned="true"] {
  border-color: rgba(216, 245, 206, 0.48);
  background: rgba(216, 245, 206, 0.11);
}

.memory-row[data-selected="true"] {
  border-color: rgba(157, 222, 209, 0.72);
  box-shadow: inset 0 0 0 1px rgba(157, 222, 209, 0.32);
}

.device-controls {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.device-controls label {
  flex: 1 1 160px;
}

.device-controls input,
.device-controls select {
  flex: 1 1 180px;
  accent-color: #d8f5ce;
  min-height: 42px;
  color: #f7faf9;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 9px 12px;
}

.launcher-chips,
.launcher-controls,
.launcher-menu-actions,
.hardware-chips,
.hardware-actions,
.subarea-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.subarea-chips {
  margin: -2px 0 12px;
}

.subarea-chips button {
  min-height: 36px;
  min-width: 84px;
  padding: 7px 10px;
}

.subarea-chips button[data-active="true"] {
  color: #101418;
  border-color: #9dded1;
  background: #9dded1;
}

.detail-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.detail-panel > .panel-header,
.detail-panel > .stat-grid {
  grid-column: 1 / -1;
}

.detail-panel input {
  min-height: 48px;
  width: 100%;
  grid-column: 1 / -1;
  color: #f7faf9;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
}

.account-panel {
  display: grid;
  gap: 14px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(157, 222, 209, 0.24);
  border-radius: 8px;
  background: rgba(157, 222, 209, 0.06);
}

.account-status {
  display: grid;
  gap: 5px;
}

.account-status strong {
  font-size: 1.08rem;
}

.account-status span,
.detail-note {
  color: #b8c8c4;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.account-actions,
.account-providers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-actions button,
.account-providers > button,
.google-sign-in-slot {
  flex: 1 1 220px;
  min-width: 0;
}

.google-sign-in-slot {
  min-height: 44px;
  overflow: hidden;
}

.google-sign-in-slot > div {
  max-width: 100%;
}

.apple-sign-in-button {
  border-color: #f7faf9;
  color: #101418;
  background: #f7faf9;
  font-weight: 600;
}

.account-actions .destructive {
  border-color: rgba(255, 145, 145, 0.72);
  color: #ffd6d6;
  background: rgba(151, 39, 39, 0.18);
}

.account-error {
  margin: 0;
  color: #ffd7bd;
  overflow-wrap: anywhere;
}

.account-panel .detail-note {
  margin: 0;
  font-size: 0.84rem;
}

.launcher-chips {
  margin: 10px 0;
}

.launcher-chips button {
  min-height: 38px;
  min-width: 76px;
  padding: 8px 10px;
}

.launcher-chips button[data-active="true"] {
  color: #101418;
  border-color: #d8f5ce;
  background: #d8f5ce;
}

.launcher-controls {
  margin-bottom: 10px;
}

.launcher-controls button {
  flex: 1 1 118px;
}

.launcher-menu-actions {
  margin-bottom: 10px;
}

.launcher-menu-actions button {
  flex: 1 1 86px;
  min-height: 36px;
  padding: 7px 10px;
}

.launcher-menu-actions button[data-status="COMPLETED"],
.launcher-menu-actions button[data-status="READY"] {
  border-color: rgba(157, 222, 209, 0.62);
  background: rgba(157, 222, 209, 0.16);
}

.launcher-menu-actions button[data-status="QUEUED"] {
  border-color: rgba(216, 245, 206, 0.58);
  background: rgba(216, 245, 206, 0.13);
}

.launcher-menu-actions button[data-status="BLOCKED"] {
  border-color: rgba(255, 174, 132, 0.68);
  background: rgba(255, 174, 132, 0.14);
}

.launcher-status {
  margin-bottom: 12px;
}

.launcher-queue {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.hardware-router {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(216, 245, 206, 0.18);
  border-radius: 8px;
  background: rgba(216, 245, 206, 0.06);
}

.hardware-router .panel-header {
  margin-bottom: 0;
}

.hardware-chips button {
  min-height: 36px;
  min-width: 92px;
  padding: 7px 10px;
}

.hardware-chips button[data-active="true"] {
  color: #101418;
  border-color: #d8f5ce;
  background: #d8f5ce;
}

.hardware-actions button {
  flex: 1 1 142px;
}

.hardware-status-grid {
  margin-top: 2px;
}

.glass-card {
  min-height: 112px;
  margin-bottom: 10px;
  display: grid;
  align-items: end;
  padding: 16px;
  border: 1px solid rgba(216, 245, 206, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, transparent 0 36%, rgba(216, 245, 206, 0.13) 36% 100%),
    rgba(0, 0, 0, 0.25);
}

.glass-card p {
  margin: 0;
  max-width: 28ch;
  color: #f7faf9;
  font-size: 1.22rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.payload-preview {
  max-height: 210px;
  overflow: auto;
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #dbe9e5;
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.78rem;
  line-height: 1.35;
}

.assistant-workspace,
.assistant-section,
.assistant-history {
  display: grid;
  gap: 10px;
}

.assistant-session-label {
  margin: -8px 0 0;
  color: #b8c8c4;
  font-size: 0.86rem;
}

.assistant-provider-banner {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(157, 222, 209, 0.34);
  border-radius: 8px;
  color: #dbe9e5;
  background: rgba(157, 222, 209, 0.09);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.assistant-section h3,
.assistant-result h3 {
  margin: 0;
  font-size: 1rem;
}

.assistant-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assistant-quick-actions button {
  flex: 1 1 150px;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.assistant-result {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.assistant-result[hidden] {
  display: none;
}

.assistant-result p,
.assistant-result small,
.assistant-message p {
  margin: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.assistant-result code {
  overflow-wrap: anywhere;
  color: #ffd7bd;
}

.assistant-result button {
  justify-self: start;
}

.assistant-result small {
  color: #b8c8c4;
}

.assistant-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.assistant-composer input {
  min-width: 0;
  min-height: 48px;
  color: #f7faf9;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
}

.assistant-message {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.assistant-message[data-role="user"] {
  border-color: rgba(157, 222, 209, 0.42);
}

.tool-workspace {
  display: grid;
  gap: 12px;
}

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

.tool-domain-list button {
  min-width: 0;
  min-height: 44px;
  overflow-wrap: anywhere;
}

.tool-domain-list button[data-active="true"] {
  color: #101418;
  border-color: #9dded1;
  background: #9dded1;
}

.tool-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tool-summary-card {
  display: grid;
  gap: 6px;
  min-height: 108px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.tool-summary-card span {
  color: #b8c8c4;
  font-size: 0.78rem;
}

.tool-summary-card strong {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.tool-summary-card p {
  margin: 0;
  color: #dbe9e5;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.tool-summary-card[data-tone="ready"] {
  border-color: rgba(157, 222, 209, 0.52);
  background: rgba(157, 222, 209, 0.12);
}

.tool-summary-card[data-tone="blocked"],
.tool-summary-card[data-tone="offline"] {
  border-color: rgba(255, 174, 132, 0.58);
  background: rgba(255, 174, 132, 0.12);
}

.tool-summary-card[data-tone="recording"],
.tool-summary-card[data-tone="sharing"] {
  border-color: rgba(216, 245, 206, 0.56);
  background: rgba(216, 245, 206, 0.1);
}

.tool-camera-preview {
  width: 100%;
  min-height: 190px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(157, 222, 209, 0.3);
  border-radius: 8px;
  background: #080b0d;
}

.tool-recording-status {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #b8c8c4;
  background: rgba(255, 255, 255, 0.06);
}

.tool-recording-status[data-recording="true"] {
  border-color: rgba(255, 174, 132, 0.72);
  color: #ffd7bd;
  background: rgba(255, 174, 132, 0.12);
}

.tool-controls {
  justify-content: flex-start;
}

.tool-consent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: #dbe9e5;
}

.tool-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.billiards-workbench {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(157, 222, 209, 0.3);
  border-radius: 8px;
  background: #0b1112;
}

.billiards-workbench-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.billiards-workbench-heading span {
  color: #b8c8c4;
  font-size: 0.78rem;
  text-align: right;
}

.billiards-table-graphic {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  min-height: 180px;
}

.billiards-surface {
  fill: #0d5c47;
  stroke: #8f6f42;
  stroke-width: 20;
}

.billiards-pocket {
  fill: #080b0d;
}

.billiards-ball {
  stroke: #101418;
  stroke-width: 3;
}

.billiards-ball.cue {
  fill: #f7faf9;
}

.billiards-ball.ball-1 {
  fill: #df4d50;
}

.billiards-ball.ball-2 {
  fill: #4f7ec0;
}

.billiards-ball.ball-3 {
  fill: #e7b73e;
}

.billiards-guidance {
  fill: none;
  stroke-linecap: round;
  stroke-width: 7;
}

.billiards-guidance.aim {
  stroke: #74d6e8;
}

.billiards-guidance.target {
  stroke: #ffcc40;
}

.billiards-guidance.exit {
  stroke: #e76378;
  stroke-dasharray: 14 10;
}

.billiards-focus {
  fill: #f7faf9;
  stroke: #101418;
  stroke-width: 3;
}

.billiards-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.go-workbench {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(116, 214, 232, 0.32);
  border-radius: 8px;
  background: #0b1112;
}

.go-workbench-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.go-workbench-heading span {
  color: #b8c8c4;
  font-size: 0.78rem;
  text-align: right;
}

.go-selectors {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 8px;
}

.segmented-control {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(157, 222, 209, 0.28);
  border-radius: 8px;
}

.segmented-control button {
  min-width: 0;
  min-height: 42px;
  padding: 8px;
  border: 0;
  border-right: 1px solid rgba(157, 222, 209, 0.18);
  border-radius: 0;
  color: #b8c8c4;
  background: #10191a;
}

.segmented-control button:last-child {
  border-right: 0;
}

.segmented-control button[data-active="true"] {
  color: #f4fbf9;
  background: #176560;
}

.go-board {
  display: block;
  width: min(100%, 680px);
  aspect-ratio: 1;
  justify-self: center;
  border: 1px solid rgba(157, 222, 209, 0.24);
  border-radius: 8px;
  cursor: crosshair;
  touch-action: manipulation;
}

.go-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.music-workbench {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(116, 214, 232, 0.32);
  border-radius: 8px;
  background: #0b1112;
}

.music-workbench-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.music-workbench-heading span {
  color: #b8c8c4;
  font-size: 0.78rem;
  text-align: right;
}

.music-workbench audio {
  width: 100%;
}

.music-chord-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(184, 200, 196, 0.18);
  border-radius: 8px;
  background: rgba(184, 200, 196, 0.12);
}

.music-chord-row {
  display: grid;
  grid-template-columns: 64px minmax(70px, 1fr) 52px;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  background: #10191a;
}

.music-chord-row span {
  color: #b8c8c4;
  font-size: 0.82rem;
}

.music-chord-row span:last-child {
  text-align: right;
}

.music-chord-row strong {
  color: #f4c95d;
  font-size: 1.05rem;
}

.travel-workbench {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(157, 222, 209, 0.34);
  border-radius: 8px;
  background: #0b1112;
}

.travel-workbench-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.travel-workbench-heading span {
  color: #b8c8c4;
  font-size: 0.78rem;
  text-align: right;
}

.travel-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.studio-workbench {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(244, 201, 93, 0.34);
  border-radius: 8px;
  background: #101112;
}

.studio-workbench-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.studio-workbench-heading span {
  color: #c9c3b2;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
  text-align: right;
}

.studio-step-list,
.studio-platform-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
}

.studio-process-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.studio-publication {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.studio-workbench input[type="file"],
.studio-workbench select {
  min-width: 0;
  max-width: 100%;
}

.daily-context {
  display: grid;
  gap: 14px;
}

.daily-context-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.daily-context-fields label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #b8c8c4;
  font-size: 0.82rem;
}

.daily-context-fields input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  color: #f7faf9;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
}

.daily-context-status {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.daily-status-row {
  display: grid;
  grid-template-columns: minmax(96px, 0.28fr) minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.daily-status-row span {
  color: #b8c8c4;
}

.daily-status-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
}

.daily-context-actions {
  justify-content: flex-start;
}

.daily-context-actions button {
  flex: 1 1 132px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.daily-transport-status {
  margin: 0;
  color: #ffd7bd;
  font-size: 0.82rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

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

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    grid-template-columns: 1fr;
  }

  .panel-header {
    display: grid;
  }

  .assistant-composer {
    grid-template-columns: 1fr;
  }

  .daily-context-fields,
  .daily-status-row {
    grid-template-columns: 1fr;
  }

  .tool-domain-list,
  .tool-summary-grid,
  .tool-detail-grid,
  .billiards-metrics,
  .go-metrics,
  .travel-metrics,
  .studio-process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-panel,
  .preview-panel,
  .activity-panel {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .action-row {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .tool-summary-grid,
  .tool-detail-grid,
  .billiards-metrics,
  .travel-metrics,
  .studio-step-list,
  .studio-platform-list,
  .studio-process-list {
    grid-template-columns: 1fr;
  }

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

  .tool-domain-list button {
    min-height: 52px;
  }

  .billiards-workbench-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .billiards-workbench-heading span {
    text-align: left;
  }

  .go-workbench-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .go-workbench-heading span {
    text-align: left;
  }

  .go-selectors {
    grid-template-columns: 1fr;
  }

  .travel-workbench-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .travel-workbench-heading span {
    text-align: left;
  }

  .studio-workbench-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .studio-workbench-heading span {
    text-align: left;
  }
}
