hawaiian-workbench {
  display: block;
  color: #202823;
  font-family: inherit;
  max-width: 100%;
  --ut-line: #ced2c8;
  --ut-accent: #1e5b4e;
  --ut-paper: #f8f8f2;
}
.ut-grid {
  display: grid;
  grid-template-columns: minmax(205px, 0.67fr) minmax(0, 1.75fr);
  border: 1px solid var(--ut-line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--ut-paper);
}
.ut-panel,
.ut-output {
  min-width: 0;
  padding: clamp(16px, 2.2vw, 28px);
}
.ut-panel {
  border-right: 1px solid var(--ut-line);
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 15px;
  background: #f0f1e9;
}
.ut-grid h2,
.ut-guide h2 {
  font-size: 1.07rem;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.02em;
  color: #202823;
  font-weight: 650;
}
.ut-panel label,
.ut-color-field {
  display: block;
  color: #303b33;
  font-size: 0.84rem;
  font-weight: 580;
  line-height: 1.4;
}
.ut-panel input[type='range'] {
  display: block;
  width: 100%;
  margin: 8px 0 1px;
  accent-color: var(--ut-accent);
  cursor: pointer;
}
.ut-panel output {
  float: right;
  color: #405a50;
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
}
.ut-panel select,
.ut-color-field input[type='text'] {
  border: 1px solid #a8b1a7;
  background: #fffefa;
  color: #24372b;
  border-radius: 4px;
  font: inherit;
  line-height: 1.3;
  padding: 8px;
  min-width: 0;
}
.ut-panel select {
  display: block;
  width: 100%;
  margin-top: 5px;
}
.ut-panel .ut-check {
  display: flex;
  align-items: center;
  gap: 7px;
}
.ut-panel .ut-check input {
  accent-color: var(--ut-accent);
  height: 16px;
  width: 16px;
}
.ut-panel small,
.ut-output-head span,
.ut-status {
  color: #535f56;
  font-size: 0.76rem;
  line-height: 1.45;
}
.ut-panel small {
  margin-top: -10px;
}
.ut-panel [hidden],
.ut-bench [hidden] {
  display: none !important;
}
.ut-bench button,
.ut-file,
.ut-actions a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fffefa;
  color: #273d34;
  border: 1px solid #acb5ac;
  border-radius: 4px;
  padding: 9px 12px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 580;
  line-height: 1.25;
  cursor: pointer;
  text-decoration: none;
}
.ut-panel .ut-file {
  display: flex;
  font-size: 0.84rem;
  justify-content: center;
  cursor: pointer;
}
.ut-file input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.ut-bench button:disabled {
  cursor: default;
  opacity: 0.5;
}
.ut-bench button:hover:not(:disabled),
.ut-actions a:hover,
.ut-file:hover {
  border-color: #476852;
}
.ut-bench :focus-visible,
.ut-file:focus-within {
  outline: 2px solid #246a94;
  outline-offset: 3px;
}
.ut-bench .ut-primary {
  background: #245a4c;
  color: white;
  border-color: #245a4c;
}
.ut-output {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ut-output-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px;
}
.ut-output-head span,
.ut-selected strong,
.ut-color-field input[type='text'],
.ut-swatches button span {
  font-family: ui-monospace, monospace;
}
.ut-stage,
.ut-mix-swatch,
.ut-swatches {
  border: 1px solid var(--ut-line);
  border-radius: 4px;
  overflow: hidden;
}
.ut-stage {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 200px;
  background: #dfe1d8;
}
.ut-checker {
  background-color: #eeeee8;
  background-image: conic-gradient(#dedfd8 25%, transparent 0 50%, #dedfd8 0 75%, transparent 0);
  background-size: 16px 16px;
}
.ut-stage canvas {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: clamp(280px, 46vh, 560px);
  object-fit: contain;
  touch-action: auto;
}
.ut-stage canvas.ut-draw-bridge {
  cursor: crosshair;
  touch-action: none;
}
.ut-actions {
  display: flex;
  align-items: stretch;
  gap: 7px;
  flex-wrap: wrap;
}
.ut-color-field > div {
  display: flex;
  margin-top: 6px;
  gap: 6px;
}
.ut-color-field input[type='color'] {
  border: 1px solid #a8b1a7;
  border-radius: 4px;
  background: #fffefa;
  height: 37px;
  width: 47px;
  flex: none;
  padding: 2px;
  cursor: pointer;
}
.ut-color-field input[type='text'] {
  width: 100%;
  font-size: 0.86rem;
  text-transform: uppercase;
}
.ut-mix-swatch {
  min-height: 165px;
  flex: 1;
  background: #3d933e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.ut-mix-swatch span:first-child {
  font-family: ui-monospace, monospace;
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  font-weight: 580;
  letter-spacing: -0.05em;
}
.ut-mix-swatch span + span {
  font-size: 0.82rem;
}
.ut-ramp,
.ut-swatches {
  display: flex;
}
.ut-ramp button {
  height: 42px;
  min-width: 0;
  flex: 1;
  border-radius: 0;
  border: 0;
  padding: 0;
  position: relative;
}
.ut-ramp button[aria-pressed='true']:after,
.ut-swatches button[aria-pressed='true']:after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 2px;
  pointer-events: none;
}
.ut-swatches {
  flex: 1;
  min-height: 210px;
}
.ut-swatches button {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  align-items: flex-end;
  justify-content: center;
  padding: 8px 2px;
  border-radius: 0;
  border: none;
}
.ut-swatches button span {
  font-size: 0.75rem;
  font-weight: 620;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.02em;
  padding: 4px;
}
.ut-selected {
  font-size: 0.85rem;
  margin: 0;
  display: flex;
  gap: 8px;
}
.ut-status {
  margin: 0;
  min-height: 1.5em;
  padding: 5px 1px 0;
}
.ut-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 38px);
  margin: 22px 0 40px;
}
.ut-guide section {
  border-top: 1px solid #b9c1b5;
  padding-top: 12px;
}
.ut-guide p {
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 8px 0;
  color: inherit;
}
@media (max-width: 700px) {
  .ut-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ut-panel {
    border-right: 0;
    border-bottom: 1px solid var(--ut-line);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: center;
  }
  .ut-panel h2,
  .ut-panel small {
    grid-column: 1/-1;
  }
  .ut-panel small {
    margin: 0;
  }
  .ut-panel .ut-file:has(+ small),
  .ut-panel:has(.ut-file:first-of-type) > .ut-file:first-of-type {
    grid-column: 1/-1;
  }
  .ut-guide {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ut-swatches {
    min-height: 150px;
  }
  .ut-mix-swatch {
    min-height: 150px;
  }
  .ut-output .ut-stage {
    min-height: 125px;
  }
  .ut-stage canvas {
    max-height: 300px;
  }
  .ut-color-field input[type='color'] {
    width: 35px;
  }
  .ut-color-field input[type='text'] {
    padding: 7px 2px;
  }
  .ut-actions > * {
    flex: 1 1 auto;
  }
}
@media (max-width: 480px) {
  .ut-panel label:has(select) {
    grid-column: 1/-1;
  }
  .ut-panel label:has(select) + label:has(input[type='range']) {
    grid-column: 1/-1;
  }
}
.ut-bench textarea {
  display: block;
  width: 100%;
  border: 1px solid #a8b1a7;
  border-radius: 4px;
  background: #fffefa;
  padding: 7px 8px;
  font: inherit;
  line-height: 1.4;
  color: #24372b;
  margin-top: 5px;
  resize: vertical;
}
.ut-placement {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ut-placement label {
  font-size: 0.82rem;
  font-weight: 580;
}
.ut-placement output {
  float: right;
  color: #45584d;
  font-family: ui-monospace, monospace;
}
.ut-placement input {
  display: block;
  width: 100%;
  accent-color: var(--ut-accent);
  margin: 6px 0;
}
.ut-shirt {
  background: #e0dfd6;
  min-height: 250px;
}
.ut-shirt canvas {
  cursor: grab;
  touch-action: none;
  max-height: clamp(330px, 54vh, 600px);
}
.ut-shirt canvas:active {
  cursor: grabbing;
}
@media (max-width: 700px) {
  .ut-panel label:has(textarea) {
    grid-column: 1/-1;
  }
  .ut-shirt {
    min-height: 240px;
  }
  .ut-placement {
    gap: 9px;
  }
  .ut-placement output {
    display: block;
    float: none;
  }
  .ut-bench[data-tool='lettering'] .ut-panel {
    grid-template-columns: 1fr 1fr;
  }
}

.ut-grid {--ut-line:#485057;--ut-accent:#ef8868;--ut-paper:#202429;color:#e5e9ec;border-radius:3px}
.ut-panel {background:#2b3035}
.ut-grid h2,.ut-panel label,.ut-color-field {color:#eff1f4}
.ut-panel output,.ut-grid small,.ut-output-head span,.ut-grid .ut-selected {color:#cad1d5}
.ut-panel :is(select,input[type=text],input[type=number]),.ut-panel .ut-file {background:#353b41;color:#f0f3f5;border-color:#687178}
.ut-output .ut-actions .ut-primary {background:#f49877;color:#231c19;border-color:#f49877}
.ut-grid .ut-placement output {color:#cad1d5}
.ut-grid textarea {background:#353b41;color:#f0f3f5;border-color:#687178}
