/* شجرة المنتجات — تصميم عربي (RTL). الشجرة بالكحلي والذهبي، والتصنيفات الجانبية بالأخضر المزرق لتمييزها بصريًا */
:root {
    --paper: #F2F1ED;
    --card: #FFFFFF;
    --card-2: #FBFAF7;
    --ink: #16233A;
    --ink-2: #44506A;
    --muted: #767268;
    --line: #E3E0D8;
    --line-2: #EFEDE7;
    --gold: #A8813A;
    --gold-soft: #F3E9D2;
    --teal: #1C6B67;
    --teal-soft: #DCEDEB;
    --danger: #A33A3A;
    --ok: #2F6B3A;
    --shadow: 0 1px 2px rgba(22, 35, 58, .06), 0 8px 24px rgba(22, 35, 58, .07);
    --shadow-lg: 0 18px 50px rgba(22, 35, 58, .18);
    --r: 14px;
    --r-s: 9px;
    --f-display: "Readex Pro", "Segoe UI", Tahoma, sans-serif;
    --f-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

:root:not([data-theme="light"]) {
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper: #11151B;
        --card: #171D25;
        --card-2: #1C232C;
        --ink: #E9E7E2;
        --ink-2: #B9C0CC;
        --muted: #8E9299;
        --line: #283040;
        --line-2: #212934;
        --gold: #D2A85F;
        --gold-soft: #33291A;
        --teal: #5CB8B1;
        --teal-soft: #14302E;
        --danger: #E0817D;
        --ok: #79C08A;
        --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .35);
        --shadow-lg: 0 20px 60px rgba(0, 0, 0, .55);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --paper: #11151B;
    --card: #171D25;
    --card-2: #1C232C;
    --ink: #E9E7E2;
    --ink-2: #B9C0CC;
    --muted: #8E9299;
    --line: #283040;
    --line-2: #212934;
    --gold: #D2A85F;
    --gold-soft: #33291A;
    --teal: #5CB8B1;
    --teal-soft: #14302E;
    --danger: #E0817D;
    --ok: #79C08A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .35);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, .55);
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--f-display);
    font-weight: 600;
    margin: 0;
    text-wrap: balance;
    letter-spacing: -.01em;
}

button, input, select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 6px;
}

.num {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* ----------------------------- الشريط العلوي ----------------------------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: color-mix(in srgb, var(--card) 88%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.topbar-in {
    max-width: 1500px;
    margin: 0 auto;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-inline-end: auto;
}

.mark {
    width: 34px;
    height: 34px;
    flex: none;
}

.brand h1 {
    font-size: 17px;
    line-height: 1.2;
}

.brand span {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    font-family: var(--f-body);
    font-weight: 400;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card);
    font-size: 12.5px;
    color: var(--ink-2);
}

.chip b {
    color: var(--ink);
    font-weight: 600;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ok);
    flex: none;
}

.dot.busy {
    background: var(--gold);
    animation: pulse 1.1s ease-in-out infinite;
}

.dot.bad {
    background: var(--danger);
}

@keyframes pulse {
    50% {
        opacity: .25;
        transform: scale(.8);
    }
}

.btn {
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 500;
    transition: background .18s, border-color .18s, transform .12s;
}

.btn:hover:not(:disabled) {
    background: var(--card-2);
    border-color: var(--gold);
}

.btn:active:not(:disabled) {
    transform: translateY(1px);
}

.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.btn.primary {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.btn.primary:hover:not(:disabled) {
    background: var(--ink-2);
    border-color: var(--ink-2);
}

.btn.ghost {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

/* شريط التقدّم أسفل الشريط العلوي */
.progress {
    height: 3px;
    background: var(--line-2);
    overflow: hidden;
}

.progress i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--gold), var(--teal));
    transition: width .5s ease;
}

.syncnote {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 18px 8px;
    font-size: 12.5px;
    color: var(--muted);
}

/* ----------------------------- بطاقة الشرح ----------------------------- */
.explain {
    max-width: 1500px;
    margin: 16px auto 0;
    padding: 0 18px;
}

.explain-in {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.explain-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
}

