@font-face { font-family: "Lato"; src: url("/assets/fonts/Lato-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/assets/fonts/Lato-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/assets/fonts/Lato-Black.ttf") format("truetype"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url("/assets/fonts/LibreBaskerville-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url("/assets/fonts/LibreBaskerville-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
    --pine: #173b3f;
    --forest: #2f4f4f;
    --eucalyptus: #508072;
    --gold: #d4af37;
    --gold-soft: #efe2ad;
    --ivory: #f5f3ee;
    --white: #fff;
    --ink: #173336;
    --muted: #687a78;
    --line: #dce4df;
    --danger: #9a352d;
    --shadow: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--ivory); }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: linear-gradient(150deg, #f8f7f2 0%, #eef3ef 100%);
    font-family: Lato, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: "Libre Baskerville", Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(2.25rem, 6vw, 4.9rem); line-height: .98; letter-spacing: -.035em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .35rem; }
button, input, select, textarea { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.landing {
    background:
        radial-gradient(circle at 12% 8%, rgba(212, 175, 55, .18), transparent 28%),
        radial-gradient(circle at 88% 32%, rgba(80, 128, 114, .34), transparent 34%),
        linear-gradient(145deg, #102f33 0%, var(--pine) 48%, #294e4b 100%);
    color: var(--ivory);
}
.landing-topbar { width: min(1240px, calc(100% - 48px)); min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 0 auto; border-bottom: 1px solid rgba(255,255,255,.13); }
.landing-brand { flex: 0 0 auto; }
.landing-brand img { display: block; width: 190px; height: auto; }
.landing-topbar nav { display: flex; align-items: center; gap: 26px; }
.landing-topbar nav a { color: #dce8e3; font-size: .88rem; font-weight: 800; text-decoration: none; }
.landing-topbar nav a:not(.landing-login):hover { color: var(--gold-soft); }
.landing-topbar .landing-login { padding: 10px 17px; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; color: #fff; }
.landing-main { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.landing-hero { min-height: calc(100vh - 88px); display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, .78fr); gap: clamp(44px, 7vw, 92px); align-items: center; padding: clamp(62px, 9vw, 118px) 0; }
.landing-copy h1 { max-width: 760px; margin-bottom: 24px; font-size: clamp(3rem, 6.4vw, 6rem); }
.lead { max-width: 700px; color: #dce8e3; font-size: clamp(1.05rem, 1.65vw, 1.28rem); line-height: 1.65; }
.landing-copy .hero-actions { margin-bottom: 32px; }
.landing-copy .button.secondary { color: var(--ivory); border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.04); }
.landing-trust { display: flex; flex-wrap: wrap; gap: 12px 24px; color: #cbdad5; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.landing-trust span::before { content: "✓"; margin-right: 7px; color: var(--gold); }
.install-guide { padding: clamp(26px, 4vw, 40px); border: 1px solid rgba(255,255,255,.17); border-radius: 28px; background: rgba(245, 243, 238, .96); color: var(--ink); box-shadow: none; }
.install-guide-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.install-guide-head div > span, .install-guide-head div > strong { display: block; }
.install-guide-head div > span { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.install-guide-head div > strong { margin-top: 5px; color: var(--pine); }
.status-ready { padding: 7px 10px; border-radius: 999px; color: #245f45; background: #e2f2e8; font-size: .7rem; font-weight: 900; white-space: nowrap; }
.install-guide h2 { margin: 27px 0 18px; font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
.install-guide ol { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.install-guide li { display: flex; align-items: center; gap: 14px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.install-guide li > span { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--pine); background: var(--gold-soft); font-weight: 900; }
.install-guide li strong, .install-guide li small { display: block; }
.install-guide li small { margin-top: 3px; color: var(--muted); line-height: 1.35; }
.landing-features { padding: 84px 0 100px; border-top: 1px solid rgba(255,255,255,.13); scroll-margin-top: 90px; }
.landing-section-heading { max-width: 760px; margin-bottom: 30px; }
.landing-section-heading h2 { color: var(--ivory); font-size: clamp(2rem, 4vw, 3.5rem); }
.landing-footer { width: min(1240px, calc(100% - 48px)); display: flex; justify-content: space-between; gap: 20px; margin: 0 auto; padding: 26px 0 34px; border-top: 1px solid rgba(255,255,255,.13); color: #bfcfca; font-size: .8rem; }
.landing-footer a { color: var(--ivory); font-weight: 800; }
.brand-logo { display: block; width: 188px; height: auto; object-fit: contain; }
.brand-logo--dark { width: 176px; }
.brand-logo--light { width: 190px; }
.eyebrow { margin-bottom: 14px; color: var(--gold); font-size: .75rem; font-weight: 800; letter-spacing: .22em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 48px; }
.button {
    min-height: 48px; display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 22px; border: 1px solid transparent; border-radius: 999px;
    text-decoration: none; font-weight: 800; cursor: pointer; transition: .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { color: var(--pine); background: var(--gold); box-shadow: none; }
.button.secondary { color: var(--pine); border-color: var(--line); background: var(--white); }
.button.compact { min-height: 40px; padding: 8px 16px; }
.button.danger { color: #fff; border-color: var(--danger); background: var(--danger); }
.button.disabled { color: #a9b6b3; background: rgba(255,255,255,.09); cursor: default; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-grid article { min-height: 220px; padding: 26px; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; background: rgba(255,255,255,.055); }
.feature-grid strong, .feature-grid span { display: block; }
.feature-grid strong { margin-top: 32px; color: #fff; font-family: "Libre Baskerville", Georgia, serif; font-size: 1.3rem; }
.feature-grid p { margin: 10px 0 0; color: #cddbd7; line-height: 1.55; }
.feature-grid .feature-number { color: var(--gold); font-size: .76rem; font-weight: 900; letter-spacing: .12em; }

.auth-page { display: grid; place-items: center; padding: 24px; background: linear-gradient(145deg, var(--pine), var(--forest)); }
.auth-card { width: min(470px, 100%); padding: 42px; border-radius: 26px; background: var(--white); box-shadow: none; }
.auth-card h1 { margin-bottom: 12px; font-size: 2.7rem; }
.auth-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }
.brand-link { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 34px; color: var(--pine); text-decoration: none; font-weight: 900; }
.brand-link.light { margin: 0; color: var(--ivory); }
.stack-form { display: grid; gap: 16px; margin-top: 24px; }
label > span, .stack-form label { font-size: .86rem; font-weight: 800; }
input[type="text"], input[type="password"], input[type="search"], input[type="number"], select, textarea {
    width: 100%; min-height: 46px; margin-top: 7px; padding: 10px 13px;
    color: var(--ink); border: 1px solid #ccd8d3; border-radius: 11px; background: var(--white);
}
input:focus, select:focus, textarea:focus { border-color: var(--eucalyptus); outline: 3px solid rgba(212,175,55,.35); outline-offset: 1px; box-shadow: none; }
textarea { resize: vertical; }
.notice { margin: 18px 0; padding: 14px 16px; border-radius: 12px; font-weight: 700; }
.notice.error { color: var(--danger); background: #fff0ee; border: 1px solid #f1c5c0; }
.notice.success { color: #245f45; background: #eaf7ef; border: 1px solid #bfdfca; }
.notice.warning { color: #76570a; background: #fff8df; border: 1px solid #ead58c; }

.topbar { position: sticky; z-index: 20; top: 0; min-height: 76px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(18px, 3vw, 42px); padding: 12px clamp(20px, 4vw, 58px); color: var(--ivory); background: rgba(23, 59, 63, .98); box-shadow: none; backdrop-filter: blur(14px); }
.topbar.admin-topbar { grid-template-columns: minmax(0, 1fr) auto; }
.topbar .panel-menu { display: flex; align-items: center; justify-content: center; gap: 7px; }
.topbar .panel-menu a { position: relative; min-height: 42px; display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 10px; color: #dce8e3; text-decoration: none; font-size: .84rem; font-weight: 800; }
.topbar .panel-menu a:hover { color: #fff; background: rgba(255,255,255,.09); }
.topbar .panel-menu a > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: var(--gold-soft); background: rgba(255,255,255,.08); }
.topbar .panel-menu b { min-width: 20px; padding: 2px 6px; border-radius: 999px; color: var(--pine); background: var(--gold); font-size: .68rem; text-align: center; }
.topbar-account { display: flex; align-items: center; gap: 12px; }
.topbar-account span { color: #a9c0ba; font-size: .72rem; white-space: nowrap; }
.topbar-account a { padding: 8px 13px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #fff; font-size: .78rem; font-weight: 800; text-decoration: none; }
.dashboard { width: min(1180px, calc(100% - 36px)); display: flex; flex-direction: column; margin: 0 auto; padding: 48px 0 80px; }
.dashboard-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.dashboard-head h1 { margin-bottom: 12px; font-size: clamp(2.4rem, 5vw, 4.2rem); }
.dashboard-head p { color: var(--muted); }
.admin-shell, .admin-tabs-page { max-width: 100%; overflow-x: clip; }
.admin-tabs-page .dashboard { padding-top: 30px; }
.admin-tabs-page .dashboard-head { align-items: center; margin-bottom: 18px; }
.admin-tabs-page .dashboard-head h1 { margin-bottom: 7px; font-size: clamp(2rem, 3.8vw, 3.15rem); }
.admin-tabs-page .dashboard-head .eyebrow { margin-bottom: 8px; }
.admin-tabs-page .dashboard-head p { margin-bottom: 0; }
.revision-card { min-width: 180px; padding: 18px; border-radius: 18px; color: var(--ivory); background: var(--forest); }
.revision-card span, .revision-card strong, .revision-card small { display: block; }
.revision-card span, .revision-card small { color: #cbdad5; font-size: .75rem; }
.revision-card strong { margin: 5px 0; color: var(--gold); font-size: 1.6rem; }
.panel-card { margin-top: 20px; padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); border-radius: 24px; background: var(--white); box-shadow: none; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section-heading h2, .section-heading p { margin-bottom: 0; }
.section-heading p { margin-top: 5px; color: var(--muted); }
.subsection-heading { margin: 34px 0 10px; padding-top: 30px; border-top: 1px solid var(--line); }
.subsection-heading h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.playlist-table { display: grid; gap: 9px; }
.dashboard-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 4px; }
.dashboard-shortcuts a { display: flex; align-items: flex-start; gap: 12px; min-height: 104px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; color: var(--pine); background: var(--white); box-shadow: none; text-decoration: none; }
.dashboard-shortcuts a:hover { border-color: var(--gold); transform: translateY(-1px); }
.dashboard-shortcuts strong, .dashboard-shortcuts small { display: block; }
.dashboard-shortcuts small { margin-top: 4px; color: var(--muted); line-height: 1.35; }
.shortcut-number { flex: 0 0 auto; padding-top: 2px; color: var(--gold); font-size: .7rem; font-weight: 900; letter-spacing: .08em; }
.dashboard-tabs { position: sticky; z-index: 15; top: 76px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin: 0 0 8px; padding: 8px; border: 1px solid #ccd8d3; border-radius: 18px; background: rgba(245,243,238,.96); box-shadow: none; backdrop-filter: blur(12px); }
.dashboard-tabs a { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 9px; align-items: center; padding: 11px 12px; border: 1px solid transparent; border-radius: 12px; color: var(--forest); text-decoration: none; }
.dashboard-tabs a > span { grid-row: 1 / 3; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: var(--pine); background: #e8efeb; font-weight: 900; }
.dashboard-tabs a strong, .dashboard-tabs a small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-tabs a strong { font-size: .8rem; }
.dashboard-tabs a small { color: var(--muted); font-size: .67rem; }
.dashboard-tabs a:hover { border-color: #d9c77f; background: #fffdf5; }
.dashboard-tabs a[aria-selected="true"] { color: var(--ivory); border-color: var(--pine); background: var(--pine); box-shadow: none; }
.dashboard-tabs a[aria-selected="true"] > span { color: var(--pine); background: var(--gold); }
.dashboard-tabs a[aria-selected="true"] small { color: #cbdad5; }
.admin-tab-panel[hidden] { display: none !important; }
.admin-tab-panel > .dashboard-section-heading { margin-top: 28px; }
.playlist-header, .playlist-row { display: grid; grid-template-columns: 80px minmax(150px, .62fr) minmax(260px, 1.2fr) minmax(140px, .44fr) 42px; gap: 10px; align-items: center; }
.playlist-header { padding: 0 8px; color: var(--muted); font-size: .74rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.playlist-row { padding: 9px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfa; }
.playlist-row input[type="text"] { margin: 0; }
.playlist-actions { display: flex; align-items: center; gap: 7px; }
.playlist-actions .button { width: 100%; min-height: 38px; padding: 7px 12px; font-size: .78rem; white-space: nowrap; }
.radio-cell { display: flex; align-items: center; gap: 7px; color: var(--forest); font-size: .8rem; }
.radio-cell input { accent-color: var(--gold); }
.icon-button { width: 36px; height: 36px; border: 0; border-radius: 50%; color: var(--danger); background: #faecea; font-size: 1.4rem; cursor: pointer; }
.settings-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; margin-top: 22px; }
.product-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
.product-publish-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 16px 0 12px; padding: 18px 20px; border: 2px solid var(--line); border-radius: 17px; background: #f7f8f7; }
.product-publish-card.is-enabled { border-color: #6bb68a; background: #eef9f2; box-shadow: none; }
.product-publish-card.is-disabled { border-color: #d8c7c7; background: #fff7f7; }
.product-publish-card h3 { margin: 3px 0 5px; color: var(--pine); font-family: "Libre Baskerville", Georgia, serif; font-size: 1.25rem; }
.product-publish-card p { margin: 0; color: var(--muted); }
.product-publish-toggle { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; cursor: pointer; }
.product-publish-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.product-publish-toggle > span { position: relative; display: block; width: 58px; height: 32px; border-radius: 999px; background: #a9b3af; transition: background .18s ease; }
.product-publish-toggle > span i { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: none; transition: transform .18s ease; }
.product-publish-toggle input:checked + span { background: #2e9a63; }
.product-publish-toggle input:checked + span i { transform: translateX(26px); }
.product-publish-toggle input:focus-visible + span { outline: 3px solid rgba(212,175,55,.36); outline-offset: 3px; }
.product-publish-toggle strong { min-width: 104px; color: var(--muted); font-size: .78rem; letter-spacing: .05em; }
.product-publish-card.is-enabled .product-publish-toggle strong { color: #1f6d46; }
.product-publish-card.is-disabled .product-publish-toggle strong { color: #9c3e3e; }
.product-flow-guide { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.product-flow-guide span { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--pine); background: #fff; font-size: .72rem; font-weight: 800; }
.product-flow-guide b { display: grid; flex: 0 0 auto; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: var(--pine); background: var(--gold-soft); }
.content-function-guide { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: -4px 0 20px; }
.content-function-guide article { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 13px; border: 1px solid var(--line); border-radius: 13px; background: #f8faf8; }
.content-function-guide b { width: 28px; height: 28px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 9px; color: var(--pine); background: var(--gold-soft); font-size: .72rem; }
.content-function-guide strong, .content-function-guide small { display: block; }
.content-function-guide strong { color: var(--pine); font-size: .77rem; }
.content-function-guide small { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.woocommerce-console { display: grid; gap: 18px; }
.woocommerce-connect { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr); gap: 16px 18px; align-items: end; padding: 22px; border: 1px solid #bfcfc8; border-radius: 18px; background: linear-gradient(145deg, #f8faf8, #eef4f0); }
.woo-connection-heading { grid-column: 1 / -1; display: flex; align-items: center; gap: 11px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.woo-connection-heading strong, .woo-connection-heading small { display: block; }
.woo-connection-heading strong { color: var(--pine); }
.woo-connection-heading small { margin-top: 3px; color: var(--muted); }
.woo-status-dot { width: 13px; height: 13px; flex: 0 0 auto; border: 1px solid #75847f; border-radius: 50%; background: #aeb9b5; box-shadow: none; }
.woo-status-dot.connected { border-color: #247d51; background: #2e9a63; box-shadow: none; }
.woo-credentials { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.woo-credentials small, .woo-connect-actions small { display: block; margin-top: 5px; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.woo-connect-actions { display: flex; align-items: center; gap: 14px; }
.woo-connect-actions small { max-width: 390px; margin: 0; }
.woocommerce-connect .connection-status { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .82rem; }
.woocommerce-connect .connection-status.success { color: #245f45; font-weight: 800; }
.woocommerce-connect .connection-status.error { color: var(--danger); font-weight: 800; }
.woo-metrics { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.woo-metrics div { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.woo-metrics span, .woo-metrics strong { display: block; }
.woo-metrics span { color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.woo-metrics strong { margin-top: 5px; color: var(--pine); font-size: .95rem; overflow-wrap: anywhere; }
.woo-endpoint { grid-column: 1 / -1; display: grid; gap: 5px; padding: 13px 15px; border-left: 4px solid var(--gold); border-radius: 9px; background: #fffaf0; }
.woo-endpoint > span { color: var(--pine); font-size: .75rem; font-weight: 900; }
.woo-endpoint code { overflow-wrap: anywhere; color: #405c59; font-size: .75rem; }
.woo-endpoint small { color: var(--muted); font-size: .72rem; }
.catalog-browser { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.catalog-tools { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-bottom: 14px; }
.catalog-master-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-height: 590px; overflow: auto; padding: 2px 4px 2px 2px; }
.catalog-product { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 11px; min-height: 120px; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfa; }
.catalog-product img { width: 74px; height: 74px; object-fit: cover; border-radius: 9px; background: #eef2ef; }
.catalog-product strong, .catalog-product b, .catalog-product small, .catalog-product span { display: block; }
.catalog-product strong { color: var(--pine); font-size: .8rem; line-height: 1.3; }
.catalog-product b { margin-top: 5px; color: #a47808; font-size: .88rem; }
.catalog-product small { margin-top: 4px; color: #35634e; font-size: .7rem; font-weight: 800; }
.catalog-product span { margin-top: 4px; color: var(--muted); font-size: .66rem; line-height: 1.3; }
.catalog-product a { grid-column: 1 / -1; justify-self: end; color: var(--pine); font-size: .7rem; font-weight: 900; }
.catalog-filter-empty { margin: 14px 0 0; padding: 14px; color: var(--muted); text-align: center; }
[data-product-item].is-filtered { display: none !important; }
.collection-builder { margin-top: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #f8faf8; }
.collection-heading { margin-bottom: 14px; }
.collection-heading h3 { margin: 0; color: var(--pine); font-family: "Libre Baskerville", Georgia, serif; font-size: 1.35rem; }
.recent-collection { display: flex; align-items: flex-start; gap: 11px; padding: 14px; border: 1px solid #ddcf9f; border-radius: 13px; background: #fffaf0; }
.recent-collection input, .collection-default input, .product-choice input { accent-color: var(--gold); }
.recent-collection strong, .recent-collection small { display: block; }
.recent-collection small { margin-top: 3px; color: var(--muted); font-weight: 400; }
.product-collections { display: grid; gap: 14px; margin-top: 14px; }
.product-collection { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.product-collection > header { display: grid; grid-template-columns: auto minmax(220px, 1fr) auto auto; gap: 14px; align-items: end; padding: 16px; border-bottom: 1px solid var(--line); }
.collection-default { display: flex; align-items: center; gap: 7px; min-height: 44px; color: var(--forest); font-size: .78rem; }
.collection-name input { margin-top: 6px; }
.collection-count { align-self: center; padding: 7px 10px; border-radius: 999px; color: #245f45; background: #eaf7ef; font-size: .72rem; font-weight: 900; white-space: nowrap; }
.collection-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #fbfcfa; }
.collection-options label { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.collection-options input { width: 19px; height: 19px; accent-color: var(--gold); }
.collection-options strong, .collection-options small { display: block; }
.collection-options small { margin-top: 2px; color: var(--muted); font-size: .68rem; font-weight: 400; }
.collection-organizer { padding: 16px; border-bottom: 1px solid var(--line); background: #f3f7f4; }
.collection-organizer > div:first-child strong, .collection-organizer > div:first-child small { display: block; }
.collection-organizer > div:first-child strong { color: var(--pine); font-size: .83rem; }
.collection-organizer > div:first-child small { margin-top: 3px; color: var(--muted); font-size: .7rem; }
.collection-order-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin-top: 12px; }
.collection-order-empty { margin: 0; padding: 13px; border: 1px dashed #bfcfc8; border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.7); font-size: .74rem; text-align: center; }
.collection-order-item { display: grid; grid-template-columns: 32px 96px minmax(0, 1fr); gap: 11px; align-items: center; min-height: 116px; padding: 9px; border: 1px solid #ccd9d3; border-radius: 13px; background: #fff; box-shadow: none; }
.collection-order-position { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; color: var(--pine); background: var(--gold-soft); font-size: .72rem; font-weight: 900; }
.collection-order-item img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: #173b3f; }
.collection-order-item strong, .collection-order-item small { display: block; }
.collection-order-item strong { color: var(--pine); font-size: .75rem; line-height: 1.25; }
.collection-order-item small { margin-top: 3px; color: #a47808; font-size: .7rem; font-weight: 800; }
.collection-order-actions { grid-column: 2 / -1; display: flex; justify-content: flex-end; gap: 5px; margin-top: -42px; }
.collection-order-actions button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 9px; color: var(--pine); background: #fff; font-size: 1rem; font-weight: 900; cursor: pointer; }
.collection-order-actions button:hover, .collection-order-actions button:focus-visible { border-color: var(--gold); background: #fffaf0; }
.collection-order-actions button:disabled { opacity: .35; cursor: default; }
.collection-order-actions button.remove { color: var(--danger); }
.product-catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: 560px; overflow: auto; padding: 14px; }
.product-choice { display: grid; grid-template-columns: auto 88px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 106px; padding: 9px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.product-choice:has(input:checked) { border-color: var(--gold); background: #fffaf0; }
.product-choice img { width: 88px; height: 88px; object-fit: cover; border-radius: 9px; background: #173b3f; }
.product-choice strong, .product-choice b, .product-choice small, .product-choice em { display: block; }
.product-choice strong { color: var(--pine); font-size: .76rem; line-height: 1.3; }
.product-choice b { margin-top: 4px; color: #a47808; font-size: .76rem; }
.product-choice small { margin-top: 3px; color: #35634e; font-size: .68rem; font-weight: 800; }
.product-choice em { margin-top: 3px; color: var(--muted); font-size: .65rem; font-style: normal; line-height: 1.25; }
.catalog-empty { grid-column: 1 / -1; margin: 0; padding: 16px; color: var(--muted); text-align: center; }
.is-hidden { display: none !important; }
.collection-source-picker, .collection-theme-picker, .collection-visible-picker { display: grid; gap: 9px; margin: 0; padding: 16px; border: 0; border-bottom: 1px solid var(--line); }
.collection-source-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.collection-theme-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.collection-visible-picker { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); }
.collection-source-picker legend, .collection-theme-picker legend, .collection-visible-picker legend { grid-column: 1 / -1; margin-bottom: 2px; color: var(--pine); font-size: .82rem; font-weight: 900; }
.collection-source-picker label, .collection-theme-picker label, .collection-visible-picker label { min-width: 0; cursor: pointer; }
.collection-source-picker input, .collection-theme-picker input, .collection-visible-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.collection-source-picker label > span, .collection-theme-picker label > span, .collection-visible-picker label > span { display: grid; min-height: 76px; align-content: center; gap: 4px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .18s ease, background .18s ease; }
.collection-source-picker input:checked + span, .collection-theme-picker input:checked + span, .collection-visible-picker input:checked + span { border: 2px solid var(--gold); background: #fffaf0; box-shadow: none; }
.collection-source-picker input:focus-visible + span, .collection-theme-picker input:focus-visible + span, .collection-visible-picker input:focus-visible + span { outline: 3px solid rgba(212,175,55,.28); outline-offset: 2px; }
.collection-source-picker strong, .collection-source-picker small, .collection-theme-picker strong, .collection-theme-picker small, .collection-visible-picker strong, .collection-visible-picker small { display: block; }
.collection-source-picker small, .collection-theme-picker small, .collection-visible-picker small { color: var(--muted); font-size: .67rem; font-weight: 400; line-height: 1.35; }
.collection-category-panel { display: grid; grid-template-columns: minmax(0, 2fr) minmax(150px, 1fr); gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #f7faf8; }
.collection-category-panel label > span { display: block; margin-bottom: 6px; color: var(--pine); font-size: .75rem; font-weight: 900; }
[data-collection-category-panel][hidden], [data-collection-products-panel][hidden] { display: none !important; }
.theme-sample { grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; }
.theme-sample i { grid-row: 1 / 3; width: 42px; height: 54px; border: 1px solid #d8ddd9; border-radius: 9px; }
.theme-sample-pearl i { background: linear-gradient(145deg,#fff 0%,#fbfaf7 48%,#efe9df 100%); }
.theme-sample-pine i { border-color: #426965; background: radial-gradient(circle at 75% 20%,rgba(232,215,155,.28),transparent 32%),linear-gradient(145deg,#173b3f,#508072); }
.theme-sample-editorial i { border-top: 5px solid var(--gold); background: linear-gradient(145deg,#fff,#f5f3ee); }
.collection-visible-picker label > span { min-height: 94px; place-items: center; padding-inline: 7px; }
.collection-visible-picker label > span > strong { color: var(--pine); font-family: "Libre Baskerville", Georgia, serif; font-size: 1.45rem; }
.mini-layout { display: grid; width: 54px; height: 28px; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 3px; border-radius: 5px; background: var(--pine); }
.mini-layout em { min-width: 0; border-radius: 2px; background: var(--gold-soft); }
.mini-layout-2 { grid-template-columns: repeat(2, 1fr); }
.mini-layout-3, .mini-layout-6, .mini-layout-9 { grid-template-columns: repeat(3, 1fr); }
.mini-layout-4 { grid-template-columns: repeat(2, 1fr); }
.mini-layout-8, .mini-layout-12 { grid-template-columns: repeat(4, 1fr); }
.mini-layout-10 { width: 64px; grid-template-columns: repeat(5, 1fr); }
.general-visual-settings { display: grid; grid-template-columns: 1fr 1.35fr; gap: 12px; margin-top: 14px; }
.general-visual-settings fieldset { border: 1px solid var(--line); border-radius: 15px; background: #f8faf8; }
.collection-preview { padding: 14px 16px 16px; border-top: 1px solid var(--line); color: var(--ink); background: #f5f7f5; }
.collection-preview > header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 10px; }
.collection-preview > header span { color: #8a6510; font-size: .64rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.collection-preview > header strong { overflow: hidden; font-family: "Libre Baskerville", Georgia, serif; font-size: .95rem; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.collection-preview-grid, .woo-preview-grid { display: grid; width: 100%; min-height: 0; aspect-ratio: 16 / 9; grid-template-columns: repeat(var(--product-grid-columns, 2), minmax(0, 1fr)); grid-template-rows: repeat(var(--product-grid-rows, 1), minmax(0, 1fr)); gap: 2px; overflow: hidden; border-radius: 14px; background: #173b3f; }
.collection-preview-product, .woo-preview-product { position: relative; min-width: 0; min-height: 0; overflow: hidden; border: 0; border-radius: 5px; background: #173b3f; box-shadow: none; isolation: isolate; }
.collection-preview-product img, .woo-preview-product img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center; background: #173b3f; transform: scale(1.3); transform-origin: center; }
.collection-preview-product div, .woo-preview-product div { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 40px 12px 11px; color: #fff; background: linear-gradient(transparent,rgba(8,27,29,.94)); }
.collection-preview-product strong, .collection-preview-product b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collection-preview-product strong { font-family: "Libre Baskerville", Georgia, serif; font-size: .72rem; }
.collection-preview-product b, .woo-preview-product b { flex: 0 0 auto; margin-top: 3px; margin-left: auto; padding: 5px 9px; border: 1px solid rgba(232,215,155,.72); border-radius: 999px; color: #f8e6a6; background: rgba(13,43,44,.88); font-family: Lato, Arial, sans-serif; font-size: .76rem; font-weight: 900; letter-spacing: .02em; }
.collection-preview-empty { grid-column: 1 / -1; display: grid; min-height: 150px; place-items: center; margin: 0; padding: 20px; border: 1px dashed rgba(255,255,255,.28); border-radius: 13px; color: rgba(255,255,255,.8); text-align: center; }
.collection-preview.theme-pearl .collection-preview-product div, .woo-preview.theme-pearl .woo-preview-product div { color: var(--pine); background: linear-gradient(transparent,rgba(250,247,240,.97)); }
.collection-preview.theme-pearl .collection-preview-product strong, .woo-preview.theme-pearl .woo-preview-product strong { color: var(--pine); }
.collection-preview.theme-editorial .collection-preview-grid, .woo-preview.theme-editorial .woo-preview-grid { border-top: 5px solid var(--gold); }
.collection-preview.theme-editorial .collection-preview-product, .woo-preview.theme-editorial .woo-preview-product { border-bottom: 3px solid var(--gold); }
.collection-preview.theme-pearl > header span, .collection-preview.theme-editorial > header span, .woo-preview.theme-pearl .woo-preview-head span, .woo-preview.theme-editorial .woo-preview-head span { color: #8a6510; }
.collection-preview.theme-pearl > header strong, .collection-preview.theme-editorial > header strong, .woo-preview.theme-pearl h3, .woo-preview.theme-editorial h3 { color: var(--pine); }
.woo-preview.theme-pearl .woo-preview-head p, .woo-preview.theme-editorial .woo-preview-head p { color: var(--muted); }
.layout-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; padding: 0; border: 0; }
.layout-options legend { grid-column: 1 / -1; margin-bottom: 9px; color: var(--pine); font-size: .86rem; font-weight: 900; }
.layout-option { display: flex; align-items: flex-start; gap: 12px; min-height: 96px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fff; cursor: pointer; }
.layout-option:has(input:checked) { border: 2px solid var(--gold); background: #fffaf0; box-shadow: none; }
.layout-option input { flex: 0 0 auto; width: 19px; height: 19px; margin-top: 2px; accent-color: var(--gold); }
.layout-copy { width: 100%; }
.layout-option strong, .layout-option small { display: block; }
.layout-option small { margin-top: 5px; color: var(--muted); font-weight: 400; line-height: 1.4; }
.layout-diagram { height: 72px; display: grid; gap: 5px; margin-top: 13px; padding: 7px; border-radius: 9px; color: #dce8e3; background: var(--pine); font-size: .58rem; font-weight: 900; text-align: center; }
.layout-diagram.fullscreen { grid-template-columns: 1fr; }
.layout-diagram.fullscreen i { display: none; }
.layout-diagram.blocks { grid-template-columns: .65fr 1.35fr; }
.layout-diagram i, .layout-diagram b { display: grid; place-items: center; border-radius: 5px; font-style: normal; }
.layout-diagram i { background: rgba(255,255,255,.12); }
.layout-diagram b { color: var(--pine); background: var(--gold-soft); }
.check-card { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 13px; }
.check-card input { width: 20px; height: 20px; accent-color: var(--gold); }
.check-card strong, .check-card small { display: block; }
.check-card small { margin-top: 3px; color: var(--muted); font-weight: 400; }
.check-card.master-rule { border-color: #d9c77f; background: #fffdf5; }
.woo-preview { margin-top: 22px; padding: 20px; border: 1px solid #bfcfc8; border-radius: 18px; color: var(--ink); background: #f5f7f5; }
.woo-preview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 16px; }
.woo-preview-head span { color: var(--gold-soft); font-size: .66rem; font-weight: 900; letter-spacing: .12em; }
.woo-preview-head h3 { margin: 5px 0 4px; color: var(--pine); font-family: "Libre Baskerville", Georgia, serif; font-size: 1.35rem; font-weight: 400; }
.woo-preview-head p { margin: 0; color: var(--muted); font-size: .78rem; }
.woo-preview-rules { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.woo-preview-rules span { padding: 7px 10px; border-radius: 999px; letter-spacing: 0; white-space: nowrap; }
.woo-preview-rules .enabled { color: #dff5e6; background: rgba(84,186,119,.2); }
.woo-preview-rules .disabled { color: #ffe2dd; background: rgba(201,91,75,.24); }
.woo-preview-product strong, .woo-preview-product b { display: block; }
.woo-preview-product strong { color: #fff; font-size: .78rem; line-height: 1.3; }
.woo-preview-product b { font-size: .82rem; }
.woo-preview-product.image-only { min-height: 160px; }
.woo-preview .catalog-empty { color: #dce8e3; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-actions p { margin: 0; color: var(--muted); font-size: .9rem; }
.panel-card[id], .dashboard-section-heading[id] { scroll-margin-top: 96px; }
.dashboard-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin: 54px 0 2px; padding: 0 4px 18px; border-bottom: 1px solid #cad7d1; }
.dashboard-section-heading h2, .dashboard-section-heading p { margin-bottom: 0; }
.dashboard-section-heading > p { max-width: 560px; color: var(--muted); line-height: 1.5; text-align: right; }
.secure-pill { padding: 8px 12px; border-radius: 999px; color: #245f45; background: #eaf7ef; font-size: .78rem; font-weight: 900; }
.web-update-callout { display: flex; align-items: center; justify-content: space-between; gap: 28px; color: var(--ivory); background: linear-gradient(135deg, var(--pine), var(--forest)); }
.web-update-callout h2 { margin-bottom: 8px; color: var(--ivory); }
.web-update-callout p:not(.eyebrow) { max-width: 760px; margin-bottom: 0; color: #cbdad5; line-height: 1.55; }
.web-update-callout .button { flex: 0 0 auto; }
.system-update-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; color: var(--ivory); background: linear-gradient(135deg, var(--pine), var(--forest)); }
.system-update-card h2 { color: var(--ivory); }
.system-update-card p:not(.eyebrow) { max-width: 760px; color: #cbdad5; line-height: 1.55; }
.system-version-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.system-version-row span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; color: #dce8e3; font-size: .72rem; }
.system-version-row b { margin-left: 4px; color: var(--gold-soft); }
.system-update-actions { min-width: 245px; display: grid; gap: 10px; }
.system-update-actions small { color: #cbdad5; font-size: .72rem; text-align: center; }
.system-update-actions .button.secondary { color: var(--ivory); border-color: rgba(255,255,255,.3); background: transparent; }
.web-update-page .dashboard-head p { max-width: 760px; line-height: 1.55; }
.web-update-grid { align-items: start; }
.release-grid { display: grid; grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr); gap: 24px; align-items: stretch; }
.current-release { display: flex; flex-direction: column; padding: 24px; border-radius: 18px; color: var(--ivory); background: linear-gradient(145deg, var(--pine), var(--forest)); }
.current-release > span { color: #cbdad5; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.current-release > strong { margin: 8px 0 20px; color: var(--gold); font-family: "Libre Baskerville", Georgia, serif; font-size: 2.15rem; font-weight: 400; }
.current-release dl { display: grid; gap: 9px; margin: 0 0 22px; }
.current-release dl div { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.12); }
.current-release dt { color: #cbdad5; font-size: .78rem; }
.current-release dd { max-width: 62%; margin: 0; overflow: hidden; color: #fff; font-size: .8rem; font-weight: 800; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.current-release .button { align-self: flex-start; margin-top: auto; }
.apk-upload-form { display: grid; gap: 16px; }
.file-drop { display: grid; gap: 9px; padding: 22px; border: 2px dashed #b8c9c2; border-radius: 16px; background: #f8faf8; }
.file-drop > span { color: var(--pine); font-size: 1rem; }
.file-drop input[type="file"] { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.file-drop input[type="file"]::file-selector-button { margin-right: 12px; padding: 9px 13px; border: 0; border-radius: 999px; color: var(--pine); background: var(--gold-soft); font-weight: 800; cursor: pointer; }
.file-drop small, .apk-upload-form label > span small { color: var(--muted); font-weight: 400; }
.upload-safety { display: grid; gap: 4px; padding: 13px 15px; border-left: 4px solid var(--gold); border-radius: 8px; background: #fffaf0; }
.upload-safety strong { color: var(--pine); font-size: .86rem; }
.upload-safety span { color: var(--muted); font-size: .82rem; line-height: 1.45; }
.count-pill { min-width: 42px; padding: 9px 13px; border-radius: 999px; text-align: center; color: var(--pine); background: var(--gold-soft); }
.empty-state { padding: 28px; border: 1px dashed #c8d4cf; border-radius: 16px; color: var(--muted); text-align: center; }
.profile-empty-state { display: grid; justify-items: center; gap: 10px; }
.profile-empty-state strong { color: var(--pine); font-size: 1.05rem; }
.profile-empty-state span { max-width: 720px; line-height: 1.55; }
.profile-empty-state .button { margin-top: 4px; }
.device-list { display: grid; gap: 10px; }
.device-list article { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; }
.device-list strong, .device-list span { display: block; }
.device-list span, .device-list time { margin-top: 4px; color: var(--muted); font-size: .8rem; }
.device-list form { flex: 0 0 auto; }
.pending-list article { border-color: #e5d5a4; background: #fffaf0; }
.device-list .pending-device-form { min-width: min(500px, 58%); display: grid; flex: 1 1 500px; grid-template-columns: minmax(220px, 1fr) auto; gap: 10px; align-items: end; }
.pending-device-form label { min-width: 0; }
.pending-device-form input { margin-top: 5px; }
.pending-device-form .button { white-space: nowrap; }
.device-code { display: inline !important; margin: 0 4px; color: var(--pine); font-size: 1rem; letter-spacing: .14em; }
.device-control-list { display: grid; gap: 18px; }
.device-control-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fbfcfa; }
.device-control-card > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; color: var(--ivory); background: linear-gradient(135deg, var(--pine), var(--forest)); }
.device-control-card > header strong, .device-control-card > header span { display: block; }
.device-control-card > header span { margin-top: 4px; color: #cadbd5; font-size: .78rem; }
.device-header-status { display: flex; align-items: center; gap: 10px; }
.apk-warning { margin: 0 !important; padding: 6px 9px; border-radius: 999px; color: #5c4306 !important; background: var(--gold-soft); font-size: .68rem !important; font-weight: 900; white-space: nowrap; }
.apk-warning[hidden] { display: none !important; }
.device-presence { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; font-size: .8rem; font-weight: 800; }
.status-dot { width: 9px; height: 9px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: #b2bbb8; box-shadow: none; }
.status-dot.online { border-color: #9be8b8; background: #72d89a; box-shadow: none; }
.device-profile-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.device-profile-form input, .device-profile-form select { margin-top: 6px; }
.device-profile-title { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-bottom: 5px; }
.device-profile-title strong { color: var(--pine); }
.device-profile-title small { margin-left: auto; color: var(--muted); }
.device-form-section-title { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-top: 3px; padding: 10px 12px; border-left: 4px solid var(--gold); border-radius: 8px; background: #eef4f1; }
.device-form-section-title b { color: var(--pine); font-size: .78rem; }
.device-form-section-title small { color: var(--muted); font-size: .68rem; text-align: right; }
.device-product-state { padding: 6px 9px; border-radius: 999px; font-size: .68rem; font-weight: 900; }
.device-product-state.is-enabled { color: #1f6d46; background: #e5f5eb; }
.device-product-state.is-disabled { color: #963b3b; background: #fae8e8; }
.device-product-mode, .device-collection-picker { grid-column: 1 / -1; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 13px; }
.device-product-mode { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; background: #f7f9f8; }
.device-product-mode legend, .device-collection-picker legend { padding: 0 6px; color: var(--pine); font-size: .76rem; font-weight: 900; }
.device-product-mode label { cursor: pointer; }
.device-product-mode input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.device-product-mode label > span { display: block; min-height: 62px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.device-product-mode input:checked + span { border: 2px solid var(--gold); background: #fffaf0; box-shadow: none; }
.device-product-mode input:focus-visible + span { outline: 3px solid rgba(212,175,55,.28); outline-offset: 2px; }
.device-product-mode strong, .device-product-mode small, .device-collection-picker strong, .device-collection-picker small { display: block; }
.device-product-mode small, .device-collection-picker small { margin-top: 3px; color: var(--muted); font-size: .67rem; font-weight: 400; }
.device-collection-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; background: #fffdf6; }
.device-collection-picker[hidden] { display: none !important; }
.device-collection-picker > p { grid-column: 1 / -1; margin: 0 0 2px; color: var(--muted); font-size: .72rem; }
.device-collection-picker label { display: flex; align-items: flex-start; gap: 9px; padding: 10px; border: 1px solid #dfd5ad; border-radius: 10px; background: #fff; cursor: pointer; }
.device-collection-picker label:has(input:checked) { border-color: var(--gold); background: #fff8df; }
.device-collection-picker input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--gold); }
.screen-content-builder { margin-top: 24px; padding: 20px; border: 1px solid #c7d5cf; border-radius: 18px; background: linear-gradient(145deg,#f8faf8,#f5f3ee); }
.screen-content-builder .section-heading { margin-bottom: 16px; }
.screen-content-profiles { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; }
.screen-content-profile { overflow: hidden; border: 1px solid #c7d5cf; border-radius: 16px; background: #fff; }
.screen-content-profile > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 17px; color: var(--ivory); background: linear-gradient(135deg,var(--pine),var(--forest)); cursor: pointer; list-style: none; }
.screen-content-profile > summary::-webkit-details-marker { display: none; }
.screen-content-profile > summary span,.screen-content-profile > summary h4 { display: block; margin: 0; }
.screen-content-profile > summary span { color: var(--gold-soft); font-size: .64rem; font-weight: 900; letter-spacing: .1em; }
.screen-content-profile > summary h4 { margin-top: 4px; color: #fff; font-family: "Libre Baskerville",Georgia,serif; font-size: 1.05rem; font-weight: 400; }
.screen-content-profile > summary > strong { display: flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: .68rem; white-space: nowrap; }
.screen-content-profile > summary > strong b { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; color: var(--pine); background: var(--gold-soft); font-size: .9rem; line-height: 1; transition: transform .18s ease; }
.screen-content-profile[open] > summary > strong b { transform: rotate(45deg); }
.screen-content-profile-body { border-top: 1px solid rgba(255,255,255,.12); }
.screen-showcase-note { padding: 14px 16px; border-bottom: 1px solid var(--line); background: #eef4f1; }
.screen-showcase-note strong,.screen-showcase-note small { display: block; }
.screen-showcase-note strong { color: var(--pine); font-size: .82rem; }
.screen-showcase-note small { margin-top: 4px; color: var(--muted); font-size: .7rem; line-height: 1.4; }
.screen-content-enabled,.screen-collection-mode,.screen-list-picker { display: grid; gap: 9px; margin: 0; padding: 14px; border: 0; border-bottom: 1px solid var(--line); }
.screen-content-enabled { grid-template-columns: repeat(2,minmax(0,1fr)); background: #f5f8f6; }
.screen-content-enabled legend,.screen-list-picker legend { grid-column: 1 / -1; padding: 0 5px; color: var(--pine); font-size: .74rem; font-weight: 900; }
.screen-content-enabled label,.screen-collection-mode label,.screen-list-picker label { min-width: 0; cursor: pointer; }
.screen-content-enabled input,.screen-collection-mode input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.screen-content-enabled label > span,.screen-collection-mode label > span { display: block; min-height: 62px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.screen-content-enabled input:checked + span,.screen-collection-mode input:checked + span { border: 2px solid var(--gold); background: #fffaf0; box-shadow: none; }
.screen-content-enabled strong,.screen-content-enabled small,.screen-collection-mode strong,.screen-collection-mode small,.screen-list-picker strong,.screen-list-picker small { display: block; }
.screen-content-enabled small,.screen-collection-mode small,.screen-list-picker small { margin-top: 3px; color: var(--muted); font-size: .66rem; font-weight: 400; line-height: 1.32; }
.screen-price-products-control { display: grid; grid-template-columns: minmax(0,1fr) minmax(250px,.72fr); gap: 10px; align-items: stretch; padding: 14px; border-bottom: 1px solid var(--line); background: #eef4f1; }
.screen-price-products-copy { grid-column: 1; grid-row: 1; min-width: 0; }
.screen-price-products-copy strong,.screen-price-products-copy small,.screen-price-products-control label strong,.screen-price-products-control label small { display: block; }
.screen-price-products-copy strong { color: var(--pine); font-size: .8rem; }
.screen-price-products-copy small,.screen-price-products-control label small { margin-top: 3px; color: var(--muted); font-size: .66rem; line-height: 1.35; }
.screen-price-products-control > button { grid-column: 2; grid-row: 1; align-self: center; justify-self: end; }
.screen-price-products-control label { min-width: 0; padding: 11px 12px; border: 1px solid #c5d5ce; border-radius: 11px; background: #fff; }
.screen-price-toggle { grid-column: 1; grid-row: 2; display: grid; grid-template-columns: auto minmax(0,1fr); gap: 9px; align-items: start; }
.screen-price-toggle input { margin-top: 3px; accent-color: var(--gold); }
.screen-price-transition { grid-column: 2; grid-row: 2; }
.screen-price-transition select { width: 100%; margin-top: 9px; padding: 8px 10px; border: 1px solid #b8cac2; border-radius: 8px; color: var(--pine); background: #fff; font: inherit; font-weight: 900; }
.screen-product-assignment { border-bottom: 1px solid var(--line); background: #fff; }
.screen-product-assignment.is-disabled { opacity: .5; }
.screen-product-assignment-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 14px 4px; }
.screen-product-assignment-head strong { color: var(--pine); font-size: .78rem; }
.screen-product-assignment-head small { color: var(--muted); font-size: .65rem; text-align: right; }
.screen-general-price-toggle { display: flex; align-items: flex-start; gap: 9px; margin: 10px 14px 0; padding: 11px 12px; border: 1px solid #c5d5ce; border-radius: 11px; background: #f8fbf9; cursor: pointer; }
.screen-general-price-toggle input { flex: 0 0 auto; margin-top: 3px; accent-color: var(--gold); }
.screen-general-price-toggle strong,.screen-general-price-toggle small { display: block; }
.screen-general-price-toggle strong { color: var(--pine); font-size: .73rem; }
.screen-general-price-toggle small { margin-top: 3px; color: var(--muted); font-size: .66rem; line-height: 1.35; }
.screen-collection-mode { grid-template-columns: repeat(2,minmax(0,1fr)); padding-top: 10px; }
.screen-list-picker { grid-template-columns: repeat(2,minmax(0,1fr)); padding-top: 12px; background: #fffdf7; }
.screen-list-picker[hidden] { display: none !important; }
.screen-list-picker label { display: flex; align-items: flex-start; gap: 8px; padding: 10px; border: 1px solid #ddd5b7; border-radius: 10px; background: #fff; }
.screen-list-picker label:has(input:checked) { border-color: var(--gold); background: #fff8df; }
.screen-list-picker input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--gold); }
.screen-layout-select { display: block; padding: 0 14px 14px; }
.screen-layout-select > span { display: block; margin-bottom: 5px; color: var(--pine); font-size: .7rem; font-weight: 900; }
.screen-sequence-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 14px 0; background: #fffdf7; }
.screen-sequence-heading strong { color: var(--pine); font-size: .78rem; }
.screen-sequence-heading small { color: var(--muted); font-size: .65rem; }
.content-sequence-grid,.content-duration-grid { display: grid; gap: 10px; padding: 14px; }
.content-sequence-grid { grid-template-columns: repeat(2,minmax(0,1fr)); border-bottom: 1px solid var(--line); background: #fffdf7; }
.content-duration-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.content-sequence-grid label > span,.content-duration-grid label > span { display: block; margin-bottom: 5px; color: var(--pine); font-size: .68rem; font-weight: 900; }
.content-sequence-grid select,.content-duration-grid select { margin: 0; }
.content-sequence-grid select option:disabled { color: #9aa5a0; }
.content-sequence-explanation { margin: 0; padding: 8px 14px 12px; color: var(--muted); background: #fffdf7; font-size: .7rem; line-height: 1.45; }
.content-sequence-explanation strong { color: var(--pine); }
.content-sequence-list { display: grid; gap: 8px; padding: 0 14px 14px; border-bottom: 1px solid var(--line); background: #fffdf7; }
.content-sequence-item { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 11px; align-items: center; min-height: 62px; padding: 8px 9px; border: 1px solid #d6dfda; border-radius: 12px; background: #fff; }
.content-sequence-item[hidden] { display: none !important; }
.content-sequence-number { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--pine); background: linear-gradient(145deg,#f5e7a6,#dfb52b); font-family: "Libre Baskerville",Georgia,serif; font-size: .76rem; font-weight: 700; }
.content-sequence-copy,.content-sequence-copy strong,.content-sequence-copy small { display: block; min-width: 0; }
.content-sequence-copy strong { color: var(--pine); font-size: .78rem; }
.content-sequence-copy small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: .66rem; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.content-sequence-actions { display: flex; gap: 6px; }
.content-sequence-actions button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #c8d5cf; border-radius: 50%; color: var(--pine); background: #f8faf8; font-size: 1rem; font-weight: 900; cursor: pointer; }
.content-sequence-actions button:hover:not(:disabled) { border-color: var(--gold); background: #fff7d7; }
.content-sequence-actions button:disabled { opacity: .3; cursor: default; }
.device-sequence-list { padding: 8px 0 12px; border: 0; background: transparent; }
.device-sequence-list .content-sequence-item { grid-template-columns: 28px 42px minmax(0,1fr) auto; }
.content-sequence-item.is-disabled { opacity: .52; }
.content-sequence-toggle { display: block; cursor: pointer; }
.content-sequence-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.content-sequence-toggle span { display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid #9eaca6; border-radius: 6px; background: #fff; }
.content-sequence-toggle input:checked + span { border-color: var(--gold); background: var(--gold); }
.content-sequence-toggle input:checked + span::after { content: "✓"; color: var(--pine); font-size: .84rem; font-weight: 900; }
.screen-profile-preview { margin: 0 14px 14px; padding: 12px; border: 1px solid #c9d7d1; border-radius: 13px; background: #f4f7f5; }
.screen-profile-preview > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.screen-profile-preview > header span { color: #936d0b; font-size: .6rem; font-weight: 900; letter-spacing: .1em; }
.screen-profile-preview > header strong { overflow: hidden; color: var(--pine); font-family: "Libre Baskerville",Georgia,serif; font-size: .76rem; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.screen-preview-stage { display: grid; min-height: 190px; aspect-ratio: 16 / 9; grid-template-columns: .72fr 1.28fr; gap: 3px; overflow: hidden; border-radius: 10px; background: var(--pine); }
.screen-preview-stage.is-fullscreen { grid-template-columns: 1fr; }
.screen-preview-stage.is-fullscreen aside { display: none; }
.screen-preview-stage.without-products { grid-template-columns: 1fr; }
.screen-preview-stage.without-products aside { display: grid; }
.screen-preview-stage aside { display: grid; place-content: center; gap: 4px; padding: 10px; color: #fff; background: linear-gradient(145deg,#173b3f,#3d6c62); text-align: center; }
.screen-preview-stage aside b { color: var(--gold-soft); font-size: .75rem; letter-spacing: .08em; }
.screen-preview-stage aside i { color: #dce9e3; font-size: .64rem; font-style: normal; }
.screen-preview-products { display: grid; grid-template-columns: repeat(var(--screen-preview-columns,2),minmax(0,1fr)); grid-template-rows: repeat(var(--screen-preview-rows,2),minmax(0,1fr)); gap: 2px; min-width: 0; min-height: 0; }
.screen-preview-products article { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #254d4d; }
.screen-preview-products img,.screen-preview-products video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); }
.screen-preview-products div { position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: end; justify-content: space-between; gap: 4px; padding: 22px 7px 6px; color: #fff; background: linear-gradient(transparent,rgba(8,27,29,.94)); }
.screen-preview-products strong { overflow: hidden; font-size: .55rem; text-overflow: ellipsis; white-space: nowrap; }
.screen-preview-products b { flex: 0 0 auto; color: var(--gold-soft); font-size: .58rem; white-space: nowrap; }
.screen-profile-preview > small { display: block; margin-top: 7px; color: var(--muted); font-size: .64rem; line-height: 1.35; }
.device-content-mode,.device-content-custom { grid-column: 1 / -1; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 13px; }
.device-content-mode { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; background: #f5f8f6; }
.device-content-mode legend,.device-content-custom legend { padding: 0 6px; color: var(--pine); font-size: .76rem; font-weight: 900; }
.device-content-mode input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.device-content-mode label > span { display: block; min-height: 58px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.device-content-mode input:checked + span { border: 2px solid var(--gold); background: #fffaf0; box-shadow: none; }
.device-content-mode strong,.device-content-mode small { display: block; }
.device-content-mode small { margin-top: 3px; color: var(--muted); font-size: .68rem; font-weight: 400; }
.device-content-custom { background: #fffdf7; }
.device-content-custom[hidden] { display: none !important; }
.device-content-custom .content-sequence-grid,.device-content-custom .content-duration-grid { padding: 5px 0 10px; background: transparent; }
.device-profile-submit { display: flex; justify-content: flex-end; }
.remote-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 18px 20px; }
.transport-controls { display: flex; gap: 8px; }
.transport-controls button { width: 46px; height: 46px; border: 1px solid #cbd8d3; border-radius: 50%; color: var(--pine); background: var(--white); font-size: 1.05rem; cursor: pointer; }
.transport-controls button:hover { color: var(--pine); border-color: var(--gold); background: var(--gold-soft); }
.volume-control { width: 128px; margin-left: auto; }
.volume-control select { margin-top: 6px; }
.device-command-status { display: flex; align-items: center; gap: 16px; padding: 12px 20px; border-top: 1px solid var(--line); color: var(--muted); background: var(--white); font-size: .76rem; }
.device-command-status time { margin-left: auto; }
.device-command-status form { flex: 0 0 auto; }
.command-pending { color: #946d08; font-weight: 900; }
.operational-overview { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 10px; align-items: stretch; margin-bottom: 18px; padding: 14px; border: 1px solid #cdd9d4; border-radius: 16px; background: #f3f7f4; }
.operational-overview > div { min-width: 0; padding: 9px 11px; border-right: 1px solid var(--line); }
.operational-overview span, .operational-overview strong { display: block; }
.operational-overview span { color: var(--muted); font-size: .65rem; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.operational-overview strong { margin-top: 4px; overflow: hidden; color: var(--pine); font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.operational-overview .button { align-self: center; white-space: nowrap; }
.link-danger { padding: 0; border: 0; color: var(--danger); background: transparent; font-size: .76rem; font-weight: 800; text-decoration: underline; cursor: pointer; }
.pair-card { width: min(560px, 100%); }
.pair-summary { display: grid; gap: 9px; margin: 24px 0; }
.pair-summary div { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--ivory); }
.pair-summary dt { color: var(--muted); font-size: .8rem; font-weight: 700; }
.pair-summary dd { margin: 0; color: var(--pine); font-weight: 900; }
.pair-summary div:first-child dd { color: var(--gold-deep, #b88a1b); font-size: 1.45rem; letter-spacing: .16em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@media (max-width: 1020px) {
    .landing-hero { grid-template-columns: 1fr; min-height: auto; }
    .landing-copy { max-width: 850px; }
    .install-guide { max-width: 720px; }
    .dashboard-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topbar { grid-template-columns: auto minmax(0, 1fr); }
    .topbar .panel-menu { justify-content: flex-end; }
    .topbar-account { grid-column: 1 / -1; justify-content: flex-end; margin-top: -4px; }
    .product-catalog, .catalog-master-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-flow-guide, .content-function-guide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .operational-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .operational-overview .button { justify-self: start; }
    .woo-preview-grid { grid-template-columns: repeat(var(--product-grid-columns, 2), minmax(0, 1fr)); }
    .device-profile-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .general-visual-settings { grid-template-columns: 1fr; }
    .collection-visible-picker { grid-template-columns: repeat(3, minmax(72px, 1fr)); }
}

@media (max-width: 760px) {
    .landing-topbar, .landing-main, .landing-footer { width: min(100% - 28px, 1240px); }
    .landing-topbar { align-items: flex-start; padding: 17px 0; }
    .landing-brand img { width: 150px; }
    .landing-topbar nav { align-items: flex-end; flex-direction: column; gap: 8px; }
    .landing-topbar nav a:not(.landing-login) { display: none; }
    .landing-hero { gap: 40px; padding: 58px 0 72px; }
    .landing-copy h1 { font-size: clamp(2.65rem, 13vw, 4.2rem); }
    .landing-copy .hero-actions { align-items: stretch; flex-direction: column; }
    .landing-copy .button { width: 100%; }
    .landing-trust { display: grid; gap: 9px; }
    .install-guide { padding: 22px; border-radius: 22px; }
    .install-guide-head { align-items: stretch; flex-direction: column; }
    .status-ready { align-self: flex-start; }
    .landing-features { padding: 66px 0 74px; }
    .landing-footer { align-items: flex-start; flex-direction: column; }
    .feature-grid, .settings-grid, .product-settings, .release-grid, .dashboard-shortcuts, .layout-options, .woocommerce-connect, .woo-credentials, .woo-metrics, .catalog-tools, .system-update-card, .operational-overview { grid-template-columns: 1fr; }
    .product-publish-card { align-items: flex-start; flex-direction: column; }
    .product-flow-guide, .content-function-guide, .device-product-mode, .device-collection-picker, .screen-content-profiles, .device-content-mode { grid-template-columns: 1fr; }
    .woocommerce-connect .connection-status { grid-column: auto; }
    .dashboard-head, .section-heading, .form-actions, .web-update-callout, .dashboard-section-heading { align-items: stretch; flex-direction: column; }
    .woo-connect-actions { align-items: stretch; flex-direction: column; }
    .system-update-actions { min-width: 0; }
    .dashboard-section-heading > p { text-align: left; }
    .revision-card { width: 100%; }
    .playlist-header { display: none; }
    .playlist-row { grid-template-columns: 72px minmax(0, 1fr) 42px; }
    .playlist-row label:nth-of-type(3) { grid-column: 1 / -1; grid-row: 2; }
    .playlist-row .playlist-actions { grid-column: 1 / -1; grid-row: 3; }
    .playlist-actions { display: block; }
    .topbar, .topbar.admin-topbar { position: static; grid-template-columns: 1fr; gap: 12px; padding: 16px 18px; }
    .topbar .brand-link { justify-self: center; }
    .topbar .panel-menu { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
    .topbar .panel-menu a { min-width: 0; align-items: center; flex-direction: column; gap: 4px; padding: 7px 3px; font-size: .68rem; text-align: center; }
    .topbar .panel-menu a > span { width: 26px; height: 26px; }
    .topbar .panel-menu b { position: absolute; margin: -4px 0 0 26px; }
    .topbar-account { grid-column: auto; justify-content: space-between; margin: 0; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); }
    .dashboard-tabs { top: 0; display: flex; overflow-x: auto; padding: 7px; border-radius: 14px; }
    .dashboard-tabs a { flex: 0 0 176px; }
    .admin-tabs-page .dashboard-head { align-items: stretch; }
    .woo-preview-head, .device-header-status { align-items: flex-start; flex-direction: column; }
    .woo-preview-rules { justify-content: flex-start; }
    .operational-overview > div { border-right: 0; border-bottom: 1px solid var(--line); }
    .device-list article { flex-direction: column; }
    .device-list .pending-device-form { width: 100%; min-width: 0; grid-template-columns: 1fr; }
    .device-control-card > header, .device-command-status { align-items: flex-start; flex-direction: column; }
    .device-profile-form, .product-collection > header, .product-catalog, .catalog-master-grid, .collection-options, .collection-source-picker, .collection-theme-picker, .collection-category-panel { grid-template-columns: 1fr; }
    .content-sequence-grid, .content-duration-grid, .screen-content-enabled, .screen-collection-mode, .screen-list-picker { grid-template-columns: 1fr; }
    .screen-product-assignment-head, .screen-sequence-heading { align-items: flex-start; flex-direction: column; }
    .collection-visible-picker { grid-template-columns: repeat(2, minmax(72px, 1fr)); }
    .collection-order-item { grid-template-columns: 28px 84px minmax(0, 1fr); }
    .collection-order-item img { width: 84px; height: 84px; }
    .collection-order-actions { grid-column: 1 / -1; justify-content: flex-end; }
    .device-profile-title { align-items: flex-start; flex-direction: column; }
    .device-form-section-title { align-items: flex-start; flex-direction: column; }
    .device-form-section-title small { text-align: left; }
    .device-profile-submit { justify-content: stretch; }
    .device-profile-submit .button { width: 100%; }
    .remote-controls { align-items: stretch; }
    .transport-controls { width: 100%; justify-content: space-between; }
    .volume-control { width: 100%; margin-left: 0; }
    .device-command-status time { margin-left: 0; }
}

/* Contenidos: programación diaria primero y conexión técnica al final. */
#contenidos { display: flex; flex-direction: column; }
#contenidos > .section-heading { order: 1; }
#contenidos > .content-function-guide { order: 2; }
#contenidos > .product-publish-card { order: 3; }
#contenidos > .price-catalog-manager { order: 4; }
#contenidos > .screen-content-builder { order: 5; }
#contenidos > .form-actions { order: 6; }
#contenidos > .product-appearance { order: 7; }
#contenidos > .collection-builder { order: 8; }
#contenidos > .woo-advanced { order: 9; }

.admin-disclosure { margin-top: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #f8faf8; }
.admin-disclosure > summary,.collection-editor > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; color: var(--pine); background: #fff; cursor: pointer; list-style: none; }
.admin-disclosure > summary::-webkit-details-marker,.collection-editor > summary::-webkit-details-marker { display: none; }
.admin-disclosure > summary::after,.collection-editor > summary::after { content: "+"; display: grid; flex: 0 0 auto; place-items: center; width: 28px; height: 28px; border: 1px solid #c6d3cd; border-radius: 50%; font-size: 1.05rem; }
.admin-disclosure[open] > summary::after,.collection-editor[open] > summary::after { content: "−"; }
.admin-disclosure > summary span { min-width: 0; }
.admin-disclosure > summary strong,.admin-disclosure > summary small { display: block; }
.admin-disclosure > summary strong { font-size: .9rem; }
.admin-disclosure > summary small { margin-top: 3px; color: var(--muted); font-size: .7rem; font-weight: 400; line-height: 1.35; }
.admin-disclosure > summary b { margin-left: auto; padding: 6px 9px; border-radius: 999px; color: #255e47; background: #eaf7ef; font-size: .67rem; white-space: nowrap; }
.admin-disclosure > .disclosure-body { padding: 18px; }
.woo-advanced .woocommerce-console { padding: 18px; border-top: 1px solid var(--line); }
.collection-builder { padding: 0; background: #f8faf8; }
.collection-builder > summary { border-bottom: 0; }
.collection-builder[open] > summary { border-bottom: 1px solid var(--line); }
.collection-builder .section-heading { margin-top: 0; }
.collection-editor { border-top: 1px solid var(--line); }
.collection-editor > summary { padding: 11px 16px; color: #315f54; background: #f5f8f6; font-size: .74rem; font-weight: 900; }
.collection-editor > summary b { margin-left: auto; color: var(--muted); font-size: .66rem; }
.collection-editor-body { border-top: 1px solid var(--line); }

.product-appearance .disclosure-body { padding-top: 4px; }
.price-catalog-manager { background: #fffdf7; }
.price-catalog-intro { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.price-catalog-intro strong,.price-catalog-intro span { display: block; }
.price-catalog-intro strong { color: var(--pine); font-size: .9rem; }
.price-catalog-intro span { margin-top: 4px; max-width: 760px; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.price-catalog-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 560px; }
.price-catalog-actions .button { margin: 0; white-space: nowrap; }
.price-catalog-source { margin: 12px 0 0; padding: 10px 12px; border: 1px solid #e1d8b7; border-radius: 9px; color: #685a31; background: #fff9e7; font-size: .68rem; }
.price-catalog-families { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 15px; }
.price-family-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.price-family-card header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 14px; color: #fff; background: linear-gradient(135deg,var(--pine),#416f64); }
.price-family-card header span { color: #e8d99f; font-size: .59rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.price-family-card header strong { font-size: .78rem; text-align: right; }
.price-family-table { overflow-x: auto; }
.price-family-row { display: grid; grid-template-columns: 62px 78px repeat(4,minmax(82px,1fr)); gap: 7px; align-items: center; min-width: 520px; padding: 8px 10px; border-top: 1px solid #edf0ed; }
.price-family-row:nth-child(odd):not(.price-family-head) { background: #fafbf9; }
.price-family-row > strong { color: var(--pine); font-size: .69rem; white-space: nowrap; }
.price-family-row label { min-width: 0; }
.price-family-row input[type="number"] { width: 100%; min-height: 36px; padding: 7px 8px; border-color: #c7d3ce; border-radius: 7px; font-size: .7rem; font-variant-numeric: tabular-nums; }
.price-family-head { color: var(--muted); background: #f2f6f3; font-size: .59rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.price-visible-toggle { display: grid; place-items: center; }
.price-visible-toggle input { width: 19px; height: 19px; accent-color: var(--pine); }
.screen-content-builder { margin-top: 18px; background: #f6f8f6; }
.screen-content-enabled { grid-template-columns: repeat(5,minmax(0,1fr)); }
.screen-content-enabled.screen-call-sound-control { grid-template-columns: minmax(0,1.5fr) minmax(210px,.8fr) minmax(280px,1.2fr); }
.screen-call-volume select,
.screen-call-announcement-mode select { width: 100%; margin-top: 9px; padding: 8px 10px; border: 1px solid #b8cac2; border-radius: 8px; color: var(--pine); background: #fff; font: inherit; font-weight: 900; }
.content-sequence-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
.content-duration-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.screen-preview-stage { grid-template-columns: 1fr; }
.screen-preview-stage.without-products { min-height: 120px; background: linear-gradient(135deg,#173b3f,#365f58); }
.screen-preview-stage.without-products::after { content: "La vista operativa aparecerá en este punto de la secuencia"; display: grid; place-items: center; padding: 20px; color: #e8dfc5; font-size: .75rem; text-align: center; }

.special-slide-manager { margin: 0 0 16px; background: #fffdf7; }
.special-slide-editor { padding: 16px; border-top: 1px solid var(--line); }
.special-slide-upload { display: grid; grid-template-columns: minmax(280px,1fr) auto minmax(180px,.55fr) auto; gap: 12px; align-items: center; padding: 14px; border: 1px dashed #b6c8c0; border-radius: 13px; background: #fff; }
.special-slide-upload-copy strong,.special-slide-upload-copy span,.special-slide-upload-copy small { display: block; }
.special-slide-upload-copy strong { color: var(--pine); font-size: .82rem; }
.special-slide-upload-copy span { margin-top: 4px; color: #315f54; font-size: .7rem; line-height: 1.35; }
.special-slide-upload-copy small { margin-top: 5px; color: var(--muted); font-size: .64rem; }
.special-slide-file-button { margin: 0; white-space: nowrap; cursor: pointer; }
.special-slide-file-status { overflow: hidden; color: var(--muted); font-size: .69rem; text-overflow: ellipsis; white-space: nowrap; }
.special-slide-upload-button { margin: 0; white-space: nowrap; }
.special-slide-selection { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 10px; margin-top: 12px; }
.special-slide-selection:empty { display: none; }
.special-slide-selection-card { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 10px; align-items: center; padding: 9px; border: 1px solid #c9d7d1; border-radius: 11px; background: #f5f8f6; }
.special-slide-selection-card.is-invalid { border-color: #d6867e; background: #fff2ef; }
.special-slide-selection-card img,.special-slide-selection-card video { width: 112px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 7px; background: var(--pine); }
.special-slide-selection-card span,.special-slide-selection-card strong,.special-slide-selection-card small { display: block; min-width: 0; }
.special-slide-selection-card strong { overflow: hidden; color: var(--pine); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.special-slide-selection-card small { margin: 3px 0 7px; color: var(--muted); font-size: .61rem; line-height: 1.3; }
.special-slide-selection-card input { min-height: 38px; margin: 0; padding: 7px 9px; font-size: .7rem; }
.special-slide-empty { margin: 13px 0 0; padding: 13px; border: 1px dashed #c4d0ca; border-radius: 10px; color: var(--muted); font-size: .72rem; text-align: center; }
.special-slide-library { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 10px; margin-top: 14px; }
.special-slide-library article { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 10px; align-items: center; padding: 9px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.special-slide-library img,.special-slide-library video { grid-row: 1 / 3; width: 110px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 7px; background: var(--pine); }
.special-slide-library span strong,.special-slide-library span small { display: block; }
.special-slide-library span strong { color: var(--pine); font-size: .75rem; }
.special-slide-library span small { margin-top: 3px; color: var(--muted); font-size: .65rem; }
.special-slide-library label { color: var(--danger); font-size: .66rem; }
.special-slide-library input { accent-color: var(--danger); }

.screen-slide-picker { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin: 0; padding: 14px; border: 0; border-bottom: 1px solid var(--line); background: #f9f7ef; }
.screen-slide-picker legend { grid-column: 1 / -1; padding: 0 5px; color: var(--pine); font-size: .74rem; font-weight: 900; }
.screen-slide-picker > p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .7rem; }
.screen-slide-picker label { display: grid; grid-template-columns: auto 82px minmax(0,1fr); gap: 8px; align-items: center; min-width: 0; padding: 8px; border: 1px solid #ddd5b7; border-radius: 10px; background: #fff; cursor: pointer; }
.screen-slide-picker label:has(input:checked) { border-color: var(--gold); background: #fff8df; }
.screen-slide-picker input { width: 18px; height: 18px; accent-color: var(--gold); }
.screen-slide-picker img,.screen-slide-picker video { width: 82px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--pine); }
.screen-slide-picker span strong,.screen-slide-picker span small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen-slide-picker span strong { color: var(--pine); font-size: .68rem; }
.screen-slide-picker span small { margin-top: 3px; color: var(--muted); font-size: .61rem; }
.screen-slide-picker.is-disabled { display: none; }

.panel-native-dialog { width: min(560px,calc(100% - 32px)); padding: 0; border: 1px solid rgba(212,175,55,.68); border-radius: 22px; color: var(--pine); background: #fffdf7; box-shadow: none; }
.panel-native-dialog::backdrop { background: rgba(4,29,31,.66); backdrop-filter: blur(5px); }
.panel-native-dialog form { display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 15px; padding: 24px; }
.panel-native-dialog-mark { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid var(--gold); border-radius: 50%; color: var(--ivory); background: linear-gradient(145deg,var(--pine),#38675d); font-family: "Libre Baskerville",Georgia,serif; font-size: 1.35rem; }
.panel-native-dialog p,.panel-native-dialog h2 { margin: 0; }
.panel-native-dialog [data-panel-dialog-eyebrow] { color: #a2770d; font-size: .61rem; font-weight: 900; letter-spacing: .12em; }
.panel-native-dialog h2 { margin-top: 4px; font-family: "Libre Baskerville",Georgia,serif; font-size: 1.25rem; font-weight: 400; }
.panel-native-dialog-message { grid-column: 1 / -1; padding: 14px 0 3px; border-top: 1px solid var(--line); color: #3f615a; font-size: .82rem; line-height: 1.55; }
.panel-native-dialog-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 9px; margin-top: 6px; }
.panel-native-dialog.is-danger { border-color: #c87970; }
.panel-native-dialog.is-danger .panel-native-dialog-mark { border-color: #c87970; background: #7e3631; }

@media (max-width: 1180px) {
    .screen-content-enabled,.content-sequence-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .screen-slide-picker { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .price-catalog-families { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .admin-disclosure > summary { align-items: flex-start; }
    .admin-disclosure > summary b { display: none; }
    .price-catalog-intro { align-items: stretch; flex-direction: column; }
    .price-catalog-actions { display: grid; max-width: none; }
    .price-catalog-intro .button { width: 100%; }
    .special-slide-upload,.screen-content-enabled,.content-sequence-grid,.content-duration-grid,.screen-slide-picker { grid-template-columns: 1fr; }
    .screen-content-enabled.screen-call-sound-control { grid-template-columns: 1fr; }
    .screen-price-products-control { grid-template-columns: 1fr; }
    .screen-price-products-copy,.screen-price-products-control > button,.screen-price-toggle,.screen-price-transition { grid-column: 1; grid-row: auto; }
    .screen-price-products-control > button { justify-self: stretch; }
    .special-slide-file-button,.special-slide-upload-button { width: 100%; }
    .content-sequence-copy small { white-space: normal; }
    .content-sequence-item { grid-template-columns: 38px minmax(0,1fr); }
    .content-sequence-actions { grid-column: 1 / -1; justify-content: flex-end; }
    .device-sequence-list .content-sequence-item { grid-template-columns: 26px 38px minmax(0,1fr); }
    .device-sequence-list .content-sequence-actions { grid-column: 2 / -1; }
    .panel-native-dialog form { grid-template-columns: 44px minmax(0,1fr); padding: 19px; }
    .panel-native-dialog-mark { width: 42px; height: 42px; }
}
