/* ============================================================
   结构级版面样式表（在 app.css / layouts.css 之后引入）
   ------------------------------------------------------------
   layouts.css 里的 8 套版面只换「栏宽 + 字体 + 装饰」，DOM 是同一份；
   这一份管的是骨架真的不一样的四套版面：
     一、layout-sidebar  侧栏控制台 —— 左侧固定竖栏替代顶部导航
     二、layout-bento    拼贴橱窗 —— 首页大小格混排 + 胶囊导航条
     三、layout-ledger   目录清单 —— 无轮播无卡片，商品排成目录行
     四、layout-stage    沉浸舞台 —— 整幅首屏 + 带侧标签的货架
   四套都只依赖 --brand/--accent 等配色令牌，可与任意配色主题组合。
   ============================================================ */

/* ------------------------------------------------------------
   一、侧栏控制台
   ------------------------------------------------------------ */
body.layout-sidebar {
    --page-max: 1180px;
    --rail-w: 240px;
    min-height: 100vh;
}

/* 竖栏用 fixed，不参与正文的块高度计算；用 grid 跨行的话，100vh 的栏会把行高撑出空洞。 */
body.layout-sidebar .side-rail {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--rail-w);
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px 16px;
    overflow-y: auto;
    background: linear-gradient(180deg, var(--brand-dark), var(--brand));
    color: #e9eef3;
    z-index: 45;
}

body.layout-sidebar .site-flash,
body.layout-sidebar .site-main,
body.layout-sidebar .site-footer { margin-left: var(--rail-w); }

body.layout-sidebar .site-main {
    width: auto;
    max-width: none;
    padding: 24px 34px 44px;
}

body.layout-sidebar .site-flash .container { width: auto; max-width: none; padding: 12px 34px 0; margin: 0; }
body.layout-sidebar .site-footer .container { width: auto; max-width: none; }