.explain-head h2 {
    font-size: 16px;
    margin-inline-end: auto;
}

.explain-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 0 18px 18px;
}

.lesson {
    border: 1px solid var(--line-2);
    border-radius: var(--r-s);
    padding: 14px;
    background: var(--card-2);
    position: relative;
    overflow: hidden;
}

.lesson.tree-l {
    border-inline-start: 3px solid var(--gold);
}

.lesson.facet-l {
    border-inline-start: 3px solid var(--teal);
}

.lesson h3 {
    font-size: 14.5px;
    margin-bottom: 4px;
}

.lesson p {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--ink-2);
}

.mini {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.mini span {
    font-size: 12px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--ink);
    border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
    animation: rise .5s both;
}

.facet-l .mini span {
    background: var(--teal-soft);
    border-color: color-mix(in srgb, var(--teal) 35%, transparent);
}

.mini span:nth-child(2) {
    animation-delay: .08s;
}

.mini span:nth-child(3) {
    animation-delay: .16s;
}

.mini span:nth-child(4) {
    animation-delay: .24s;
}

.mini span:nth-child(5) {
    animation-delay: .32s;
}

.mini i {
    color: var(--muted);
    font-style: normal;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
}

/* ----------------------------- التخطيط ----------------------------- */
.layout {
    max-width: 1500px;
    margin: 16px auto 60px;
    padding: 0 18px;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 18px;
    align-items: start;
}

.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow);
}

.nav {
    position: sticky;
    top: 72px;
    max-height: calc(100vh - 92px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modes {
    display: flex;
    gap: 4px;
    padding: 10px;
    border-bottom: 1px solid var(--line-2);
}

.mode {
    flex: 1;
    border: 1px solid transparent;
    background: transparent;
    border-radius: var(--r-s);
    padding: 8px 6px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--muted);
    transition: .18s;
}

.mode.on {
    background: var(--gold-soft);
    color: var(--ink);
    border-color: color-mix(in srgb, var(--gold) 40%, transparent);
}

.mode.facet.on {
    background: var(--teal-soft);
    border-color: color-mix(in srgb, var(--teal) 40%, transparent);
}

.search {
    padding: 10px;
    border-bottom: 1px solid var(--line-2);
}

.search input {
    width: 100%;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card-2);
}

.navscroll {
    overflow: auto;
    padding: 8px;
    scrollbar-width: thin;
}

/* شجرة */
.node {
    border-radius: var(--r-s);
}

.row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 9px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: var(--r-s);
    text-align: start;
    transition: background .16s, border-color .16s;
}

.row:hover {
    background: var(--card-2);
}

.row.sel {
    background: var(--gold-soft);
    border-color: color-mix(in srgb, var(--gold) 45%, transparent);
    font-weight: 600;
}

.facetmode .row.sel {
    background: var(--teal-soft);
    border-color: color-mix(in srgb, var(--teal) 45%, transparent);
}

.row .tw {
    width: 16px;
    flex: none;
    color: var(--muted);
    transition: transform .25s cubic-bezier(.4, 1.3, .5, 1);
    font-size: 11px;
}

.row.open .tw {
    transform: rotate(-90deg);
}

.row .nm {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13.5px;
}

.row .ct {
    font-size: 11.5px;
    color: var(--muted);
    background: var(--line-2);
    border-radius: 999px;
    padding: 1px 8px;
    flex: none;
}

.kids {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s ease;
    padding-inline-start: 12px;
    margin-inline-start: 6px;
    border-inline-start: 1px dashed var(--line);
}

.kids.open {
    grid-template-rows: 1fr;
}

.kids>div {
    overflow: hidden;
}

/* ----------------------------- المحتوى ----------------------------- */
.content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.head {
    padding: 16px 18px;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 6px;
}

.crumbs button {
    border: none;
    background: none;
    padding: 2px 4px;
    border-radius: 6px;
    color: var(--muted);
    font-size: 12.5px;
}

.crumbs button:hover {
    color: var(--ink);
    background: var(--line-2);
}

.crumbs .sep {
    opacity: .5;
}

