:root {
  color-scheme:light;
  --bg:#f7f8f5;
  --surface:#fff;
  --ink:#263e36;
  --muted:#6c7b74;
  --line:#e5e9e3;
  --green:#276b53;
  --soft:#edf3ee;
  --mono:ui-monospace,SFMono-Regular,Consolas,monospace;
  font-family:Inter,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--ink);
  background:var(--bg);
  font-synthesis:none;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

button,input,select {
  font:inherit;
}

button,a,input,select {
  -webkit-tap-highlight-color:transparent;
}

button {
  cursor:pointer;
  color:inherit;
  touch-action:manipulation;
  border:0;
  background:none;
}

button:disabled {
  cursor:not-allowed;
  opacity:.55;
}

button,a,input,select,summary,[tabindex] {
  outline-offset:4px;
}

:focus-visible {
  outline:3px solid #609b80;
}

a {
  color:inherit;
}

button:hover:not(:disabled) {
  filter:brightness(.97);
}

[hidden] {
  display:none!important;
}

h1,h2,p {
  margin:0;
}

.muted {
  color:var(--muted);
}

.small {
  font-size:12px;
}

.text-button {
  font-size:12px;
  font-weight:600;
  min-height:36px;
  padding:6px 8px;
  border-radius:6px;
}

.text-button:hover {
  background:var(--soft);
}

.button {
  min-height:42px;
  border-radius:8px;
  padding:10px 18px;
  font-size:13px;
  font-weight:600;
  display:inline-flex;
  gap:8px;
  align-items:center;
  justify-content:center;
  transition:background .15s;
}

.primary {
  background:var(--green);
  color:#fff;
}

.primary:hover {
  background:#205b46;
}

.secondary {
  background:var(--surface);
  border:1px solid var(--line);
}

.compact {
  background:var(--soft);
  padding:8px 12px;
  min-height:38px;
}

.icon-button {
  min-width:36px;
  min-height:36px;
  border-radius:6px;
  font-size:20px;
  line-height:1;
}

.icon-button:hover {
  background:var(--soft);
}

.site-header {
  height:78px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 max(32px,calc((100vw - 1320px)/2));
  background:#fff9;
}

.brand {
  display:flex;
  gap:12px;
  align-items:center;
  font-size:23px;
  font-weight:750;
  letter-spacing:-.8px;
  text-decoration:none;
}

.brand-mark {
  position:relative;
  width:30px;
  height:32px;
  display:inline-block;
}

.brand-mark i {
  position:absolute;
  width:16px;
  height:23px;
  border-radius:12px;
  transform:rotate(-32deg);
  background:#8bb19a;
  top:7px;
  left:1px;
}

.brand-mark i:nth-child(2) {
  background:#edb996;
  transform:rotate(32deg);
  left:12px;
  top:0;
}

.brand-mark i:nth-child(3) {
  background:#2c7259;
  width:14px;
  height:14px;
  left:14px;
  top:17px;
}

.version {
  font-family:var(--mono);
  font-size:9px;
  font-weight:400;
  letter-spacing:1.2px;
  border-left:1px solid #d2dbd4;
  margin-left:5px;
  padding-left:17px;
  color:var(--muted);
}

.header-meta {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:11px;
  color:var(--muted);
}

.header-meta .text-button {
  margin-left:18px;
  color:var(--ink);
}

.status-dot,.live-dot {
  width:6px;
  height:6px;
  border-radius:50%;
  background:#5b9777;
  display:inline-block;
  flex:none;
}

.page-shell {
  max-width:1320px;
  margin:auto;
  padding:0 0 24px;
}

.intro {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:43px 0 32px;
}

.eyebrow {
  font-size:9px;
  letter-spacing:2.1px;
  color:var(--muted);
  font-weight:600;
  margin-bottom:13px;
}

h1 {
  font-size:36px;
  letter-spacing:-1.5px;
  font-weight:650;
  line-height:1.4;
}

h1 span {
  color:#447b60;
}

.intro-description {
  font-size:13px;
  color:var(--muted);
  margin-top:12px;
  line-height:1.8;
}

.intro-note {
  display:flex;
  align-items:center;
  gap:15px;
  margin-right:14px;
}

.intro-note>span {
  font-size:46px;
  font-weight:300;
  color:#c99b69;
}

