/* ==========================================================================
   PUMSS (품스) — MO Web / PWA
   Mobile-first, responsive to desktop (sidebar layout at >= 900px)
   ========================================================================== */

:root {
  --brand: #ff8b43;
  --brand-600: #f2762a;
  --brand-700: #d95f14;
  --brand-50: #fff4ec;
  --brand-100: #ffe3d1;
  --ink: #191f28;
  --ink-2: #4e5968;
  --ink-3: #8b95a1;
  --ink-4: #b0b8c1;
  --line: #e5e8eb;
  --line-2: #f0f2f5;
  --canvas: #f2f4f6;
  --white: #fff;
  --green: #0fa47f;
  --blue: #2e5bff;
  --red: #f04452;
  --gold: #b8860b;
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .04), 0 1px 3px rgba(17, 24, 39, .03);
  --shadow: 0 4px 16px rgba(17, 24, 39, .06);
  --shadow-lg: 0 12px 32px rgba(17, 24, 39, .12);
  --sidebar-w: 264px;
  --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--canvas);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, li { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* icon baseline — inline SVGs must never stretch */
svg { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.icon-btn svg { width: 22px; height: 22px; }
.btn svg { width: 18px; height: 18px; }
.btn.sm svg, .btn.xs svg { width: 16px; height: 16px; }
.chip svg { width: 14px; height: 14px; }
.quick3 svg { width: 20px; height: 20px; }
.hero .pt-cta svg { width: 16px; height: 16px; }
.list-row svg.chev, .chev { width: 18px; height: 18px; color: var(--ink-4); flex: none; }
.side-link svg { width: 20px; height: 20px; }
.my-grid svg { width: 20px; height: 20px; }
.dgroup h4 img { width: 18px; height: 18px; }
.fab-top button svg { width: 20px; height: 20px; }

/* ---------- app shell ---------- */
#app { min-height: 100vh; min-height: 100dvh; }
.main { min-height: 100vh; display: flex; flex-direction: column; }
#screen {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 16px calc(var(--tab-h) + var(--safe-b) + 24px);
}
#screen.is-sub { max-width: 760px; padding-top: 12px; }

/* ---------- top bar (mobile) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 8px;
  height: 56px; padding: 0 12px 0 16px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar .logo { display: flex; align-items: center; gap: 8px; }
.topbar .logo img { height: 20px; width: auto; }
.topbar .logo-mark { width: 30px; height: 30px; border-radius: 9px; }
.topbar .spacer { flex: 1; }
.topbar-title { display: none; font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.topbar-search { display: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2); position: relative;
}
.icon-btn:active { background: var(--line-2); }
.icon-btn .dot {
  position: absolute; top: 8px; right: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); border: 1.5px solid #fff;
}
.topbar-back { display: none; }
.topbar.page .topbar-back { display: inline-flex; }
.topbar.page .logo { display: none; }
.topbar.page .topbar-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#screen.is-sub .page-head-block h1 { display: none; }
#screen.is-sub .page-head-block { padding: 0 2px 12px; }
@media (min-width: 900px) { #screen.is-sub .page-head-block h1 { display: block; } }

/* ---------- bottom tab (mobile) ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tab-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--line);
}
.bottomnav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 6px 0 10px;
  font-size: 11px; font-weight: 600; color: var(--ink-3); letter-spacing: -0.02em; line-height: 1.2;
}
.bottomnav a svg { width: 24px; height: 24px; }
.bottomnav a.on { color: var(--brand); }
.bottomnav .nav-center { position: relative; }
.bottomnav .nav-center .fab {
  width: 50px; height: 50px; margin-top: -22px; border-radius: 50%;
  background: linear-gradient(145deg, #ffa863, var(--brand-600));
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(242, 118, 42, .38);
  border: 3px solid #fff;
}
.bottomnav .nav-center .fab svg { width: 26px; height: 26px; }
.bottomnav .nav-center span { margin-top: 2px; }
.bottomnav .nav-center.on span { color: var(--brand); }

/* ---------- desktop sidebar ---------- */
.sidebar { display: none; }
@media (min-width: 900px) {
  body { font-size: 15px; }
  .sidebar {
    display: flex; flex-direction: column; gap: 6px;
    position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 50;
    background: #fff; border-right: 1px solid var(--line);
    padding: 22px 16px 18px; overflow-y: auto;
  }
  .sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; }
  .sidebar .brand img:first-child { width: 34px; height: 34px; border-radius: 10px; }
  .sidebar .brand .brand-logo { height: 21px; width: auto; }
  .sidebar .brand small { display: block; font-size: 10px; color: var(--ink-3); letter-spacing: .04em; }
  .side-points {
    margin: 0 0 12px; padding: 14px 16px; border-radius: var(--radius);
    background: linear-gradient(135deg, #ff9752, var(--brand-600)); color: #fff;
    box-shadow: 0 8px 20px rgba(242, 118, 42, .22);
  }
  .side-points .lbl { font-size: 11px; opacity: .9; font-weight: 600; }
  .side-points .val { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; margin-top: 2px; }
  .side-points .val span { font-size: 12px; font-weight: 700; opacity: .9; margin-left: 3px; }
  .side-group-label {
    font-size: 11px; font-weight: 700; color: var(--ink-4);
    padding: 14px 12px 6px; letter-spacing: .02em;
  }
  .side-link {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 12px; border-radius: 12px;
    font-size: 14px; font-weight: 600; color: var(--ink-2);
  }
  .side-link svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
  .side-link:hover { background: var(--canvas); }
  .side-link.on { background: var(--brand-50); color: var(--brand-700); }
  .side-link.on svg { color: var(--brand); }
  .sidebar .side-foot { margin-top: auto; padding: 14px 12px 0; font-size: 11px; color: var(--ink-4); line-height: 1.6; }
  .main { margin-left: var(--sidebar-w); }
  .topbar { height: 68px; padding: 0 28px; background: rgba(255,255,255,.9); border-bottom: 1px solid var(--line); }
  .topbar .logo { display: none; }
  .topbar .topbar-title { display: none; }
  .topbar-search { display: flex; align-items: center; gap: 8px; flex: 0 1 380px; background: var(--canvas); border-radius: 12px; padding: 0 8px 0 14px; height: 42px; }
  .topbar-search input { flex: 1; border: 0; background: none; outline: none; font-size: 14px; color: var(--ink); min-width: 0; }
  .topbar-search input::placeholder { color: var(--ink-4); }
  .topbar-search button { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--ink-3); }
  .topbar .page-head { display: none; }
  #screen { max-width: 1180px; padding: 24px 28px 48px; }
  #screen.is-sub { max-width: 1180px; padding-top: 20px; }
  .bottomnav { display: none; }
  .topbar.page .topbar-back { display: none; }
}
@media (max-width: 899px) {
  .desk-only { display: none !important; }
}

