/* Studio — ธีมม่วงพาสเทล + ไล่สีส้มชมพู รองรับโหมดมืดอัตโนมัติ */
:root {
  --bg: #f4f2fb; --bg2: #ebe7fa; --card: rgba(255,255,255,.86); --card-solid: #fff;
  --text: #1c1830; --muted: #6e6886; --line: #e4dff3; --field: #faf9fe;
  --accent: #6d4aff; --accent2: #ff6f91; --accent3: #ffb547;
  --accent-soft: rgba(109,74,255,.10);
  --on: #12a26b; --on-soft: rgba(18,162,107,.12);
  --off: #e5484d; --off-soft: rgba(229,72,77,.11);
  --amber: #c27803; --amber-soft: rgba(255,181,71,.18);
  --shadow: 0 1px 2px rgba(40,25,90,.05), 0 8px 24px -8px rgba(40,25,90,.12);
  --shadow-lg: 0 20px 50px -18px rgba(76,48,200,.45);
  --radius: 18px;
  --grad: linear-gradient(135deg, #6d4aff 0%, #a64bf4 48%, #ff6f91 100%);
  --font: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Prompt", var(--font);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0d18; --bg2: #171428; --card: rgba(28,24,44,.82); --card-solid: #1c182c;
    --text: #efecfa; --muted: #a29cbd; --line: #2e2945; --field: #151222;
    --accent: #9b85ff; --accent2: #ff86a6; --accent3: #ffc46b;
    --accent-soft: rgba(155,133,255,.14);
    --on: #3ddc97; --on-soft: rgba(61,220,151,.13);
    --off: #ff6b70; --off-soft: rgba(255,107,112,.14);
    --amber: #ffc46b; --amber-soft: rgba(255,196,107,.14);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -10px rgba(0,0,0,.55);
    --shadow-lg: 0 20px 50px -18px rgba(109,74,255,.55);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); line-height: 1.6; font-family: var(--font); font-size: 15.5px;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 500px at 100% -10%, rgba(255,111,145,.13), transparent 60%),
    radial-gradient(800px 600px at -10% 10%, rgba(109,74,255,.14), transparent 60%);
  background-attachment: fixed; min-height: 100vh;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.3; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; font-weight: 700; margin: .25rem 0 1rem; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; }
