@font-face {
  font-family:Inter;
  src:url('./inter.woff2') format('woff2');
  font-weight:100 900;
  font-display:swap
}
/* Text colors (2026-11-22): every text passes WCAG AA (4.5:1) on every light surface of the tools,
   the accent-tinted ones included. --text for content, --text-2 for labels and secondary text,
   --muted for notes and details. --accent stays for icons, borders and large titles; small accent
   text and accent buttons (white text) use --accent-ink, the accent 15% darker. */
:root {
  font-family:Inter,Arial,sans-serif;
  color:var(--text);
  background:#f8f7f3;
  font-synthesis:none;
  --text:#292d29;
  --text-2:#4b5345;
  --muted:#5f6659;
  --line:#e3e4dd;
  --soft:#efeee8;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,'Liberation Mono',monospace;
  --accent-soft:color-mix(in srgb,var(--accent) 9%,white);
  --accent-ink:color-mix(in srgb,var(--accent) 85%,black)
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:24px
}
body {
  margin:0
}
button,input,select {
  font:inherit
}
button,a,input,select,summary {
  -webkit-tap-highlight-color:transparent
}
button,summary {
  cursor:pointer
}
button {
  color:inherit
}
a {
  color:inherit;
  text-decoration:none
}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:4px
}
button:disabled {
  opacity:.45;
  cursor:wait
}
[hidden] {
  display:none!important
}
.wrap {
  width:min(1192px,calc(100% - 80px));
  margin-inline:auto
}
.site-header {
  height:104px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid var(--line)
}
.brand {
  display:flex;
  gap:12px;
  align-items:center;
  font-size:17px;
  font-weight:650;
  letter-spacing:-.5px
}
.brand small {
  display:block;
  font-size:12px;
  font-weight:450;
  color:var(--muted);
  letter-spacing:.3px;
  margin-top:4px
}
.brand-mark {
  height:39px;
  width:39px;
  display:grid;
  place-items:center;
  color:var(--accent);
  border:1px solid color-mix(in srgb,var(--accent) 30%,transparent);
  border-radius:11px;
  background:var(--accent-soft)
}
.brand-mark svg {
  width:23px;
  height:23px
}
.site-header nav {
  display:flex;
  align-items:center;
  gap:29px;
  font-size:12px
}
.site-header nav>a:hover,.text-link:hover {
  color:var(--accent-ink)
}
.button {
  border:1px solid transparent;
  border-radius:7px;
  min-height:40px;
  padding:11px 17px;
  font-size:13px;
  font-weight:550;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  transition:background .15s,transform .15s;
  white-space:nowrap
}
.button:hover:not(:disabled) {
  transform:translateY(-1px)
}
.button-outline {
  border-color:#d8dbd3;
  background:transparent
}
.button-outline:hover {
  background:white
}
.button-dark {
  background:#30372e;
  color:white
}
.button-dark:hover {
  background:#47523f
}
.button-accent {
  background:var(--accent-ink);
  color:white;
  min-width:176px;
  min-height:43px
}
.button-accent:hover {
  background:color-mix(in srgb,var(--accent-ink) 85%,black)
}
.tools-menu {
  position:relative
}
.tools-menu summary {
  list-style:none;
  display:flex;
  gap:10px;
  align-items:center
}
.tools-menu summary::-webkit-details-marker {
  display:none
}
.tools-menu>div {
  position:absolute;
  z-index:4;
  right:0;
  top:29px;
  width:190px;
  background:white;
  border:1px solid var(--line);
  padding:7px;
  border-radius:10px;
  box-shadow:0 10px 30px #2b352014
}
.tools-menu a {
  display:block;
  padding:12px;
  border-radius:5px
}
.tools-menu a:hover,.tools-menu a[aria-current] {
  background:var(--accent-soft);
  color:var(--accent-ink)
}
.hero {
  padding-block:53px 43px;
  display:grid;
  grid-template-columns:1.3fr 1fr;
  align-items:end;
  gap:70px
}
.eyebrow {
  font-size:12px;
  letter-spacing:1.6px;
  text-transform:uppercase;
  font-weight:600;
  color:var(--muted);
  margin:0 0 17px
}
.hero h1 {
  font-size:clamp(34px,4.3vw,55px);
  font-weight:500;
  line-height:1.13;
  letter-spacing:-2.6px;
  margin:0
}
.hero h1 span {
  color:var(--accent)
}
.hero-intro {
  max-width:350px;
  justify-self:end;
  padding-bottom:3px
}
.hero-intro p {
  font-size:13px;
  line-height:1.8;
  color:var(--muted);
  margin:0 0 21px
}
.text-link {
  font-size:12px;
  font-weight:600;
  display:inline-flex;
  align-items:center;
  gap:30px
}
.workbench {
  border:1px solid #dcdfd5;
  border-radius:12px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 10px 45px #353d2505;
  scroll-margin-top:20px
}
.workbench-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:15px 20px;
  border-bottom:1px solid var(--line);
  min-height:76px
}
.file-description {
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0
}
.file-icon {
  width:32px;
  height:36px;
  display:grid;
  place-items:center;
  background:#f2f3ee;
  color:var(--muted);
  font-family:var(--mono);
  font-size:12px;
  border:1px solid #e4e7de;
  border-radius:5px
}
.file-description>div {
  min-width:0
}
.file-description strong {
  font-size:13px;
  font-weight:550;
  display:block;
  max-width:400px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.file-description small {
  font-size:12px;
  color:var(--muted);
  display:block;
  margin-top:6px
}
.file-actions {
  display:flex;
  gap:17px;
  align-items:center
}
.quiet-button {
  border:0;
  background:transparent;
  padding:6px 3px;
  font-size:13px;
  color:var(--muted)
}
.quiet-button:hover {
  color:var(--accent-ink)
}
.workflow-actions .quiet-button {
  white-space:nowrap
}
.editor-layout {
  display:grid;
  grid-template-columns:285px minmax(0,1fr);
  min-height:462px
}
.controls {
  border-right:1px solid var(--line);
  padding:23px 20px;
  min-width:0;
  background:#fdfdfa
}
.panel-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:21px
}
.panel-heading h2 {
  font-size:13px;
  font-weight:600;
  margin:0
}
.small-dot {
  height:5px;
  width:5px;
  border-radius:50%;
  background:var(--accent)
}
.preview-panel {
  min-width:0;
  display:flex;
  flex-direction:column
}
.preview-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:15px 20px;
  height:59px
}
.segmented {
  display:flex;
  background:#f2f3ee;
  padding:3px;
  border-radius:6px;
  gap:3px
}
.segmented button {
  font-size:13px;
  padding:6px 13px;
  color:var(--muted);
  border:0;
  background:transparent;
  border-radius:4px
}
.segmented button[aria-pressed=true] {
  background:#fff;
  color:var(--text);
  box-shadow:0 1px 3px #0000000c
}
.preview-options {
  display:flex;
  gap:15px;
  align-items:center
}
.background-button {
  height:23px;
  width:23px;
  border:1px solid #d6d9d0;
  border-radius:5px;
  background:conic-gradient(#e8e9e2 25%,white 0 50%,#e8e9e2 0 75%,white 0) 0/10px 10px
}
.canvas {
  height:371px;
  flex:1;
  position:relative;
  min-height:300px;
  background:#f5f4ed;
  background-image:radial-gradient(#d9dace 1px,transparent 1px);
  background-size:16px 16px;
  margin:0 14px;
  border-radius:5px;
  overflow:hidden
}
.canvas[data-background=dark] {
  background:#29312e;
  background-image:radial-gradient(#414a42 1px,transparent 1px);
  background-size:16px 16px
}
.canvas[data-background=checker] {
  background:conic-gradient(#e5e7e1 25%,#f9faf7 0 50%,#e5e7e1 0 75%,#f9faf7 0) 0/18px 18px
}
.canvas iframe {
  display:block;
  width:100%;
  height:100%;
  min-height:350px;
  border:0;
  background:transparent
}
.drop-overlay {
  position:absolute;
  inset:10px;
  display:none;
  place-items:center;
  background:#ffffffed;
  border:2px dashed var(--accent);
  border-radius:8px;
  color:var(--accent-ink);
  font-size:18px;
  font-weight:600;
  pointer-events:none
}
.workbench.is-dragging .drop-overlay {
  display:grid
}
.canvas-footer {
  padding:12px 20px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:12px;
  color:var(--muted);
  min-height:37px
}
.workbench-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:16px 20px;
  border-top:1px solid var(--line)
}
.workbench-bottom p {
  font-size:13px;
  line-height:1.5;
  color:var(--muted);
  margin:0
}
.workbench-bottom p::before {
  content:'◈';
  color:var(--accent);
  padding-right:8px
}
#error {
  font-size:12px;
  color:#9b392d;
  background:#fff3ef;
  border-top:1px solid #f1d9d0;
  padding:14px 20px;
  margin:0
}
.control-label {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:12px;
  color:var(--text-2);
  margin:20px 0 11px
}
.control-label:first-child {
  margin-top:0
}
.control-label output,.control-label span {
  font-variant-numeric:tabular-nums;
  color:var(--muted);
  font-size:12px
}
input[type=range] {
  width:100%;
  accent-color:var(--accent);
  height:4px;
  margin:10px 0 20px
}
.control-note {
  font-size:12px;
  line-height:1.7;
  color:var(--muted);
  margin:14px 0
}
.control-select,.search-input {
  width:100%;
  border:1px solid #dfe3d7;
  background:#fff;
  border-radius:5px;
  color:var(--text);
  padding:10px 11px;
  font-size:13px
}
.search-input {
  padding-left:11px;
  margin-bottom:14px
}
.search-input::placeholder {
  color:var(--muted);
  opacity:1
}
.effect-grid {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:7px
}
.effect-button {
  display:flex;
  align-items:center;
  gap:9px;
  text-align:left;
  font-size:12px;
  background:#fff;
  border:1px solid #e1e5db;
  border-radius:6px;
  padding:11px 10px;
  min-height:42px
}
.effect-symbol {
  font-size:17px;
  color:var(--muted);
  line-height:1
}
.effect-button[aria-pressed=true] {
  background:var(--accent-soft);
  border-color:color-mix(in srgb,var(--accent) 40%,white);
  color:var(--accent-ink)
}
.effect-button[aria-pressed=true] .effect-symbol {
  color:var(--accent-ink)
}
.shuffle-button {
  width:100%;
  background:#fff;
  border:1px solid #d5dacd;
  border-radius:6px;
  padding:10px;
  font-size:12px;
  color:var(--text-2);
  margin-top:12px
}
.shuffle-button:hover {
  border-color:var(--accent);
  color:var(--accent-ink)
}
.checkbox-label {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:13px;
  line-height:1.4;
  margin-top:14px;
  color:var(--text-2)
}
.checkbox-label input {
  accent-color:var(--accent);
  margin:0;
  width:13px;
  height:13px
}
.colour-list {
  /* Every detected color is listed; past about 16 rows the list scrolls, with a shadow on the edge that has more. */
  max-height:min(640px,75vh);
  overflow-y:auto;
  scrollbar-width:thin;
  padding-right:4px;
  background:
    linear-gradient(#fdfdfa 30%,#fdfdfa00) top/100% 28px no-repeat local,
    linear-gradient(#fdfdfa00,#fdfdfa 70%) bottom/100% 28px no-repeat local,
    radial-gradient(farthest-side at 50% 0,#2b352030,#2b352000) top/100% 10px no-repeat scroll,
    radial-gradient(farthest-side at 50% 100%,#2b352030,#2b352000) bottom/100% 10px no-repeat scroll
}
.colour-row {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  padding:8px 0;
  border-bottom:1px solid #eceee6;
  font-size:13px
}
.swatch {
  width:20px;
  height:20px;
  border:1px solid #00000024;
  border-radius:4px;
  flex-shrink:0
}
.colour-hex {
  font-family:var(--mono);
  font-size:13px;
  color:var(--text-2)
}
.colour-arrow {
  color:var(--muted);
  font-size:14px;
  line-height:1
}
.colour-row .colour-arrow {
  margin-left:auto
}
.colour-row input[type=color],.stroke-colour input {
  width:32px;
  height:30px;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
  flex-shrink:0
}
.colour-row input::-webkit-color-swatch-wrapper,.stroke-colour input::-webkit-color-swatch-wrapper {
  padding:2px
}
.colour-row input::-webkit-color-swatch,.stroke-colour input::-webkit-color-swatch {
  border:1px solid #00000024;
  border-radius:4px
}
.colour-code {
  width:88px;
  flex-shrink:0;
  border:1px solid #cdd2c5;
  border-radius:5px;
  background:#fff;
  color:var(--text);
  font-family:var(--mono);
  font-size:13px;
  padding:6px 7px
}
.colour-row.is-invalid .colour-code {
  border-color:#b4372b;
  background:#fff6f4
}
.colour-error {
  flex-basis:100%;
  margin:0;
  font-size:12px;
  color:#9b392d;
  text-align:right
}
.generated-list {
  list-style:none;
  margin:12px 0 0;
  padding:0 4px 0 0
}
.generated-list li {
  display:flex;
  align-items:center;
  gap:8px;
  padding:7px 0;
  border-bottom:1px solid #eceee6;
  font-size:13px
}
.generated-list .colour-arrow {
  margin-inline:2px
}
.generated-list .colour-new {
  color:var(--text);
  font-weight:500
}
.generated-list .generated-empty {
  color:var(--muted)
}
.new-colours-button {
  margin-top:0;
  font-size:13px;
  font-weight:600;
  color:var(--text);
  min-height:40px
}
.new-colours-button span {
  color:var(--accent-ink);
  padding-right:4px
}
.edit-colours-button {
  gap:8px;
  border:0;
  background:none;
  padding:6px 0;
  margin-top:12px;
  font-size:13px;
  color:var(--accent-ink)
}
.edit-colours-button:hover {
  text-decoration:underline;
  text-underline-offset:3px
}
.visually-hidden {
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  padding:0;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  border:0
}
[data-tool=recolour] .editor-layout {
  grid-template-columns:320px minmax(0,1fr)
}
.stroke-colour {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:12px;
  color:var(--text-2);
  margin-top:15px
}
/* SVG Explorer: the tree and the attributes of the selected element, at a reading size (2026-11-22). */
[data-tool=explorer] .editor-layout {
  grid-template-columns:380px minmax(0,1fr)
}
[data-tool=explorer] .search-input {
  font-size:14px
}
.tree {
  max-height:380px;
  overflow:auto;
  scrollbar-width:thin;
  font-size:14px;
  line-height:1.3;
  border:1px solid var(--line);
  border-radius:6px;
  background:#fff;
  padding:4px
}
.tree ul {
  padding:0 0 0 14px;
  margin:0;
  list-style:none
}
.tree>ul {
  padding:0
}
.tree summary,.tree-row {
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 8px;
  border-radius:4px;
  min-height:36px;
  cursor:pointer;
  width:100%;
  border:0;
  background:transparent;
  color:var(--text);
  font-size:14px;
  text-align:left;
  white-space:nowrap
}
.tree summary {
  list-style:none
}
.tree summary::-webkit-details-marker {
  display:none
}
.tree summary::before {
  content:'›';
  color:var(--muted);
  width:10px;
  font-size:16px;
  line-height:1;
  display:inline-block;
  flex-shrink:0
}
.tree details[open]>summary::before {
  transform:rotate(90deg)
}
.tree-row::before {
  content:'·';
  color:var(--muted);
  width:10px;
  flex-shrink:0
}
.tree summary:hover,.tree-row:hover {
  background:var(--soft)
}
.tree [aria-current=true],.tree [aria-current=true]:hover {
  background:var(--accent-soft);
  color:var(--accent-ink);
  box-shadow:inset 3px 0 0 var(--accent)
}
.tree-tag {
  font-family:var(--mono);
  font-size:14px;
  font-weight:500;
  color:var(--accent-ink)
}
.tree-name {
  overflow:hidden;
  text-overflow:ellipsis;
  min-width:0;
  color:var(--text-2)
}
.tree [aria-current=true] .tree-name {
  color:var(--text)
}
.tree-count {
  margin-left:auto;
  flex-shrink:0;
  color:var(--muted);
  font-size:12px;
  font-variant-numeric:tabular-nums;
  padding:1px 7px;
  border-radius:9px;
  background:var(--soft)
}
.selection-properties {
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid var(--line)
}
.selection-properties h3 {
  font-size:15px;
  font-weight:600;
  line-height:1.35;
  color:var(--text);
  overflow-wrap:anywhere;
  margin:0 0 8px
}
.attribute-list {
  max-height:380px;
  overflow:auto;
  scrollbar-width:thin;
  margin:0
}
.attribute-row {
  display:grid;
  grid-template-columns:minmax(84px,38%) minmax(0,1fr);
  gap:4px 12px;
  padding:8px 0;
  border-bottom:1px solid #eceee6;
  font-size:14px;
  line-height:1.45
}
.attribute-row dt {
  color:var(--text-2);
  font-weight:500;
  overflow-wrap:anywhere
}
.attribute-row dd {
  margin:0;
  overflow-wrap:anywhere;
  color:var(--text);
  font-family:var(--mono);
  font-size:14px
}
.attribute-more {
  display:block;
  margin-top:4px;
  padding:2px 0;
  border:0;
  background:none;
  font:600 12px Inter,Arial,sans-serif;
  color:var(--accent-ink);
  text-decoration:underline;
  text-underline-offset:3px
}
.guide {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:110px;
  padding-block:69px 57px;
  border-bottom:1px solid var(--line)
}
.guide h2,.faq h2 {
  font-size:24px;
  line-height:1.3;
  font-weight:500;
  letter-spacing:-.8px;
  margin:0 0 15px
}
.guide p:last-child {
  font-size:12px;
  line-height:1.9;
  color:var(--muted);
  max-width:390px;
  margin-bottom:0
}
.guide ol {
  list-style:none;
  counter-reset:steps;
  display:grid;
  gap:21px;
  padding:6px 0 0;
  margin:0
}
.guide li {
  counter-increment:steps;
  font-size:12px;
  color:var(--text-2);
  display:flex;
  gap:16px;
  align-items:center
}
.guide li::before {
  content:counter(steps);
  height:25px;
  width:25px;
  flex-shrink:0;
  display:grid;
  place-items:center;
  border:1px solid #dfe3d6;
  border-radius:50%;
  font-size:12px;
  color:var(--accent-ink)
}
.faq {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:110px;
  padding-block:49px 58px
}
.faq h2 {
  font-size:22px
}
.faq details {
  border-bottom:1px solid var(--line);
  padding:15px 0
}
.faq details:first-child {
  padding-top:2px
}
.faq summary {
  font-size:12px;
  font-weight:500;
  display:flex;
  justify-content:space-between;
  gap:12px;
  list-style:none;
  line-height:1.5
}
.faq summary::-webkit-details-marker {
  display:none
}
.faq summary::after {
  content:'+';
  font-size:15px;
  color:var(--muted)
}
.faq details[open]>summary::after {
  content:'−'
}
.faq details p {
  font-size:12px;
  line-height:1.9;
  color:var(--muted);
  margin-bottom:0
}
.site-footer {
  border-top:1px solid var(--line);
  display:flex;
  gap:24px;
  align-items:center;
  padding-block:26px 33px;
  font-size:12px;
  color:var(--muted)
}
.footer-brand {
  font-weight:650;
  letter-spacing:-.5px;
  font-size:13px;
  color:var(--text-2)
}
.site-footer>a:last-child {
  margin-left:auto
}
.skip-link {
  position:fixed;
  top:8px;
  left:8px;
  z-index:10;
  background:white;
  border:1px solid var(--accent);
  padding:10px;
  transform:translateY(-150%);
  font-size:12px
}
.skip-link:focus {
  transform:translateY(0)
}
.noscript-message {
  position:fixed;
  bottom:0;
  background:white;
  border-top:1px solid var(--line);
  padding:20px;
  width:100%;
  margin:0;
  font-size:14px
}
@media(min-width:1500px) {
  .hero {
    padding-top:65px
  }
  .canvas {
    min-height:410px
  }
  .canvas iframe {
    min-height:390px
  }
}
@media(max-width:900px) {
  .wrap {
    width:calc(100% - 40px)
  }
  .hero {
    gap:30px
  }
  .hero h1 {
    font-size:39px;
    letter-spacing:-1.8px
  }
  .hero-intro {
    max-width:290px
  }
  .editor-layout {
    grid-template-columns:250px minmax(0,1fr)
  }
  [data-tool=recolour] .editor-layout {
    grid-template-columns:300px minmax(0,1fr)
  }
  [data-tool=explorer] .editor-layout {
    grid-template-columns:320px minmax(0,1fr)
  }
  .controls {
    padding-inline:16px
  }
  .site-header nav {
    gap:20px
  }
  .guide,.faq {
    gap:45px
  }
  .file-description strong {
    max-width:250px
  }
}
@media(max-width:640px) {
  .wrap {
    width:calc(100% - 28px)
  }
  .site-header {
    height:83px
  }
  .brand {
    font-size:14px;
    gap:8px
  }
  .brand-mark {
    width:32px;
    height:34px;
    border-radius:8px
  }
  .site-header nav {
    gap:15px
  }
  .site-header nav>a,.header-example {
    display:none
  }
  .hero {
    grid-template-columns:1fr;
    padding-block:35px 28px;
    gap:20px
  }
  .hero h1 {
    font-size:38px;
    letter-spacing:-1.8px
  }
  .eyebrow {
    margin-bottom:12px
  }
  .hero-intro {
    justify-self:start;
    max-width:360px
  }
  .hero-intro p {
    font-size:12px;
    margin-bottom:14px
  }
  .editor-layout {
    display:flex;
    flex-direction:column-reverse;
    min-height:0
  }
  .controls {
    border-right:0;
    border-top:1px solid var(--line);
    padding:20px
  }
  .canvas {
    height:290px;
    min-height:290px;
    margin-inline:10px
  }
  .canvas iframe {
    min-height:290px
  }
  .preview-toolbar {
    padding:12px 14px
  }
  .workbench-top {
    padding:12px;
    min-height:71px
  }
  .file-description {
    gap:8px
  }
  .file-description strong {
    max-width:150px
  }
  .file-icon {
    width:25px;
    height:30px;
    font-size:10px
  }
  .file-actions {
    gap:10px
  }
  .file-actions .button {
    padding:9px 11px;
    gap:7px;
    min-height:34px
  }
  .workbench-bottom {
    padding:14px;
    align-items:stretch;
    flex-direction:column-reverse;
    gap:12px
  }
  .workbench-bottom p {
    text-align:center
  }
  .button-accent {
    width:100%
  }
  .tree {
    max-height:340px
  }
  .colour-row {
    padding-block:10px
  }
  /* On a phone the page itself scrolls: the list of colors grows instead of scrolling inside it. */
  .colour-list {
    max-height:none;
    overflow:visible
  }
  /* 16 px: phones do not zoom on a field this size. */
  .colour-code,[data-tool=explorer] .search-input {
    font-size:16px;
    width:100px
  }
  [data-tool=explorer] .search-input {
    width:100%
  }
  .panel-heading {
    margin-bottom:15px
  }
  .effect-grid {
    grid-template-columns:repeat(3,1fr)
  }
  .effect-button {
    padding:10px 7px;
    gap:6px
  }
  .guide,.faq {
    grid-template-columns:1fr;
    gap:27px;
    padding-block:37px
  }
  .guide h2,.faq h2 {
    font-size:23px
  }
  .guide ol {
    gap:16px
  }
  .site-footer {
    gap:13px;
    padding-block:23px
  }
  .attribute-list {
    max-height:320px
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  *,*::before,*::after {
    transition:none!important
  }
}

.workflow-progress {
  display: flex;
  list-style: none;
  counter-reset: workflow;
  padding: 18px 20px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  gap: 30px;
}
.about-tool {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 85px;
  align-items: center;
  padding-block: 55px;
  border-bottom: 1px solid var(--line);
}
.about-tool figure {
  margin: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f1f0e9;
}
.about-tool img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
}
.about-tool figcaption {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding-bottom: 8px;
}
.about-tool h2 {
  font-size: 25px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -.7px;
  margin: 0 0 20px;
}
.about-tool p, .about-tool li {
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.9;
}
.about-tool ul {
  padding-left: 18px;
}
.about-tool .related-tools a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.about-tool .example-link {
  padding: 0;
  margin-top: 10px;
}
@media(max-width:640px) {
  .about-tool {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 35px;
  }
  .about-tool figure {
    max-width: 400px;
    width: 100%;
    margin-inline: auto;
  }
}
.workflow-progress li {
  counter-increment: workflow;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.workflow-progress li::before {
  content: counter(workflow);
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 12px;
}
.workflow-progress li[aria-current=step] {
  color: var(--accent-ink);
  font-weight: 600;
}
.workflow-progress li[aria-current=step]::before,
.workflow-progress li[data-completed]::before {
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-color: color-mix(in srgb, var(--accent) 30%, white);
}
.workflow-stage {
  min-height: 370px;
  padding: 55px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}
.workflow-stage h2 {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -.7px;
  margin: 0 0 15px;
}
.workflow-stage p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 24px;
}
.import-symbol {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 25px;
  margin-bottom: 20px;
}
.example-link {
  border: 0;
  background: none;
  color: var(--accent-ink);
  margin-top: 20px;
}
.mode-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 650px;
  margin-top: 20px;
}
.mode-choice {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 25px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  text-align: left;
}
.mode-choice:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.mode-choice strong {
  font-weight: 550;
  font-size: 17px;
}
.mode-choice span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.mode-choice span:last-child {
  align-self: end;
  color: var(--accent-ink);
  font-size: 20px;
}
.workflow-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 22px;
}
/* The result stage hides the settings, except where they stay beside the result (data-controls: SVG Recolor, Automatic). */
.workbench[data-stage=result]:not([data-controls]) .editor-layout {
  grid-template-columns: minmax(0, 1fr);
}
.result-heading {
  font-size: 16px;
  font-weight: 500;
  padding: 20px 20px 0;
  margin: 0;
}
.workbench.is-dragging .workflow-stage {
  background: var(--accent-soft);
}
@media(max-width:640px) {
  .workflow-progress {
    gap: 12px;
    padding: 15px 12px;
    justify-content: space-between;
  }
  .workflow-progress li {
    gap: 5px;
  }
  .workflow-progress li::before {
    width: 21px;
    height: 21px;
  }
  .workflow-stage {
    padding: 40px 18px;
    min-height: 350px;
  }
  .workflow-stage h2 {
    font-size: 22px;
  }
  .mode-choices {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .mode-choice {
    padding: 19px;
    gap: 8px;
  }
  .workflow-actions {
    justify-content: space-between;
    width: 100%;
  }
}

/* Liens vers SVGenic (svgenic.com et le studio) : bloc avant la FAQ, ligne sous l'aperçu, pied de page. */
.svgenic-cta {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:110px;
  align-items:center;
  padding-block:57px;
  border-bottom:1px solid var(--line)
}
.svgenic-cta h2 {
  font-size:24px;
  line-height:1.3;
  font-weight:500;
  letter-spacing:-.8px;
  margin:0 0 15px
}
.svgenic-cta p:last-child {
  font-size:13px;
  line-height:1.8;
  color:var(--text-2);
  max-width:420px;
  margin-bottom:0
}
.svgenic-actions {
  display:flex;
  flex-wrap:wrap;
  gap:14px 28px;
  align-items:center
}
.next-step {
  margin:0 0 4px;
  padding:0 20px;
  font-size:12px;
  color:var(--text-2)
}
.next-step a {
  font-weight:600;
  color:inherit
}
.site-footer {
  flex-wrap:wrap
}
.footer-links {
  display:flex;
  flex-wrap:wrap;
  gap:6px 18px;
  margin-left:auto
}
@media (max-width: 860px) {
  .svgenic-cta {
    grid-template-columns:1fr;
    gap:24px;
    padding-block:40px
  }
  .footer-links {
    margin-left:0
  }
}

.raster-preview {
  position:absolute;
  inset:18px;
  width:calc(100% - 36px);
  height:calc(100% - 36px);
  object-fit:contain
}
[data-tool=pixel] .raster-preview {
  image-rendering:pixelated
}
.report-list {
  list-style:none;
  margin:0 0 6px;
  padding:0;
  max-height:205px;
  overflow-y:auto;
  scrollbar-width:thin;
  font-size:12px
}
.report-list li {
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:7px 0;
  border-bottom:1px solid #eceee6;
  color:var(--text-2);
  overflow-wrap:anywhere
}
.report-list .report-count {
  color:var(--muted);
  font-variant-numeric:tabular-nums;
  flex-shrink:0
}
.report-list .report-empty {
  color:var(--muted)
}

/* Un seul site, tools.svgenic.com : lien « All tools » de l'en-tête et du menu, page d'accueil (hub) et 404. */
.tools-menu a.tools-menu-all {
  font-weight:600;
  border-bottom:1px solid var(--line);
  border-radius:5px 5px 0 0;
  margin-bottom:4px
}
.hub-tools {
  padding-block:8px 60px;
  border-bottom:1px solid var(--line)
}
.hub-tools h2 {
  font-size:24px;
  line-height:1.3;
  font-weight:500;
  letter-spacing:-.8px;
  margin:0 0 22px
}
.tool-cards {
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr));
  gap:16px
}
.tool-card {
  --accent-soft:color-mix(in srgb,var(--accent) 9%,white);
  --accent-ink:color-mix(in srgb,var(--accent) 85%,black);
  position:relative;
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:22px;
  background:#fff;
  border:1px solid #dcdfd5;
  border-radius:12px;
  transition:border-color .15s,transform .15s
}
.tool-card:hover {
  border-color:var(--accent);
  transform:translateY(-1px)
}
.tool-card:focus-within {
  outline:3px solid var(--accent);
  outline-offset:3px
}
.tool-card h3 {
  font-size:17px;
  font-weight:600;
  letter-spacing:-.4px;
  margin:4px 0 0
}
.tool-card h3 a::after {
  content:'';
  position:absolute;
  inset:0;
  border-radius:inherit
}
.tool-card h3 a:focus-visible {
  outline:none
}
.tool-card p {
  margin:0;
  font-size:13px;
  line-height:1.65;
  color:var(--text-2)
}
.tool-card-open {
  margin-top:auto;
  padding-top:4px;
  font-size:12px;
  font-weight:600;
  color:var(--accent-ink)
}
@media(max-width:900px) {
  .site-header nav>a.nav-guide {
    display:none
  }
}
@media(max-width:640px) {
  .hub-tools {
    padding-block:4px 40px
  }
  .hub-tools h2 {
    font-size:22px
  }
  .tool-card {
    padding:18px
  }
}

/* SVG Optimizer (2026-11-22): options with a note under them, then the size report above the preview at the
   result stage (Original file, Optimized file, Saved), created by src/app.ts after the result heading. */
[data-tool=optimizer] .editor-layout {
  grid-template-columns:300px minmax(0,1fr)
}
[data-tool=optimizer] .checkbox-label {
  font-size:13px;
  color:var(--text)
}
[data-tool=optimizer] .checkbox-label input {
  width:15px;
  height:15px
}
[data-tool=optimizer] .control-label {
  font-size:12px
}
[data-tool=optimizer] .control-select {
  font-size:13px
}
[data-tool=optimizer] .control-note {
  font-size:12px;
  line-height:1.6
}
.option-note {
  margin:4px 0 0 24px
}
.size-summary {
  padding:16px 20px 2px
}
.size-report {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:0
}
.size-report div {
  min-width:0;
  padding:12px 14px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px
}
.size-report dt {
  font-size:12px;
  color:var(--text-2)
}
.size-report dd {
  margin:0
}
.size-report .size-value {
  margin-top:4px;
  font-size:22px;
  font-weight:600;
  letter-spacing:-.5px;
  line-height:1.2;
  color:var(--text);
  font-variant-numeric:tabular-nums
}
.size-report .size-detail {
  margin-top:3px;
  font-size:12px;
  line-height:1.5;
  color:var(--muted);
  font-variant-numeric:tabular-nums
}
.size-report .size-saved {
  background:var(--accent-soft);
  border-color:color-mix(in srgb,var(--accent) 35%,white)
}
.size-report .size-saved .size-value,.size-report .size-saved .size-detail {
  color:var(--accent-ink)
}
.size-note {
  margin:10px 0 0;
  font-size:12px;
  line-height:1.6;
  color:var(--text-2)
}
@media(max-width:900px) {
  [data-tool=optimizer] .editor-layout {
    grid-template-columns:280px minmax(0,1fr)
  }
}
@media(max-width:640px) {
  .size-summary {
    padding:14px 14px 0
  }
  .size-report {
    gap:6px
  }
  .size-report div {
    padding:10px
  }
  .size-report .size-value {
    font-size:17px;
    letter-spacing:-.3px
  }
}
/* SVG Recolor, Automatic result (data-controls): the generated colors sit between the preview and the bottom
   bar, so the bar (New colors aside, the Download button) stays in view at the bottom of the screen while the
   tool is. overflow:clip keeps the rounded corners without making the workbench a scroll container, which
   would stop the bar from sticking (browsers without clip keep overflow:hidden: the bar simply scrolls). */
.workbench[data-controls] {
  overflow:clip
}
.workbench[data-controls] .workbench-bottom {
  position:sticky;
  bottom:0;
  z-index:2;
  background:#fff;
  box-shadow:0 -8px 18px #2b35200d
}
@media(max-width:640px) {
  /* Phones: the generated colors scroll inside their list (about six rows), New colors and Download stay near the preview. */
  .generated-list {
    max-height:15rem;
    overflow-y:auto
  }
  /* 16 px: iOS Safari zooms the page on a smaller field (after the per-tool rules, which would win otherwise). */
  .control-select,[data-tool] .control-select {
    font-size:16px
  }
}
