/* =========================================================
   SETUP.TR — FAZ 5
   user-flow.css
   ORTAK KULLANICI YÜZEYİ

   Bu dosya YENİ bir tasarım sistemi DEĞİLDİR. Mevcut
   "kağıt + kurşun kalem" kimliğinin değişkenlerini kullanır ve
   şu blokları tanımlar:

     · sayfa kabuğu             (setup-flow, setup-flow-page)
     · seçim özet çubuğu     (selection-bar)
     · koleksiyon kartları   (collection-card)
     · koleksiyon detayı     (collection-detail)
     · "Benim Setup'ım"      (setup-*)
     · ortak durum/boş blok  (setup-status, setup-empty)
     · ekran okuyucu gizli metin (visually-hidden)

   ORTAK ÜST MENÜ BURADA DEĞİLDİR — HİÇBİR PARÇASI
   ------------------------------------------------
   Menü bileşene taşındı ve artık TAMAMEN orada yaşıyor
   (ana sayfa ile AYNI tek kaynak):
       components/nav-bar/index-nav-bar.html   (kabuk)
       components/nav-bar/index-nav-bar-loader.js (menü öğeleri)
       components/nav-bar/nav-bar.css          (tüm stiller)

   Burada `.site-header`, `.container`, `.logo`, `.main-nav`,
   `.nav-menu`, `.nav-link`, `.hamburger` kurallarının HİBİRİ
   yoktur. Sayfalarda da `.setup-flow-header` sınıfı kalmadı:
   başlığın TAMAMINI bileşen basar.

   Bu dosyada yalnızca sayfa düzeni kaldı (`.setup-flow*`,
   seçim özeti, koleksiyonlar, "Benim Setup'ım" listesi).

   Kapsam ilkesi: her kural kendi sınıfıyla başlar; başka
   sayfaların düzenini ETKİLEMEZ.
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=LXGW+Marker+Gothic&family=Michroma&display=swap");

/* ------------------------------------------------------------
   1. ORTAK KABUK

   Tasarım değişkenleri TEK yerde tanımlanır. `dashboard.css`
   kendi kapsamı için aynı değerleri yerel olarak tanımlar ve
   yerel tanım kazanır; indirme yöneticisi ise buradan miras
   alır. Böylece üç sayfa da aynı kimliği konuşur ve değişken
   iki yerde tanımlanmaz.

   `var(--ink, #151515)` gibi YEDEKLER kullanılmaz: `--ink`
   tanımlanırken kendisine başvurmak döngüsel tanım olurdu.
   ------------------------------------------------------------ */

/*
    Ortak kabuk. `dashboard.css` artık bu değerleri YENİDEN tanımlamaz
    (Faz 5.3.4); böylece uygulamanın beş sayfası da aynı kâğıt tonunu,
    aynı çizgi ve gölge rengini kullanır. Sayfa değiştirince renk
    kayması olmaz.
*/
:root {
    --ink: #151515;
    --ink-soft: #383838;

    /* `--pencil` ve `--light-pencil` dashboard'da yerel olarak
       tanımlıydı; ortak kabuğun parçası hâline getirildi ki footer
       ve diğer bileşenler dashboard DIŞINDA da bu değeri bulabilsin. */
    --pencil: #777;
    --light-pencil: #aaa;

    --paper: #f7f7f3;
    --white: #fff;
    --muted: #737373;
    --line: #bdbdb8;
    --shadow: #d2d2cc;

    /* Ana sayfa menüsüyle aynı yumuşatma eğrisi
       (`index.css`in `--ease` değeri). Nav alt çizgisi ve
       mobil çekmece bu eğriyi kullanır. */
    --ease: 240ms cubic-bezier(.2, .75, .25, 1);
    --soft: #ededE8;
}

