:root {
  --bg: #131314;
  --surface: #1e1f20;
  --surface-2: #282a2c;
  --surface-3: #333537;
  --outline: #3c4043;
  --text: #e3e3e3;
  --muted: #9aa0a6;
  --primary: #ffffff;
  --on-primary: #131314;
  --check-a: #1a1b1c;
  --check-b: #232425;
  --sans: "Google Sans Flex", system-ui, sans-serif;
  --code: "Google Sans Code", ui-monospace, monospace;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
img.px { image-rendering: pixelated; }
.code { font-family: var(--code); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

svg.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
  background: var(--bg);
}

.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 500; }
.brand img { width: 28px; height: 28px; }

.account { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.chip-credits { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: var(--r-sm); background: var(--surface); }
.chip-credits:hover { background: var(--surface-2); }
.chip-credits b { font-family: var(--code); font-weight: 500; }

.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: var(--r-sm); background: none; color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--text); background: var(--surface); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
}
.btn:hover { background: var(--surface-3); }
.btn.primary { background: var(--primary); color: var(--on-primary); }
.btn.primary:hover { background: #d9d9d9; }
.btn.sm { height: 36px; padding: 0 12px; font-size: 13px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

main { width: 100%; max-width: 1080px; margin: 0 auto; padding: 24px 24px 64px; flex: 1; display: flex; flex-direction: column; gap: 40px; }
main.create { padding-bottom: 220px; }

h1, h2 { margin: 0; font-weight: 500; }
h1 { font-size: 40px; line-height: 1.15; letter-spacing: -.5px; }
h2 { font-size: 20px; }
p { margin: 0; }

.empty-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-top: 6vh; }
.empty-hero p { color: var(--muted); font-size: 17px; }
.suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.suggestion { height: 36px; padding: 0 14px; border: 1px solid var(--outline); border-radius: var(--r-sm); background: none; color: var(--text); cursor: pointer; font-size: 14px; }
.suggestion:hover { background: var(--surface); }

.belts { --cell: 72px; width: 100vw; margin-left: calc(50% - 50vw); display: grid; overflow: hidden; opacity: .9; }
.lane { height: var(--cell); overflow: hidden; }
.belt {
  height: 100%;
  width: calc(100vw + var(--n) * var(--cell));
  background-repeat: repeat-x;
  background-size: calc(var(--n) * var(--cell)) var(--cell);
  image-rendering: pixelated;
  will-change: transform;
  animation: 7s linear infinite;
}
.belt.left { animation-name: belt-left; }
.belt.right { animation-name: belt-right; }
@keyframes belt-left { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--n) * var(--cell))); } }
@keyframes belt-right { from { transform: translateX(calc(-1 * var(--n) * var(--cell))); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .belt { animation: none; } }

.feed { display: flex; flex-direction: column; gap: 36px; }
.gen { display: flex; flex-direction: column; gap: 12px; }
.gen-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gen-prompt { font-size: 16px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px; background: var(--surface); color: var(--muted); font-family: var(--code); font-size: 12px; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--check-a) 25%, var(--check-b) 0 50%, var(--check-a) 0 75%, var(--check-b) 0) 0 0 / 24px 24px;
}
.tile img { width: 68%; height: 68%; }
.tile { -webkit-touch-callout: none; user-select: none; outline: none; }
.tile:focus-visible { box-shadow: 0 0 0 2px var(--primary) inset; }
.tile img { pointer-events: none; transition: transform .15s; }
.tile .actions { position: absolute; inset: auto 8px 8px 8px; display: flex; gap: 6px; justify-content: center; opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .15s, transform .15s; }
.tile.open img { transform: scale(.92); }
.tile.open .actions { opacity: 1; transform: none; pointer-events: auto; }
.mini { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 8px; background: rgba(19, 19, 20, .9); color: var(--text); font-family: var(--code); font-size: 12px; }
.mini:hover { background: var(--surface-3); }
.mini svg.i { width: 14px; height: 14px; }

