:root {
  --paper: #efeae2;
  --ink: #1a1714;
  --muted: #6f675e;
  --line: #d8d0c4;
  --accent: #8f2d1b;
  --accent-ink: #fff8f4;
  --field: #fffdf8;
  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Outfit", "Avenir Next", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem 1.25rem;
  align-items: center;
  padding: 0.85rem 1.4rem;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
  flex: none;
}

.nav,
.top-nav {
  grid-column: 2;
  display: flex;
  gap: 1.2rem;
  align-items: center;
  justify-content: center;
}

.nav a,
.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--ink);
}

.account {
  grid-column: 3;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: flex-end;
}

.pill {
  text-decoration: none;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
}

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

.text-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
}

.frame {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.4rem;
}

.intro {
  padding-top: 4.2rem;
  padding-bottom: 2.6rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
}

.intro h1,
.sheet h1,
.admin-gate h1,
.admin-board h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 36rem;
  margin: 1.1rem 0 1.6rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.works {
  padding-bottom: 3.5rem;
}

.works h2,
.sheet h2,
.admin-board h2 {
  margin: 2rem 0 0.9rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.work {
  margin: 0 0 2.4rem;
}

.work h3 {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
}

.work-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 980px;
}

.work .meta {
  margin: -0.2rem 0 1rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.pair-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem 1.8rem;
  max-width: 980px;
}

.pair {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 0.7rem;
  align-items: start;
}

.shot {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
  color: inherit;
  font: inherit;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center top;
  background: #141210;
  border: 1px solid var(--line);
}

.shot.wide img {
  aspect-ratio: 16 / 9;
  object-position: center;
}

.shot span {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.shot-view {
  border: 0;
  padding: 0;
  max-width: min(420px, 92vw);
  background: transparent;
}

.shot-view::backdrop {
  background: rgba(20, 16, 12, 0.78);
}

.shot-view img {
  display: block;
  width: 100%;
}

.shot-view form {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.7rem;
  color: #f6f1ea;
}

.shot-view h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0;
  color: #f6f1ea;
}

.shot-view button {
  border: 1px solid rgba(246, 241, 234, 0.45);
  background: transparent;
  color: #f6f1ea;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  font: inherit;
}

.sheet {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3.2rem 1.4rem 4rem;
}

.gate p {
  margin: 0.4rem 0 1.2rem;
  color: var(--muted);
}

.meta {
  margin: 0 0 1.4rem;
  color: var(--muted);
}

.meta a {
  color: var(--ink);
}

.chat-box {
  margin: 0 0 1.8rem;
}

.chat-log {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem;
  display: grid;
  gap: 0.55rem;
}

.chat-log:empty {
  display: none;
}

.chat-log li {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  background: var(--field);
  white-space: pre-wrap;
}

.chat-log li.user {
  background: transparent;
}

.chat-log li.assistant,
.chat-log li.pending {
  color: var(--muted);
}

.chat-box .status {
  margin: 0 0 0.7rem;
  font-weight: 500;
}

.chat-box .status:empty {
  display: none;
}

.chat-box .status.is-error {
  color: var(--accent);
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--accent);
  background: #f6ebe6;
}

.chat-box.is-busy .chat-form textarea {
  display: none;
}

.chat-box.is-busy .status::before,
.chat-log li.pending::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  animation: chat-pulse 1s ease-in-out infinite;
  vertical-align: 0.05rem;
}

.job-form textarea.just-filled {
  border-color: var(--accent);
}

@keyframes chat-pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

.chat-form {
  display: grid;
  gap: 0.7rem;
}

.chat-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  padding: 0.7rem 0.75rem;
  resize: vertical;
}

.chat-form .btn.primary {
  justify-self: start;
}

.balance {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0.4rem 0 1.6rem;
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 5.4rem);
  line-height: 0.9;
}

.balance em {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--muted);
}

.buy-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.buy-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.buy-list li:last-child a {
  border-bottom: 1px solid var(--line);
}

.buy-list a:hover .buy-face {
  color: var(--accent);
}

