/* ============================================================
   BUG 反馈中心 - 样式
   风格：浅色底 + 深墨顶栏 + 朱砂强调，克制、信息优先
   ============================================================ */

:root {
    --bg:           #f3f4f6;
    --surface:      #ffffff;
    --surface-2:    #fafbfc;
    --ink:          #14181d;
    --ink-2:        #5b6470;
    --ink-3:        #8a929e;
    --line:         #e3e6ea;
    --line-strong:  #d2d7de;

    --accent:       #d6402a;
    --accent-dark:  #b8341f;
    --accent-soft:  #fdf0ed;

    --pending:      #d6402a;
    --pending-bg:   #fdf0ed;
    --fixing:       #a9741a;
    --fixing-bg:    #fdf6e6;
    --fixed:        #12795c;
    --fixed-bg:     #eaf7f2;

    --radius:       12px;
    --radius-sm:    8px;
    --shadow-sm:    0 1px 2px rgba(20, 24, 29, .05);
    --shadow-md:    0 6px 20px rgba(20, 24, 29, .09);
    --shadow-lg:    0 24px 60px rgba(20, 24, 29, .22);

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
            "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    --mono: "SF Mono", "Cascadia Mono", "JetBrains Mono", Consolas, "Courier New", monospace;

    --maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, p, figure { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

[hidden] { display: none !important; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

::selection { background: #ffd9d1; }

/* ============================ 顶栏 ============================ */

.topbar {
    background: var(--ink);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid #000;
}

.topbar__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }

.brand__mark {
    flex: none;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    padding: 7px 9px 7px 11px;
    background: var(--accent);
    color: #fff;
    border-radius: 7px;
    line-height: 1;
}

.brand__title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand__desc {
    font-size: 12px;
    color: #9aa3ae;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar__actions { display: flex; align-items: center; gap: 8px; flex: none; }

/* ============================ 按钮 ============================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .16s ease, border-color .16s ease, transform .16s ease, color .16s ease;
    background: transparent;
}

.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover:not(:disabled) { background: var(--accent-dark); }

.btn--ghost {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .16);
    color: #e8ebef;
}
.btn--ghost:hover:not(:disabled) { background: rgba(255, 255, 255, .16); }

.modal .btn--ghost,
.form .btn--ghost {
    background: #fff;
    border-color: var(--line-strong);
    color: var(--ink-2);
}
.modal .btn--ghost:hover,
.form .btn--ghost:hover { background: var(--surface-2); color: var(--ink); }

.btn--sm { padding: 6px 12px; font-size: 13px; }

.modal .btn--danger {
    background: #fff;
    border-color: #eeccc5;
    color: var(--accent);
}
.modal .btn--danger:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.modal .btn.is-current {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    cursor: default;
}

.detail__admin-label { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }

.icon-btn {
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--ink-3);
    transition: background .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--bg); color: var(--ink); }

/* ============================ 统计 ============================ */

.stats {
    max-width: var(--maxw);
    margin: 22px auto 0;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.stat::after {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--line-strong);
}
.stat--pending::after { background: var(--pending); }
.stat--fixing::after  { background: var(--fixing); }
.stat--fixed::after   { background: var(--fixed); }

.stat__num {
    display: block;
    font-family: var(--mono);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.stat--pending .stat__num { color: var(--pending); }
.stat--fixing  .stat__num { color: var(--fixing); }
.stat--fixed   .stat__num { color: var(--fixed); }

.stat__label {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--ink-3);
}

/* ============================ 主区 ============================ */

.main {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 22px 20px 40px;
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.search {
    position: relative;
    flex: 1 1 260px;
    min-width: 0;
}

.search__icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--ink-3);
    stroke-width: 2;
    stroke-linecap: round;
    pointer-events: none;
}

.search input {
    width: 100%;
    padding: 10px 14px 10px 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition: border-color .16s ease, box-shadow .16s ease;
    -webkit-appearance: none;
    appearance: none;
}
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.tabs {
    display: flex;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
    border: 0;
    background: transparent;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-2);
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}
.tab:hover { background: var(--bg); color: var(--ink); }
.tab.is-active { background: var(--ink); color: #fff; }

/* ============================ 列表 ============================ */

.list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    animation: cardIn .34s cubic-bezier(.2, .7, .3, 1) both;
}

.card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card__bar { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.card__bar[data-status="pending"] { background: var(--pending); }
.card__bar[data-status="fixing"]  { background: var(--fixing); }
.card__bar[data-status="fixed"]   { background: var(--fixed); }

.card__body { padding: 14px 16px 14px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.card__head { display: flex; align-items: center; gap: 8px; }

.card__id {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-3);
    letter-spacing: .02em;
}

.card__time {
    margin-left: auto;
    font-size: 12px;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
}

.card__title {
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.card__desc {
    font-size: 13.5px;
    color: var(--ink-2);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 12.5px;
    color: var(--ink-2);
    padding-top: 2px;
}
.card__meta b { font-weight: 500; color: var(--ink-3); }
.card__meta span { word-break: break-all; }

.card__thumbs { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; }

.card__thumb {
    width: 56px;
    height: 56px;
    border-radius: 7px;
    object-fit: cover;
    border: 1px solid var(--line);
    background: var(--surface-2);
}

.card__thumb--more {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-family: var(--mono);
    color: var(--ink-2);
    background: var(--bg);
    cursor: default;
}

/* ============================ 状态标签 ============================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px 2px 7px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.7;
    white-space: nowrap;
}
.badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.badge[data-status="pending"] { color: var(--pending); background: var(--pending-bg); }
.badge[data-status="fixing"]  { color: var(--fixing);  background: var(--fixing-bg); }
.badge[data-status="fixed"]   { color: var(--fixed);   background: var(--fixed-bg); }

.card__flag {
    flex: none;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.7;
    color: var(--ink-2);
    background: var(--bg);
    border: 1px solid var(--line);
    white-space: nowrap;
}

/* ============================ 分页 / 空态 ============================ */

.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.pager button {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-2);
    cursor: pointer;
    font-variant-numeric: tabular-nums;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.pager button:hover:not(:disabled) { border-color: var(--ink-3); color: var(--ink); }
.pager button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager button:disabled { opacity: .45; cursor: not-allowed; }

.empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 20px;
    color: var(--ink-3);
    background: var(--surface);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
}
.empty strong { display: block; color: var(--ink-2); font-size: 15px; margin-bottom: 4px; }
.empty span { font-size: 13px; }

.skeleton {
    grid-column: 1 / -1;
    height: 148px;
    border-radius: var(--radius);
    background: linear-gradient(100deg, #eceef1 30%, #f6f7f9 50%, #eceef1 70%);
    background-size: 200% 100%;
    animation: shimmer 1.2s linear infinite;
}

/* ============================ 页脚 / 悬浮按钮 ============================ */

.foot {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px 32px;
    font-size: 12.5px;
    color: var(--ink-3);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.foot__dot { color: var(--line-strong); }

.fab {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 25;
    display: none;
    padding: 13px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(214, 64, 42, .38);
    cursor: pointer;
}
.fab:active { transform: scale(.97); }

/* ============================ 弹层 ============================ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal__mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 18, 22, .48);
    backdrop-filter: blur(3px);
    animation: fadeIn .2s ease both;
}

.modal__panel {
    position: relative;
    width: 100%;
    max-width: 620px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    animation: panelIn .26s cubic-bezier(.2, .8, .3, 1) both;
    overscroll-behavior: contain;
}
.modal__panel--wide { max-width: 760px; }
.modal__panel--sm { max-width: 420px; }

.modal__head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.modal__head h2 { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }

/* ============================ 表单 ============================ */

.form { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    display: flex;
    align-items: center;
    gap: 6px;
}
.field label i { color: var(--accent); font-style: normal; }
.label__opt { font-weight: 400; color: var(--ink-3); font-size: 12px; }

.field input[type="text"],
.field input[type="password"],
.field input[type="datetime-local"],
.field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
    resize: vertical;
    -webkit-appearance: none;
    appearance: none;
}
.field textarea { min-height: 88px; line-height: 1.6; }
.field input:focus,
.field textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input::placeholder,
.field textarea::placeholder { color: #a9b0ba; }

.field.is-error input,
.field.is-error textarea { border-color: var(--accent); background: var(--accent-soft); }

.field__hint { font-size: 12px; color: var(--ink-3); }

.form__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 4px;
    flex-wrap: wrap;
}
.form__note { font-size: 12px; color: var(--ink-3); flex: 1 1 160px; }
.form__btns { display: flex; gap: 8px; margin-left: auto; }

.hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* ============================ 上传 ============================ */

.dropzone {
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface-2);
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease;
}
.dropzone:hover,
.dropzone.is-drag { border-color: var(--accent); background: var(--accent-soft); }

.dropzone__inner { font-size: 13.5px; color: var(--ink-2); }
.dropzone__inner strong { color: var(--accent); }
.dropzone__inner span { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-3); }

.previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.preview {
    position: relative;
    width: 74px;
    height: 74px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-2);
}
.preview img { width: 100%; height: 100%; object-fit: cover; }

.preview__del {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 18, 22, .7);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preview__del:hover { background: var(--accent); }

.progress {
    height: 4px;
    border-radius: 999px;
    background: var(--line);
    overflow: hidden;
}
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s ease; }