.shimmer { background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

.composer-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; padding: 16px 24px 24px; background: linear-gradient(transparent, var(--bg) 35%); }
.composer {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 12px 18px;
  border: 1px solid var(--outline);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.composer:focus-within { border-color: #5f6368; }
.composer textarea { width: 100%; min-height: 26px; max-height: 140px; border: 0; outline: none; background: none; resize: none; font-size: 16px; line-height: 1.5; padding: 4px 0; }
.composer textarea::placeholder { color: var(--muted); }
.composer-row { display: flex; align-items: flex-start; gap: 8px; }
.opts { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.menu { position: relative; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px 0 12px; border: 0; border-radius: 12px; background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 500; cursor: pointer; }
.chip-btn:hover, .menu.open .chip-btn { background: var(--surface-3); }
.chip-btn svg.i { width: 16px; height: 16px; }
.chip-btn svg.i:last-child { color: var(--muted); }
.menu-pop { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 12; min-width: 260px; padding: 6px; border: 1px solid var(--outline); border-radius: var(--r-md); background: var(--surface); box-shadow: 0 12px 32px rgba(0, 0, 0, .45); display: none; }
.menu.open .menu-pop { display: grid; gap: 2px; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--text); text-align: left; cursor: pointer; }
.menu-item:hover { background: var(--surface-2); }
.menu-item.active { background: var(--surface-2); }
.menu-item:disabled { opacity: .45; cursor: not-allowed; }
.menu-item svg.i { width: 18px; height: 18px; color: var(--muted); }
.menu-item.active svg.i { color: var(--text); }
.menu-text { flex: 1; display: flex; flex-direction: column; }
.menu-text b { font-weight: 500; font-size: 14px; }
.menu-text span { color: var(--muted); font-size: 12px; }
.badge { padding: 2px 8px; border-radius: 6px; background: var(--surface-3); color: var(--muted); font-family: var(--code); font-size: 11px; }

.settings-pop { width: min(340px, calc(100vw - 32px)); padding: 14px; gap: 14px; }
.menu.open .settings-pop { gap: 14px; }
.set-row { display: grid; gap: 8px; }
.set-title { color: var(--muted); font-size: 12px; font-weight: 500; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg); }
.seg-btn { flex: 1; min-width: 0; height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 8px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.seg-btn:hover:not(:disabled) { color: var(--text); }
.seg-btn.active { background: var(--surface-3); color: var(--text); }
.seg-btn:disabled { cursor: not-allowed; opacity: .5; }
.soon { padding: 1px 5px; border-radius: 5px; background: var(--surface-2); font-family: var(--code); font-size: 10px; }
.set-note { color: var(--muted); font-size: 12px; }
.cost { margin-left: auto; white-space: nowrap; height: 36px; display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-family: var(--code); font-size: 13px; }
.cost svg.i { width: 16px; height: 16px; }
.send { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--primary); color: var(--on-primary); cursor: pointer; }
.send:hover { background: #d9d9d9; }
.send:disabled { background: var(--surface-3); color: var(--muted); cursor: not-allowed; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.folder-card { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.folder-card .cover {
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  transition: background .15s;
}
.folder-card .cover img { width: 100%; height: 100%; border-radius: 10px; background: conic-gradient(var(--check-a) 25%, var(--check-b) 0 50%, var(--check-a) 0 75%, var(--check-b) 0) 0 0 / 16px 16px; }
.folder-card .cover.blank, .folder-card.new .cover { display: grid; grid-template-columns: 1fr; place-items: center; color: var(--muted); }
.folder-card .cover.blank svg.i, .folder-card.new .cover svg.i { width: 36px; height: 36px; }
.folder-card.new .cover { background: none; border: 1px dashed var(--outline); }
.folder-card:hover .cover { background: var(--surface-2); }
.folder-card.new:hover .cover { color: var(--text); border-color: #5f6368; background: none; }
.folder-card .name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folder-card .meta { color: var(--muted); font-size: 13px; }

.folder-head { display: flex; align-items: center; gap: 8px; }
.title-input { flex: 1 1 0; min-width: 0; text-overflow: ellipsis; height: 48px; padding: 0 10px; border: 1px solid transparent; border-radius: var(--r-sm); background: none; font-size: 26px; font-weight: 500; outline: none; }
.title-input:hover { background: var(--surface); }
.title-input:focus { border-color: var(--outline); background: var(--surface); }
.folder-head .tag { flex: none; }

.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

.page-head { display: flex; flex-direction: column; gap: 8px; }
.page-head p { color: var(--muted); font-size: 16px; }

.search { position: relative; max-width: 460px; }
.search svg.i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; height: 48px; padding: 0 16px 0 46px; border: 1px solid var(--outline); border-radius: var(--r-md); background: var(--surface); outline: none; }
.search input:focus { border-color: #5f6368; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; }
.item { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; background: none; text-align: left; cursor: pointer; position: relative; }
.item .label { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item:hover .tile { outline: 1px solid var(--outline); }
.item.selected .tile { outline: 2px solid var(--primary); }
.tick { position: absolute; top: 8px; right: 8px; z-index: 1; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: rgba(19, 19, 20, .7); border: 1px solid var(--outline); }
.tick svg.i { width: 14px; height: 14px; visibility: hidden; }
.item.selected .tick { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.item.selected .tick svg.i { visibility: visible; }

.board {
  --cell: 64px;
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--cell));
  gap: 0;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--surface);
}
.cell { width: var(--cell); height: var(--cell); display: grid; place-items: center; border: 0; padding: 0; background: conic-gradient(var(--check-a) 25%, var(--check-b) 0 50%, var(--check-a) 0 75%, var(--check-b) 0) 0 0 / 16px 16px; outline: 1px solid rgba(255, 255, 255, .04); }
.cell.filled { cursor: pointer; }
.cell.filled:hover { outline: 2px solid var(--primary); outline-offset: -2px; }
.cell img { width: 100%; height: 100%; }

.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pack { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r-md); background: var(--surface); border: 1px solid transparent; }
.pack.featured { border-color: var(--outline); background: var(--surface-2); }
.pack .price { font-size: 40px; font-weight: 500; line-height: 1.1; }
.pack .per { font-family: var(--code); font-size: 13px; color: var(--muted); }
.pack .btn { margin-top: 8px; }

.rates { display: grid; gap: 10px; }
.rate { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.rate b { color: var(--text); font-weight: 500; min-width: 80px; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stats { display: flex; gap: 12px; flex-wrap: wrap; }
.stat { min-width: 160px; padding: 16px 18px; border-radius: var(--r-md); background: var(--surface); }
.stat b { display: block; font-family: var(--code); font-size: 24px; font-weight: 500; }

.empty { padding: 48px 0; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 16px; }

dialog { width: min(420px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--outline); border-radius: var(--r-lg); background: var(--surface); color: var(--text); }
dialog::backdrop { background: rgba(0, 0, 0, .6); }
.login-form { display: grid; gap: 14px; padding: 24px; }
.login-form a { text-decoration: underline; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; }
.login-form input { height: 48px; padding: 0 14px; border: 1px solid var(--outline); border-radius: var(--r-sm); background: var(--bg); outline: none; }
.login-form input:focus { border-color: #5f6368; }
.btn.google { width: 100%; }
.g-logo { width: 18px; height: 18px; flex: none; }
.captcha { min-height: 65px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--outline); }
.oauth { display: grid; gap: 14px; }
.login-form [hidden] { display: none !important; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; }
.link { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }

.toast { position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%); z-index: 20; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: var(--r-sm); background: var(--surface-3); }

.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 24px; color: var(--muted); font-size: 13px; }
body.in-folder .foot { display: none; }

@media (max-width: 760px) {
  .top { padding: 10px 16px; gap: 12px; flex-wrap: wrap; }
  .brand span { display: none; }
  .title-input { font-size: 20px; height: 44px; padding: 0 6px; }
  .folder-head { gap: 4px; }
  .folder-head .tag, .folder-head .lbl { display: none; }
  .menu-pop { min-width: 230px; }
  main { padding: 16px 16px 48px; }
  main.create { padding-bottom: 240px; }
  h1 { font-size: 30px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .packs { grid-template-columns: 1fr; }
  .belts { --cell: 52px; }
  .board { --cell: 40px; }
  .composer-dock { padding: 12px 12px 16px; }
  .chip-btn { padding: 0 8px 0 10px; }
  .chip-btn svg.i:last-child, .chip-btn .lbl, .cost-unit { display: none; }
  .opts { flex-wrap: nowrap; gap: 6px; }

}

.menu.down .menu-pop { top: calc(100% + 8px); bottom: auto; left: auto; right: 0; }
.menu-email { padding: 8px 12px 10px; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--outline); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
a.menu-item { color: var(--text); }

.settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.setting-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--r-md); background: var(--surface); }
.setting-card.highlight { border: 1px solid #5f6368; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 32px; }
.choice { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--bg); }
.choice button { min-width: 40px; height: 32px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer; font-weight: 500; }
.choice button.active { background: var(--surface-3); color: var(--text); }

.key-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg); }
.key-box code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.key-form { display: flex; gap: 8px; flex-wrap: wrap; }
.key-form input { flex: 1 1 220px; height: 40px; padding: 0 12px; border: 1px solid var(--outline); border-radius: var(--r-sm); background: var(--bg); outline: none; }
.key-form input:focus { border-color: #5f6368; }
.keys { display: flex; flex-direction: column; }
.key-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--outline); }
.key-row:first-child { border-top: 0; }
.key-name { font-weight: 500; flex: 1 1 140px; }
.code-block { margin: 0; padding: 14px 16px; border-radius: var(--r-sm); background: var(--bg); overflow-x: auto; font-family: var(--code); font-size: 13px; line-height: 1.6; }