/* ---------- generic ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.card.tight { padding: 14px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.section { margin-top: 22px; }
.section:first-child { margin-top: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 2px 10px; }
.section-head h2 { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; }
.section-head .more { font-size: 12px; font-weight: 600; color: var(--ink-3); display: inline-flex; align-items: center; gap: 2px; }
.section-head .more::after { content: "›"; font-size: 15px; line-height: 1; margin-left: 2px; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.strong { font-weight: 700; }
.center { text-align: center; }
.hr { height: 1px; background: var(--line-2); margin: 14px 0; border: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.stack-4 > * + * { margin-top: 4px; }
.stack-8 > * + * { margin-top: 8px; }
.stack-12 > * + * { margin-top: 12px; }
.stack-16 > * + * { margin-top: 16px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 50px; padding: 0 18px; border-radius: 14px;
  font-size: 15px; font-weight: 700; letter-spacing: -0.02em;
  background: var(--line-2); color: var(--ink); transition: transform .12s ease, background .15s;
  min-width: 0; white-space: nowrap;
}
.btn:active { transform: scale(.985); }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 6px 14px rgba(242, 118, 42, .22); }
.btn.primary:active { background: var(--brand-600); }
.btn.soft { background: var(--brand-50); color: var(--brand-700); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.ghost { background: #fff; border: 1px solid var(--line); }
.btn.sm { height: 38px; padding: 0 14px; font-size: 13px; border-radius: 11px; }
.btn.xs { height: 32px; padding: 0 11px; font-size: 12px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; box-shadow: none; cursor: default; }
.btn-row { display: flex; gap: 8px; }
.btn-row > .btn { flex: 1; }
.link { color: var(--brand-700); font-weight: 600; }

/* chips / tabs */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 34px; padding: 0 14px; border-radius: 17px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap;
}
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.brand.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.tabs {
  display: flex; gap: 2px; background: var(--canvas); padding: 4px; border-radius: 13px; overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: 1 0 auto; height: 38px; padding: 0 14px; border-radius: 10px;
  font-size: 13.5px; font-weight: 700; color: var(--ink-3); white-space: nowrap;
}
.tabs button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.tabs.brand button.on { color: var(--brand-700); }
.segment-line { display: flex; gap: 18px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.segment-line::-webkit-scrollbar { display: none; }
.segment-line button {
  position: relative; padding: 12px 0; font-size: 14.5px; font-weight: 700; color: var(--ink-3); white-space: nowrap;
}
.segment-line button.on { color: var(--ink); }
.segment-line button.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px; border-radius: 2px; background: var(--ink);
}

