/* =================================================================
   ivysheet.com — shared stylesheet (หน้ากาก / facade mockup)
   สกัดโครง stack-photo / lightbox มาจาก index.php ตัวอย่างเดิม
   แล้วขยายเป็น design system กลางให้ทุกหน้าใช้ร่วมกัน
   ================================================================= */

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

:root {
    --ink: #1e1b2e;
    --muted: #64748b;
    --faint: #94a3b8;
    --accent: #4338ca;
    --accent-soft: #eef2ff;
    --accent-border: #c7d2fe;
    --pink: #db2777;
    --pink-soft: #fce7f3;
    --success: #057a55;
    --success-soft: #ecfdf5;
    --amber: #b45309;
    --amber-soft: #fffbeb;
    --card-bg: rgba(255, 255, 255, .86);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 10px;
}

body {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Thai", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 20%, #e0e7ff 0%, transparent 45%),
        radial-gradient(circle at 85% 82%, #fce7f3 0%, transparent 45%),
        linear-gradient(160deg, #f8fafc 0%, #eef2ff 100%);
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------------- Layout shell ---------------- */
.page-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------------- Contact strip (บนสุด — เพิ่มความน่าเชื่อถือ ใช้ข้อมูลติดต่อจริง) ---------------- */
.contact-strip { background: linear-gradient(120deg, #4338ca 0%, #7e22ce 55%, #db2777 100%); color: rgba(255,255,255,.92); font-size: 12.5px; }
.contact-strip-inner { display: flex; align-items: center; gap: 18px; padding: 7px 24px; flex-wrap: wrap; }
.contact-strip .contact-item { display: inline-flex; align-items: center; gap: 6px; color: inherit; opacity: .9; }
.contact-strip .contact-item:hover { opacity: 1; }
.contact-strip svg { width: 14px; height: 14px; }
.contact-strip .contact-phone {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.14); padding: 4px 12px; border-radius: 999px;
    font-weight: 700; color: #fff; opacity: 1; transition: background .2s ease;
}
.contact-strip .contact-phone:hover { background: rgba(255,255,255,.26); }
.contact-strip .contact-phone svg { width: 13px; height: 13px; }

/* ---------------- Top nav ---------------- */
.topnav {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(30, 27, 46, .06);
}
.topnav-inner {
    max-width: 1180px; margin: 0 auto; padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand-mark { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--ink); }
.brand-mark .dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--pink), var(--accent)); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 14px;
    border: none; cursor: pointer; transition: transform .2s cubic-bezier(.22,1,.36,1), box-shadow .2s ease;
    font-family: inherit;
}
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: linear-gradient(135deg, var(--pink) 0%, var(--accent) 100%); color: #fff; box-shadow: 0 10px 24px rgba(219,39,119,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(219,39,119,.36); }
.btn-green { background: linear-gradient(135deg, #059669 0%, #10b981 100%); color: #fff; box-shadow: 0 10px 24px rgba(5,150,105,.3); }
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(5,150,105,.38); }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid rgba(30,27,46,.12); }
.btn-outline:hover { border-color: rgba(30,27,46,.24); }
.btn-google {
    display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #3c4043;
    border: 1px solid #dadce0; padding: 10px 18px; border-radius: 999px; font-weight: 500; font-size: 14px;
    cursor: pointer; font-family: inherit;
}
.btn-google:hover { box-shadow: 0 2px 8px rgba(60,64,67,.18); }
.btn-google svg { width: 18px; height: 18px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------------- Badges / chips ---------------- */
.badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; font-size: 12px;
    font-weight: 500; border-radius: 999px; border: 1px solid transparent;
}
.badge-indigo { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-border); }
.badge-pink { color: var(--pink); background: var(--pink-soft); border-color: #fbcfe8; }
.badge-success { color: var(--success); background: var(--success-soft); border-color: #a7f3d0; }
.badge-amber { color: var(--amber); background: var(--amber-soft); border-color: #fde68a; }
.badge-muted { color: var(--muted); background: #f1f5f9; border-color: #e2e8f0; }

/* ---------------- Curriculum banner ---------------- */
.curriculum-banner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin: 28px 0;
}
@media (max-width: 720px) {
    .curriculum-banner { grid-template-columns: 1fr; gap: 10px; margin: 16px 0; }
    .curriculum-card { padding: 13px 16px 11px; gap: 4px; }
    .curriculum-card .badge { font-size: 10.5px; padding: 3px 10px; }
    .curriculum-card h3 { font-size: 14px; }
    .curriculum-card p { font-size: 12px; }
}
.curriculum-card {
    position: relative; overflow: hidden;
    padding: 22px 24px 20px; border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,.5);
    box-shadow: 0 14px 30px rgba(30,27,46,.10), inset 0 1px 0 rgba(255,255,255,.6);
    display: flex; flex-direction: column; gap: 8px;
}
.curriculum-card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
}
.curriculum-card.active {
    background: linear-gradient(160deg, #ecfdf5 0%, #d1fae5 48%, #a7f3d0 100%);
}
.curriculum-card.active::before { background: linear-gradient(90deg, #059669, #34d399); }
.curriculum-card.upcoming {
    background: linear-gradient(160deg, #fffbeb 0%, #fef3c7 48%, #fde68a 100%);
}
.curriculum-card.upcoming::before { background: linear-gradient(90deg, #b45309, #f59e0b); }
.curriculum-card h3 { font-size: 17px; }
.curriculum-card p { font-size: 13.5px; color: var(--muted); }

/* ---------------- Announcement card (สถานะการเปิดจำหน่าย) ---------------- */
.announce-card {
    margin: 24px 0 4px; padding: 18px 24px; border-radius: var(--radius-md);
    background: linear-gradient(135deg, #059669 0%, #10b981 45%, #34d399 100%);
    color: #fff; display: flex; align-items: center; gap: 12px;
    box-shadow: 0 14px 30px rgba(5,150,105,.28);
}
.announce-card .icon { font-size: 20px; flex-shrink: 0; line-height: 1; }
.announce-card p { font-size: 14px; font-weight: 500; line-height: 1.55; margin: 0; }
@media (max-width: 560px) { .announce-card { padding: 16px 18px; } }

/* ---------------- Hero ---------------- */
.hero { padding: 56px 0 20px; text-align: center; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 700; line-height: 1.25; }
.hero p.lead { margin-top: 14px; font-size: 16px; color: var(--muted); max-width: 560px; margin-inline: auto; }
.hero-cta { margin-top: 26px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------- Section heading ---------------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 40px 0 18px; gap: 12px; flex-wrap: wrap; }
.section-head h2 { font-size: 22px; font-weight: 700; }
.section-head .count { font-size: 13px; color: var(--muted); }

/* ---------------- Subject grid ---------------- */
.year-block { margin-bottom: 36px; scroll-margin-top: 90px; }
.subject-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px;
}
@media (max-width: 640px) {
    .subject-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .subject-card .body { padding: 10px 10px 12px; gap: 4px; }
    .subject-card .code { font-size: 12.5px; }
    .subject-card .name { font-size: 12.5px; min-height: 32px; }
    .subject-card .meta { font-size: 10.5px; }
    .subject-card .price { font-size: 12.5px; }
    .subject-card .fmt-row { flex-direction: column; align-items: flex-start; gap: 5px; }
}
.subject-card {
    background: var(--card-bg); border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius-md);
    overflow: hidden; backdrop-filter: blur(8px); transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease;
    display: flex; flex-direction: column;
}
.subject-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(30,27,46,.14); }
.subject-card a.card-link { display: flex; flex-direction: column; height: 100%; }
.subject-card .thumb { aspect-ratio: 3/4; overflow: hidden; background: #f1f5f9; }
.subject-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.subject-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.subject-card .code { font-weight: 700; font-size: 14px; color: var(--accent); }
.subject-card .name { font-size: 14px; font-weight: 500; line-height: 1.4; min-height: 38px; }
.subject-card .meta { font-size: 12px; color: var(--faint); }
.subject-card .fmt-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 8px; border-top: 1px dashed #e2e8f0; }
.subject-card .price { font-weight: 700; font-size: 15px; color: var(--ink); }
.subject-card .price .old { font-weight: 400; font-size: 11px; color: var(--faint); display: block; }

/* ---------------- Electives placeholder (ยังไม่มีข้อมูลจริง) ---------------- */
.electives-placeholder {
    margin-bottom: 36px; scroll-margin-top: 90px;
    padding: 40px 24px; border-radius: var(--radius-md); text-align: center;
    background: #f8fafc; border: 1px dashed #cbd5e1; color: var(--muted); font-size: 14px;
}

/* ---------------- Stack photo + lightbox (จาก index.php เดิม ปรับ generic) ---------------- */
.stack-wrap { width: 100%; padding: 20px 0 44px; }
.stack {
    position: relative; width: 100%; max-width: 260px; aspect-ratio: 3/4; margin: 0 auto;
    -webkit-tap-highlight-color: transparent;
}
.stack:active { transform: scale(.98); }
.stack img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    border-radius: 14px; border: 6px solid #fff; box-shadow: 0 10px 24px rgba(30,27,46,.18);
    transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease; will-change: transform; cursor: pointer;
}
.stack img:nth-child(1) { transform: rotate(0deg) translate(0,0); z-index: 5; }
.stack img:nth-child(2) { transform: rotate(-4deg) translate(-6px,4px); z-index: 4; }
.stack img:nth-child(3) { transform: rotate(6deg) translate(10px,5px); z-index: 3; }
.stack img:nth-child(4) { transform: rotate(-5deg) translate(-7px,-9px); z-index: 2; }
.stack img:nth-child(5) { transform: rotate(5deg) translate(9px,-6px); z-index: 1; }

.stack.fanned img:nth-child(1) { transform: rotate(-15deg) translate(-70px,10px) scale(.85); z-index: 5; }
.stack.fanned img:nth-child(2) { transform: rotate(-7deg) translate(-35px,0px) scale(.85); z-index: 4; }
.stack.fanned img:nth-child(3) { transform: rotate(0deg) translate(0px,-10px) scale(.9); z-index: 3; box-shadow: 0 16px 34px rgba(30,27,46,.24); }
.stack.fanned img:nth-child(4) { transform: rotate(7deg) translate(35px,0px) scale(.85); z-index: 2; }
.stack.fanned img:nth-child(5) { transform: rotate(15deg) translate(70px,10px) scale(.85); z-index: 1; }

.stack-hint { margin-top: 10px; font-size: 12px; color: var(--faint); text-align: center; }

@media (max-width: 480px) {
    .stack { max-width: 200px; }
    .stack.fanned img { transform-origin: center; }
    .stack.fanned img:nth-child(1) { transform: rotate(-20deg) translate(-45px,14px) scale(.6); }
    .stack.fanned img:nth-child(2) { transform: rotate(-10deg) translate(-22px,0px) scale(.6); }
    .stack.fanned img:nth-child(3) { transform: rotate(0deg) translate(0px,-8px) scale(.65); }
    .stack.fanned img:nth-child(4) { transform: rotate(10deg) translate(22px,0px) scale(.6); }
    .stack.fanned img:nth-child(5) { transform: rotate(20deg) translate(45px,14px) scale(.6); }
}

.lightbox {
    position: fixed; inset: 0; background: rgba(15,12,30,.9);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 9999; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s ease;
}
.lightbox.active { display: flex; opacity: 1; }
.lightbox-content { position: relative; max-width: 90%; max-height: 80vh; display: flex; align-items: center; justify-content: center; }
.lightbox-img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 8px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.5); border: 4px solid #fff; animation: zoomIn .25s ease-out; }
@keyframes zoomIn { from { transform: scale(.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-btn {
    position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: 24px; width: 50px; height: 50px;
    border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all .2s; user-select: none; -webkit-tap-highlight-color: transparent;
}
.lightbox-btn:hover { background: rgba(255,255,255,.3); scale: 1.05; }
.btn-prev { left: -70px; } .btn-next { right: -70px; }
.btn-close { position: absolute; top: -60px; right: 0; background: none; border: none; color: rgba(255,255,255,.7); font-size: 36px; cursor: pointer; transition: color .2s; }
.btn-close:hover { color: #fff; }
@media (max-width: 768px) {
    .btn-prev { left: 10px; background: rgba(0,0,0,.5); }
    .btn-next { right: 10px; background: rgba(0,0,0,.5); }
    .btn-close { top: -50px; right: 10px; font-size: 32px; }
}

/* ---------------- Subject detail page ---------------- */
.subject-detail { display: grid; grid-template-columns: 320px 1fr; gap: 44px; padding: 40px 0 60px; }
@media (max-width: 860px) { .subject-detail { grid-template-columns: 1fr; gap: 24px; } }
.detail-info h1 { font-size: 26px; font-weight: 700; }
.detail-info .code-line { color: var(--accent); font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.detail-info .meta-row { display: flex; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.format-option {
    border: 2px solid #e2e8f0; border-radius: var(--radius-md); padding: 16px 18px; margin-bottom: 14px;
    cursor: pointer; transition: border-color .2s ease, background .2s ease; background: #fff;
}
.format-option.selected { border-color: var(--pink); background: var(--pink-soft); }
.format-option .top-row { display: flex; justify-content: space-between; align-items: center; }
.format-option .fmt-name { font-weight: 700; font-size: 16px; }
.format-option .fmt-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.format-option .fmt-price { font-weight: 700; font-size: 18px; color: var(--ink); }
.buy-box { margin-top: 22px; padding: 20px; border-radius: var(--radius-md); background: var(--card-bg); border: 1px solid rgba(255,255,255,.7); }

/* ---------------- Footer ---------------- */
footer.site-footer { margin-top: 60px; padding: 30px 24px 40px; text-align: center; font-size: 12.5px; color: var(--faint); }

/* ---------------- Intro / landing page specific ---------------- */
.landing-hero {
    min-height: 92vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 40px 24px;
}
.landing-card {
    max-width: 640px; padding: 52px 40px; background: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.6);
    border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(30,27,46,.12); backdrop-filter: blur(14px);
}
.landing-logo { font-size: 30px; font-weight: 700; }
.landing-tag { margin-top: 10px; color: var(--muted); font-size: 15px; }
.landing-points { margin: 26px 0; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.landing-point { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.landing-point .icon { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }

/* Modal for login-required placeholder */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,12,30,.55); z-index: 500; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal-box { background: #fff; border-radius: var(--radius-md); padding: 28px; max-width: 380px; width: 100%; text-align: center; }
.modal-box h3 { font-size: 18px; margin-bottom: 10px; }
.modal-box p { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }

/* ---------------- Google sign-in — disabled state (เปิดใช้งานจริงทีหลัง) ---------------- */
/* ⚠️ 2026-07-06: เลิกใช้ real GIS div + overlay ตอน disabled (ทำให้ tooltip/badge หล่นกรอบ
   เมื่อมีอินเทอร์เน็ตจริงและ GIS โหลด iframe จริงขึ้นมา) เปลี่ยนเป็นปุ่มปลอมสถิต (static) แทน
   ไม่มี real GIS iframe และไม่มี title attribute ระหว่างที่ยังปิดใช้งานอยู่ */
.btn-google.is-disabled {
    filter: grayscale(1); opacity: .6; cursor: not-allowed;
}
.btn-google .soon-chip {
    background: var(--amber); color: #fff; font-size: 9.5px; font-weight: 700;
    padding: 3px 9px; border-radius: 999px; white-space: nowrap; margin-left: 2px;
}

/* ---------------- Group tabs (LAW1xxx..LAW4xxx + วิชาเลือก anchor jump) ---------------- */
.group-tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 22px 0 8px; }
.group-tab {
    padding: 10px 18px; border-radius: 999px;
    background: linear-gradient(135deg, var(--accent) 0%, #312e81 100%);
    border: 1px solid transparent; color: #fff;
    font-size: 13.5px; font-weight: 600; transition: all .2s ease;
    box-shadow: 0 6px 16px rgba(67,56,202,.25);
}
.group-tab:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(67,56,202,.34); }

/* ---------------- Teaser page (subject.php) — ราคา/สถานะ ---------------- */
.price-list { margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.fmt-row {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
    padding: 14px 18px; border-radius: var(--radius-md); background: #fff; border: 1px solid #e2e8f0;
}
.fmt-row.is-ready { border-color: #a7f3d0; background: var(--success-soft); }
.fmt-row .fmt-label { font-weight: 700; font-size: 14.5px; }
.fmt-row .fmt-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.fmt-row .fmt-price { font-weight: 700; font-size: 17px; white-space: nowrap; }
.fmt-row.is-pending .fmt-price { color: var(--faint); }
.pending-note { font-size: 12px; color: var(--faint); font-style: italic; margin-top: 2px; }
.contact-cta {
    margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 10px;
}

/* ---------------- Queue page (nextupdate.php) — คิวรายวิชาที่จะจำหน่ายถัดไป ---------------- */
.queue-group { margin: 30px 0; }
.queue-group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.queue-group-head h2 { font-size: 18px; font-weight: 700; }
.queue-price-from {
    display: inline-flex; align-items: center; padding: 5px 14px; font-size: 12.5px; font-weight: 600;
    border-radius: 999px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-border);
}
.queue-table { border-radius: var(--radius-md); overflow: hidden; border: 1px solid #e2e8f0; }
.queue-row {
    display: grid; grid-template-columns: 46px 92px 1fr 78px 150px 90px; gap: 12px; align-items: center;
    padding: 13px 18px; background: #fff;
}
.queue-row:not(.queue-row-head) { border-top: 1px solid #f1f5f9; }
.queue-row:not(.queue-row-head):nth-child(even) { background: #dcfce7; }
.queue-row-head {
    background: #f1f5f9; font-size: 11.5px; font-weight: 700; color: var(--muted);
    text-transform: uppercase; letter-spacing: .03em;
}
.queue-num { color: var(--faint); font-weight: 700; font-size: 13px; }
.queue-code { font-weight: 700; color: var(--accent); font-size: 13.5px; }
.queue-name { font-size: 13.5px; font-weight: 500; }
.queue-short { font-size: 12px; color: var(--muted); font-weight: 400; }
.queue-credits { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.queue-price { font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap; text-align: right; }
.queue-row-head .queue-price { text-align: right; }
.queue-status {
    display: inline-flex; align-items: center; gap: 6px; width: fit-content;
    background: linear-gradient(135deg, #059669, #10b981); color: #fff; font-weight: 700; font-size: 12px;
    padding: 6px 13px; border-radius: 999px; animation: queuePulse 1.8s ease-in-out infinite;
}
.queue-status .pulse-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: dotPulse 1.4s ease-in-out infinite;
}
.queue-status.is-live {
    background: linear-gradient(135deg, var(--accent), #6366f1); animation: none;
}
.queue-status.is-live .pulse-dot { animation: none; }
@keyframes queuePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.45); }
    50% { box-shadow: 0 0 0 7px rgba(16,185,129,0); }
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .35; transform: scale(.7); }
}
@media (max-width: 800px) {
    .queue-row { grid-template-columns: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 14px 16px; }
    .queue-row-head { display: none; }
    .queue-row .queue-num { order: 0; }
    .queue-row .queue-code { order: 0; }
    .queue-row .queue-name { width: 100%; order: 1; font-weight: 600; color: var(--ink); }
    .queue-row .queue-credits { order: 2; }
    .queue-row .queue-credits::after { content: "·"; margin-left: 10px; color: var(--faint); }
    .queue-row .queue-status { order: 3; }
    .queue-row .queue-price { order: 4; text-align: left; margin-left: auto; }
}