/* ============================ 详情 ============================ */

.detail { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 16px; }

.detail__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.detail__id { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--ink-3); }
.detail__title { font-size: 19px; font-weight: 700; line-height: 1.4; letter-spacing: -.01em; word-break: break-word; }

.detail__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
}
.detail__item { min-width: 0; }
.detail__item .k { display: block; font-size: 12px; color: var(--ink-3); }
.detail__item .v { font-size: 14px; font-weight: 600; word-break: break-all; }

.detail__section h4 {
    font-size: 13px;
    color: var(--ink-3);
    font-weight: 600;
    margin-bottom: 6px;
}
.detail__text {
    font-size: 14px;
    color: var(--ink);
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
}
.detail__text:empty::before { content: "（未填写详细描述）"; color: var(--ink-3); }

.detail__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 9px 13px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    border: 1px solid #f4d3cb;
    color: var(--accent);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
    transition: background .15s ease;
}
.detail__link:hover { background: #fbdfd8; }
.detail__link-ico { flex: none; }

.detail__images { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.detail__images img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    cursor: zoom-in;
    background: var(--surface-2);
    transition: opacity .15s ease;
}
.detail__images img:hover { opacity: .88; }

.detail__admin {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}
.detail__admin .sep { margin-left: auto; }

/* ============================ 灯箱 / 提示 ============================ */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(9, 11, 14, .9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox__close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .26); }

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(8px);
    z-index: 120;
    background: var(--ink);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 11px 20px;
    border-radius: 999px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transition: opacity .22s ease, transform .22s ease;
    max-width: calc(100vw - 40px);
    text-align: center;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.is-error { background: var(--accent); }