/* badges */
.badge {
  display: inline-flex; align-items: center; gap: 3px; height: 21px; padding: 0 7px;
  border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: -0.01em;
  background: var(--line-2); color: var(--ink-2); white-space: nowrap;
}
.badge.brand { background: var(--brand-50); color: var(--brand-700); }
.badge.green { background: #e8f7f2; color: #0b7f62; }
.badge.blue { background: #eef2ff; color: #2e5bff; }
.badge.red { background: #fdeef0; color: #d6333f; }
.badge.solid { background: var(--brand); color: #fff; }
.pct { color: var(--red); font-weight: 800; }

/* avatar */
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 16px; letter-spacing: -0.02em;
  background: var(--brand); overflow: hidden;
}
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.avatar.xl { width: 84px; height: 84px; font-size: 28px; }
.avatar.img { background: var(--line-2); }
.avatar.img img { width: 100%; height: 100%; object-fit: cover; }

/* list */
.list { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.list-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 15px 18px; text-align: left; background: #fff;
}
.list-row + .list-row { border-top: 1px solid var(--line-2); }
.list-row .chev { color: var(--ink-4); flex: none; }
.list-row .lead { width: 22px; color: var(--ink-3); flex: none; display: flex; align-items: center; justify-content: center; }
.list-row .lead img { width: 22px; height: 22px; border-radius: 6px; object-fit: contain; }
.list-row:active { background: #fafbfc; }
.list-row .val { color: var(--ink-2); font-weight: 600; font-size: 14px; }

/* grid helpers */
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 900px) {
  .g2-d, .grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3-d, .grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g4-d, .grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* hscroll */
.hscroll {
  display: flex; gap: 12px; overflow-x: auto; padding: 2px 16px 6px; margin: 0 -16px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: none; }
@media (min-width: 900px) {
  .hscroll { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin: 0; padding: 0; gap: 14px; }
  .hscroll > * { flex: initial; }
}

/* ---------- home hero ---------- */
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(140deg, #ff9a55 0%, #ff8540 46%, #f0701f 100%);
  color: #fff; padding: 20px; box-shadow: 0 10px 26px rgba(242, 118, 42, .26);
}
.hero::after {
  content: ""; position: absolute; right: -46px; top: -50px; width: 190px; height: 190px;
  border-radius: 50%; background: rgba(255, 255, 255, .16);
}
.hero::before {
  content: ""; position: absolute; right: 34px; bottom: -70px; width: 130px; height: 130px;
  border-radius: 50%; background: rgba(255, 255, 255, .1);
}
.hero .hi { font-size: 14px; opacity: .94; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.hero .hi b { font-weight: 800; }
.hero .pt-label { margin-top: 14px; font-size: 12px; opacity: .9; font-weight: 600; letter-spacing: .02em; }
.hero .pt { display: flex; align-items: flex-end; gap: 4px; margin-top: 2px; }
.hero .pt strong { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.hero .pt span { font-size: 14px; font-weight: 700; padding-bottom: 4px; opacity: .95; }
.hero .pt-cta {
  margin-top: 14px; display: flex; gap: 8px; position: relative; z-index: 1;
}
.hero .pt-cta button {
  flex: 1; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .18);
  color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid rgba(255, 255, 255, .26);
  backdrop-filter: blur(4px);
}
.hero .pt-cta button.white { background: #fff; color: var(--brand-700); border-color: #fff; }
.hero .mini-logo { position: absolute; right: 18px; top: 16px; opacity: .9; }
.hero .mini-logo img { width: 30px; height: 30px; border-radius: 9px; }

.ticker {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px;
  border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm);
  font-size: 12px; color: var(--ink-2); overflow: hidden;
}
.ticker .live { display: inline-flex; align-items: center; gap: 4px; color: var(--red); font-weight: 800; font-size: 11px; flex: none; }
.ticker .live i { width: 5px; height: 5px; border-radius: 50%; background: var(--red); display: inline-block; animation: pulse 1.6s infinite; }
.ticker .track { flex: 1; overflow: hidden; height: 18px; position: relative; }
.ticker .track div { position: absolute; inset: 0; display: flex; align-items: center; transition: transform .5s ease, opacity .5s; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.quick3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick3 button {
  background: #fff; border-radius: var(--radius); padding: 14px 8px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  box-shadow: var(--shadow-sm); font-size: 12.5px; font-weight: 700; color: var(--ink-2);
}
.quick3 button .ic {
  width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--brand-700);
}
.quick3 button .ic svg { width: 20px; height: 20px; }

/* channel card */
.channel-card {
  width: 168px; background: #fff; border-radius: var(--radius); padding: 14px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line-2);
}
.channel-card .top { display: flex; align-items: center; gap: 9px; }
.channel-card .nm { font-size: 14px; font-weight: 800; letter-spacing: -0.02em; }
.channel-card .ds { font-size: 11.5px; color: var(--ink-3); margin-top: 8px; height: 32px; overflow: hidden; }
.channel-card .ft { margin-top: 8px; font-size: 11px; color: var(--ink-4); display: flex; justify-content: space-between; align-items: center; }

/* banner carousel */
.carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; }
.carousel::-webkit-scrollbar { display: none; }
.carousel .slide {
  flex: none; width: 86%; max-width: 420px; scroll-snap-align: center;
  border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm);
  position: relative; text-align: left;
}
.carousel .slide img { width: 100%; height: auto; aspect-ratio: 640 / 210; object-fit: cover; background: var(--canvas); }
.carousel .slide .cap { padding: 11px 14px 13px; }
.carousel .slide .cap b { font-size: 13.5px; display: block; }
.carousel .slide .cap span { font-size: 11.5px; color: var(--ink-3); }
.carousel .dots { display: flex; gap: 5px; justify-content: center; margin-top: 4px; }

/* apptech card */
.prog-card {
  background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-2); text-align: left; display: flex; flex-direction: column; gap: 8px;
}
.prog-card .thumb { width: 46px; height: 46px; border-radius: 13px; overflow: hidden; background: var(--canvas); }
.prog-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.prog-card .nm { font-size: 14px; font-weight: 800; letter-spacing: -0.02em; }
.prog-card .tg { font-size: 11.5px; color: var(--ink-3); line-height: 1.45; min-height: 32px; }
.prog-card .rate { font-size: 12px; font-weight: 800; color: var(--brand-700); }

/* product */
.prod-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); text-align: left; border: 1px solid var(--line-2); display: flex; flex-direction: column; }
.prod-card .fig { position: relative; aspect-ratio: 1 / 1; background: #f7f8fa; }
.prod-card .fig img { width: 100%; height: 100%; object-fit: cover; }
.prod-card .fig .fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--ink-4); font-size: 12px; background: linear-gradient(135deg, #fff6ef, #f2f4f6); }
.prod-card .info { padding: 11px 12px 13px; }
.prod-card .nm { font-size: 12.5px; line-height: 1.4; color: var(--ink-2); height: 35px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.prod-card .pr { margin-top: 7px; display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.prod-card .pr b { font-size: 14.5px; font-weight: 800; letter-spacing: -0.03em; }
.prod-card .pr s, .prod-card .old { font-size: 11px; color: var(--ink-4); text-decoration: line-through; }
.prod-card .old { margin-top: 1px; }
.prod-card .pr .pct { font-size: 13px; }
.prod-card .fig .cart {
  position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; color: var(--ink-2);
}

/* quote card */
.quote-card {
  border-radius: var(--radius-lg); padding: 22px 20px; background: #fff; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.quote-card .mark { position: absolute; right: 16px; top: 6px; font-size: 64px; color: var(--brand-100); line-height: 1; font-family: Georgia, serif; }
.quote-card .txt { font-size: 17px; font-weight: 700; line-height: 1.6; letter-spacing: -0.02em; position: relative; }
.quote-card .src { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }
.quote-card .acts { margin-top: 16px; display: flex; gap: 8px; }
.pill-btn {
  height: 34px; padding: 0 13px; border-radius: 17px; background: var(--canvas);
  font-size: 12.5px; font-weight: 700; color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px;
}
.pill-btn.on { background: var(--brand-50); color: var(--brand-700); }
.pill-btn svg { width: 15px; height: 15px; }

/* fortune */
.fortune-body { font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }
.fortune-score { display: flex; gap: 10px; }
.fortune-score .item { flex: 1; background: var(--canvas); border-radius: 12px; padding: 10px; text-align: center; }
.fortune-score .item b { display: block; font-size: 16px; font-weight: 800; color: var(--brand-700); }
.fortune-score .item span { font-size: 11px; color: var(--ink-3); }

/* news */
.news-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-2); text-align: left; width: 100%; }
.news-item:last-child { border-bottom: 0; }
.news-item .num { font-size: 13px; font-weight: 800; color: var(--brand); flex: none; width: 18px; }
.news-item .tt { font-size: 14px; font-weight: 700; line-height: 1.45; letter-spacing: -0.02em; }
.news-item .mm { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }

/* main menu grid */
.menugrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px 6px; }
.menugrid button { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); text-align: center; }
.menugrid img { width: 42px; height: 42px; border-radius: 13px; object-fit: contain; background: var(--canvas); padding: 6px; }
@media (min-width: 900px) { .menugrid { grid-template-columns: repeat(10, 1fr); } }