/*
    Faz 5.3.4 — SATIR YÜKSEKLİĞİ ORTAKLAŞTIRILDI.

    `style.css` uygulama sayfalarına `body { line-height: 1.6 }`
    veriyor, ama indirme yöneticisi `style.css` YÜKLEMEDİĞİ için
    orada `normal` (~1.2) geçerliydi. Aynı tipografiyle yazılmış iki
    metin bloğu, sayfalar arasında geçerken farklı satır aralığıyla
    görünüyordu.

    Artık beş uygulama sayfasının beşinde de `1.6`. `style.css`in
    yüklenmeye devam ettiği sayfalarda değer aynı kaldığı için görünüm
    DEĞİŞMEZ; yalnızca indirme yöneticisi hizalanır.
*/
.setup-flow,
.setup-flow-page {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background-color: var(--paper);
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

.setup-flow > .dashboard-main,
.setup-flow-page > .setup-flow-main {
    flex: 1 0 auto;
}

/* ------------------------------------------------------------
   1b. ORTAK DÜĞME (sketch-btn)

   `download-manager.css` bu kuralları kendi içinde taşıyordu.
   Artık TEK kaynak buradadır; indirme yöneticisi sayfası da bu
   dosyayı yükler, görünüm birebir aynıdır.
   ------------------------------------------------------------ */

.sketch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 17px;
    border: 2px solid var(--ink);
    background: var(--white);
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
    font-family: "Segoe Print", "Comic Sans MS", cursive;
    font-size: .75rem;
    font-weight: 700;
    box-shadow: 4px 4px 0 var(--shadow);
    clip-path: polygon(3% 5%, 98% 0, 96% 92%, 2% 97%);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.sketch-btn:hover {
    transform: translateY(-2px) rotate(-1deg);
    box-shadow: 6px 6px 0 var(--shadow);
}

.sketch-btn:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.sketch-btn.small {
    min-height: 42px;
    padding: 8px 13px;
    font-size: .68rem;
}

.sketch-btn.dark {
    background: var(--ink);
    color: #fff;
}

/* ------------------------------------------------------------
   3. SEÇİM ÖZET ÇUBUĞU
   ------------------------------------------------------------ */

.selection-bar {
    position: sticky;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 18px auto 0;
    padding: 12px 16px;
    border: 2px solid var(--ink);
    border-radius: 12px 7px 11px 6px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 4px 5px 0 var(--shadow);
}

.selection-bar[hidden] {
    display: none;
}

.selection-bar__count {
    margin: 0;
    font-family: "Segoe Print", "Comic Sans MS", cursive;
    font-size: .86rem;
    font-weight: 700;
}

.selection-bar__actions {
    display: flex;
    gap: 9px;
    margin-left: auto;
    flex-wrap: wrap;
}

.selection-bar__live {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ------------------------------------------------------------
   4. KOLEKSİYON KARTLARI
   ------------------------------------------------------------ */

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.collections-grid--page {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.collection-card {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 16px;
    border: 1.5px solid var(--ink);
    border-radius: 12px 7px 11px 6px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 3px 4px 0 var(--shadow);
}

.collection-card:nth-child(even) {
    transform: rotate(.3deg);
}

.collection-card__title {
    margin: 0;
    font-family: "Segoe Print", "Comic Sans MS", cursive;
    font-size: 1.02rem;
    font-weight: 600;
}

.collection-card__desc {
    margin: 0;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.45;
}

.collection-card__count {
    margin: 0;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}

.collection-card--row {
    display: grid;
    grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
    align-items: stretch;
    gap: 20px;
}

.collection-card__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.collection-card__info .collection-card__count {
    margin-top: auto;
}

.collection-card__info .collection-card__select {
    width: 100%;
}

.collection-card__content {
    min-width: 0;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, .16);
}

.collection-card__content-title {
    margin: 0 0 12px;
    color: #b8bac4;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.collection-card__items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.collection-card__item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 10px;
    background: rgba(255, 255, 255, .045);
    color: #e8e9ee;
    font-size: .78rem;
}

.collection-card__item .app-icon {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    font-size: .65rem;
    font-weight: 700;
}

.collection-card__item .app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}

.collection-card__item-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.collection-card__content-empty {
    margin: 0;
    color: #b8bac4;
    font-size: .82rem;
}

.collection-card__preview {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.collection-card__preview-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .76rem;
}

.collection-card__preview-item .app-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    overflow: hidden;
    font-size: .62rem;
    font-weight: 700;
    background: #f5f5f2;
}

.collection-card__preview-item .app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}

.collection-card__preview-more {
    font-size: .7rem;
    color: var(--muted);
}

.collection-card__inspect,
.collection-card__select {
    width: 100%;
}

.collection-card__select[data-selected="true"] {
    background: var(--ink);
    color: #fff;
}

/* Ana sayfadaki bölüm başlığı + "tüm profiller" bağlantısı. */
.collections-panel__head,
.featured-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 14px;
    margin-bottom: 12px;
}