.ico { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.ico-inline { width: 1em; height: 1em; vertical-align: -.15em; }

/* ---------- โครงหน้า Studio: แถบข้างบนคอม / แถบล่างบนมือถือ ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 1.25rem;
  padding: 1.25rem .9rem; border-right: 1px solid var(--line);
  background: var(--card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); padding: .25rem .5rem; }
.logo-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #fff;
  background: var(--grad); box-shadow: var(--shadow-lg); flex: none;
}
.logo-mark .ico { width: 24px; height: 24px; }
.logo-mark.big { width: 64px; height: 64px; border-radius: 20px; }
.logo-mark.big .ico { width: 36px; height: 36px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.logo-text b { font-family: var(--font-head); font-size: 1.2rem; }
.logo-text small { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mainnav { display: flex; flex-direction: column; gap: .2rem; }
.mainnav a {
  display: flex; align-items: center; gap: .75rem; padding: .6rem .8rem; border-radius: 12px;
  color: var(--muted); text-decoration: none; font-weight: 500; transition: background .15s, color .15s;
}
.mainnav a:hover { background: var(--accent-soft); color: var(--text); }
.mainnav a.active { background: var(--grad); color: #fff; box-shadow: var(--shadow-lg); }
.logout { margin-top: auto; }
button.ghost {
  display: flex; align-items: center; gap: .75rem; width: 100%; background: none; color: var(--muted);
  padding: .6rem .8rem; box-shadow: none; font-weight: 500;
}
button.ghost:hover { background: var(--off-soft); color: var(--off); transform: none; }

.topbar {
  display: none; position: sticky; top: 0; z-index: 20; align-items: center; justify-content: space-between;
  padding: calc(.5rem + env(safe-area-inset-top)) 16px .5rem; background: var(--card);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.topbar .logo { padding: 0; }
.topbar .logo-mark { width: 36px; height: 36px; border-radius: 11px; }
button.ghost.icon-only { width: auto; padding: .5rem; }
.page { width: 100%; max-width: 1040px; margin: 0 auto; padding: 1.75rem 1.5rem 3rem; min-width: 0; }
.narrow { max-width: 420px; }

@media (max-width: 860px) {
  .app { display: block; }
  .sidebar {
    position: fixed; z-index: 20; inset: auto 0 0 0; height: auto; flex-direction: row; gap: 0;
    padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line);
  }
  .sidebar .logo, .sidebar .logout { display: none; }
  .topbar { display: flex; }
  .mainnav { flex-direction: row; flex: 1; gap: 0; overflow-x: auto; scrollbar-width: none; }
  .mainnav a { flex: 1 0 auto; min-width: 52px; flex-direction: column; gap: .1rem; padding: .35rem .3rem; font-size: .68rem; }
  .mainnav a .ico { width: 22px; height: 22px; }
  .mainnav a.active { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
  .mainnav a { flex: 1 1 0; min-width: 0; font-size: .64rem; padding: .35rem .1rem; }
  .page { padding: 1rem 16px calc(5.5rem + env(safe-area-inset-bottom)); }
  h1 { font-size: 1.45rem; }
}

/* ---------- การ์ด ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem;
  margin: 1rem 0; box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.card h2 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .75rem; font-size: 1.08rem; font-weight: 600; }
.card h2 .ico { color: var(--accent); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 0 1rem; }
.stack { display: flex; flex-direction: column; gap: .8rem; }
.center { text-align: center; }

/* ---------- Hero หน้าภาพรวม ---------- */
.hero {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 1rem;
  padding: 1.6rem 1.75rem; border-radius: 24px; color: #fff; background: var(--grad); box-shadow: var(--shadow-lg);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(400px 200px at 85% 120%, rgba(255,181,71,.45), transparent 70%),
              radial-gradient(300px 160px at 10% -20%, rgba(255,255,255,.25), transparent 70%);
}
.hero-text { position: relative; z-index: 1; flex: 1; min-width: 0; }
.hero h1 { font-size: 2rem; margin: 0 0 .6rem; }
.eyebrow { margin: 0; opacity: .85; font-size: .85rem; letter-spacing: .04em; }
.hero-art { position: relative; z-index: 1; width: 210px; flex: none; }
.hero-art svg { width: 100%; height: auto; display: block; animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .hero-art svg { animation: none; } }
@media (max-width: 600px) {
  .hero { padding: 1.25rem; }
  .hero h1 { font-size: 1.6rem; }
  .hero-art { width: 110px; align-self: flex-end; margin-right: -.5rem; }
}
.pill {
  display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 1rem; padding: .3rem .8rem;
  border-radius: 999px; font-weight: 600; font-size: .9rem; background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.pill-on .dot { background: #5dffb4; box-shadow: 0 0 0 4px rgba(93,255,180,.25); }
.pill-off .dot { background: #ffd0d4; }

/* ---------- ตัวเลขสรุป ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin: 1rem 0; }
.stat {
  display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.stat p { margin: 0; }
.stat-label { color: var(--muted); font-size: .82rem; }
.stat-value { font-family: var(--font-head); font-size: 1.45rem; font-weight: 600; line-height: 1.2; }
.stat-value small { font-size: .85rem; color: var(--muted); font-weight: 500; }
.stat-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; flex: none; }
.stat-ico .ico { width: 24px; height: 24px; }
.tone-violet { background: var(--accent-soft); color: var(--accent); }
.tone-amber { background: var(--amber-soft); color: var(--amber); }
.tone-green { background: var(--on-soft); color: var(--on); }
.tone-red { background: var(--off-soft); color: var(--off); }
.ring {
  --p: 0; width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line) 0);
}
.ring span {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--card-solid); font-size: .72rem; font-weight: 600;
}

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 999px;
  font-size: .86rem; font-weight: 500; border: 1px solid var(--line);
}
.chip-on { background: var(--on-soft); color: var(--on); border-color: transparent; }
.chip-off { color: var(--muted); }
.more { font-weight: 500; text-decoration: none; }
.meter-row { display: grid; grid-template-columns: 3.2rem 1fr 3rem; align-items: center; gap: .6rem; margin: .45rem 0; font-size: .9rem; }
.meter-row b { text-align: right; font-weight: 600; }
.meter { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter div { height: 100%; border-radius: 99px; background: var(--grad); }
.meter.hot div { background: var(--off); }
.queue { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: .5rem; }
.queue div { display: flex; flex-direction: column; align-items: center; padding: .6rem .25rem; border-radius: 12px; background: var(--field); border: 1px solid var(--line); }
.queue b { font-family: var(--font-head); font-size: 1.35rem; line-height: 1.2; }
.queue span { font-size: .78rem; color: var(--muted); }

/* ---------- ฟอร์มและปุ่ม ---------- */
label { display: flex; flex-direction: column; gap: .3rem; font-weight: 500; }
label .muted, label .small { font-weight: 400; }
label.switch { flex-direction: row; align-items: center; gap: .6rem; font-weight: 400; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  font: inherit; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--field); color: var(--text); width: 100%; transition: border-color .15s, box-shadow .15s;
}
select { width: auto; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[type=radio] { width: 1.2rem; height: 1.2rem; flex: none; margin: 0; accent-color: var(--accent); }
/* สวิตช์เปิด/ปิด แบบแอปมือถือ */
input[type=checkbox] {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0; cursor: pointer;
  width: 2.6rem; height: 1.5rem; border-radius: 99px; background: var(--line); position: relative; transition: background .2s;
}
input[type=checkbox]::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: calc(1.5rem - 6px); height: calc(1.5rem - 6px);
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s;
}
input[type=checkbox]:checked { background: var(--grad); }
input[type=checkbox]:checked::after { transform: translateX(1.1rem); }
input[type=checkbox]:focus-visible { box-shadow: 0 0 0 4px var(--accent-soft); outline: none; }
textarea { min-height: 5rem; resize: vertical; }

button, a.button {
  font: inherit; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .62rem 1.15rem; border: 0; border-radius: 12px; background: var(--grad); color: #fff; cursor: pointer;
  text-decoration: none; box-shadow: 0 6px 16px -6px rgba(109,74,255,.6); transition: transform .12s, box-shadow .15s, filter .15s;
}
button:hover, a.button:hover { filter: brightness(1.06); transform: translateY(-1px); }
button:active, a.button:active { transform: none; }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: grayscale(.4); }
button.secondary, a.button.secondary {
  background: var(--card-solid); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow);
}
button.danger { background: var(--off); box-shadow: 0 6px 16px -6px rgba(229,72,77,.55); }
button.link { background: none; color: var(--accent); padding: 0; box-shadow: none; font-weight: 500; }
button.link:hover { transform: none; text-decoration: underline; }
button.wide { width: 100%; padding: .8rem; }
a.button.light { background: #fff; color: #5b3df0; box-shadow: 0 8px 20px -8px rgba(0,0,0,.35); }
a.button.glass { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.4); box-shadow: none; }
.small-btn { padding: .35rem .8rem; margin-top: .4rem; font-size: .85rem; }
form.inline { margin-left: auto; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1rem 0; }
.filters input { flex: 1 1 12rem; width: auto; }
.row { display: flex; gap: .75rem; flex-wrap: wrap; } .row label { flex: 1 1 10rem; }
.secret { display: grid; gap: .5rem; padding: .9rem 0; border-top: 1px dashed var(--line); }

/* ---------- ข้อความสถานะ ---------- */
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.on, .ok { color: var(--on); } .off { color: var(--off); }
.status { font-weight: 600; }
.warn { color: var(--amber); }
p.alert, p.ok {
  padding: .7rem 1rem; border-radius: 12px; font-weight: 500;
}
p.alert { background: var(--off-soft); color: var(--off); }
p.ok { background: var(--on-soft); }
div.warn { background: var(--amber-soft); border-radius: 12px; padding: .6rem 1rem; margin: .5rem 0; }
.big { font-family: var(--font-head); font-size: 1.7rem; font-weight: 600; margin: .25rem 0; }
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar div { height: 100%; background: var(--grad); border-radius: 99px; }
ul.plain { list-style: none; padding: 0; margin: .25rem 0; }
ul.plain li { padding: .2rem 0; }

/* ป้ายสถานะ (สคริปต์/คลิป) */
span[class*="st-"], strong[class*="st-"] {
  display: inline-flex; align-items: center; padding: .1rem .6rem; border-radius: 999px; font-size: .82rem;
  font-weight: 600; background: var(--accent-soft); color: var(--accent);
}
.st-failed, .st-rejected { color: var(--off); } .st-done, .st-approved { color: var(--on); }
.st-needs_review, .st-ready { color: var(--amber); }
span.st-failed, strong.st-failed, span.st-rejected, strong.st-rejected { background: var(--off-soft); }
span.st-done, strong.st-done, span.st-approved, strong.st-approved { background: var(--on-soft); }
span.st-needs_review, strong.st-needs_review, span.st-ready, strong.st-ready { background: var(--amber-soft); }

/* ---------- ตาราง ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); margin-top: 1rem; box-shadow: var(--shadow); }
.table-wrap table { margin: 0; }
table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .9rem; }
th { text-align: left; padding: .65rem .8rem; font-weight: 600; color: var(--muted); font-size: .8rem; background: var(--field); border-bottom: 1px solid var(--line); }
td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--accent-soft); }

/* ---------- รายการสินค้า/สคริปต์/คลิป ---------- */
a.card { transition: transform .15s, box-shadow .15s, border-color .15s; }
a.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: var(--shadow-lg); }
.card.product { display: flex; gap: 1rem; align-items: center; color: var(--text); text-decoration: none; }
.card.product img, .noimg {
  width: 84px; height: 84px; object-fit: cover; border-radius: 14px; flex: none; background: var(--line);
  display: flex; align-items: center; justify-content: center; font-size: .7rem; color: var(--muted);
}
.card.product strong { display: block; font-size: 1rem; }
.card.script { display: block; color: var(--text); text-decoration: none; }
.card.script strong { display: block; margin: .15rem 0; }
.gallery { display: flex; gap: .6rem; overflow-x: auto; margin-bottom: .5rem; padding-bottom: .25rem; }
.gallery img { width: 128px; height: 128px; object-fit: cover; border-radius: 14px; flex: none; }
.imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; margin-bottom: .5rem; }
.imgcard { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--field); }
.imgcard img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--line); }
.imgcard figcaption { display: flex; align-items: center; justify-content: space-between; gap: .3rem; padding: .35rem .45rem; font-size: .78rem; }
.imgbtns { display: flex; gap: .3rem; }
.imgbtns .small-btn { margin: 0; padding: .25rem .55rem; font-size: .78rem; }
.imgno { color: var(--muted); }
.links li { margin-bottom: .75rem; }
pre.bundle {
  white-space: pre-wrap; word-break: break-word; font: inherit; font-size: .9rem; margin: 0 0 .75rem;
  background: var(--field); border: 1px solid var(--line); border-radius: 14px; padding: 1rem;
}
details { margin: .5rem 0; }
summary { cursor: pointer; color: var(--accent); font-weight: 500; }
video.player { width: 100%; max-height: 72vh; background: #000; border-radius: 16px; display: block; }
audio { width: 100%; }

/* ---------- หน้าค่าใช้จ่าย ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 1rem; }
.tile { position: relative; overflow: hidden; }
.tile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.tile p { margin: 0; }
.daychart { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding-top: .5rem; border-bottom: 1px solid var(--line); }
.daycol { flex: 1; height: 100%; display: flex; align-items: flex-end; border-radius: 6px 6px 0 0; }
.daycol:hover { background: var(--accent-soft); }
.daybar { width: 100%; background: linear-gradient(180deg, var(--accent2), var(--accent)); border-radius: 6px 6px 2px 2px; min-height: 0; }
.dayaxis { display: flex; justify-content: space-between; margin: .3rem 0 .5rem; }

/* ---------- หน้าเข้าสู่ระบบ ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem 16px; }
.login-card {
  width: 100%; max-width: 400px; padding: 2rem 1.75rem; border-radius: 26px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.login-brand { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 1.25rem; }
.login-brand h1 { margin: .9rem 0 .1rem; font-size: 1.5rem; }
.login-brand p { margin: 0; color: var(--muted); }

/* ---------- หน้าสาธารณะ ---------- */
header.site, footer.site {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; padding: .9rem 1.25rem;
  background: var(--card); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px);
}
footer.site { border-top: 1px solid var(--line); border-bottom: 0; margin-top: 2rem; color: var(--muted); }
header nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.brand { font-family: var(--font-head); font-weight: 700; text-decoration: none; color: var(--text); }
header.site + .page { max-width: 760px; }