/* ============================ 动画 ============================ */

@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ============================ 响应式 ============================ */

@media (max-width: 900px) {
    .list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .topbar__inner { padding: 12px 16px; }
    .brand__desc { display: none; }
    .stats { grid-template-columns: repeat(2, 1fr); padding: 0 16px; margin-top: 16px; }
    .main { padding: 16px 16px 90px; }
    .toolbar { gap: 10px; }
    .search { flex: 1 1 100%; }
    .tabs { width: 100%; }
    .tab { flex: 1; text-align: center; padding: 7px 10px; }

    .topbar__actions #btnSubmitTop { display: none; }
    .fab { display: block; }
    /* 提示气泡上移，避免与右下角悬浮按钮重叠 */
    .toast { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }

    .modal { padding: 0; align-items: flex-end; }
    .modal__panel {
        max-width: 100%;
        max-height: 92vh;
        border-radius: 18px 18px 0 0;
        animation: sheetIn .3s cubic-bezier(.2, .8, .3, 1) both;
    }
    .field-row { grid-template-columns: 1fr; gap: 16px; }
    .detail__grid { grid-template-columns: 1fr; }
    .detail__images { grid-template-columns: repeat(2, 1fr); }

    .form__foot { flex-direction: column; align-items: stretch; }
    .form__btns { margin-left: 0; }
    .form__btns .btn { flex: 1; }
}

@keyframes sheetIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (max-width: 340px) {
    .stats { gap: 8px; }
    .stat { padding: 11px 12px; }
    .stat__num { font-size: 22px; }
    .brand__mark { display: none; }
}

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