/* KreatorAI – strony aplikacji. Stylistyka Monitor AI: #3A35F4 (fiolet), #F6EA51 (żółty). */
:root {
    --brand: #3A35F4; --brand-2: #2a26c9; --brand-3: #6d5cff; --yellow: #F6EA51;
    --ink: #0b0b12; --fg: #17181f; --muted: #5d6275; --line: #e3e5ee; --bg: #f5f6fa; --card: #fff; --r: 18px;
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; }
body.has-modal { overflow: hidden; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.025em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; }
h2 { font-weight: 800; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 99; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.wrap--narrow { width: min(820px, 100% - 40px); }
.wrap--xs { width: min(460px, 100% - 40px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* Pasek górny */
.topbar { background: rgba(255, 255, 255, .85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.logo { font-weight: 800; font-size: 1.12rem; color: var(--fg); text-decoration: none; display: flex; align-items: center; gap: 9px; letter-spacing: -.02em; }
.logo__mark { background: linear-gradient(135deg, var(--brand), var(--brand-3)); color: var(--yellow); border-radius: 10px; padding: 3px 7px; font-size: .82rem; box-shadow: 0 6px 16px -6px var(--brand); }
.topnav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topnav a { color: var(--fg); text-decoration: none; font-weight: 600; font-size: .94rem; }
.topnav a:hover { color: var(--brand); }
.topnav form { margin: 0; }
.linkbtn { background: none; border: 0; font: inherit; font-weight: 600; font-size: .94rem; color: var(--muted); cursor: pointer; padding: 0; }
.is-studio .topbar { background: rgba(11, 11, 18, .72); border-bottom-color: rgba(255, 255, 255, .08); }
.is-studio .logo, .is-studio .topnav a, .is-studio .linkbtn { color: #fff; }
.is-studio .topnav a:hover { color: var(--yellow); }
.is-studio .topnav .btn { color: var(--ink) !important; background: #fff; border-color: #fff; box-shadow: none; }

/* Przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: #fff !important; border: 2px solid var(--brand); padding: 11px 22px; border-radius: 12px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; box-shadow: 0 10px 22px -12px var(--brand); }
.btn:hover { background: var(--brand-2); transform: translateY(-1px); }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.btn--sm { padding: 6px 14px; font-size: .9rem; border-radius: 10px; }
.btn--lg { padding: 15px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--accent { background: var(--yellow); border-color: var(--yellow); color: var(--ink) !important; box-shadow: 0 10px 22px -12px #b9a90f; }
.btn--accent:hover { background: #ecdf3c; }
.btn--ghost { background: #fff; color: var(--brand) !important; border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { background: #f3f2ff; }
.btn--danger { background: #fff; color: #b3261e !important; border-color: #f0c8c4; box-shadow: none; }
.btn--danger:hover { background: #fdecea; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); box-shadow: 0 1px 2px rgba(16, 18, 30, .04), 0 16px 40px -28px rgba(16, 18, 30, .3); }
.alert { padding: 12px 16px; border-radius: 12px; margin: 16px 0; }
.alert--ok { background: #e9f8ef; color: #155c35; border: 1px solid #bfe8cf; }
.error { color: #b3261e; font-size: .9rem; margin: 6px 0 0; }
.help { color: var(--muted); font-size: .88rem; margin: 6px 0 0; }

/* Formularze – pola zawsze wyraźnie widoczne */
.field { margin: 0 0 20px; border: 0; padding: 0; }
.label { display: block; font-weight: 700; margin-bottom: 7px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=search], textarea, select {
    width: 100%; padding: 12px 14px; border: 1.5px solid #b9bfd0; border-radius: 12px; background: #fff; color: var(--fg); font: inherit;
}
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(58, 53, 244, .15); outline: none; }
textarea { resize: vertical; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; }
.checkbox input { margin-top: 5px; width: 18px; height: 18px; }
.form .btn--block { margin-top: 4px; }

/* ---------- Ekran kreatora (ciemny, z poświatą) ---------- */
.studio { position: relative; background: var(--ink); color: #fff; padding: clamp(56px, 9vw, 110px) 0 clamp(150px, 16vw, 200px); overflow: hidden; margin-top: -1px; }
.studio--short { padding-bottom: clamp(120px, 14vw, 170px); }
.studio__glow { position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(75% 60% at 50% 120%, rgba(88, 70, 255, 1), rgba(58, 53, 244, .6) 40%, transparent 72%),
        radial-gradient(35% 45% at 4% 100%, rgba(109, 92, 255, .55), transparent 70%),
        radial-gradient(35% 45% at 96% 100%, rgba(109, 92, 255, .55), transparent 70%),
        radial-gradient(25% 30% at 80% 8%, rgba(246, 234, 81, .10), transparent 70%); }
.studio__in { position: relative; text-align: center; max-width: 860px; }
.studio__title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -.035em; margin-bottom: .35em; }
.studio__sub { color: rgba(255, 255, 255, .72); font-size: 1.08rem; max-width: 640px; margin: 0 auto 32px; }
.studio__help { color: rgba(255, 255, 255, .6); font-size: .88rem; margin: 12px 0 0; min-height: 1.4em; }
.studio__help.is-error, .studio__error { color: #ffb4a8; }
.studio__error { margin: 4px 0 0; font-weight: 600; }
.studio__note { color: rgba(255, 255, 255, .6); font-size: .88rem; margin: 18px 0 0; }

.prompt {
    text-align: left; border-radius: 22px; padding: 6px 6px 8px;
    border: 2px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, #4fd1ff, var(--brand-3) 40%, #ff5fa2 75%, var(--yellow)) border-box;
    box-shadow: 0 0 0 6px rgba(109, 92, 255, .12), 0 30px 80px -30px rgba(109, 92, 255, .8);
}
.prompt textarea { border: 0; box-shadow: none !important; outline: none; resize: none; padding: 16px 16px 6px; font-size: 1.08rem; color: var(--fg); min-height: 92px; line-height: 1.55; background: transparent; }
.prompt textarea::placeholder { color: #8a8fa3; }
.prompt__bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 8px 2px 10px; flex-wrap: wrap; }
.prompt__left, .prompt__right { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.prompt__tool { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: #5d6275; font: inherit; font-size: .88rem; font-weight: 600; padding: 7px 10px; border-radius: 10px; cursor: pointer; }
.prompt__tool svg { width: 16px; height: 16px; fill: currentColor; }
.prompt__tool:hover { background: #f1f0ff; color: var(--brand); }
.prompt__tool:disabled { opacity: .6; cursor: wait; }
.prompt__tool--ghost { color: #8a8fa3; }
.prompt__tpl { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--brand); background: #f1f0ff; border-radius: 999px; padding: 5px 6px 5px 12px; }
.prompt__tpl[hidden] { display: none; }
.prompt__tpl button { border: 0; background: rgba(58, 53, 244, .12); color: var(--brand); width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 14px; line-height: 1; }
.prompt__icon, .prompt__send { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; transition: background .15s, transform .15s; }
.prompt__icon { background: transparent; color: #4b5063; }
.prompt__icon:hover { background: #f1f0ff; color: var(--brand); }
.prompt__icon.is-on { background: #b3261e; color: #fff; animation: pulse 1.2s infinite; }
.prompt__icon svg, .prompt__send svg { width: 20px; height: 20px; fill: currentColor; }
.prompt__send { background: var(--brand); color: #fff; box-shadow: 0 8px 18px -8px var(--brand); }
.prompt__send:hover { transform: translateY(-1px); background: var(--brand-2); }
.prompt__send:disabled { opacity: .6; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(179, 38, 30, .2); } }

.ideas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.idea { border: 0; background: #fff; color: var(--ink); border-radius: 999px; padding: 9px 16px; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.idea[hidden] { display: none; }
.idea:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(255, 255, 255, .5); }
.ideas__more { margin-top: 16px; background: none; border: 0; color: #fff; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; display: inline-flex; gap: 6px; }
.ideas__more:hover { color: var(--yellow); }

.modes { border: 0; padding: 0; margin: 36px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 680px; }
.modes legend { color: rgba(255, 255, 255, .72); font-size: .9rem; font-weight: 600; margin: 0 auto 14px; padding: 0; text-align: center; width: 100%; }
.mode { text-align: left; cursor: pointer; }
.mode input { position: absolute; opacity: 0; }
.mode__card { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(255, 255, 255, .14); transition: background .15s, border-color .15s; }
.mode__card strong { font-size: 1rem; }
.mode__card span { color: rgba(255, 255, 255, .7); font-size: .86rem; line-height: 1.45; }
.mode__card em { align-self: flex-start; margin-top: 8px; font-style: normal; font-size: .75rem; font-weight: 700; color: #cfc8ff; background: rgba(109, 92, 255, .25); padding: 3px 9px; border-radius: 999px; }
.mode:hover .mode__card { background: rgba(255, 255, 255, .1); }
.mode input:checked + .mode__card { background: #fff; border-color: #fff; color: var(--ink); }
.mode input:checked + .mode__card span { color: var(--muted); }
.mode input:checked + .mode__card em { color: var(--brand); background: #f1f0ff; }
.mode input:focus-visible + .mode__card { outline: 3px solid var(--yellow); outline-offset: 2px; }
.mode input:disabled + .mode__card { opacity: .45; cursor: not-allowed; }

.loading { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; text-align: center; gap: 6px; color: #fff;
    background: radial-gradient(50% 50% at 50% 60%, rgba(58, 53, 244, .55), transparent 70%), rgba(11, 11, 18, .94); }
.loading[hidden] { display: none; }
.loading { overflow-y: auto; padding: 16px; }
.loading__orb { width: 96px; height: 96px; margin: 0 auto 22px; border-radius: 50%;
    background: conic-gradient(from 0deg, #4fd1ff, var(--brand-3), #ff5fa2, var(--yellow), #4fd1ff); animation: spin 1.6s linear infinite;
    -webkit-mask: radial-gradient(circle, transparent 54%, #000 56%); mask: radial-gradient(circle, transparent 54%, #000 56%); }
.loading__title { font-size: 1.4rem; font-weight: 800; margin: 0; }
.loading__step { color: rgba(255, 255, 255, .72); margin: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Limit próby bez konta ---------- */
.studio__limit { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 12px 0 0; }

/* ---------- Powrót do ostatniej strony ---------- */
.resume { margin: 0 auto 22px; max-width: 720px; padding: 14px 18px; border-radius: 16px; text-align: left;
    background: rgba(246, 234, 81, .14); border: 1px solid rgba(246, 234, 81, .55); }
.resume__title { margin: 0 0 6px; font-weight: 800; }
.resume__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.resume__link { display: block; padding: 10px 14px; border-radius: 10px; background: var(--yellow); color: #111 !important;
    text-decoration: none; font-weight: 600; }
.resume__link span { font-weight: 400; opacity: .7; }
.resume__link:hover { filter: brightness(1.04); }

/* ---------- Gra „Skoczek” na ekranie ładowania ---------- */
.loading__play { margin: 18px auto 0; padding: 12px 20px; border: 0; border-radius: 999px; background: var(--yellow); color: #111;
    font: inherit; font-weight: 800; cursor: pointer; }
.loading__play:hover { filter: brightness(1.05); }
.loading__play:focus-visible, .game__jump:focus-visible, .game__canvas:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.loading__play[hidden], .game[hidden], .game__msg[hidden] { display: none; }
.game { width: min(640px, calc(100vw - 32px)); margin: 18px auto 0; display: grid; gap: 8px; }
.game__hud { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; color: rgba(255, 255, 255, .85); }
.game__hud strong { color: var(--yellow); }
.game__lives { color: #ff5fa2; letter-spacing: 2px; }
.game__canvas { width: 100%; aspect-ratio: 640 / 220; border-radius: 14px; background: linear-gradient(#1a1840, #0f0f1c);
    border: 1px solid rgba(255, 255, 255, .15); touch-action: manipulation; cursor: pointer; }
.game__msg { margin: 0; font-weight: 700; color: var(--yellow); }
.game__help { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    font-size: .85rem; color: rgba(255, 255, 255, .7); }
.game__help kbd { padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, .14); font: inherit; }
.game__jump { padding: 10px 22px; border: 0; border-radius: 10px; background: var(--brand); color: #fff; font: inherit;
    font-weight: 700; cursor: pointer; }
.game__note { margin: 0; font-size: .8rem; color: rgba(255, 255, 255, .55); }

/* ---------- Biała karta z galerią ---------- */
.sheet { position: relative; margin-top: clamp(-110px, -10vw, -80px); padding: 0 20px clamp(40px, 6vw, 80px); }
.studio + .sheet::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 160px; background: linear-gradient(180deg, transparent, var(--bg)); z-index: -1; }
.sheet__in { width: min(1180px, 100%); margin: 0 auto; background: #fff; border-radius: 28px; padding: clamp(24px, 4vw, 44px); box-shadow: 0 40px 90px -50px rgba(16, 18, 30, .45); }
.sheet__title { text-align: center; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 600; letter-spacing: -.02em; margin-bottom: 26px; }
.sheet__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cat { border: 0; background: #f1f2f6; color: var(--fg); border-radius: 999px; padding: 9px 16px; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.cat:hover { background: #e7e8ef; }
.cat.is-active { background: var(--ink); color: #fff; }
.search { position: relative; flex: 0 1 280px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: #6b7086; pointer-events: none; }
.search input { padding-left: 40px; border-radius: 12px; border-color: #d5d8e3; }
.sheet__empty { text-align: center; color: var(--muted); padding: 30px 0; }

.tgallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 34px 26px; }
.tcard { min-width: 0; }
.tcard[hidden] { display: none; }
/* Miniatura jak w galeriach Wix: duża, po najechaniu powoli przewija stronę szablonu */
.tcard__thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: #f3f4f8; box-shadow: 0 1px 2px rgba(16, 18, 30, .05), 0 18px 40px -30px rgba(16, 18, 30, .5); transition: transform .3s, box-shadow .3s; }
.tcard__thumb iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 3200px; border: 0; transform: scale(var(--s, .28)); transform-origin: 0 0; pointer-events: none; background: #fff; transition: transform 4.5s cubic-bezier(.45, .05, .35, 1); }
.tcard:hover .tcard__thumb, .tcard:focus-within .tcard__thumb { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(16, 18, 30, .6); }
.tcard:hover .tcard__thumb iframe { transform: scale(var(--s, .28)) translateY(-1900px); }
.tcard__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(180deg, rgba(11, 11, 18, .18), rgba(11, 11, 18, .55)); opacity: 0; transition: opacity .2s; }
.tcard:hover .tcard__overlay, .tcard__overlay:focus-within { opacity: 1; }
.tcard__btn { min-width: 150px; text-align: center; text-decoration: none; font-weight: 700; font-size: .92rem; padding: 11px 20px; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5); transition: transform .15s, background .15s; }
.tcard__btn:hover { transform: translateY(-1px); }
.tcard__btn--primary { background: var(--brand); color: #fff; }
.tcard__btn--primary:hover { background: #2a25d6; }
.tcard__btn:focus-visible { outline: 3px solid #F6EA51; outline-offset: 2px; }
.tcard__body { padding: 14px 2px 0; }
.tcard__body h3 { font-size: 1.02rem; margin: 0 0 3px; letter-spacing: -.01em; }
.tcard__body p { color: var(--muted); font-size: .88rem; margin: 0; line-height: 1.45; }
.cat__n { display: inline-block; min-width: 1.6em; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: rgba(16, 18, 30, .08); font-size: .78rem; text-align: center; }
.cat.is-active .cat__n { background: rgba(255, 255, 255, .22); }
/* Dotyk (bez najechania): nakładka ukryta, przyciski pod miniaturą */
.tcard__actions { display: none; gap: 8px; margin-top: 12px; }
@media (hover: none) {
    .tcard__overlay { display: none; }
    .tcard__actions { display: flex; }
    .tcard__actions .tcard__btn { min-width: 0; flex: 1; padding: 10px 14px; box-shadow: none; border: 1.5px solid var(--line); }
    .tcard__actions .tcard__btn--primary { border-color: var(--brand); }
}
@media (prefers-reduced-motion: reduce) {
    .tcard__thumb iframe, .tcard:hover .tcard__thumb iframe { transition: none; transform: scale(var(--s, .28)); }
}

.tmodal { position: fixed; inset: 0; z-index: 90; background: rgba(11, 11, 18, .72); display: grid; place-items: center; padding: 3vh 2vw; }
.tmodal[hidden] { display: none; }
.tmodal__box { width: min(1500px, 100%); height: 100%; background: #fff; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6); }
.tmodal__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px 14px 28px; border-bottom: 1px solid var(--line); }
.tmodal__close { border: 0; background: #f1f2f6; width: 38px; height: 38px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.tmodal__close:hover { background: #e3e5ee; }
.tmodal__frame { flex: 1; width: 100%; border: 0; }
.tmodal__foot { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 12px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; font-size: .92rem; color: var(--muted); }
.tmodal__foot .btn { background: var(--ink); border-color: var(--ink); box-shadow: none; }

/* ---------- Pozostałe sekcje strony głównej ---------- */
.section { padding: clamp(40px, 6vw, 80px) 0; }
.section--tight { padding-top: 0; }
.section__title { text-align: center; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 30px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.step span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--brand-3)); color: var(--yellow); font-weight: 800; margin-bottom: 14px; }
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; color: #fff; border-radius: 28px; padding: clamp(28px, 5vw, 56px);
    background: radial-gradient(60% 120% at 100% 0%, rgba(246, 234, 81, .25), transparent 60%), linear-gradient(135deg, var(--brand), #1d1a8a); }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .3em; }
.cta-band p { opacity: .88; max-width: 60ch; margin: 0; }

/* ---------- Moje strony ---------- */
.usage { margin-bottom: 18px; }
.usage__head { display: flex; justify-content: space-between; margin-bottom: 10px; }
.usage__head span { color: var(--muted); font-weight: 600; }
.usage__bar { height: 10px; border-radius: 99px; background: #eceef5; overflow: hidden; }
.usage__bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--brand-3)); }
.usage p { margin: 10px 0 0; }
.sheet__credit { text-align: center; color: var(--muted); font-size: .85rem; margin: 26px 0 0; }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.sites { display: grid; gap: 16px; }
.site-card { display: grid; grid-template-columns: 150px 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.site-card__thumb { background: linear-gradient(135deg, var(--c1), var(--c2)); display: grid; place-items: center; color: #fff; font-size: 3rem; font-weight: 800; }
.site-card__body { padding: 18px 22px; }
.site-card h2 { font-size: 1.25rem; margin: 0 0 4px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #eef0f6; font-size: .8rem; font-weight: 700; margin-right: 6px; }
.badge--ok { background: #e2f6ea; color: #155c35; }
.count { background: var(--yellow); color: var(--fg); border-radius: 999px; padding: 0 7px; font-size: .78rem; }
.empty { text-align: center; }
.msg { margin-bottom: 14px; }
.msg--new { border-left: 4px solid var(--brand); }
.msg dl { margin: 0; display: grid; grid-template-columns: 160px 1fr; gap: 6px 16px; }
.msg dt { font-weight: 700; }
.msg dd { margin: 0; }

.footer { padding: 30px 0; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); margin-top: 40px; }

@media (max-width: 760px) {
    .modes { grid-template-columns: 1fr; }
    .site-card { grid-template-columns: 1fr; }
    .site-card__thumb { height: 90px; }
    .msg dl { grid-template-columns: 1fr; }
    .topnav { gap: 10px; }
    .topnav a:not(.btn) { font-size: .85rem; }
    .topnav__optional { display: none; }
    .sheet { padding: 0 10px 40px; }
    .search { flex: 1 1 100%; }
    .tmodal { padding: 0; }
    .tmodal__box { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Telefon: kategorie szablonów w jednym przewijanym rzędzie (jak w galeriach Wix) */
@media (max-width: 640px) {
    .cats { flex-wrap: nowrap; overflow-x: auto; margin: 0 -4px; padding: 2px 4px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .cats::-webkit-scrollbar { display: none; }
    .cat { flex: none; }
    .search { flex-basis: 100%; }
}

/* Moderacja modułów */
.mod-row { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* Panel sklepu */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 18px; border-bottom: 2px solid #e4e6f0; }
.tabs a { padding: 10px 14px; font-weight: 600; text-decoration: none; color: #3d4256; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a.is-active { color: #3A35F4; border-bottom-color: #3A35F4; }
.tabs a:focus-visible { outline: 3px solid #3A35F4; outline-offset: 2px; }
.notice { padding: 12px 14px; border-radius: 10px; background: #e7f6ec; color: #145c2d; margin: 0 0 16px; }
.notice--error { background: #fdecea; color: #8a1c13; }
.notice ul { margin: 0; padding-left: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 12px; }
.grid-4 { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 0 12px; }
.grid-4:has(> :nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4, .grid-4:has(> :nth-child(5)) { grid-template-columns: 1fr; } }
.product-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.product-row > div:first-of-type { flex: 1 1 220px; }
.product-row img { border-radius: 10px; object-fit: cover; }
.table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.table td, .table th { padding: 8px; border-bottom: 1px solid #e4e6f0; text-align: left; }
.table td:last-child, .table th:last-child { text-align: right; }
.form h2 { margin-top: 22px; }
