* { box-sizing: border-box; }
:root {
  color-scheme: light;
  --ink: #163b2e;
  --green: #305f4a;
  --muted: #4c6155;
  --line: #cbd4c4;
  --paper: #fbf8ef;
  --surface: #fffdf8;
  --sun: #ffd16c;
  font-family: "Segoe UI", system-ui, sans-serif;
}
body { margin: 0; background: var(--paper); color: var(--ink); }
[hidden] { display: none !important; }
button { color: inherit; font: inherit; touch-action: manipulation; cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--green); }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid #2066aa;
  outline-offset: 2px;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px max(16px, calc((100% - 1510px) / 2));
  border-bottom: 1px solid var(--line);
}
.wordmark { white-space: nowrap; font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -.04em; }
.wordmark span { color: #527a3d; margin-inline-end: 3px; }
.back { text-align: right; font-size: .95rem; }
.workspace {
  width: min(100% - 32px, 1510px);
  margin: clamp(14px, 3vw, 40px) auto;
  display: grid;
  gap: clamp(14px, 2vw, 28px);
  align-items: start;
}
.art {
  margin: 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 958 / 718;
  border-radius: 20px;
  border: 2px solid var(--line);
  background: white;
}
.art img { position: absolute; width: 165.448852%; left: -3.549061%; top: -13.509749%; }
.mixer {
  min-width: 0;
  container-type: inline-size;
  padding: clamp(16px, 2.35vw, 30px);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 24px;
}
.preview {
  background: #edf2e5;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 16px 0 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sample {
  flex: none;
  width: clamp(45px, 6.2vw, 67px);
  aspect-ratio: 1;
  border-radius: 45% 53% 47% 47%;
  background: var(--mix, transparent);
  border: 2px solid #68755b;
  box-shadow: inset 0 0 0 3px #ffffff70;
}
.sample[data-empty="true"] { border-style: dashed; }
.preview-label, #mix-base { display: block; color: var(--muted); font-size: .82rem; }
#mix-name { display: block; font-size: clamp(17px, 2vw, 26px); line-height: 1.14; }
.preview .quiet { margin-inline-start: auto; flex: 0 0 auto; }
.quiet, .primary {
  border: 1px solid #82967f;
  border-radius: 11px;
  min-height: 44px;
  padding: 7px 11px;
  background: #fff;
  font-weight: 650;
  line-height: 1.22;
}
.primary { background: var(--sun); border-color: #ad812e; }
.quiet:hover:enabled { background: #f0f6ec; }
.primary:hover:enabled { background: #ffc94e; }
.quiet:disabled, .primary:disabled { opacity: .55; }
.save-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.save-note {
  margin: 9px 0 0;
  color: #325544;
  font-size: .91rem;
  line-height: 1.42;
}
.palettes, .my-colors { margin-top: 17px; border-top: 1px solid var(--line); padding-top: 11px; }
.palettes summary { cursor: pointer; min-height: 34px; font-weight: 750; }
.palette-start {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: .9rem;
}
.palette-start button { flex: none; }
.swatches { display: flex; flex-wrap: wrap; gap: 4px; }
.swatch {
  display: grid;
  place-items: center;
  min-width: 45px;
  min-height: 45px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  padding: 3px 7px;
  font-size: .86rem;
}
.swatch-dot {
  border-radius: 50%;
  background: var(--swatch);
  border: 1px solid #567061;
  width: 29px;
  height: 29px;
}
.swatch:hover { background: #eff4ec; }
.swatch[aria-pressed="true"] { border-color: #406048; background: #e8efe4; }
.swatch[aria-pressed="true"] .swatch-dot { outline: 1px solid #406048; outline-offset: 2px; }
#saved .swatch { grid-template-columns: auto auto; gap: 6px; border-color: var(--line); }
#saved .swatch[aria-pressed="true"] { border-color: #406048; }
.my-colors h2 { margin: 0 0 5px; font-size: 1.05rem; }
.my-colors p { margin: 0; color: var(--muted); font-size: .9rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

button[aria-disabled="true"] { opacity: .52; }
.drawing { min-width: 0; }
.drawing-tools, .panel-heading, .panel-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.drawing-tools { margin: 0 0 8px; }
.drawing-tools h2 { margin: 0; font-size: 1.13rem; }
.drawing-tools .help-button { margin-inline-start: auto; }
.brush-sample {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 1px solid #567061;
  background: var(--brush, #83c95d);
}
.art { isolation: isolate; border: 0; outline: 2px solid var(--line); outline-offset: -2px; }
.art canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 85.097493%;
  touch-action: none;
  cursor: crosshair;
  mix-blend-mode: multiply;
}
.panel-heading { justify-content: space-between; }
.panel-heading h1 { margin: 0; font-size: clamp(24px,3vw,40px); letter-spacing: -.045em; }
#mix-toggle, .palette-toggle {
  color: inherit;
  text-align: start;
  background: transparent;
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  padding: 4px 2px;
  font-weight: 750;
}
#mix-toggle .fold-icon, .palette-toggle span {
  display: inline-block;
  font-size: .78em;
  transform: rotate(0);
}
#mix-toggle[aria-expanded="false"] .fold-icon, .palette-toggle[aria-expanded="false"] span { transform: rotate(-90deg); }
.mix-hint { margin: 5px 0 0; color: var(--muted); }
.workspace[data-mixer-open="false"] .mixer { padding-block: 7px; }
.workspace[data-mixer-open="false"] .drawing { width: min(100%,1050px); margin: auto; }
#pots { display: grid; gap: 7px; }
.pot {
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 0;
  padding: 4px 11px 4px 4px;
  background: white;
  display: grid;
  grid-template-columns: minmax(72px, 19%) minmax(0,1fr);
  gap: 9px;
  align-items: center;
}
.pot label { display: flex; align-items: center; gap: 3px; font-weight: 720; }
.pot-photo {
  display: block;
  flex: 0 0 clamp(29px,4.5vw,55px);
  height: 45px;
  background: url("Designs/Farbtoepfe.png") var(--pot-position) center / 400% auto no-repeat;
}
.amount {
  margin: 0;
  width: 100%;
  height: 51px;
  padding: 0 2px;
  appearance: none;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: ew-resize;
  touch-action: pan-y;
}
.amount::-webkit-slider-runnable-track {
  height: 33px;
  border-radius: 100vmax;
  border: 1px solid #6a806f;
  background: linear-gradient(to right, var(--pigment) 0 var(--amount), #d8e2d3 var(--amount) 100%);
}
.amount::-moz-range-track {
  height: 33px;
  border-radius: 100vmax;
  border: 1px solid #6a806f;
  background: linear-gradient(to right, var(--pigment) 0 var(--amount), #d8e2d3 var(--amount) 100%);
}
.amount::-webkit-slider-thumb {
  appearance: none;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  border: 3px solid var(--thumb);
  background: #fffefa;
  margin-top: -6px;
  box-shadow: 0 2px 3px #0003;
}
.amount::-moz-range-thumb {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  border: 3px solid var(--thumb);
  background: #fffefa;
  box-shadow: 0 2px 3px #0003;
}
.symbol { min-width: 44px; min-height: 44px; }
.save-heart {
  min-width: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.save-heart span:first-child { font-size: 1.42rem; }
.save-dot { width: 20px; height: 20px; border: 1px solid #576457; border-radius: 50%; background: var(--preview-color,white); }
.panel-line { justify-content: space-between; }
#default-palette > button { margin-block: 3px 6px; }
@media (min-width: 900px) {
  .workspace[data-mixer-open="true"] { grid-template-columns: minmax(0,1fr) minmax(485px,.82fr); grid-template-areas: "drawing mixer"; }
  .drawing { grid-area: drawing; }
  .mixer { grid-area: mixer; }
  .workspace[data-mixer-open="false"] { display: flex; flex-direction: column; align-items: stretch; }
  .workspace[data-mixer-open="false"] .mixer { order: -1; }
}
@media (max-width: 899px) {
  .workspace { width: min(calc(100% - 24px), 750px); }
  .workspace[data-mixer-open="true"] .art { width: min(100%,250px); margin-inline: auto; }
  .workspace[data-mixer-open="false"] .mixer { order: -1; }
}
@media (max-width: 450px) {
  .mixer { padding: 11px; border-radius: 17px; }
  .preview { gap: 7px; padding: 8px; }
  .preview .quiet { font-size: .8rem; padding-inline: 7px; }
}

.drawing-modes { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0 0 7px; }
.drawing-modes [role="group"] { display: flex; flex-wrap: wrap; gap: 5px; }
.drawing-modes [aria-pressed="true"] { background: #ffd16c; border-color: #896629; }
.drawing-hint { margin: 0 0 7px; color: var(--muted); font-size: .92rem; }
.brush-panel { display: flex; align-items: center; min-height: 44px; gap: 7px; padding: 0 7px; }
.brush-panel label { font-weight: 650; font-size: .9rem; }
#brush-size { width: clamp(85px,12vw,152px); min-height: 44px; touch-action: pan-y; accent-color: #416853; }
#brush-dot { width: var(--brush-size,12px); height: var(--brush-size,12px); border-radius: 50%; background: #365b47; }
.art canvas { mix-blend-mode: normal; }
.art canvas[data-mode="fill"] { touch-action: pan-y; cursor: pointer; }

.letters-panel { margin: 0 0 8px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.letters-panel summary { min-height: 44px; padding: 4px; cursor: pointer; font-weight: 720; }
#chosen-letter {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  margin-inline-start: 7px;
  padding: 2px 5px;
  border-radius: 6px;
  background: #ffd16c;
  font-size: 1.22rem;
}
.letter-case { display: flex; gap: 6px; margin: 3px 0 6px; }
#letter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); gap: 4px; margin-bottom: 4px; }
.letter-choice { padding: 4px; font-size: 1.2rem; }
.drawing button.quiet[aria-pressed="true"] { background: #ffd16c; border-color: #896629; }
.art canvas[data-mode="letters"] { touch-action: pan-y; }
.letter-guide {
  position: absolute;
  left: var(--letter-x,50%);
  top: var(--letter-y,42.55%);
  transform: translate(-50%,-50%);
  min-width: 28px;
  min-height: 28px;
  padding: 2px 4px;
  outline: 2px dashed #224936;
  border-radius: 5px;
  background: #fffef5e6;
  color: #224936;
  text-align: center;
  font-weight: 720;
  pointer-events: none;
  display: none;
}
.art canvas[data-mode="letters"]:focus-visible + .letter-guide { display: block; }