.intro-note p {
  font-size:11px;
  line-height:2;
  color:var(--muted);
}

.intro-note strong {
  font-weight:500;
  color:var(--ink);
}

.workspace {
  display:grid;
  grid-template-columns:minmax(0,1fr) 354px;
  gap:22px;
  align-items:start;
}

.panel {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:0 3px 6px #233e2902;
}

.source-panel {
  padding:23px 26px 19px;
  min-width:0;
}

.source-heading,.section-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.section-kicker {
  font-size:10px;
  font-weight:650;
  color:#718377;
  letter-spacing:1.4px;
}

.tabs {
  display:flex;
  border-bottom:1px solid var(--line);
  margin-top:13px;
  gap:24px;
}

.tabs button {
  display:flex;
  align-items:center;
  gap:8px;
  padding:16px 3px 15px;
  font-size:13px;
  position:relative;
  color:var(--muted);
}

.tabs button[aria-selected=true] {
  color:var(--green);
  font-weight:650;
}

.tabs button[aria-selected=true]:after {
  position:absolute;
  content:"";
  bottom:-1px;
  left:0;
  right:0;
  height:3px;
  background:var(--green);
  border-radius:3px;
}

.tabs button>span {
  font-size:18px;
}

.image-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:50px;
  gap:12px;
}

.image-info {
  font-size:11px;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}

#imageName {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:420px;
}

.drop-zone {
  position:relative;
  background:#f7f8f4;
  border:1px dashed #d8dfd4;
  border-radius:10px;
  min-height:382px;
  overflow:hidden;
}

.empty-state {
  text-align:center;
  padding:25px 16px 18px;
}

.color-composition {
  width:230px;
  height:136px;
  position:relative;
  margin:0 auto 17px;
}

.art {
  position:absolute;
  bottom:21px;
  box-shadow:0 10px 13px #363f270a;
}

.art.peach {
  width:93px;
  height:103px;
  background:#dfaa8c;
  left:15px;
  border-radius:49px 49px 0 0;
  transform:rotate(-9deg);
}

.art.green {
  width:103px;
  height:113px;
  background:#759783;
  left:78px;
  border-radius:6px;
  transform:rotate(10deg);
  border:6px solid #f1f3eb;
}

.art.yellow {
  width:69px;
  height:69px;
  background:#e8d59e;
  right:7px;
  border-radius:50%;
  bottom:7px;
}

.art-caption {
  position:absolute;
  bottom:-4px;
  left:17px;
  font-size:7px;
  letter-spacing:2.1px;
  color:#879486;
}

.empty-state h2 {
  font-size:18px;
  font-weight:600;
  margin-bottom:9px;
}

.empty-state>p:not(.upload-formats) {
  font-size:12px;
  color:var(--muted);
}

.empty-state .primary {
  margin:20px 0 11px;
  padding-left:23px;
  padding-right:23px;
}

.upload-formats {
  font-size:10px;
  color:var(--muted);
  line-height:1.6;
}

.demo-button {
  margin-top:8px;
  color:#667d6b;
  font-size:11px;
}

.drop-hint {
  display:none;
  position:absolute;
  inset:0;
  align-items:center;
  justify-content:center;
  background:#e7f2eaf5;
  color:var(--green);
  font-size:15px;
  border:2px solid var(--green);
  border-radius:10px;
  pointer-events:none;
}

.drag-over .drop-hint {
  display:flex;
}

.loading-state {
  position:absolute;
  inset:0;
  background:#f7f8f4e8;
  display:grid;
  place-content:center;
  z-index:3;
  font-size:14px;
}

.image-stage {
  min-height:382px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px;
}

.canvas-wrap {
  position:relative;
  max-width:100%;
  line-height:0;
}

.canvas-wrap canvas {
  display:block;
  width:100%;
  height:auto;
  cursor:crosshair;
  touch-action:none;
}

.selection-marker {
  position:absolute;
  width:18px;
  height:18px;
  border:2px solid #fff;
  border-radius:50%;
  box-shadow:0 0 0 1.5px #1c322bc0,0 1px 5px #0006;
  transform:translate(-50%,-50%);
  pointer-events:none;
  z-index:1;
}

.image-bottom {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin:12px 0;
  color:var(--muted);
  font-size:10px;
  line-height:1.6;
}

.key-hint {
  font:9px var(--mono);
  border:1px solid var(--line);
  border-radius:4px;
  padding:3px 6px;
  white-space:nowrap;
}