.collections-panel__title,
.featured-panel__title {
    margin: 0;
    font-family: "Segoe Print", "Comic Sans MS", cursive;
    font-size: 1.25rem;
    font-weight: 600;
}

.collections-panel__sub,
.featured-panel__sub {
    margin: 0;
    color: var(--muted);
    font-size: .78rem;
}

.collections-panel__all {
    margin-left: auto;
}

.collections-panel__status {
    margin: 0 0 12px;
    padding: 9px 12px;
    border: 1.5px dashed var(--line);
    border-radius: 8px;
    background: var(--white);
    font-size: .78rem;
}

.collections-panel__status.is-ok {
    border-style: solid;
    border-color: var(--ink);
}

.collections-panel__status.is-error {
    border-color: #b3261e;
    color: #8c1d18;
}

/* ------------------------------------------------------------
   5. KOLEKSİYON DETAYI
   ------------------------------------------------------------ */

.collection-detail {
    margin: 8px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .2);
}

.collection-detail[hidden] {
    display: none;
}

.collection-detail__title {
    margin: 0 0 4px;
    font-family: "Segoe Print", "Comic Sans MS", cursive;
    font-size: 1.4rem;
    font-weight: 600;
}

.collection-detail__count {
    margin: 0 0 10px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--muted);
}

.collection-detail__desc {
    margin: 0 0 12px;
    font-size: .82rem;
    line-height: 1.5;
}

.collection-detail__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.collection-detail__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    font-size: .78rem;
}

/* Seçili program gözle görülür şekilde işaretlenir. */
.collection-detail__item.selected {
    border-color: var(--ink);
    background: #f4f4f0;
}

.collection-detail__item.selected .collection-detail__item-name::after {
    content: " · seçildi";
    font-weight: 700;
}

.collection-detail__item .app-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    overflow: hidden;
    font-size: .64rem;
    font-weight: 700;
    background: #f5f5f2;
}

.collection-detail__item .app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}

.collection-detail__item-name {
    font-weight: 600;
}

.collection-detail__item-publisher {
    color: var(--muted);
    font-size: .7rem;
}

.collection-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.collection-detail__status {
    margin: 0;
    color: var(--muted);
    font-size: .8rem;
}

.collection-detail__status.is-error {
    color: #8c1d18;
}


/*
    ORTAK İÇERİK KABUĞU.

    Faz 5.3.4: `1000px` → `1200px`. Bu sayfanın içeriği 1000px iken
    başlığı 1200px idi; başlık içerikten geniş kalıyor ve kenarları
    hizalanmıyordu. Artık başlık, içerik ve footer aynı 1200px
    kabuğunu paylaşır: `.setup-flow-main`,
    `.dashboard-main`, `.download-manager-page`, ortak footer.
*/
.setup-flow-main {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 64px;
}

.setup-flow-page #navbar-placeholder,
.download-manager-page #navbar-placeholder {
    width: 100%;
    margin-inline-start: 0;
}

.setup-flow-main {
    padding-top: calc(var(--nav-header-h, 68px) + 20px);
}

.setup-head {
    margin-bottom: 18px;
}

.setup-head__eyebrow {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.setup-head__title {
    margin: 0;
    font-family: "Segoe Print", "Comic Sans MS", cursive;
    font-size: clamp(1.7rem, 4vw, 2.3rem);
}

.setup-head__lead {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: .98rem;
     letter-spacing: 0.07em;
}

.setup-head__count {
    margin: 10px 0 0;
    font-family: "Segoe Print", "Comic Sans MS", cursive;
    font-size: 1rem;
    font-weight: 700;
}

/* Durum / hata bloğu — ham istisna gösterilmez. */
.setup-status {
    margin: 0 0 16px;
    padding: 10px 13px;
    border: 1.5px dashed var(--line);
    border-radius: 9px;
    background: var(--white);
    font-size: .8rem;
}

.setup-status[hidden] {
    display: none;
}

.setup-status.is-ok {
    border-style: solid;
    border-color: var(--ink);
}

.setup-status.is-error {
    border-color: #b3261e;
    color: #8c1d18;
}

.setup-list {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.setup-list[hidden] {
    display: none;
}

.setup-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 11px 13px;
    border: 1.5px solid var(--line);
    border-radius: 10px 6px 9px 5px;
    background: var(--white);
}

.setup-row .app-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1.5px solid var(--line);
    border-radius: 50%;
    background: #f5f5f2;
    font-size: 1.15rem;
    font-weight: 700;
}