body.layout-sidebar .rail-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}
body.layout-sidebar .rail-brand img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
body.layout-sidebar .rail-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .16);
    font-size: 17px;
    font-weight: 600;
}
body.layout-sidebar .rail-brand-text { display: flex; flex-direction: column; min-width: 0; }
body.layout-sidebar .rail-brand-text strong { font-size: 16px; letter-spacing: .5px; }
body.layout-sidebar .rail-brand-text small {
    font-size: 11px;
    color: rgba(233, 238, 243, .66);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.layout-sidebar .rail-search { display: flex; gap: 6px; }
body.layout-sidebar .rail-search input {
    flex: 1;
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(6, 10, 14, .32);
    color: #fff;
    font-size: 13px;
}
body.layout-sidebar .rail-search input::placeholder { color: rgba(233, 238, 243, .5); }
body.layout-sidebar .rail-search input:focus { outline: none; border-color: var(--accent); }
body.layout-sidebar .rail-search button {
    height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

body.layout-sidebar .rail-nav { display: flex; flex-direction: column; gap: 1px; }
body.layout-sidebar .rail-item {
    display: block;
    padding: 8px 10px;
    border-radius: 7px;
    color: rgba(233, 238, 243, .88);
    font-size: 13.5px;
}
body.layout-sidebar .rail-item:hover { background: rgba(255, 255, 255, .1); color: #fff; }
body.layout-sidebar .rail-item.active { background: rgba(255, 255, 255, .16); color: #fff; font-weight: 600; }
body.layout-sidebar .rail-group { display: flex; flex-direction: column; gap: 1px; }
body.layout-sidebar .rail-group-title { margin-top: 4px; font-weight: 600; }
body.layout-sidebar .rail-sub {
    padding: 5px 10px 5px 24px;
    border-left: 1px solid rgba(255, 255, 255, .14);
    margin-left: 12px;
    color: rgba(233, 238, 243, .62);
    font-size: 12.5px;
}
body.layout-sidebar .rail-sub:hover { color: #fff; }

body.layout-sidebar .rail-foot {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 12.5px;
}
body.layout-sidebar .rail-foot a { color: rgba(233, 238, 243, .8); display: flex; justify-content: space-between; gap: 8px; }
body.layout-sidebar .rail-foot a:hover { color: #fff; }
body.layout-sidebar .rail-badge {
    min-width: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    text-align: center;
}

body.layout-sidebar .site-footer { margin-top: 0; }

/* ------------------------------------------------------------
   二、拼贴橱窗
   ------------------------------------------------------------ */
body.layout-bento { --page-max: 1200px; }

body.layout-bento .site-header { padding-bottom: 30px; }
body.layout-bento .main-nav { background: transparent; border-top: 0; }
body.layout-bento .nav-inner {
    width: max-content;
    max-width: 100%;
    gap: 2px;
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow-x: auto;
}
body.layout-bento .nav-inner > a {
    padding: 7px 14px;
    border-radius: 999px;
    white-space: nowrap;
}
body.layout-bento .nav-inner > a.active,
body.layout-bento .nav-inner > a:hover { background: var(--brand-light); color: var(--brand); }
body.layout-bento .nav-category-menu { flex: none; }
body.layout-bento .nav-category-toggle { border-radius: 999px; }
body.layout-bento .category-dropdown { border-radius: 16px; }

.bento-wall {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 136px;
    gap: 14px;
    grid-auto-flow: dense;
    margin: 22px 0 6px;
}
.bento-tile {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    transition: transform .22s ease, box-shadow .22s ease;
}
.bento-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.bento-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento-tile-text {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 12px 14px;
    color: #fff;
    background: linear-gradient(180deg, rgba(8, 12, 16, 0), rgba(8, 12, 16, .78));
}
.bento-tile-text strong { font-size: 15px; line-height: 1.3; }
.bento-tile-text small { font-size: 12px; opacity: .85; }
.bento-hero { grid-column: span 4; grid-row: span 2; }
.bento-hero-text { position: absolute; inset: auto 0 0 0; padding: 22px 26px; color: #fff; z-index: 2; }
.bento-hero-text strong { display: block; font-size: 26px; letter-spacing: .5px; }
.bento-hero-text small { display: block; margin-top: 6px; font-size: 13px; opacity: .85; }
.bento-hero::after,
.bento-tall::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 12, 16, 0) 45%, rgba(8, 12, 16, .68));
}
.bento-tall { grid-column: span 2; }
.bento-cat { grid-column: span 2; background: var(--brand-light); border-color: transparent; }
.bento-cat .bento-tile-text { background: none; color: var(--brand); position: static; padding: 0; height: 100%; flex-direction: column; justify-content: center; align-items: flex-start; gap: 3px; }
.bento-cat .bento-tile-text strong { font-size: 16px; }
.bento-cat .bento-tile-text small { color: rgba(35, 39, 47, .58); opacity: 1; }
.bento-shop { grid-column: span 2; }
.bento-shop img.bento-shop-logo { position: static; width: 46px; height: 46px; border-radius: 12px; object-fit: cover; margin: 12px 0 auto 12px; }
.bento-shop-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin: 12px 0 auto 12px;
    border-radius: 12px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 18px;
    font-weight: 600;
}
.bento-shop .bento-tile-text { background: none; color: var(--text); }
.bento-shop .bento-tile-text small { color: var(--muted); opacity: 1; }
.bento-note {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    background: var(--brand);
    border-color: transparent;
    color: #fff;
}
.bento-note .bento-tile-text { position: static; padding: 0; background: none; color: #fff; flex-direction: column; align-items: flex-start; gap: 4px; }
.bento-note .bento-tile-text small { color: rgba(255, 255, 255, .78); }
.bento-note-link { font-size: 13px; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .5); align-self: flex-start; padding-bottom: 2px; }
.bento-note-link:hover { border-bottom-color: #fff; }

body.layout-bento .product-card {
    border: 0;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 1px 3px rgba(16, 24, 32, .06);
}
body.layout-bento .product-card-media { border-radius: 18px 18px 0 0; background: var(--accent-light); }
body.layout-bento .product-card-price strong { color: var(--accent); }
body.layout-bento .home-shelf-section .product-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 1fr);
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 6px;
    scrollbar-width: thin;
}
body.layout-bento .section-head h2 { padding-left: 0; }
body.layout-bento .section-head h2::before { display: none; }
body.layout-bento .rec-shop-card { border-radius: 18px; border-color: transparent; box-shadow: 0 1px 3px rgba(16, 24, 32, .06); }

/* ------------------------------------------------------------
   三、目录清单
   ------------------------------------------------------------ */
body.layout-ledger {
    --page-max: 960px;
    --border: #dfe3e8;
}
body.layout-ledger .topbar { display: none; }
body.layout-ledger .site-header { box-shadow: none; border-bottom: 1px solid var(--border); }
body.layout-ledger .header-main { padding: 16px 0; }
body.layout-ledger .main-nav { background: transparent; border-top: 0; }
body.layout-ledger .nav-inner { counter-reset: ledger-nav; gap: 0; }
body.layout-ledger .nav-inner > a { padding: 10px 12px; font-variant-numeric: tabular-nums; }
body.layout-ledger .nav-inner > a::before {
    counter-increment: ledger-nav;
    content: counter(ledger-nav, decimal-leading-zero);
    margin-right: 6px;
    color: var(--muted);
    font-size: 11px;
}
body.layout-ledger .nav-inner > a.active { color: var(--brand); }
body.layout-ledger .nav-inner > a.active::before { color: var(--brand); }
body.layout-ledger .nav-category-menu { display: none; }

.ledger-masthead { padding: 46px 0 8px; border-bottom: 2px solid var(--text); }
.ledger-kicker { margin: 0 0 12px; font-size: 12px; letter-spacing: 3px; color: var(--muted); }
.ledger-masthead h1 { margin: 0; font-size: 44px; line-height: 1.18; letter-spacing: 1px; }
.ledger-masthead h1 em { font-style: normal; color: var(--brand); }
.ledger-lede { margin: 12px 0 26px; color: var(--muted); font-size: 14px; }
.ledger-toc { list-style: none; margin: 0 0 22px; padding: 0; border-top: 1px solid var(--border); }
.ledger-toc li { border-bottom: 1px solid var(--border); }
.ledger-toc a {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 14px;
    padding: 11px 4px;
    color: var(--text);
    font-size: 15px;
}
.ledger-toc a:hover { background: var(--brand-light); color: var(--brand); }
.ledger-toc .ledger-toc-meta { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ledger-actions { display: flex; gap: 10px; padding-bottom: 4px; }

.ledger-no {
    display: inline-block;
    min-width: 34px;
    margin-right: 10px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
}
body.layout-ledger .section { margin-top: 40px; }
body.layout-ledger .section-head { border-bottom: 1px solid var(--border); padding-bottom: 8px; }
body.layout-ledger .section-head h2 { padding-left: 0; font-size: 21px; display: flex; align-items: baseline; }
body.layout-ledger .section-head h2::before { display: none; }

.ledger-catlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.ledger-catlist li { border-bottom: 1px solid var(--border); }
.ledger-catlist a {
    display: grid;
    grid-template-columns: 52px 150px minmax(0, 1fr);
    align-items: baseline;
    gap: 16px;
    padding: 14px 4px;
    color: var(--text);
}
.ledger-catlist a:hover { background: var(--brand-light); }
.ledger-cat-no { color: var(--brand); font-size: 13px; font-variant-numeric: tabular-nums; }
.ledger-cat-name { font-size: 17px; }
.ledger-cat-sub { color: var(--muted); font-size: 12.5px; }

/* 商品卡在这套版面里排成目录行：图在左，名称与卖点居中，价格与加购靠右。 */
body.layout-ledger .product-grid { display: block; border-top: 1px solid var(--border); }
body.layout-ledger .product-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 14px 4px;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
body.layout-ledger .product-card:hover { background: var(--brand-light); box-shadow: none; }
body.layout-ledger .product-card-media { position: relative; width: 76px; height: 76px; aspect-ratio: auto; border-radius: 4px; }
body.layout-ledger .product-card-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 116px 116px;
    grid-template-areas:
        "title price cart"
        "shop  price cart"
        "brief price cart";
    align-items: center;
    column-gap: 18px;
    padding: 0;
}
body.layout-ledger .product-card-body h3 { grid-area: title; min-height: 0; font-size: 15px; font-weight: 500; }
body.layout-ledger .product-card-brief { grid-area: brief; margin: 0; font-size: 12.5px; }
body.layout-ledger .product-card-shop { grid-area: shop; margin: 0; font-size: 12.5px; }
body.layout-ledger .product-card-price { grid-area: price; justify-self: end; text-align: right; }
body.layout-ledger .product-card-price strong { font-size: 17px; font-variant-numeric: tabular-nums; }
body.layout-ledger .product-card-form { grid-area: cart; }
body.layout-ledger .product-card-form .btn { width: 100%; }
body.layout-ledger .badge { top: 4px; left: 4px; font-size: 10px; padding: 1px 5px; }

body.layout-ledger .hot-magazine { display: block; border-top: 1px solid var(--border); }
/* 横向滑动的格子只有 208px，塞不下目录行；这套版面里给它一条行的宽度。 */
body.layout-ledger .hot-scroller-cell { flex-basis: 560px; }
body.layout-ledger .hot-scroller { padding-bottom: 6px; }
body.layout-ledger .hot-feature { grid-column: auto; display: block; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none; background: transparent; }
body.layout-ledger .hot-feature-media { max-height: 260px; border-radius: 4px; }
body.layout-ledger .rec-shop-card { border-radius: 4px; }

/* ------------------------------------------------------------
   四、沉浸舞台
   ------------------------------------------------------------ */
body.layout-stage { --page-max: 1240px; overflow-x: clip; }
body.layout-stage .site-main { padding-top: 0; }

.stage-cover {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 440px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
}
.stage-cover-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-cover-blank { display: block; opacity: .5; }
.stage-cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(8, 12, 16, .84) 0%, rgba(8, 12, 16, .52) 46%, rgba(8, 12, 16, .18) 100%);
}
.stage-cover-body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    color: #fff;
}
.stage-kicker { margin: 0; font-size: 12px; letter-spacing: 4px; color: rgba(255, 255, 255, .72); }
.stage-cover-body h1 { margin: 0; font-size: 54px; line-height: 1.1; letter-spacing: 2px; font-weight: 700; }
.stage-sub { margin: 4px 0 14px; font-size: 15px; color: rgba(255, 255, 255, .82); }
.stage-actions { display: flex; gap: 12px; }
.stage-cover-body .btn-primary { background: var(--accent); color: #fff; border-color: transparent; }
.stage-cover-body .btn-primary:hover { background: var(--brand-2, var(--accent)); }
.stage-cover-body .btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .55); }
.stage-cover-body .btn-ghost:hover { border-color: #fff; color: #fff; }

.stage-circles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    padding: 26px 0 6px;
    margin-top: 22px;
    border-bottom: 1px solid var(--border);
}
.stage-circle { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 96px; color: var(--text); }
.stage-circle-dot {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand);
    font-size: 20px;
    font-weight: 600;
    transition: transform .2s ease;
}
.stage-circle:hover .stage-circle-dot { transform: translateY(-4px); background: var(--brand); color: #fff; }
.stage-circle-name { font-size: 12.5px; line-height: 1.35; text-align: center; }

body.layout-stage .home-shelf-section {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 0 34px;
    align-items: start;
    padding: 30px 0;
}
body.layout-stage .home-shelf-section:nth-of-type(even) { background: var(--brand-light); }
body.layout-stage .home-shelf-section .section-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    position: sticky;
    top: 22px;
    margin-bottom: 0;
}
body.layout-stage .home-shelf-section .section-head h2 { padding-left: 0; font-size: 24px; }
body.layout-stage .home-shelf-section .section-head h2::before { display: none; }
body.layout-stage .home-shelf-section .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.layout-stage .product-card { border: 0; border-radius: 14px; box-shadow: 0 1px 3px rgba(16, 24, 32, .07); }
body.layout-stage .product-card-media { border-radius: 14px 14px 0 0; }
body.layout-stage .hero { border-radius: 18px; }