.buy-where {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.buy-face {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border: 0;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn.primary:disabled {
  opacity: 0.65;
  cursor: progress;
}

.btn.primary:hover:not(:disabled) {
  background: #741f12;
}

.btn.primary:active:not(:disabled) {
  background: #5c180e;
  transform: translateY(1px);
}

.job-form .status {
  margin: 0;
  font-weight: 500;
}

.job-form .status:empty {
  display: none;
}

.job-form .status.is-error {
  color: var(--accent);
}

.job-form.is-busy .btn.primary::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  animation: chat-pulse 1s ease-in-out infinite;
}

.job-form,
.redeem-form {
  display: grid;
  gap: 0.95rem;
}

.job-form label,
.redeem-form label,
.admin-gate label,
.admin-board form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.job-form select,
.job-form textarea,
.job-form input,
.redeem-form input,
.admin-gate input,
.admin-board input,
.admin-board select,
.admin-board textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  padding: 0.7rem 0.75rem;
}

.job-form textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.job-form .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
}

.job-form .btn.primary {
  margin-top: 0.3rem;
}

.redeem-form {
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 0.5rem;
}

.redeem-form .status,
#redeem-status {
  grid-column: 1 / -1;
  min-height: 1.3rem;
  margin: 0;
}

.job-list,
.ledger {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
}

.job-list li,
.ledger li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.job-list a {
  color: var(--accent);
}

.job-list li.pending {
  color: var(--muted);
}

.job-list li.pending::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  animation: chat-pulse 1s ease-in-out infinite;
  vertical-align: 0.05rem;
}

.foot {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.2rem 1.4rem 2rem;
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

.foot a,
.foot button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
}

.feedback {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 1.1rem 1.1rem 1.25rem;
  width: min(22rem, calc(100vw - 1.6rem));
  max-height: 90vh;
  margin: auto;
  overflow: auto;
}

.feedback::backdrop {
  background: rgba(20, 16, 12, 0.55);
}

.feedback form {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.feedback h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
}

.feedback p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.feedback button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  font: inherit;
}

.feedback img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 68vh;
  object-fit: contain;
  object-position: top;
}

.admin-gate,
.admin-board {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.4rem 1.4rem 3rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.2rem 0 0.4rem;
}

.admin-stats article {
  border: 1px solid var(--line);
  background: var(--field);
  padding: 1rem;
}

.admin-stats strong {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
}

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

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  border-top: 1px solid var(--line);
  padding: 0.55rem 0.35rem;
  vertical-align: top;
}

.admin-board form {
  display: grid;
  gap: 0.7rem;
  max-width: 28rem;
  margin: 0.4rem 0 1rem;
}

@media (max-width: 720px) {
  .top {
    grid-template-columns: 1fr auto;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .account {
    grid-column: 2;
    grid-row: 1;
  }

  .nav,
  .top-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .work-row,
  .pair-row,
  .job-form .split,
  .admin-stats,
  .redeem-form {
    grid-template-columns: 1fr;
  }

  .work-row {
    max-width: 420px;
  }

  .intro {
    padding-top: 2.4rem;
  }
}

/* ---------- studio workspace ---------- */

.studio {
  --ok: #2f6b4f;
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.2rem 1.4rem 4rem;
}

.studio-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  margin-bottom: 1.4rem;
}

.studio-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.studio-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.studio-meta strong {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.studio-meta a {
  margin-left: 0.5rem;
  color: var(--accent);
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.4rem;
  align-items: start;
}

.panel {
  background: var(--field);
  border: 1px solid var(--line);
  padding: 1.25rem 1.35rem 1.4rem;
}

.panel.jobs {
  position: sticky;
  top: 4.6rem;
  max-height: calc(100vh - 5.6rem);
  overflow: auto;
}

.panel-head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.panel-head h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
}

.panel-head .hint {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}

.step {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 600;
  transform: translateY(-1px);
}

.compose .ref-box {
  padding: 1rem 1.1rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(31, 138, 112, 0.18), transparent 55%),
    rgba(255, 255, 255, 0.02);
}

.compose .ref-push {
  margin: 0 0 0.85rem;
  color: #d7ebe3;
  font-size: 0.95rem;
  line-height: 1.45;
}

.compose .ref-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.compose .ref-upload {
  cursor: pointer;
}

.compose .ref-preview {
  margin: 0.9rem 0 0;
}

.compose .ref-preview img {
  display: block;
  width: min(100%, 420px);
  max-height: 240px;
  object-fit: contain;
  background: #101614;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.compose .ref-warn {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.8rem;
  color: #3a2a12;
  background: #f0d7a4;
  border: 1px solid #d4b06a;
  font-size: 0.9rem;
  line-height: 1.4;
}

.compose .ref-warn[hidden],
.compose .ref-preview[hidden] {
  display: none;
}

.compose.has-ref .ref-warn {
  display: none;
}

.compose.has-ref .ref-push {
  color: #b7c7c0;
}