/* มือถือ: ตัวเลขสรุป 2 คอลัมน์ (วางท้ายไฟล์ให้ชนะกฎหลัก) */
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .stat { flex-direction: column; align-items: flex-start; gap: .5rem; padding: .85rem; }
  .stat-value { font-size: 1.2rem; }
  .hero .actions .button { padding: .55rem .9rem; }
}

/* ---------- หน้ารวมลิงก์ (paiyadee.com) ---------- */
.shop-hero {
  text-align: center; color: #fff; background: var(--grad); border-radius: 24px;
  padding: 1.6rem 1.25rem; margin: 1rem 0; box-shadow: var(--shadow-lg);
}
.shop-hero h1 { margin: 0 0 .3rem; font-size: 2rem; }
.shop-hero p { margin: .2rem 0; opacity: .95; }
.shop-search { margin: .5rem 0 1rem; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: .8rem; }
.shop-item {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; text-decoration: none;
  color: var(--text); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.shop-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.shop-item[hidden] { display: none; }
.shop-item img, .shop-item .noimg { width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; border-radius: 0; }
.shop-info { display: flex; flex-direction: column; gap: .35rem; padding: .7rem .75rem .8rem; flex: 1; }
.shop-info strong {
  font-size: .9rem; font-weight: 500; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.shop-price { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--accent2); }
.shop-btn {
  margin-top: auto; display: flex; justify-content: center; padding: .5rem .6rem; font-size: .85rem;
  font-weight: 600; color: #fff; background: var(--grad); border-radius: 12px;
  box-shadow: 0 6px 16px -6px rgba(109,74,255,.6);
}
.disclosure ul { padding-left: 1.2rem; margin: 0; font-size: .9rem; }
.disclosure li { margin-bottom: .4rem; }
header.site .logo { padding: 0; gap: .55rem; }
header.site .logo-mark { width: 34px; height: 34px; border-radius: 11px; }
header.site .logo-mark .ico { width: 20px; height: 20px; }

/* ---------- หลังบ้าน: ปัญหา + รายงาน ---------- */
.problem { border-left: 5px solid var(--line); }
.problem-error { border-left-color: var(--off); }
.problem-warn { border-left-color: var(--amber); }
.problem-info { border-left-color: var(--accent); }
.problem h2 { flex-wrap: wrap; }
.badge-error, .badge-warn, .badge-info {
  font-size: .72rem; font-weight: 600; padding: .1rem .55rem; border-radius: 999px; font-family: var(--font);
}
.badge-error { background: var(--off-soft); color: var(--off); }
.badge-warn { background: var(--amber-soft); color: var(--amber); }
.badge-info { background: var(--accent-soft); color: var(--accent); }
a.problem-banner {
  display: block; text-decoration: none; color: var(--text); font-weight: 500;
  border-left: 5px solid var(--amber); background: var(--amber-soft);
}
.daycol { gap: 1px; }
.daycol .daybar { flex: 1; }
.daybar.alt { background: linear-gradient(180deg, #ffd27a, var(--accent3)); }
.alt-text { color: var(--accent3); }
code { font-size: .82em; background: var(--field); border: 1px solid var(--line); border-radius: 6px; padding: .05rem .3rem; word-break: break-all; }
@media (max-width: 860px) { .mainnav a.desktop-only { display: none; } }
.on-accent { color: var(--accent); }
