/* Live workspace: reference typography and palette with native task controls. */
.live-dashboard { display: block; min-width: 320px; font-size: 15px; }
.live-dashboard .live-header {
  min-height: 76px; margin: 0 4vw; padding: 18px 0; display: flex;
  align-items: center; justify-content: space-between; gap: 20px;
  border-bottom: 1px solid var(--line-2); background: transparent;
}
.live-brand { font-size: 24px; font-weight: 400; letter-spacing: -.045em; text-decoration: none; color: var(--ink); }
.live-dashboard #main { max-width: 1440px; margin: 0 auto; padding: 48px 4vw 80px; }
.live-dashboard h1 {
  font: italic 400 clamp(56px, 7.4vw, 110px)/1.06 var(--f-display);
  letter-spacing: -.035em; margin: 0 0 16px; overflow-wrap: anywhere;
}
.live-dashboard h2 { font-size: 24px; font-weight: 400; letter-spacing: -.025em; margin: 0 0 16px; }
.live-dashboard h3 { font-size: 18px; font-weight: 400; margin: 0 0 10px; }
.live-dashboard p { line-height: 1.6; }
.live-dashboard label { display: grid; gap: 7px; font-size: 14px; color: var(--ink-2); min-width: 0; }
.live-dashboard input, .live-dashboard select, .live-dashboard textarea {
  width: 100%; max-width: 100%; min-height: 46px; padding: 11px 15px;
  border: 1px solid var(--line-2); border-radius: var(--r-control);
  background: var(--surface); font: inherit; color: var(--ink);
  transition: border-color var(--t-hover) var(--ease-out), box-shadow var(--t-hover) var(--ease-out);
}
.live-dashboard input:focus, .live-dashboard select:focus, .live-dashboard textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash);
}
.live-dashboard input::placeholder, .live-dashboard textarea::placeholder { color: var(--muted); opacity: 1; }
.live-dashboard textarea { min-height: 112px; resize: vertical; line-height: 1.55; }
.live-dashboard textarea.source { min-height: 210px; font-family: var(--f-sans); font-size: 14px; white-space: pre-wrap; }
.live-dashboard button { cursor: pointer; }
.live-dashboard .btn { min-height: 46px; padding: 10px 18px; white-space: normal; font-size: 14px; }
.live-dashboard .btn:disabled { opacity: .55; cursor: not-allowed; }
.live-dashboard :focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }
.live-dashboard form { display: grid; gap: 18px; }
.live-dashboard .fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.live-dashboard .wide { grid-column: 1/-1; }
.live-dashboard .panel { padding: 30px; margin-top: 24px; }
.live-dashboard .auth { max-width: 620px; margin: 24px auto; padding: 40px; }
.live-dashboard .auth h1 { font-size: clamp(48px, 5vw, 72px); margin-bottom: 20px; }
.live-dashboard .auth > p { margin-bottom: 28px; }
.live-dashboard .toolbar { display: flex; gap: 26px; align-items: end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 28px; }
.live-dashboard .toolbar > div:first-child { flex: 1 0 100%; min-width: 0; }
.live-dashboard .toolbar > div:first-child > .hint { font-size: clamp(18px, 2vw, 28px); color: var(--ink); margin: 0; }
.live-dashboard .toolbar > .inline { width: 100%; align-items: end; gap: 12px; }
.live-dashboard .toolbar label { min-width: 220px; }
.live-dashboard .toolbar .btn[data-action="import"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.live-dashboard .inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.live-dashboard .tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--line-2); padding: 12px 0 0; margin: 12px 0 24px; }
.live-dashboard .tabs .btn { border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; padding-bottom: 15px; }
.live-dashboard .tabs button[aria-current=true] { background: transparent; color: var(--accent-2); border-bottom-color: var(--accent-2); }
.live-dashboard .empty { padding: 24px 0; color: var(--muted); max-width: 580px; }
.live-dashboard .rows { list-style: none; padding: 0; margin: 0; }
.live-dashboard .rows > li { border-top: 1px solid var(--line); padding: 20px 0; overflow-wrap: anywhere; }
.live-dashboard .rows > li:first-child { border-top: 0; }
.live-dashboard .rowhead { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.live-dashboard .facts { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin: 10px 0; }
.live-dashboard .queue { width: 100%; border-collapse: collapse; }
.live-dashboard .queue th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 400; background: transparent; }
.live-dashboard .queue td, .live-dashboard .queue th { padding: 22px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.live-dashboard .queue tr:last-child td { border-bottom: 0; }
.live-dashboard .queue td { font-size: 15px; }
.live-dashboard .queue .reason { max-width: 430px; line-height: 1.5; }
.live-dashboard .link { background: none; border: 0; padding: 0; color: var(--accent-2); font: inherit; text-align: left; text-decoration: underline; text-underline-offset: 4px; }
.live-dashboard .queue .link { font-size: 19px; }
.live-dashboard blockquote { white-space: pre-wrap; margin: 12px 0; padding: 16px 20px; background: var(--surface-2); border-left: 2px solid var(--accent-2); border-radius: 0 12px 12px 0; line-height: 1.6; overflow-wrap: anywhere; }
.live-dashboard pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.6; }
.live-dashboard details { border-top: 1px solid var(--line); padding: 18px 0; }
.live-dashboard summary { cursor: pointer; font-weight: 400; margin-bottom: 12px; }
.live-dashboard .hint { font-size: 14px; color: var(--muted); line-height: 1.5; }
.live-dashboard .check { display: flex; align-items: start; gap: 10px; }
.live-dashboard .check input { width: 18px; min-height: 18px; flex: none; margin-top: 1px; accent-color: var(--accent-2); }
.live-dashboard #notice:not(:empty) { position: sticky; top: 0; z-index: 10; padding: 14px 4vw; background: var(--accent-wash); border-bottom: 1px solid var(--line-2); color: var(--ink); }
.live-dashboard #notice.error { background: #fff0eb; color: #822b1d; }
.live-dashboard .skip-link { position: absolute; left: 10px; top: -100px; }
.live-dashboard .skip-link:focus { top: 10px; z-index: 20; background: var(--surface); padding: 12px; }
.live-dashboard .detail-grid { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(240px,1fr); gap: 24px; }
.live-dashboard .detail-grid > * { min-width: 0; }
.live-dashboard .tablewrap { overflow-x: auto; }
.live-dashboard small { font-size: 13px; color: var(--muted); }
.live-dashboard [hidden] { display: none!important; }
.live-dashboard dd { margin: 6px 0 16px; line-height: 1.6; }
.live-dashboard .btn.primary { width: fit-content; min-width: 160px; text-align: center; }
.live-dashboard #account { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .live-dashboard .live-header { margin: 0 20px; padding: 16px 0; }
  .live-brand { font-size: 21px; }
  .live-dashboard #main { padding: 32px 20px 60px; }
  .live-dashboard h1 { font-size: clamp(48px, 12vw, 76px); }
  .live-dashboard .panel { padding: 22px 18px; }
  .live-dashboard .fields, .live-dashboard .detail-grid { grid-template-columns: 1fr; }
  .live-dashboard .toolbar { align-items: stretch; gap: 20px; }
  .live-dashboard .toolbar label { width: 100%; min-width: 0; }
  .live-dashboard .toolbar > .inline { gap: 8px; }
  .live-dashboard .toolbar .btn { flex: 1 1 auto; }
  .live-dashboard .queue { min-width: 640px; }
  .live-dashboard .queue td, .live-dashboard .queue th { white-space: normal; padding: 18px 16px; }
  .live-dashboard .evaluation-counts { min-width: 0; }
  .live-dashboard .evaluation-counts th { width: 75%; }
  .live-dashboard .evaluation-counts td { text-align: right; }
  .live-dashboard .rowhead { flex-wrap: wrap; }
  .live-dashboard #account { max-width: 160px; }
  .live-dashboard #account .inline { justify-content: flex-end; }
  .live-dashboard .auth { margin-top: 0; }
  .live-dashboard .tabs { gap: 2px; }
  .live-dashboard .tabs .btn { padding-left: 12px; padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .live-dashboard * { animation: none!important; transition: none!important; scroll-behavior: auto!important; }
}
