Download web/style.css from Algorick/pixrick: direct link, hf CLI and curl.
- Browser
- Download file 87.9 kB
-
https://huggingface.co/spaces/Algorick/pixrick/resolve/main/web/style.css
- Command line
-
hf download hf://spaces/Algorick/pixrick/web/style.css
-
curl -L -o style.css https://huggingface.co/spaces/Algorick/pixrick/resolve/main/web/style.css
87.9 kB
/* PixRick — studio scuro, l'immagine al centro, il colore solo dove conta */
:root {
--bg: #141519;
--bg-raised: #191a1f;
--surface: #1f2026;
--surface-2: #272930;
--line: rgba(255, 255, 255, 0.07);
--line-strong: rgba(255, 255, 255, 0.13);
--text: #ececef;
--muted: #9c9ea9;
--faint: #6c6f7a;
--accent: #cbbcff;
--accent-soft: rgba(203, 188, 255, 0.12);
--danger: #ff8f8f;
--ok: #7fd8a6;
--pearl: linear-gradient(115deg, #c9b8ff 0%, #ffc9a8 55%, #9fe3da 100%);
--sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
--serif: ui-serif, "New York", "Iowan Old Style", "Palatino", Georgia, serif;
--r-lg: 18px;
--r-md: 12px;
--r-sm: 8px;
--topbar: 56px;
--inspector: 320px;
--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
font-family: var(--sans);
font-size: 14px;
line-height: 1.45;
color: var(--text);
background: var(--bg);
-webkit-font-smoothing: antialiased;
overflow: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sprite { display: none; }
kbd {
font-family: var(--sans);
font-size: 11px;
padding: 1px 6px;
border-radius: 5px;
background: rgba(0, 0, 0, 0.18);
}
/* ---------- barra in alto ---------- */
.topbar {
height: var(--topbar);
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
padding: 0 18px;
border-bottom: 1px solid var(--line);
background: var(--bg-raised);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 26px; height: 26px; }
.brand-name { font-family: var(--serif); font-size: 19px; letter-spacing: 0.005em; }
.views {
display: flex;
padding: 3px;
border-radius: 10px;
background: var(--surface);
border: 1px solid var(--line);
}
.views button {
border: 0;
background: transparent;
padding: 6px 16px;
border-radius: 7px;
color: var(--muted);
font-weight: 500;
transition: background 0.15s, color 0.15s;
}
.views button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.views .count { color: var(--faint); font-variant-numeric: tabular-nums; margin-left: 2px; }
.top-status { display: flex; align-items: center; gap: 14px; justify-content: flex-end; color: var(--muted); font-size: 13px; }
.top-status { position: relative; }
.lang-btn {
height: 32px;
min-width: 36px;
padding: 0 8px;
border: 1px solid var(--line);
border-radius: 9px;
background: transparent;
color: var(--muted);
font-size: 12px;
font-weight: 600;
letter-spacing: 0.04em;
}
.lang-btn:hover { color: var(--text); border-color: var(--line-strong); }
.account {
display: inline-flex;
align-items: center;
gap: 8px;
height: 32px;
max-width: 180px;
padding: 0 12px 0 10px;
border: 1px solid var(--line-strong);
border-radius: 999px;
background: var(--surface);
color: var(--text);
font-size: 13px;
}
.account span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.account[data-state="dentro"] .account-dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(127, 216, 166, 0.15); }
.account-menu {
position: absolute;
top: calc(100% + 8px);
right: 0;
z-index: 30;
display: grid;
gap: 6px;
width: 270px;
padding: 14px;
border: 1px solid var(--line-strong);
border-radius: 14px;
background: var(--bg-raised);
box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.9);
animation: rise 0.16s var(--ease);
}
.account-head { margin: 0; color: var(--text); font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }
.account-note { margin: 0 0 6px; color: var(--muted); font-size: 12.5px; }
.account-who { display: flex; align-items: center; gap: 10px; }
.account-pic { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface); }
.account-action {
display: block;
margin-top: 4px;
padding: 8px 10px;
border: 1px solid var(--line-strong);
border-radius: 10px;
background: var(--surface);
color: var(--text);
font-size: 13px;
text-align: center;
text-decoration: none;
}
.account-action:hover { border-color: var(--accent); }
.account-fine { margin: 0; color: var(--faint); font-size: 11.5px; line-height: 1.45; }
.account-menu hr { width: 100%; margin: 6px 0 2px; border: 0; border-top: 1px solid var(--line); }
.menu-link {
display: block;
padding: 7px 8px;
border: 0;
border-radius: 8px;
background: transparent;
color: var(--muted);
font-size: 13px;
text-align: left;
text-decoration: none;
}
.menu-link:hover { background: var(--surface); color: var(--text); }
@keyframes pulse { 50% { opacity: 0.35; } }
.icon-btn {
display: grid;
place-items: center;
width: 32px;
height: 32px;
border: 1px solid var(--line);
border-radius: var(--r-sm);
background: transparent;
color: var(--muted);
transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.icon-btn:hover { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.ghost {
border: 1px solid var(--line-strong);
background: transparent;
border-radius: var(--r-sm);
padding: 8px 16px;
color: var(--text);
}
.ghost:hover { background: var(--surface); }
/* ---------- studio ---------- */
.studio {
display: grid;
grid-template-columns: minmax(0, 1fr) var(--inspector);
height: calc(100vh - var(--topbar));
}
.workspace {
display: flex;
flex-direction: column;
gap: 12px;
min-width: 0;
min-height: 0;
padding: 18px 22px 14px;
}
.stage {
position: relative;
flex: 1;
min-height: 0;
display: grid;
grid-template: minmax(0, 1fr) / minmax(0, 1fr);
place-items: center;
border-radius: var(--r-lg);
background:
radial-gradient(60% 70% at 50% 45%, rgba(203, 188, 255, 0.05), transparent 70%),
var(--bg-raised);
border: 1px solid var(--line);
overflow: hidden;
transition: border-color 0.2s;
container-type: size;
}
.stage > * { grid-area: 1 / 1; }
.empty { max-width: 560px; text-align: center; padding: 24px; }
.empty h1 {
margin: 0 0 10px;
font-family: var(--serif);
font-weight: 400;
font-size: clamp(26px, 2.6vw, 36px);
line-height: 1.15;
text-wrap: balance;
letter-spacing: -0.01em;
}
.empty p { margin: 0; color: var(--muted); font-size: 15px; }
.empty { display: none; }
.stage[data-state="vuoto"] .empty { display: grid; justify-items: center; }
.empty-upload {
display: inline-flex;
align-items: center;
gap: 8px;
margin-top: 20px;
height: 44px;
padding: 0 18px;
border: 1px solid var(--line-strong);
border-radius: 12px;
background: var(--surface);
color: var(--text);
font-weight: 500;
cursor: pointer;
transition: border-color 0.15s, background 0.15s;
}
.empty-upload:hover { border-color: var(--accent); background: var(--surface-2); }
.empty-upload:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.empty-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.empty-upload svg { width: 18px; height: 18px; color: var(--accent); }
.empty small { margin-top: 8px; color: var(--faint); font-size: 12.5px; }
.start-sheet .action-list { margin-bottom: 4px; }
.start-sheet .panel-note { margin: 8px 0 0; }
.shot { margin: 0; width: 100%; height: 100%; min-height: 0; padding: 18px; display: none; place-items: center; grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.shot img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
border-radius: 10px;
box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.shot img.fresh { animation: reveal 1.5s var(--ease) both; }
@keyframes reveal {
0% { filter: blur(22px) saturate(0) brightness(1.25); opacity: 0.35; }
55% { filter: blur(4px) saturate(0.7) brightness(1.06); opacity: 1; }
100% { filter: none; }
}
/* sviluppo: la cornice dell'immagine che sta nascendo */
.develop { display: none; place-items: center; align-content: center; gap: 18px; width: 100%; height: 100%; padding: 22px; position: relative; z-index: 2; }
.develop-frame {
--ar: 1;
position: relative;
width: min(86cqw, 68cqh * var(--ar));
aspect-ratio: var(--ar);
border-radius: 12px;
overflow: hidden;
background: #16171c;
box-shadow: 0 30px 70px -36px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.develop-glow {
position: absolute;
inset: -30%;
background:
radial-gradient(38% 34% at 30% 35%, rgba(201, 184, 255, 0.34), transparent 70%),
radial-gradient(34% 30% at 70% 62%, rgba(255, 201, 168, 0.26), transparent 70%),
radial-gradient(30% 28% at 52% 80%, rgba(159, 227, 218, 0.2), transparent 70%);
filter: blur(26px);
animation: drift 7s ease-in-out infinite alternate;
}
.develop-frame[data-phase="in_coda"] .develop-glow, .develop-frame[data-phase="caricamento"] .develop-glow { opacity: 0.45; }
.develop-grain {
position: absolute;
inset: 0;
opacity: 0.09;
mix-blend-mode: overlay;
background-size: 160px 160px;
animation: grain 0.9s steps(5) infinite;
}
.develop-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.06); }
.develop-bar i { display: block; height: 100%; background: var(--pearl); transform-origin: left; transform: scaleX(0); transition: transform 0.6s var(--ease); }
.develop-caption { text-align: center; }
.develop-title { margin: 0; font-family: var(--serif); font-size: 20px; }
.develop-sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
@keyframes drift {
0% { transform: translate(-4%, -3%) rotate(0deg) scale(1); }
100% { transform: translate(5%, 4%) rotate(14deg) scale(1.12); }
}
@keyframes grain {
0% { background-position: 0 0; }
20% { background-position: -40px 30px; }
40% { background-position: 50px -20px; }
60% { background-position: -20px -50px; }
80% { background-position: 30px 60px; }
}
.compare {
display: none;
width: 100%;
height: 100%;
min-height: 0;
padding: 18px;
gap: 16px;
grid-auto-flow: column;
grid-auto-columns: minmax(0, 1fr);
}
.stage[data-state="confronto"] .compare { display: grid; }
.compare[data-rows="2"] { grid-auto-flow: row; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px 14px; padding: 14px; }
.compare[data-rows="2"] .card-foot { gap: 6px; }
.compare[data-rows="2"] .card-media { width: 100%; height: 100%; overflow: hidden; }
.compare[data-rows="2"] .card-media img { width: 100%; height: 100%; object-fit: contain; box-shadow: none; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.55)); }
.compare[data-rows="2"] .card-name small { display: none; }
.compare[data-rows="2"] .save-btn { height: 28px; padding: 0 10px 0 8px; font-size: 12px; }
.card {
display: grid;
grid-template-rows: minmax(0, 1fr) auto;
gap: 10px;
min-height: 0;
}
.card-media {
min-height: 0;
display: grid;
place-items: center;
border: 0;
padding: 0;
background: transparent;
cursor: zoom-in;
}
.card-media img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
border-radius: 10px;
box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.card-media img.fresh { animation: reveal 1.5s var(--ease) both; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 2px; }
.card-name { font-weight: 500; font-size: 13.5px; }
.card-name small { display: block; color: var(--faint); font-weight: 400; font-size: 12px; font-variant-numeric: tabular-nums; }
.save-btn {
display: inline-flex;
align-items: center;
gap: 7px;
height: 32px;
padding: 0 14px 0 11px;
border: 0;
border-radius: var(--r-sm);
background: var(--pearl);
color: #17141f;
font-weight: 600;
font-size: 13px;
white-space: nowrap;
transition: transform 0.08s, opacity 0.15s;
}
.save-btn svg { width: 16px; height: 16px; stroke-width: 2.2; }
.save-btn:active { transform: scale(0.97); }
.save-btn[data-saved="true"] { background: transparent; color: var(--ok); box-shadow: inset 0 0 0 1px rgba(127, 216, 166, 0.35); pointer-events: none; }
.shot-actions.compare-actions { display: none; }
#shot-bar[data-working] .shot-actions, #shot-bar[data-working] .back { visibility: hidden; }
#shot-bar[data-working] .shot-meta { color: var(--faint); }
.compare-hint { color: var(--faint); font-size: 12.5px; margin-right: 6px; }
body[data-stage="confronto"] .shot-actions.compare-actions { display: flex; }
body[data-stage="confronto"] .shot-actions.single-actions { display: none; }
.back { color: var(--text); }
.stage[data-state="vuoto"] .empty { display: grid; justify-items: center; }
.stage:not([data-state="vuoto"]) .empty { display: none; }
.stage[data-state="foto"] .shot { display: grid; }
.stage[data-state="lavoro"] .develop { display: grid; }
.stage[data-state="base"] .base { display: grid; }
.drop-hint {
display: none;
flex-direction: column;
align-items: center;
gap: 10px;
color: var(--accent);
font-size: 15px;
z-index: 3;
}
.drop-hint svg { width: 34px; height: 34px; }
.stage.dragging { border-color: var(--accent); background: var(--accent-soft); }
.stage.dragging > :not(.drop-hint) { opacity: 0.15; }
.stage.dragging .drop-hint { display: flex; }
/* barra dello scatto */
.shot-bar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px 16px;
min-height: 40px;
}
.shot-caption { min-width: 220px; flex: 1 1 260px; }
.shot-bar .shot-meta { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
.shot-bar .shot-meta span { flex: none; }
.shot-bar .shot-meta span:last-child { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
.shot-prompt { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-meta, .tile-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 2px 0 0; color: var(--faint); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.shot-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px; flex: 0 1 auto; margin-left: auto; }
.act {
display: inline-flex;
align-items: center;
gap: 6px;
height: 32px;
padding: 0 11px;
border: 0;
border-radius: var(--r-sm);
background: transparent;
color: var(--muted);
font-size: 13px;
text-decoration: none;
transition: background 0.15s, color 0.15s;
}
.act svg { width: 16px; height: 16px; }
.act:hover { background: var(--surface); color: var(--text); }
.act.icon-only { width: 32px; padding: 0; justify-content: center; }
.act.danger:hover { color: var(--danger); }
.act[disabled] { opacity: 0.35; pointer-events: none; }
.act.views-btn { color: var(--accent); box-shadow: inset 0 0 0 1px rgba(203, 188, 255, 0.35); }
.act.views-btn:hover { background: var(--accent-soft); color: var(--accent); }
.act-sep { width: 1px; height: 18px; background: var(--line-strong); margin: 0 4px; }
/* composer */
.composer {
border: 1px solid var(--line-strong);
border-radius: var(--r-lg);
background: var(--surface);
padding: 10px 12px 10px;
box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.7);
transition: border-color 0.15s;
}
.composer:focus-within { border-color: rgba(203, 188, 255, 0.35); }
.composer-top { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; min-width: 0; }
.modes { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--bg-raised); border: 1px solid var(--line); flex: none; }
.modes button {
display: inline-flex;
align-items: center;
gap: 7px;
border: 0;
background: transparent;
padding: 5px 12px 5px 10px;
border-radius: 7px;
color: var(--muted);
font-weight: 500;
font-size: 13px;
transition: background 0.15s, color 0.15s;
}
.modes button svg { width: 15px; height: 15px; }
.modes button:hover { color: var(--text); }
.modes button[aria-selected="true"] { background: var(--surface-2); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.modes button[aria-selected="true"] svg { color: var(--accent); }
.mode-hint { margin: 0; color: var(--faint); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.composer-body { display: flex; align-items: flex-start; gap: 10px; }
.refs { display: none; gap: 6px; align-items: center; padding-top: 4px; flex: none; max-width: 45%; overflow-x: auto; }
body:not([data-mode="crea"]) .refs { display: flex; }
.ref-list { display: flex; gap: 6px; }
.ref {
position: relative;
width: 52px;
height: 52px;
border-radius: 10px;
overflow: hidden;
flex: none;
box-shadow: 0 0 0 1px var(--line-strong);
}
.ref img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ref button {
position: absolute;
top: 3px;
right: 3px;
width: 20px;
height: 20px;
display: grid;
place-items: center;
border: 0;
border-radius: 50%;
background: rgba(10, 10, 12, 0.75);
color: #fff;
opacity: 0;
transition: opacity 0.15s;
}
.ref button svg { width: 12px; height: 12px; }
.ref:hover button, .ref button:focus-visible { opacity: 1; }
.ref-index {
position: absolute;
left: 4px;
bottom: 3px;
font-size: 10.5px;
font-weight: 600;
padding: 0 5px;
border-radius: 4px;
background: rgba(10, 10, 12, 0.7);
}
.ref-add {
position: relative;
display: grid;
place-items: center;
align-content: center;
gap: 2px;
width: 52px;
height: 52px;
border: 1px dashed var(--line-strong);
border-radius: 10px;
color: var(--muted);
font-size: 11px;
cursor: pointer;
flex: none;
transition: border-color 0.15s, color 0.15s;
}
.ref-add svg { width: 16px; height: 16px; }
.ref-add:hover { border-color: var(--accent); color: var(--text); }
.ref-add input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ref-add:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.refs.full .ref-add { display: none; }
.prompt-area { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.prompt-col { min-width: 0; }
.it-col { display: none; }
.col-head { display: none; }
.prompt-area.bilingual { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.prompt-area.bilingual .it-col { display: block; }
.prompt-area.bilingual .col-head { display: flex; align-items: center; gap: 10px; min-height: 24px; padding: 0 4px; font-size: 11.5px; color: var(--faint); }
.prompt-area.bilingual .col-head span { flex: 1; }
.prompt-area.bilingual .col-head .link { font-size: 12px; }
#prompt-area.bilingual textarea { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--bg-raised); font-size: 13.5px; }
#prompt-area.bilingual textarea:focus { border-color: rgba(203, 188, 255, 0.4); }
#prompt-area.bilingual .en-col textarea { color: var(--muted); }
.icon-btn.tiny { width: 24px; height: 24px; border: 0; }
.icon-btn.tiny svg { width: 14px; height: 14px; }
#prompt-it {
display: block;
width: 100%;
min-height: 48px;
resize: none;
line-height: 1.5;
outline: none;
}
#prompt {
display: block;
flex: 1;
min-width: 0;
width: 100%;
min-height: 48px;
max-height: 180px;
padding: 8px 4px;
border: 0;
background: transparent;
resize: none;
font-size: 15px;
line-height: 1.5;
}
#prompt:focus { outline: none; }
#prompt::placeholder { color: var(--faint); }
.composer-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.pill {
display: inline-flex;
align-items: center;
gap: 6px;
max-width: 260px;
height: 28px;
padding: 0 10px;
border: 1px solid var(--line);
border-radius: 999px;
background: transparent;
font-size: 12.5px;
white-space: nowrap;
line-height: 1;
transition: border-color 0.15s, background 0.15s;
}
.pill:hover { border-color: var(--line-strong); background: var(--surface-2); }
.pill-k { color: var(--faint); }
.pill-v { color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.pill.on { border-color: rgba(203, 188, 255, 0.4); background: var(--accent-soft); }
.error { color: var(--danger); font-size: 12.5px; }
.error:empty { display: none; }
.error:not(:empty) ~ .enhance { margin-left: 0; }
.generate {
display: inline-flex;
align-items: center;
gap: 10px;
height: 38px;
padding: 0 14px 0 18px;
border: 0;
border-radius: 10px;
background: var(--pearl);
color: #17141f;
font-weight: 600;
font-size: 14px;
background-size: 160% 100%;
background-position: 0% 0;
transition: background-position 0.5s var(--ease), transform 0.08s, opacity 0.15s;
margin-left: auto;
}
.generate:hover { background-position: 100% 0; }
.generate:active { transform: scale(0.98); }
.generate[disabled] { opacity: 0.6; cursor: progress; }
.enhance {
display: inline-flex;
align-items: center;
gap: 6px;
height: 38px;
padding: 0 12px;
border: 1px solid var(--line-strong);
border-radius: 10px;
background: transparent;
color: var(--muted);
font-size: 13px;
margin-left: auto;
transition: color 0.15s, border-color 0.15s;
}
.enhance svg { width: 16px; height: 16px; }
.enhance:hover { color: var(--text); border-color: rgba(203, 188, 255, 0.4); }
.enhance[aria-busy="true"] { color: var(--accent); pointer-events: none; }
.enhance[aria-busy="true"] svg { animation: pulse 0.9s ease-in-out infinite; }
.enhance + .generate { margin-left: 0; }
.checker {
background-color: #2a2b31;
background-image:
linear-gradient(45deg, #34353c 25%, transparent 25%),
linear-gradient(-45deg, #34353c 25%, transparent 25%),
linear-gradient(45deg, transparent 75%, #34353c 75%),
linear-gradient(-45deg, transparent 75%, #34353c 75%);
background-size: 18px 18px;
background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}
.switch-row { display: flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; margin-top: 4px; }
.switch-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { position: relative; width: 32px; height: 18px; flex: none; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background 0.15s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform 0.15s var(--ease), background 0.15s; }
.switch-row input:checked + .switch { background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(203, 188, 255, 0.5); }
.switch-row input:checked + .switch::after { transform: translateX(14px); background: var(--accent); }
.switch-row input:focus-visible + .switch { outline: 2px solid var(--accent); outline-offset: 2px; }
/* ---------- inspector ---------- */
.inspector {
border-left: 1px solid var(--line);
background: var(--bg-raised);
overflow-y: auto;
padding: 6px 18px 30px;
scrollbar-width: thin;
scrollbar-color: var(--surface-2) transparent;
}
.panel { padding: 16px 0; border-bottom: 1px solid var(--line); }
.panel:last-child { border-bottom: 0; }
.panel-aside { font-weight: 400; color: var(--faint); margin-left: 6px; }
.panel h2, .panel summary {
margin: 0 0 10px;
font-size: 12.5px;
font-weight: 600;
color: var(--muted);
letter-spacing: 0.01em;
}
.panel-note { margin: 8px 0 0; color: var(--faint); font-size: 12px; }
#pp-template-desc { min-height: 2.9em; }
.row-head { display: flex; justify-content: space-between; align-items: baseline; }
.row-head output { color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 600; }
.models { display: grid; gap: 6px; }
.model {
display: grid;
grid-template-columns: 16px 1fr;
gap: 2px 10px;
text-align: left;
padding: 10px 12px;
border: 1px solid var(--line);
border-radius: var(--r-md);
background: transparent;
transition: border-color 0.15s, background 0.15s;
}
.model:hover { border-color: var(--line-strong); }
.model::before {
content: "";
grid-row: span 2;
width: 14px;
height: 14px;
margin-top: 2px;
border-radius: 50%;
border: 1.5px solid var(--faint);
}
.model[aria-checked="true"] { border-color: rgba(203, 188, 255, 0.45); background: var(--accent-soft); }
.model[aria-checked="true"]::before { border: 4px solid var(--accent); }
.model-name { font-weight: 500; font-size: 13.5px; }
.model-name small { color: var(--faint); font-weight: 400; margin-left: 4px; }
.model-desc { color: var(--muted); font-size: 12px; line-height: 1.4; }
.model[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }
.count-note { display: none; }
body[data-model="entrambi"] .count-note { display: block; }
.tpl-groups { display: grid; gap: 12px; }
.tpl-group-name { margin: 0 0 6px; font-size: 11.5px; color: var(--faint); }
.tpl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
--c: #888;
display: inline-flex;
align-items: center;
gap: 7px;
padding: 5px 11px 5px 9px;
border: 1px solid var(--line);
border-radius: 999px;
background: transparent;
font-size: 12.5px;
color: var(--text);
transition: border-color 0.15s, background 0.15s;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.chip:hover { border-color: var(--line-strong); }
.chip[aria-checked="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.chip[data-order]::after {
content: attr(data-order);
display: grid;
place-items: center;
width: 16px;
height: 16px;
margin-right: -4px;
border-radius: 50%;
background: var(--c);
color: #141519;
font-size: 10px;
font-weight: 700;
}
.tpl-detail { margin-top: 12px; }
.tpl-detail p { margin: 0; color: var(--muted); font-size: 12.5px; }
.tpl-fields { display: grid; gap: 8px; margin-top: 10px; }
.tpl-fields:empty { display: none; }
.tpl-fields label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
input[type="text"], input[type="number"], .pp-fields textarea {
width: 100%;
height: 34px;
padding: 0 10px;
border: 1px solid var(--line-strong);
border-radius: var(--r-sm);
background: var(--surface);
transition: border-color 0.15s;
}
input[type="text"]:focus, input[type="number"]:focus, .pp-fields textarea:focus { outline: none; border-color: var(--accent); }
input::placeholder { color: var(--faint); }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.scale { display: flex; justify-content: space-between; color: var(--faint); font-size: 11.5px; margin-top: 2px; }
.aspects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.aspect {
display: grid;
justify-items: center;
align-content: end;
gap: 6px;
height: 64px;
padding: 8px 4px 6px;
border: 1px solid var(--line);
border-radius: var(--r-sm);
background: transparent;
color: var(--muted);
font-size: 11.5px;
font-variant-numeric: tabular-nums;
transition: border-color 0.15s, color 0.15s;
}
.aspect-box { display: block; border: 1.5px solid currentColor; border-radius: 3px; }
.aspect:hover { border-color: var(--line-strong); color: var(--text); }
.aspect[aria-checked="true"] { border-color: rgba(203, 188, 255, 0.45); color: var(--accent); background: var(--accent-soft); }
.aspect-original .aspect-box { border-style: dashed; }
.segmented {
display: grid;
grid-auto-flow: column;
grid-auto-columns: 1fr;
padding: 3px;
border-radius: 10px;
background: var(--surface);
border: 1px solid var(--line);
}
.segmented button {
border: 0;
background: transparent;
border-radius: 7px;
padding: 6px 0;
color: var(--muted);
font-size: 12.5px;
font-variant-numeric: tabular-nums;
}
.segmented button[aria-checked="true"] { background: var(--surface-2); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.more summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; margin: 0; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font-size: 16px; line-height: 1; color: var(--faint); }
.more[open] summary::after { content: "–"; }
.more[open] summary { margin-bottom: 12px; }
.row-label { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin: 10px 0 6px; }
.row-label output { color: var(--faint); font-variant-numeric: tabular-nums; }
.seed-row { display: grid; grid-template-columns: 1fr 34px; gap: 6px; }
.seed-row .icon-btn { width: 34px; height: 34px; }
body[data-mode="modifica"] #panel-style,
body[data-mode="continua"] #panel-style,
body:not([data-mode="modifica"]) #panel-zone,
body[data-zoned="true"] #panel-aspect,
body:not([data-mode="ristila"]) #panel-fidelity,
body[data-model-resolved="klein"] #panel-fidelity { display: none; }
/* ---------- galleria ---------- */
.gallery { height: calc(100vh - var(--topbar)); overflow-y: auto; padding: 28px 32px 110px; }
.gallery-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.gallery-head h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 34px; letter-spacing: -0.01em; }
.filters { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.filters button {
border: 1px solid var(--line);
background: transparent;
border-radius: 999px;
padding: 6px 14px;
color: var(--muted);
font-size: 13px;
transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.filters button:hover { color: var(--text); }
.filters button[aria-checked="true"] { color: var(--text); border-color: var(--line-strong); background: var(--surface); }
.filters-sep { width: 1px; height: 18px; background: var(--line-strong); margin: 0 4px; }
.scope-note { display: flex; align-items: center; gap: 12px; margin: -8px 0 20px; color: var(--muted); font-size: 13px; }
.link { border: 0; background: none; padding: 0; color: var(--accent); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.link.danger { color: var(--danger); }
.masonry { columns: 4 260px; column-gap: 14px; }
.tile {
position: relative;
margin: 0 0 14px;
border-radius: var(--r-md);
overflow: hidden;
background: var(--surface);
break-inside: avoid;
cursor: zoom-in;
}
.tile img { display: block; width: 100%; height: auto; transition: transform 0.4s var(--ease), opacity 0.2s; }
.tile:hover img { transform: scale(1.02); }
.tile-info {
position: absolute;
inset: auto 0 0 0;
padding: 36px 12px 10px;
background: linear-gradient(to top, rgba(10, 10, 12, 0.88), transparent);
opacity: 0;
transform: translateY(6px);
transition: opacity 0.2s, transform 0.2s;
pointer-events: none;
}
.tile-title { margin: 0; font-size: 13px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-info .tile-meta { margin-top: 4px; font-size: 11.5px; color: var(--muted); gap: 2px 10px; }
.tile:hover .tile-info, .tile:focus-within .tile-info { opacity: 1; transform: none; }
.tile-check, .tile-star {
position: absolute;
top: 10px;
width: 28px;
height: 28px;
display: grid;
place-items: center;
border: 0;
border-radius: 8px;
background: rgba(14, 14, 18, 0.6);
backdrop-filter: blur(6px);
color: #fff;
opacity: 0;
transition: opacity 0.15s, background 0.15s;
}
.tile-check { left: 10px; }
.tile-star { right: 10px; }
.tile-check svg, .tile-star svg { width: 16px; height: 16px; }
.tile-check svg { opacity: 0; }
.tile:hover .tile-check, .tile:hover .tile-star, .tile-check:focus-visible, .tile-star:focus-visible { opacity: 1; }
.tile[data-fav="true"] .tile-star { opacity: 1; color: #ffd27a; }
.tile[data-fav="true"] .tile-star svg { fill: currentColor; }
.tile[aria-selected="true"] { box-shadow: 0 0 0 2px var(--accent); }
.tile[aria-selected="true"] img { opacity: 0.75; }
.tile[aria-selected="true"] .tile-check { opacity: 1; background: var(--accent); color: #17141f; }
.tile[aria-selected="true"] .tile-check svg { opacity: 1; }
.masonry[data-selecting="true"] .tile-check { opacity: 1; }
.masonry[data-selecting="true"] .tile { cursor: pointer; }
.gallery-empty { color: var(--muted); }
#more-btn { display: block; margin: 10px auto 0; }
.selection-bar {
position: fixed;
left: 50%;
bottom: 24px;
transform: translateX(-50%);
display: flex;
align-items: center;
gap: 16px;
padding: 8px 8px 8px 18px;
border: 1px solid var(--line-strong);
border-radius: 14px;
background: var(--surface-2);
box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
z-index: 10;
font-variant-numeric: tabular-nums;
}
.selection-actions { display: flex; gap: 2px; }
body[data-scope="galleria"] .selection-bar [data-scope]:not([data-scope="galleria"]),
body[data-scope="bozze"] .selection-bar [data-scope]:not([data-scope="bozze"]),
body[data-scope="cestino"] .selection-bar [data-scope]:not([data-scope="cestino"]) { display: none; }
/* ---------- scheda dettaglio ---------- */
.detail {
width: min(1240px, 94vw);
height: min(820px, 90vh);
padding: 0;
border: 1px solid var(--line-strong);
border-radius: 20px;
background: var(--bg-raised);
color: var(--text);
overflow: hidden;
box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
}
.detail[open] { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: minmax(0, 1fr); animation: rise 0.25s var(--ease); }
.detail::backdrop { background: rgba(6, 6, 8, 0.7); backdrop-filter: blur(6px); }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(0.99); } }
.detail-media { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; height: 100%; padding: 20px; background: #101114; overflow: hidden; }
.detail-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; cursor: zoom-in; }
.detail-media.zoomed { align-items: flex-start; overflow: auto; }
.detail-media.zoomed img { flex: none; }
.detail-media.zoomed img { max-width: none; max-height: none; cursor: zoom-out; }
.nav {
position: absolute;
top: 50%;
width: 40px;
height: 40px;
margin-top: -20px;
display: grid;
place-items: center;
border: 0;
border-radius: 50%;
background: rgba(30, 31, 37, 0.8);
color: var(--text);
opacity: 0;
transition: opacity 0.15s;
}
.nav.prev { left: 14px; }
.nav.next { right: 14px; }
.detail-media:hover .nav, .nav:focus-visible { opacity: 1; }
.nav[disabled] { display: none; }
.detail-side { display: flex; flex-direction: column; gap: 16px; min-height: 0; overflow-y: auto; padding: 18px 20px 20px; border-left: 1px solid var(--line); }
.detail-top { display: flex; gap: 8px; align-items: center; }
#detail-title {
flex: 1;
height: 40px;
padding: 0 10px;
margin-left: -10px;
border: 1px solid transparent;
border-radius: var(--r-sm);
background: transparent;
font-family: var(--serif);
font-size: 22px;
}
#detail-title:hover { border-color: var(--line); }
#detail-title:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.detail-prompt { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; max-height: 30vh; overflow-y: auto; }
.detail-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 12.5px; }
.detail-meta dt { color: var(--faint); }
.detail-meta dd { margin: 0; font-variant-numeric: tabular-nums; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.detail-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
height: 38px;
padding: 0 12px;
border: 1px solid var(--line-strong);
border-radius: 10px;
background: transparent;
color: var(--text);
font-size: 13px;
text-decoration: none;
transition: background 0.15s, border-color 0.15s;
}
.detail-btn svg { width: 16px; height: 16px; }
.detail-btn:hover { background: var(--surface); }
.detail-btn.primary { grid-column: 1 / -1; border: 0; background: var(--pearl); color: #17141f; font-weight: 600; }
.detail-btn[disabled] { opacity: 0.35; pointer-events: none; }
.detail-btn.danger:hover { color: var(--danger); border-color: rgba(255, 143, 143, 0.4); }
.detail-btn[aria-pressed="true"] { color: #ffd27a; border-color: rgba(255, 210, 122, 0.4); }
.detail-btn[aria-pressed="true"] svg { fill: currentColor; }
.detail[data-scope="cestino"] #detail-actions-gallery,
.detail:not([data-scope="cestino"]) #detail-actions-trash,
.detail[data-scope="bozze"] #detail-actions-gallery [data-scope="galleria"],
.detail[data-scope="galleria"] #detail-actions-gallery [data-scope="bozze"] { display: none; }
.detail[data-scope="cestino"] #detail-title { pointer-events: none; }
/* ---------- conferma ---------- */
.confirm {
width: min(420px, 92vw);
padding: 22px 22px 18px;
border: 1px solid var(--line-strong);
border-radius: 18px;
background: var(--bg-raised);
color: var(--text);
box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
}
.confirm[open] { animation: rise 0.2s var(--ease); }
.confirm::backdrop { background: rgba(6, 6, 8, 0.6); backdrop-filter: blur(4px); }
.confirm h2 { margin: 0 0 6px; font-family: var(--serif); font-weight: 400; font-size: 22px; }
.confirm p { margin: 0 0 20px; color: var(--muted); font-size: 13.5px; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; }
.confirm-actions .detail-btn { min-width: 110px; }
#confirm-yes.danger { border: 0; background: #e25c5c; color: #fff; font-weight: 600; }
#confirm-yes.danger:hover { background: #ec6b6b; }
/* ---------- toast ---------- */
.toast {
position: fixed;
left: 50%;
top: calc(var(--topbar) + 14px);
transform: translate(-50%, -12px);
display: flex;
align-items: center;
gap: 14px;
padding: 10px 12px 10px 16px;
border-radius: 12px;
background: var(--surface-2);
border: 1px solid var(--line-strong);
box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.8);
font-size: 13.5px;
opacity: 0;
pointer-events: none;
transition: opacity 0.2s, transform 0.2s var(--ease);
z-index: 30;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#toast-action { border: 0; background: var(--accent-soft); color: var(--accent); border-radius: 7px; padding: 4px 10px; font-weight: 500; }
/* ---------- font della locandina (inclusi nella cartella, niente rete) ---------- */
@font-face { font-family: "PR Oswald"; font-weight: 500; src: url("/web/fonts/oswald-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "PR Oswald"; font-weight: 700; src: url("/web/fonts/oswald-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "PR Anton"; font-weight: 400; src: url("/web/fonts/anton-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "PR Bebas"; font-weight: 400; src: url("/web/fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "PR Archivo"; font-weight: 400; src: url("/web/fonts/archivo-black-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "PR Inter"; font-weight: 400; src: url("/web/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "PR Inter"; font-weight: 600; src: url("/web/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "PR Inter"; font-weight: 800; src: url("/web/fonts/inter-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "PR Playfair"; font-weight: 700; src: url("/web/fonts/playfair-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "PR Playfair"; font-weight: 900; src: url("/web/fonts/playfair-display-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "PR Marker"; font-weight: 400; src: url("/web/fonts/permanent-marker-latin-400-normal.woff2") format("woff2"); }
/* ---------- immagine di partenza e pennello ---------- */
.base { display: none; width: 100%; height: 100%; padding: 22px 22px 52px; place-items: center; align-content: center; position: relative; }
.paint { position: relative; display: block; line-height: 0; }
.paint img {
display: block;
max-width: calc(100cqw - 44px);
max-height: calc(100cqh - 110px);
border-radius: 10px;
box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04);
}
#mask-canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 10px; opacity: 0.55; pointer-events: none; }
.base-label {
position: absolute;
left: 50%;
bottom: 18px;
transform: translateX(-50%);
padding: 4px 12px;
border-radius: 999px;
background: rgba(14, 14, 18, 0.7);
color: var(--muted);
font-size: 12.5px;
white-space: nowrap;
}
.stage[data-brush="on"] #mask-canvas { pointer-events: auto; cursor: none; touch-action: none; }
.stage[data-brush="on"] .base-label { display: none; }
.brush-bar {
display: none;
position: absolute;
left: 50%;
bottom: 16px;
transform: translateX(-50%);
z-index: 4;
align-items: center;
gap: 10px;
padding: 6px 6px 6px 8px;
border: 1px solid var(--line-strong);
border-radius: 14px;
background: rgba(31, 32, 38, 0.92);
backdrop-filter: blur(10px);
box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9);
grid-area: auto;
}
.stage[data-brush="on"][data-state="base"] .brush-bar { display: flex; }
.brush-bar .seg { display: flex; padding: 2px; border-radius: 9px; background: var(--bg-raised); }
.brush-bar .seg button { display: grid; place-items: center; width: 32px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); }
.brush-bar .seg button[aria-checked="true"] { background: var(--surface-2); color: var(--accent); }
.brush-size { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.brush-size input { width: 110px; }
.brush-cursor {
position: absolute;
top: 0;
left: 0;
z-index: 5;
border-radius: 50%;
border: 1.5px solid #fff;
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6);
pointer-events: none;
display: none;
grid-area: auto;
}
.brush-cursor.show { display: block; }
.brush-cursor.erase { border-style: dashed; }
/* ---------- pannelli ---------- */
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.panel-head h2 { margin: 0; }
.panel-text { margin: 0 0 12px; color: var(--muted); font-size: 12.5px; }
.sub-h { margin-top: 16px !important; }
.panel.flash { animation: flash 1s var(--ease); }
@keyframes flash { 0% { background: var(--accent-soft); box-shadow: -18px 0 0 var(--accent-soft), 18px 0 0 var(--accent-soft); } 100% { background: transparent; } }
.mini-btn {
display: inline-flex;
align-items: center;
gap: 4px;
height: 26px;
padding: 0 9px 0 6px;
border: 1px solid var(--line);
border-radius: 8px;
background: transparent;
color: var(--muted);
font-size: 12px;
}
.mini-btn svg { width: 14px; height: 14px; }
.mini-btn:hover { color: var(--text); border-color: var(--line-strong); }
.wide-btn {
position: relative;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 100%;
height: 38px;
border: 1px solid var(--line-strong);
border-radius: 10px;
background: var(--surface);
color: var(--text);
font-size: 13px;
cursor: pointer;
transition: border-color 0.15s, background 0.15s;
}
.wide-btn:hover { border-color: rgba(203, 188, 255, 0.45); }
.wide-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.wide-btn svg { width: 16px; height: 16px; }
.file-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-btn:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.zone-row { display: grid; gap: 8px; justify-items: start; }
.zone-row .wide-btn { width: 100%; }
.tpl-group.user .tpl-chips { align-items: center; }
.chip-wrap { position: relative; display: inline-flex; }
.chip-wrap .chip { padding-right: 26px; }
.chip-edit {
position: absolute;
right: 4px;
top: 50%;
transform: translateY(-50%);
width: 20px;
height: 20px;
display: grid;
place-items: center;
border: 0;
border-radius: 50%;
background: transparent;
color: var(--faint);
}
.chip-edit svg { width: 12px; height: 12px; }
.chip-edit:hover { color: var(--text); background: var(--surface-2); }
.chip-add { border-style: dashed; color: var(--muted); gap: 4px; padding-left: 7px; }
.chip-add::before { display: none; }
.chip-add svg { width: 13px; height: 13px; }
.chip-add:hover { color: var(--text); }
.segmented.small button { font-size: 12px; padding: 5px 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.swatch {
width: 24px;
height: 24px;
border-radius: 50%;
border: 0;
background: var(--c);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--bg-raised), 0 0 0 4px var(--accent); }
.swatch-custom { width: 26px; height: 26px; padding: 0; border: 1px dashed var(--line-strong); border-radius: 50%; background: transparent; cursor: pointer; }
.swatch-custom::-webkit-color-swatch-wrapper { padding: 3px; }
.swatch-custom::-webkit-color-swatch { border: 0; border-radius: 50%; }
/* ---------- dialoghi ---------- */
.sheet {
width: min(480px, 92vw);
padding: 22px;
border: 1px solid var(--line-strong);
border-radius: 18px;
background: var(--bg-raised);
color: var(--text);
box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
}
.sheet[open] { animation: rise 0.2s var(--ease); }
.sheet::backdrop { background: rgba(6, 6, 8, 0.6); backdrop-filter: blur(4px); }
.sheet h2 { margin: 0 0 16px; font-family: var(--serif); font-weight: 400; font-size: 22px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; font-size: 12.5px; color: var(--muted); }
.field textarea {
width: 100%;
padding: 9px 10px;
border: 1px solid var(--line-strong);
border-radius: var(--r-sm);
background: var(--surface);
resize: vertical;
font-size: 13.5px;
line-height: 1.45;
}
.field textarea:focus { outline: none; border-color: var(--accent); }
.sheet .panel-note { margin: -6px 0 14px; }
.sheet-actions { display: flex; gap: 8px; margin-top: 8px; }
.sheet-actions .spacer { flex: 1; }
.sheet-actions .detail-btn { min-width: 96px; }
.sheet-actions .detail-btn.primary { grid-column: auto; padding: 0 16px; }
.sheet .error { display: block; margin: 0 0 8px; }
.picker { width: min(980px, 94vw); height: min(720px, 88vh); padding: 0; }
.picker[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.picker-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.picker-head h2 { margin: 0; flex: 1; }
.picker-head .segmented { width: 190px; }
.picker-head .detail-btn { position: relative; }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 18px; overflow-y: auto; align-content: start; }
.picker-item { padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--surface); aspect-ratio: 1; cursor: pointer; transition: box-shadow 0.15s, transform 0.15s; }
.picker-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.picker-item:hover { box-shadow: 0 0 0 2px var(--accent); transform: translateY(-1px); }
.picker-empty { color: var(--muted); grid-column: 1 / -1; }
/* ---------- locandina ---------- */
.poster { display: grid; grid-template-columns: minmax(0, 1fr) 340px; height: calc(100vh - var(--topbar)); }
.poster-stage {
position: relative;
display: grid;
place-items: center;
min-height: 0;
margin: 18px 22px;
border-radius: var(--r-lg);
background: var(--bg-raised);
border: 1px solid var(--line);
overflow: hidden;
container-type: size;
}
.poster-canvas-wrap { display: grid; place-items: center; width: 100%; height: 100%; padding: 24px; }
#poster-canvas {
display: block;
max-width: calc(100cqw - 48px);
max-height: calc(100cqh - 48px);
width: auto;
height: auto;
border-radius: 6px;
box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.poster-empty { max-width: 420px; text-align: center; display: grid; gap: 12px; justify-items: center; padding: 24px; }
.poster-empty h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 40px); }
.poster-empty p { margin: 0 0 8px; color: var(--muted); }
.poster-empty .detail-btn.primary { padding: 0 18px; }
.poster-panel { display: grid; grid-template-rows: minmax(0, 1fr) auto; border-left: 1px solid var(--line); background: var(--bg-raised); min-height: 0; }
.poster-scroll { overflow-y: auto; padding: 6px 18px 20px; scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent; }
.poster-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.poster-actions .detail-btn.primary { grid-column: auto; }
.pp-row { margin-bottom: 4px; }
.pp-logo-opts { display: grid; gap: 4px; margin-top: 12px; }
.pp-fields { display: grid; gap: 9px; margin-bottom: 12px; }
.pp-fields label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.pp-fields small { color: var(--faint); font-weight: 400; margin-left: 4px; }
.pp-two { display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px; }
.font-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.font-opt {
height: 40px;
border: 1px solid var(--line);
border-radius: var(--r-sm);
background: transparent;
font-size: 17px;
color: var(--text);
transition: border-color 0.15s, background 0.15s;
}
.font-opt:hover { border-color: var(--line-strong); }
.font-opt[aria-checked="true"] { border-color: rgba(203, 188, 255, 0.5); background: var(--accent-soft); }
.color-rows { display: grid; gap: 10px; }
.color-row { display: grid; grid-template-columns: 62px 1fr; align-items: center; font-size: 12.5px; color: var(--muted); }
.layouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.layout-opt {
display: grid;
justify-items: center;
gap: 6px;
padding: 10px 4px 8px;
border: 1px solid var(--line);
border-radius: var(--r-sm);
background: transparent;
color: var(--muted);
font-size: 11.5px;
}
.layout-opt[aria-checked="true"] { border-color: rgba(203, 188, 255, 0.5); background: var(--accent-soft); color: var(--accent); }
.views .count, .filters .count { color: var(--faint); font-variant-numeric: tabular-nums; margin-left: 2px; }
.filters .count:empty { display: none; }
/* menu sull'immagine */
.shot img { cursor: pointer; }
.shot-menu {
position: absolute;
z-index: 6;
grid-area: auto;
display: grid;
gap: 2px;
width: 290px;
padding: 6px;
border: 1px solid var(--line-strong);
border-radius: 14px;
background: rgba(31, 32, 38, 0.96);
backdrop-filter: blur(12px);
box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9);
animation: rise 0.15s var(--ease);
}
.shot-menu button {
display: grid;
grid-template-columns: 20px 1fr;
gap: 10px;
align-items: start;
padding: 9px 10px;
border: 0;
border-radius: 9px;
background: transparent;
text-align: left;
}
.shot-menu button svg { margin-top: 1px; color: var(--accent); }
.shot-menu button:hover, .shot-menu button:focus-visible { background: var(--surface-2); outline: none; }
.shot-menu button[disabled] { opacity: 0.35; pointer-events: none; }
.shot-menu b { display: block; font-weight: 500; font-size: 13.5px; }
.shot-menu small { display: block; color: var(--muted); font-size: 12px; }
.chip-more { color: var(--muted); border-style: dashed; }
.chip-more::before { display: none; }
.sd-model { margin: -4px 0 12px; }
/* continua dalla nuova versione */
.next-bar {
display: flex;
align-items: center;
gap: 12px;
margin: 2px 0 8px;
padding: 7px 8px 7px 7px;
border: 1px solid rgba(203, 188, 255, 0.35);
border-radius: 12px;
background: var(--accent-soft);
animation: rise 0.2s var(--ease);
}
.next-bar img { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; flex: none; }
.next-bar p { margin: 0; flex: 1; min-width: 0; font-size: 13px; color: var(--muted); }
.next-bar b { color: var(--text); font-weight: 500; }
.next-bar .link { font-size: 12.5px; color: var(--muted); }
/* sessione */
.stage-row { flex: 1; min-height: 0; display: flex; gap: 12px; }
.stage-row .stage { flex: 1; min-width: 0; }
.session { width: 76px; flex: none; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 6px; min-height: 0; }
.session-head { margin: 0; display: grid; gap: 2px; font-size: 11px; color: var(--faint); text-align: center; }
.session-head span { text-transform: none; letter-spacing: 0; }
.session-head .link { font-size: 11px; color: var(--faint); }
.session-list { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; padding: 3px; scrollbar-width: none; }
.session-list::-webkit-scrollbar { display: none; }
.session-item {
position: relative;
flex: none;
width: 66px;
height: 66px;
padding: 0;
border: 0;
border-radius: 10px;
overflow: hidden;
background: var(--surface);
opacity: 0.55;
box-shadow: 0 0 0 1px var(--line);
transition: opacity 0.15s, box-shadow 0.15s, transform 0.15s;
}
.session-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.session-item:hover { opacity: 0.9; }
.session-item.on { opacity: 1; box-shadow: 0 0 0 2px var(--accent); }
.session-item.saved::after { content: ""; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px rgba(10, 10, 12, 0.7); }
.session-tag { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 0; font-size: 9.5px; text-align: center; background: rgba(10, 10, 12, 0.72); color: var(--muted); }
.session-group { flex: none; padding: 2px 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--faint); font-size: 10.5px; }
.session-group:hover { color: var(--accent); }
.session-keys { margin: 0; font-size: 10px; color: var(--faint); text-align: center; }
.act.refine-btn { color: var(--accent); }
/* ---------- schermi stretti ---------- */
@media (max-width: 1600px) {
.single-actions .act.secondary span { display: none; }
.single-actions .act.secondary { width: 32px; padding: 0; justify-content: center; }
}
@media (max-width: 1360px) {
.single-actions .act span { display: none; }
.single-actions .act { width: 32px; padding: 0; justify-content: center; }
}
@media (max-width: 1100px) {
:root { --inspector: 280px; }
.poster { grid-template-columns: minmax(0, 1fr) 300px; }
.mode-hint { display: none; }
.act span { display: none; }
.act { width: 32px; padding: 0; justify-content: center; }
}
@media (max-width: 820px) {
body { overflow: auto; }
.topbar { grid-template-columns: auto 1fr; gap: 12px; }
.views { justify-self: end; }
.top-status { display: none; }
.studio { grid-template-columns: 1fr; height: auto; }
.workspace { padding: 14px; }
.stage { min-height: 56vh; }
.inspector { border-left: 0; border-top: 1px solid var(--line); }
.shot-bar { flex-wrap: wrap; }
.shot-caption { flex-basis: 100%; }
.compare { grid-auto-flow: row; grid-auto-rows: minmax(260px, 1fr); overflow-y: auto; }
.compare-hint { display: none; }
.mode-hint { display: none; }
.gallery { height: auto; padding: 20px 14px 110px; }
.detail[open] { grid-template-columns: 1fr; grid-template-rows: 50% 1fr; }
.detail-side { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 1600px) {
.single-actions .act.views-btn { width: auto; padding: 0 11px; }
.single-actions .act.views-btn span, .single-actions .act.refine-btn span { display: inline; }
.single-actions .act.refine-btn { width: auto; padding: 0 11px; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation: none !important; transition: none !important; }
}
/* ---------- vettorizza ---------- */
.vector { width: min(980px, 94vw); height: min(640px, 88vh); padding: 0; overflow: hidden; }
.vector[open] { display: grid; grid-template-columns: minmax(0, 1fr) 320px; }
.vector-view {
position: relative;
display: flex;
align-items: center;
justify-content: center;
min-height: 0;
padding: 28px;
background-color: #f4f4f6;
background-image: conic-gradient(#e6e6ea 25%, transparent 0 50%, #e6e6ea 0 75%, transparent 0);
background-size: 20px 20px;
transition: background-color 0.2s var(--ease);
}
.vector-view.dark { background-color: #16171b; background-image: conic-gradient(#1e1f24 25%, transparent 0 50%, #1e1f24 0 75%, transparent 0); }
.vector-art { display: contents; }
.vector-art svg { max-width: 100%; max-height: 100%; width: auto; height: auto; transition: opacity 0.2s var(--ease); }
.vector-wait {
position: absolute;
inset: auto 0 22px;
margin: 0;
text-align: center;
font-size: 12.5px;
color: #55575f;
opacity: 0;
transition: opacity 0.2s var(--ease);
}
.vector-view.dark .vector-wait { color: var(--muted); }
.vector-view[data-state="lavoro"] .vector-art svg { opacity: 0.25; }
.vector-view[data-state="lavoro"] .vector-wait { opacity: 1; }
.vector-side { display: flex; flex-direction: column; gap: 14px; min-height: 0; padding: 22px; border-left: 1px solid var(--line); overflow-y: auto; }
.vector-side h2 { margin: 0; }
.vector-side .panel-note { margin: 0; }
.vector-styles { display: grid; gap: 8px; }
.vector-styles button {
display: grid;
gap: 2px;
padding: 10px 12px;
border: 1px solid var(--line-strong);
border-radius: var(--r-md);
background: transparent;
color: var(--text);
text-align: left;
cursor: pointer;
transition: border-color 0.15s, background 0.15s;
}
.vector-styles button:hover { background: var(--surface); }
.vector-styles button[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.vector-styles b { font-weight: 600; font-size: 13.5px; }
.vector-styles small { color: var(--muted); font-size: 12px; }
.vector-stats { margin: 0; min-height: 18px; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.vector-warn { margin: 0; padding: 10px 12px; border-radius: var(--r-sm); background: rgba(255, 210, 122, 0.08); color: #ffd27a; font-size: 12.5px; line-height: 1.5; }
.vector-side .sheet-actions { margin-top: auto; }
.vector-side .detail-btn svg { width: 16px; height: 16px; }
/* ---------- infobox ---------- */
.tip {
position: fixed;
z-index: 1000;
max-width: 300px;
padding: 10px 12px;
border: 1px solid var(--line-strong);
border-radius: 12px;
background: rgba(36, 37, 44, 0.97);
box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.75);
color: var(--text);
font-size: 12.5px;
line-height: 1.5;
opacity: 0;
transform: translateY(3px);
transition: opacity 0.14s var(--ease), transform 0.14s var(--ease);
pointer-events: auto;
}
.tip[data-side="sotto"] { transform: translateY(-3px); }
.tip.show { opacity: 1; transform: none; }
.tip::after {
content: "";
position: absolute;
left: calc(var(--arrow, 50%) - 5px);
width: 10px;
height: 10px;
background: inherit;
border: inherit;
border-width: 0 1px 1px 0;
transform: rotate(45deg);
}
.tip[data-side="sopra"]::after { bottom: -6px; }
.tip[data-side="sotto"]::after { top: -6px; transform: rotate(225deg); }
.tip-text { margin: 0; }
.tip-more {
display: inline-flex;
align-items: center;
gap: 6px;
margin-top: 8px;
padding: 0;
border: 0;
background: none;
color: var(--accent);
font-size: 12px;
font-weight: 600;
cursor: pointer;
}
.tip-more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.tip-more:hover span { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .tip { transition: none; } }
/* ---------- guida laterale ---------- */
.guide {
position: fixed;
inset: var(--topbar) 0 0 auto;
z-index: 900;
width: min(560px, 100vw);
height: auto;
max-height: none;
margin: 0;
padding: 0;
border: 0;
border-left: 1px solid var(--line-strong);
background: var(--bg-raised);
color: var(--text);
box-shadow: -30px 0 60px -30px rgba(0, 0, 0, 0.8);
transform: translateX(100%);
transition: transform 0.25s var(--ease);
}
.guide[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.guide.show { transform: none; }
.guide-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); }
.guide-head > svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.7; }
.guide-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 19px; }
.guide-head .spacer { flex: 1; }
.guide-head .detail-btn { height: 32px; padding: 0 10px; font-size: 12.5px; text-decoration: none; }
.guide iframe { width: 100%; height: 100%; border: 0; background: #fbfaf7; }
@media (prefers-reduced-motion: reduce) { .guide { transition: none; } }
/* ---------- locandina: template, livelli, tela ---------- */
.poster-canvas-wrap { position: relative; }
.pp-overlay { position: absolute; pointer-events: none; }
.pp-frame { position: absolute; border: 1.5px solid var(--accent); border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5); }
.pp-handle {
position: absolute;
right: -7px;
bottom: -7px;
width: 14px;
height: 14px;
border: 2px solid var(--bg);
border-radius: 50%;
background: var(--accent);
pointer-events: auto;
cursor: nwse-resize;
}
.poster-canvas-wrap.can-move { cursor: move; }
.poster-canvas-wrap.dragging { cursor: grabbing; }
.pp-hint { position: absolute; left: 0; right: 0; bottom: 8px; margin: 0; text-align: center; font-size: 11.5px; color: var(--faint); pointer-events: none; }
.pp-templates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pp-tpl {
display: grid;
gap: 5px;
padding: 5px 5px 7px;
border: 1px solid var(--line);
border-radius: var(--r-md);
background: transparent;
color: var(--muted);
font-size: 11.5px;
cursor: pointer;
transition: border-color 0.15s, color 0.15s;
}
.pp-tpl canvas { width: 100%; height: auto; border-radius: 4px; background: var(--surface); }
.pp-tpl:hover { border-color: var(--line-strong); color: var(--text); }
.pp-tpl[aria-checked="true"] { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.pp-two-btn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pp-layer-list { display: grid; gap: 6px; margin-top: 10px; }
.pp-layer {
display: grid;
grid-template-columns: 40px minmax(0, 1fr) auto;
align-items: center;
gap: 10px;
padding: 5px 10px 5px 5px;
border: 1px solid var(--line);
border-radius: var(--r-sm);
background: transparent;
color: var(--text);
text-align: left;
font-size: 13px;
cursor: pointer;
}
.pp-layer img { width: 40px; height: 40px; object-fit: contain; border-radius: 4px; background: repeating-conic-gradient(#2a2b31 0 25%, #222328 0 50%) 0 0 / 10px 10px; }
.pp-layer span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-layer small { color: var(--faint); font-size: 11px; }
.pp-layer[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.pp-layer-opts { display: grid; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.pp-layer-actions { display: flex; align-items: center; gap: 4px; }
.pp-layer-actions .spacer { flex: 1; }
.pp-fields textarea { height: auto; min-height: 70px; padding: 8px 10px; resize: vertical; font: inherit; font-size: 13.5px; line-height: 1.45; color: var(--text); }
/* ---------- benvenuto e minuti finiti ---------- */
.welcome {
width: min(560px, 94vw);
max-height: min(860px, 94dvh);
padding: 0;
overflow: auto;
border: 1px solid var(--line-strong);
border-radius: 22px;
background: var(--bg-raised);
color: var(--text);
box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.95);
}
.welcome[open] { animation: rise 0.24s var(--ease); }
.welcome::backdrop { background: rgba(6, 6, 8, 0.72); backdrop-filter: blur(6px); }
.welcome-strip { display: grid; grid-template-columns: repeat(5, 1fr); height: 120px; }
.welcome-strip img { width: 100%; height: 100%; object-fit: cover; }
.welcome-body { padding: 26px 28px 24px; }
.welcome h2 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; }
.welcome-lead { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.welcome-facts { display: grid; gap: 12px; margin: 0 0 16px; }
.welcome-facts div { padding-left: 12px; border-left: 2px solid var(--line-strong); }
.welcome-facts div:nth-child(2) { border-color: var(--accent); }
.welcome-facts dt { font-size: 13.5px; font-weight: 600; }
.welcome-facts dd { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.welcome-rules { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 12.5px; }
.welcome-check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; font-size: 13px; color: var(--muted); cursor: pointer; }
.welcome-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: #c9b8ff; flex: none; }
.welcome-check a, .welcome-rules a { color: var(--text); }
.welcome-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.welcome-actions .detail-btn { height: 44px; font-size: 14px; }
.welcome-actions .detail-btn.primary { grid-column: auto; }
.welcome-actions [aria-disabled="true"] { opacity: 0.35; pointer-events: none; }
.welcome-login { margin: 14px 0 0; color: var(--faint); font-size: 12.5px; text-align: center; }
.welcome-login a { color: var(--text); font-weight: 500; text-underline-offset: 3px; }
.welcome-login[aria-disabled="true"] a { color: var(--faint); pointer-events: none; text-decoration: none; }
.quota .quota-when { margin-top: -10px; color: var(--text); }
.quota .quota-account { color: var(--muted); }
.quota .confirm-actions a.detail-btn { display: inline-grid; place-items: center; padding: 0 16px; text-decoration: none; }
.quota .confirm-actions .detail-btn.primary { grid-column: auto; padding: 0 16px; }
@media (max-width: 520px) {
.welcome-strip { height: 88px; }
.welcome-body { padding: 20px 18px 18px; }
.welcome h2 { font-size: 24px; }
.welcome-actions { grid-template-columns: 1fr; }
}
/* ---------- telefono e tablet ---------- */
.inspector-head, .inspector-scrim, .settings-btn { display: none; }
@media (hover: none) { .generate kbd { display: none; } }
@media (max-width: 1100px) and (min-width: 761px) {
.top-status { gap: 8px; }
.brand-name { display: none; }
}
@media (max-width: 820px) and (min-width: 761px) {
body { overflow: hidden; }
.topbar { grid-template-columns: auto 1fr auto; }
.views { justify-self: center; }
.top-status { display: flex; }
.studio { grid-template-columns: minmax(0, 1fr) var(--inspector); height: calc(100dvh - var(--topbar)); }
.inspector { border-top: 0; border-left: 1px solid var(--line); }
.stage { min-height: 0; }
}
/* Elementi che esistono solo sul telefono. */
.nav-icon, .nav-menu, .menu-top, .more-btn, .compare-count, .empty-phone, .poster-tabs, .pp-hint-phone { display: none; }
.poster-canvas-wrap.can-edit { cursor: text; }
.pp-fields label.flash { animation: flash 0.9s var(--ease); }
@keyframes flash { 30% { color: var(--accent); } }
/* ---------- telefono: un'app a schermo, non una pagina da scorrere ---------- */
@media (max-width: 760px) {
:root { --topbar: 0px; --nav: 62px; --app-h: 100dvh; --pad: 12px; }
html, body { height: var(--app-h); overflow: hidden; overscroll-behavior: none; }
body { padding: 0; }
.topbar { display: contents; }
.brand, .lang-btn, #help-btn, #menu-btn { display: none; }
.top-status { display: contents; }
/* barra in basso */
.views {
position: fixed;
z-index: 30;
left: 0;
right: 0;
bottom: 0;
display: grid;
grid-template-columns: repeat(4, 1fr);
justify-self: stretch;
width: auto;
gap: 0;
height: calc(var(--nav) + env(safe-area-inset-bottom));
padding: 4px max(8px, env(safe-area-inset-left)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-right));
border: 0;
border-top: 1px solid var(--line);
border-radius: 0;
background: rgba(20, 21, 26, 0.97);
backdrop-filter: blur(16px);
}
.views button {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 4px;
height: 54px;
padding: 0;
border-radius: 12px;
background: transparent;
box-shadow: none;
color: var(--faint);
font-size: 11px;
font-weight: 500;
letter-spacing: 0.01em;
}
.views button[aria-pressed="true"], .nav-menu[aria-expanded="true"] { background: transparent; box-shadow: none; color: var(--text); }
.views button[aria-pressed="true"] .nav-icon { color: var(--accent); }
.nav-icon { display: block; width: 23px; height: 23px; }
.nav-menu { display: flex; }
body[data-keyboard] .views { display: none; }
/* ogni vista occupa lo spazio sopra la barra */
.studio, .poster, .gallery {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: calc(var(--nav) + env(safe-area-inset-bottom));
height: auto;
padding-top: env(safe-area-inset-top);
}
body[data-keyboard] :is(.studio, .poster, .gallery) { bottom: 0; }
/* ---------- studio ---------- */
.studio { display: flex; flex-direction: column; }
.workspace { flex: 1; min-height: 0; height: auto; padding: 10px var(--pad) var(--pad); gap: 8px; }
.stage-row { display: flex; flex: 1; min-height: 0; }
.session { display: none !important; }
.stage { flex: 1; min-height: 0; height: auto; border-radius: 18px; }
.empty { padding: 20px 22px; }
.empty h1 { font-size: 24px; }
.empty p { font-size: 14px; line-height: 1.5; }
.empty .empty-desk { display: none; }
.shot { padding: 10px; }
.develop { padding: 14px; gap: 12px; }
.develop-title { font-size: 18px; }
body[data-keyboard] .stage-row, body[data-keyboard] .shot-bar, body[data-keyboard] .base-bar { display: none !important; }
/* risultato: titolo corto e poche azioni chiare */
.shot-bar { flex-wrap: nowrap; gap: 10px; min-height: 0; }
.shot-caption { flex: 1 1 auto; min-width: 0; }
.shot-prompt { font-size: 14px; }
.shot-bar .shot-meta { font-size: 12px; gap: 0 10px; }
.shot-bar .shot-meta span:nth-child(n + 3) { display: none; }
.shot-actions { flex: none; flex-wrap: nowrap; gap: 6px; margin-left: 0; }
.single-actions > :not(#act-save):not(#act-more):not(#act-back) { display: none; }
.shot-actions .save-btn, .more-btn { height: 40px; padding: 0 14px; font-size: 14px; }
.more-btn { display: inline-flex; gap: 6px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--text); background: var(--surface); }
.more-btn svg { width: 18px; height: 18px; }
#act-back { display: inline-flex; height: 40px; padding: 0 10px 0 6px; }
#act-back span { display: none; }
.compare-hint { display: none; }
.base-bar { flex-wrap: wrap; }
.base-bar .shot-actions { width: 100%; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
.base-bar .shot-actions::-webkit-scrollbar { display: none; }
.base-bar .act { height: 40px; flex: none; border: 1px solid var(--line); border-radius: 12px; }
.base-bar .act { width: auto; padding: 0 12px; }
.base-bar .act span, .more-btn span { display: inline; }
.more-btn { width: auto; }
.base-bar .shot-meta { display: none; }
/* confronto: una alla volta, scorrendo di lato */
.stage[data-state="confronto"] .compare { display: flex; }
.compare, .compare[data-rows="2"] {
display: none;
gap: 0;
padding: 0;
overflow-x: auto;
overflow-y: hidden;
scroll-snap-type: x mandatory;
scrollbar-width: none;
overscroll-behavior-x: contain;
}
.compare::-webkit-scrollbar { display: none; }
.compare .card { position: relative; flex: 0 0 100%; height: 100%; padding: 10px; scroll-snap-align: center; grid-template-rows: minmax(0, 1fr); }
.compare .card-media, .compare[data-rows="2"] .card-media { width: 100%; height: 100%; overflow: visible; }
.compare .card-media img, .compare[data-rows="2"] .card-media img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; filter: none; box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.8); }
.compare .card-foot { position: absolute; left: 18px; right: 18px; bottom: 18px; justify-content: space-between; align-items: flex-end; pointer-events: none; }
.compare .card-foot > * { pointer-events: auto; }
.compare:not([data-models="2"]) .card-name { visibility: hidden; }
.compare .card-name { padding: 5px 10px; border-radius: 999px; background: rgba(12, 12, 16, 0.72); backdrop-filter: blur(8px); font-size: 12px; }
.compare .card-name small { display: none; }
.compare .save-btn, .compare[data-rows="2"] .save-btn { height: 38px; padding: 0 14px 0 12px; font-size: 13.5px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.8); }
.compare-count {
position: absolute;
z-index: 3;
top: 12px;
left: 50%;
transform: translateX(-50%);
display: none;
gap: 6px;
padding: 7px 10px;
border-radius: 999px;
background: rgba(12, 12, 16, 0.72);
backdrop-filter: blur(8px);
}
.stage[data-state="confronto"] .compare-count { display: flex; }
.compare-count i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); transition: background 0.2s, transform 0.2s; }
.compare-count i[aria-current="true"] { background: var(--text); transform: scale(1.25); }
/* composer fisso in basso */
.composer { padding: 8px; border-radius: 18px; }
.composer-top { margin-bottom: 6px; }
.modes { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; }
.modes button { justify-content: center; gap: 5px; height: 36px; padding: 0 4px; font-size: 13px; }
.modes button svg { width: 14px; height: 14px; }
.mode-hint { display: none; }
.next-bar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 10px; padding: 8px 10px; margin-bottom: 6px; }
.next-bar img, .next-bar .nb-ask { display: none; }
.next-bar p { font-size: 13px; }
.next-bar #next-use { grid-row: 1 / 3; grid-column: 2; height: 40px; }
.next-bar #next-stay { justify-self: start; font-size: 12.5px; }
.composer-body { flex-direction: row; align-items: flex-start; gap: 8px; }
.composer-body > :not(.refs) { flex: 1; min-width: 0; width: auto; }
.refs { flex: none; max-width: 46%; }
.prompt-area { padding: 0 4px; }
#prompt, #prompt-it { width: 100%; min-height: 46px; max-height: 30vh; font-size: 16px; line-height: 1.4; }
#prompt:placeholder-shown { min-height: 74px; }
.composer-foot { flex-wrap: nowrap; gap: 8px; margin-top: 6px; }
.composer-foot .error:not(:empty) { position: absolute; }
.composer { position: relative; }
.composer-foot .error:not(:empty) {
left: 12px;
right: 12px;
bottom: calc(100% + 8px);
padding: 9px 12px;
border-radius: 12px;
background: var(--surface-2);
color: var(--text);
font-size: 13px;
box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.8);
}
.pills { display: none; }
.settings-btn {
display: flex;
align-items: center;
gap: 10px;
flex: 1 1 auto;
min-width: 0;
height: 50px;
padding: 0 12px;
border: 1px solid var(--line-strong);
border-radius: 14px;
background: var(--bg-raised);
color: var(--text);
text-align: left;
}
.settings-btn svg { width: 20px; height: 20px; flex: none; color: var(--accent); }
.settings-text { display: grid; min-width: 0; line-height: 1.2; }
.settings-text small { color: var(--faint); font-size: 11.5px; }
.settings-text b { font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.settings-btn.is-empty b { color: var(--accent); }
.enhance { display: none; }
.generate { flex: 0 0 38%; height: 50px; margin: 0; justify-content: center; border-radius: 14px; font-size: 15.5px; }
/* impostazioni: foglio dal basso */
.inspector-scrim { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(6, 6, 8, 0.55); backdrop-filter: blur(2px); }
.inspector {
position: fixed;
z-index: 41;
left: 0;
right: 0;
bottom: 0;
max-height: 88dvh;
overflow-y: auto;
padding: 0 16px calc(24px + env(safe-area-inset-bottom));
border: 0;
border-top: 1px solid var(--line-strong);
border-radius: 22px 22px 0 0;
box-shadow: 0 -30px 80px -20px rgba(0, 0, 0, 0.9);
transform: translateY(105%);
transition: transform 0.28s var(--ease);
overscroll-behavior: contain;
}
body[data-sheet="open"] .inspector { transform: none; }
body[data-sheet="open"] .studio { z-index: 50; }
.inspector-head {
display: grid;
grid-template-columns: 1fr auto;
align-items: center;
position: sticky;
top: 0;
z-index: 1;
margin: 0 -16px;
padding: 18px 16px 10px;
background: var(--bg-raised);
border-bottom: 1px solid var(--line);
touch-action: none;
}
.inspector-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 21px; }
.inspector-head .detail-btn { height: 40px; padding: 0 18px; }
.inspector-grip { position: absolute; top: 7px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: var(--line-strong); }
.chip, .model, .segmented button, .aspect { min-height: 42px; }
.tips-row, .tips-row + .panel-note { display: none; }
/* menu: foglio dal basso */
.account-menu {
position: fixed;
z-index: 45;
left: 0;
right: 0;
bottom: 0;
top: auto;
width: auto;
max-height: 86dvh;
overflow-y: auto;
padding: 0 16px calc(16px + env(safe-area-inset-bottom));
border: 0;
border-top: 1px solid var(--line-strong);
border-radius: 22px 22px 0 0;
box-shadow: 0 -30px 80px -10px rgba(0, 0, 0, 0.95);
}
.account-menu:not([hidden]) { animation: sheet-up 0.24s var(--ease); }
.menu-top { display: grid; gap: 14px; padding: 18px 0 8px; position: relative; }
.menu-grip { position: absolute; top: 7px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: var(--line-strong); }
.menu-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 21px; }
.menu-brand img { width: 28px; height: 28px; }
.menu-lang { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.menu-lang button { height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 14px; }
.menu-lang button[aria-checked="true"] { background: var(--surface-2); color: var(--text); }
.account-menu .menu-link { min-height: 46px; font-size: 15px; }
.account-menu .account-action { min-height: 44px; display: grid; place-items: center; font-size: 14px; }
/* ---------- galleria ---------- */
.gallery { overflow-y: auto; padding: calc(16px + env(safe-area-inset-top)) var(--pad) 24px; -webkit-overflow-scrolling: touch; }
.gallery-head { margin-bottom: 14px; }
.gallery-head h1 { font-size: 28px; }
.filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; height: 36px; }
.scope-note { flex-wrap: wrap; gap: 6px 12px; margin-top: 0; }
.link { white-space: nowrap; }
.masonry { columns: 2; column-gap: 8px; }
.masonry[data-selecting="true"] { padding-bottom: 76px; }
.selection-bar {
left: var(--pad);
right: var(--pad);
bottom: calc(var(--nav) + env(safe-area-inset-bottom) + 10px);
transform: none;
justify-content: space-between;
gap: 8px;
padding: 6px 6px 6px 14px;
}
.selection-actions { gap: 4px; }
.selection-bar .act { width: auto; height: 40px; padding: 0 10px; }
.selection-bar .act span { display: inline; }
.selection-bar .act svg { display: none; }
.selection-bar, .selection-bar .act { white-space: nowrap; font-size: 13px; }
.selection-actions { gap: 0; }
.selection-bar .act { padding: 0 8px; }
/* ---------- locandina ---------- */
.poster { display: flex; flex-direction: column; }
.poster-stage { position: relative; flex: 0 0 auto; height: 46%; min-height: 0; margin: 0; border-bottom: 1px solid var(--line); }
.poster-canvas-wrap { padding: 12px 12px 26px; }
.pp-hint { display: none; }
.pp-hint-phone { display: block; bottom: 6px; }
body[data-keyboard] .poster-stage { height: 42%; }
body[data-keyboard] .pp-hint-phone, body[data-keyboard] .poster-tabs, body[data-keyboard] .poster-actions { display: none; }
.poster-panel { flex: 1; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; border: 0; }
.poster-tabs {
display: flex;
gap: 4px;
padding: 8px var(--pad);
overflow-x: auto;
scrollbar-width: none;
border-bottom: 1px solid var(--line);
}
.poster-tabs::-webkit-scrollbar { display: none; }
.poster-tabs button {
flex: none;
height: 36px;
padding: 0 14px;
border: 1px solid var(--line);
border-radius: 999px;
background: transparent;
color: var(--muted);
font-size: 14px;
}
.poster-tabs button[aria-selected="true"] { border-color: transparent; background: var(--text); color: var(--bg); font-weight: 500; }
.poster-scroll { overflow-y: auto; padding: 4px var(--pad) 16px; }
.poster-scroll > .panel:not([data-active]) { display: none; }
.poster-scroll > .panel { border-top: 0; padding-top: 8px; }
.poster-scroll > .panel > h2:first-child, .poster-scroll > .panel > .panel-head > h2 { display: none; }
.poster-scroll > .panel > .panel-head { justify-content: flex-end; min-height: 0; }
.poster-actions { padding: 10px var(--pad); }
/* ---------- finestre ---------- */
.detail { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
.detail[open] { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
.detail-media { padding: calc(10px + env(safe-area-inset-top)) 10px 10px; }
.detail-media .nav { opacity: 1; width: 38px; height: 38px; }
.detail-side { gap: 12px; padding: 14px var(--pad) calc(14px + env(safe-area-inset-bottom)); border-left: 0; border-top: 1px solid var(--line); overflow: visible; }
.detail-prompt, .detail-meta { display: none; }
.detail-actions { display: flex; gap: 8px; margin-top: 0; }
.detail-actions .detail-btn { flex: 1; }
.detail-actions #d-more { flex: none; }
#detail-actions-gallery > :not(#d-keep):not(#d-open):not(#d-open-draft):not(#d-more) { display: none; }
#detail-actions-gallery .detail-btn { height: 48px; }
#d-more { display: inline-flex; padding: 0 16px; }
.sheet, .confirm { width: 100vw; max-width: 100vw; max-height: 90dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); overflow-y: auto; }
.vector[open] { grid-template-columns: 1fr; grid-template-rows: 50% auto; height: 92dvh; }
.picker { height: 92dvh; }
.guide { inset: 0; width: 100vw; }
.welcome { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
.toast { top: calc(env(safe-area-inset-top) + 12px); width: max-content; max-width: calc(100vw - 24px); }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
/* Info e azioni: valgono anche sul computer. */
.info-prompt { margin: -6px 0 16px; color: var(--text); font-size: 14px; line-height: 1.5; max-height: 9.5em; overflow-y: auto; }
.info-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 18px; font-size: 13.5px; }
.info-list dt { color: var(--faint); }
@media (max-width: 760px) {
.info-sheet .sheet-actions { display: grid; grid-template-columns: 1fr 1fr; }
.info-sheet .sheet-actions .spacer { display: none; }
.info-sheet .sheet-actions .primary { grid-column: 1 / -1; }
.info-sheet .detail-btn { height: 44px; }
}
.info-list dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.action-list { display: grid; gap: 2px; margin: -6px -8px 10px; }
.action-item {
display: grid;
grid-template-columns: 24px 1fr;
align-items: center;
gap: 4px 14px;
min-height: 52px;
padding: 8px;
border: 0;
border-radius: 12px;
background: transparent;
color: var(--text);
text-align: left;
text-decoration: none;
}
.action-item:hover, .action-item:focus-visible { background: var(--surface); }
.action-item svg { width: 20px; height: 20px; color: var(--muted); }
.action-item b { font-weight: 500; font-size: 15px; }
.action-item small { grid-column: 2; margin-top: -4px; color: var(--faint); font-size: 12.5px; }
.action-item.danger, .action-item.danger svg { color: var(--danger); }
.action-sep { height: 1px; margin: 6px 8px; background: var(--line); }
/* ---------- avvisi ---------- */
.notice {
position: fixed;
z-index: 60;
top: calc(var(--topbar) + env(safe-area-inset-top, 0px) + 12px);
left: 50%;
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
gap: 12px;
align-items: start;
width: min(460px, calc(100vw - 24px));
padding: 14px 12px 14px 16px;
border: 1px solid rgba(255, 143, 143, 0.28);
border-radius: 14px;
background: var(--bg-raised);
box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9);
opacity: 0;
transform: translate(-50%, -8px);
transition: opacity 0.2s, transform 0.2s var(--ease);
}
.notice.show { opacity: 1; transform: translate(-50%, 0); }
.notice-icon { width: 20px; height: 20px; margin-top: 1px; color: var(--danger); }
.notice[data-tone="ok"] { border-color: rgba(127, 216, 166, 0.3); }
.notice[data-tone="ok"] .notice-icon { color: var(--ok); }
.notice-title { margin: 0 0 2px; font-size: 14px; font-weight: 600; }
.notice-text { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.notice-actions { display: flex; align-items: center; gap: 4px; }
.notice-actions .detail-btn { height: 34px; padding: 0 12px; }
.notice-actions .icon-btn { width: 34px; height: 34px; border: 0; }
.composer-foot .error:not(:empty) { order: -1; flex-basis: 100%; color: var(--muted); }
.composer-foot .error:not(:empty)::before { content: "→ "; color: var(--accent); }
@media (max-width: 760px) {
.notice { grid-template-columns: auto minmax(0, 1fr); padding-right: 44px; }
.notice-actions { grid-column: 2; justify-content: flex-start; }
.notice-actions:has(#notice-retry[hidden]) { display: contents; }
.notice-actions .icon-btn { position: absolute; top: 8px; right: 6px; }
}
/* Apertura: le viste compaiono già composte. */
main { transition: opacity 0.2s ease, visibility 0s; }
body[data-booting] main { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce) { main { transition: none; } }
.menu-report { display: grid; gap: 2px; text-align: left; }
.menu-report small { color: var(--faint); font-size: 11.5px; }
/* PixRick — studio scuro, l'immagine al centro, il colore solo dove conta */
:root {
--bg: #141519;
--bg-raised: #191a1f;
--surface: #1f2026;
--surface-2: #272930;
--line: rgba(255, 255, 255, 0.07);
--line-strong: rgba(255, 255, 255, 0.13);
--text: #ececef;
--muted: #9c9ea9;
--faint: #6c6f7a;
--accent: #cbbcff;
--accent-soft: rgba(203, 188, 255, 0.12);
--danger: #ff8f8f;
--ok: #7fd8a6;
--pearl: linear-gradient(115deg, #c9b8ff 0%, #ffc9a8 55%, #9fe3da 100%);
--sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
--serif: ui-serif, "New York", "Iowan Old Style", "Palatino", Georgia, serif;
--r-lg: 18px;
--r-md: 12px;
--r-sm: 8px;
--topbar: 56px;
--inspector: 320px;
--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none ; }
html, body { margin: 0; height: 100%; }
body {
font-family: var(--sans);
font-size: 14px;
line-height: 1.45;
color: var(--text);
background: var(--bg);
-webkit-font-smoothing: antialiased;
overflow: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sprite { display: none; }
kbd {
font-family: var(--sans);
font-size: 11px;
padding: 1px 6px;
border-radius: 5px;
background: rgba(0, 0, 0, 0.18);
}
/* ---------- barra in alto ---------- */
.topbar {
height: var(--topbar);
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
padding: 0 18px;
border-bottom: 1px solid var(--line);
background: var(--bg-raised);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 26px; height: 26px; }
.brand-name { font-family: var(--serif); font-size: 19px; letter-spacing: 0.005em; }
.views {
display: flex;
padding: 3px;
border-radius: 10px;
background: var(--surface);
border: 1px solid var(--line);
}
.views button {
border: 0;
background: transparent;
padding: 6px 16px;
border-radius: 7px;
color: var(--muted);
font-weight: 500;
transition: background 0.15s, color 0.15s;
}
.views button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.views .count { color: var(--faint); font-variant-numeric: tabular-nums; margin-left: 2px; }
.top-status { display: flex; align-items: center; gap: 14px; justify-content: flex-end; color: var(--muted); font-size: 13px; }
.top-status { position: relative; }
.lang-btn {
height: 32px;
min-width: 36px;
padding: 0 8px;
border: 1px solid var(--line);
border-radius: 9px;
background: transparent;