.setup-row .app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 7px;
}

.setup-row__info {
    min-width: 0;
}

.setup-row__name {
    margin: 0 0 3px;
    font-family: "Segoe Print", "Comic Sans MS", cursive;
    font-size: 1rem;
    font-weight: 600;
}

.setup-row__meta {
    margin: 0;
    color: var(--muted);
    font-size: .74rem;
}

.setup-row__summary {
    margin: 5px 0 0;
    font-size: .78rem;
    line-height: 1.45;
}

.setup-row__badge {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    background: #f4f4f0;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.setup-row__actions {
    display: flex;
    gap: 8px;
}

.setup-empty {
    padding: 46px 18px 40px;
    text-align: center;
    border: 2px dashed var(--line);
    border-radius: 13px 8px 12px 6px;
    background: rgba(255, 255, 255, .7);
}

.setup-empty[hidden] {
    display: none;
}

.setup-empty h2 {
    margin: 0 0 8px;
    font-family: "Segoe Print", "Comic Sans MS", cursive;
    font-size: 1.3rem;
    font-weight: 500;
}

.setup-empty p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: .84rem;
}

.setup-empty__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.setup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1.5px dashed var(--line);
}

.setup-actions[hidden] {
    display: none;
}

.setup-actions #downloadAllBtn {
    margin-left: auto;
}

/*
   OPTİMİZASYON SEÇİMİ KARTI (Faz 6)

   "Benim Setup'ım"da optimizasyon paketi, program satırlarının
   ÜSTÜNDE ve onlardan AYRI bir kart olarak durur. Kabuk (`<section>`)
   `hidden` özniteliğiyle başlar; `optimization-view.js` seçim
   varsa doldurur, yoksa gizli tutar.

   Bu bir "ortak bileşen" DEĞİLDİR: yalnızca bu sayfada geçer,
   bu yüzden kural `ui-components.css`e değil, bu sayfanın kendi
   stil dosyasına yazılır. Kartın GÖRÜNÜMü `.ui-package-card`
   ile ortak bileşenden gelir.
*/
.optimization-selection {
    margin-bottom: 16px;
}

.setup-head__title {
    font-family: "Michroma", "Trebuchet MS", Arial, sans-serif;
    font-weight: 400;
    letter-spacing: -.035em;
}

/* Öne çıkan bölümü (dashboard içinde). */
.featured-panel {
    margin: 4px 0 18px;
}

.featured-panel[hidden] {
    display: none;
}

/*
    Faz 5.3.3 / P0-03 — `.collections-panel` için DE AÇIK gizleme kuralı.

    Sorun: `.collections-panel`in NE temel kuralı NE de `[hidden]`
    kuralı vardı; yalnızca kullanıcı ajanının öntanımlı
    `[hidden] { display: none }` davranışına güveniliyordu.
    `dashboard.css`te bu öğeye artık `grid-column: 1 / -1` verildiği
    için ileride bir `display` bildirimi eklenirse panel `hidden`
    olmasına rağmen ızgarada GÖRÜNÜR kalır ve katalog yine daralır.
    `.featured-panel[hidden]` ile aynı davranış burada da açıkça
    tanımlanır.

    Bu kural YALNIZCA `hidden` durumunda `display` bildirir; görünür
    hâlde `.collections-panel`in tasarımı değişmez.
*/
.collections-panel[hidden] {
    display: none;
}

/* ------------------------------------------------------------
   8. ERİŞİLEBİLİRLİK YARDIMCILARI
   ------------------------------------------------------------ */

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/*
   Hareket azaltma tercihi varsa geçişler ve uçuş animasyonu
   kapatılır. Düğme/bağlantı davranışı DEĞİŞMEZ.

   NOT: `.site-nav-link` bu listeden ÇIKARILDI — menü artık
   `components/nav-bar/nav-bar.css` ile geliyor ve
   kendi hareket-azaltma kuralını kendi dosyasında taşıyor.
   (Bu blok, `user-flow.css` yüklemeyen sayfalarda
   `selection-bar` / `collection-card` için hâlâ gereklidir.)
*/
@media (prefers-reduced-motion: reduce) {
    .selection-bar,
    .collection-card {
        transition: none;
    }
}

/* ------------------------------------------------------------
   9. DUYARLI DAVRANIŞ
   ------------------------------------------------------------ */