/* footer */
.site-foot { margin-top: 28px; padding: 18px 4px 8px; font-size: 11px; color: var(--ink-4); line-height: 1.8; }
.site-foot .links { display: flex; gap: 12px; margin-bottom: 10px; }
.site-foot .links a { color: var(--ink-3); font-weight: 700; font-size: 12px; }
.site-foot .co { white-space: normal; word-break: keep-all; }

/* ---------- desktop home layout ---------- */
.home-grid { display: block; }
@media (min-width: 900px) {
  .home-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 26px; align-items: start; }
  .home-col { display: flex; flex-direction: column; gap: 22px; }
  .home-col .section { margin-top: 0; }
  .carousel { margin: 0; padding: 0; }
  .carousel .slide { width: 100%; max-width: none; }
  .carousel:not(.multi) .slide:not(:first-child) { display: none; }
  .carousel.promo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; overflow: visible; margin: 0; padding: 0; }
  .carousel.promo .slide { width: auto; max-width: none; }
  .carousel.promo .slide:nth-child(n + 5) { display: none; }
  .carousel.promo .slide img { aspect-ratio: 16 / 6.4; }
  .carousel.promo .slide .cap { padding: 10px 12px 12px; }
  .carousel.multi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; overflow: visible; margin: 0; padding: 0; }
  .carousel.multi .slide { width: auto; max-width: none; background: transparent; box-shadow: none; }
}
@media (min-width: 1200px) {
  .home-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
}