.head h2 {
    font-size: 21px;
}

.head .en {
    color: var(--muted);
    font-size: 12.5px;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
}

.stat b {
    display: block;
    font-family: var(--f-display);
    font-size: 20px;
    line-height: 1.1;
}

.stat span {
    font-size: 11.5px;
    color: var(--muted);
}

.childgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.childcard {
    border: 1px solid var(--line);
    border-radius: var(--r-s);
    background: var(--card-2);
    padding: 10px;
    text-align: start;
    display: flex;
    gap: 10px;
    align-items: center;
    transition: transform .18s, border-color .18s, box-shadow .18s;
    animation: rise .35s both;
}

.childcard:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    box-shadow: var(--shadow);
}

.childcard .thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 7px;
    overflow: hidden;
    background: var(--line-2);
}

.childcard .thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.childcard .thumbs img:only-child {
    grid-column: span 2;
    grid-row: span 2;
}

.childcard .t {
    min-width: 0;
}

.childcard .t b {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.childcard .t span {
    font-size: 11.5px;
    color: var(--muted);
}

/* أشرطة الفلاتر */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 18px;
    border-top: 1px solid var(--line-2);
    align-items: center;
}

.fchip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12.5px;
    border: 1px solid color-mix(in srgb, var(--teal) 40%, transparent);
    background: var(--teal-soft);
    animation: rise .25s both;
}

.fchip button {
    border: none;
    background: none;
    color: var(--muted);
    padding: 0 2px;
    font-size: 14px;
    line-height: 1;
}

.fchip.tree-c {
    border-color: color-mix(in srgb, var(--gold) 40%, transparent);
    background: var(--gold-soft);
}

/* شبكة المنتجات */
.gridhead {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 2px 2px;
    flex-wrap: wrap;
}

.gridhead h3 {
    font-size: 15px;
    margin-inline-end: auto;
}

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

.pcard {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-s);
    overflow: hidden;
    text-align: start;
    padding: 0;
    display: flex;
    flex-direction: column;
    /* المتصفح يوسّط محتوى الأزرار افتراضيًا، فينكمش مربع الصورة إلى صفر */
    align-items: stretch;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
    animation: rise .3s both;
    content-visibility: auto;
    contain-intrinsic-size: 300px;
}

.pcard:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--gold);
}

/* مربع الصورة يأخذ ارتفاعه من العرض دائمًا، حتى للمنتجات بلا صورة */
.pimg {
    background: var(--line-2);
    position: relative;
    overflow: hidden;
}

.pimg::before {
    content: "";
    display: block;
    padding-top: 100%;
}

.pimg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity .35s ease, transform .5s ease;
}

.pimg img.in {
    opacity: 1;
}

.pcard:hover .pimg img {
    transform: scale(1.05);
}

.pimg .noimg {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 11.5px;
}

.pimg .qty {
    position: absolute;
    top: 8px;
    inset-inline-start: 8px;
    background: color-mix(in srgb, var(--card) 88%, transparent);
    backdrop-filter: blur(6px);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 2px 9px;
    font-size: 11.5px;
    font-weight: 600;
}

.pimg .qty.zero {
    color: var(--muted);
    font-weight: 400;
}

.pbody {
    padding: 9px 10px 11px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.pbody .nm {
    font-size: 12.8px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pbody .meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px;
    margin-top: auto;
    padding-top: 6px;
}

.pbody .price {
    font-weight: 600;
    font-size: 13px;
}

.pbody .brand {
    font-size: 10.5px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.more {
    display: grid;
    place-items: center;
    padding: 18px 0 4px;
}

.empty {
    padding: 40px 18px;
    text-align: center;
    color: var(--muted);
}

/* ----------------------------- نافذة المنتج ----------------------------- */
dialog {
    border: none;
    padding: 0;
    background: transparent;
    max-width: min(980px, 94vw);
    width: 100%;
}

dialog::backdrop {
    background: rgba(9, 12, 18, .62);
    backdrop-filter: blur(3px);
}

.sheet {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: pop .28s cubic-bezier(.2, .9, .3, 1.1);
}

@keyframes pop {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.985);
    }
}

