/* The Creative Studio: the hub (/studio) and the colouring room (/studio/colour/{key}). Sky Garden glass and clay,
   tones from the c-* classes (--t, --td, --ts). The paper is always white with ink lines, in every theme.
   Logical properties mirror the room in Arabic and Urdu. */

/* ================================= Hub ================================= */
.st-hub { display: grid; gap: 22px; }
.st-hero {
    position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: center; overflow: hidden;
    padding: clamp(20px, 4vw, 40px); border-radius: var(--radius-l);
    background:
        radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--rose) 30%, transparent), transparent 60%),
        radial-gradient(60% 80% at 0% 100%, color-mix(in srgb, var(--sky) 26%, transparent), transparent 60%),
        linear-gradient(150deg, var(--glass-strong), color-mix(in srgb, var(--grape-soft) 70%, var(--paper)));
    box-shadow: inset 0 0 0 1.5px var(--glass-edge), var(--shadow-l);
}
.st-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 6px 14px; border-radius: 999px; background: var(--sun-soft); color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: .95rem; }
.st-kicker .k-ico { width: 1.3em; height: 1.3em; }
.st-hero h1 {
    margin: 0 0 10px; font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1; letter-spacing: -.02em;
    background: linear-gradient(95deg, var(--grape-deep), #E0503F 45%, var(--sun-deep) 75%, var(--mint-deep));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="dark"] .st-hero h1 { background-image: linear-gradient(95deg, #BCA8FF, #FF9F8F 45%, #FFD66B 75%, #7FE3C8); }
.st-lead { margin: 0 0 16px; max-width: 560px; font-family: var(--font-read); font-size: 1.08rem; color: var(--ink-soft); }
.st-hero-ages { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.st-hero-ages li { display: flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-s); }
.st-hero-ages b { font-family: var(--font-display); font-size: 1.5rem; color: var(--grape-deep); }
:root[data-theme="dark"] .st-hero-ages b { color: var(--sun); }
.st-hero-ages span { font-weight: 700; color: var(--ink-soft); }
.st-privacy { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--font-read); font-size: .92rem; color: var(--ink-soft); }
.st-privacy .k-ico { width: 1.3em; height: 1.3em; flex: none; }
.st-hero-art { position: relative; min-height: 330px; }
.st-hero-sheet { position: absolute; width: 44%; aspect-ratio: 600 / 750; border-radius: 10px; background: #fff; padding: 6px; box-shadow: 0 22px 40px -18px rgba(43, 35, 80, .55); }
.st-hero-sheet img { display: block; width: 100%; height: 100%; }
.st-hero-sheet--1 { inset-inline-start: 2%; top: 14%; transform: rotate(-8deg); }
.st-hero-sheet--2 { inset-inline-start: 28%; top: 0; z-index: 2; transform: rotate(2deg); }
.st-hero-sheet--3 { inset-inline-start: 54%; top: 16%; transform: rotate(9deg); }
.st-blob { position: absolute; z-index: 3; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 10px 18px -8px rgba(43, 35, 80, .5); animation: st-bob 5s ease-in-out infinite; }
.st-blob--1 { width: 40px; height: 40px; background: #FF7F6E; inset-inline-start: 6%; top: 4%; }
.st-blob--2 { width: 30px; height: 30px; background: #FFC84A; inset-inline-start: 46%; top: 82%; animation-delay: -1.2s; }
.st-blob--3 { width: 34px; height: 34px; background: #3FBF9B; inset-inline-end: 2%; top: 6%; animation-delay: -2.4s; }
.st-blob--4 { width: 24px; height: 24px; background: #4FA8EE; inset-inline-start: 20%; top: 88%; animation-delay: -3.1s; }
.st-brush-art { position: absolute; z-index: 4; width: 92px; inset-inline-end: 4%; bottom: 0; transform: rotate(-12deg); filter: drop-shadow(0 10px 12px rgba(43, 35, 80, .35)); }
[dir="rtl"] .st-brush-art { transform: rotate(12deg) scaleX(-1); }
@keyframes st-bob { 50% { transform: translateY(-8px); } }

.st-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.st-chips--cats { flex-basis: 100%; order: 3; }
.st-cat {
    display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 14px; border: 0; border-radius: 14px; cursor: pointer;
    font-family: var(--font-display); font-weight: 600; color: var(--ink-soft); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line);
}
.st-cat i { width: 12px; height: 12px; border-radius: 4px; background: var(--t, var(--grape)); transform: rotate(45deg); }
.st-cat[aria-pressed="true"] { color: var(--ink); background: var(--ts, var(--grape-soft)); box-shadow: inset 0 0 0 2px var(--t, var(--grape)); }
.st-cat:focus-visible, .k-pill:focus-visible { outline: 4px solid var(--sun); outline-offset: 2px; }
.st-count { margin: 0; margin-inline-start: auto; font-weight: 700; color: var(--ink-soft); }

.st-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.st-card[hidden] { display: none; }
.st-card a {
    position: relative; display: flex; flex-direction: column; height: 100%; padding: 12px 12px 14px; border-radius: 26px; text-decoration: none; color: var(--ink);
    background: linear-gradient(165deg, color-mix(in srgb, var(--paper) 88%, var(--ts)) 30%, var(--ts));
    box-shadow: inset 0 -5px 0 color-mix(in srgb, var(--t) 18%, transparent), 0 18px 30px -22px color-mix(in srgb, var(--td) 70%, rgba(76, 52, 150, .6));
    transition: transform .25s var(--ease-bounce);
}
.st-card a:hover { transform: translateY(-4px) rotate(-.6deg); }
.st-card a:focus-visible { outline: 4px solid var(--sun); outline-offset: 3px; }
.st-card-paper { display: block; aspect-ratio: 600 / 750; border-radius: 14px; background: #fff; padding: 6px; box-shadow: 0 10px 18px -12px rgba(43, 35, 80, .5); transform: rotate(-1.2deg); transition: transform .3s var(--ease-bounce); }
.st-card:nth-child(even) .st-card-paper { transform: rotate(1.2deg); }
.st-card a:hover .st-card-paper { transform: rotate(0) scale(1.02); }
.st-card-paper img { display: block; width: 100%; height: 100%; }
.st-card-text { display: grid; gap: 2px; padding: 10px 4px 0; }
.st-card-text b { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; }
.st-card-text small { color: var(--ink-soft); font-weight: 600; font-size: .85rem; }
.st-age { display: inline-block; padding: 1px 8px; border-radius: 8px; background: var(--paper); color: color-mix(in srgb, var(--td) 62%, #000); font-weight: 800; }
:root[data-theme="dark"] .st-age { color: var(--ink); }
.st-card-go { position: absolute; inset-inline-end: 18px; top: 18px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--t); color: #fff; box-shadow: 0 8px 14px -8px var(--td); opacity: 0; transform: scale(.7); transition: .25s var(--ease-bounce); }
.st-card-go .k-ico { width: 24px; height: 24px; }
.st-card a:hover .st-card-go, .st-card a:focus-visible .st-card-go { opacity: 1; transform: none; }
.st-card-status { position: absolute; inset-inline-start: 18px; top: 18px; display: inline-flex; align-items: center; gap: 6px; padding-block: 4px 4px; padding-inline: 8px 10px; border-radius: 999px; background: #fff; color: #2B2350; font-size: .78rem; font-weight: 800; box-shadow: 0 6px 12px -6px rgba(43, 35, 80, .5); }
.st-card-status[hidden] { display: none; }
.st-card-status.is-done { background: #FFF3CF; }
.st-card-status i { display: inline-flex; }
.st-card-status i span { width: 10px; height: 10px; border-radius: 50%; margin-inline-start: -3px; box-shadow: 0 0 0 1.5px #fff; }
.st-empty { padding: 30px; text-align: center; font-family: var(--font-read); color: var(--ink-soft); }

.st-more-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.st-more-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 24px; text-decoration: none; color: var(--ink); background: linear-gradient(160deg, var(--paper), var(--ts)); box-shadow: var(--shadow-s); }
.st-more-card:focus-visible { outline: 4px solid var(--sun); outline-offset: 2px; }
.st-more-ico { width: 64px; height: 64px; flex: none; }
.st-more-card b { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.st-more-card small { color: var(--ink-soft); font-family: var(--font-read); }

/* ================================= The colouring room ================================= */
.st-room { --st-colour: #46B3EE; display: grid; gap: 16px; }
.st-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; }
.st-head h1 { margin: 2px 0 0; font-family: var(--font-display); font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.05; }
.st-head-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.st-head-tags span { padding: 2px 10px; border-radius: 999px; background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--glass-edge); }
.st-head-tags .st-age { background: var(--ts); }
.st-nav-arrow { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--ink); background: var(--glass-strong); box-shadow: inset 0 0 0 1.5px var(--glass-edge), var(--shadow-s); }
.st-nav-arrow svg { width: 24px; height: 24px; }
.st-nav-arrow:focus-visible { outline: 4px solid var(--sun); outline-offset: 2px; }
.st-meter {
    --pct: 0%; position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
    background: conic-gradient(var(--t) var(--pct), color-mix(in srgb, var(--t) 18%, var(--paper)) 0);
}
.st-meter i { position: absolute; inset: 7px; border-radius: 50%; background: var(--paper); }
.st-meter b { position: relative; font-family: var(--font-display); font-size: .9rem; }

.st-work {
    display: grid; grid-template-columns: 92px minmax(0, 1fr) 300px; grid-template-rows: auto 1fr; gap: 16px; align-items: start;
    grid-template-areas: "tools stage colours" "tools stage finish";
}
.st-toolbar { grid-area: tools; }
.st-stage-wrap { grid-area: stage; }
.st-side { grid-area: colours; }
.st-finish { grid-area: finish; display: grid; gap: 10px; padding: 16px; border-radius: 28px; background: var(--glass); box-shadow: inset 0 0 0 1.5px var(--glass-edge); }
.st-toolbar {
    position: sticky; top: 90px; display: grid; gap: 14px; padding: 12px 10px; border-radius: 28px;
    background: var(--glass-strong); box-shadow: inset 0 0 0 1.5px var(--glass-edge), var(--shadow);
}
.st-tools, .st-sizes, .st-history, .st-zoom { display: grid; gap: 8px; justify-items: center; }
.st-tools + .st-sizes, .st-sizes + .st-history, .st-history + .st-zoom { padding-top: 12px; border-top: 2px dashed var(--line); }
.st-tool {
    display: grid; justify-items: center; gap: 2px; width: 72px; padding: 8px 4px 6px; border: 0; border-radius: 20px; cursor: pointer;
    background: transparent; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: .82rem;
    transition: transform .2s var(--ease-bounce), background .2s;
}
.st-tool svg { width: 40px; height: 40px; }
.st-tool:hover { transform: translateY(-2px); background: var(--paper); }
.st-tool[aria-pressed="true"] { background: var(--paper); box-shadow: inset 0 0 0 3px var(--t), 0 10px 18px -12px var(--td); }
.st-size { display: grid; place-items: center; width: 46px; height: 40px; border: 0; border-radius: 14px; background: transparent; cursor: pointer; }
.st-size i { width: var(--d); height: var(--d); border-radius: 50%; background: var(--st-colour); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px color-mix(in srgb, var(--ink) 30%, transparent); }
.st-size[aria-pressed="true"] { background: var(--paper); box-shadow: inset 0 0 0 2.5px var(--t); }
.st-icon-btn { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 16px; background: var(--paper); color: var(--ink); cursor: pointer; box-shadow: 0 6px 12px -8px rgba(43, 35, 80, .5); }
.st-icon-btn svg, .st-icon-btn .k-ico { width: 24px; height: 24px; }
.st-icon-btn:disabled { opacity: .4; cursor: default; }
.st-flip .k-ico { transform: scaleX(-1); }
.st-zoom-level { font-weight: 800; font-size: .78rem; color: var(--ink-soft); }
.st-tool:focus-visible, .st-size:focus-visible, .st-icon-btn:focus-visible { outline: 4px solid var(--sun); outline-offset: 2px; }

.st-stage-wrap { display: grid; gap: 8px; justify-items: center; }
.st-stage {
    position: relative; width: min(100%, calc((100vh - 170px) * .8)); min-width: min(100%, 320px); aspect-ratio: 600 / 750; border-radius: 22px; overflow: hidden;
    background: #fff; box-shadow: 0 0 0 10px var(--paper), 0 0 0 12px color-mix(in srgb, var(--t) 40%, transparent), 0 34px 60px -26px rgba(43, 35, 80, .6);
    color-scheme: light;
}
.st-stage > svg { display: block; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; cursor: cell; outline: none; }
.st-stage > svg:focus-visible { box-shadow: inset 0 0 0 5px var(--sun); }
.st-room[data-tool="brush"] .st-stage > svg { cursor: crosshair; }
.st-room[data-tool="eraser"] .st-stage > svg { cursor: pointer; }
.st-room.is-zoomed[data-tool="fill"] .st-stage > svg { cursor: grab; }
.st-stage .st-paint { pointer-events: none; }
.st-room[data-tool="eraser"] .st-stage .st-paint path { pointer-events: stroke; }
.st-stage .st-lines { pointer-events: none; }
.st-stage [data-r] { transition: fill .18s ease, stroke .18s ease; }
.st-stage [data-r].is-pop { animation: st-pop .4s ease; }
@keyframes st-pop { 0% { opacity: .35; } 100% { opacity: 1; } }
.st-stage .st-fills .is-focus { stroke: #FF4FA0 !important; stroke-width: 7px; stroke-dasharray: 10 6; }
.st-stage .st-fills [data-paint="stroke"].is-focus { stroke-dasharray: none; filter: drop-shadow(0 0 6px #FF4FA0); }
.st-loading, .st-error { position: absolute; inset: auto 0 16px; margin: 0; text-align: center; font-weight: 700; color: #554B86; }
.st-room.is-ready .st-loading, .st-error { display: none; }
.st-room.is-error .st-error { display: block; color: #E0503F; }
.st-room:not(.is-ready) .st-toolbar, .st-room:not(.is-ready) .st-side .st-swatches { opacity: .5; pointer-events: none; }
.st-hint { margin: 6px 0 0; font-family: var(--font-read); font-weight: 600; color: var(--ink-soft); text-align: center; }
.st-keys { margin: 0; font-size: .8rem; color: var(--ink-faint); text-align: center; }

.st-side {
    display: grid; gap: 12px; padding: 16px; border-radius: 28px;
    background: var(--glass-strong); box-shadow: inset 0 0 0 1.5px var(--glass-edge), var(--shadow);
}
.st-current { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; }
.st-current > i { width: 34px; height: 34px; border-radius: 12px; background: var(--st-colour); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .7), 0 6px 12px -6px rgba(43, 35, 80, .6); }
.st-custom { position: relative; margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; padding-block: 4px 4px; padding-inline: 4px 10px; border-radius: 999px; background: var(--paper); font-size: .8rem; cursor: pointer; box-shadow: 0 4px 10px -6px rgba(43, 35, 80, .5); }
.st-custom input { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red); cursor: pointer; }
.st-custom input::-webkit-color-swatch-wrapper { padding: 0; }
.st-custom input::-webkit-color-swatch { border: 0; border-radius: 50%; opacity: 0; }
.st-custom:focus-within { outline: 4px solid var(--sun); outline-offset: 2px; }
.st-pal-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.st-pal-tab {
    display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding-block: 4px 4px; padding-inline: 6px 10px; border: 0; border-radius: 12px; cursor: pointer;
    background: var(--paper); color: var(--ink-soft); font-family: var(--font-display); font-weight: 600; font-size: .85rem;
}
.st-pal-tab::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(var(--a) 0 33%, var(--b) 0 66%, var(--c) 0); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--line); }
.st-pal-tab[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 0 0 2.5px var(--t); }
.st-pal-tab:focus-visible { outline: 4px solid var(--sun); outline-offset: 2px; }
.st-swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.st-swatches[hidden] { display: none; }
.st-swatch {
    aspect-ratio: 1; border: 0; border-radius: 50%; cursor: pointer; background: var(--c);
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .14), inset 0 0 0 1.5px rgba(43, 35, 80, .18), 0 6px 10px -6px rgba(43, 35, 80, .5);
    transition: transform .2s var(--ease-bounce);
}
.st-swatch:hover { transform: scale(1.1); }
.st-swatch[aria-pressed="true"] { transform: scale(1.12); box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink), 0 8px 14px -6px rgba(43, 35, 80, .6); }
.st-swatch:focus-visible { outline: 4px solid var(--sun); outline-offset: 4px; }
.st-actions { display: grid; gap: 8px; }
.st-actions .k-btn { width: 100%; justify-content: center; }
.st-done { font-size: 1.1rem; }
.st-link-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border: 0; background: transparent; color: var(--ink-soft); font-weight: 700; cursor: pointer; border-radius: 12px; }
.st-link-btn .k-ico { width: 20px; height: 20px; }
.st-link-btn:focus-visible { outline: 4px solid var(--sun); }
.st-status { min-height: 1.3em; margin: 0; font-size: .85rem; font-weight: 700; color: var(--mint-deep); text-align: center; }
:root[data-theme="dark"] .st-status { color: #7FE3C8; }
.st-finish .st-privacy { font-size: .82rem; }

.st-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; margin-top: 10px; }
.st-about-card, .st-print-card { padding: 20px 22px; border-radius: 28px; background: var(--glass-strong); box-shadow: inset 0 0 0 1.5px var(--glass-edge), var(--shadow-s); }
.st-about h2 { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.35rem; }
.st-about p { margin: 0 0 8px; font-family: var(--font-read); color: var(--ink-soft); }
.st-about-age b { color: var(--ink); }
.st-print-card { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; align-items: center; background: linear-gradient(150deg, var(--glass-strong), var(--ts)); }
.st-print-thumb { display: block; padding: 5px; border-radius: 10px; background: #fff; transform: rotate(-4deg); box-shadow: 0 14px 24px -14px rgba(43, 35, 80, .6); }
.st-print-thumb img { display: block; width: 100%; height: auto; }
.st-print-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.st-related-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.st-related-head a { font-weight: 700; color: var(--grape-deep); }
:root[data-theme="dark"] .st-related-head a { color: var(--sun); }
.st-grid--row { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.st-print-sheet { display: none; }

/* ---------- Tablets and phones: tools across the top, palette below ---------- */
@media (max-width: 1100px) {
    .st-work { grid-template-columns: minmax(0, 1fr) 280px; grid-template-areas: "tools tools" "stage colours" "stage finish"; }
    .st-toolbar { position: sticky; top: 76px; z-index: 5; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; padding: 8px 10px; }
    .st-tools, .st-sizes, .st-history, .st-zoom { display: flex; align-items: center; }
    .st-tools + .st-sizes, .st-sizes + .st-history, .st-history + .st-zoom { padding-top: 0; border-top: 0; padding-inline-start: 10px; border-inline-start: 2px dashed var(--line); }
    .st-tool { width: auto; grid-auto-flow: column; align-items: center; gap: 6px; padding: 6px 12px; }
    .st-tool svg { width: 30px; height: 30px; }
}
@media (max-width: 800px) {
    .st-hero { grid-template-columns: 1fr; }
    .st-hero-art { min-height: 250px; max-width: 420px; width: 100%; justify-self: center; }
    .st-work { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tools" "colours" "stage" "finish"; gap: 12px; }
    .st-side { padding: 10px 12px; gap: 8px; }
    .st-pal-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .st-pal-tab { flex: none; }
    .st-swatches { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
    .st-swatch { flex: none; width: 40px; height: 40px; }
    .st-stage { width: 100%; }
    .st-about { grid-template-columns: 1fr; }
    .st-head { grid-template-columns: auto minmax(0, 1fr) auto; }
    .st-head .st-meter { display: none; }
    .st-head .st-nav-arrow[rel="prev"] { order: 0; }
    .st-keys { display: none; }
    .st-actions { grid-template-columns: 1fr 1fr; }
    .st-actions .st-done { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .st-tool span { display: none; }
    .st-toolbar { gap: 6px; padding: 6px; top: 64px; }
    .st-tools + .st-sizes, .st-sizes + .st-history, .st-history + .st-zoom { padding-inline-start: 6px; }
    .st-icon-btn { width: 40px; height: 40px; }
    .st-size { width: 36px; }
    .st-zoom-level { display: none; }
    .st-print-card { grid-template-columns: 80px minmax(0, 1fr); }
    .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .st-card a { padding: 8px 8px 10px; border-radius: 20px; }
    .st-card-text b { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
    .st-blob, .st-stage [data-r].is-pop { animation: none; }
    .st-card a, .st-card-paper, .st-tool, .st-swatch, .st-card-go, .st-stage [data-r] { transition: none; }
}

/* ---------- Printing: only the picture, as large as the paper allows ---------- */
@media print {
    @page { margin: 12mm; }
    .k-crumbs, .sg-mainsite, .k-foot, .k-top { display: none !important; }
    .st-room > :not(.st-print-sheet) { display: none !important; }
    .st-print-sheet { display: block !important; }
    .st-print-sheet svg { display: block; width: 100%; height: auto; max-height: 255mm; margin: 0 auto; }
    .st-print-sheet .st-lines { mix-blend-mode: multiply; }
}
/* Zoomed in, the outlines stay fine instead of growing with the picture. */
.st-room.is-zoomed .st-stage .st-lines > :not(g) { vector-effect: non-scaling-stroke; stroke-width: 3.5px; }