.sample-options {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:11px;
  color:var(--muted);
}

select {
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
  border-radius:6px;
  padding:6px;
  font-size:11px;
  max-width:100%;
  min-height:32px;
}

.inline-message {
  font-size:11px;
  line-height:1.7;
  color:#95642c;
  margin-top:7px;
}

.inline-message:empty {
  display:none;
}

.checker {
  background-color:#fff;
  background-image:conic-gradient(#e6e9e3 25%,transparent 0 50%,#e6e9e3 0 75%,transparent 0);
  background-size:16px 16px;
}

.history-section {
  border-top:1px solid var(--line);
  margin-top:17px;
  padding-top:17px;
}

.section-row h2 {
  font-size:12px;
  font-weight:600;
}

.count {
  font:10px var(--mono);
  color:#7c8b80;
  background:#f0f4ef;
  padding:3px 6px;
  border-radius:4px;
  margin-left:5px;
}

.history-list {
  display:flex;
  gap:8px;
  overflow-x:auto;
  min-height:46px;
  padding:10px 2px 3px;
}

.history-chip {
  width:29px;
  height:29px;
  flex:none;
  border-radius:7px;
  border:1px solid #0000000d;
  padding:0;
  overflow:hidden;
}

.history-chip span {
  display:block;
  width:100%;
  height:100%;
}

.history-list:empty:after {
  content:"选中的颜色会出现在这里，随时回到上一抹灵感。";
  font-size:11px;
  color:var(--muted);
  padding:5px 0;
}

.editor-panel {
  padding:23px 23px 17px;
}

.color-name {
  font-size:11px;
  padding:3px 7px;
  background:var(--soft);
  border-radius:4px;
}

.color-preview {
  height:157px;
  border-radius:8px;
  position:relative;
  overflow:hidden;
  margin-top:20px;
  color:#fff;
}

.color-preview>div {
  position:absolute;
  inset:0;
}

.preview-label,#previewHex,#previewAlpha {
  position:absolute;
  left:18px;
}

.preview-label {
  font-size:8px;
  letter-spacing:2px;
  top:18px;
}

#previewHex {
  bottom:36px;
  font:27px var(--mono);
  letter-spacing:.5px;
}

#previewAlpha {
  bottom:18px;
  font-size:9px;
}

.hex-label-row {
  display:flex;
  justify-content:space-between;
  gap:8px;
  margin-top:21px;
  margin-bottom:9px;
  font-size:10px;
  font-weight:600;
}

.hex-label-row label span {
  font-weight:400;
  font-size:9px;
}

.hex-input-row {
  display:flex;
  border:1px solid #dbe3db;
  border-radius:8px;
  padding:3px;
  gap:3px;
}

.hex-input-row input {
  width:0;
  flex:1;
  border:0;
  background:transparent;
  padding:6px 8px;
  min-width:0;
  color:var(--ink);
  font:15px var(--mono);
  border-radius:5px;
}

.field-error {
  font-size:11px;
  color:#b34038;
  margin-top:6px;
  line-height:1.5;
}

.field-error:empty {
  display:none;
}

.sliders {
  display:grid;
  gap:15px;
  padding:22px 0;
}

.slider-row {
  display:grid;
  grid-template-columns:59px 1fr 40px;
  align-items:center;
  gap:10px;
}

.slider-row label {
  font-size:11px;
}

.slider-row label span {
  color:#98a69e;
  font:9px var(--mono);
  margin-left:3px;
}

.slider-row output {
  font:10px var(--mono);
  text-align:right;
  color:var(--muted);
}

input[type=range] {
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  height:7px;
  border:0;
  border-radius:8px;
  margin:8px 0;
  cursor:pointer;
  min-width:0;
}

input[type=range]::-webkit-slider-thumb {
  appearance:none;
  width:15px;
  height:15px;
  background:white;
  border:2px solid #557b64;
  border-radius:50%;
  box-shadow:0 1px 4px #0003;
}

input[type=range]::-moz-range-thumb {
  width:12px;
  height:12px;
  background:white;
  border:2px solid #557b64;
  border-radius:50%;
  box-shadow:0 1px 4px #0003;
}

.hue-range {
  background:linear-gradient(to right,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00);
}

.format-list {
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:4px 0;
}

