@font-face { font-family: "Studio"; font-weight: 400; src: url(../fonts/host-grotesk-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Studio"; font-weight: 500; src: url(../fonts/host-grotesk-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Studio"; font-weight: 400; unicode-range: U+0100-024F; src: url(../fonts/host-grotesk-latin-ext-400-normal.woff2) format("woff2"); }
:root { --surface: #fff; --on-ink: #fff; --bar: rgba(255,255,255,.92); --bg: #fff; --ink: #0b0b0b; --muted: #6e6c68; --line: #e6e5e2; --soft: #f4f3f1; --accent: #e8401c; --m: clamp(16px, 1.8vw, 26px);
  --ease: cubic-bezier(.16,1,.3,1); --sheet: cubic-bezier(.32,.72,0,1); }
* { box-sizing: border-box; }
html { background: #0c0c0c; }
body { margin: 0; color: var(--ink); font: 400 15px/1.45 "Studio", "Helvetica Neue", Arial, sans-serif; letter-spacing: -.007em; -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, p, ul, fieldset { margin: 0; } ul { padding: 0; list-style: none; }
.page { min-height: 100vh; background: var(--bg); padding-bottom: 110px; transition: scale .6s var(--sheet), border-radius .6s; transform-origin: 50% 0; }
.top { display: flex; justify-content: space-between; align-items: baseline; padding: 20px var(--m); font-size: 13px; font-weight: 500; }
.logo { color: inherit; text-decoration: none; font-size: 15px; } .logo span { color: var(--muted); font-weight: 400; }
.meta { color: var(--muted); }
.label { font-size: 13px; font-weight: 500; }
.intro { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; padding: clamp(40px, 8vw, 110px) var(--m) 48px; }
.intro .label { grid-column: 4 / 5; padding-top: .7em; }
.statement { grid-column: 5 / 12; font-size: clamp(28px, 3.4vw, 50px); font-weight: 400; line-height: 1.05; letter-spacing: -.022em; text-indent: 22%; }
.h2 { font-size: 28px; font-weight: 400; letter-spacing: -.02em; line-height: 1.05; }
.bar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; padding: 0 var(--m) 20px; position: sticky; top: 0; z-index: 5; background: var(--bar); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 34px; padding: 0 14px; border: 0; border-radius: 99px; background: var(--soft); font-size: 13px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.select { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.select select { height: 34px; padding: 0 30px 0 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23111' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; }
.btn { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border: 0; border-radius: 99px; background: var(--ink); color: var(--on-ink); font-size: 14px; font-weight: 500; cursor: pointer; transition: transform .12s cubic-bezier(.23,1,.32,1); }
.btn:active { transform: scale(.97); } .btn--line { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.link { border: 0; background: none; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13px; color: var(--muted); justify-self: start; }
/* library */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px 14px; padding: 8px var(--m) 40px; }
.card { display: grid; gap: 10px; color: inherit; text-decoration: none; }
.card .ad { border-radius: 6px; overflow: hidden; transition: transform .5s var(--ease); background: var(--soft); }
.card:hover .ad, .card:focus-visible .ad { transform: translateY(-4px); }
.card .name { display: flex; justify-content: space-between; font-size: 13px; font-weight: 500; } .card .name span { color: var(--muted); font-weight: 400; }
.grid.is-swapping li { opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .6s; }
.grid li { transition: opacity .45s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
/* editor */
.editor { display: grid; grid-template-columns: 320px 1fr 260px; gap: 28px; padding: 28px var(--m) 40px; align-items: start; }
.panel { display: grid; gap: 18px; position: sticky; top: 20px; }
fieldset { border: 0; padding: 0; display: grid; gap: 8px; } legend { font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); position: relative; }
.sw::after { content: ""; position: absolute; right: 2px; bottom: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--a); box-shadow: 0 0 0 2px #fff; }
.sw[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.fields { display: grid; gap: 12px; }
.fields label, .kit label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.fields input, .fields textarea, .kit input, .kit select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 15px; font-weight: 400; resize: vertical; }
.fields textarea { min-height: 64px; }
.file { display: grid; gap: 6px; font-size: 13px; font-weight: 500; } .file span { color: var(--muted); font-weight: 400; }
.stage { display: grid; gap: 16px; justify-items: center; }
.canvas { width: 100%; display: grid; place-items: center; min-height: 60vh; padding: 28px; background: var(--soft); border-radius: 14px; }
.canvas .ad { width: min(100%, var(--fw)); box-shadow: 0 30px 60px -36px rgba(0,0,0,.45); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.status { width: 100%; text-align: center; font-size: 13px; color: var(--muted); min-height: 1.2em; }
.variants { display: grid; gap: 12px; position: sticky; top: 20px; }
.vgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: start; } .vgrid.themes { grid-template-columns: repeat(3, 1fr); }
.vgrid button { padding: 0; border: 0; background: none; cursor: pointer; display: grid; gap: 4px; text-align: left; font-size: 11px; color: var(--muted); }
.vgrid .ad { border-radius: 4px; overflow: hidden; }
/* sets */
.grid.set { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
/* brand kit */
.kit { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: min-content; align-items: start; gap: 16px 20px; padding: 0 var(--m) 40px; }
.kit > label { grid-column: 1 / 7; } .kit .colours { grid-column: 1 / 7; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kit input[type=color] { height: 44px; padding: 4px; } .kit-preview { grid-column: 7 / 13; grid-row: 1 / span 9; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kit-preview .ad { border-radius: 6px; overflow: hidden; } .hint { grid-column: 1 / 7; font-size: 13px; color: var(--muted); }
/* the ad box: aspect from the format, content scales with the box */
.ad { aspect-ratio: var(--ar); width: 100%; }
/* dock */
.dock { position: fixed; left: 50%; bottom: 18px; translate: -50% 0; z-index: 20; display: flex; gap: 2px; padding: 5px; border-radius: 99px; background: #1e1e1e; }
.dock a { height: 40px; display: grid; place-items: center; padding: 0 18px; border-radius: 99px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; transition: background .3s var(--ease), color .3s; }
.dock a[aria-current="page"] { background: #fff; color: #0b0b0b; }
.screen { animation: screen-in .6s var(--ease); } @keyframes screen-in { from { opacity: 0; filter: blur(4px); transform: translateY(8px); } }
@media (max-width: 1100px) { .editor { grid-template-columns: 1fr; } .panel, .variants { position: static; } .vgrid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 720px) {
  .intro { grid-template-columns: 1fr; } .intro .label, .statement { grid-column: 1; } .statement { text-indent: 12%; }
  .kit > label, .kit .colours, .kit-preview, .hint { grid-column: 1 / -1; grid-row: auto; } .kit .colours { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: 20px 10px; } .vgrid, .vgrid.themes { grid-template-columns: repeat(3, 1fr); }
  .dock a { padding: 0 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .screen { animation: none; } .grid li, .card .ad { transition: none; } }
/* ---- v2: sign in, dropdowns, editor sections, brands ---- */
.top { align-items: center; } .top-right { display: flex; gap: 8px; align-items: center; }
.muted { color: var(--muted); font-size: 13px; }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(60% 50% at 80% 10%, #ffd9cf, transparent 70%), radial-gradient(50% 50% at 10% 90%, #dfe6ff, transparent 70%), #f4f3f1; }
.auth-card { width: min(420px, 100%); display: grid; gap: 18px; padding: 34px; border-radius: 22px; background: var(--surface); box-shadow: 0 40px 80px -40px rgba(0,0,0,.35); }
.auth-card form { display: grid; gap: 12px; }
.auth-card label, .kit label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.auth-card input, .kit input:not([type=color]):not([type=checkbox]) { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 15px; }
.auth-card .hint, .hint { font-size: 12px; color: var(--muted); line-height: 1.45; }
.err { min-height: 1em; font-size: 13px; color: #c4361a; }
.btn.wide { width: 100%; justify-content: center; height: 46px; }
/* dropdown */
.dd { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.dd.full { display: grid; gap: 6px; }
.dd-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); cursor: pointer; font-size: 13px; font-weight: 500; white-space: nowrap; transition: border-color .2s, box-shadow .2s; }
.dd.full .dd-btn { width: 100%; height: 42px; border-radius: 12px; justify-content: space-between; }
.dd-btn:hover { border-color: #cfcdc8; } .dd.open .dd-btn { box-shadow: 0 0 0 3px rgba(11,11,11,.06); border-color: var(--ink); }
.dd-btn span { overflow: hidden; text-overflow: ellipsis; max-width: 220px; } .dd-btn svg { width: 10px; height: 6px; flex: none; transition: rotate .25s var(--ease); } .dd.open .dd-btn svg { rotate: 180deg; }
.dd-list { position: absolute; z-index: 40; top: calc(100% + 6px); right: 0; min-width: 100%; width: max-content; max-width: 320px; max-height: 360px; overflow: auto; margin: 0; padding: 6px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 24px 48px -16px rgba(0,0,0,.28); animation: dd-in .22s var(--ease); }
.dd.full .dd-list { left: 0; right: 0; max-width: none; }
@keyframes dd-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.dd-list li[role=option] { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; cursor: pointer; font-size: 14px; outline: none; }
.dd-list li[role=option]:hover, .dd-list li[role=option]:focus { background: var(--soft); }
.dd-list li[aria-selected="true"] { background: var(--ink); color: var(--on-ink); }
.dd-list em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); } .dd-list li[aria-selected="true"] em { color: #bbb; }
.dd-group { padding: 10px 10px 4px; font-size: 11px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.dd-sw { width: 16px; height: 16px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.bar-right { display: flex; gap: 10px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.chip span { margin-left: 6px; opacity: .5; font-weight: 400; }
/* editor sections */
.panel { max-height: calc(100vh - 40px); overflow: auto; padding-right: 6px; gap: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sec { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 12px; }
.sec[open] { padding-bottom: 6px; }
.sec summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 14px; font-weight: 500; list-style: none; }
.sec summary::-webkit-details-marker { display: none; }
.sec summary::after { content: "+"; font-size: 18px; font-weight: 400; transition: rotate .25s var(--ease); } .sec[open] summary::after { rotate: 45deg; }
.sec > *:not(summary) { margin-top: 2px; }
.colours { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.colours label { display: grid; gap: 4px; font-size: 11px; font-weight: 500; color: var(--muted); }
input[type=color] { width: 100%; height: 36px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.range { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; }
input[type=range] { accent-color: var(--ink); width: 100%; }
.file-btn { cursor: pointer; justify-content: center; height: 40px; font-size: 13px; }
.file-btn:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nudge { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nudge button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; font-size: 15px; }
.nudge button:active { transform: scale(.94); } .nudge span { font-size: 12px; color: var(--muted); margin-left: 6px; }
.size { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; } .size input { width: 76px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 99px; }
.swatches .sw { width: 34px; height: 34px; } .swatches .sw::after { display: none; }
.canvas .bi-ad { cursor: grab; touch-action: none; } .canvas .bi-ad [data-n] { cursor: move; }
.canvas .bi-ad [data-n]:hover { outline: 1px dashed rgba(59,130,246,.7); outline-offset: 4px; }
/* brands */
.brands { display: grid; grid-template-columns: 220px minmax(280px, 1fr) minmax(320px, 1.2fr); gap: 28px; padding: 0 var(--m) 60px; align-items: start; }
.brand-list { display: grid; gap: 8px; }
.brand-card { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; text-align: left; font-size: 14px; font-weight: 500; transition: border-color .2s; }
.brand-card[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.brand-card i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: #fff; font-style: normal; font-size: 12px; flex: none; overflow: hidden; }
.brand-card i img { width: 80%; height: 80%; object-fit: contain; }
.brand-card.add i { background: var(--soft); color: var(--ink); font-size: 20px; }
.brands .kit { display: grid; gap: 14px; padding: 0; grid-template-columns: 1fr; }
.brands .kit .colours { grid-template-columns: repeat(5, 1fr); }
.brands .kit-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: sticky; top: 20px; }
.brands .kit-preview .ad { border-radius: 8px; overflow: hidden; }
.logo-row { display: flex; align-items: center; gap: 12px; }
.logo-prev { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0/12px 12px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; flex: none; }
.logo-prev img { max-width: 80%; max-height: 80%; object-fit: contain; } .logo-prev b { font-size: 18px; }
.check { display: flex !important; align-items: center; gap: 10px !important; font-size: 13px; font-weight: 500; } .check input { width: 18px; height: 18px; accent-color: var(--ink); }
.link.danger { color: #c4361a; }
@media (max-width: 1100px) { .brands { grid-template-columns: 1fr; } .brands .kit-preview { position: static; } .panel { max-height: none; } }
@media (max-width: 720px) { .colours, .brands .kit .colours { grid-template-columns: repeat(3, 1fr); } .bar-right { margin-left: 0; } .top-right .dd-label { display: none; } }
.brands .kit-preview { grid-column: auto; grid-row: auto; width: 100%; }
.file-btn { white-space: nowrap; padding: 0 16px; }
.lib-photo { height: 36px; font-size: 13px; }
/* ---- v3: dark mode, sign-in stage, 3D loader, ripples, settings, mobile ---- */
:root[data-theme="dark"] { --surface: #17171a; --on-ink: #0b0b0b; --bar: rgba(14,14,16,.88); --bg: #0e0e10; --ink: #f2f1ee; --muted: #9a9893; --line: #2a2a2e; --soft: #1d1d21; color-scheme: dark; }
:root[data-theme="dark"] .dd-list { box-shadow: 0 0 0 1px #2a2a2e, 0 24px 48px -16px rgba(0,0,0,.7); }
:root[data-theme="dark"] .canvas { background: #141417; }
:root[data-theme="dark"] .btn { color: #0b0b0b; } :root[data-theme="dark"] .btn--line { color: var(--ink); }
:root[data-theme="dark"] .auth { background: radial-gradient(60% 50% at 80% 10%, #3a1408, transparent 70%), radial-gradient(50% 50% at 10% 90%, #0c1a4a, transparent 70%), #0b0b0d; }
:root[data-theme="dark"] .logo-prev { background: repeating-conic-gradient(#222 0 25%, #2b2b2b 0 50%) 0 0/12px 12px; }
body { background: var(--bg); transition: background .4s; }
.page { background: var(--bg); }
/* press feedback on everything clickable */
.btn, .chip, .dd-btn, .sw, .nudge button, .brand-card, .seg button, .switch, .dock a, .vgrid button { transition: transform .18s cubic-bezier(.23,1,.32,1), background .2s, color .2s, border-color .2s, box-shadow .2s; }
.btn:active, .chip:active, .dd-btn:active, .sw:active, .brand-card:active, .seg button:active, .dock a:active, .vgrid button:active { transform: scale(.95); }
.btn:hover { box-shadow: 0 10px 24px -14px rgba(0,0,0,.5); } .chip:hover { background: color-mix(in srgb, var(--soft) 70%, var(--ink) 8%); }
.card .ad { transform-style: preserve-3d; }
.card:hover .ad { transform: perspective(900px) rotateX(4deg) rotateY(-5deg) translateY(-6px); box-shadow: 0 30px 50px -30px rgba(0,0,0,.45); }
/* click ripple */
.ripple { position: fixed; z-index: 9999; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; pointer-events: none; border: 1.5px solid var(--accent); animation: ripple .65s cubic-bezier(.16,1,.3,1) forwards; }
.ripple::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); animation: ripple-dot .4s ease-out forwards; }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(5.4); opacity: 0; } }
@keyframes ripple-dot { from { opacity: .8; } to { opacity: 0; transform: scale(.3); } }
.no-fx .ripple, .no-fx .screen { animation: none !important; } .no-fx .card:hover .ad { transform: translateY(-4px); }
/* sign in: form + 3D orbit of ads */
.auth { display: grid; grid-template-columns: 1.1fr minmax(340px, 460px); align-items: center; gap: clamp(20px, 5vw, 80px); padding: clamp(20px, 5vw, 70px); overflow: hidden; }
.auth-stage { position: relative; height: min(78vh, 720px); perspective: 1400px; display: grid; place-items: center; }
.orbit { position: relative; width: clamp(150px, 16vw, 230px); aspect-ratio: 4 / 5; transform-style: preserve-3d; animation: orbit 28s linear infinite; }
.orb-card { position: absolute; inset: 0; transform: rotateY(calc(360deg / var(--n) * var(--i))) translateZ(clamp(240px, 27vw, 390px)); border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); backface-visibility: hidden; }
.orb-card .ad { pointer-events: none; }
@keyframes orbit { from { transform: rotateX(-8deg) rotateY(0); } to { transform: rotateX(-8deg) rotateY(-360deg); } }
.stage-cap { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: 13px; font-weight: 500; color: var(--muted); }
.auth-card { animation: card-in .8s var(--ease) both; border: 1px solid var(--line); }
.auth-card .h2 { font-size: 34px; letter-spacing: -.03em; }
@keyframes card-in { from { opacity: 0; transform: translateY(24px) rotateX(8deg); filter: blur(6px); } }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; align-content: start; justify-items: center; padding: 16px 16px 40px; gap: 0; }
  .auth-stage { height: 300px; width: 100%; } .orbit { width: 120px; } .orb-card { transform: rotateY(calc(360deg / var(--n) * var(--i))) translateZ(190px); }
  .auth-card { width: 100%; padding: 26px 22px; margin-top: -10px; } .stage-cap { bottom: 8px; }
}
/* 3D loading deck */
.loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; align-content: center; gap: 28px; background: var(--bg); perspective: 1200px; transition: opacity .5s, filter .5s; }
.loader.out { opacity: 0; filter: blur(8px); }
.loader p { font-size: 13px; font-weight: 500; color: var(--muted); }
.deck { position: relative; width: 180px; aspect-ratio: 4 / 5; transform-style: preserve-3d; }
.deck-card { position: absolute; inset: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); opacity: 0; transform: translate3d(0, 140px, -400px) rotateX(60deg) rotateZ(-20deg); }
.loader.run .deck-card { animation: deal 1.2s cubic-bezier(.16,1,.3,1) forwards; animation-delay: calc(var(--i) * 90ms); }
@keyframes deal { 60% { opacity: 1; } to { opacity: 1; transform: translate3d(calc((var(--i) - 2) * 62px), calc(var(--i) * -3px), calc(var(--i) * 12px)) rotateY(calc((var(--i) - 2) * -16deg)) rotateZ(calc((var(--i) - 2) * 5deg)); } }
/* settings sheet */
.sheet-bg { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.35); opacity: 0; transition: opacity .35s; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet-bg.open { opacity: 1; }
.sheet { position: fixed; z-index: 100; right: 16px; top: 16px; bottom: 16px; width: min(440px, calc(100% - 32px)); overflow: auto; display: grid; align-content: start; gap: 14px; padding: 24px; border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); transform: translateX(110%); transition: transform .45s var(--sheet); }
.sheet.open { transform: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.x { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--soft); font-size: 22px; cursor: pointer; }
.opt { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.opt.col { flex-direction: column; align-items: stretch; }
.opt b { display: block; font-size: 15px; font-weight: 500; } .opt span { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.switch { position: relative; flex: none; width: 50px; height: 30px; border: 0; border-radius: 99px; background: var(--line); cursor: pointer; }
.switch i { position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: translate .3s var(--ease); }
.switch[aria-checked="true"] { background: var(--accent); } .switch[aria-checked="true"] i { translate: 20px 0; }
.seg { display: flex; padding: 3px; border-radius: 99px; background: var(--soft); flex: none; }
.seg button { height: 32px; padding: 0 12px; border: 0; border-radius: 99px; background: none; font-size: 13px; font-weight: 500; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,.15); }
/* responsive: tablet and phone */
@media (max-width: 1100px) {
  .editor { grid-template-columns: 1fr; gap: 18px; padding-top: 12px; }
  .stage { order: -1; position: sticky; top: 0; z-index: 6; background: var(--bg); padding-bottom: 8px; }
  .canvas { min-height: 0; padding: 14px; } .canvas .ad { width: min(100%, var(--fw), calc(42vh * var(--ar))); }
  .variants { display: none; }
}
@media (max-width: 720px) {
  .top { padding: 12px 14px; } .top-right { gap: 6px; } .dd-btn span { max-width: 90px; }
  .intro { padding: 28px 16px 20px; } .statement { font-size: 28px; text-indent: 0; }
  .bar { position: static; padding: 0 14px 14px; } .bar .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; width: calc(100% + 28px); } .bar .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; } .bar-right { width: 100%; justify-content: space-between; } .bar-right .dd-label { display: none; }
  .grid { padding: 4px 14px 120px; gap: 18px 10px; }
  .editor { padding: 8px 14px 120px; } .actions .btn { height: 36px; padding: 0 14px; font-size: 13px; }
  .colours { grid-template-columns: repeat(3, 1fr); } .range { grid-template-columns: 80px 1fr; }
  .brands { padding: 0 14px 120px; gap: 18px; } .brand-list { display: flex; overflow-x: auto; gap: 8px; } .brand-list li { flex: none; width: 160px; }
  .dock { bottom: 12px; } .dock a { padding: 0 14px; font-size: 13px; height: 38px; }
  .sheet { right: 8px; left: 8px; top: auto; bottom: 8px; width: auto; max-height: 88vh; transform: translateY(110%); }
  .opt { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .orbit, .loader.run .deck-card, .auth-card { animation: none; } .deck-card { opacity: 1; transform: none; } }
.auth-card { grid-template-columns: minmax(0, 1fr) !important; grid-auto-flow: row; justify-self: center; }
/* ---- v4: calmer editor with tabs, flex sign-in card ---- */
.auth-card { display: flex !important; flex-direction: column; gap: 18px; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; }
.editor { grid-template-columns: minmax(320px, 380px) minmax(0, 1fr) 220px; gap: 36px; padding: 28px var(--m) 120px; }
.panel { max-height: none; overflow: visible; padding: 0; gap: 20px; position: sticky; top: 16px; }
.tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--soft); }
.tabs button { height: 38px; border: 0; border-radius: 10px; background: none; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.pane { display: grid; gap: 18px; animation: pane-in .35s var(--ease); }
@keyframes pane-in { from { opacity: 0; transform: translateY(6px); } }
.pane .fields { gap: 16px; } .fields label { gap: 8px; text-transform: capitalize; }
.fields input, .fields textarea { padding: 12px 14px; border-radius: 12px; }
.group { display: grid; gap: 14px; padding: 18px; border-radius: 16px; background: var(--soft); }
.g-title { font-size: 13px; font-weight: 500; }
.links { display: flex; gap: 18px; flex-wrap: wrap; }
.range { grid-template-columns: 96px 1fr; gap: 14px; } .range span { font-size: 13px; }
.swatches { gap: 10px; } .swatches .sw { width: 38px; height: 38px; }
.colours { grid-template-columns: repeat(5, 1fr); gap: 10px; }
.chips.sizes { gap: 8px; } .chips.sizes .chip { height: 40px; padding: 0 16px; }
.size { width: 100%; margin-top: 6px; } .size input { width: 96px; height: 40px; }
.file-btn { height: 44px; }
.canvas { min-height: 70vh; border-radius: 18px; }
@media (max-width: 1100px) {
  .editor { grid-template-columns: 1fr; gap: 18px; }
  .panel { position: static; }
  .tabs { position: sticky; top: calc(42vh + 70px); z-index: 5; }
  .canvas { min-height: 0; }
}
@media (max-width: 720px) {
  .tabs button { font-size: 12px; } .colours { grid-template-columns: repeat(3, 1fr); }
  .group { padding: 14px; }
}
/* ---- v5: per-text tools, pad, guides, series, projects, confirm, load-in ---- */
.dd-btn, .dd-list { color: var(--ink); }
.dd-list li[role=option][aria-selected="true"], .dd-list li[role=option][aria-selected="true"]:focus, .dd-list li[role=option][aria-selected="true"]:hover { background: var(--ink); color: var(--on-ink); }
.dd-list li[role=option][aria-selected="true"] em { color: inherit; opacity: .6; }
.dd.mini .dd-btn { height: 32px; padding: 0 10px; font-size: 12px; border-radius: 10px; } .dd.mini .dd-btn span { max-width: 110px; }
/* action buttons invert on hover */
.actions .btn--line:hover, .row2 .btn--line:hover, .proj-actions .btn:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.btn--accent { background: var(--accent); color: #fff; } .btn--accent:hover { filter: brightness(1.08); }
.variants .label + .vgrid + .label, .variants [data-v-pals] { margin-top: 0; } .variants .label:nth-of-type(2) { margin-top: 36px; }
/* fields with tools */
.field { display: grid; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.field > label { font-size: 13px; font-weight: 500; text-transform: capitalize; }
.ftools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sizer { display: inline-flex; align-items: center; height: 32px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.sizer button { width: 34px; height: 100%; border: 0; background: none; color: var(--ink); cursor: pointer; font-size: 12px; font-weight: 500; } .sizer button:hover { background: var(--soft); }
.sizer output { min-width: 42px; text-align: center; font-size: 12px; color: var(--muted); }
.cdot { position: relative; width: 32px; height: 32px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); cursor: pointer; }
.cdot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; } .cdot i { position: absolute; inset: 5px; border-radius: 6px; pointer-events: none; }
.check.small { font-size: 12px; margin-top: 10px; }
/* move pad */
.mover { grid-template-columns: 1fr auto; align-items: center; gap: 16px; }
.pad { position: relative; display: grid; grid-template-columns: repeat(3, 38px); grid-template-rows: repeat(3, 38px); width: 114px; height: 114px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 10px 24px -16px rgba(0,0,0,.35); }
.pad button { border: 0; background: none; color: var(--ink); cursor: pointer; display: grid; place-items: center; border-radius: 50%; transition: background .15s, transform .15s; }
.pad button:hover { background: var(--soft); } .pad button:active { transform: scale(.88); }
.pad svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pad .u { grid-area: 1 / 2; } .pad .l { grid-area: 2 / 1; } .pad .c { grid-area: 2 / 2; } .pad .r { grid-area: 2 / 3; } .pad .d { grid-area: 3 / 2; }
.pad .c i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
/* guides while dragging */
.canvas { position: relative; }
.canvas.guiding .ad { outline: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent); }
.canvas.guiding .ad::before, .canvas.guiding .ad::after { content: ""; position: absolute; z-index: 30; pointer-events: none; background: var(--accent); opacity: .25; }
.canvas.guiding .ad::before { left: 50%; top: 0; bottom: 0; width: 1px; } .canvas.guiding .ad::after { top: 50%; left: 0; right: 0; height: 1px; }
.canvas.on-x .ad::before, .canvas.on-y .ad::after { opacity: 1; }
.canvas .ad { position: relative; }
/* series */
.pager-ctl { display: grid; gap: 14px; } .stepper { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; }
.stepper span { width: 110px; } .stepper button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; font-size: 16px; }
.stepper output { min-width: 28px; text-align: center; font-size: 15px; }
.colour-one { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; } .colour-one input { width: 60px; }
/* photo slots */
.slots { display: grid; gap: 8px; } .slot { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 13px; }
.slot img, .slot i { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; display: grid; place-items: center; background: var(--soft); font-style: normal; font-size: 20px; }
.slot b { font-weight: 500; font-size: 12px; padding: 6px 12px; border-radius: 99px; background: var(--ink); color: var(--on-ink); } .slot:hover { border-color: var(--ink); }
/* save to project */
.save-row { display: inline-flex; gap: 6px; align-items: center; } .editing { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.projects { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 0 var(--m) 120px; align-items: start; }
.proj-list { display: grid; gap: 10px; position: sticky; top: 16px; } .proj-list ul { display: grid; gap: 8px; }
.pcount { background: var(--ink) !important; color: var(--on-ink) !important; }
.proj-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.proj-name { font-size: 28px; letter-spacing: -.02em; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); padding: 4px 0; min-width: 0; flex: 1; }
.proj-name:focus { outline: none; border-color: var(--ink); } .proj-actions { display: flex; gap: 14px; align-items: center; }
.grid.posts { padding: 18px 0 0; list-style: none; }
.post .ad { border-radius: 8px; overflow: hidden; }
.post-bar { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; }
.post-bar b { font-weight: 500; } .post-bar span { flex: 1; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-bar button { height: 30px; min-width: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); cursor: pointer; font-size: 12px; }
.post-bar button:hover { background: var(--ink); color: var(--on-ink); }
/* confirm dialog */
.confirm { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .25s; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.confirm.open { opacity: 1; } .confirm-card { width: min(380px, 100%); display: grid; gap: 12px; padding: 24px; border-radius: 20px; background: var(--surface); color: var(--ink); transform: scale(.96); transition: transform .3s var(--ease); }
.confirm.open .confirm-card { transform: none; } .confirm .h3 { font-size: 20px; letter-spacing: -.02em; } .confirm .row2 { margin-top: 8px; }
/* load-in: content fades up quickly in sequence */
.screen:not([hidden]) > *, .top { animation: rise .55s cubic-bezier(.16,1,.3,1) both; }
.screen:not([hidden]) > *:nth-child(2) { animation-delay: .06s; } .screen:not([hidden]) > *:nth-child(3) { animation-delay: .12s; }
.grid > li { animation: rise .6s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(min(var(--i, 0), 12) * 35ms + .1s); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.no-fx .screen > *, .no-fx .top, .no-fx .grid > li { animation: none; }
/* smoother loading deck: cards side by side, no overlap */
.deck { width: min(92vw, 640px); aspect-ratio: auto; height: 210px; display: flex; justify-content: center; gap: 14px; transform-style: preserve-3d; }
.deck-card { position: relative; inset: auto; width: 120px; height: 150px; flex: none; opacity: 0; transform: translateY(40px) rotateX(35deg) scale(.9); }
.loader.run .deck-card { animation: deal2 .9s cubic-bezier(.16,1,.3,1) forwards; animation-delay: calc(var(--i) * 110ms); }
@keyframes deal2 { to { opacity: 1; transform: translateY(calc((var(--i) - 2) * (var(--i) - 2) * 4px)) rotateY(calc((var(--i) - 2) * -10deg)); } }
@media (max-width: 720px) { .deck-card { width: 62px; height: 78px; } .deck { gap: 8px; height: 120px; } .mover { grid-template-columns: 1fr; justify-items: start; } .projects { grid-template-columns: 1fr; } .proj-list { position: static; } }
@media (max-width: 1100px) { .tabs { grid-template-columns: repeat(6, 1fr); } }
.tabs { grid-template-columns: repeat(6, 1fr); } .tabs button { font-size: 12.5px; }
/* ---- v6: colour picker, colour buttons ---- */
.colours { grid-template-columns: 1fr 1fr; gap: 8px; }
.cbtn { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; text-align: left; transition: border-color .2s, transform .15s; }
.cbtn:hover { border-color: var(--ink); } .cbtn:active { transform: scale(.97); }
.cbtn i { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(var(--c), var(--c)), repeating-conic-gradient(#ccc 0 25%, #fff 0 50%) 0 0/10px 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.cbtn span { font-size: 12.5px; font-weight: 500; } .cbtn em { font-style: normal; font-size: 11px; color: var(--muted); font-family: ui-monospace, monospace; }
button.cdot { padding: 0; background: var(--surface); }
.cp { position: fixed; z-index: 400; width: 264px; display: grid; gap: 12px; padding: 14px; border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -20px rgba(0,0,0,.45); opacity: 0; transform: translateY(6px) scale(.98); transition: opacity .2s, transform .25s var(--ease); }
.cp.open { opacity: 1; transform: none; }
.cp-sv { position: relative; height: 160px; border-radius: 12px; cursor: crosshair; touch-action: none; background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, var(--hue)); }
.cp-knob { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 2px 6px rgba(0,0,0,.4); background: var(--solid); pointer-events: none; }
.cp-l { display: grid; gap: 6px; font-size: 11px; font-weight: 500; color: var(--muted); }
.cp input[type=range] { -webkit-appearance: none; appearance: none; height: 12px; border-radius: 99px; outline: none; }
.cp-hue { background: linear-gradient(90deg, red, #ff0, lime, cyan, blue, #f0f, red); }
.cp-alpha { background: linear-gradient(90deg, transparent, var(--solid)), repeating-conic-gradient(#ccc 0 25%, #fff 0 50%) 0 0/8px 8px; }
.cp input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 2px 6px rgba(0,0,0,.35); cursor: grab; }
.cp input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 2px 6px rgba(0,0,0,.35); }
.cp-row { display: flex; align-items: center; gap: 8px; }
.cp-prev { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(var(--cur), var(--cur)), repeating-conic-gradient(#ccc 0 25%, #fff 0 50%) 0 0/8px 8px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); flex: none; }
.cp-hex { flex: 1; min-width: 0; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--ink); font: 500 12px ui-monospace, monospace; }
.cp-row output { width: 40px; text-align: right; font-size: 12px; color: var(--muted); }
.cp-t { font-size: 11px; font-weight: 500; color: var(--muted); margin-bottom: -6px; }
.cp-sw { display: flex; flex-wrap: wrap; gap: 6px; min-height: 4px; }
.cp-sw button { width: 22px; height: 22px; border: 0; border-radius: 7px; cursor: pointer; background: linear-gradient(var(--c), var(--c)), repeating-conic-gradient(#ccc 0 25%, #fff 0 50%) 0 0/8px 8px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); transition: transform .15s; }
.cp-sw button:hover { transform: scale(1.15); }
@media (max-width: 720px) { .cp { width: auto; } .cp-sv { height: 180px; } }
/* the panel never grows past its column: long buttons wrap instead */
.panel, .pane, .tabs, .field, .group { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.panel > *, .pane > * { min-width: 0; max-width: 100%; }
.panel .btn, .panel .file-btn { white-space: normal; text-align: center; justify-content: center; min-width: 0; line-height: 1.2; height: auto; min-height: 42px; padding: 8px 14px; }
.tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); } .tabs button { min-width: 0; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.mover { grid-template-columns: minmax(0, 1fr) auto; }
.pane, .field, .panel { display: flex !important; flex-direction: column; }
.pane { gap: 18px; } .field { gap: 8px; } .panel { gap: 20px; }
.pane > .hint, .panel .hint { grid-column: auto; }
.group:not(.mover) { display: flex; flex-direction: column; }
.pane > .dd.full { display: grid; }
.pane[hidden], [hidden] { display: none !important; }
.showcase-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 0 var(--m) 22px; }
.showcase-bar .hint { margin: 0; }
@media (max-width: 720px) { .showcase-bar { padding: 0 14px 16px; } .showcase-bar .btn { flex: 1; } }
/* ---- v7: nav on top, stable bar, one-line menus, canvas tools, rulers, guides, skeleton, guide article ---- */
.top { position: relative; z-index: 60; }
.dd-list { z-index: 80; }
.dd-list li[role=option] span { white-space: nowrap; } .dd-list { max-width: none; } .dd-list em { white-space: nowrap; padding-left: 16px; }
.bar-right .dd .dd-btn { width: 178px; justify-content: space-between; } .bar-right .dd .dd-btn span { flex: 1; text-align: left; }
.bar-right .lib-photo { width: auto; }
.bar .chips .chip span { display: inline-block; min-width: 2ch; text-align: right; }
/* project picker as tall as the buttons */
.actions .dd-btn { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 99px; }
.save-row { gap: 8px; } .actions { align-items: center; }
/* select button */
.ftools .sel { height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 500; cursor: pointer; }
.ftools .sel:hover { background: var(--ink); color: var(--on-ink); }
/* canvas: tools, scroll area, rulers, guides */
.canvas { display: block; padding: 0; min-height: 0; overflow: hidden; }
.cv-tools { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; flex-wrap: wrap; }
.cv-l, .cv-r { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tb { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 500; cursor: pointer; }
.tb svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.tb.ic { width: 34px; padding: 0; justify-content: center; } .tb.zl { min-width: 56px; justify-content: center; font-variant-numeric: tabular-nums; }
.tb.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); } .tb:hover { border-color: var(--ink); }
.cv-scroll { overflow: auto; max-height: calc(100vh - 210px); padding: 8px 24px 28px; display: flex; }
.cv-wrap { position: relative; flex: none; margin: auto; padding: var(--R) 0 0 var(--R); box-sizing: content-box; }
.cv-wrap { width: auto !important; height: auto !important; }
.cv-art { position: relative; }
.cv-art .ad { width: 100% !important; height: 100%; box-shadow: 0 30px 60px -36px rgba(0,0,0,.45); }
.ruler { position: absolute; z-index: 5; background: var(--surface); color: var(--muted); font: 500 9px/1 ui-monospace, monospace; cursor: crosshair; user-select: none; overflow: hidden; touch-action: none; }
.ruler.x { left: var(--R); top: 0; height: var(--R); border-bottom: 1px solid var(--line); cursor: row-resize; }
.ruler.y { left: 0; top: var(--R); width: var(--R); border-right: 1px solid var(--line); cursor: col-resize; }
.ruler i { position: absolute; background: currentColor; opacity: .5; } .ruler.x i { bottom: 0; width: 1px; height: 5px; } .ruler.y i { right: 0; height: 1px; width: 5px; }
.ruler.x i.mj { height: 10px; opacity: .9; } .ruler.y i.mj { width: 10px; opacity: .9; }
.ruler b { position: absolute; font-weight: 500; } .ruler.x b { top: 2px; margin-left: 3px; } .ruler.y b { left: 2px; margin-top: 2px; writing-mode: vertical-rl; rotate: 180deg; }
.ruler-c { position: absolute; left: 0; top: 0; width: var(--R); height: var(--R); background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); z-index: 6; }
.guides { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.gl { position: absolute; pointer-events: auto; }
.gl.v { top: 0; bottom: 0; width: 1px; margin-left: -.5px; background: #12c4ff; cursor: col-resize; }
.gl.h { left: 0; right: 0; height: 1px; margin-top: -.5px; background: #12c4ff; cursor: row-resize; }
.gl::before { content: ""; position: absolute; inset: -5px; } .gl.v::before { inset: 0 -5px; } .gl.h::before { inset: -5px 0; }
.gl.c { background: none; pointer-events: none; opacity: 0; } .gl.c.v { border-left: 1px dashed #ff3d8b; } .gl.c.h { border-top: 1px dashed #ff3d8b; }
.canvas.guiding .gl.c { opacity: .45; } .canvas.on-x .gl.c.v, .canvas.on-y .gl.c.h { opacity: 1; }
.gl.hit { background: #ff3d8b; box-shadow: 0 0 0 1px rgba(255,61,139,.35); } .gl.out { opacity: .3; }
.canvas.guiding .ad::before, .canvas.guiding .ad::after { display: none; }
/* skeleton while shuffling */
.sk .sk-ad { position: relative; overflow: hidden; border-radius: 6px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.sk .sk-ad i { position: absolute; left: 10%; height: 6%; border-radius: 4px; background: color-mix(in srgb, var(--ink) 9%, transparent); }
.sk .sk-ad i:nth-child(1) { top: 10%; width: 46%; } .sk .sk-ad i:nth-child(2) { top: 64%; width: 72%; height: 9%; } .sk .sk-ad i:nth-child(3) { top: 78%; width: 34%; }
.sk .sk-ad::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--surface) 70%, transparent) 50%, transparent 70%); background-size: 220% 100%; animation: shimmer 1.1s linear infinite; }
.sk-l { display: block; width: 46%; height: 10px; margin-top: 4px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 9%, transparent); }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.grid.is-revealing > li { animation: reveal .6s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(min(var(--i, 0), 12) * 30ms); }
@keyframes reveal { from { opacity: 0; filter: blur(8px); transform: scale(.97); } }
/* guide link and article */
.guide-link { grid-column: 4 / 13; justify-self: start; margin-top: 18px; display: inline-flex; gap: 8px; align-items: center; height: 40px; padding: 0 18px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; transition: background .2s, color .2s; }
.guide-link:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.article { max-width: 720px; margin: 0 auto; padding: 48px var(--m) 140px; font-size: 17px; line-height: 1.65; }
.article h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1; letter-spacing: -.035em; font-weight: 500; margin: 8px 0 20px; }
.article .lead { font-size: 21px; line-height: 1.45; color: var(--muted); margin-bottom: 40px; }
.article h2 { font-size: 24px; letter-spacing: -.02em; font-weight: 500; margin: 44px 0 12px; }
.article p { margin: 0 0 14px; } .article ul, .article ol { margin: 0 0 16px; padding-left: 22px; } .article li { margin-bottom: 8px; } .article ul { list-style: disc; }
.article .checks { list-style: none; padding: 0; } .article .checks li::before { content: "□  "; color: var(--accent); }
.article a:not(.btn) { color: inherit; } .article .back { display: inline-block; margin-bottom: 24px; font-size: 14px; }
.article .btn { margin-top: 28px; text-decoration: none; }
@media (max-width: 1100px) { .guide-link { grid-column: 1; } .cv-scroll { max-height: 62vh; } }
@media (max-width: 720px) { .bar-right .dd .dd-btn { width: 150px; } .tb span { display: none; } .tb { padding: 0 8px; } .article { font-size: 16px; } }
/* ---- v8: gradients, coming soon, hover that keeps its outline ---- */
.variants .label { margin-top: 32px; } .variants .label:first-child { margin-top: 0; }
.vgrid button[aria-pressed="true"] .ad { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn--line:hover, .tb:hover, .guide-link:hover, .ftools .sel:hover, .post-bar button:hover, .file-btn.btn--line:hover { background: var(--ink); color: var(--on-ink); box-shadow: inset 0 0 0 1px var(--ink), 0 0 0 1px var(--ink); border-color: var(--ink); }
:root[data-theme="dark"] .btn--line:hover, :root[data-theme="dark"] .tb:hover { background: #fff; color: #0b0b0b; box-shadow: 0 0 0 1px #fff; }
.soon { aspect-ratio: var(--ar); display: grid; place-content: center; justify-items: center; gap: 10px; padding: 20px; text-align: center; border-radius: 6px; border: 1.5px dashed var(--line); color: var(--muted); font-size: 13px; }
.soon b { color: var(--ink); font-size: 17px; font-weight: 500; }
.soon-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.8); opacity: .35; } }

/* ---- v9: big symmetric loading deck and a flower that fills clockwise ---- */
.loader { gap: 34px; }
.deck { --w: min(200px, 17vw); width: auto; height: calc(var(--w) * 1.25 + var(--w) * .5); display: flex; align-items: flex-start; justify-content: center; gap: min(18px, 2vw); }
.deck-card { width: var(--w); height: calc(var(--w) * 1.25); border-radius: 12px; box-shadow: 0 24px 40px -26px rgba(0,0,0,.45); opacity: 0; transform: translateY(calc(var(--d) * var(--w) * .25 + 60px)) rotateY(calc(var(--s) * -14deg)) scale(.92); }
.deck-card .ad { width: 100%; height: 100%; }
.loader.run .deck-card { animation: deal3 1s cubic-bezier(.16,1,.3,1) forwards; animation-delay: calc(var(--i) * 120ms); }
@keyframes deal3 { to { opacity: 1; transform: translateY(calc(var(--d) * var(--w) * .25)) rotateY(calc(var(--s) * -8deg)) scale(1); } }
@property --bloom { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.bloom { width: 100px; height: 100px; background: #2a2a2e; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='13'/%3E%3Ccircle cx='50.00' cy='18.00' r='15'/%3E%3Ccircle cx='77.71' cy='34.00' r='15'/%3E%3Ccircle cx='77.71' cy='66.00' r='15'/%3E%3Ccircle cx='50.00' cy='82.00' r='15'/%3E%3Ccircle cx='22.29' cy='66.00' r='15'/%3E%3Ccircle cx='22.29' cy='34.00' r='15'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='13'/%3E%3Ccircle cx='50.00' cy='18.00' r='15'/%3E%3Ccircle cx='77.71' cy='34.00' r='15'/%3E%3Ccircle cx='77.71' cy='66.00' r='15'/%3E%3Ccircle cx='50.00' cy='82.00' r='15'/%3E%3Ccircle cx='22.29' cy='66.00' r='15'/%3E%3Ccircle cx='22.29' cy='34.00' r='15'/%3E%3C/svg%3E") center / contain no-repeat; }
.bloom i { display: block; width: 100%; height: 100%; background: conic-gradient(#720004 var(--bloom), transparent 0); }
.loader.run .bloom i { animation: bloom 1.9s cubic-bezier(.45,.05,.35,1) forwards; }
@keyframes bloom { to { --bloom: 360deg; } }
@media (max-width: 720px) { .deck { --w: 17.4vw; gap: 1.6vw; } .bloom { width: 72px; height: 72px; } }
@media (prefers-reduced-motion: reduce) { .loader.run .deck-card { animation: none; opacity: 1; transform: translateY(calc(var(--d) * var(--w) * .25)); } }

/* ---- v10: confirm order, equal action heights, softer save, steady rulers, calm menus, petal loader ---- */
.btn--danger { background: #d9381e; color: #fff; } :root[data-theme="dark"] .btn--danger { color: #fff; }
.btn--danger:hover { background: #b92c15; }
.actions .btn, .actions .dd-btn, .save-row .btn, .save-row .dd-btn { height: 42px; box-sizing: border-box; }
.actions .btn--line { box-shadow: inset 0 0 0 1px var(--ink); }
[data-save-post].btn--accent { background: #ff8a4c; color: #0b0b0b; }
[data-save-post].btn--accent:hover { background: #ff9a62; filter: none; }
.cv-wrap { padding: var(--R); }
.dd-btn:active { transform: none; }
.dd-list { transform-origin: top right; animation: dd-fade .16s ease-out; }
.dd.full .dd-list { transform-origin: top left; }
@keyframes dd-fade { from { opacity: 0; transform: translateY(-3px); } }
.dd-btn { transition: border-color .15s, background-color .15s; }
.dd.open .dd-btn { box-shadow: none; }
.loader p { font-size: clamp(26px, 3vw, 44px); font-weight: 400; letter-spacing: -.022em; line-height: 1.05; color: var(--ink); }
.bloom { --rr: .72; position: relative; width: 160px; height: 160px; background: none; -webkit-mask: none; mask: none; }
.bloom i { position: absolute; width: 28%; height: 28%; margin: -14% 0 0 -14%; border-radius: 50%; background: conic-gradient(#720004 var(--bloom), #2a2a2e 0); }
.bloom i:nth-child(1) { left: calc(50% + 0.000% * var(--rr)); top: calc(50% + -50.000% * var(--rr)); }
.bloom i:nth-child(2) { left: calc(50% + 43.301% * var(--rr)); top: calc(50% + -25.000% * var(--rr)); }
.bloom i:nth-child(3) { left: calc(50% + 43.301% * var(--rr)); top: calc(50% + 25.000% * var(--rr)); }
.bloom i:nth-child(4) { left: calc(50% + 0.000% * var(--rr)); top: calc(50% + 50.000% * var(--rr)); }
.bloom i:nth-child(5) { left: calc(50% + -43.301% * var(--rr)); top: calc(50% + 25.000% * var(--rr)); }
.bloom i:nth-child(6) { left: calc(50% + -43.301% * var(--rr)); top: calc(50% + -25.000% * var(--rr)); }
.loader.run .bloom i { animation: bloom .42s cubic-bezier(.45,.05,.35,1) forwards; animation-delay: calc(var(--k) * .27s); }
@media (max-width: 720px) { .bloom { width: 110px; height: 110px; } .loader p { font-size: 24px; } }

/* ---- v11: richer guide ---- */
.article { max-width: 1080px; }
.article > .back, .g-hero, .g-block:not(.g-wide), .article > .btn { max-width: 720px; margin-left: auto; margin-right: auto; }
.article > .btn { display: flex; width: max-content; }
.g-hero { padding-bottom: 8px; } .g-hero .lead { margin-bottom: 48px; }
.g-steps { list-style: none; padding: 0 !important; margin: 0 0 72px !important; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: none; }
.g-steps li { margin: 0; padding: 22px 22px 24px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 8px; transition: transform .3s var(--ease), box-shadow .3s; }
.g-steps li:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--ink); }
.g-steps h2 { margin: 6px 0 0 !important; font-size: 20px !important; line-height: 1.2; }
.g-steps p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.g-n { font: 500 12px/1 ui-monospace, monospace; color: var(--accent); }
.g-block { margin-bottom: 72px; } .g-block h2 { margin-top: 6px !important; }
.g-head { max-width: 720px; margin: 0 auto 24px; } .g-head p:last-child { color: var(--muted); }
.ex-grid { list-style: none; padding: 0 !important; margin: 0 0 28px !important; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ex-grid li { margin: 0; } .ex-grid li:first-child { grid-row: span 2; }
.ex { position: relative; display: block; height: 100%; min-height: 200px; border-radius: 22px; overflow: hidden; background: var(--soft); text-decoration: none; color: #fff !important; isolation: isolate; }
.ex img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; }
.ex-name { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 18px; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0) 60%); opacity: 0; transition: opacity .3s; }
.ex-name b { font-size: 18px; font-weight: 500; letter-spacing: -.01em; transform: translateY(8px); transition: transform .35s var(--ease); } .ex-name em { font-style: normal; font-size: 13px; opacity: .8; transform: translateY(8px); transition: transform .35s .04s var(--ease); }
.ex:hover img, .ex:focus-visible img { transform: scale(1.05); } .ex:hover .ex-name, .ex:focus-visible .ex-name { opacity: 1; } .ex:hover .ex-name b, .ex:hover .ex-name em, .ex:focus-visible .ex-name b, .ex:focus-visible .ex-name em { transform: none; }
@media (hover: none) { .ex-name { opacity: 1; } .ex-name b, .ex-name em { transform: none; } }
.g-look { list-style: none !important; padding: 0 !important; max-width: 720px; margin: 0 auto !important; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; font-size: 15px; }
.g-look b { font-weight: 500; }
.g-flow { list-style: none !important; padding: 0 !important; counter-reset: f; position: relative; }
.g-flow li { counter-increment: f; position: relative; display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; padding-bottom: 18px; margin: 0; }
.g-flow li::before { content: counter(f); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font-size: 14px; font-weight: 500; }
.g-flow li:not(:last-child)::after { content: ""; position: absolute; left: 19.5px; top: 44px; bottom: 4px; width: 1px; background: var(--line); }
.g-flow b { font-weight: 500; padding-top: 8px; } .g-flow span { color: var(--muted); font-size: 15px; }
.article .checks { list-style: none; padding: 0; display: grid; gap: 8px; }
.article .checks li { margin: 0; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; user-select: none; transition: box-shadow .2s, color .2s; outline: none; }
.article .checks li:hover, .article .checks li:focus-visible { box-shadow: inset 0 0 0 1px var(--ink); }
.article .checks li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--muted); background: no-repeat center / 12px; transition: background-color .2s, box-shadow .2s; }
.article .checks li[aria-checked="true"] { color: var(--muted); }
.article .checks li[aria-checked="true"]::before { background-color: var(--accent); box-shadow: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media (max-width: 900px) { .g-steps { grid-template-columns: 1fr 1fr; } .ex-grid { grid-template-columns: repeat(2, 1fr); } .ex-grid li:first-child { grid-row: auto; grid-column: span 2; } .ex-grid li:first-child .ex { min-height: 280px; } }
@media (max-width: 560px) { .g-steps { grid-template-columns: 1fr; } .g-look { grid-template-columns: 1fr; } .ex { min-height: 170px; } }

/* ---- v12: the whole flower fills in one clockwise sweep ---- */
.bloom { width: 160px; height: 160px; background: #2a2a2e; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50.00' cy='14.00' r='14'/%3E%3Ccircle cx='81.18' cy='32.00' r='14'/%3E%3Ccircle cx='81.18' cy='68.00' r='14'/%3E%3Ccircle cx='50.00' cy='86.00' r='14'/%3E%3Ccircle cx='18.82' cy='68.00' r='14'/%3E%3Ccircle cx='18.82' cy='32.00' r='14'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50.00' cy='14.00' r='14'/%3E%3Ccircle cx='81.18' cy='32.00' r='14'/%3E%3Ccircle cx='81.18' cy='68.00' r='14'/%3E%3Ccircle cx='50.00' cy='86.00' r='14'/%3E%3Ccircle cx='18.82' cy='68.00' r='14'/%3E%3Ccircle cx='18.82' cy='32.00' r='14'/%3E%3C/svg%3E") center / contain no-repeat; }
.bloom i { position: static; display: block; width: 100%; height: 100%; margin: 0; border-radius: 0; background: conic-gradient(from -30deg, #720004 var(--bloom), transparent 0); animation: none; }
.loader.run .bloom i { animation: bloom 1.9s cubic-bezier(.4,0,.3,1) forwards; animation-delay: 0s; }
@media (max-width: 720px) { .bloom { width: 110px; height: 110px; } }
.article .ex-grid, .article .g-look, .article .g-flow, .article .checks { list-style: none; }
.article > .back { display: block; }
/* ---- v13: clean outline buttons, back button, arrow, settings rhythm ---- */
.btn { box-sizing: border-box; }
.btn--line, .file-btn.btn--line { box-shadow: none !important; border: 1px solid var(--ink); }
.btn--line:hover, :root[data-theme="dark"] .btn--line:hover { box-shadow: none !important; border-color: var(--ink); }
:root[data-theme="dark"] .btn--line:hover { border-color: #fff; }
.article > .back { display: inline-flex; width: max-content; margin: 0 0 32px max(0px, calc((100% - 720px) / 2)); font-size: 14px; text-decoration: none; }
.article > .back:hover { text-decoration: none; }
.guide-link .arr { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: translate .25s var(--ease); }
.guide-link:hover .arr { translate: 3px 0; }
.sheet { gap: 0; }
.sheet-head { margin-bottom: 6px; } .sheet > [data-account] { margin: 0 0 18px; }
.opt { padding: 20px 0; min-height: 40px; align-items: center; }
.opt > div:first-child { display: flex; flex-direction: column; justify-content: center; min-height: 40px; }
.opt b { line-height: 20px; } .opt span { margin-top: 2px; line-height: 18px; }
.opt .switch { align-self: center; }
.opt .seg { height: 40px; align-items: center; box-sizing: border-box; }
.opt .seg button { height: 34px; }
.opt.col { gap: 16px; }
.opt .row2 .btn { justify-content: center; text-align: center; height: 44px; font-size: 14px; padding: 0 16px; }
.hint:empty { display: none; }

/* ---- v14: no scrollbar jump after loading, petals that fill as circles one after another ---- */
html { scrollbar-gutter: stable; }
html.is-loading, html.is-loading body { overflow: hidden; }
.loader { transition: opacity .6s cubic-bezier(.4,0,.2,1), visibility 0s .6s; will-change: opacity; }
.loader.out { opacity: 0; filter: none; visibility: hidden; }
.loader.out .deck, .loader.out .bloom, .loader.out p { transform: translateY(-10px); transition: transform .6s cubic-bezier(.4,0,.2,1); }
.bloom { position: relative; width: 110px; height: 110px; background: none; -webkit-mask: none; mask: none; }
.bloom i { position: absolute; display: block; width: 28%; height: 28%; margin: -14% 0 0 -14%; border-radius: 50%; background: #2a2a2e; overflow: hidden; animation: none; }
.bloom i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #720004; transform: scale(0); }
.bloom i:nth-child(1) { left: 50.00%; top: 14.00%; }
.bloom i:nth-child(2) { left: 81.18%; top: 32.00%; }
.bloom i:nth-child(3) { left: 81.18%; top: 68.00%; }
.bloom i:nth-child(4) { left: 50.00%; top: 86.00%; }
.bloom i:nth-child(5) { left: 18.82%; top: 68.00%; }
.bloom i:nth-child(6) { left: 18.82%; top: 32.00%; }
.loader.run .bloom i { animation: none; }
.loader.run .bloom i::after { animation: petal .55s cubic-bezier(.34,1.2,.5,1) forwards; animation-delay: calc(var(--k) * .2s + .15s); }
@keyframes petal { to { transform: scale(1); } }
@media (max-width: 720px) { .bloom { width: 84px; height: 84px; } }
@media (prefers-reduced-motion: reduce) { .loader.run .bloom i::after { animation: none; transform: scale(1); } }

/* ---- v15: guide as a reading page ---- */
.guide-link .arr { display: block; flex: none; transition: none; } .guide-link:hover .arr { translate: none; }
.guide-link { line-height: 1; }
.article.guide { max-width: 680px; }
.guide > .back { margin: 0 0 40px; }
.guide .g-hero { max-width: none; } .guide .g-hero h1 { margin-bottom: 16px; } .guide .g-hero .lead { margin-bottom: 64px; }
.g-sec { margin: 0 0 64px; } .g-sec h2 { font-size: 26px !important; letter-spacing: -.02em; margin: 0 0 12px !important; }
.g-sec > p { margin: 0 0 14px; line-height: 1.6; } .g-sec a:not(.ig-acc) { color: inherit; }
.g-fill { font-size: 20px; line-height: 1.6 !important; letter-spacing: -.01em; margin: 22px 0 !important; }
.g-fill u { text-decoration: none; padding: 1px 10px; border-radius: 99px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.g-eg { color: var(--muted); margin-bottom: 22px !important; }
.g-eg::before { content: "Example: "; color: var(--ink); font-weight: 500; }
.article .g-list { list-style: none; padding: 0; margin: 18px 0 18px; display: grid; gap: 10px; }
.g-list li { position: relative; padding-left: 22px; margin: 0; line-height: 1.5; }
.g-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.g-kit { margin: 18px 0; display: grid; gap: 0; }
.g-kit div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.g-kit div:last-child { border-bottom: 1px solid var(--line); }
.g-kit dt { font-weight: 500; } .g-kit dd { margin: 0; color: var(--muted); line-height: 1.5; } .g-kit dd b { color: var(--ink); font-weight: 500; }
.article .g-flow { list-style: none; padding: 0 !important; margin: 18px 0 !important; }
.g-flow li { display: grid; grid-template-columns: 22px 1fr; column-gap: 14px; padding-bottom: 16px; margin: 0; position: relative; counter-increment: none; }
.g-flow li::before { content: ""; grid-row: span 2; width: 12px; height: 12px; margin: 6px 0 0 5px; border-radius: 50%; background: var(--ink); color: transparent; }
.g-flow li:not(:last-child)::after { content: ""; position: absolute; left: 10.5px; top: 22px; bottom: 0; width: 1px; background: var(--line); }
.g-flow b { font-weight: 500; padding-top: 0; } .g-flow span { color: var(--muted); font-size: 15px; }
.article .accs { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.accs li { margin: 0; }
.ig-acc { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 14px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.ig-acc svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ig-acc span { display: grid; min-width: 0; flex: 1; } .ig-acc b { font-weight: 500; font-size: 14px; } .ig-acc small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s; }
.ig-acc .out { width: 16px; height: 16px; opacity: .5; transition: opacity .2s; }
.ig-acc:hover, .ig-acc:focus-visible { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.ig-acc:hover small, .ig-acc:focus-visible small { color: inherit; opacity: .7; } .ig-acc:hover .out { opacity: 1; }
.guide .g-end { margin-top: 8px; }
@media (max-width: 720px) { .article .accs { grid-template-columns: 1fr 1fr; } .g-kit div { grid-template-columns: 1fr; gap: 4px; } .g-fill { font-size: 17px; } }
@media (max-width: 400px) { .article .accs { grid-template-columns: 1fr; } }
.guide > .btn { margin-left: 0; margin-right: 0; } .guide > .back { display: inline-flex; }
/* ---- v16: editor bar, pan and zoom, full-width menus, custom checks ---- */
.canvas { padding: 12px; min-height: 0; }
.cv-scroll { position: relative; overflow: hidden; display: block; max-height: none; padding: 0; border-radius: 10px; touch-action: none; }
.cv-wrap { position: absolute; left: 0; top: 0; margin: 0; will-change: transform; }
.cv-scroll.can-pan { cursor: grab; } .cv-scroll.panning { cursor: grabbing; } .cv-scroll .cv-art { cursor: default; }
.ed-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 6px; position: relative; z-index: 30; }
.ed-bar .dd { flex: 1; min-width: 0; } .ed-bar .dd-btn { width: 100%; justify-content: space-between; height: 42px; padding: 0 14px; border-radius: 99px; font-size: 14px; }
.ed-bar .dd-btn span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ed-bar .dd-list { left: 0; right: auto; min-width: 220px; }
.btn--save { height: 42px; padding: 0 20px; background: #d9381e; color: #fff; border: 0; } :root[data-theme="dark"] .btn--save { color: #fff; }
.btn--save:hover { background: #b92c15; }
.btn.ic { width: 42px; height: 42px; padding: 0; justify-content: center; }
.btn.ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.xmenu { position: relative; flex: none; }
.xmenu [aria-expanded="true"] { background: var(--ink); color: var(--on-ink); }
.xlist { position: absolute; right: 0; top: calc(100% + 6px); z-index: 80; width: 230px; padding: 6px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 24px 48px -16px rgba(0,0,0,.35); animation: dd-fade .16s ease-out; transform-origin: top right; }
.xlist button { display: flex; align-items: center; width: 100%; height: 40px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: var(--ink); font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; }
.xlist button:hover, .xlist button:focus-visible { background: var(--soft); outline: none; }
.xlist em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 400; color: var(--muted); }
.xlist hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.ed-bar .status { flex-basis: 100%; margin: 0; font-size: 12px; color: var(--muted); min-height: 0; } .ed-bar .status:empty { display: none; }
@media (max-width: 1100px) { .ed-bar { width: 100%; margin: 4px 0 0; } }
/* menus inside the panel open under their control, as wide as the field */
.panel .dd.full .dd-list { left: 0; right: 0; width: auto; min-width: 0; }
.ftools { position: relative; } .ftools .dd.mini { position: static; }
.ftools .dd.mini .dd-list { left: 0; right: 0; width: auto; min-width: 0; top: calc(100% + 6px); transform-origin: top center; }
.dd-list li[role=option] { min-height: 38px; }
/* the move pad without instructions */
.mover [data-picked] { display: none; }
/* custom checkboxes */
.check { cursor: pointer; user-select: none; }
.check input { -webkit-appearance: none; appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--muted); background: var(--surface) no-repeat center / 0 0; cursor: pointer; transition: background-color .22s ease, box-shadow .22s ease, background-size .28s cubic-bezier(.2,.8,.2,1); }
.check input:checked { background-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); background-size: 12px 12px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .check input:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='%230b0b0b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.check input:not(:checked) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.check:hover input:not(:checked) { box-shadow: inset 0 0 0 1.5px var(--ink); }
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.check input:active { transform: scale(.9); } .check input { transition-property: background-color, box-shadow, background-size, transform; }
/* a section that slides open */
.reveal { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .32s cubic-bezier(.2,.8,.2,1), opacity .24s ease, margin .32s; margin-top: -18px; }
.reveal > div { overflow: hidden; min-height: 0; }
.reveal.is-open { grid-template-rows: 1fr; opacity: 1; margin-top: 0; }
.reveal.is-open > div { overflow: visible; animation: reveal-ov 0s .32s backwards; }
@keyframes reveal-ov { from { overflow: hidden; } }
.canvas > .cv-scroll, .canvas > .cv-tools { width: 100%; align-self: stretch; justify-self: stretch; }
@media (min-width: 1101px) { .editor { grid-template-columns: 320px 1fr 300px; } }
.ed-bar .dd-btn span { max-width: none !important; flex: 1; text-align: left; }
/* ---- v17: loader with overlapping tilted cards, looping petals, rising text ---- */
.loader { perspective: none; }
.deck { --w: min(250px, 21vw); height: calc(var(--w) * 1.25 + var(--w) * .55); gap: 0; align-items: flex-start; }
.deck-card { position: relative; width: var(--w); height: calc(var(--w) * 1.25); margin-left: calc(var(--w) * -.16); border-radius: 0; box-shadow: none; perspective: 900px; opacity: 0;
  transform: translateY(calc(var(--d) * var(--w) * .2 + 70px)) rotate(calc(var(--t) * 1.6)) scale(.9); }
.deck-card:first-child { margin-left: 0; }
.loader.run .deck-card { animation: deal4 1s cubic-bezier(.16,1,.3,1) forwards; animation-delay: calc(var(--i) * 90ms); }
@keyframes deal4 { to { opacity: 1; transform: translateY(calc(var(--d) * var(--w) * .2)) rotate(var(--t)) scale(1); } }
.deck-in { width: 100%; height: 100%; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0); transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .4s; will-change: transform; }
.deck-in .ad { width: 100%; height: 100%; }
.deck-card:hover { z-index: 9 !important; }
.deck-card:hover .deck-in { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(40px) scale(1.06); transition-duration: .18s; box-shadow: 0 44px 80px -30px rgba(0,0,0,.7); }
.bloom { opacity: 0; transform: scale(.7); }
.loader.run .bloom { animation: bloom-in .5s cubic-bezier(.2,.8,.2,1) .15s forwards; }
@keyframes bloom-in { to { opacity: 1; transform: none; } }
.loader.run .bloom i::after { animation: petal-loop .9s cubic-bezier(.45,0,.3,1) 2; animation-delay: calc(var(--k) * .09s + .3s); }
@keyframes petal-loop { 0% { transform: scale(0); } 30%, 62% { transform: scale(1); } 92%, 100% { transform: scale(0); } }
.loader p { overflow: hidden; padding-bottom: .08em; }
.loader p span { display: block; transform: translateY(110%); }
.loader.run p span { animation: rise .7s cubic-bezier(.2,.8,.2,1) .25s forwards; }
@keyframes rise { to { transform: none; } }
@media (max-width: 720px) { .deck { --w: 24vw; } .deck-card { margin-left: calc(var(--w) * -.22); } }
@media (prefers-reduced-motion: reduce) { .loader.run .deck-card { animation: none; opacity: 1; transform: rotate(var(--t)); } .loader.run p span, .loader p span { transform: none; animation: none; } .bloom { opacity: 1; transform: none; } }
.deck-card { overflow: visible; }
/* ---- projects: clean post bar, settings menu, drag to reorder ---- */
.post { cursor: grab; touch-action: none; user-select: none; position: relative; }
.post.dragging { cursor: grabbing; z-index: 20; } .post.dragging .ad { box-shadow: 0 30px 60px -24px rgba(0,0,0,.55); }
.posts.sorting .post:not(.dragging) { transition: none; }
.post-bar { gap: 8px; margin-top: 10px; }
.post-bar span { flex: 1; font-size: 13px; color: var(--muted); }
.post-bar .p-edit { height: 32px; padding: 0 16px; border: 0; border-radius: 99px; background: #d9381e; color: #fff; font-size: 13px; font-weight: 500; }
.post-bar .p-edit:hover { background: #b92c15 !important; color: #fff !important; box-shadow: none !important; }
.post-bar .p-del { width: 32px; height: 32px; padding: 0; display: grid; place-items: center; border-radius: 99px; }
.post-bar .p-del svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.proj-set { position: relative; } .proj-set .btn.ic svg { width: 18px; height: 18px; }
.proj-set [aria-expanded="true"] { background: var(--ink); color: var(--on-ink); }
.xlist .danger { color: #e0452b; }
[data-proj-hint]:empty { display: none; }
/* ---- brands: round logo, colour buttons ---- */
.logo-prev { width: 64px; height: 64px; border-radius: 50%; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
:root[data-theme="dark"] .logo-prev { background: var(--soft); }
.logo-prev img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; border-radius: 50%; display: block; }
.kit .bcols { grid-column: 1 / 7; border: 0; padding: 0; margin: 0; min-width: 0; }
.kit .bcols legend { font-size: 13px; font-weight: 500; margin-bottom: 8px; padding: 0; }
.kit .bcols .colours { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.kit .bcols .cbtn { text-align: left; }
@media (max-width: 720px) { .kit .bcols { grid-column: 1 / -1; } }
/* ---- guide: orange account hover, done message; logo trash ---- */
.ig-acc { position: relative; overflow: hidden; isolation: isolate; }
.ig-acc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, #ff7a2e, #e2401c 60%, #b8250f); opacity: 0; transition: opacity .3s ease; }
.ig-acc:hover, .ig-acc:focus-visible { background: transparent; color: #fff; border-color: transparent; }
.ig-acc:hover::before, .ig-acc:focus-visible::before { opacity: 1; }
.ig-acc:active { transform: scale(.98); }
.ig-acc:hover small, .ig-acc:focus-visible small { color: #fff; opacity: .8; }
.g-done { margin-top: 0; }
.g-done p { margin: 16px 0 0; padding: 18px 20px; border-radius: 18px; background: linear-gradient(120deg, rgba(255,122,46,.16), rgba(226,64,28,.1)); line-height: 1.6; transform: translateY(-8px); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.g-done.is-open p { transform: none; }
.g-done b { font-weight: 500; }
.logo-row .btn.ic { width: 40px; height: 40px; }
.logo-row [hidden] { display: none !important; }
/* ---- packs ---- */
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; padding: 0 var(--m); margin-bottom: 36px; }
.pack { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.pack:hover { border-color: var(--ink); }
.pack[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.pack-sw { grid-row: span 2; display: flex; } .pack-sw i { width: 18px; height: 34px; box-shadow: inset 0 0 0 1px rgba(127,127,127,.25); } .pack-sw i:first-child { border-radius: 8px 0 0 8px; } .pack-sw i:last-child { border-radius: 0 8px 8px 0; }
.pack b { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pack small { font-size: 12px; opacity: .6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pack-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding: 0 var(--m); margin-bottom: 20px; }
.pack-head h2 { font-size: 26px; font-weight: 400; letter-spacing: -.02em; margin: 0 0 6px; } .pack-head p { margin: 0; max-width: 520px; color: var(--muted); line-height: 1.5; }
.pack-head .bar-right { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-left: 0; }
.pack-head .btn { height: 40px; }
@media (max-width: 720px) { .packs { grid-template-columns: 1fr 1fr; } .pack-sw i { width: 10px; } .pack-head .bar-right { width: 100%; } .pack-head .bar-right .btn { flex: 1; } }
/* ---- v18: phones, tablets and folds ---- */
.grid { grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
.grid.set { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.projects { grid-template-columns: 240px minmax(0, 1fr); }
.proj-main, .proj-list, .proj-head { min-width: 0; }
.proj-name { min-width: 0; max-width: 100%; }
.grid.posts { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.post-bar span { min-width: 0; }
.dock { bottom: max(18px, calc(env(safe-area-inset-bottom) + 10px)); max-width: calc(100vw - 16px); }
@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .grid.posts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .post-bar { flex-wrap: wrap; } .post-bar span { flex-basis: 100%; }
  .proj-head { flex-direction: column; align-items: stretch; } .proj-actions { justify-content: space-between; }
  .proj-list ul { grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); overflow-x: auto; padding-bottom: 4px; }
  .btn, .chip, .dd-btn, .tb { min-height: 40px; }
  .ed-bar .btn, .ed-bar .dd-btn { height: 44px; }
  .cv-tools { padding: 8px; } .cv-tools .tb { height: 40px; min-width: 40px; }
}
@media (max-width: 400px) {
  .dock { left: 8px; right: 8px; translate: none; justify-content: space-between; }
  .dock a { flex: 1; padding: 0 4px; font-size: 12.5px; }
  .grid { gap: 16px 8px; padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 300px) {
  .grid, .grid.posts { grid-template-columns: minmax(0, 1fr); }
  .dock a { font-size: 11.5px; }
}
/* ---- toasts ---- */
.toasts { position: fixed; right: 20px; bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px)); z-index: 300; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; width: min(360px, calc(100vw - 32px)); padding: 14px 10px 14px 16px; border-radius: 16px; background: #ffffff; color: #0b0b0b; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 24px 50px -18px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .28s ease, transform .42s cubic-bezier(.2,.9,.25,1.15); }
:root[data-theme="dark"] .toast { background: #ffffff; color: #0b0b0b; }
.toast.in { opacity: 1; transform: none; } .toast.out { opacity: 0; transform: translateY(8px) scale(.97); transition-duration: .25s; }
.toast p { flex: 1; margin: 0; font-size: 14px; font-weight: 500; line-height: 1.4; }
.toast-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #d9381e; box-shadow: 0 0 0 4px rgba(217,56,30,.18); }
.toast-dot.busy { animation: toast-busy 1s ease-in-out infinite; } @keyframes toast-busy { 50% { opacity: .35; } }
.toast button { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: #0b0b0b; font-size: 20px; line-height: 1; cursor: pointer; transition: background .2s; }
.toast button:hover { background: #f0efec; }
.toast-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #d9381e; transform-origin: left; animation: toast-time linear forwards; }
.toast.hold .toast-bar { animation-play-state: paused; }
@keyframes toast-time { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 720px) { .toasts { right: 12px; left: 12px; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 64px); align-items: stretch; } .toast { width: auto; } }
@media (prefers-reduced-motion: reduce) { .toast { transition: opacity .2s; transform: none; } }
.ed-bar .status { display: none !important; }
/* packs use the library layout */
#sets .pack-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 4px var(--m) 20px; margin: 0; }
#sets .pack-head h2 { font-size: 20px; margin: 0 0 4px; } #sets .pack-head p { font-size: 14px; }
.pack-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 720px) { .pack-actions { width: 100%; } .pack-actions .btn { flex: 1; } }
/* menus in the filter bar always sit above the content below */
.bar { z-index: 30; }
@media (max-width: 720px) { .bar { position: relative; z-index: 30; } }
/* drag to reorder posts */
.post-ghost { position: fixed; z-index: 400; margin: 0; pointer-events: none; cursor: grabbing; list-style: none; will-change: transform; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }
.post-ghost .ad { border-radius: 8px; overflow: hidden; }
.post.is-placeholder > * { opacity: 0; }
.post.is-placeholder { border-radius: 10px; background: var(--soft); box-shadow: inset 0 0 0 1.5px var(--line); }
body.is-sorting, body.is-sorting * { cursor: grabbing !important; user-select: none; }
.posts.sorting .post { transition: none; animation: none; }
.grid.posts > li { animation: none; }
/* the chosen chip keeps its colours on hover */
.chip[aria-pressed="true"], .chip[aria-pressed="true"]:hover { background: var(--ink); color: var(--on-ink); }
.chip[aria-pressed="true"] span { opacity: .6; }
/* open menu buttons keep a visible icon */
.proj-set .btn.ic[aria-expanded="true"], .xmenu .btn.ic[aria-expanded="true"] { background: var(--ink) !important; color: var(--on-ink) !important; border-color: var(--ink) !important; }
.proj-set .btn.ic svg, .xmenu .btn.ic svg { stroke: currentColor; fill: none; }
::selection { background: rgba(217, 56, 30, .35); color: inherit; }
/* library: photo buttons and view menus share one line under the filters */
.bar .chips { flex-basis: 100%; }
.showcase-bar.in-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0; margin: 0; }
.showcase-bar.in-bar .hint:empty { display: none; }
.showcase-bar.in-bar .hint { margin: 0; }
.bar .bar-right { margin-left: auto; }
.bar .btn, .bar .file-btn { height: 40px; }
@media (max-width: 720px) { .showcase-bar.in-bar { width: 100%; } .showcase-bar.in-bar .btn { flex: 1; justify-content: center; } .bar .bar-right { margin-left: 0; width: 100%; } }
@media (max-width: 720px) {
  .showcase-bar.in-bar .btn { white-space: nowrap; font-size: 13px; padding: 0 10px; }
  .bar .bar-right { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .bar .bar-right > .lib-photo { grid-column: 1 / -1; justify-content: center; }
  .bar .bar-right .dd, .bar .bar-right .dd-btn { width: 100% !important; min-width: 0; }
}
/* ---- layers ---- */
.layers-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.layers-head .label { margin: 0; }
.add-img { height: 36px; gap: 6px; padding: 0 14px; font-size: 13px; }
.add-img svg, .lb svg, .lic svg, .lb-del svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.layers { list-style: none; margin: 0; padding: 4px; display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 14px; max-height: 320px; overflow: auto; }
.layer { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 6px 0 10px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.layer:hover { background: var(--soft); }
.layer.on { background: var(--ink); color: var(--on-ink); }
.layer.off .ln, .layer.off .lic { opacity: .4; }
.lic { flex: none; width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; background: color-mix(in srgb, currentColor 10%, transparent); overflow: hidden; }
.lic img { width: 100%; height: 100%; object-fit: cover; }
.ln { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; opacity: .65; transition: opacity .15s, background .15s; }
.lb:hover { opacity: 1; background: color-mix(in srgb, currentColor 12%, transparent); }
.lb:disabled { opacity: .2; pointer-events: none; }
.layer-props { display: grid; gap: 14px; }
.layer-props .label { margin: 0; }
.layer-props .range, .photofx .range { grid-template-columns: 84px 1fr 30px; }
.layer-props .range em, .photofx .range em { font-style: normal; font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.lb-del { gap: 6px; justify-content: center; }
.pane[data-pane="photo"] .row2[data-one-photo] { grid-template-columns: 1fr 1fr; } .pane[data-pane="photo"] .row2[data-one-photo] > :last-child { grid-column: 1 / -1; }
/* projects: the empty place is only an outline */
.post.is-placeholder { background: transparent !important; box-shadow: none !important; border-radius: 12px; outline: none; }
/* seven editor tabs on one row */
.tabs { display: flex; gap: 2px; }
.tabs button { flex: 1 1 auto; min-width: 0; padding: 0 5px; font-size: 12px; white-space: nowrap; overflow: visible; }
/* library: more room between the filters and the photo buttons */
#library .bar .chips { margin-bottom: 18px; }
/* hovering a card never changes the design inside it */
.card .ad, .card:hover .ad, .card:focus-visible .ad, .no-fx .card:hover .ad { transform: none !important; transform-style: flat; transition: box-shadow .25s; }
.card:hover .ad, .card:focus-visible .ad { box-shadow: 0 0 0 1.5px var(--ink); }
/* the studio mark in brand previews */
.bmark { display: block; width: 62%; color: currentColor; } .bmark svg { display: block; width: 100%; height: auto; }
.logo-prev .bmark { width: 56%; color: var(--ink); }
.brand-card i .bmark { width: 60%; color: #fff; }
/* brand colours: a swatch, a name and the code, no cards */
.kit .bcols .colours { display: flex; flex-wrap: wrap; gap: 14px 26px; grid-template-columns: none; }
.kit .bcols .cbtn { display: grid; grid-template-columns: 34px auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 0; height: auto; min-height: 0; border: 0 !important; background: none !important; box-shadow: none !important; text-align: left; cursor: pointer; }
.kit .bcols .cbtn i { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent); transition: transform .2s; }
.kit .bcols .cbtn:hover i { transform: scale(1.08); }
.kit .bcols .cbtn span { font-size: 13px; font-weight: 500; line-height: 1.2; } .kit .bcols .cbtn em { font-size: 11.5px; line-height: 1.2; }
.kit .bcols .cbtn:hover, .kit .bcols .cbtn:focus-visible { background: none !important; color: inherit !important; }
@media (max-width: 720px) { .kit .bcols .colours { gap: 14px 18px; } .kit .bcols .cbtn { flex: 1 1 40%; } }
.kit [data-brand-delete] { grid-column: 1 / -1; justify-self: start; margin-top: 6px; } .kit .hint[hidden] { display: none !important; }
/* palettes: a short row, + opens the rest */
[data-ed-pals] .sw.more { display: none; }
[data-ed-pals].open .sw.more { display: block; animation: sw-in .3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes sw-in { from { opacity: 0; transform: scale(.6); } }
.sw-more { display: grid; place-items: center; background: var(--soft) !important; color: var(--ink); border: 0; cursor: pointer; }
.sw-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
[data-ed-pals].open .sw-more svg { transform: rotate(45deg); }
[data-ed-pals].open .sw-more { order: 999; }
/* the side columns scroll on their own */
@media (min-width: 1101px) {
  .panel, .variants { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; padding-bottom: 90px; }
}
.sw-more::after { display: none; }
/* 3D lean on hover: a plain transform on the card frame (no preserve-3d), so blurs and glass inside render the same */
.grid a.card .ad { transform: perspective(1000px) rotateX(0deg) rotateY(0deg) !important; transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .3s !important; will-change: transform; }
.grid a.card.tilt .ad { transform: perspective(1000px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateY(-4px) !important; transition-duration: .15s, .3s !important; box-shadow: 0 30px 50px -30px rgba(0,0,0,.5), 0 0 0 1.5px var(--ink); }
.no-fx .grid a.card .ad, .no-fx .grid a.card.tilt .ad { transform: none !important; }
/* chosen picture on the canvas */
.cv-art.photo-picked::after { content: ""; position: absolute; inset: 0; outline: 1.5px dashed #3b82f6; outline-offset: -3px; pointer-events: none; z-index: 60; }
.bi-ad .bi-media.media-picked { outline: 1.5px dashed #3b82f6; outline-offset: -3px; }
/* right column: layers or variants */
.rswitch { display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--soft); margin: 4px 0 6px; }
.rswitch button { flex: 1; height: 34px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s; }
.rswitch button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.rpane { display: grid; gap: 12px; } .rpane[hidden] { display: none !important; }
.rpane .layers-ui, .pane .layers-ui { display: grid; gap: 14px; }
.rpane .layer-props .range { grid-template-columns: 70px 1fr 28px; font-size: 12px; }
.rpane .layer-props .row2 { grid-template-columns: 1fr 1fr; } .rpane .layer-props .btn { font-size: 12.5px; padding: 0 8px; }

.cv-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; } .tb:disabled { opacity: .3; pointer-events: none; } .rpane .layers-head .label, .rpane[data-rpane="variants"] > .label:first-child { margin-top: 0 !important; }
.fontrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fontrow .dd-btn { width: 100%; }
.dd-list li[role=option] span { overflow: hidden; text-overflow: ellipsis; }
/* shade arrow */
.shade { display: grid; gap: 12px; } .shade .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; margin-right: 6px; }
.shade .chip .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; box-shadow: inset 0 0 0 1px rgba(127,127,127,.5); vertical-align: -1px; }
.dg-handle { position: absolute; inset: 0; z-index: 70; pointer-events: none; overflow: visible; }
.dg-handle line { stroke: #fff; stroke-width: 2; stroke-dasharray: 5 4; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.dg-handle .dg-c { fill: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.dg-knob { pointer-events: auto; cursor: grab; } .dg-knob circle { fill: #3b82f6; stroke: #fff; stroke-width: 2; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); } .dg-knob path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dg-knob:active { cursor: grabbing; }
/* profile */
.pf { padding: 8px var(--m) 60px; }
.pf-cover { position: relative; height: clamp(170px, 26vw, 320px); border-radius: 22px; background: center/cover no-repeat var(--soft); overflow: hidden; }
:root .pf .pf-cover-btn { position: absolute; right: 16px; bottom: 16px; height: 36px; padding: 0 14px; background: rgba(0,0,0,.45); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 13px; transition: background .2s; }
:root .pf .pf-cover-btn:hover { background: rgba(0,0,0,.7); }
.pf-id { display: grid; justify-items: center; text-align: center; gap: 6px; margin-top: calc(clamp(96px, 11vw, 136px) / -2); position: relative; }
.pf-avatar { position: relative; width: clamp(96px, 11vw, 136px); aspect-ratio: 1; padding: 0; border: 5px solid var(--bg); border-radius: 50%; overflow: hidden; background: var(--soft); cursor: pointer; }
.pf-avatar:disabled { cursor: default; }
.pf-avatar img, .pf-avatar .pf-ini { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; }
.pf-avatar span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.5); color: #fff; font-size: 13px; font-weight: 500; opacity: 0; transition: opacity .2s; }
.pf-avatar:hover span, .pf-avatar:focus-visible span { opacity: 1; }
.pf-ini { font-style: normal; color: #fff; font-weight: 500; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.02em; border-radius: 50%; }
.pf-ini.sm, img.sm { width: 22px; height: 22px; font-size: 10px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; object-fit: cover; }
.pf-name { margin-top: 6px; font-size: clamp(26px, 3vw, 38px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.pf-handle { color: var(--muted); font-size: 14px; }
.pf-bio { max-width: 46ch; min-height: 1.45em; padding: 2px 8px; border-radius: 8px; outline: 0; }
.pf-bio[contenteditable="plaintext-only"] { cursor: text; } .pf-bio[contenteditable="plaintext-only"]:hover, .pf-bio[contenteditable="plaintext-only"]:focus { background: var(--soft); }
.pf-bio.is-empty { color: var(--muted); }
.pf-actions { display: flex; gap: 8px; margin-top: 8px; }
.pf-stats { display: flex; justify-content: center; gap: clamp(22px, 4vw, 56px); margin: 18px 0 0; }
.pf-stats div { display: grid; justify-items: center; } .pf-stats dd { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .pf-stats dt { color: var(--muted); font-size: 13px; }
.pf-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 36px 0 4px; }
.pf-bar .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.grid.pf-grid { padding: 14px 0 0; list-style: none; align-items: start; }
.pf-post .post-bar { display: flex; align-items: center; gap: 6px; }
.pf-by { display: inline-flex; align-items: center; gap: 8px; min-width: 0; flex: 1; color: inherit; text-decoration: none; font-size: 13px; }
.pf-by span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } a.pf-by:hover span { text-decoration: underline; }
.pf-ic { display: inline-flex; align-items: center; gap: 4px; height: 32px; min-width: 32px; padding: 0 8px; border: 0; border-radius: 99px; background: transparent; cursor: pointer; color: inherit; transition: background .2s, color .2s; }
.pf-ic:hover { background: var(--soft); }
.pf-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; transition: fill .2s, transform .25s var(--ease); }
.pf-ic em { font-style: normal; font-size: 12px; font-variant-numeric: tabular-nums; }
.pf-ic[aria-pressed="true"] svg { fill: currentColor; } .pf-like[aria-pressed="true"] { color: #d9381e; } .pf-ic[aria-pressed="true"] svg { transform: scale(1.12); }
.pf-empty { max-width: 46ch; margin: 30px auto; text-align: center; color: var(--muted); }
.pf-pick .confirm-card { width: min(760px, 100%); max-height: min(80vh, 720px); overflow: auto; }
.pp-head { display: flex; align-items: center; justify-content: space-between; }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; padding: 4px 0 0; list-style: none; margin: 0; }
.pp-grid button { display: grid; gap: 6px; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; font-size: 12px; color: var(--muted); }
.pp-grid button .ad { border-radius: 10px; overflow: hidden; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .2s; }
.pp-grid button:hover .ad, .pp-grid button:focus-visible .ad { outline-color: #d9381e; }
.pp-none { color: var(--muted); }
@media (max-width: 600px) { .pf-stats dd { font-size: 20px; } .pf-bar { margin-top: 26px; } }
.post-bar .pf-ic { height: 32px; border: 0; background: transparent; font-size: 12px; } .post-bar .pf-ic:hover { background: var(--soft); } .pf-by span { color: var(--ink); }
@media (max-width: 600px) { :root .pf .pf-cover-btn { top: 12px; right: 12px; bottom: auto; height: 32px; font-size: 12px; } }
/* photo select */
.psel-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; } .psel-row:empty { display: none; }
.chip.psel { display: inline-flex; align-items: center; gap: 8px; padding-left: 5px; } .chip.psel img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.ftools .sel[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
/* mover: a plain header, the switch under it and the round pad, no card */
.mover { display: grid; grid-template-columns: minmax(0, 1fr) !important; justify-items: start; gap: 12px; padding: 4px 0 0; background: none; }
.flabel { font-size: 13px; font-weight: 500; margin: 0; }
.mover .pad { margin-top: 4px; }
.photofx .check { margin-bottom: 2px; }
/* the left panel keeps the same width whichever tab is open */
@media (min-width: 1101px) { .panel, .variants { scrollbar-gutter: stable; } }
/* thin scrollbars inside the page (menus, lists, panels); the page's own scrollbar stays as it is */
body *::-webkit-scrollbar { width: 6px; height: 6px; background: transparent; }
body *::-webkit-scrollbar-track { background: transparent; }
body *::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ink) 22%, transparent); border-radius: 99px; border: 1px solid transparent; background-clip: padding-box; }
body *::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--ink) 40%, transparent); }
body *::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
body *::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) { body * { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ink) 25%, transparent) transparent; } }
/* the dashed spot where a dragged post lands fades in and out */
.posts .post { position: relative; }
.posts .post::after { content: ""; position: absolute; inset: 0; border-radius: 12px; border: 1.5px dashed color-mix(in srgb, var(--ink) 45%, transparent); opacity: 0; transform: scale(.97); transition: opacity .24s ease, transform .24s cubic-bezier(.2,.8,.2,1); pointer-events: none; z-index: 3; }
.posts .post.is-placeholder::after { opacity: 1; transform: none; }
/* profile v2 */
.pf-id { pointer-events: none; } .pf-id > * { pointer-events: auto; }
.pf-avatar .pf-av-btn { inset: auto; left: 50%; top: 50%; translate: -50% -50%; width: max-content; padding: 7px 12px; border-radius: 99px; background: rgba(0,0,0,.72); color: #fff; font-size: 12px; font-weight: 500; opacity: 0; transition: opacity .2s, scale .2s; scale: .9; }
.pf-avatar:hover .pf-av-btn, .pf-avatar:focus-visible .pf-av-btn { opacity: 1; scale: 1; }
.pf-stats { gap: clamp(8px, 2vw, 24px); }
.pf-stat { display: grid; justify-items: center; padding: 8px 14px; border: 0; border-radius: 14px; background: none; color: inherit; cursor: pointer; transition: background .2s; font: inherit; }
.pf-stat:hover { background: var(--soft); }
.pf-stat dd { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .pf-stat dt { color: var(--muted); font-size: 13px; }
/* masonry: columns fill top to bottom, no holes */
.grid.pf-grid { display: block; columns: 5 220px; column-gap: 18px; padding: 16px 0 0; transition: opacity .16s ease, transform .16s ease; }
.grid.pf-grid.pf-out { opacity: 0; transform: translateY(6px); }
.pf-post { display: block; break-inside: avoid; margin: 0 0 22px; list-style: none; }
.pf-post .ad { border-radius: 10px; overflow: hidden; }
.pf-grid.pf-anim .pf-post { animation: pfIn .55s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes pfIn { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.pf-post .post-bar { display: flex; align-items: center; gap: 4px; padding-top: 10px; }
.post-bar .pf-ic, .post-bar .pf-ic:hover { background: transparent; box-shadow: none; border: 0; }
.pf-ic { cursor: pointer; color: var(--muted); padding: 0 6px; }
.pf-ic svg { transition: fill .28s ease, stroke .28s ease, color .2s; fill: transparent; }
.pf-like:hover, .pf-like:focus-visible { color: var(--ink); }
.pf-like[aria-pressed="true"] { color: #ff6a1a; } .pf-like[aria-pressed="true"] svg { fill: #ff6a1a; transform: none; }
.pf-like em { transition: color .2s; }
.pf-ic[data-pf-save] { color: var(--ink); } .pf-ic[data-pf-save][aria-pressed="true"] svg { fill: var(--ink); transform: none; }
.pf-ic[data-pf-share], .pf-ic[data-pf-unpub] { color: var(--ink); }
.like-star { position: fixed; z-index: 9999; width: 7px; height: 7px; background: #ff6a1a; pointer-events: none; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
/* list window */
.pf-modal .confirm-card { width: min(560px, 100%); max-height: min(78vh, 700px); display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 14px; }
.pm-body { overflow: auto; margin-right: -8px; padding-right: 8px; }
.pm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pm-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 12px; transition: background .2s; }
.pm-row:hover { background: var(--soft); }
.pf-ini.md, img.md { width: 40px; height: 40px; font-size: 14px; border-radius: 50%; display: grid; place-items: center; object-fit: cover; }
.pm-n { display: grid; min-width: 0; } .pm-n b { font-weight: 500; font-size: 14px; } .pm-n b a { color: inherit; text-decoration: none; } .pm-n b a:hover { text-decoration: underline; } .pm-n em { font-style: normal; font-size: 12px; color: var(--muted); }
.pm-follow { height: 32px; padding: 0 14px; font-size: 13px; }
.pm-more { color: var(--muted); font-size: 13px; text-align: center; margin: 14px 0 4px; }
.pm-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.pm-grid button { display: grid; gap: 6px; width: 100%; padding: 0; border: 0; background: none; color: var(--muted); font-size: 12px; text-align: left; cursor: pointer; }
.pm-grid button:disabled { cursor: default; }
.pm-grid .ad { border-radius: 10px; overflow: hidden; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .2s; }
.pm-grid button:not(:disabled):hover .ad { outline-color: #d9381e; }
.pm-empty { aspect-ratio: 4/5; background: var(--soft); }
/* loader: the card under the pointer slides up out of the row, the others soften and blur */
.deck-in { transform: translate3d(0, 0, 0); transition: transform .26s cubic-bezier(.3,.7,.2,1), filter .18s ease-out, box-shadow .26s ease-out; backface-visibility: hidden; will-change: transform, filter; }
.deck-card:hover .deck-in { transform: translate3d(0, -24%, 0) scale(1.03); transition-duration: .45s, .3s, .45s; box-shadow: 0 50px 70px -34px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.06); }
.deck:has(.deck-card:hover) .deck-card:not(:hover) .deck-in { filter: blur(4px) brightness(.72) saturate(.85); transition-duration: .3s, .3s, .3s; transform: translate3d(0, 3%, 0) scale(.97); }
@media (hover: none) { .deck-card:hover .deck-in, .deck:has(.deck-card:hover) .deck-card:not(:hover) .deck-in { transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .deck-in { transition: none; } }

/* ===== 2026-11-28: smoother panels, wider sidebar, colour dots ===== */

/* wider editor sidebar, more air */
@media (min-width: 1101px) { .editor { grid-template-columns: clamp(340px, 26vw, 400px) minmax(0, 1fr) 300px; gap: clamp(28px, 2.6vw, 44px); } }

/* every dialog opens and closes with the same soft motion */
.confirm { transition: opacity .28s cubic-bezier(.22,1,.36,1); }
.confirm .confirm-card { opacity: 0; transform: translateY(18px) scale(.97); transition: transform .42s cubic-bezier(.22,1,.36,1), opacity .3s cubic-bezier(.22,1,.36,1); }
.confirm.open .confirm-card { opacity: 1; transform: none; }
.confirm:not(.open) .confirm-card { transition-duration: .22s, .18s; }
.confirm.open .pm-list > li, .confirm.open .pm-grid > li, .confirm.open .pp-grid > li { animation: pm-in .45s cubic-bezier(.22,1,.36,1) backwards; animation-delay: calc(min(var(--i, 0), 12) * 28ms + 80ms); }
@keyframes pm-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .confirm .confirm-card, .confirm.open .pm-list > li, .confirm.open .pm-grid > li, .confirm.open .pp-grid > li { transition: none; animation: none; } }

/* layers: the list always fits the panel, no scrollbars */
.layers { max-height: none; overflow: visible; }
.layers > li { min-width: 0; }
.layer { transition: background .25s cubic-bezier(.22,1,.36,1), color .25s cubic-bezier(.22,1,.36,1); }
.layer .lb { flex: none; }
.layer-props { overflow: hidden; margin: -2px; padding: 2px; }
.layer-props:empty { display: none; }

/* colours: round swatches side by side, a soft 3px ring, no cards */
.colours, .kit .colours, .brands .kit .colours, .kit .bcols .colours { display: flex !important; flex-wrap: wrap; gap: 14px 16px; grid-template-columns: none; }
.cbtn, .kit .bcols .cbtn {
  display: grid !important; grid-template-columns: none !important; grid-template-rows: auto auto; justify-items: center; row-gap: 6px;
  width: 58px; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; text-align: center; cursor: pointer; color: var(--ink);
}
.cbtn i, .kit .bcols .cbtn i {
  grid-row: auto !important; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(var(--c), var(--c)), repeating-conic-gradient(#ccc 0 25%, #fff 0 50%) 0 0/10px 10px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 9%, var(--bg)) !important;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s;
}
.cbtn:hover i, .cbtn:focus-visible i { transform: scale(1.08); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 22%, var(--bg)) !important; }
.cbtn:active i { transform: scale(.95); }
.cbtn span, .kit .bcols .cbtn span { font-size: 11.5px; font-weight: 500; line-height: 1.2; color: var(--muted); }
.cbtn em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.cbtn { position: relative; }
.cbtn:hover, .cbtn:focus-visible, .kit .bcols .cbtn:hover { background: none !important; color: var(--ink) !important; }

/* the small style label next to every template name */
.pb-name { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; overflow: hidden; }
.tcat { font-style: normal; font-size: 11px; color: var(--muted); white-space: nowrap; flex: none; }
.post-bar .pb-name { flex: 1; white-space: nowrap; text-overflow: ellipsis; }

/* profile cover: a real image so it can be placed and zoomed */
.pf-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-cover-tools { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; z-index: 1; }
:root .pf .pf-cover-tools .pf-cover-btn { position: static; }
@media (max-width: 600px) { .pf-cover-tools { top: 12px; right: 12px; bottom: auto; } }

/* cover editor */
.crop-modal .confirm-card { width: min(760px, 100%); gap: 16px; }
.crop-hint { margin: -6px 0 0; font-size: 13px; }
.crop-frame { position: relative; width: 100%; border-radius: 16px; overflow: hidden; background: var(--soft); cursor: grab; touch-action: none; outline: 0; }
.crop-frame:focus-visible { box-shadow: 0 0 0 2px var(--ink); }
.crop-frame.dragging { cursor: grabbing; }
.crop-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; pointer-events: none; }
.crop-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgb(255 255 255 / .35), rgb(255 255 255 / .35)) 33.33% 0 / 1px 100% no-repeat, linear-gradient(rgb(255 255 255 / .35), rgb(255 255 255 / .35)) 66.66% 0 / 1px 100% no-repeat, linear-gradient(rgb(255 255 255 / .35), rgb(255 255 255 / .35)) 0 33.33% / 100% 1px no-repeat, linear-gradient(rgb(255 255 255 / .35), rgb(255 255 255 / .35)) 0 66.66% / 100% 1px no-repeat; opacity: 0; transition: opacity .2s; }
.crop-frame.dragging::after, .crop-frame:hover::after { opacity: 1; }
.crop-ranges .range { grid-template-columns: 96px 1fr 34px; }
.crop-ranges .range em { font-style: normal; font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

/* the line about you: text plus a pencil */
.pf-bio { display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; background: none !important; }
.pf-bio-t { padding: 2px 6px; margin-left: -6px; border-radius: 8px; outline: 0; }
.pf-bio.editing .pf-bio-t { background: var(--soft); box-shadow: 0 0 0 1px var(--line); cursor: text; min-width: 12ch; }
.pf-bio.editing .pf-bio-edit { display: none; }
.pf-bio-edit { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.pf-bio-edit:hover, .pf-bio-edit:focus-visible { background: var(--soft); color: var(--ink); }
.pf-bio-edit svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* gradient editor */
.chip--edit { display: inline-flex; align-items: center; gap: 6px; }
.chip--edit svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.gradc { display: grid; gap: 14px; }
.gradc:empty { display: none; }
.gradc > :first-child { margin-top: 12px; }
.gc-type { align-items: center; }
.gc-from { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.gc-from select, .gc-blend select { height: 32px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); padding: 0 10px; font: inherit; font-size: 12.5px; color: var(--ink); }
.gc-bar { position: relative; height: 34px; margin: 4px 10px 14px; border-radius: 10px; background: var(--bar); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); cursor: copy; }
.gc-stop { position: absolute; top: 100%; width: 20px; height: 26px; margin: -6px 0 0 -10px; border: 0; padding: 0; background: none; cursor: grab; touch-action: none; }
.gc-stop::before { content: ""; position: absolute; left: 50%; top: 0; width: 0; height: 0; margin-left: -6px; border: 6px solid transparent; border-bottom-color: var(--ink); border-top: 0; }
.gc-stop::after { content: ""; position: absolute; left: 2px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(var(--c), var(--c)), repeating-conic-gradient(#ccc 0 25%, #fff 0 50%) 0 0/6px 6px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px color-mix(in srgb, var(--ink) 25%, transparent); transition: box-shadow .15s, transform .15s; }
.gc-stop.on::after { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); transform: scale(1.1); }
.gc-row { display: grid; gap: 10px; }
.gc-row .gc-col { flex-direction: row; width: auto; gap: 10px; justify-content: flex-start; align-items: center; }
.gc-row .gc-col i { width: 32px; height: 32px; }
.gc-row .gc-col em { position: static; width: auto; height: auto; clip-path: none; overflow: visible; font-style: normal; font-size: 12px; color: var(--muted); margin-left: auto; }
.gc-blend { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }

/* grid presets on the canvas */
.cv-gridw { position: relative; display: inline-flex; }
.cv-grid { position: absolute; inset: 0; pointer-events: none; z-index: 5; background-image: linear-gradient(to right, rgb(0 170 255 / .35) 1px, transparent 1px), linear-gradient(to bottom, rgb(0 170 255 / .35) 1px, transparent 1px); background-position: -0.5px -0.5px; }
.cv-pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; width: 300px; padding: 16px; border-radius: 18px; background: var(--bg); box-shadow: 0 18px 50px rgb(0 0 0 / .16), 0 0 0 1px var(--line); display: grid; gap: 10px; transform-origin: top left; animation: popin .28s cubic-bezier(.22,1,.36,1); }
@keyframes popin { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .cv-pop { animation: none; } }
.cv-pop-t { margin: 0; font-size: 12px; font-weight: 600; } .cv-pop-t span { font-weight: 400; color: var(--muted); }
.cv-pop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .cv-pop-grid .chip { padding: 0 8px; }
.cv-pop-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; }
.cv-pop-row label { display: grid; gap: 4px; font-size: 11.5px; color: var(--muted); }
.cv-pop-row input { width: 100%; height: 36px; border-radius: 10px; border: 1px solid var(--line); padding: 0 10px; font: inherit; font-size: 13px; background: var(--bg); color: var(--ink); }
.cv-pop-row .btn { height: 36px; padding: 0 14px; }
.cv-pop-guides { height: 36px; }
.gc-ranges .range { grid-template-columns: 84px 1fr 30px; }
.gc-ranges .range em { font-style: normal; font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
:root .gc-row .gc-col { display: flex !important; flex-direction: row; width: 100%; padding: 4px 0; gap: 12px; }
:root .gc-row .gc-col span { font-size: 13px; color: var(--ink); }

/* cover buttons appear on hover, like Change image on the avatar */
@media (hover: hover) {
  .pf-cover-tools { opacity: 0; translate: 0 6px; transition: opacity .25s, translate .3s cubic-bezier(.22,1,.36,1); }
  .pf-cover:hover .pf-cover-tools, .pf-cover:focus-within .pf-cover-tools { opacity: 1; translate: 0 0; }
}
.pf-cover::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / 0); transition: background .25s; pointer-events: none; }
.pf-cover:hover::after { background: rgb(0 0 0 / .12); }

/* social links on the profile */
.pf-links { display: flex; justify-content: center; gap: 6px; list-style: none; margin: 2px 0 0; padding: 0; }
.pf-links a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--ink); background: var(--soft); transition: background .2s, color .2s, transform .25s cubic-bezier(.22,1,.36,1); }
.pf-links a:hover, .pf-links a:focus-visible { background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.pf-links svg, .pfs-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pf-gear svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.pf-actions { display: flex; gap: 8px; justify-content: center; }

/* profile settings */
.pf-setm .confirm-card { width: min(520px, 100%); gap: 14px; }
.pfs-hint { margin: -4px 0 0; font-size: 13px; }
.pfs-form { display: grid; gap: 8px; }
.pfs-f { display: grid; grid-template-columns: 40px 92px 1fr; align-items: center; gap: 10px; padding: 6px 6px 6px 6px; border-radius: 14px; background: var(--soft); }
.pfs-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--bg); }
.pfs-l { font-size: 13px; font-weight: 500; }
.pfs-f input { min-width: 0; height: 40px; border: 0; border-radius: 10px; background: var(--bg); padding: 0 12px; font: inherit; font-size: 13.5px; color: var(--ink); outline: 0; box-shadow: 0 0 0 1px transparent; transition: box-shadow .2s; }
.pfs-f input:focus { box-shadow: 0 0 0 2px var(--ink); }
.pfs-f input[aria-invalid] { box-shadow: 0 0 0 2px #d6332a; }
.pfs-err { margin: 0; min-height: 1em; font-size: 12.5px; color: #d6332a; }
.pfs-err:empty { display: none; }
@media (max-width: 520px) { .pfs-f { grid-template-columns: 40px 1fr; } .pfs-f input { grid-column: 1 / -1; } }

/* brand settings head */
.kit-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; grid-column: 1 / -1; }
.kit-t { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.kit-head .xlist { right: 0; left: auto; }
.kit-head .xlist button:disabled { opacity: .4; cursor: not-allowed; }
.kit-head .btn.ic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }

/* coming soon card: plain and quiet. The studio mark, one line in the studio font, and a light running along the edge. */
@property --orb { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
:root .soon { position: relative; display: block; padding: 1.5px; border: 0; border-radius: 8px; color: var(--ink);
  background: conic-gradient(from var(--orb), transparent 0 70%, var(--accent, #e8401c) 84%, transparent 98%), var(--line);
  animation: orb 6s linear infinite; }
@keyframes orb { to { --orb: 360deg; } }
.soon-in { width: 100%; height: 100%; box-sizing: border-box; border-radius: 6.5px; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 20px; background: var(--bg); text-align: center; }
.soon-mark { display: block; width: 34px; color: var(--ink); } .soon-mark svg { display: block; width: 100%; height: auto; fill: currentColor; }
:root .soon b { font-family: inherit; font-size: 15px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); line-height: 1.2; }
@media (prefers-reduced-motion: reduce) { :root .soon { animation: none; } }

/* packs: the description always takes two lines, so the grid below never jumps */
.pa-stack { display: grid; } .pa { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .25s, visibility 0s .25s; } .pa.on { visibility: visible; opacity: 1; transition: opacity .3s .05s; }
#sets .pack-head [data-pack-about] { flex: 1 1 520px; max-width: 620px; }

/* Explore and the other profile tabs come in the same way as the Library */
.grid.pf-grid { transition: opacity .22s ease, transform .3s ease; }
.grid.pf-grid > li.pf-post { animation: none; }
.pf-grid.pf-anim .pf-post { animation: pfIn .6s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i, 0) * 45ms + .05s); }
@keyframes pfIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* projects: empty states and a new project sliding into the list */
.proj-start { display: grid; gap: 22px; padding: 8px 0 0; animation: rise .6s cubic-bezier(.16,1,.3,1) both; }
.proj-start[hidden] { display: none; }
.ps-t { margin: 0; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.02em; line-height: 1.1; }
.ps-s { margin: 8px 0 0; color: var(--muted); max-width: 52ch; line-height: 1.5; }
.grid.ps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; margin: 0; }
@media (max-width: 900px) { .grid.ps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.projects.is-none .proj-list ul { display: none; }
.proj-list li.is-new { animation: projIn .55s cubic-bezier(.16,1,.3,1) both; transform-origin: top left; }
@keyframes projIn { from { opacity: 0; transform: translateY(-8px) scale(.96); max-height: 0; } to { opacity: 1; transform: none; max-height: 80px; } }
.proj-head[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .proj-start, .proj-list li.is-new { animation: none; } }
.kit-head { width: 100%; align-self: stretch; justify-self: stretch; }
:root .brands .kit > .kit-head { grid-column: 1 / 7; width: 100%; }

/* projects: the name lives only in the list on the left; the gear stays on the right */
.proj-head { justify-content: flex-end; }
.proj-list .brand-card i.pcount { border-radius: 50%; overflow: hidden; }
.proj-list .brand-card i.pcount.has-pic { background: var(--soft) !important; }
.proj-list .brand-card i.pcount img { width: 100%; height: 100%; object-fit: cover; }
.proj-list .brand-card span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* edit project */
.pe-modal .confirm-card { width: min(460px, 100%); gap: 16px; }
.pe-pic { display: flex; align-items: center; gap: 18px; }
.pe-av { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font-size: 30px; }
.pe-av img { width: 100%; height: 100%; object-fit: cover; }
.pe-btns { display: flex; flex-wrap: wrap; gap: 8px; } .pe-btns .btn { height: 40px; } .pe-btns [hidden] { display: none; }
.pe-hint { margin: -6px 0 0; font-size: 13px; }
.pe-name { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.pe-name input { height: 44px; border-radius: 12px; border: 1px solid var(--line); padding: 0 14px; font: inherit; font-size: 15px; background: var(--bg); color: var(--ink); }
.pe-name input:focus { outline: 0; border-color: var(--ink); }

/* brand details */
.bd-modal .confirm-card { width: min(620px, 100%); gap: 14px; }
.bd-hint { margin: -6px 0 0; font-size: 13px; }
.bd-code { margin: 0; max-height: min(52vh, 460px); overflow: auto; padding: 18px 20px; border-radius: 14px; background: #0e0e10; color: #e9e9ea; font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; tab-size: 2; scrollbar-width: thin; }
.bd-code:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btag { display: block; font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--muted); margin-top: 2px; }

/* colour circles: no light fringe, no growing on hover, more air around them */
:root .cbtn i, :root .kit .bcols .cbtn i { background: linear-gradient(var(--c), var(--c)) border-box, repeating-conic-gradient(#ccc 0 25%, #fff 0 50%) content-box 0 0 / 10px 10px; padding: 2px; box-sizing: border-box; border: 0; }
:root .cbtn:hover i, :root .cbtn:focus-visible i, :root .cbtn:active i, :root .kit .bcols .cbtn:hover i { transform: none; }
:root .kit .bcols legend { margin-bottom: 18px; }
:root .kit .bcols { margin-bottom: 18px; }

/* number box with its own up and down buttons */
.cv-pop-row { grid-template-columns: 1fr 1fr; }
.cv-pop-row .btn { grid-column: 1 / -1; }
.nb { display: grid; gap: 4px; font-size: 11.5px; color: var(--muted); }
.nb-f { display: flex; align-items: stretch; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); overflow: hidden; transition: border-color .2s; }
.nb-f:focus-within { border-color: var(--ink); }
.cv-pop-row .nb-f input { flex: 1; min-width: 0; height: auto; border: 0; border-radius: 0; padding: 0 10px; font: inherit; font-size: 14px; color: var(--ink); background: none; outline: 0; -moz-appearance: textfield; appearance: textfield; font-variant-numeric: tabular-nums; }
.nb-f input::-webkit-outer-spin-button, .nb-f input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nb-s { display: grid; grid-template-rows: 1fr 1fr; width: 28px; border-left: 1px solid var(--line); }
.nb-s button { display: grid; place-items: center; border: 0; padding: 0; background: none; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.nb-s button + button { border-top: 1px solid var(--line); }
.nb-s button:hover { background: var(--soft); color: var(--ink); }
.nb-s button:active { background: var(--line); }
.nb-s svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* dragging text: no helper grid; only the centre line shows, and only when the text snaps to it */
:root .canvas.guiding.on-x .ad::before, :root .canvas.guiding.on-y .ad::after { display: block; opacity: .9; }

/* desktop editor fits the window: only the left and right sidebars scroll, never the page */
@media (min-width: 1101px) {
  #editor .editor { height: calc(100dvh - var(--toph, 76px)); box-sizing: border-box; padding-bottom: 16px; align-items: stretch; overflow: hidden; }
  #editor .panel, #editor .variants { position: static; height: 100%; max-height: none; overflow-y: auto; overscroll-behavior: contain; }
  #editor .stage { overflow: hidden; min-height: 0; }
  /* room for focus rings, so the outline of a field is never cut at the edge */
  #editor .panel { padding: 4px 8px 90px 4px; margin: -4px 0 0 -4px; }
  html:has(#editor:not([hidden])) { overflow: hidden; }
}

/* the studio is an app, not a page of text: dragging a slider or a picker never selects the page around it.
   Fields, the line about you while editing and the brand code stay selectable. */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable="true"], [contenteditable="plaintext-only"], .bd-code, .bd-code * { -webkit-user-select: text; user-select: text; }

/* colour picker swatches: circles with the same 3px ring as the brand colours */
:root .cp-sw { gap: 10px; padding: 3px; }
:root .cp-sw button { width: 24px; height: 24px; border-radius: 50%; padding: 1.5px; box-sizing: border-box; background: linear-gradient(var(--c), var(--c)) border-box, repeating-conic-gradient(#ccc 0 25%, #fff 0 50%) content-box 0 0 / 8px 8px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 9%, var(--bg)); clip-path: none; transition: box-shadow .2s; }
:root .cp-sw button:hover { transform: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 22%, var(--bg)); }

/* shade options */
.dg-cols { display: flex; flex-wrap: wrap; gap: 12px; padding: 3px; }
.dg-col { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.dg-col i { display: block; width: 100%; height: 100%; border-radius: 50%; padding: 1.5px; box-sizing: border-box; background: linear-gradient(var(--c), var(--c)) border-box, repeating-conic-gradient(#ccc 0 25%, #fff 0 50%) content-box 0 0 / 8px 8px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 9%, var(--bg)); transition: box-shadow .2s; }
.dg-col[aria-pressed="true"] i { box-shadow: 0 0 0 3px var(--ink); }
.dg-col.own i { background: conic-gradient(from 0deg, #ff3b30, #ffcc00, #34c759, #00c7be, #007aff, #af52de, #ff3b30); }
.dg-col.own[aria-pressed="true"] i { background: linear-gradient(var(--c), var(--c)) border-box, conic-gradient(from 0deg, #ff3b30, #ffcc00, #34c759, #007aff, #af52de, #ff3b30); }
.dg-ranges .range { grid-template-columns: 84px 1fr 30px; }
.dg-ranges .range em { font-style: normal; font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.dg-hint { margin: -4px 0 0; font-size: 12px; }
[data-shade] { display: grid; gap: 14px; }