@media (max-width: 560px) {
    .setup-flow-main {
        width: calc(100% - 20px);
    }

    .setup-row {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .setup-row .app-icon {
        width: 46px;
        height: 46px;
    }

    .setup-row__actions {
        grid-column: 1 / -1;
    }

    .setup-row__actions .sketch-btn {
        width: 100%;
    }

    .selection-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .selection-bar__actions {
        margin-left: 0;
        width: 100%;
    }

    .selection-bar__actions .sketch-btn {
        flex: 1;
    }

    .collections-grid {
        grid-template-columns: 1fr;
    }

    .collection-card--row {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .collection-card__info .collection-card__count {
        margin-top: 0;
    }

    .collection-card__content {
        padding: 14px 0 0;
        border-top: 1px solid rgba(255, 255, 255, .16);
        border-left: 0;
    }

    .setup-actions .sketch-btn {
        width: 100%;
    }
}

/* ------------------------------------------------------------
   10. ANA SAYFA İLE ORTAK KOYU / CAM YÜZEY
   ------------------------------------------------------------ */

:root {
    --ink: #f5f5f5;
    --ink-soft: #dedee4;
    --pencil: #a5a6b0;
    --light-pencil: #777984;
    --paper: #070707;
    --white: rgba(255, 255, 255, .075);
    --muted: #a5a5a5;
    --line: rgba(255, 255, 255, .16);
    --shadow: rgba(0, 0, 0, .34);
    --soft: rgba(255, 255, 255, .055);
}

.setup-flow,
.setup-flow-page {
    color: var(--ink);
    background-color: #000;
    background-image:
        linear-gradient(rgba(5, 6, 10, .68), rgba(5, 6, 10, .84)),
        url("../components/backgrounds/other-backgrounds.svg");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
}

.sketch-btn {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 7px;
    background: rgba(255, 255, 255, .07);
    color: #f5f5f5;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.25;
    box-shadow: 0 6px 18px rgb(0, 0, 0);
    clip-path: none;
    transform: none;
    transition:
        transform .24s cubic-bezier(.2, .75, .25, 1),
        border-color .24s cubic-bezier(.2, .75, .25, 1),
        background .24s cubic-bezier(.2, .75, .25, 1),
        box-shadow .24s cubic-bezier(.2, .75, .25, 1);
}

.sketch-btn.dark {
    border-color: rgb(255, 255, 255);
    background: rgba(253, 253, 253, 0.288);
    color: #f5f5f5;
    box-shadow: 0 5px 15px  rgba(255, 255, 255, 0.551);
   
}

.sketch-btn:hover:not(:disabled):not([aria-disabled="true"]) {
    border-color: rgba(0, 0, 0, 0.386);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.601), rgba(0, 0, 0, 0.585));
    color: white;
    transform: translateY(-1px);
   box-shadow: 0 0 16px rgba(251, 249, 249, 0.299);
   ;
}
.sketch-btn.small.selection-bar__view {
    border-color: rgba(0, 0, 0, 0.386);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.632), rgba(255, 255, 255, 0.675));
    color: rgb(0, 0, 0);
    transform: translateY(0);
   box-shadow: 0 0 16px rgba(251, 249, 249, 0.299);
    transition: all 0.2s ease;
}


.sketch-btn:active:not(:disabled) {
    transform: translateY(1px) scale(.98);
}

.sketch-btn:disabled,
.sketch-btn[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: .52;
    transform: none;
    box-shadow: none;
}

.sketch-btn.small {
    min-height: 44px;
    padding: 10px 17px;
    font-size: .88rem;
}

.sketch-btn:focus-visible,
.collection-card:focus-visible,
.collection-detail a:focus-visible,
.collection-detail button:focus-visible,
.setup-flow-main a:focus-visible,
.setup-flow-main button:focus-visible,
.setup-flow-main input:focus-visible,
.setup-flow-main select:focus-visible,
.setup-flow-main textarea:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .9);
    outline-offset: 3px;
}

.selection-bar,
.collection-card,
.setup-row,
.setup-empty,
.setup-flow-panel {
    border-color: rgba(255, 255, 255, 0.51);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .035));
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, .055);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.collection-card {
    min-width: 0;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 19px;
    background: rgba(0, 0, 0, 0.462);
    transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease, transform .22s ease;
    
}