.compose .chat-box {
  margin: 0 0 1.4rem;
}

.compose .job-form {
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}

.compose .chat-log li {
  max-width: 88%;
  padding: 0.6rem 0.8rem;
  border: 0;
  font-size: 0.93rem;
}

.compose .chat-log li.user {
  justify-self: end;
  background: var(--ink);
  color: var(--paper);
}

.compose .chat-log li.assistant,
.compose .chat-log li.pending {
  justify-self: start;
  background: var(--paper);
  color: var(--ink);
}

.compose .chat-log li.pending {
  color: var(--muted);
}

.compose .chat-form {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.compose .chat-form textarea {
  min-height: 3.2rem;
  background: #fff;
}

.compose .chat-form .btn.primary {
  justify-self: stretch;
  white-space: nowrap;
}

.brief-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  padding: 0;
}

.brief-chips:empty {
  display: none;
}

.chip {
  padding: 0.18rem 0.6rem;
  border: 1px solid var(--ink);
  font-size: 0.84rem;
  line-height: 1.5;
}

.chip.soft {
  border-color: var(--line);
  color: var(--muted);
}

.chip.warn {
  border-color: var(--accent);
  color: var(--accent);
}

.compose .job-form label.field,
.compose .job-form label.size {
  gap: 0.4rem;
  letter-spacing: 0;
}

.field-label {
  font-size: 0.82rem;
  color: var(--muted);
}

.compose #controls {
  min-height: 17rem;
  background: #fff;
  font-size: 0.92rem;
  line-height: 1.65;
}

.submit-row {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) 1fr;
  gap: 0.8rem;
  align-items: end;
}

.submit-row .btn.primary {
  margin: 0;
  min-height: 2.95rem;
}

.compose .aside {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.compose .aside a {
  color: var(--muted);
}

.job-cards {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.job-empty {
  padding: 1.6rem 0.2rem;
  color: var(--muted);
}

.job-card {
  padding: 0.9rem 1rem 1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  background: #fff;
}

.job-card.is-active {
  border-left-color: var(--accent);
}

.job-card.is-ready {
  border-left-color: var(--ok);
}

.job-card.is-failed {
  background: var(--paper);
}

.job-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.job-status {
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.is-active .job-status {
  color: var(--accent);
}

.is-active .job-status::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  animation: chat-pulse 1s ease-in-out infinite;
  vertical-align: 0.05rem;
}

.is-ready .job-status {
  color: var(--ok);
}

.job-title {
  margin: 0.35rem 0 0.7rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
}

.job-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3rem;
  margin: 0 0 0.7rem;
  padding: 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.job-steps li {
  padding-top: 0.35rem;
  border-top: 3px solid var(--line);
}

.job-steps li.done {
  border-top-color: var(--ink);
  color: var(--ink);
}

.job-steps li.now {
  border-top-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.screen-states {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.6rem;
  padding: 0;
}

.screen-state {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--line);
  font-size: 0.8rem;
}

.screen-state::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--line);
}

.screen-state.ok::before {
  background: var(--ok);
}

.screen-state.bad {
  border-color: var(--accent);
  color: var(--accent);
}

.screen-state.bad::before {
  background: var(--accent);
}

.screen-state.drawing::before {
  background: var(--accent);
  animation: chat-pulse 1s ease-in-out infinite;
}

.screen-state.is-link {
  cursor: pointer;
}

.screen-state.is-link:hover,
.screen-state.is-link:focus-visible {
  border-color: var(--ok, #3d9b7a);
  outline: none;
}

.job-note {
  margin: 0 0 0.7rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.job-note.is-error {
  color: var(--accent);
}

.job-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  gap: 0.45rem;
  margin: 0 0 0.8rem;
}

.job-thumbs figure {
  margin: 0;
}

.job-thumbs figure.is-link {
  cursor: pointer;
}

.job-thumbs figure.is-link:hover img,
.job-thumbs figure.is-link:focus-within img {
  border-color: var(--ok, #3d9b7a);
}

.job-thumbs img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--paper);
  border: 1px solid var(--line);
}

.job-thumbs figcaption {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn.small {
  padding: 0.45rem 0.85rem;
  font-size: 0.88rem;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.btn.ghost:hover {
  background: var(--paper);
}

@media (max-width: 960px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }

  .panel.jobs {
    position: static;
    max-height: none;
  }
}

@media (max-width: 560px) {
  .compose .chat-form,
  .submit-row {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 1rem;
  }
}