.format-list>div {
  display:flex;
  align-items:center;
  gap:9px;
  min-height:38px;
}

.format-list>div>span {
  font-size:9px;
  color:var(--muted);
  width:27px;
  flex:none;
}

.format-list code {
  font:10px var(--mono);
  word-break:break-all;
  flex:1;
}

.format-list .icon-button {
  font-size:17px;
  min-width:28px;
  min-height:30px;
}

.cmyk-details {
  font-size:10px;
  color:var(--muted);
  margin-top:13px;
}

.cmyk-details summary {
  cursor:pointer;
  padding:2px 0;
}

.cmyk-details p {
  margin-top:8px;
  line-height:1.7;
}

.save-button {
  width:100%;
  margin-top:19px;
}

.local-note {
  text-align:center;
  font-size:10px;
  color:var(--muted);
  margin-top:10px;
}

.collection-panel {
  margin-top:22px;
  padding:24px 26px 19px;
}

.collection-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
}

.collection-heading h2 {
  font-size:18px;
  font-weight:600;
  margin-top:8px;
}

.collection-actions {
  display:flex;
  gap:8px;
  align-items:center;
}

.collection-actions .button {
  min-height:36px;
  font-size:11px;
  padding:7px 12px;
}

.saved-list {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(142px,1fr));
  gap:12px;
  margin-top:20px;
}

.saved-empty {
  grid-column:1/-1;
  border:1px dashed var(--line);
  border-radius:8px;
  min-height:88px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  padding:15px;
}

.empty-swatches {
  display:flex;
  gap:5px;
  transform:rotate(-6deg);
}

.empty-swatches i {
  width:22px;
  height:30px;
  border-radius:5px;
  background:#f0e5d9;
  border:1px solid #ddd9cf;
}

.empty-swatches i:nth-child(2) {
  background:#d6e2d6;
  transform:translateY(-5px);
}

.empty-swatches i:nth-child(3) {
  background:#e8dfc4;
}

.saved-empty p {
  font-size:12px;
  line-height:1.9;
  color:var(--muted);
}

.saved-empty strong {
  font-weight:500;
  color:var(--ink);
}

.saved-card {
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  position:relative;
}

.saved-color {
  display:block;
  width:100%;
  padding:0;
  text-align:left;
}

.saved-color .color-strip {
  display:block;
  height:68px;
}

.color-strip>span {
  display:block;
  width:100%;
  height:100%;
}

.saved-color .color-caption {
  display:block;
  padding:10px 35px 10px 10px;
  font:11px var(--mono);
}

.delete-color {
  position:absolute;
  right:5px;
  bottom:3px;
  min-width:30px;
  min-height:30px;
  font-size:18px;
  color:#76887c;
  border-radius:5px;
}

.delete-color:hover {
  color:#a03d31;
  background:#fbefec;
}

.collection-footnote {
  font-size:10px;
  color:var(--muted);
  line-height:1.7;
  margin-top:15px;
}

.site-footer {
  display:flex;
  justify-content:space-between;
  gap:14px;
  font-size:10px;
  color:var(--muted);
  padding:24px 2px 0;
}

.site-footer>span:first-child {
  font-weight:600;
}

.site-footer .muted {
  font-weight:400;
  margin-left:7px;
}

.screen-empty {
  min-height:492px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:18px;
  padding:25px;
}

.screen-empty h2 {
  font-size:23px;
  font-weight:600;
}

.screen-empty>p:not(.eyebrow) {
  font-size:12px;
  color:var(--muted);
  line-height:1.9;
  max-width:380px;
}

.screen-empty .eyebrow {
  margin:5px 0 -6px;
}

.screen-illustration {
  width:158px;
  height:107px;
  border:6px solid #d8e3d8;
  border-radius:12px;
  position:relative;
  background:#f3e4cc;
  margin-bottom:18px;
}

.screen-illustration span {
  position:absolute;
  width:65px;
  height:65px;
  border-radius:50%;
  background:#7f9f8a;
  top:13px;
  left:18px;
}

.screen-illustration i {
  position:absolute;
  right:1px;
  bottom:-9px;
  font:64px var(--mono);
  color:#3b7156;
}

.screen-illustration:after {
  content:"";
  position:absolute;
  width:65px;
  height:6px;
  background:#d8e3d8;
  bottom:-20px;
  left:40px;
  border-radius:5px;
}