dialog.editor { width: min(960px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; overflow: hidden; }
dialog.editor[open] { display: flex; flex-direction: column; }
.editor-head { display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-bottom: 1px solid var(--outline); }
.editor-head h2 { font-size: 18px; margin: 0 6px 0 2px; }
.editor-prompt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.editor-head .btn { margin-left: 6px; }
.editor-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 16px; padding: 16px; }
.editor-stage { min-height: 0; display: grid; place-items: center; container-type: size; min-height: 420px; }
.editor-stage canvas { width: min(100cqw, 100cqh); height: auto; aspect-ratio: 1; border-radius: 12px; image-rendering: pixelated; touch-action: none; cursor: crosshair; }
.editor-stage canvas[data-tool=picker] { cursor: copy; }
.editor-dock { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.editor-tools { display: grid; grid-template-columns: repeat(4, 44px); gap: 6px; padding: 6px; border-radius: var(--r-md); background: var(--bg); justify-content: space-between; }
.tool { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: none; color: var(--muted); cursor: pointer; flex: none; }
.tool:hover { color: var(--text); background: var(--surface-2); }
.tool.active { color: var(--on-primary); background: var(--primary); }
.tool-sep { display: none; }
.editor-colors { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.color-pick { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 12px; background: var(--bg); cursor: pointer; flex: none; }
.color-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.swatch-current { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--outline); flex: none; }
.palette { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.swatch { aspect-ratio: 1; min-width: 28px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 6px; cursor: pointer; padding: 0; }
.swatch:hover { outline: 2px solid var(--primary); outline-offset: 1px; }

@media (max-width: 760px) {
  dialog.editor { width: 100vw; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; }
  .editor-head { padding: 6px 8px; }
  .editor-head h2 { display: none; }
  .editor-body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 0; padding: 0; }
  .editor-stage { min-height: 0; padding: 12px; }
  .editor-stage canvas { border-radius: 8px; }
  .editor-dock { gap: 0; border-top: 1px solid var(--outline); background: var(--surface); padding-bottom: env(safe-area-inset-bottom); }
  .editor-tools { display: flex; gap: 4px; padding: 8px 10px; border-radius: 0; background: none; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
  .tool-sep { display: block; width: 1px; height: 28px; align-self: center; margin: 0 4px; background: var(--outline); flex: none; }
  .editor-colors { flex-direction: row; align-items: center; gap: 8px; padding: 0 10px 12px; }
  .color-pick { padding: 4px; }
  .color-pick .color-hex { display: none; }
  .palette { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
  .swatch { width: 36px; height: 36px; flex: none; }
}



@media (max-width: 760px) {
  .chip-btn { gap: 4px; }
}

@media (max-width: 380px) {
  .opts { flex-wrap: wrap; }
}
