:root {
  --ivory:#fbf8f2;
  --paper:#fffdf9;
  --ink:#24252b;
  --muted:#73757e;
  --burgundy:#6d0f20;
  --burgundy-dark:#4f0916;
  --gold:#bd8e3c;
  --gold-soft:#e6d3a7;
  --line:#e8e0d4;
  --shadow:0 18px 60px rgba(75,49,31,.10);
  --radius:24px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:linear-gradient(180deg,#fff 0,var(--ivory) 55%,#f7f1e7 100%);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans Thai",Tahoma,sans-serif;line-height:1.5}
button,input,textarea{font:inherit}
button{cursor:pointer}
.site-shell{width:min(100%,1040px);margin:0 auto;padding:20px 16px 72px}
.brand-header{text-align:center;padding:28px 0 18px}
.brand-name{font-family:Georgia,"Times New Roman",serif;font-size:17px;letter-spacing:.04em;margin:0 0 6px}
.brand-system{margin:0;color:var(--burgundy);font-weight:800;letter-spacing:.04em;font-size:18px}
.brand-sub{margin:7px 0 0;color:var(--muted);font-size:13px}
.intro{max-width:620px;margin:0 auto 18px;text-align:center}
.intro h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(34px,9vw,58px);line-height:1.02;margin:12px 0;color:#2a201c;font-weight:500}
.intro p{color:var(--muted);margin:0}
.input-card{max-width:620px;margin:24px auto;background:rgba(255,255,255,.90);border:1px solid rgba(189,142,60,.18);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px}
.input-card.staff{max-width:680px}
.field-row{display:grid;gap:16px}
.input-field label{display:flex;justify-content:space-between;gap:12px;font-weight:750;font-size:15px;margin-bottom:8px}
.input-field small{color:var(--muted);font-weight:500}
.input-field input{width:100%;border:1.5px solid #d9d2c8;background:#fff;border-radius:16px;padding:16px 15px;font-size:24px;font-weight:750;color:var(--burgundy-dark);outline:none;transition:.2s}
.input-field input:focus{border-color:var(--gold);box-shadow:0 0 0 4px rgba(189,142,60,.11)}
.input-field.has-error input{border-color:#b42318}
.field-error{display:block;color:#b42318;min-height:20px;font-size:12px;margin-top:5px}
.help-details{margin:12px 0 18px;border-top:1px solid var(--line);padding-top:12px}
.help-details summary,.gallery-details summary,.benefits-details summary{cursor:pointer;color:var(--burgundy);font-weight:750;list-style:none}
.help-details summary::-webkit-details-marker,.gallery-details summary::-webkit-details-marker,.benefits-details summary::-webkit-details-marker{display:none}
.help-box{background:#faf7f1;border-radius:14px;padding:14px;margin-top:10px;color:#5c5960;font-size:14px}
.primary-button,.secondary-button{width:100%;border:0;border-radius:15px;padding:15px 18px;font-weight:850;letter-spacing:.01em}
.primary-button{color:#fff;background:linear-gradient(135deg,var(--burgundy),#8a1a2e);box-shadow:0 10px 24px rgba(109,15,32,.18)}
.secondary-button{background:#fff;border:1px solid var(--line);color:var(--burgundy);margin-top:12px}
#result-root{max-width:760px;margin:28px auto 0;display:grid;gap:18px;scroll-margin-top:16px}
.hero-card,.panel,.staff-panel,.staff-preview{background:rgba(255,255,255,.94);border:1px solid rgba(189,142,60,.16);border-radius:var(--radius);box-shadow:var(--shadow);padding:24px;overflow:hidden;position:relative}
.hero-card{text-align:center;background:radial-gradient(circle at 80% 10%,rgba(229,208,159,.38),transparent 38%),linear-gradient(145deg,#fffdf9,#f6eee2)}
.eyebrow,.section-kicker,.small-label{font-size:12px;font-weight:850;letter-spacing:.12em;color:var(--burgundy);text-transform:uppercase;margin:0 0 8px}
.points-hero{font-family:Georgia,"Times New Roman",serif;color:var(--burgundy-dark);font-size:clamp(70px,20vw,118px);line-height:.95;margin-top:10px}
.points-unit,.level-unit,.gap-unit,.tier-unit{font-weight:850;letter-spacing:.20em;font-size:12px;color:var(--gold);margin-top:8px}
.text-button{border:0;background:transparent;color:var(--burgundy);font-weight:750;margin-top:14px}
.panel:before{content:"";position:absolute;inset:0 auto auto 0;width:100%;height:5px;background:var(--level,#bd8e3c)}
.tone-rose{--level:#c94d68}.tone-navy{--level:#223f75}.tone-purple{--level:#684078}.tone-gold{--level:#b78a3e}.tone-emerald{--level:#2d694e}
.panel h2{font-family:Georgia,"Times New Roman",serif;font-size:28px;line-height:1.15;margin:8px 0 6px}
.panel h2 strong{color:var(--burgundy)}
.muted{color:var(--muted)}
.level-number,.gap-number{font-family:Georgia,"Times New Roman",serif;font-size:70px;line-height:.95;color:var(--level,var(--burgundy));margin-top:12px}
.level-summary{font-weight:650;color:#4f4b4d}
.reward-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}
.reward-item{border:1px solid #e8e3dc;border-radius:17px;background:#fff;overflow:hidden;min-width:0}
.reward-image-wrap{aspect-ratio:320/280;background:linear-gradient(145deg,color-mix(in srgb,var(--level) 12%,#fff),#fff);position:relative;display:grid;place-items:center;overflow:hidden}
.reward-image-wrap img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.reward-fallback{padding:16px;text-align:center;font-family:Georgia,"Times New Roman",serif;color:var(--level);font-weight:700;line-height:1.2}
.reward-item-copy{padding:11px 12px 13px}
.reward-item-copy h4{font-size:13px;line-height:1.35;margin:0 0 6px}
.reward-item-copy p{font-size:11.5px;line-height:1.4;margin:0;color:var(--muted)}
.reward-item.is-locked{opacity:.68}
.gallery-details,.benefits-details{border-top:1px solid var(--line);margin-top:18px;padding-top:14px}
.gallery-details[open] summary,.benefits-details[open] summary{margin-bottom:12px}
.gallery-label{font-size:12px;letter-spacing:.12em;color:var(--muted);margin:18px 0 -6px}
.terms-note{font-size:11.5px;color:var(--muted);margin:14px 0 0}
.reached-block{border-top:1px solid var(--line);margin-top:18px;padding-top:15px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.level-chip{border:1px solid var(--line);border-radius:999px;background:#fff;color:#555;padding:8px 12px;font-weight:750}
.level-chip.is-current{border-color:var(--level);color:var(--level);background:color-mix(in srgb,var(--level) 6%,#fff)}
.hidden-levels{display:grid;gap:10px}.level-gallery-anchor{scroll-margin-top:18px}
.next-panel{text-align:center}.next-panel .reward-grid{text-align:left}
.next-preview{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.next-preview .reward-item-copy{display:none}
.flexible-panel{background:radial-gradient(circle at 80% 10%,rgba(109,15,32,.08),transparent 45%),#fff}
.coupon-value{font-family:Georgia,"Times New Roman",serif;font-size:58px;color:var(--burgundy);line-height:1}.coupon-value span{font:800 18px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.membership-card{text-align:center}.tier-name{font-family:Georgia,"Times New Roman",serif;font-size:48px;line-height:1;color:var(--tier,#777);margin-top:10px}.tier-bronze{--tier:#a66537}.tier-silver{--tier:#7b8089}.tier-gold{--tier:#b58227}.tier-platinum{--tier:#6f7ba0}
.benefits-details{text-align:left}.benefits-details ul{padding-left:20px;color:#4f5057}
.global-disclaimer{text-align:center;color:var(--muted);font-size:12px;padding:2px 18px 22px;margin:0}
.staff-badge{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border-radius:999px;background:#f5efe7;color:var(--burgundy);font-size:12px;font-weight:800;margin-top:8px}
.staff-panel{box-shadow:none;border-color:#e9e1d5}
.guidance-row{display:grid;grid-template-columns:1fr;gap:4px;padding:13px 0;border-bottom:1px solid var(--line)}.guidance-row:last-child{border-bottom:0}.guidance-row span{font-size:12px;color:var(--muted)}.guidance-row strong{font-size:15px}
.guidance-note p{margin-bottom:8px}.line-panel textarea{width:100%;min-height:180px;border:1px solid var(--line);border-radius:15px;padding:14px;background:#faf8f5;resize:vertical;line-height:1.65;margin:5px 0 12px}.copy-status{display:block;text-align:center;color:#22863a;font-size:12px;margin-top:7px}
.preview-frame{margin-top:12px;background:#f7f2e9;border-radius:20px;padding:12px}.preview-frame #result-root{margin:0}.preview-frame .hero-card,.preview-frame .panel{box-shadow:none}
.reset-wrap{max-width:620px;margin:16px auto 0}
.footer{text-align:center;color:#8a8580;font-size:12px;padding:28px 0 0}
@media (min-width:720px){
  .site-shell{padding-left:24px;padding-right:24px}.field-row{grid-template-columns:1fr 1fr}.reward-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.next-preview{grid-template-columns:repeat(3,minmax(0,1fr))}.reward-item-copy h4{font-size:14px}.staff-layout{display:grid;grid-template-columns:minmax(320px,420px) minmax(0,1fr);gap:20px;align-items:start}.staff-layout .staff-controls{position:sticky;top:18px}.staff-layout #result-root{margin-top:0;max-width:none}.staff-layout .staff-preview{grid-column:1/-1}.guidance-row{grid-template-columns:180px 1fr;align-items:start}}

/* v0.2.2 image-state hardening */
.reward-image-wrap.has-image .reward-fallback{display:none}
.reward-image-wrap.image-error .reward-fallback{display:block}

/* v0.3 — mobile UX & premium polish */
.compact-input-summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:4px 2px}
.compact-summary-copy{display:grid;gap:2px;text-align:left}
.compact-summary-copy strong{color:var(--burgundy-dark);font-size:17px;line-height:1.2}
.compact-summary-copy span{color:var(--muted);font-size:12px}
.compact-edit-button{border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--burgundy);font-weight:800;padding:8px 14px}
.input-card.is-collapsed{padding:13px 16px;border-radius:18px;box-shadow:0 10px 34px rgba(75,49,31,.08);margin-bottom:14px}
.input-card.is-collapsed .points-source-card,.input-card.is-collapsed .input-divider,.input-card.is-collapsed .field-row,.input-card.is-collapsed .help-details,.input-card.is-collapsed>.primary-button{display:none}
.input-card.is-collapsed .compact-input-summary[hidden]{display:none}
.input-card.is-collapsed .compact-input-summary{display:flex}
body.has-results .intro{display:none}
body.has-results .brand-header{padding-bottom:8px}

.gallery-details summary,.benefits-details summary{display:flex;align-items:center;justify-content:space-between;gap:14px}
.gallery-details summary::after,.benefits-details summary::after{content:'＋';font-size:18px;line-height:1;color:var(--gold);font-weight:500;flex:0 0 auto}
.gallery-details[open] summary::after,.benefits-details[open] summary::after{content:'−'}
.chip-hint{margin:10px 0 0;color:var(--muted);font-size:11.5px}
.level-gallery-anchor[hidden]{display:none!important}
.hidden-levels{margin-top:-5px}
.hidden-levels .gallery-details{background:rgba(255,255,255,.82);border:1px solid rgba(189,142,60,.16);border-radius:20px;padding:16px 18px;margin-top:0;box-shadow:0 12px 32px rgba(75,49,31,.06)}
.hidden-levels .gallery-details[open] summary{padding-bottom:4px}

.flexible-layout{display:grid;grid-template-columns:minmax(0,1fr) 132px;gap:18px;align-items:center}
.flexible-copy{min-width:0}
.coupon-image{border-radius:18px;overflow:hidden;border:1px solid rgba(189,142,60,.20);box-shadow:0 10px 24px rgba(75,49,31,.08);background:#fff}
.coupon-image img{display:block;width:100%;height:auto;aspect-ratio:320/280;object-fit:cover}
.coupon-image.is-upcoming{opacity:.58;filter:saturate(.75)}
.flexible-panel .coupon-value{margin-top:10px}

@media (max-width:719px){
  .site-shell{padding:10px 14px 56px}
  .brand-header{padding:20px 0 12px}
  .brand-name{font-size:15px;margin-bottom:4px}
  .brand-system{font-size:15px;letter-spacing:.035em}
  .intro{margin-bottom:14px;padding:0 8px}
  .intro h1{font-size:clamp(38px,11.2vw,48px);line-height:1.01;margin:8px 0 10px}
  .intro p{font-size:14px;line-height:1.55}
  .input-card{margin:16px auto;padding:18px;border-radius:22px}
  .field-row{gap:10px}
  .input-field label{font-size:14px;margin-bottom:6px}
  .input-field input{padding:14px 14px;font-size:22px;border-radius:15px}
  .help-details{margin:10px 0 14px;padding-top:10px}
  .primary-button,.secondary-button{padding:14px 16px}
  #result-root{margin-top:18px;gap:14px}
  .hero-card,.panel,.staff-panel,.staff-preview{padding:20px;border-radius:22px}
  .hero-card{padding-top:19px;padding-bottom:18px}
  .eyebrow{margin-bottom:4px}
  .points-hero{font-size:clamp(72px,18vw,96px);margin-top:4px}
  .text-button{margin-top:10px}
  .level-number,.gap-number{font-size:62px;margin-top:8px}
  .level-summary{margin:12px 0 0}
  .reward-grid{gap:10px;margin-top:14px}
  .reward-item{border-radius:15px}
  .reward-item-copy{padding:10px 11px 12px}
  .reward-item-copy h4{font-size:12.5px}
  .reward-item-copy p{font-size:11px}
  .gallery-details,.benefits-details{margin-top:14px;padding-top:12px}
  .reached-block{margin-top:14px;padding-top:13px}
  .level-chip{padding:8px 13px}
  .next-preview{gap:7px}
  .next-panel>p:not(.section-kicker):not(.muted){margin-bottom:8px}
  .flexible-layout{grid-template-columns:minmax(0,1fr) 112px;gap:14px}
  .coupon-value{font-size:52px}
  .membership-card .tier-name{font-size:44px}
  .global-disclaimer{font-size:11px;line-height:1.55;padding-bottom:12px}
}

@media (max-width:390px){
  .flexible-layout{grid-template-columns:minmax(0,1fr) 96px;gap:10px}
  .coupon-value{font-size:46px}
  .coupon-value span{font-size:16px}
}


/* v0.3.1 — direct shortcut to the Authentic Beauty Rewards dashboard */
.points-source-card{display:grid;gap:10px;margin:0 0 16px;padding:16px;border:1px solid rgba(189,142,60,.20);border-radius:18px;background:linear-gradient(145deg,#fffdf9,#faf4e9)}
.points-source-title{margin:0;color:var(--burgundy);font-weight:850;font-size:16px}
.points-source-copy p:last-child{margin:3px 0 0;color:var(--muted);font-size:13px;line-height:1.5}
.source-link-button{display:flex;align-items:center;justify-content:center;width:100%;min-height:46px;border-radius:14px;border:1px solid rgba(109,15,32,.18);background:#fff;color:var(--burgundy);font-weight:850;text-decoration:none;box-shadow:0 8px 20px rgba(75,49,31,.06)}
.source-link-button:active{transform:translateY(1px)}
.points-source-note{margin:0;color:#66636a;font-size:11.5px;line-height:1.5}
.input-divider{display:flex;align-items:center;gap:10px;margin:2px 0 14px;color:var(--muted);font-size:11.5px;text-align:center}
.input-divider::before,.input-divider::after{content:"";height:1px;background:var(--line);flex:1}
.input-divider span{white-space:nowrap}
@media (max-width:719px){
  .points-source-card{padding:14px;margin-bottom:14px;border-radius:16px}
  .points-source-title{font-size:15px}
  .points-source-copy p:last-child{font-size:12.5px}
  .source-link-button{min-height:44px;font-size:14px}
  .points-source-note{font-size:11px}
  .input-divider{margin-bottom:12px;font-size:11px}
}

/* v0.3.2 — LINE mobile typography, hidden-state hardening, restrained premium polish */
[hidden]{display:none!important}

:root{
  --muted:#77747b;
  --line:#e9e1d6;
  --shadow:0 14px 42px rgba(75,49,31,.075);
}

.intro h1,.intro p,.points-source-card p,.input-field label,.reward-item-copy h4,.reward-item-copy p,.panel p{
  text-wrap:pretty;
  word-break:normal;
  line-break:loose;
}
.keep-together{white-space:nowrap}

.help-details summary,.gallery-details summary,.benefits-details summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  line-height:1.4;
}
.help-details summary::after,.gallery-details summary::after,.benefits-details summary::after{
  content:"＋";
  flex:0 0 auto;
  color:var(--gold);
  font-size:16px;
  font-weight:500;
}
.help-details[open] summary::after,.gallery-details[open] summary::after,.benefits-details[open] summary::after{content:"−"}

.compact-input-summary{display:none}
.input-card.is-collapsed .compact-input-summary{display:flex}
.input-card:not(.is-collapsed) .compact-input-summary{display:none!important}

.hero-card,.panel,.staff-panel,.staff-preview{
  box-shadow:var(--shadow);
  border-color:rgba(189,142,60,.14);
}
.input-card{box-shadow:var(--shadow)}

@media (min-width:720px){
  .intro-title-line{display:inline}
}

@media (max-width:719px){
  .site-shell{padding:8px 14px 52px}
  .brand-header{padding:16px 0 10px}
  .brand-name{font-size:14.5px;line-height:1.25;margin-bottom:4px}
  .brand-system{font-size:14.5px;line-height:1.25;letter-spacing:.03em}

  .intro{max-width:390px;margin:0 auto 12px;padding:0 10px}
  .intro h1{font-size:clamp(36px,10.4vw,43px);line-height:.98;letter-spacing:-.018em;margin:8px 0 11px}
  .intro-title-line{display:block}
  .intro p{max-width:350px;margin:0 auto;font-size:13.5px;line-height:1.55}

  .input-card{margin:14px auto;padding:16px;border-radius:21px}
  .points-source-card{padding:13px 14px;margin-bottom:13px;border-radius:16px;gap:9px}
  .points-source-title{font-size:15px;line-height:1.35}
  .points-source-copy p:last-child{font-size:12.25px;line-height:1.55}
  .source-link-button{min-height:43px;font-size:13.5px;border-radius:13px}
  .points-source-note{font-size:10.8px;line-height:1.5}
  .input-divider{font-size:10.8px;margin:1px 0 12px;gap:8px}

  .field-row{gap:13px}
  .input-field label{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:1px;
    margin-bottom:6px;
    font-size:14px;
    line-height:1.35;
  }
  .input-field label span{font-weight:780}
  .input-field label small{font-size:11.5px;line-height:1.35}
  .input-field input{padding:13px 14px;font-size:22px;border-radius:14px}
  .field-error{min-height:16px;margin-top:3px}

  .help-details{margin:8px 0 13px;padding-top:10px}
  .help-details summary{font-size:13px}
  .help-box{font-size:12.25px;line-height:1.55;padding:12px}
  .primary-button,.secondary-button{padding:13px 15px;border-radius:14px}

  body.has-results .brand-header{padding-bottom:6px}
  .input-card.is-collapsed{margin:8px auto 10px;padding:11px 14px;border-radius:17px}
  .compact-summary-copy strong{font-size:16px}
  .compact-summary-copy span{font-size:11.5px}
  .compact-edit-button{padding:7px 12px;font-size:12.5px}

  #result-root{margin-top:12px;gap:13px}
  .hero-card,.panel,.staff-panel,.staff-preview{padding:18px;border-radius:21px}
  .hero-card{padding-top:16px;padding-bottom:15px}
  .points-hero{font-size:clamp(68px,17.5vw,90px);margin-top:2px}
  .eyebrow,.section-kicker,.small-label{font-size:11.5px;letter-spacing:.105em}
  .text-button{margin-top:8px;font-size:13px}

  .panel h2{font-size:25px}
  .level-number,.gap-number{font-size:58px;margin-top:6px}
  .level-summary{font-size:14px;line-height:1.45;margin-top:10px}
  .reward-grid{gap:9px;margin-top:13px}
  .reward-item{border-radius:14px}
  .reward-item-copy{padding:9px 10px 11px}
  .reward-item-copy h4{font-size:12.2px;line-height:1.42;margin-bottom:4px}
  .reward-item-copy p{font-size:10.8px;line-height:1.4}
  .gallery-details,.benefits-details{margin-top:13px;padding-top:11px}
  .gallery-details summary,.benefits-details summary{font-size:13.5px}
  .reached-block{margin-top:13px;padding-top:12px}
  .level-chip{padding:7px 12px;font-size:13px}

  .next-preview{gap:6px}
  .flexible-layout{gap:12px}
  .membership-card .tier-name{font-size:42px}
  .benefits-details ul{font-size:13.5px;line-height:1.55}
  .footer{padding-top:24px;font-size:11.5px}
}

@media (max-width:360px){
  .keep-together{white-space:normal}
  .intro h1{font-size:35px}
  .brand-system{font-size:14px}
}

/* v0.3.3 — one-screen mobile entry + premium depth refinement */
body{
  background:
    radial-gradient(circle at 16% -6%, rgba(235,197,126,.28), transparent 29%),
    radial-gradient(circle at 92% 18%, rgba(126,17,41,.075), transparent 26%),
    linear-gradient(180deg,#fffdf9 0%,#faf6ef 48%,#f3ece1 100%);
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(115deg,transparent 0 38%,rgba(255,255,255,.34) 46%,transparent 55%),
    radial-gradient(circle at 50% 0%,rgba(255,255,255,.74),transparent 42%);
  opacity:.55;
  z-index:-1;
}
.brand-header::after{
  content:"";
  display:block;
  width:46px;
  height:1px;
  margin:9px auto 0;
  background:linear-gradient(90deg,transparent,var(--gold),transparent);
}
.input-card{
  position:relative;
  overflow:hidden;
  background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(255,250,241,.95));
  border:1px solid rgba(190,145,67,.28);
  box-shadow:0 24px 60px rgba(72,42,22,.10),0 4px 12px rgba(109,15,32,.035),inset 0 1px 0 rgba(255,255,255,.95);
}
.input-card::before{
  content:"";
  position:absolute;
  left:14%; right:14%; top:0;
  height:2px;
  background:linear-gradient(90deg,transparent,rgba(201,158,82,.8),transparent);
}
.points-source-card{
  background:linear-gradient(135deg,rgba(253,247,237,.96),rgba(255,255,255,.92));
  border-color:rgba(189,142,60,.24);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}
.primary-button{
  background:linear-gradient(135deg,#741126 0%,#951a36 58%,#771126 100%);
  box-shadow:0 13px 28px rgba(109,15,32,.20),inset 0 1px 0 rgba(255,255,255,.15);
}
.source-link-button{
  background:linear-gradient(180deg,#fff,#fffaf5);
  box-shadow:0 9px 20px rgba(78,48,30,.07),inset 0 1px 0 #fff;
}

@media (max-width:719px){
  html,body{min-height:100%;}
  body:not(.has-results) .site-shell{
    min-height:100svh;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    padding:6px 14px 12px;
  }
  body:not(.has-results) .brand-header{padding:9px 0 4px;}
  body:not(.has-results) .brand-name{font-size:13.5px;margin:0 0 2px;}
  body:not(.has-results) .brand-system{font-size:13.5px;letter-spacing:.045em;}
  body:not(.has-results) .brand-header::after{margin-top:6px;width:38px;}

  body:not(.has-results) .intro{margin:5px auto 8px;padding:0 4px;max-width:100%;}
  body:not(.has-results) .intro h1{
    white-space:nowrap;
    font-size:clamp(29px,8.2vw,35px);
    line-height:1.04;
    letter-spacing:-.025em;
    margin:2px 0 5px;
  }
  body:not(.has-results) .intro p{
    max-width:360px;
    font-size:11.8px;
    line-height:1.4;
    margin:0 auto;
  }

  body:not(.has-results) .input-card{
    width:100%;
    margin:7px auto 0;
    padding:13px 14px 14px;
    border-radius:22px;
  }
  body:not(.has-results) .points-source-card.compact-source{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"copy button" "note note";
    align-items:center;
    column-gap:10px;
    row-gap:5px;
    margin:0 0 9px;
    padding:10px 11px;
    border-radius:15px;
  }
  body:not(.has-results) .compact-source .points-source-copy{grid-area:copy;min-width:0;}
  body:not(.has-results) .compact-source .points-source-title{font-size:13.5px;line-height:1.25;margin:0 0 1px;}
  body:not(.has-results) .compact-source .points-source-copy p:last-child{font-size:10.5px;line-height:1.35;margin:0;}
  body:not(.has-results) .compact-source .source-link-button{
    grid-area:button;
    width:auto;
    min-height:36px;
    padding:0 12px;
    font-size:12px;
    border-radius:11px;
    white-space:nowrap;
  }
  body:not(.has-results) .compact-source .points-source-note{
    grid-area:note;
    padding-top:4px;
    border-top:1px solid rgba(189,142,60,.14);
    font-size:9.8px;
    line-height:1.3;
  }
  body:not(.has-results) .input-divider{margin:0 0 8px;font-size:10px;}

  body:not(.has-results) .field-row{gap:8px;}
  body:not(.has-results) .input-field label{
    flex-direction:row;
    align-items:baseline;
    justify-content:space-between;
    gap:8px;
    margin-bottom:4px;
    font-size:12.5px;
    line-height:1.25;
  }
  body:not(.has-results) .input-field label small{font-size:10px;white-space:nowrap;}
  body:not(.has-results) .input-field input{
    height:54px;
    padding:10px 13px;
    font-size:20px;
    border-radius:13px;
    background:rgba(255,255,255,.86);
  }
  body:not(.has-results) .field-error{min-height:11px;font-size:10px;margin-top:1px;}
  body:not(.has-results) .help-details{margin:3px 0 8px;padding-top:7px;}
  body:not(.has-results) .help-details summary{font-size:11.7px;line-height:1.3;}
  body:not(.has-results) .help-details summary::after{font-size:14px;}
  body:not(.has-results) .help-box{font-size:11px;line-height:1.45;padding:9px 10px;}
  body:not(.has-results) .primary-button{min-height:48px;padding:11px 15px;border-radius:13px;font-size:14px;}
  body:not(.has-results) .footer{margin-top:auto;padding:9px 0 0;font-size:9.8px;opacity:.72;}

  /* Results retain readable density and premium depth */
  body.has-results .input-card{background:linear-gradient(145deg,rgba(255,255,255,.97),rgba(250,244,234,.96));}
  .hero-card,.panel{background:linear-gradient(155deg,rgba(255,255,255,.98),rgba(255,252,247,.96));}
}

@media (max-width:360px){
  body:not(.has-results) .intro h1{white-space:normal;font-size:31px;}
  body:not(.has-results) .points-source-card.compact-source{grid-template-columns:1fr;grid-template-areas:"copy" "button" "note";}
  body:not(.has-results) .compact-source .source-link-button{width:100%;}
}

@media (max-width:719px) and (max-height:760px){
  body:not(.has-results) .site-shell{padding-top:3px;padding-bottom:6px;}
  body:not(.has-results) .brand-header{padding:6px 0 2px;}
  body:not(.has-results) .brand-header::after{margin-top:4px;}
  body:not(.has-results) .intro{margin:2px auto 5px;}
  body:not(.has-results) .intro h1{font-size:29px;margin:1px 0 3px;}
  body:not(.has-results) .intro p{font-size:11px;line-height:1.3;}
  body:not(.has-results) .input-card{margin-top:4px;padding:10px 12px 11px;}
  body:not(.has-results) .points-source-card.compact-source{padding:8px 9px;margin-bottom:6px;}
  body:not(.has-results) .compact-source .points-source-copy p:last-child{font-size:9.8px;}
  body:not(.has-results) .compact-source .source-link-button{min-height:33px;}
  body:not(.has-results) .compact-source .points-source-note{font-size:9px;}
  body:not(.has-results) .input-divider{margin-bottom:5px;}
  body:not(.has-results) .field-row{gap:5px;}
  body:not(.has-results) .input-field input{height:48px;font-size:19px;}
  body:not(.has-results) .help-details{margin:0 0 5px;padding-top:5px;}
  body:not(.has-results) .primary-button{min-height:44px;padding:9px 14px;}
  body:not(.has-results) .footer{display:none;}
}

/* v0.3.4 — Luxury refinement: balanced entry, premium material, stable numerals */
:root{
  --pearl:#fffefb;
  --warm-gray:#77736f;
  --champagne:#c69a4b;
  --champagne-pale:#efe1c3;
  --shadow-soft:0 22px 58px rgba(61,39,24,.095),0 5px 16px rgba(61,39,24,.045);
}

/* Stable, modern numeric metrics: prevents optical baseline drift in serif digits */
.points-hero,.level-number,.gap-number,.coupon-value,
.compact-summary-copy strong,.input-field input,
.membership-card strong{
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Arial,sans-serif;
  font-variant-numeric:lining-nums tabular-nums;
  font-feature-settings:"lnum" 1,"tnum" 1;
}
.points-hero{
  font-weight:560;
  letter-spacing:-.052em;
  line-height:.9;
}
.level-number,.gap-number{
  font-weight:520;
  letter-spacing:-.045em;
  line-height:.92;
}
.coupon-value{
  font-weight:540;
  letter-spacing:-.045em;
}
.input-field input{font-weight:650;letter-spacing:-.012em}

/* Pearl material and softer editorial depth */
.hero-card,.panel,.staff-panel,.staff-preview{
  border-color:rgba(174,133,66,.17);
  box-shadow:var(--shadow-soft),inset 0 1px 0 rgba(255,255,255,.95);
}
.hero-card,.panel{
  background:
    radial-gradient(circle at 90% 2%,rgba(231,211,171,.16),transparent 34%),
    linear-gradient(155deg,rgba(255,255,255,.995),rgba(255,252,247,.975));
}
.panel:before{
  height:3px;
  background:linear-gradient(90deg,transparent 0%,var(--level,#bd8e3c) 15%,var(--level,#bd8e3c) 85%,transparent 100%);
  opacity:.92;
}
.reward-item{
  border-color:rgba(138,116,91,.18);
  box-shadow:0 5px 14px rgba(63,43,28,.045);
}
.reward-image-wrap{background:#fbf8f3}

/* Membership uses the actual tier as its material accent */
.membership-card:before{
  background:linear-gradient(90deg,transparent 0%,var(--tier,#8b8b8b) 18%,var(--tier,#8b8b8b) 82%,transparent 100%);
}
.membership-card .tier-name{
  color:var(--tier,#777);
  text-shadow:0 1px 0 rgba(255,255,255,.8);
  letter-spacing:.015em;
}
.tier-bronze{--tier:#a86a3b}
.tier-silver{--tier:#7c838d}
.tier-gold{--tier:#b88731}
.tier-platinum{--tier:#858ca8}

/* Softer customer copy hierarchy */
.muted{color:var(--warm-gray)}
.small-label{letter-spacing:.075em;text-transform:none}
.reached-block .small-label{font-size:12.5px}
.gallery-details summary,.benefits-details summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.gallery-details summary::after,.benefits-details summary::after,.help-details summary::after{
  flex:0 0 auto;
}

@media (max-width:719px){
  /* Entry page: keep one-screen goal, but restore luxury breathing room */
  body:not(.has-results) .site-shell{
    padding:10px 16px 16px;
  }
  body:not(.has-results) .brand-header{
    padding:13px 0 7px;
  }
  body:not(.has-results) .brand-name{
    font-size:14px;
    margin-bottom:3px;
  }
  body:not(.has-results) .brand-system{
    font-size:14px;
    letter-spacing:.052em;
  }
  body:not(.has-results) .brand-header::after{
    margin-top:8px;
    width:46px;
  }
  body:not(.has-results) .intro{
    margin:8px auto 13px;
    padding:0 7px;
  }
  body:not(.has-results) .intro h1{
    font-size:clamp(31px,8.8vw,38px);
    line-height:1.02;
    margin:3px 0 8px;
    letter-spacing:-.021em;
    text-wrap:balance;
  }
  body:not(.has-results) .intro p{
    max-width:365px;
    font-size:12.4px;
    line-height:1.48;
    color:#74716f;
    text-wrap:balance;
  }
  body:not(.has-results) .input-card{
    margin-top:10px;
    padding:17px 17px 18px;
    border-radius:25px;
    box-shadow:0 24px 55px rgba(66,40,23,.105),0 7px 18px rgba(109,15,32,.035),inset 0 1px 0 #fff;
  }
  body:not(.has-results) .input-card::after{
    content:"";
    position:absolute;
    width:190px;
    height:190px;
    right:-90px;
    top:-115px;
    border-radius:50%;
    background:radial-gradient(circle,rgba(224,190,124,.16),rgba(224,190,124,0) 68%);
    pointer-events:none;
  }
  body:not(.has-results) .points-source-card.compact-source{
    padding:12px 13px;
    margin-bottom:11px;
    border-radius:17px;
    column-gap:12px;
    row-gap:7px;
    background:
      radial-gradient(circle at 96% 2%,rgba(226,195,136,.12),transparent 42%),
      linear-gradient(140deg,rgba(255,251,244,.98),rgba(255,255,255,.95));
  }
  body:not(.has-results) .compact-source .points-source-title{
    font-size:14.2px;
    line-height:1.3;
  }
  body:not(.has-results) .compact-source .points-source-copy p:last-child{
    font-size:11px;
    line-height:1.45;
  }
  body:not(.has-results) .compact-source .source-link-button{
    min-height:39px;
    padding:0 13px;
    font-size:12.4px;
    border-radius:12px;
  }
  body:not(.has-results) .compact-source .points-source-note{
    padding-top:6px;
    font-size:10px;
    line-height:1.35;
  }
  body:not(.has-results) .input-divider{
    margin:3px 0 11px;
    font-size:10.4px;
    gap:11px;
  }
  body:not(.has-results) .input-divider::before,
  body:not(.has-results) .input-divider::after{
    background:linear-gradient(90deg,transparent,rgba(189,142,60,.38),transparent);
  }
  body:not(.has-results) .field-row{gap:11px}
  body:not(.has-results) .input-field label{
    font-size:13px;
    margin-bottom:5px;
  }
  body:not(.has-results) .input-field label small{font-size:10.4px}
  body:not(.has-results) .input-field input{
    height:57px;
    padding:11px 14px;
    font-size:21px;
    border-radius:14px;
    border-color:#d8cfc2;
    box-shadow:inset 0 1px 2px rgba(71,49,32,.035);
  }
  body:not(.has-results) .help-details{
    margin:5px 0 10px;
    padding-top:8px;
  }
  body:not(.has-results) .help-details summary{
    font-size:12.1px;
    letter-spacing:.005em;
  }
  body:not(.has-results) .primary-button{
    min-height:51px;
    font-size:14.4px;
    border-radius:14px;
  }
  body:not(.has-results) .footer{
    margin-top:auto;
    padding-top:13px;
    font-size:10px;
    opacity:.66;
  }

  /* Results: refined density, clearer numeric hierarchy */
  #result-root{gap:14px}
  .hero-card,.panel{border-radius:23px}
  .hero-card{padding:20px 18px 18px}
  .points-hero{
    font-size:clamp(66px,18vw,88px);
    margin-top:5px;
  }
  .points-unit,.level-unit,.gap-unit{margin-top:7px}
  .level-number,.gap-number{font-size:56px}
  .panel{padding:20px 18px}
  .reward-grid{gap:10px}
  .reward-item-copy{padding:10px 11px 12px}
  .reward-item-copy h4{font-size:12.35px;line-height:1.4}
  .reward-item-copy p{font-size:10.8px}
  .reached-block .small-label{font-size:12px;line-height:1.4}
  .next-panel{padding-top:21px;padding-bottom:19px}
  .next-panel .gap-number{margin-top:8px}
  .flexible-panel{padding-top:21px;padding-bottom:21px}
  .membership-card{padding-top:22px;padding-bottom:20px}
  .membership-card .tier-name{font-size:44px}
}

/* Very short mobile viewports still preserve the one-screen entry */
@media (max-width:719px) and (max-height:760px){
  body:not(.has-results) .site-shell{padding-top:5px;padding-bottom:7px}
  body:not(.has-results) .brand-header{padding:7px 0 3px}
  body:not(.has-results) .brand-header::after{margin-top:5px}
  body:not(.has-results) .intro{margin:3px auto 6px}
  body:not(.has-results) .intro h1{font-size:30px;margin:1px 0 4px}
  body:not(.has-results) .intro p{font-size:11.2px;line-height:1.32}
  body:not(.has-results) .input-card{margin-top:5px;padding:11px 13px 12px}
  body:not(.has-results) .points-source-card.compact-source{padding:9px 10px;margin-bottom:7px}
  body:not(.has-results) .compact-source .points-source-copy p:last-child{font-size:10px}
  body:not(.has-results) .compact-source .source-link-button{min-height:34px}
  body:not(.has-results) .compact-source .points-source-note{font-size:9.2px;padding-top:4px}
  body:not(.has-results) .input-divider{margin:0 0 6px}
  body:not(.has-results) .field-row{gap:6px}
  body:not(.has-results) .input-field input{height:49px;font-size:19px}
  body:not(.has-results) .help-details{margin:1px 0 6px;padding-top:6px}
  body:not(.has-results) .primary-button{min-height:45px;padding:9px 14px}
  body:not(.has-results) .footer{display:none}
}


/* v0.3.5 — progressive Reward preview + customer-safe copy polish */
.catalog-expandable{margin-top:0}
.catalog-toggle{
  width:100%;
  border:0;
  border-top:1px solid var(--line);
  margin-top:16px;
  padding:13px 0 2px;
  background:transparent;
  color:var(--burgundy);
  font-weight:780;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  text-align:left;
}
.catalog-toggle b{color:var(--gold);font-size:19px;line-height:1;font-weight:500}
.catalog-toggle:active{opacity:.72}
.full-level-catalog{margin-top:3px}
.full-level-catalog .gallery-group:first-child .gallery-label{margin-top:14px}
.previous-level-panel{scroll-margin-top:16px}
.previous-level-title{margin:0;color:var(--burgundy);font-weight:820;font-size:15px}
.hidden-levels{gap:13px;margin-top:-2px}
.coupon-title{margin:8px 0 0;color:#56545a;font-size:13px;font-weight:720}
.flexible-copy .coupon-value{margin-top:3px}

@media (max-width:719px){
  .catalog-toggle{margin-top:13px;padding-top:11px;font-size:13.2px}
  .catalog-toggle b{font-size:17px}
  .previous-level-panel{padding:17px 18px 18px}
  .previous-level-title{font-size:13.8px}
  .previous-level-panel .reward-grid{margin-top:12px}
  .full-level-catalog .reward-grid{margin-top:11px}
  .coupon-title{font-size:12.5px;margin-top:5px}
}

/* v0.3.6 — smooth disclosure + partial-input states */
.form-error{
  min-height:0;
  margin:0 0 6px;
  color:var(--burgundy);
  font-size:12px;
  line-height:1.4;
  text-align:center;
  font-weight:680;
}
.form-error:empty{display:none}
.partial-data-card{
  background:
    radial-gradient(circle at 82% 12%,rgba(189,142,60,.10),transparent 38%),
    linear-gradient(150deg,rgba(255,255,255,.98),rgba(251,247,240,.97));
  border-color:rgba(189,142,60,.22);
  padding-top:25px;
  padding-bottom:25px;
}
.partial-data-card::before{
  background:linear-gradient(90deg,rgba(189,142,60,.5),rgba(109,15,32,.22),rgba(189,142,60,.5));
}
.partial-data-card h2{
  margin:8px 0 8px;
  font-family:inherit;
  font-size:21px;
  line-height:1.35;
  color:#2d2929;
  letter-spacing:0;
}
.partial-data-card .muted{max-width:560px;margin:0 0 15px}
.partial-add-button{
  appearance:none;
  border:1px solid rgba(109,15,32,.22);
  background:rgba(255,255,255,.82);
  color:var(--burgundy);
  border-radius:999px;
  padding:10px 16px;
  font:inherit;
  font-weight:760;
  box-shadow:0 7px 22px rgba(83,53,33,.06);
}
.partial-add-button:active{transform:translateY(1px);opacity:.78}
.guidance-row.is-incomplete{
  background:linear-gradient(135deg,rgba(247,242,233,.78),rgba(255,255,255,.75));
  border-radius:12px;
  padding:10px 11px;
  margin:4px 0;
}
.catalog-expandable [data-catalog-preview]{
  transition:opacity .16s ease;
}
.full-level-catalog[hidden]{display:none!important}
.full-level-catalog:not([hidden]){
  animation:rewardReveal .22s cubic-bezier(.2,.75,.25,1) both;
}
@keyframes rewardReveal{
  from{opacity:0;transform:translateY(5px)}
  to{opacity:1;transform:translateY(0)}
}
@media (prefers-reduced-motion:reduce){
  .full-level-catalog:not([hidden]){animation:none}
}
@media (max-width:719px){
  .form-error{font-size:10.8px;margin-bottom:5px}
  .partial-data-card{padding:20px 18px}
  .partial-data-card h2{font-size:18px}
  .partial-add-button{padding:9px 14px;font-size:13px}
}


/* v0.3.7 — consistent disclosure controls across every Reward level */
.catalog-toggle[hidden]{display:none!important}
.catalog-toggle-close{
  margin-top:18px;
  padding-top:13px;
  border-top:1px solid var(--line);
}
.full-level-catalog .catalog-toggle-close{
  margin-bottom:1px;
}
.catalog-expandable.is-expanded > .catalog-toggle-open{display:none!important}
@media (max-width:719px){
  .catalog-toggle-close{margin-top:15px;padding-top:12px}
}

/* v0.3.8 — Next Reward complete-gallery state + bottom LINE CTA */
.catalog-expandable [data-catalog-preview][hidden]{display:none!important}
.full-level-catalog.is-complete-gallery{margin-top:0}
.full-level-catalog.is-complete-gallery .gallery-group:first-child .gallery-label{margin-top:2px}
.full-level-catalog.is-complete-gallery .reward-grid{margin-top:12px}

.line-contact-panel{
  width:min(100%,620px);
  margin:18px auto 0;
  padding:24px 22px;
  text-align:center;
  border:1px solid rgba(189,142,60,.20);
  border-radius:24px;
  background:
    radial-gradient(circle at 84% 4%,rgba(226,195,136,.18),transparent 38%),
    linear-gradient(145deg,rgba(255,255,255,.99),rgba(250,245,236,.98));
  box-shadow:0 18px 46px rgba(69,45,28,.085),inset 0 1px 0 rgba(255,255,255,.96);
  position:relative;
  overflow:hidden;
}
.line-contact-panel[hidden]{display:none!important}
.line-contact-panel::before{
  content:"";
  position:absolute;
  inset:0 auto auto 0;
  width:100%;
  height:3px;
  background:linear-gradient(90deg,transparent,var(--gold) 22%,var(--gold) 78%,transparent);
  opacity:.82;
}
.line-contact-panel h2{
  margin:5px 0 5px;
  color:#2d2929;
  font-family:inherit;
  font-size:21px;
  line-height:1.35;
  letter-spacing:0;
}
.line-contact-panel>p:not(.section-kicker){
  margin:0 auto 16px;
  color:var(--muted);
  font-size:13.5px;
  line-height:1.55;
}
.line-contact-button{
  display:flex;
  min-height:50px;
  align-items:center;
  justify-content:center;
  width:100%;
  border-radius:15px;
  color:#fff;
  text-decoration:none;
  font-weight:850;
  letter-spacing:.01em;
  background:linear-gradient(135deg,var(--burgundy),#8a1a2e);
  box-shadow:0 10px 24px rgba(109,15,32,.16);
}
.line-contact-button:active{transform:translateY(1px);opacity:.86}

@media (max-width:719px){
  .line-contact-panel{
    margin-top:14px;
    padding:20px 18px;
    border-radius:23px;
  }
  .line-contact-panel h2{font-size:18px}
  .line-contact-panel>p:not(.section-kicker){font-size:12.2px;margin-bottom:13px}
  .line-contact-button{min-height:48px;font-size:14px;border-radius:14px}
  .full-level-catalog.is-complete-gallery .reward-grid{margin-top:10px}
}

/* v0.4.1 — Staff Workspace + Unified LINE Message
   Customer selectors above remain unchanged. These overrides are staff-only. */
body[data-mode="staff"] .staff-shell{max-width:860px}
body[data-mode="staff"] .staff-brand-header{padding-bottom:10px}
body[data-mode="staff"] .staff-badge{
  margin-top:7px;
  padding:5px 11px;
  background:linear-gradient(145deg,#f7f1e8,#fffaf3);
  border:1px solid rgba(139,17,42,.10);
  box-shadow:0 7px 22px rgba(75,48,25,.05);
}
body[data-mode="staff"] .staff-layout{display:block;max-width:760px;margin:0 auto}
body[data-mode="staff"] .staff-controls{position:static}
body[data-mode="staff"] .input-card.staff{max-width:none;margin:0 auto}
body[data-mode="staff"] #result-root{max-width:none;margin-top:18px;gap:16px}
body[data-mode="staff"] .staff-help-box{font-size:12.5px;line-height:1.55}
body[data-mode="staff"] .staff-reset-button{font-size:13px;min-height:44px;margin-top:10px}

body[data-mode="staff"] .staff-panel-heading{margin-bottom:7px}
body[data-mode="staff"] .staff-panel-heading h2,
body[data-mode="staff"] .staff-explorer-heading h2{
  margin:3px 0 0;
  font-size:22px;
  line-height:1.3;
  color:#282326;
}
body[data-mode="staff"] .staff-summary-panel .guidance-row{padding:14px 0}
body[data-mode="staff"] .staff-summary-panel .guidance-row span{font-size:12.5px}
body[data-mode="staff"] .staff-summary-panel .guidance-row strong{font-size:15.5px;line-height:1.5}
body[data-mode="staff"] .guidance-row.guidance-highlight strong{color:var(--burgundy)}
body[data-mode="staff"] .staff-context-note{
  margin:12px 0 0;
  padding:10px 12px;
  border-radius:12px;
  background:#faf6ef;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}

body[data-mode="staff"] .line-panel textarea{
  min-height:250px;
  font-size:15px;
  line-height:1.7;
  background:linear-gradient(145deg,#fcfaf7,#fff);
}
body[data-mode="staff"] .customer-link-tools{
  margin-top:18px;
  padding-top:17px;
  border-top:1px solid var(--line);
}
body[data-mode="staff"] .customer-link-heading{display:grid;gap:3px;margin-bottom:10px}
body[data-mode="staff"] .customer-link-heading strong{font-size:14.5px;color:#312c2e}
body[data-mode="staff"] .customer-link-heading span{font-size:12px;color:var(--muted);line-height:1.45}
body[data-mode="staff"] .customer-link-field-row{display:grid;gap:9px}
body[data-mode="staff"] .customer-link-field{
  width:100%;
  min-width:0;
  height:47px;
  border:1px solid var(--line);
  border-radius:13px;
  padding:0 12px;
  background:#faf8f5;
  color:#6e666a;
  font-size:12px;
}
body[data-mode="staff"] .customer-link-copy{margin:0;min-height:46px;font-size:13.5px}

body[data-mode="staff"] .staff-reward-explorer{
  margin-top:2px;
  padding-top:3px;
}
body[data-mode="staff"] .staff-explorer-heading{
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(251,247,240,.94));
  border:1px solid rgba(189,142,60,.16);
  border-radius:22px;
  box-shadow:var(--shadow);
  padding:20px;
  margin-bottom:14px;
}
body[data-mode="staff"] .staff-explorer-heading p:last-child{
  margin:8px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}
body[data-mode="staff"] .staff-explorer-body{display:grid;gap:14px}
body[data-mode="staff"] .staff-explorer-body .hero-card,
body[data-mode="staff"] .staff-explorer-body .panel{margin:0}
body[data-mode="staff"] .staff-explorer-body .global-disclaimer{margin:0 18px 2px}

@media (min-width:900px){
  body[data-mode="staff"] .staff-layout{display:block;max-width:780px}
  body[data-mode="staff"] .staff-layout .staff-controls{position:static}
  body[data-mode="staff"] .field-row{grid-template-columns:1fr 1fr}
  body[data-mode="staff"] .reward-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  body[data-mode="staff"] .next-preview{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media (max-width:520px){
  body[data-mode="staff"] .staff-brand-header{padding-top:10px}
  body[data-mode="staff"] .staff-brand-header .brand-name{font-size:14px}
  body[data-mode="staff"] .staff-brand-header .brand-system{font-size:15px;letter-spacing:.055em}
  body[data-mode="staff"] .staff-panel-heading h2,
  body[data-mode="staff"] .staff-explorer-heading h2{font-size:19px}
  body[data-mode="staff"] .line-panel textarea{min-height:275px;font-size:14.5px}
  body[data-mode="staff"] .staff-explorer-heading{padding:17px}
}

/* v0.4.1 — unified LINE message + personalized customer link */
body[data-mode="staff"] .unified-line-panel .line-panel-intro{
  margin:6px 0 0;
  color:var(--muted);
  font-size:12.5px;
  line-height:1.5;
}
body[data-mode="staff"] .line-message-preview{
  margin:14px 0 12px;
  padding:17px 16px;
  border:1px solid var(--line);
  border-radius:16px;
  background:linear-gradient(145deg,#fcfaf7,#fff);
  color:#252124;
  font-size:14.5px;
  line-height:1.66;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
body[data-mode="staff"] .customer-link-tools-compact{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px 12px;
  align-items:center;
  margin-top:16px;
  padding-top:15px;
}
body[data-mode="staff"] .customer-link-tools-compact .customer-link-heading{
  margin:0;
}
body[data-mode="staff"] .customer-link-tools-compact .customer-link-heading strong{
  font-size:13.5px;
}
body[data-mode="staff"] .customer-link-tools-compact .customer-link-heading span{
  font-size:11.5px;
}
body[data-mode="staff"] .customer-link-tools-compact .customer-link-copy{
  width:auto;
  min-height:42px;
  padding:0 14px;
  white-space:nowrap;
}
body[data-mode="staff"] .customer-link-tools-compact .copy-status{
  grid-column:1/-1;
  margin-top:-2px;
}

@media (max-width:520px){
  body[data-mode="staff"] .line-message-preview{
    padding:15px 14px;
    font-size:14px;
    line-height:1.62;
  }
  body[data-mode="staff"] .customer-link-tools-compact{
    grid-template-columns:1fr;
  }
  body[data-mode="staff"] .customer-link-tools-compact .customer-link-copy{
    width:100%;
  }
}