.color-field {
  height:337px;
  position:relative;
  border-radius:9px;
  touch-action:none;
  cursor:crosshair;
  background:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,transparent),hsl(160 100% 50%);
}

.color-field .selection-marker {
  width:21px;
  height:21px;
}

.hue-control {
  display:flex;
  align-items:center;
  gap:17px;
  font-size:12px;
  margin-top:22px;
}

.hue-control label {
  flex:none;
}

.hue-control output {
  font:11px var(--mono);
  min-width:36px;
}

.field-instructions {
  font-size:10px;
  color:var(--muted);
  line-height:1.8;
  margin:12px 0 18px;
}

.quick-colors {
  display:flex;
  align-items:center;
  gap:10px;
}

.quick-colors>span {
  margin-right:6px;
}

.quick-colors button {
  width:25px;
  height:25px;
  border-radius:50%;
  background:var(--swatch);
  border:1px solid #0002;
}

.notice {
  font-size:12px;
  line-height:1.8;
  background:#fff4dc;
  border:1px solid #e9dcb9;
  padding:12px 16px;
  border-radius:8px;
  margin-bottom:18px;
  color:#775d2b;
}

.toast {
  position:fixed;
  bottom:25px;
  left:50%;
  transform:translateX(-50%);
  background:#233e32;
  color:#fff;
  box-shadow:0 8px 35px #142b3026;
  padding:12px 14px 12px 20px;
  border-radius:10px;
  display:flex;
  align-items:center;
  gap:12px;
  z-index:20;
  font-size:13px;
  max-width:calc(100vw - 24px);
  width:max-content;
}

.toast button {
  color:#fff;
  min-height:32px;
  white-space:nowrap;
}

.toast #undoButton {
  text-decoration:underline;
  text-underline-offset:4px;
}

.toast #dismissToast {
  font-size:20px;
  min-width:25px;
}

.skip-link {
  position:fixed;
  top:8px;
  left:12px;
  clip-path:inset(50%);
  width:1px;
  height:1px;
  overflow:hidden;
  white-space:nowrap;
  background:white;
  padding:0;
  z-index:50;
}

.skip-link:focus {
  clip-path:none;
  width:auto;
  height:auto;
  padding:10px;
}

dialog {
  border:1px solid var(--line);
  border-radius:16px;
  padding:32px;
  max-width:540px;
  width:calc(100% - 32px);
  color:var(--ink);
  box-shadow:0 15px 80px #0002;
  max-height:85vh;
  overflow:auto;
}

dialog::backdrop {
  background:#172d2555;
  backdrop-filter:blur(3px);
}

dialog h2 {
  font-size:23px;
  margin:8px 25px 17px 0;
}

dialog p,dialog li {
  font-size:13px;
  line-height:1.9;
  color:var(--muted);
  margin-bottom:15px;
}

dialog ol {
  padding-left:20px;
}

dialog strong {
  color:var(--ink);
}

.dialog-close {
  position:absolute;
  right:15px;
  top:14px;
}

#manualCopy {
  display:block;
  width:100%;
  border:1px solid var(--line);
  padding:13px;
  font:14px var(--mono);
  border-radius:7px;
  margin:14px 0 20px;
}

@media(min-width:1440px) {
  .page-shell {
    max-width:1240px;
  }
  .site-header {
    padding-left:max(32px,calc((100vw - 1240px)/2));
    padding-right:max(32px,calc((100vw - 1240px)/2));
  }
  .workspace {
    grid-template-columns:minmax(0,1fr) 360px;
  }
}

@media(max-width:1390px) {
  .page-shell {
    padding-left:32px;
    padding-right:32px;
  }
}

@media(max-width:1000px) {
  .workspace {
    grid-template-columns:minmax(0,1fr) 322px;
    gap:16px;
  }
  .source-panel {
    padding:20px;
  }
  .editor-panel {
    padding:20px;
  }
  .intro-note {
    display:none;
  }
  .source-heading>.small {
    display:none;
  }
  .tabs {
    gap:16px;
  }
  .tabs button {
    font-size:12px;
  }
  .page-shell {
    padding-left:22px;
    padding-right:22px;
  }
  .version {
    display:none;
  }
  .slider-row {
    gap:6px;
    grid-template-columns:55px 1fr 34px;
  }
}

