*, *::before, *::after { box-sizing: border-box; }
:root {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  color: #232e2b;
  background: #f7f8f4;
  color-scheme: light;
  --paper: #fffefb;
  --ink: #232e2b;
  --muted: #586660;
  --line: #d7dfd6;
  --thread: #265f4f;
  --thread-dark: #174735;
  --tint: #e7f1e5;
  --focus: #286e5a;
}
:root:lang(ja) { font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: var(--thread-dark); text-underline-offset: .22em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--line); background: var(--paper); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-size: 21px; font-weight: 720; letter-spacing: -.045em; }
.brand-mark {
  display: grid; place-items: center; width: 33px; height: 33px;
  background: var(--thread-dark); border-radius: 9px; color: #fffbea;
}
.brand-mark::before {
  content: ""; width: 5px; height: 5px; box-shadow: 0 -7px, -7px 0, 7px 0, 0 7px;
  background: #f0c17c;
}
.header-tools { display: flex; align-items: center; justify-self: end; gap: 8px; }
.header-button {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); background: var(--paper); font-size: 13px; font-weight: 650; white-space: nowrap;
}
.header-button:is(:hover, :focus-visible), .language-menu[open] > summary { border-color: var(--thread); }
.account-button { color: var(--thread-dark); background: var(--tint); border-color: transparent; }
.language-menu { position: relative; }
.language-menu > summary { list-style: none; cursor: pointer; }
.language-menu > summary::-webkit-details-marker { display: none; }
.language-chevron {
  width: 7px; height: 7px; border: solid currentColor; border-width: 0 1px 1px 0;
  transform: translateY(-2px) rotate(45deg);
}
.language-options {
  position: absolute; z-index: 2; inset: calc(100% + 6px) 0 auto auto;
  min-width: 150px; padding: 4px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--paper); box-shadow: 0 8px 22px #2e25201a;
}
.language-options a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px;
  padding: 6px 9px; border-radius: 6px; color: var(--ink); font-size: 13px; text-decoration: none;
}
.language-options a:hover, .language-options a[aria-current] { color: var(--thread-dark); background: var(--tint); }
.language-options small { color: var(--muted); white-space: nowrap; }
.account-dialog {
  width: min(420px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto;
  padding: 20px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--paper);
  box-shadow: 0 12px 38px #2e25202b;
}
.account-dialog::backdrop { background: #2e252070; }
.account-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.account-heading h2 { margin: 0; font-size: 19px; }
.account-dialog form { display: grid; gap: 8px; margin-top: 14px; }
#account-google { margin-top: 12px; }
.account-dialog label { font-size: 13px; }
.account-dialog input {
  min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid #cbbbad;
  border-radius: 6px; background: var(--paper); color: var(--ink); font-size: 16px;
}
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.account-actions .secondary, #account-sign-out { min-height: 44px; padding-inline: 12px; font-size: 13px; }
#account-identity { color: var(--muted); overflow-wrap: anywhere; font-size: 14px; }
#account-balance { margin: 8px 0 16px; color: var(--thread-dark); font-size: 24px; font-weight: 700; }
.intro { max-width: 750px; margin: clamp(28px, 4.3vw, 58px) auto clamp(22px, 3vw, 36px); text-align: center; text-wrap: balance; }
.intro h1, .case-wall h2 {
  color: var(--ink); font-family: "Iowan Old Style", "Baskerville", "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  font-weight: 550; letter-spacing: -.05em; line-height: 1.08;
}
.intro h1 { margin: 0; font-size: clamp(34px, 4.35vw, 61px); }
.intro p { max-width: 650px; margin: 13px auto 0; font-size: 15px; color: var(--muted); line-height: 1.6; }
.workbench {
  display: grid; align-items: stretch; grid-template-columns: minmax(235px, 26%) minmax(0, 1fr);
  border: 1px solid var(--line); background: var(--paper); border-radius: 20px; overflow: clip;
  box-shadow: 0 4px 20px #223b2910;
}
.controls { padding: 24px 21px; min-width: 0; background: #f9faf6; }
.primary {
  display: flex; align-items: center; justify-content: center; gap: .56em;
  background: var(--thread); color: #fffaf5; border: 1px solid var(--thread);
  min-height: 46px; padding: 10px 17px; border-radius: 8px; font-weight: 650; font-size: 14px;
}
.primary:hover { background: var(--thread-dark); }
.file-button {
  display: grid; grid-template-columns: 34px 1fr; gap: 1px 10px; align-items: center;
  position: relative; cursor: pointer; border: 1px dashed #71947d; border-radius: 10px;
  background: #f2f6eb; padding: 14px 12px; color: var(--thread-dark);
}
.file-button:hover { background: var(--tint); }
.file-button strong { font-size: 14px; }
.file-button input { opacity: 0; position: absolute; inset: 0; width: 100%; cursor: pointer; }
.file-button:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.upload-icon { grid-row: span 2; display: grid; place-items: center; min-height: 32px; width: 32px; line-height: 1; background: #dcead9; border-radius: 8px; font-size: 22px; }
.file-types, .file-status, .field-note { color: var(--muted); font-size: 12px; line-height: 1.5; }
.file-types { font-size: 11px; }
.file-status { margin: 3px 0; overflow-wrap: anywhere; }
.craft-setting { margin: 0 0 16px; padding: 0; border: none; }
.craft-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.craft-options a { display: inline-flex; gap: 6px; align-items: center; padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--ink); font-size: 13px; text-decoration: none; min-height: 38px; }
.craft-options a[aria-current="page"] { background: var(--tint); border-color: #78a186; color: var(--thread-dark); font-weight: 650; }
.radio-mark { width: 11px; height: 11px; border: 1px solid #89988c; border-radius: 50%; }
[aria-current="page"] .radio-mark { border: 3px solid var(--thread); }
.sample-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; font-size: 12px; }
.extra-samples > a, .extra-samples summary { display: inline-block; min-height: 36px; padding: 10px 0; color: var(--thread-dark); cursor: pointer; }
.extra-samples summary { display: list-item; }
.extra-samples .text-button { display: block; }
.extra-samples .text-button, .extra-samples > a { padding-inline: 0; }
.file-status[data-error="true"] { color: #a3322a; font-weight: 650; }
fieldset { padding: 13px 0 0; margin: 17px 0 2px; border: none; border-top: 1px solid var(--line); min-width: 0; }
legend { color: var(--ink); font-size: 15px; font-weight: 660; padding-right: 9px; }
.slider-label, .select-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
output { color: var(--thread-dark); font-weight: 650; font-variant-numeric: tabular-nums; }
input[type="range"] { margin: 1px 0 7px; width: 100%; height: 30px; accent-color: var(--thread); }
input[type="range"]:disabled { opacity: .45; }
.axes { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.setting-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.secondary, select { color: var(--ink); border: 1px solid #cbbbad; border-radius: 6px; background: var(--paper); font-size: 12px; padding: 7px 8px; min-height: 38px; }
.secondary[aria-pressed="true"] { border-color: var(--thread); background: var(--tint); color: var(--thread-dark); }
.size-setting { margin-bottom: 9px; }
.text-button { border: 0; padding: 4px 5px; background: none; color: var(--thread-dark); font-size: 12px; min-height: 34px; text-decoration: underline; text-underline-offset: 3px; }
.field-note { margin: 5px 0 0; }
.field-note:empty { display: none; }
.photo-privacy { margin-top: 6px; }
.results { min-width: 0; min-height: 100%; padding: 23px 24px; border-left: 1px solid var(--line); }
.preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; row-gap: 0; }
.preview-grid > figure { display: grid; grid-row: 1 / 3; grid-template-rows: subgrid; }
figure { margin: 0; min-width: 0; }
.figure-heading { min-height: 40px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 5px; padding-bottom: 8px; }
.figure-heading strong { font-size: 14px; font-weight: 670; }
.figure-heading > span { color: var(--muted); font-size: 12px; }
canvas { display: block; width: 100%; max-width: 100%; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 10px; background: #edf0e7; }
.photo-canvas { touch-action: none; cursor: grab; }
.photo-canvas.dragging { cursor: grabbing; }
.photo-canvas.picking { cursor: crosshair; }
.view-switch { display: flex; border: 1px solid var(--line); border-radius: 7px; }
.view-switch button { border: 0; background: none; color: var(--muted); border-radius: 6px; min-width: 43px; min-height: 31px; padding: 3px 5px; font-size: 12px; }
.view-switch button[aria-pressed="true"] { background: var(--tint); color: var(--thread-dark); font-weight: 700; }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 17px; padding: 0 0 15px; border-bottom: 1px solid var(--line); }
.result-bar p { margin: 0; }
#pattern-status { font-size: 14px; font-weight: 650; line-height: 1.5; }
.result-bar .print-note { margin-top: 4px; color: var(--muted); font-size: 12px; }
.download { white-space: nowrap; }
.palette-area { padding-top: 12px; }
.palette-area h2 { font-size: 13px; margin: 0 0 7px; }
.palette-hint { margin-bottom: 8px; }
.palette { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.palette li { display: flex; align-items: center; font: 12px/1.4 ui-monospace, monospace; gap: 5px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; }
.palette .swatch { width: 12px; height: 12px; display: inline-block; border: 1px solid #0003; border-radius: 2px; }
.palette .palette-action { padding: 0; }
.palette-action button, .restore-colors button {
  display: flex; align-items: center; gap: 5px; min-height: 34px; padding: 4px 7px;
  border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit;
}
.palette-action button:hover, .restore-colors button:hover { background: var(--tint); }
.exclude-color-icon { color: var(--thread-dark); font-size: 17px; line-height: 1; }
.excluded-palette { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.excluded-palette h3 { margin: 0 0 5px; font-size: 13px; }
.restore-colors { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.restore-colors button { border: 1px solid var(--line); color: var(--thread-dark); font-size: 12px; }
.download span { font-size: 17px; }
footer {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 22px; padding: 19px 0 28px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.65;
}
footer summary { cursor: pointer; width: fit-content; }
footer details p { margin: 4px 0; }
footer details[open] { flex-basis: 100%; }
.stats-details label { display: flex; align-items: center; gap: 5px; }
.case-wall { margin: clamp(44px, 6vw, 80px) 0 34px; scroll-margin-top: 16px; }
.case-wall-header { position: relative; text-align: center; margin-bottom: 22px; }
.case-wall h2 { margin: 0; font-size: clamp(30px, 3.6vw, 44px); }
.case-wall-header p { margin: 8px auto 2px; color: var(--muted); line-height: 1.6; font-size: 14px; }
.gallery-link { display: inline-flex; align-items: center; min-height: 40px; gap: 5px; font-size: 13px; font-weight: 650; }
.case-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.case-card {
  position: relative; min-width: 0; overflow: clip; border: 1px solid var(--line);
  border-radius: 15px; background: var(--paper); transition: border-color .15s ease;
}
.case-card:is(:hover, :focus-within) { border-color: #77937b; }
.case-visuals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.case-visuals figure { position: relative; }
.case-visuals img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--paper); }
.case-visuals figcaption { position: absolute; left: 10px; bottom: 9px; max-width: calc(100% - 20px); border-radius: 5px; background: #15241ee0; color: white; padding: 3px 7px; font-size: 11px; }
.case-body { padding: 14px 16px 13px; }
.case-body h3 { margin: 0; font-size: 17px; line-height: 1.4; }
.case-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 8px; }
.case-details { color: var(--muted); font-size: 12px; }
.case-try { display: inline-flex; align-items: center; min-height: 36px; gap: 4px; font-size: 13px; font-weight: 650; text-decoration: none; }
.case-try::after { content: ""; position: absolute; inset: 0; }
.case-try:focus-visible::after { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: 15px; }
body[data-craft="stitch"] [data-case-view="beads"], body[data-craft="beads"] [data-case-view="stitch"],
[data-gallery="stitch"] [data-case-view="beads"], [data-gallery="beads"] [data-case-view="stitch"] { display: none; }
.pet-gallery { margin: 0 0 35px; }
.gallery-picker { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; font-size: 13px; font-weight: 650; }
:lang(ja) .intro h1, :lang(ja) .case-wall h2 { font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; }

@media (max-width: 860px) {
  .shell { width: calc(100% - 36px); }
  .workbench { grid-template-columns: 218px minmax(0, 1fr); }
  .controls, .results { padding: 16px; }
  .preview-grid { column-gap: 10px; }
  .case-list { gap: 14px; }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 24px); }
  .masthead-inner { min-height: 58px; gap: 5px; }
  .header-tools { gap: 4px; }
  .header-tools .header-button { padding-inline: 7px; gap: 5px; font-size: 12px; }
  .brand { gap: 5px; font-size: 17px; }
  .brand-mark { width: 26px; height: 29px; }
  .language-options { inset: calc(100% + 6px) auto auto 0; }
  .intro { margin: 27px auto 20px; }
  .intro p { margin-top: 9px; font-size: 14px; }
  .workbench { display: flex; flex-direction: column; padding: 15px; border-radius: 14px; }
  .controls, .results { display: contents; }
  .input-panel { order: 0; }
  .craft-setting { margin-bottom: 12px; }
  .preview-grid { order: 1; margin-top: 7px; column-gap: 9px; }
  .figure-heading { align-content: start; min-height: 66px; }
  .figure-heading > span { width: 100%; }
  .crop-settings { order: 2; }
  .material-settings { order: 3; }
  .result-bar { order: 4; gap: 7px; }
  .palette-area { order: 5; }
  .result-bar .print-note { overflow-wrap: anywhere; }
  .result-bar .download { min-height: 44px; padding-inline: 11px; }
  .case-wall { margin-top: 43px; }
  .case-list { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .case-body { padding: 11px 13px 9px; }
}
@media (pointer: coarse) {
  .craft-options a, .secondary, select, .view-switch button, .case-try, .text-button, .gallery-link, .extra-samples > a, .extra-samples summary { min-height: 44px; }
  .palette-action button, .excluded-palette button { min-height: 44px; }
  input[type="range"] { height: 36px; }
}

:root {
  --paper: #fffdf8;
  --ink: #292e27;
  --muted: #5f675a;
  --line: #dedfd1;
  --thread: #365746;
  --thread-dark: #283e34;
  --tint: #edf0e3;
  --accent: #a75138;
  --focus: #426b58;
  background: #f8f7ef;
}
.shell { width: min(1140px, calc(100% - 48px)); }
main.shell { margin-block: 0 3rem; }
.masthead-inner { min-height: 68px; }
.brand { font-weight: 760; }
.brand-mark { border-radius: 50%; }
.fawn-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.25rem; }
.fawn-nav > a { text-decoration: none; font-size: .9rem; font-weight: 620; }
.fawn-nav > a:hover { text-decoration: underline; }
.fawn-nav .language-menu { position: relative; }
.fawn-nav .language-options a { white-space: nowrap; }
.fawn-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  gap: clamp(1.2rem, 5vw, 4.25rem); padding: clamp(2rem, 6vw, 5rem) 0 2.5rem;
}
.fawn-hero h1, .text-page h1 {
  font-family: "Instrument Serif", Georgia, "Hiragino Mincho ProN", "Songti SC", serif;
  font-size: clamp(2.45rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 500;
  max-width: 15ch; margin: 0 0 1.1rem;
}
:lang(ja) .fawn-hero h1, :lang(zh) .fawn-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.7rem); font-weight: 650; letter-spacing: -.015em; line-height: 1.14;
}
.fawn-hero p, .text-page > p { max-width: 54ch; color: var(--muted); line-height: 1.65; margin: 0 0 1.25rem; }
.hero-visuals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; align-items: center; }
.hero-visuals figure, .detail-card figure { margin: 0; }
.hero-visuals figure { border: 1px solid var(--line); background: var(--paper); border-radius: 1rem; overflow: hidden; }
.hero-visuals img, .detail-card img { display:block; width:100%; aspect-ratio:1; object-fit: cover; }
.hero-visuals figure:nth-child(2) img { image-rendering: auto; }
.hero-visuals figcaption, .detail-card figcaption { padding: .5rem .65rem; font-size: .82rem; line-height:1.25; color: var(--muted); }
.button-row { display:flex; gap: .65rem; flex-wrap: wrap; align-items:center; }
.button-row a, .price-card a, .editor-actions a { text-decoration:none; min-height:44px; display:inline-flex; align-items:center; }
main .primary { border-radius:.65rem; }
.fawn-section { margin-block: 2.6rem; scroll-margin-top: 15px; }
.fawn-section h2 { font-size: clamp(1.45rem,3vw,2rem); font-weight: 690; margin:0 0 1rem; letter-spacing:-.025em; }
.editor-frame { display:block; width:100%; border:0; height: 820px; background:var(--paper); border-radius: 1rem; }
.editor-actions { margin-top:.75rem; display:flex; gap: 1rem; flex-wrap:wrap; justify-content: flex-end; }
.fawn-editor { background: var(--paper); padding: .75rem; }
.fawn-editor .workbench { margin:0; }
.fawn-editor .file-types { white-space:normal; }
.editor-compare { display:grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: .75rem 0 0; padding: .8rem; border-top:1px solid var(--line); }
.editor-compare figure { margin:0; min-width:0; }
.editor-compare canvas { width:100%; display:block; aspect-ratio:1; border-radius:.4rem; }
.editor-compare figcaption { margin-bottom:.4rem; font-weight:640; }
.editor-save { padding:.55rem .6rem 0; }
#bead-material { max-width:100%; }
#bead-resolution { margin-bottom:-.15rem; }
#bead-dimensions { margin-top:.45rem; }
.tool-grid, .step-grid, .price-grid, .detail-grid { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap:.8rem; }
.tool-link, .step-card, .price-card, .detail-card {
  background:var(--paper); border:1px solid var(--line); border-radius:.85rem; padding:1rem; min-width:0;
}
.tool-link { display:block; text-decoration:none; color:var(--ink); }
.tool-link:hover { border-color:var(--thread); }
.tool-link b { display:block; margin-bottom:.35rem; color:var(--thread-dark); }
.tool-link span, .step-card p, .price-card p, .detail-card p { color:var(--muted); margin:.45rem 0; font-size:.94rem; line-height:1.55; }
.step-card h3, .detail-card h3, .price-card h2 { font-size:1.05rem; margin:0; }
.detail-card .case-display { display:grid; grid-template-columns: 1fr 1fr; gap:.25rem; margin-bottom:.65rem; }
.detail-card .case-display img { border-radius:.6rem; }
.detail-card a { display:inline-flex; align-items:center; min-height:44px; margin-top:.3rem; font-weight:640; }
.fawn-questions details { border-top: 1px solid var(--line); padding: .85rem 0; }
.fawn-questions details:last-child { border-bottom: 1px solid var(--line); }
.fawn-questions summary { cursor:pointer; font-weight:650; }
.fawn-questions p { line-height:1.62; color:var(--muted); max-width:78ch; margin: .7rem 0 .1rem; }
.fawn-footer { border-top:1px solid var(--line); padding: 1.1rem 0 1.7rem; display:flex; gap: .4rem 1rem; flex-wrap:wrap; align-items:center; color:var(--muted); font-size:.86rem; line-height:1.55; }
.fawn-footer span { margin-right:auto; }
.fawn-footer a { display:inline-flex; align-items:center; min-height:32px; }
.text-page { padding: 2.1rem 0 1rem; }
.text-page h1 { max-width:unset; }
.text-page p { line-height:1.62; }
.text-page section { margin-block:1.6rem; }
.price-card .price-amount { font-size:2rem; color:var(--ink); font-weight:720; margin-top:.75rem; line-height:1.15; }
.price-card a { margin-top:.8rem; }
.price-card .price-note { font-size:.83rem; }
.form-row { display:flex; flex-wrap:wrap; gap: .65rem; align-items:center; }
.form-row > label, .calc-controls > label { font-weight:630; }
.fawn-commerce .checkout-status, .calc-results { padding:.8rem; background:var(--tint); border-radius:.55rem; }
.fawn-commerce .preview-pair { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:.8rem; margin:1rem 0; max-width:620px; }
.preview-pair figure { margin:0; }
.preview-pair img { display:block; width:100%; aspect-ratio:1; object-fit:contain; background:var(--paper); }
.preview-pair figcaption { padding:.25rem 0; }
.fawn-commerce ul { padding-inline-start:1.2rem; overflow-wrap:anywhere; }
.fawn-commerce li { margin:.45rem 0; }
.calc-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; }
.calc-controls label { display:grid; gap:.35rem; }
.calc-controls input, .calc-controls select, .form-row select, #color-search {
  min-height:44px; width:100%; border:1px solid var(--line); border-radius:.5rem; color:var(--ink); background:var(--paper); padding:.45rem; font: inherit;
}
.form-row select { width:auto; }
.calc-results { margin-top:.75rem; display:grid; gap:.45rem; }
.calc-results div { display:flex; gap:.65rem; justify-content:space-between; }
.calc-results dd, .calc-results dt { margin:0; }
.calc-palette { list-style:none; display:grid; grid-template-columns:repeat(auto-fill,minmax(145px,1fr)); gap:.5rem; padding:0; }
.calc-palette li { display:flex; align-items:center; gap:.55rem; padding:.55rem; background:var(--paper); border:1px solid var(--line); border-radius:.45rem; overflow-wrap:anywhere; }
.calc-palette .swatch { width:1.25rem; height:1.25rem; flex:none; border:1px solid var(--line); border-radius:50%; }
@media (max-width: 720px) {
  .shell { width:calc(100% - 28px); }
  .fawn-hero { grid-template-columns:1fr; padding:1.55rem 0 .75rem; gap:1rem; }
  .hero-visuals { max-width: 440px; }
  .tool-grid, .step-grid, .price-grid, .detail-grid { grid-template-columns:1fr; }
  .masthead-inner { align-items:flex-start; padding-block:.55rem; }
  .fawn-nav { justify-content:flex-end; gap:.3rem .7rem; }
  .fawn-nav .header-button { min-height:36px; }
  .editor-frame { height:1360px; }
  .fawn-editor { padding:.42rem; }
  .fawn-section { margin-block:1.55rem; }
}
@media (max-width: 370px) {
  .fawn-nav > .nav-help { display:none; }
  .masthead-inner { gap:.3rem; }
  .calc-controls { grid-template-columns:1fr; }
}