/* ------------------------------------------------------------
   五、后台选择器缩略图
   ------------------------------------------------------------
   缩略图画的是骨架形状，不是配色：侧栏竖条、拼贴大小格、目录横线、整幅首屏。
   取色用 --brand/--brand-dark/--brand-light，跟着后台当前配色走。 */
.layout-preview-sidebar {
    display: grid;
    grid-template-columns: 15px minmax(0, 1fr);
    grid-template-rows: 10px minmax(0, 1fr);
    gap: 3px;
}
.layout-preview-sidebar .lp-bar {
    grid-row: 1 / span 2;
    height: auto;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--brand-dark), var(--brand));
}
.layout-preview-sidebar .lp-hero { height: auto; background: var(--brand-light); }
.layout-preview-sidebar .lp-cells { grid-column: 2; }

.layout-preview-bento { background: #f6f7f9; }
.layout-preview-bento .lp-bar { display: none; }
.layout-preview-bento .lp-hero { width: 34px; height: 7px; margin: 0 auto; border-radius: 999px; background: var(--brand); }
.layout-preview-bento .lp-cells { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
.layout-preview-bento .lp-cells i { border: 0; border-radius: 5px; background: #fff; box-shadow: inset 0 0 0 1px #e3e7ec; }
.layout-preview-bento .lp-cells i:nth-child(1) { grid-column: span 2; grid-row: span 2; background: var(--brand-light); box-shadow: none; }
.layout-preview-bento .lp-cells i:nth-child(2) { grid-row: span 2; }

.layout-preview-ledger { display: grid; grid-template-rows: 13px minmax(0, 1fr); gap: 4px; background: #fbfaf8; }
.layout-preview-ledger .lp-bar { display: none; }
.layout-preview-ledger .lp-hero { height: auto; border-radius: 2px; background: #24211d; }
.layout-preview-ledger .lp-cells { display: block; }
.layout-preview-ledger .lp-cells i { height: 3px; margin-bottom: 1px; border: 0; border-radius: 0; border-bottom: 1px solid #d6d2c9; background: transparent; }

.layout-preview-stage { display: grid; grid-template-rows: 19px minmax(0, 1fr); gap: 3px; background: #f4f5f7; }
.layout-preview-stage .lp-bar { display: none; }
.layout-preview-stage .lp-hero { height: auto; border-radius: 4px; background: linear-gradient(100deg, #0b0f14, var(--brand-dark)); }
.layout-preview-stage .lp-cells { align-content: center; }
.layout-preview-stage .lp-cells i { width: 12px; height: 12px; margin: 0 auto; border-radius: 50%; border-color: #d3d8de; }

/* ------------------------------------------------------------
   六、窄屏收敛
   ------------------------------------------------------------ */
@media (max-width: 1100px) {
    .bento-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .bento-hero { grid-column: span 4; }
    .bento-tall, .bento-cat, .bento-shop, .bento-note { grid-column: span 2; }
    body.layout-stage .home-shelf-section { grid-template-columns: minmax(0, 1fr); gap: 16px 0; }
    body.layout-stage .home-shelf-section .section-head { position: static; }
    body.layout-stage .home-shelf-section .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    body.layout-sidebar .side-rail {
        position: static;
        width: auto;
        gap: 10px;
        padding: 14px 16px 16px;
    }
    body.layout-sidebar .site-flash,
    body.layout-sidebar .site-main,
    body.layout-sidebar .site-footer { margin-left: 0; }
    body.layout-sidebar .rail-nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
    /* 横滑之后条目不能再被压窄，否则「首页」会竖着排。 */
    body.layout-sidebar .rail-item { flex: none; white-space: nowrap; }
    body.layout-sidebar .rail-group { flex: none; }
    body.layout-sidebar .rail-sub { display: none; }
    body.layout-sidebar .rail-foot { margin-top: 4px; flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
    body.layout-sidebar .site-main { padding: 16px; }
    body.layout-sidebar .site-flash .container { padding: 12px 16px 0; }
}

@media (max-width: 720px) {
    .bento-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; }
    .bento-hero, .bento-tall, .bento-cat, .bento-shop, .bento-note { grid-column: span 2; }
    .ledger-masthead h1 { font-size: 30px; }
    .ledger-catlist a { grid-template-columns: 40px minmax(0, 1fr); }
    .ledger-cat-sub { display: none; }
    body.layout-ledger .product-card { grid-template-columns: 60px minmax(0, 1fr); }
    body.layout-ledger .hot-scroller-cell { flex-basis: 340px; }
    body.layout-ledger .product-card-media { width: 60px; height: 60px; }
    body.layout-ledger .product-card-body {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "title title"
            "brief price"
            "shop cart";
        row-gap: 6px;
    }
    .stage-cover { height: 340px; }
    .stage-cover-body h1 { font-size: 32px; letter-spacing: 1px; }
    body.layout-stage .home-shelf-section .product-grid { grid-template-columns: minmax(0, 1fr); }
}