@media(max-width:760px) {
  .site-header {
    height:64px;
    padding:0 20px;
  }
  .brand {
    font-size:21px;
  }
  .header-meta {
    font-size:0;
    gap:0;
  }
  .header-meta>.status-dot {
    display:none;
  }
  .header-meta .text-button {
    font-size:11px;
    margin-left:0;
  }
  .page-shell {
    padding:0 16px 20px;
  }
  .intro {
    padding:30px 2px 25px;
  }
  .eyebrow {
    font-size:8px;
    letter-spacing:1.5px;
  }
  h1 {
    font-size:29px;
  }
  .intro-description {
    font-size:12px;
    max-width:320px;
    line-height:1.8;
  }
  .workspace {
    grid-template-columns:1fr;
    gap:16px;
  }
  .source-panel,.editor-panel {
    padding:20px;
  }
  .tabs {
    justify-content:space-between;
    gap:8px;
  }
  .tabs button {
    padding:15px 1px;
    font-size:12px;
  }
  .drop-zone {
    min-height:365px;
  }
  .empty-state {
    padding-left:8px;
    padding-right:8px;
  }
  .upload-formats {
    font-size:9px;
  }
  .empty-state h2 {
    font-size:16px;
  }
  .image-stage {
    min-height:320px;
    padding:8px;
  }
  .image-toolbar {
    min-height:46px;
  }
  #imageName {
    max-width:210px;
  }
  .sample-options {
    font-size:10px;
    gap:8px;
  }
  .sample-options select {
    font-size:10px;
  }
  .image-bottom {
    font-size:9px;
  }
  .section-row>.small {
    font-size:9px;
  }
  .color-preview {
    height:143px;
  }
  .editor-panel .sliders {
    gap:18px;
  }
  .slider-row {
    grid-template-columns:62px 1fr 43px;
  }
  .slider-row label {
    font-size:12px;
  }
  .format-list code {
    font-size:12px;
  }
  .format-list>div {
    min-height:44px;
  }
  .hex-input-row input {
    font-size:18px;
  }
  .hex-label-row {
    font-size:11px;
  }
  .local-note {
    font-size:11px;
  }
  .collection-panel {
    padding:21px 18px 18px;
    margin-top:16px;
  }
  .collection-heading {
    gap:9px;
  }
  .collection-heading h2 {
    font-size:16px;
  }
  .collection-actions {
    gap:0;
  }
  .collection-actions .button {
    font-size:10px;
    padding:6px 8px;
  }
  .saved-list {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .saved-empty {
    gap:15px;
  }
  .saved-empty p {
    font-size:11px;
  }
  .collection-footnote {
    font-size:10px;
  }
  .site-footer {
    flex-direction:column;
    gap:10px;
    line-height:1.5;
    padding-top:23px;
    font-size:9px;
  }
  .screen-empty {
    padding:20px 5px;
    min-height:400px;
  }
  .screen-empty h2 {
    font-size:21px;
  }
  .color-field {
    height:280px;
  }
  .quick-colors {
    gap:9px;
  }
  .quick-colors>span {
    font-size:10px;
    margin:0;
  }
  .quick-colors button {
    width:23px;
    height:23px;
  }
  .toast {
    bottom:14px;
    font-size:12px;
    padding:10px 12px;
    gap:8px;
  }
  dialog {
    padding:25px;
  }
  .history-section {
    margin-top:14px;
  }
  .intro-note {
    display:none;
  }
}

.mobile-dock {
  display:none;
}

@media(max-width:760px) {
  .mobile-dock {
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    z-index:10;
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 16px calc(10px + env(safe-area-inset-bottom));
    background:#fffffff5;
    border-top:1px solid var(--line);
    box-shadow:0 -5px 20px #263e3608;
  }
  .dock-swatch {
    display:block;
    width:32px;
    height:32px;
    flex:none;
    border-radius:7px;
    overflow:hidden;
  }
  .dock-swatch i {
    display:block;
    width:100%;
    height:100%;
  }
  .mobile-dock code {
    font:12px var(--mono);
    flex:1;
    min-width:0;
  }
  .mobile-dock .button {
    font-size:12px;
    padding:8px 13px;
    min-height:38px;
  }
  .page-shell {
    padding-bottom:100px;
  }
  .toast {
    bottom:calc(80px + env(safe-area-inset-bottom));
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important;
  }
}