.sheet-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line-2);
}

.sheet-head h3 {
    font-size: 16.5px;
    flex: 1;
}

.sheet-body {
    overflow: auto;
    padding: 16px 18px 20px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 18px;
}

.gal {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gal .big {
    aspect-ratio: 1;
    border-radius: var(--r-s);
    overflow: hidden;
    background: var(--line-2);
    cursor: zoom-in;
    position: relative;
}

.gal .big img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.gal .strip {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.gal .strip img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--line);
    cursor: pointer;
}

.kv {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 14px;
    font-size: 13.5px;
    margin-bottom: 14px;
}

.kv dt {
    color: var(--muted);
    font-size: 12.5px;
}

.kv dd {
    margin: 0;
}

.sect {
    margin-top: 14px;
}

.sect h4 {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 7px;
}

.pathline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 9px 11px;
    border-radius: var(--r-s);
    background: var(--gold-soft);
    border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
    margin-bottom: 8px;
}

.pathline button {
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 500;
    padding: 2px 5px;
    border-radius: 6px;
}

.pathline button:hover {
    background: color-mix(in srgb, var(--gold) 22%, transparent);
}

.pathline .sep {
    color: var(--muted);
    font-size: 11px;
}

.facetlist {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.facetlist button {
    border: 1px solid color-mix(in srgb, var(--teal) 35%, transparent);
    background: var(--teal-soft);
    border-radius: 999px;
    padding: 4px 11px;
    font-size: 12.5px;
    transition: transform .15s;
}

.facetlist button:hover {
    transform: translateY(-1px);
}

.facetlist button b {
    color: var(--muted);
    font-weight: 400;
    font-size: 11.5px;
}

.storebars {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.storebar {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
}

.storebar i {
    height: 7px;
    border-radius: 999px;
    background: var(--teal);
    display: block;
    animation: grow .5s ease both;
}

@keyframes grow {
    from {
        transform: scaleX(0);
        transform-origin: right;
    }
}

/* مكبّر الصورة */
.zoom {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(8, 10, 14, .92);
    display: none;
    place-items: center;
    padding: 24px;
    cursor: zoom-out;
}

.zoom.on {
    display: grid;
}

.zoom img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    animation: pop .25s ease;
}

/* ----------------------------- الجولة ----------------------------- */
.tour {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
}

.tour.on {
    display: block;
}

.tour-mask {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 20, .55);
}

.tour-box {
    position: absolute;
    max-width: 330px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-s);
    box-shadow: var(--shadow-lg);
    padding: 14px 16px;
    animation: pop .25s ease;
}

.tour-box h4 {
    font-size: 14.5px;
    margin-bottom: 4px;
}

.tour-box p {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--ink-2);
}

.tour-box .row2 {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tour-box .row2 span {
    margin-inline-end: auto;
    font-size: 12px;
    color: var(--muted);
}

.spot {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 0 0 4px var(--gold), 0 0 0 9999px rgba(8, 12, 20, .55);
    transition: all .35s cubic-bezier(.3, .9, .3, 1);
    pointer-events: none;
}

/* ----------------------------- الدخول ----------------------------- */
.login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login form {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    padding: 26px;
    width: min(380px, 100%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: rise .4s both;
}

.login input {
    padding: 10px 13px;
    border-radius: var(--r-s);
    border: 1px solid var(--line);
    background: var(--card-2);
}

.login .err {
    color: var(--danger);
    font-size: 13px;
    min-height: 19px;
}

.hide {
    display: none !important;
}

/* ----------------------------- الجوال ----------------------------- */
@media (max-width: 1000px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .nav {
        position: static;
        max-height: none;
    }

    .navscroll {
        max-height: 46vh;
    }

    .explain-body {
        grid-template-columns: 1fr;
    }

    .sheet-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .topbar-in {
        padding: 9px 14px;
        gap: 8px;
    }

    .brand h1 {
        font-size: 15.5px;
    }

    .layout, .explain {
        padding: 0 14px;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(146px, 1fr));
        gap: 9px;
    }

    .head h2 {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}
