:root {
  color-scheme: light;
  --bg: #f4f5f2;
  --surface: #fff;
  --subtle: #f7f8f5;
  --ink: #182726;
  --muted: #55635e;
  --border: #d6ddd6;
  --deep: #132724;
  --green: #12664d;
  --mint: #8ce3b8;
  --red: #a43830;
  --amber: #855d17;
  --mono: "IBM Plex Mono", Consolas, "SFMono-Regular", monospace;
  --sans:
    "Work Sans", "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui,
    sans-serif;
  font: 15px/1.55 var(--sans);
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 280px;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
summary,
a {
  touch-action: manipulation;
}
button,
a,
summary,
select,
input[type="range"] {
  cursor: pointer;
}
button {
  background: none;
  border: 0;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
a {
  color: var(--green);
}
button,
summary,
input,
textarea,
select,
a {
  outline-offset: 3px;
}
:focus-visible {
  outline: 3px solid #1a977a;
}
button {
  transition:
    background-color 0.14s,
    color 0.14s,
    border-color 0.14s;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(26px, 2.6vw, 40px);
  font-weight: 680;
  letter-spacing: -0.055em;
  line-height: 1.2;
}
h2 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 15px;
  font-weight: 650;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
.icon {
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.skip {
  position: absolute;
  z-index: 20;
  left: 10px;
  top: -6rem;
  background: white;
  padding: 10px;
}
.skip:focus {
  top: 4px;
}
.mast {
  min-height: 64px;
  background: var(--deep);
  color: #f0f7f3;
  padding: 0 max(24px, calc((100vw - 1512px) / 2 + 42px));
  display: flex;
  align-items: stretch;
  gap: clamp(24px, 5vw, 85px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: white;
  text-decoration: none;
  letter-spacing: -0.06em;
  font-size: 26px;
  font-weight: 690;
  line-height: 1;
}
.mark {
  width: 24px;
  height: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  color: var(--mint);
}
.mark i {
  background: currentColor;
}
.mark i:last-child {
  transform: scale(0.83) rotate(-35deg);
}
nav {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex: 1;
}
nav a {
  color: #b4c4be;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  padding: 0 14px;
  position: relative;
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
}
nav a:hover,
.mastbtn:hover,
.account:hover {
  background: #203b34;
  color: white;
}
nav a[aria-current="page"] {
  color: #a8ecc8;
}
nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  height: 3px;
  bottom: 0;
  left: 13px;
  right: 13px;
  background: var(--mint);
}
.utilities {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.mastbtn,
.account {
  min-height: 40px;
  color: #dfebe4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  gap: 8px;
  font-size: 14px;
  font-weight: 550;
}
.mast-divider {
  height: 18px;
  width: 1px;
  background: #435650;
}
.avatar {
  width: 26px;
  height: 26px;
  background: #344e42;
  color: #c3ecd1;
  border: 1px solid #65846f;
  display: grid;
  place-items: center;
  font-size: 13px;
  border-radius: 50%;
}
main {
  max-width: 1512px;
  margin: 0 auto;
  padding: 27px clamp(20px, 3.2vw, 52px) 54px;
  outline: 0;
}
.breadcrumb {
  display: flex;
  min-height: 24px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
  margin-bottom: 13px;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.page-heading p {
  color: var(--muted);
  margin-top: 7px;
  font-size: 14px;
}
.button,
.smallbtn,
.primary,
.subtle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 5px;
  min-height: 40px;
  padding: 8px 15px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}
.button {
  border: 1px solid #bac6bd;
  background: var(--surface);
  color: var(--ink);
}
.button:hover,
.smallbtn:hover,
.iconbtn:hover,
.seg button:hover,
.subtle:hover {
  background: #edf2ec;
}
.button:active,
.smallbtn:active,
.iconbtn:active,
.subtle:active {
  background: #dce6dd;
}
.primary {
  color: #f7fff9;
  background: var(--green);
  border: 1px solid var(--green);
}
.primary:hover {
  background: #0c513e;
}
.primary:active {
  background: #063a2a;
}
.smallbtn,
.subtle {
  min-height: 32px;
  font-size: 13px;
  padding: 4px 9px;
}
.smallbtn {
  border: 1px solid var(--border);
  background: white;
}
.subtle {
  color: var(--green);
}
.danger {
  color: var(--red);
}
.iconbtn {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  flex: none;
}
.wide {
  width: 100%;
}
.mono,
td.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.dim {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.nowrap {
  white-space: nowrap;
}
.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(286px, 25%, 370px);
  align-items: start;
  gap: 18px;
}
.panel {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  min-width: 0;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 19px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  min-height: 59px;
}
.panel-head .heading,
.heading {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.panel-head h2 {
  font-size: 16px;
  letter-spacing: -0.025em;
}
.panel-head .heading > .icon {
  color: var(--green);
}
.seg {
  display: inline-flex;
  align-items: stretch;
  gap: 2px;
  background: #edf0eb;
  border-radius: 5px;
  padding: 3px;
}
.seg button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 3px 11px;
  border-radius: 3px;
  font-size: 12px;
  color: #4c5b52;
  font-weight: 550;
}
.seg button[aria-pressed="true"] {
  background: white;
  color: var(--green);
  box-shadow: 0 0 0 1px #cdd8ce;
}
.canvas-wrap {
  position: relative;
  isolation: isolate;
  background: #1b2525;
  color: #dbe7dc;
  overflow: hidden;
}
.canvas-viewport {
  display: grid;
  place-items: center;
  height: clamp(320px, 42vw, 510px);
  overflow: auto;
  padding: 30px 36px;
  background-color: #253030;
  background-image:
    linear-gradient(45deg, #283333 25%, transparent 25%),
    linear-gradient(-45deg, #283333 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #283333 75%),
    linear-gradient(-45deg, transparent 75%, #283333 75%);
  background-size: 16px 16px;
  background-position:
    0 0,
    0 8px,
    8px -8px,
    -8px 0;
}
.canvas-holder {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  line-height: 0;
  margin: auto;
  display: grid;
  place-items: center;
}
.canvas-holder > img,
.canvas-holder > canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 0 0 1px #ffffff23;
}
.canvas-holder {
  width: var(--fit-w, 100%);
  height: var(--fit-h, 100%);
}
.canvas-holder > img,
.canvas-holder > canvas {
  width: 100%;
  height: 100%;
}
.canvas-holder.grid::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, #fff9 1px, transparent 1px),
    linear-gradient(to bottom, #fff9 1px, transparent 1px);
  background-size: var(--gx) var(--gy);
  box-shadow: inset 0 0 0 1px #ffffff90;
}
.canvas-tag {
  position: absolute;
  top: 12px;
  left: 13px;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #15211fd9;
  color: #f2f9f5;
  border: 1px solid #ffffff35;
  border-radius: 3px;
  font-size: 11px;
  pointer-events: none;
  z-index: 2;
  line-height: 1.5;
}
.canvas-dev {
  position: absolute;
  right: 0;
  bottom: 0;
  background: #182321d9;
  color: #e2ebe5;
  font: 11px/1.5 var(--mono);
  padding: 3px 7px;
  pointer-events: none;
}
.canvas-tools,
.file-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  gap: 8px;
}
.file-meta {
  font-size: 13px;
  min-width: 0;
  flex: 1;
  justify-content: flex-start;
  padding: 0;
  flex-wrap: wrap;
}
.file-meta strong {
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.file-meta .mono {
  font-size: 12px;
  color: var(--muted);
}
.tool-group,
.actions,
.inline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.actions {
  flex-wrap: wrap;
}
.tool-group {
  flex: none;
  gap: 2px;
}
.tool-group output {
  min-width: 40px;
  text-align: center;
  font: 12px var(--mono);
}
.tool-sep {
  height: 17px;
  width: 1px;
  background: var(--border);
  margin: 0 5px;
}
.canvas-wrap:fullscreen,
.canvas-wrap.is-full {
  display: flex;
  flex-direction: column;
}
.canvas-wrap:fullscreen .canvas-viewport {
  height: 100%;
  flex: 1;
}
.canvas-wrap:fullscreen .canvas-tag {
  top: 20px;
}
.under-canvas {
  border-top: 1px solid var(--border);
  background: var(--subtle);
  padding: 13px 17px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.under-canvas h3 {
  font-size: 13px;
}
.hist {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 32px;
  max-width: 220px;
  flex: 1;
}
.hist b {
  flex: 1;
  min-width: 1px;
  background: #47765c;
}
.hist-ends {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}
.hist-ends b {
  display: block;
  font: 14px/1.35 var(--mono);
  color: var(--ink);
}
.side-head {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  gap: 17px;
  min-height: 59px;
}
.side-head button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 2px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 600;
}
.side-head .active {
  color: var(--green);
  border-color: var(--green);
}
.side-body {
  padding: 17px;
}
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.section-label h3 {
  font-size: 14px;
}
.count {
  color: var(--muted);
  font: 12px var(--mono);
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 4px;
  white-space: nowrap;
}
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  border-top: 1px solid var(--border);
}
.step:last-child {
  border-bottom: 1px solid var(--border);
}
.step-main {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  padding: 12px 0;
  min-height: 49px;
}
.step-num {
  font: 11px var(--mono);
  color: #657168;
}
.step-symbol {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: #e7eee6;
  border-radius: 4px;
}
.step-name {
  font-weight: 600;
  font-size: 14px;
}
.step-value {
  margin-left: auto;
  color: var(--muted);
  font: 12px var(--mono);
}
.step-details {
  background: var(--subtle);
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 10px;
}
.step-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}
.step-controls input {
  width: 76px;
  margin-right: auto;
}
.step-details input[type="range"] {
  width: 100%;
}
.add-step {
  display: flex;
  width: 100%;
  gap: 8px;
  min-height: 37px;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-weight: 550;
  border: 1px dashed #aebfaf;
  border-radius: 4px;
  margin-top: 12px;
}
.add-step:hover {
  background: #edf6ec;
}
.section-split {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
}
.field small {
  font-weight: 400;
  color: var(--muted);
}
.field input,
.field select,
.field textarea,
.step-controls input {
  min-height: 39px;
  border: 1px solid #bbc7bf;
  background: white;
  border-radius: 4px;
  padding: 7px 10px;
  min-width: 0;
  width: 100%;
  font-size: 14px;
  font-weight: 400;
}
input[type="range"] {
  accent-color: var(--green);
}
.field textarea {
  resize: vertical;
  min-height: 92px;
  line-height: 1.6;
}
.fields {
  display: grid;
  gap: 13px;
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.side-footer {
  padding: 0 17px 17px;
}
.side-footer .primary {
  min-height: 43px;
}
.stack {
  display: grid;
  gap: 18px;
}
.space-top {
  margin-top: 19px;
}
.pad {
  padding: 17px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.section-title h2 {
  font-size: 18px;
}
.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 76px;
  color: var(--muted);
  text-align: center;
  padding: 14px;
  font-size: 14px;
}
.empty .icon {
  color: #84978b;
}
.table-scroll {
  overflow: auto;
  max-width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
}
th {
  background: var(--subtle);
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
td,
th {
  padding: 10px 13px;
  border-bottom: 1px solid var(--border);
}
td {
  overflow-wrap: anywhere;
}
tr:last-child td {
  border-bottom: 0;
}
.textlink {
  color: var(--green);
  font-weight: 600;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 3px;
}
.state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.state i {
  width: 7px;
  height: 7px;
  background: #818d84;
  border-radius: 50%;
}
.state.running i,
.state.busy i {
  background: #347eb5;
}
.state.done i,
.state.success i,
.state.completed i,
.state.idle i {
  background: #27875a;
}
.state.failed i,
.state.lost i,
.state.interrupted i {
  background: #c3583d;
}
.state.queued i,
.state.pending i {
  background: #b17a2c;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.kpi {
  padding: 14px 17px;
  border-right: 1px solid var(--border);
}
.kpi:last-child {
  border: 0;
}
.kpi dt {
  color: var(--muted);
  font-size: 12px;
}
.kpi dd {
  margin: 5px 0 0;
  font: 600 23px/1.25 var(--mono);
  overflow-wrap: anywhere;
}
.kpi dd .unit {
  font-size: 12px;
}
.kpis dl {
  margin: 0;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  min-width: 0;
}
.event-list {
  padding: 6px 16px;
  max-height: 430px;
  overflow: auto;
}
.event-line {
  display: flex;
  gap: 12px;
  align-items: baseline;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  font-size: 13px;
}
.event-line time {
  font: 12px var(--mono);
  white-space: nowrap;
  color: var(--muted);
}
.event-line span {
  overflow-wrap: anywhere;
}
.gantt {
  padding: 14px 18px;
}
.gantt-row,
.gantt-axis {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 8px;
  align-items: center;
  font: 12px var(--mono);
  margin-bottom: 8px;
}
.track {
  height: 20px;
  position: relative;
  background: repeating-linear-gradient(
    to right,
    #eff2ed,
    #eff2ed calc(25% - 1px),
    #c7d2c9 25%
  );
  overflow: hidden;
}
.bar {
  position: absolute;
  height: 16px;
  top: 2px;
  min-width: 2px;
  background: #36896a;
  border: 1px solid #247153;
  border-radius: 2px;
}
.bar.running {
  background: #407cab;
}
.bar.lost {
  background: repeating-linear-gradient(45deg, #a8553f 0 3px, #e6ab8f 3px 5px);
}
.axis-range {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
}
.tile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 32%);
  gap: 18px;
}
.stagebar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 13px;
  border-bottom: 1px solid var(--border);
}
.stagebar select {
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
  max-width: 100%;
}
.legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  padding: 11px 15px;
}
.legend .state {
  gap: 4px;
}
.tile-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.tile-hit {
  position: absolute;
  border: 1px solid #ffffffa0;
  pointer-events: auto;
  background: transparent;
  padding: 0;
}
.tile-hit.running {
  background: repeating-linear-gradient(
    45deg,
    transparent 0 8px,
    #80c0e655 8px 11px
  );
}
.tile-hit.queued,
.tile-hit.pending {
  background: #17262180;
}
.tile-hit[aria-pressed="true"] {
  outline: 3px solid #ffe073;
  outline-offset: -3px;
  z-index: 1;
}
.tile-hit.retried::after {
  content: "↻";
  position: absolute;
  top: 0;
  right: 0;
  padding: 2px 3px;
  background: #783811;
  color: white;
  font-size: 12px;
  line-height: 1;
}
.split-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 50% 0 0);
  pointer-events: none;
}
#dense-tiles {
  width: 100%;
  height: 100%;
  pointer-events: auto;
  cursor: crosshair;
}
.filepath {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  color: var(--muted);
  min-width: 0;
}
.filepath button {
  color: var(--green);
  font: 13px var(--mono);
  overflow-wrap: anywhere;
}
.map {
  display: flex;
  align-items: stretch;
  height: 20px;
  border: 1px solid #b7c6b9;
  background: #e1e8df;
  overflow: hidden;
}
.map span {
  min-width: 0;
}
.map .allocated {
  background: var(--green);
}
.definition {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 13px;
  margin: 0;
}
.definition dt {
  font-size: 13px;
  color: var(--muted);
}
.definition dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.message,
.problem {
  font-size: 14px;
  padding: 10px 13px;
  background: #eef5ee;
  border-left: 3px solid var(--green);
  overflow-wrap: anywhere;
}
.problem {
  color: #8f3328;
  background: #f9eee8;
  border-color: #ae4a39;
}
.problem:empty,
.message:empty {
  display: none;
}
.space-top-sm {
  margin-top: 10px;
}
.notice {
  max-width: 530px;
  padding: 26px;
  margin: 20px auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
}
.notice p {
  color: var(--muted);
  margin: 8px 0 16px;
}
.gate {
  margin-top: 25px;
}
dialog {
  border: 1px solid #aabaae;
  padding: 0;
  width: min(440px, calc(100vw - 28px));
  max-height: min(88dvh, 820px);
  border-radius: 8px;
  color: var(--ink);
  box-shadow: 0 20px 60px #142c2533;
}
dialog::backdrop {
  background: #0d1d19a8;
}
.dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 21px;
  border-bottom: 1px solid var(--border);
}
.dialog-body {
  padding: 19px 21px;
  display: grid;
  gap: 15px;
}
.dialog-body fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 12px;
}
.dialog-body legend {
  font-weight: 650;
  margin-bottom: 8px;
}
.dialog-body .seg {
  justify-self: start;
}
.dialog-body .problem {
  margin: 0;
}
.dialog-menu {
  display: grid;
  gap: 4px;
}
.dialog-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  text-align: left;
  border-radius: 4px;
}
.dialog-menu button:hover {
  background: var(--subtle);
}
.dialog-menu .icon {
  color: var(--green);
}
#status {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  border-radius: 5px;
  background: #1a332c;
  color: white;
  padding: 9px 17px;
  max-width: calc(100vw - 32px);
  font-size: 14px;
  box-shadow: 0 4px 15px #13272427;
}
[hidden] {
  display: none !important;
}
.attempt {
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.attempt strong {
  margin-right: 6px;
}
.attempt .definition {
  margin-top: 7px;
}
.search {
  max-width: 55%;
  min-width: 0;
}
.search input {
  border: 0;
  border-bottom: 1px solid var(--border);
  max-width: 100%;
  width: 150px;
  min-width: 0;
  padding: 5px;
  background: transparent;
}
@media (max-width: 1050px) {
  .mast {
    gap: 25px;
    padding: 0 22px;
  }
  nav {
    gap: 3px;
  }
  nav a {
    padding: 0 9px;
  }
  .canvas-viewport {
    height: clamp(310px, 42vw, 440px);
    padding: 22px 20px;
  }
  .work-grid {
    grid-template-columns: minmax(0, 1fr) 282px;
    gap: 12px;
  }
  main {
    padding: 22px;
  }
  .hist-ends {
    gap: 12px;
  }
}
@media (max-width: 780px) {
  .mast {
    min-height: 57px;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 17px;
    align-items: center;
  }
  .brand {
    font-size: 24px;
    min-height: 55px;
  }
  .mark {
    height: 22px;
    width: 22px;
  }
  .utilities {
    gap: 5px;
  }
  .account,
  .mastbtn {
    min-height: 44px;
  }
  .mast-divider {
    margin: 0 2px;
  }
  nav {
    order: 3;
    flex: 0 0 calc(100% + 34px);
    margin: 0 -17px;
    justify-content: space-evenly;
    border-top: 1px solid #354a43;
    gap: 0;
  }
  nav a {
    min-height: 45px;
    flex: 1;
    padding: 3px 2px;
    font-size: 13px;
    gap: 6px;
  }
  nav a[aria-current="page"]::after {
    left: 13%;
    right: 13%;
  }
  .work-grid,
  .tile-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .side-head,
  .panel-head {
    min-height: 51px;
  }
  .side-body {
    padding: 15px;
  }
  .work-grid {
    gap: 15px;
  }
  .canvas-viewport {
    height: clamp(245px, 54vw, 405px);
    padding: 20px;
  }
  .side-body .field {
    font-size: 14px;
  }
  .side-body input,
  .side-body select,
  .field input,
  .field textarea,
  .field select {
    font-size: 16px;
  }
  .side-head button,
  .seg button,
  .smallbtn,
  .subtle,
  .add-step,
  .iconbtn,
  .button,
  .primary,
  .textlink,
  .dialog-menu button {
    min-height: 44px;
  }
  .iconbtn {
    width: 44px;
  }
  .seg button {
    min-height: 38px;
  }
  .tool-group .iconbtn {
    width: 40px;
  }
  .step-main {
    min-height: 54px;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .panel-head {
    padding: 9px 13px;
  }
  .kpi dd {
    font-size: 20px;
  }
  .canvas-tools {
    padding: 5px 11px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading .button {
    min-height: 41px;
  }
  .heading .icon {
    width: 17px;
  }
  main {
    padding: 18px 15px 40px;
  }
  .breadcrumb {
    margin-bottom: 7px;
  }
  .page-heading {
    margin-bottom: 16px;
  }
  .tool-group {
    gap: 0;
  }
  .section-title {
    margin-bottom: 8px;
  }
  .stagebar select,
  .field input,
  .field textarea,
  .field select {
    min-height: 44px;
  }
}
@media (max-width: 430px) {
  nav a {
    font-size: 12px;
    gap: 4px;
  }
  nav a .icon {
    width: 15px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .canvas-viewport {
    height: 235px;
    padding: 18px 12px;
  }
  .canvas-tools {
    align-items: flex-start;
  }
  .file-meta {
    row-gap: 0;
  }
  .file-meta .mono {
    flex-basis: 100%;
    margin-left: 24px;
  }
  .canvas-tools .tool-sep {
    margin: 0 1px;
  }
  .under-canvas {
    gap: 12px;
    padding: 12px;
  }
  .hist-ends {
    gap: 8px;
  }
  .panel-head .heading {
    gap: 6px;
  }
  .panel-head h2 {
    font-size: 15px;
  }
  .seg button {
    padding: 3px 8px;
  }
  .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .kpi {
    padding: 10px;
    border-bottom: 1px solid var(--border);
  }
  .kpi dd {
    font-size: 18px;
  }
  .panel-head .button,
  .panel-head .smallbtn {
    font-size: 12px;
  }
  .side-head {
    gap: 13px;
  }
  .page-heading .button {
    padding: 6px 10px;
  }
  .tool-group .iconbtn {
    width: 34px;
  }
  .admin-grid,
  .stack,
  .tile-layout {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
@media (max-width: 780px) {
  .side-head button,
  .seg button,
  .smallbtn,
  .subtle,
  .add-step,
  .button,
  .primary,
  .textlink,
  .dialog-menu button,
  .stagebar select,
  .field input,
  .field textarea,
  .field select {
    min-height: 48px;
  }
  .iconbtn,
  .tool-group .iconbtn {
    width: 48px;
    height: 48px;
  }
  .mastbtn,
  .account,
  nav a {
    min-height: 48px;
  }
  .file-meta strong {
    overflow-wrap: anywhere;
  }
  .step-controls {
    flex-wrap: wrap;
  }
}