/* ---------- sub page ---------- */
.page-head-block { padding: 4px 2px 16px; }
.page-head-block h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.035em; }
.page-head-block p { font-size: 13px; color: var(--ink-3); margin-top: 6px; line-height: 1.55; }
.notice-box {
  background: var(--brand-50); border-radius: 12px; padding: 12px 14px; font-size: 12.5px; color: #8a4b1e; line-height: 1.6;
}
.notice-box.gray { background: var(--canvas); color: var(--ink-2); }

.empty { padding: 48px 20px; text-align: center; color: var(--ink-3); font-size: 13.5px; }
.empty .ic { width: 56px; height: 56px; border-radius: 50%; background: var(--canvas); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; color: var(--ink-4); }

/* forms */
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; }
.input, .textarea, .select {
  width: 100%; height: 50px; border-radius: 13px; border: 1px solid var(--line);
  background: #fff; padding: 0 14px; font-size: 15px; color: var(--ink);
  transition: border-color .15s, background .15s;
}
.textarea { height: auto; min-height: 120px; padding: 13px 14px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--brand); background: #fffdfb; }
.input:disabled { background: var(--canvas); color: var(--ink-3); }
.field .hint { font-size: 11.5px; color: var(--ink-3); margin-top: 6px; }
.input-with-btn { display: flex; gap: 8px; }
.input-with-btn .input { flex: 1; }
.input-with-btn .btn { flex: none; height: 50px; }
.checkline { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--ink-2); padding: 7px 0; }
.checkline input[type="checkbox"] { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.checkline .view { margin-left: auto; font-size: 12px; color: var(--ink-3); text-decoration: underline; flex: none; }
.checkline.all { font-weight: 800; color: var(--ink); font-size: 14.5px; padding: 12px 0; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }

/* switch */
.switch { position: relative; width: 46px; height: 28px; border-radius: 14px; background: var(--line); flex: none; transition: background .18s; }
.switch.on { background: var(--brand); }
.switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .18s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.on i { transform: translateX(18px); }

/* ---------- attendance ---------- */
.attend-hero {
  border-radius: var(--radius-xl); padding: 22px 20px; color: #fff; text-align: center;
  background: linear-gradient(150deg, #ff9a55, #ef6c1a); box-shadow: 0 10px 24px rgba(242, 118, 42, .24);
}
.attend-hero .big { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.attend-hero .sub { font-size: 13px; opacity: .92; margin-top: 6px; }
.attend-hero .stamp {
  width: 76px; height: 76px; border-radius: 50%; margin: 16px auto 0;
  border: 2px dashed rgba(255, 255, 255, .65); display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .wd { text-align: center; font-size: 11px; color: var(--ink-3); font-weight: 700; padding-bottom: 4px; }
.cal .day {
  aspect-ratio: 1 / 1; border-radius: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--canvas); gap: 2px;
}
.cal .day.empty { background: transparent; }
.cal .day.done { background: var(--brand); color: #fff; font-weight: 800; }
.cal .day.today { outline: 2px solid var(--brand); outline-offset: -2px; background: var(--brand-50); color: var(--brand-700); }
.cal .day.today.done { background: var(--brand); color: #fff; }
.cal .day .st { font-size: 9px; opacity: .9; }
.cal .day.future { color: var(--ink-4); }
.attend-history { display: flex; flex-direction: column; }
.attend-history .item { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.attend-history .item:last-child { border-bottom: 0; }

/* ---------- namecard ---------- */
.nc-preview {
  aspect-ratio: 91 / 55; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.nc-preview .nm { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.nc-preview .role { font-size: 10.5px; opacity: .8; margin-top: 2px; }
.nc-preview .ct { font-size: 9.5px; opacity: .85; line-height: 1.5; }
.nc-preview .brandline { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; opacity: .9; }
.nc-preview .brandline img { width: 16px; height: 16px; border-radius: 4px; }
.nc-light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.nc-navy { background: linear-gradient(140deg, #1c2b4a, #0f1a30); color: #fff; }
.nc-orange { background: linear-gradient(140deg, #ff9a55, #ef6c1a); color: #fff; }
.nc-gray { background: linear-gradient(140deg, #e9ecef, #ced4da); color: #202632; }
.nc-mint { background: linear-gradient(140deg, #e6f7f2, #c9ece2); color: #0b5c4a; }
.nc-gold { background: linear-gradient(140deg, #3a3226, #17130d); color: #e8c98a; }
.nc-black { background: #0d0f12; color: #f2f4f6; }
.nc-linen { background: repeating-linear-gradient(45deg, #f6f1e7, #f6f1e7 3px, #efe8da 3px, #efe8da 6px); color: #3b3223; }

.nc-list-item { text-align: left; display: flex; flex-direction: column; gap: 8px; }
.nc-list-item .meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-2); }
.nc-list-item .nm { font-weight: 800; font-size: 13.5px; }
.heart { color: var(--ink-4); }
.heart.on { color: var(--red); }

/* ---------- good content ---------- */
.content-card { display: flex; gap: 12px; padding: 12px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); text-align: left; width: 100%; align-items: stretch; }
.content-card .thumb { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: var(--canvas); flex: none; }
.content-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.content-card .body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.content-card .cat { font-size: 11px; font-weight: 800; color: var(--brand-700); }
.content-card .tt { font-size: 14px; font-weight: 700; line-height: 1.42; letter-spacing: -0.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.content-card .mm { font-size: 11px; color: var(--ink-4); }
.content-detail .hero-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--canvas); }
.content-detail .body p { font-size: 15px; line-height: 1.85; color: #333d4b; margin-top: 16px; letter-spacing: -0.01em; }
.content-detail h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.4; }
.comment { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.comment:last-child { border-bottom: 0; }
.comment .who { font-weight: 800; font-size: 12.5px; }
.comment .when { font-size: 11px; color: var(--ink-4); }

/* ---------- program detail ---------- */
.rate-hero { border-radius: var(--radius-lg); background: #fff; padding: 20px; box-shadow: var(--shadow-sm); }
.rate-hero .rate { font-size: 32px; font-weight: 800; color: var(--brand-700); letter-spacing: -0.04em; }
.steps { counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding: 0 0 14px 34px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.steps li::before {
  content: counter(st); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-50); color: var(--brand-700); font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.dots-list li { position: relative; padding-left: 12px; font-size: 12.5px; color: var(--ink-3); line-height: 1.65; }
.dots-list li::before { content: "·"; position: absolute; left: 2px; }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table th { text-align: left; color: var(--ink-3); font-weight: 700; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 11.5px; }
.table td { padding: 12px 8px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.table tr:last-child td { border-bottom: 0; }

/* ---------- chat ---------- */
.chat-wrap { display: flex; flex-direction: column; height: calc(100dvh - 56px - 156px); min-height: 380px; }
@media (min-width: 900px) { .chat-wrap { height: calc(100dvh - 68px - 150px); } }
.chat-log { flex: 1; overflow-y: auto; padding: 4px 2px 8px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 84%; padding: 11px 14px; border-radius: 16px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.bubble.ai { background: #fff; border: 1px solid var(--line-2); border-bottom-left-radius: 5px; align-self: flex-start; }
.bubble.me { background: var(--brand); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.bubble .who { font-size: 10.5px; font-weight: 800; color: var(--brand-700); margin-bottom: 4px; display: flex; align-items: center; gap: 4px; }
.bubble .who img { width: 16px; height: 16px; border-radius: 5px; }
.chat-input { display: flex; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line-2); background: var(--canvas); position: sticky; bottom: 0; }
.chat-input .input { flex: 1; height: 46px; }
.chat-input .btn { width: 46px; height: 46px; padding: 0; border-radius: 13px; flex: none; }
.suggest { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }

/* ---------- sheet / modal ---------- */
.overlay { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.overlay.center { align-items: center; }
.overlay .backdrop { position: absolute; inset: 0; background: rgba(17, 24, 39, .45); animation: fade .2s ease; }
.sheet {
  position: relative; width: 100%; max-width: 560px; background: #fff;
  border-radius: 24px 24px 0 0; max-height: 92vh; overflow-y: auto;
  animation: up .24s cubic-bezier(.22, 1, .36, 1); padding-bottom: var(--safe-b);
  box-shadow: 0 -8px 32px rgba(17, 24, 39, .16);
}
.overlay.center .sheet { border-radius: 22px; margin: 16px; max-width: 420px; animation: pop .2s ease; }
.sheet-head { position: sticky; top: 0; background: #fff; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 18px 20px 12px; }
.sheet-head h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; flex: 1; }
.sheet-body { padding: 0 20px 20px; }
.sheet-foot { padding: 12px 20px 20px; position: sticky; bottom: 0; background: #fff; }
.sheet .grip { width: 38px; height: 4px; border-radius: 2px; background: var(--line); margin: 10px auto 0; }
@media (min-width: 900px) {
  .overlay { align-items: center; }
  .sheet { border-radius: 22px; max-width: 520px; max-height: 86vh; animation: pop .2s ease; }
  .sheet .grip { display: none; }
  .sheet-head { padding-top: 22px; }
}
@keyframes up { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* drawer (menu) */
.drawer { position: fixed; inset: 0; z-index: 95; }
.drawer .backdrop { position: absolute; inset: 0; background: rgba(17, 24, 39, .42); animation: fade .2s; }
.drawer .panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(88%, 380px); background: #fff;
  overflow-y: auto; padding: 20px 18px 32px; animation: slidein .24s cubic-bezier(.22,1,.36,1);
  box-shadow: -12px 0 32px rgba(17,24,39,.14);
}
@keyframes slidein { from { transform: translateX(100%); } to { transform: none; } }
.drawer .panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer .panel-head h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }
.dgroup { margin-top: 16px; }
.dgroup h4 { font-size: 12px; font-weight: 800; color: var(--brand-700); display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.dgroup h4 img { width: 20px; height: 20px; border-radius: 6px; }
.ditems { display: flex; flex-wrap: wrap; gap: 6px; }
.ditems button {
  padding: 8px 11px; border-radius: 10px; background: var(--canvas); font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.ditems button:active { background: var(--line); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 18px); transform: translateX(-50%);
  background: rgba(25, 31, 40, .94); color: #fff; font-size: 13px; font-weight: 600;
  padding: 12px 18px; border-radius: 12px; z-index: 120; max-width: calc(100% - 40px);
  animation: toastin .22s ease; box-shadow: var(--shadow-lg); text-align: center; word-break: keep-all;
}
@media (min-width: 900px) { .toast { bottom: 32px; } }
@keyframes toastin { from { transform: translate(-50%, 10px); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }

/* my page */
.profile-card { display: flex; align-items: center; gap: 14px; }
.profile-card .nm { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }
.my-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.my-grid button { background: #fff; border-radius: 14px; padding: 14px 6px; box-shadow: var(--shadow-sm); font-size: 11.5px; font-weight: 700; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.my-grid button svg { width: 20px; height: 20px; color: var(--brand); }
@media (min-width: 900px) { .my-grid { grid-template-columns: repeat(6, 1fr); } }

/* desktop two-column utility for sub pages */
.split { display: block; }
.split > * + * { margin-top: 16px; }
@media (min-width: 900px) {
  .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
  .split > * + * { margin-top: 0; }
  .split .wide { grid-column: 1 / -1; }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
}

/* pum edit preview block */
.pum-hero {
  border-radius: var(--radius-lg); padding: 24px 20px; color: #fff; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(150deg, #2b3a55, #16203a);
}
.pum-hero .av { width: 76px; height: 76px; border-radius: 50%; background: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; margin: 0 auto 12px; border: 3px solid rgba(255,255,255,.3); }
.pum-hero .nm { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.pum-hero .role { font-size: 12px; opacity: .8; margin-top: 4px; }
.pum-hero .intro { font-size: 13px; opacity: .92; margin-top: 10px; line-height: 1.6; }
.pum-hero .url { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; font-size: 11.5px; background: rgba(255,255,255,.16); padding: 6px 11px; border-radius: 20px; }

.block-toggle { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.block-toggle:last-child { border-bottom: 0; }
.block-toggle .nm { font-size: 14px; font-weight: 700; }
.block-toggle .ds { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

/* QR */
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0 4px; }
.qr-box canvas { width: 208px; height: 208px; border-radius: 14px; background: #fff; padding: 10px; border: 1px solid var(--line); }

/* stats */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: #fff; border-radius: 14px; padding: 14px 12px; box-shadow: var(--shadow-sm); }
.stat .k { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.stat .v { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; }
.stat .v span { font-size: 12px; font-weight: 700; color: var(--ink-3); margin-left: 2px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; padding-top: 8px; }
.bars .bar { flex: 1; background: var(--brand-100); border-radius: 6px 6px 3px 3px; position: relative; min-height: 4px; }
.bars .bar.today { background: var(--brand); }
.bars-x { display: flex; gap: 6px; margin-top: 6px; }
.bars-x span { flex: 1; text-align: center; font-size: 10px; color: var(--ink-4); }

.fab-top {
  position: fixed; right: 14px; bottom: calc(var(--tab-h) + var(--safe-b) + 16px); z-index: 44;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
}
.fab-top button {
  width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: var(--brand-700);
  border: 1px solid var(--line-2); text-align: center; line-height: 1.15;
}
@media (min-width: 900px) { .fab-top { bottom: 28px; right: 28px; } }

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* FAQ accordion */
.faq-item { background: #fff; border-bottom: 1px solid var(--line-2); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 15px 18px; font-size: 14px; font-weight: 600; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-chev { width: 18px; height: 18px; color: var(--ink-4); transition: transform .18s; flex: none; }
.faq-item[open] .faq-chev { transform: rotate(90deg); }
.faq-a { padding: 0 18px 16px; font-size: 13.5px; line-height: 1.8; color: var(--ink-2); background: #fafbfc; border-top: 1px solid var(--line-2); padding-top: 14px; }

/* image fallback */
img.img-failed { visibility: hidden; }
.prod-card .fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prod-card .fig .fallback { position: absolute; inset: 0; }

/* desktop: widen grids for specific pages */
@media (min-width: 900px) {
  .cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .content-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .nc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .prod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .prog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
}

/* ==========================================================================
   Desktop layout refinements (>= 900px)
   ========================================================================== */
@media (min-width: 900px) {
  #screen.is-sub { max-width: 940px; }
  .tabs { max-width: 620px; }
  .search-bar { max-width: 560px; }
  .page-head-block { max-width: 760px; }
  .hero .pt-cta { max-width: 520px; }
  .pum-form { max-width: 720px; }
  .nc-preview { max-width: 400px; }

  /* 카드(명함) 페이지: 좌 전자명함 / 우 목록 */
  .card-layout { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 26px; align-items: start; }
  .card-layout .digital { position: sticky; top: 88px; }
  .card-layout .tabs { margin-top: 0 !important; max-width: none; }
  .card-layout .carousel { margin: 0; }

  /* 출석체크: 좌 달력 / 우 이력 */
  .attend-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
  .attend-layout .attend-hero { padding: 30px 24px; }
  .cal .day { aspect-ratio: auto; min-height: 66px; border-radius: 12px; }
  .cal { gap: 8px; }
}

/* product row — 가로 스크롤(모바일) / 3열 그리드(데스크톱) */
.prod-row { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.prod-row::-webkit-scrollbar { display: none; }
.prod-row > * { flex: none; width: 47%; max-width: 200px; }
@media (min-width: 900px) {
  .prod-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; }
  .prod-row > * { width: auto; max-width: none; }
}

/* 썸네일이 없는 콘텐츠용 디자인 타일 */
.thumb-tile {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: #fff; text-align: center; padding: 6px;
}
.thumb-tile svg { width: 18px; height: 18px; opacity: .75; }
.thumb-tile span { font-size: 10.5px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.thumb-tile.wide { aspect-ratio: 16/7; height: auto; border-radius: var(--radius); }
.thumb-tile.wide svg { width: 26px; height: 26px; }
.thumb-tile.wide span { font-size: 14px; }
