.run-root {
  --run-ink: #17382f;
  --run-muted: #52675e;
  --run-green: #176a52;
  --run-line: #d6e3da;
  --run-soft: #f3f7f3;
  color: var(--run-ink);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .9375rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.run-root *, .run-root *::before, .run-root *::after { box-sizing: border-box; }
.run-root [hidden] { display: none !important; }
.run-root :is(button, input, select, textarea) { font: inherit; }
.run-root :is(button, input, select, textarea, summary, a):focus-visible { outline: 3px solid #1268ad; outline-offset: 3px; }
.run-root :is(button, input, select, summary, a) { touch-action: manipulation; }
.run-root button { min-height: 44px; cursor: pointer; }
.run-root input:not([type="checkbox"]):not([type="radio"]), .run-root select, .run-root summary { min-height: 44px; }
.run-root button:disabled { cursor: default; opacity: .55; }
.run-root a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; color: var(--run-green); text-underline-offset: .2em; }
.run-root p { margin: 0 0 .65rem; }
.run-root p:last-child { margin-bottom: 0; }
.run-root :is(h1, h2, h3) { overflow-wrap: anywhere; }

.run-header { margin-bottom: 1.1rem; }
.run-title { margin: 0 0 .4rem; font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.35; letter-spacing: -.02em; }
.run-intro { margin: 0 !important; max-width: 70rem; color: var(--run-muted); font-size: .9rem; }
.run-note { margin: .8rem 0 1rem; padding: .85rem 1rem; border: 1px solid var(--run-line); border-left: 3px solid #86aa93; border-radius: .5rem; background: var(--run-soft); color: var(--run-muted); font-size: .83rem; }
.run-warning { margin: .75rem 0; padding: .85rem 1rem; border: 1px solid #dfcfaa; border-radius: .5rem; background: #fffaf0; color: #76551e; font-size: .85rem; }
.run-error { color: #963f31; }
.run-status { margin: .8rem 0 1rem; padding: .8rem 1rem; border: 1px solid var(--run-line); border-radius: .5rem; background: var(--run-soft); color: var(--run-muted); font-size: .85rem; }
.run-status:empty { display: none; }
.run-status.run-error { border-color: #dcb5aa; background: #fff7f3; color: #963f31; }
.run-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; margin: 1rem 0; }
.run-toolbar > * { min-width: 0; }
.run-button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; max-width: 100%; padding: .6rem .95rem; border: 1px solid var(--run-green); border-radius: .5rem; color: #fff; background: var(--run-green); font-size: .84rem !important; font-weight: 600; line-height: 1.5; text-align: center; text-decoration: none; white-space: normal; }
.run-button:hover { background: #10523e; border-color: #10523e; }
.run-secondary { color: var(--run-green); background: #fff; border-color: #a7c4b4; }
.run-secondary:hover { color: #114d3a; background: #edf5ef; border-color: #88af99; }
.run-danger { color: #963f31; background: #fff; border-color: #d2aca0; }
.run-danger:hover { color: #803326; background: #fff3ee; border-color: #bb8b7b; }
.run-text-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%; padding: .5rem .25rem; border: 0; border-radius: .25rem; color: var(--run-green); background: transparent; font-size: .82rem !important; line-height: 1.5; text-align: left; text-decoration: underline; text-underline-offset: .2em; }
.run-text-button:hover { color: #104d39; background: #edf5ef; }
.run-layout { display: grid; grid-template-columns: minmax(15rem, 22rem) minmax(0, 1fr); gap: 1.15rem; align-items: start; margin-top: 1rem; }
.run-layout > * { min-width: 0; }
.run-panel { min-width: 0; margin: 0 0 1rem; padding: 1.15rem; border: 1px solid var(--run-line); border-radius: .65rem; background: #fff; }
.run-panel-title { margin: 0 0 .8rem; font-size: 1.05rem; line-height: 1.5; }
.run-field { min-width: 0; margin-bottom: .9rem; }
.run-label { display: block; margin: 0 0 .35rem; font-size: .83rem; font-weight: 650; line-height: 1.55; }
.run-input, .run-select, .run-textarea { display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 44px; padding: .65rem .8rem; border: 1px solid #a5bdae; border-radius: .45rem; color: var(--run-ink); background: #fff; font-size: .88rem !important; line-height: 1.6; }
.run-input::placeholder, .run-textarea::placeholder { color: #64756a; opacity: 1; }
.run-textarea { min-height: 112px; resize: vertical; }
.run-root :is(input, select, textarea):disabled { background: #f2f5f0; color: #627368; opacity: 1; }
.run-field-note { margin: .35rem 0 0 !important; color: var(--run-muted); font-size: .77rem; line-height: 1.65; }
.run-check { display: flex; align-items: start; gap: .55rem; min-height: 44px; max-width: 100%; padding: .35rem 0; font-size: .83rem; cursor: pointer; }
input.run-check, .run-check input[type="checkbox"], .run-check input[type="radio"] { flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0; accent-color: var(--run-green); }
.run-check > :not(input) { min-width: 0; padding-top: .4rem; }
.run-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .65rem; margin-top: .9rem; }
.run-actions > * { min-width: 0; }

.run-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .7rem; margin: 1rem 0 1.2rem; padding: 0; list-style: none; }
.run-step { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: .3rem .7rem; min-width: 0; padding: .9rem; border: 1px solid var(--run-line); border-radius: .55rem; background: #fff; font-size: .83rem; }
.run-step > :not(.run-step-number) { min-width: 0; margin: 0; }
.run-step-number { display: grid; place-items: center; grid-row: 1 / span 3; width: 1.75rem; height: 1.75rem; margin-top: .05rem; border: 1px solid #c4d9ca; border-radius: 50%; color: #285c41; background: #eaf4ec; font-size: .78rem; font-weight: 700; line-height: 1; }
.run-target-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; margin: .7rem 0; padding: 0; list-style: none; }
.run-target { min-width: 0; padding: .95rem; border: 1px solid var(--run-line); border-radius: .55rem; background: #fff; }
.run-target-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: .45rem .75rem; margin-bottom: .6rem; }
.run-target-head > :first-child { flex: 1 1 10rem; min-width: 0; margin: 0; font-size: .95rem; line-height: 1.5; }
.run-badge { display: inline-flex; align-items: center; max-width: 100%; padding: .2rem .55rem; border: 1px solid #d1dfd4; border-radius: 1rem; color: #405e4c; background: #f0f5f0; font-size: .72rem; font-weight: 600; line-height: 1.5; }
.run-badge-muted { color: #5b6c62; background: #f4f6f3; border-color: #dce5dc; font-weight: 500; }
.run-private { min-width: 0; margin: 1rem 0; padding: 1rem; border: 1px solid #abc6b4; border-radius: .55rem; background: #f0f7f0; }
.run-private-value { display: block; min-width: 0; max-width: 100%; margin: .65rem 0; padding: .8rem; border: 1px solid #cadbce; border-radius: .4rem; color: #244c36; background: #fff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .78rem; line-height: 1.7; overflow-wrap: anywhere; word-break: break-word; white-space: pre-wrap; }
.run-private-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-top: .65rem; }
.run-code { display: block; min-width: 0; max-width: 100%; margin: .7rem 0; padding: .85rem; border: 1px solid #d6e2d8; border-radius: .45rem; background: #f5f8f3; color: #34513f; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .76rem; line-height: 1.75; overflow-wrap: anywhere; word-break: break-word; white-space: pre-wrap; }
.run-download { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; max-width: 100%; padding: .45rem 0; color: var(--run-green); font-size: .82rem; text-decoration: underline; text-underline-offset: .2em; }
.run-empty { padding: 1.25rem; border: 1px solid var(--run-line); border-radius: .6rem; background: #fff; color: var(--run-muted); font-size: .88rem; }
.run-job-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; margin: .8rem 0; padding: 0; list-style: none; }
.run-job { min-width: 0; padding: .95rem; border: 1px solid var(--run-line); border-radius: .55rem; background: #fff; }
.run-job > :first-child { margin-top: 0; }
.run-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .8rem; margin: .45rem 0; color: var(--run-muted); font-size: .75rem; line-height: 1.65; }
.run-artifact { min-width: 0; margin: .7rem 0; padding: .75rem .85rem; border: 1px solid #e0e7df; border-radius: .45rem; background: #f8faf6; font-size: .83rem; }
.run-hash { display: block; max-width: 100%; margin: .25rem 0; color: var(--run-muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .71rem; line-height: 1.65; overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
.run-history { min-width: 0; margin-top: 1rem; border-top: 1px solid var(--run-line); }
.run-history > summary { min-height: 44px; padding: .6rem 0; cursor: pointer; font-size: .84rem; font-weight: 600; }
.run-history-item { display: grid; grid-template-columns: minmax(7rem, .3fr) minmax(0, 1fr); gap: .35rem .9rem; min-width: 0; padding: .75rem 0; border-bottom: 1px solid #e2e9e1; font-size: .8rem; }
.run-history-item > * { min-width: 0; margin: 0; }
.run-profile-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .6rem; margin: .7rem 0; padding: 0; list-style: none; }
.run-profile-list > * { min-width: 0; margin: 0; }

@media (min-width: 1440px) {
  .run-layout { grid-template-columns: minmax(18rem, 25rem) minmax(0, 1fr); gap: 1.35rem; }
  .run-target-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .run-layout { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
}
@media (max-width: 600px) {
  .run-panel { padding: 1rem; }
  .run-toolbar { align-items: stretch; }
  .run-target-head > :first-child { flex-basis: 100%; }
  .run-history-item { grid-template-columns: minmax(0, 1fr); }
  .run-private { padding: .85rem; }
}
@media (max-width: 390px) {
  .run-root { font-size: .875rem; }
  .run-title { font-size: 1.4rem; }
  .run-panel, .run-target, .run-job, .run-empty { padding: .85rem; }
  .run-note, .run-warning, .run-status { padding: .75rem .85rem; }
  .run-step { padding: .8rem; }
  .run-actions, .run-private-actions { align-items: stretch; }
  .run-actions > .run-button, .run-private-actions > .run-button { flex: 1 1 100%; }
  .run-toolbar > .run-button { flex: 1 1 auto; }
  .run-private-value, .run-code { padding: .65rem; font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  .run-root *, .run-root *::before, .run-root *::after { scroll-behavior: auto !important; transition: none !important; }
}