.collections-page .selection-bar {
    position: fixed;
    inset-inline-start: 50%;
    top: auto;
    bottom: 0;
    width: fit-content;
    max-width: calc(100% - 32px);
    justify-content: center;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
}

.collections-page .selection-bar__actions {
    justify-content: center;
    margin-inline: 0;
}

@media (max-width: 560px) {
    .collections-page .selection-bar {
        align-items: center;
        text-align: center;
    }

    .collections-page .selection-bar__actions {
        width: 100%;
    }
}

.collection-card:hover {
    border-color: rgba(255, 255, 255, .42);
    background: linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .045));
    box-shadow: 0 18px 38px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .06);
    transform: translateY(-2px);
}

.collection-card__title {
    font-family: "LXGW Marker Gothic", "Trebuchet MS", Arial, sans-serif;
    font-size: 1.15rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.collection-card__desc {
    color: #c4c6cf;
    font-size: .84rem;
    line-height: 1.55;
}

.collection-card__preview-item,
.collection-detail__item-name,
.setup-row__name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.collection-card__select[data-selected="true"],
.collection-detail__item.selected {
    border-color: rgba(255, 255, 255, .65);
    background: rgba(255, 255, 255, .12);
    color: #f5f5f5;
}

.collection-card__select[data-selected="true"]:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .08));
}

.collection-card:nth-child(even) {
    transform: none;
}

.collection-card:nth-child(even):hover {
    transform: translateY(-2px);
}

.collections-grid--page > .setup-empty {
    grid-column: 1 / -1;
}

.collections-panel__title,
.featured-panel__title,
.collection-detail__title,
.setup-head__title,
.setup-row__name,
.setup-empty h2,
.selection-bar__count {
    font-family: "Trebuchet MS", Arial, sans-serif;
    color: #f5f5f5;
}

.collection-card__desc,
.collection-card__preview-more,
.collection-detail__count,
.collection-detail__item-publisher,
.collections-panel__sub,
.featured-panel__sub,
.setup-head__lead,
.setup-row__meta,
.setup-empty p {
    color: #b8bac4;
}

.collection-card__preview-item .app-icon,
.collection-detail__item .app-icon,
.setup-row .app-icon {
    border-color: rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .09);
    color: #f5f5f5;
}

.collection-card__count,
.setup-row__badge,
.vault-badge,
.queue-status {
    border-color: rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .08);
    color: #e8e9ee;
}

.collection-card__select[data-selected="true"],
.collection-detail__item.selected {
    border-color: rgba(255, 255, 255, .65);
    background: rgba(255, 255, 255, .12);
    color: #f5f5f5;
}

.collection-detail__item,
.vault-history__item {
    border-color: rgba(255, 255, 255, .15);
    border-radius: 10px;
    background: rgba(255, 255, 255, .045);
    color: #e8e9ee;
}

.collection-detail__item.selected .collection-detail__item-name::after {
    color: #fff;
}

.collections-panel__status,
.setup-status {
    border-color: rgba(255, 255, 255, .2);
    border-radius: 12px;
    background: rgba(255, 255, 255, .07);
    color: #e8e9ee;
}

.collections-panel__status.is-ok,
.setup-status.is-ok {
    border-color: rgba(74, 222, 128, .5);
    background: rgba(74, 222, 128, .1);
    color: #b8f3cc;
}

.collections-panel__status.is-error,
.setup-status.is-error {
    border-color: rgba(248, 113, 113, .55);
    background: rgba(248, 113, 113, .1);
    color: #fecaca;
}

.setup-row__badge {
    border-radius: 999px;
}

.setup-actions {
    border-color: rgba(255, 255, 255, .18);
}

@media (max-width: 760px) {
    .setup-flow,
    .setup-flow-page {
        background-attachment: scroll;
    }

    .setup-flow-main {
        padding-top: calc(var(--nav-header-h, 60px) + 16px);
    }

    .download-manager-page .dm-main {
        padding-top: calc(var(--nav-header-h, 60px) + 16px);
    }

    .collection-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sketch-btn {
        transition: none;
    }
}

.download-manager-page .dm-main {
    padding-top: calc(var(--nav-header-h, 68px) + 20px);
}

.setup-flow-page .setup-head__title {
    font-family: "Michroma", "Trebuchet MS", Arial, sans-serif;
    font-size: clamp(1.45rem, 3vw, 9.2rem);
    font-weight: 400;
    letter-spacing: -.035em;
}
