/* Simple Memo product landing v3: actual 3.8.50 UI + six unique use cases.
   Scoped to .memo-page; shared JEONGDO and other products are untouched. */
.memo-page{
  --paper:#fff0a3;
  --paper-2:#ffe27a;
  --paper-ink:#4a3f12;
  --memo-border:#dccf9d;
}
.memo-main{padding-bottom:40px}
.memo-page .lang-switch{border:1px solid var(--line);border-radius:100px;padding:4px 12px}
.memo-page .memo-hero{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
  grid-template-areas:"heading preview" "detail preview";
  gap:12px 30px;
  align-items:start;
  padding:34px;
  border-radius:30px;
  background:var(--surface);
}
.memo-hero .hero-heading{grid-area:heading;min-width:0}
.memo-hero .hero-detail{grid-area:detail;min-width:0;align-self:end}
.memo-product-id{display:flex;gap:12px;align-items:center;margin:0 0 8px}
.memo-product-id .icon{flex:none;width:60px;height:60px;padding:6px;border-radius:18px}
.memo-product-kicker{display:flex;flex-direction:column;align-items:flex-start;gap:5px}
.memo-product-kicker .eyebrow{
  padding:4px 10px;margin:0;
  letter-spacing:0;font-weight:750;font-size:12px;
  color:var(--deep);background:#fff9da;border-color:var(--memo-border);
}
.memo-release-pill{display:block;color:var(--muted);font-size:12px;font-weight:700;letter-spacing:.01em}
.memo-hero h1{font-size:clamp(31px,4.25vw,47px);line-height:1.18;letter-spacing:-.055em;word-break:keep-all;margin:11px 0 6px}
.memo-hero h1 span{color:var(--deep);box-shadow:inset 0 -.28em 0 #ffed9c}
.memo-hero .lead{font-size:clamp(16px,1.45vw,18px);font-weight:570;line-height:1.58;max-width:560px;margin:10px 0 0;word-break:keep-all}
.memo-hero .hero-actions{gap:12px;margin-top:19px}
.memo-hero .hero-actions .button{font-size:13px;min-height:46px;padding:10px 18px}
.memo-hero .hero-actions .button span{line-height:1}
.hero-stack{
  grid-area:preview;
  position:relative;isolation:isolate;
  width:100%;height:340px;min-height:0;margin:0;
  border:1px solid #eddda4;border-radius:22px;
  background:radial-gradient(ellipse at 80% 0%,#fff9df 0%,transparent 72%),#fff1bb;
  overflow:hidden;
}
.hero-stack::before{
  content:"";position:absolute;inset:0;opacity:.30;
  background:repeating-linear-gradient(to bottom,transparent 0 29px,#d7c68a 30px,transparent 31px);
  pointer-events:none;
}
.capture-frame{
  position:absolute;overflow:hidden;z-index:1;
  background:#fff7d7;border:3px solid #fffef7;border-radius:15px;
  box-shadow:0 15px 32px rgba(68,52,6,.18),0 0 0 1px rgba(73,58,8,.09);
  transform-origin:50% 50%;
}
.capture-frame img{display:block;width:100%;height:auto;max-width:none}
.capture-home{left:11%;top:5%;width:50%;height:86%;transform:rotate(-4deg)}
.capture-editor{right:7%;bottom:8%;width:44%;height:78%;transform:rotate(4deg)}
.capture-label{
  position:absolute;z-index:2;bottom:8px;left:50%;max-width:94%;
  transform:translateX(-50%);white-space:nowrap;
  border:1px solid rgba(164,140,64,.18);border-radius:999px;
  padding:4px 11px;background:rgba(255,254,246,.96);color:#605431;
  font-size:11px;line-height:1.2;
}
.memo-section{margin-top:54px}
.section-label{margin:0 0 7px!important;font-size:11px!important;font-weight:850!important;letter-spacing:.13em!important;color:var(--deep)!important;line-height:1.4!important}
.section-heading{margin-bottom:20px}
.memo-section h2{font-size:clamp(24px,3vw,33px);letter-spacing:-.04em;margin:0 0 6px;line-height:1.25}
.section-note{margin:6px 0 0;color:var(--muted);font-size:14px;line-height:1.6}
.cases{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.case{
  display:flex;flex-direction:column;min-width:0;gap:12px;
  padding:16px;
  border:1px solid var(--line);border-radius:19px;background:var(--surface);
}
.case .paper{order:-1;min-height:165px;box-shadow:0 4px 0 -1px var(--paper-2),0 9px 16px rgba(80,60,0,.07)}
.case-copy{flex:1;display:flex;flex-direction:column;min-width:0}
.case h3{margin:0 0 8px;font-size:18px;line-height:1.3;letter-spacing:-.03em}
.case p{font-size:14px;line-height:1.58;margin:0 0 8px;color:var(--muted)}
.case .rel{
  margin-top:auto;padding-top:9px;border-top:1px solid var(--line);
  font-size:12.5px;line-height:1.5;
}
.case .rel b{display:block;color:var(--deep);margin-bottom:2px;font-weight:800}
.paper{
  position:relative;min-width:0;
  padding:16px 17px 14px;color:var(--paper-ink);
  background:repeating-linear-gradient(to bottom,transparent 0 26px,rgba(120,100,20,.13) 26px 27px),var(--paper);
  border-radius:5px 5px 5px 15px;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 13px),calc(100% - 13px) 100%,0 100%);
}
.paper h3{margin:0 0 5px;font-size:15px;color:var(--paper-ink);letter-spacing:-.025em;font-weight:800;line-height:1.4}
.paper ul{margin:0;padding:0;list-style:none}
.paper li{font-size:13px;line-height:25px;color:var(--paper-ink);margin:0!important;overflow-wrap:anywhere}
.paper li:not(.chk)::before{content:"– ";opacity:.65}
.paper .chk{display:flex;gap:7px;align-items:center}
.paper .chk i{flex:none;width:13px;height:13px;border:1.5px solid var(--paper-ink);border-radius:3px}
.paper .chk.done{text-decoration:line-through;opacity:.6}
.paper .chk.done i{background:var(--paper-ink)}
.cases+.ad-slot+.cases{margin-top:18px}
.screenshots-section{scroll-margin-top:24px}
.screen-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.screen-card{
  margin:0;min-width:0;
  overflow:hidden;border-radius:18px;background:var(--surface);
  border:1px solid var(--line);
}
.screen-window{height:255px;overflow:hidden;background:#fff8dc;border-bottom:1px solid var(--line)}
.screen-window img{width:100%;height:auto;display:block}
.screen-window img[src*="05_tablet.png"]{height:100%;object-fit:cover;object-position:left top}
.screen-card figcaption{display:grid;gap:5px;padding:17px}
.screen-card strong{font-size:17px;line-height:1.35;letter-spacing:-.035em}
.screen-card figcaption span{font-size:13px;line-height:1.55;color:var(--muted)}
.swipe-tip{display:none}
.release{margin-top:54px;border:var(--edge);background:#fff9df;scroll-margin-top:24px}
.release h2{margin:2px 0 8px}
.two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.two-col .card{margin:0!important}
.two-col .card p{line-height:1.7}
.two-col .card .button{margin-top:12px}
.faq{max-width:940px}
.faq details{border-bottom:1px solid var(--line);padding:10px 2px}
.faq summary{cursor:pointer;font-weight:750;min-height:44px;display:flex;align-items:center;line-height:1.5}
.faq details[open] summary{color:var(--deep)}
.faq p{margin:5px 0 10px;color:var(--muted);line-height:1.7}
.final{margin-top:50px;text-align:center;background:var(--paper);border:var(--edge)}
.final h2{margin-top:0;color:var(--paper-ink)}
/* AdSense is not activated. These are completely hidden outside ?adpreview=1. */
.ad-slot{margin:42px auto;max-width:728px;padding:14px 0;text-align:center;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.ad-slot::before{content:attr(data-label);display:block;font-size:11px;letter-spacing:.08em;color:var(--muted);margin-bottom:8px}
.ad-slot .ad-preview{min-height:90px;display:grid;place-items:center;border:1px dashed var(--line);color:var(--muted);font-size:13px;background:var(--cream)}
@media(max-width:1060px){
  .memo-page .memo-hero{gap:10px 20px;padding:28px}
  .cases{grid-template-columns:repeat(2,minmax(0,1fr))}
  .memo-hero h1{font-size:clamp(30px,4vw,43px)}
  .memo-hero .hero-actions{flex-direction:column;align-items:flex-start;gap:10px}
}
@media(max-width:760px){
  .memo-page .memo-hero{
    grid-template-columns:1fr;
    grid-template-areas:"heading" "preview" "detail";
    padding:20px;gap:16px;
    align-items:start;
  }
  .memo-hero h1{font-size:clamp(29px,5vw,40px)}
  .hero-stack{height:265px}
  .memo-hero .hero-actions{flex-direction:row;align-items:center}
  .two-col{grid-template-columns:1fr}
  .screen-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  .screen-window{height:195px}
}
@media(max-width:640px){
  .memo-page .brand-nav{min-height:56px;flex-wrap:nowrap;gap:6px;padding-block:4px}
  .memo-page .wordmark{font-size:18px;gap:5px;white-space:nowrap}
  .memo-page .wordmark svg{width:23px;height:23px}
  .memo-page .brand-links{flex-wrap:nowrap;gap:0;margin-left:auto;font-size:12px}
  .memo-page .brand-links a{padding-inline:8px;min-height:40px}
  .memo-page .brand-links a[href^="https://jeongdo.me/"],
  .memo-page .brand-links a[href="https://data.jeongdo.me/"]{display:none}
  .memo-page .lang-switch{padding:4px 9px}
  .memo-page .memo-main{padding:10px 13px 0}
  .memo-page .breadcrumbs{display:none}
  .memo-page .memo-hero{margin-top:0;padding:17px;gap:11px;border-radius:23px;box-shadow:3px 3px 0 var(--product-accent)}
  .memo-product-id{gap:9px;margin:0 0 4px}
  .memo-product-id .icon{width:46px;height:46px;border-radius:14px;padding:4px}
  .memo-product-kicker{gap:2px}
  .memo-product-kicker .eyebrow{font-size:11px;padding:3px 8px;line-height:1.3}
  .memo-release-pill{font-size:11px}
  .memo-hero h1{font-size:clamp(25px,7.2vw,32px);margin:7px 0 0;line-height:1.19;letter-spacing:-.06em}
  .hero-stack{height:clamp(200px,56vw,235px);border-radius:14px}
  .capture-frame{border-width:2px;border-radius:10px}
  .capture-home{left:10%;top:4%;width:53%;height:87%}
  .capture-editor{right:7%;bottom:9%;width:45%;height:78%}
  .capture-label{font-size:9.5px;padding:3px 7px;bottom:6px;white-space:normal;text-align:center;width:max-content}
  .memo-hero .lead{font-size:14.5px;line-height:1.55;margin:1px 0 0;font-weight:530}
  .memo-hero .hero-actions{margin-top:12px;gap:8px;flex-direction:row;align-items:stretch}
  .memo-hero .hero-actions .button{min-height:45px;padding:8px 11px;font-size:12px;flex:1;gap:4px;white-space:nowrap}
  .memo-hero .hero-actions .button-secondary{box-shadow:none}
  .memo-section{margin-top:38px}
  .section-heading{margin-bottom:13px}
  .memo-section h2{font-size:24px}
  .section-note{font-size:13px}
  .cases{grid-template-columns:1fr;gap:12px}
  .case{padding:13px;gap:8px;border-radius:16px}
  .case .paper{min-height:auto}
  .case h3{font-size:17px}
  .case p{font-size:13px}
  .paper h3{font-size:14px}
  .paper li{font-size:12px;line-height:23px}
  .screen-grid{
    display:grid;grid-auto-flow:column;grid-auto-columns:minmax(218px,79%);
    grid-template-columns:none;gap:12px;
    overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;
    scroll-padding-inline:2px;padding:2px 2px 12px;
    scrollbar-width:thin;overscroll-behavior-inline:contain;
  }
  .screen-grid:focus-visible{outline-offset:2px}
  .screen-card{scroll-snap-align:start}
  .screen-window{height:225px}
  .swipe-tip{display:block;color:var(--muted);font-size:12px;margin:0 0 9px}
  .release{margin-top:38px;padding:20px}
  .two-col .card{padding:21px}
  .faq summary{font-size:14.5px}
  .final{padding:22px;margin-top:36px}
  .final .button{width:100%}
}
@media(max-width:350px){
  .memo-page .wordmark{font-size:16px}
  .memo-page .brand-links a{padding-inline:5px}
  .memo-page .memo-main{padding-inline:10px}
  .memo-hero .hero-actions{flex-direction:column}
  .memo-hero .hero-actions .button{width:100%}
  .capture-label{max-width:90%}
}
@media(prefers-reduced-motion:no-preference){
  .capture-frame{transition:transform .22s ease}
  .hero-stack:hover .capture-home{transform:rotate(-2deg) translateY(-2px)}
  .hero-stack:hover .capture-editor{transform:rotate(2deg) translateY(-2px)}
}


/* v4 — Color themes verified against ThemeMode.kt, Theme.kt and SoftTheme.kt.
   A web illustration, not an interactive Android emulator. */
.theme-section{scroll-margin-top:22px}
.theme-showcase{
  --demo-bg:#FDF7DA;--demo-paper:#FFFCE8;--demo-header:#E8C86C;
  --demo-ink:#1A1C1E;--demo-muted:#5A513B;--demo-edge:#E4D9A8;--demo-accent:#6C4A11;
  display:grid;grid-template-columns:minmax(0,1.1fr) minmax(340px,.9fr);
  gap:18px;align-items:stretch
}
.theme-showcase[data-theme="bold_yellow"]{--demo-bg:#F1EBD9;--demo-paper:#FFF2B7;--demo-header:#E3C269;--demo-ink:#302919;--demo-muted:#5E5031;--demo-edge:#D0BD7A;--demo-accent:#6C4A11}
.theme-showcase[data-theme="mint"]{--demo-bg:#DCE6DF;--demo-paper:#FAFCFA;--demo-header:#A6D9C0;--demo-ink:#171B19;--demo-muted:#3C413F;--demo-edge:#A0B7A9;--demo-accent:#1B4D3E}
.theme-showcase[data-theme="pink"]{--demo-bg:#ECDDE2;--demo-paper:#FFFAFC;--demo-header:#F0B6C6;--demo-ink:#1D191B;--demo-muted:#454042;--demo-edge:#C6A5B2;--demo-accent:#6B2B3C}
.theme-showcase[data-theme="paper"]{--demo-bg:#F7F4EC;--demo-paper:#FFFDF9;--demo-header:#E3CEAA;--demo-ink:#1A1C1E;--demo-muted:#514A40;--demo-edge:#E2DDD3;--demo-accent:#5C4A32}
.theme-showcase[data-theme="charcoal"]{--demo-bg:#14181E;--demo-paper:#2D3541;--demo-header:#242B35;--demo-ink:#E9EDF2;--demo-muted:#BEC8D3;--demo-edge:#596879;--demo-accent:#E8CD8F}
.theme-showcase[data-theme="high_contrast"]{--demo-bg:#FFF;--demo-paper:#F8F8F8;--demo-header:#B8CDF5;--demo-ink:#000;--demo-muted:#171717;--demo-edge:#222;--demo-accent:#003F9E}
.theme-showcase[data-theme="system"]{--demo-bg:#F2F6F9;--demo-paper:#FFF;--demo-header:#DAE5EF;--demo-ink:#1E2B34;--demo-muted:#475666;--demo-edge:#B3C4D0;--demo-accent:#385C75}
@media(prefers-color-scheme:dark){
  .theme-showcase[data-theme="system"]{--demo-bg:#20262B;--demo-paper:#313D44;--demo-header:#3C505D;--demo-ink:#E7EDF2;--demo-muted:#C3D0D8;--demo-edge:#697B83;--demo-accent:#B8DCEB}
}
.theme-stage{
  position:relative;min-width:0;min-height:480px;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:15px;padding:30px 25px 20px;border:1px solid var(--demo-edge);border-radius:24px;
  background:radial-gradient(circle at 20% 10%,rgba(255,255,255,.25),transparent 50%),var(--demo-bg);
  color:var(--demo-ink);overflow:hidden
}
.theme-stage:after{
  position:absolute;content:"";width:240px;height:240px;border:1px solid var(--demo-edge);
  border-radius:50%;right:-140px;top:-130px;opacity:.25;pointer-events:none
}
.theme-device{
  position:relative;isolation:isolate;width:min(100%,435px);min-height:330px;overflow:hidden;
  border:1px solid var(--demo-edge);border-radius:20px;box-shadow:0 12px 30px rgba(0,0,0,.09);
  background:var(--demo-bg);color:var(--demo-ink)
}
.theme-device-bar{
  min-height:54px;padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:10px;
  background:var(--demo-header);color:var(--demo-ink);border-bottom:1px solid var(--demo-edge)
}
.theme-device-mark{font-size:15px;font-weight:850;letter-spacing:-.035em}
.theme-device-count{font-size:12px;font-weight:680;opacity:.78;white-space:nowrap}
.theme-device-content{padding:14px 18px 20px}
.theme-device-subhead{font-size:12px;font-weight:800;margin:0 0 10px;color:var(--demo-muted);line-height:1.5}
.theme-note{position:relative;background:var(--demo-paper);padding:18px 18px 16px;border:1px solid var(--demo-edge);border-radius:15px}
.theme-note-heading{margin:0 0 12px;font-size:19px!important;font-weight:830;line-height:1.35!important;color:var(--demo-ink)}
.theme-note ul{padding:0;margin:0;list-style:none;min-height:99px}
.theme-note li{padding:6px 0;border-bottom:1px solid var(--demo-edge);font-size:14px;color:var(--demo-ink);line-height:1.45}
.theme-note li:last-child{border-bottom:0}
.theme-note li:before{content:"✓";color:var(--demo-accent);font-size:13px;font-weight:900;margin-right:11px}
.theme-note-date{display:block;text-align:right;margin-top:12px;font-size:11px;color:var(--demo-muted)}
.theme-secondary-note{
  display:flex;justify-content:space-between;gap:10px;margin-top:11px;
  background:var(--demo-paper);border:1px solid var(--demo-edge);border-radius:10px;
  padding:10px 14px;font-size:11px;line-height:1.5;color:var(--demo-muted)
}
.theme-secondary-note strong{color:var(--demo-ink);font-size:11px;text-align:right}
.theme-demo-disclaimer{margin:0!important;color:var(--demo-muted);font-size:12px;line-height:1.45;text-align:center}
.theme-controls{
  min-width:0;display:flex;flex-direction:column;align-items:stretch;padding:22px;
  border:1px solid var(--line);border-radius:23px;background:var(--surface)
}
.theme-controls>h3{margin:0 0 4px;font-size:20px;letter-spacing:-.04em;line-height:1.35}
.theme-controls-hint{font-size:13px;color:var(--muted);margin:0 0 18px;line-height:1.5}
.theme-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.theme-choice{
  display:flex;align-items:center;gap:10px;justify-content:flex-start;
  width:100%;min-width:0;min-height:50px;padding:8px 9px;
  font:inherit;font-size:12.5px;font-weight:750;line-height:1.35;text-align:left;
  border:1.5px solid var(--line);border-radius:12px;background:#fff;
  color:var(--ink);cursor:pointer;transition:border-color .15s,background .15s,transform .15s
}
.theme-choice:hover{background:#fffbed;border-color:#b6a17b;transform:translateY(-1px)}
.theme-choice.is-active,.theme-choice[aria-pressed="true"]{background:#fff9dd;border:2px solid var(--deep);padding:7.5px 8.5px;box-shadow:0 2px 0 var(--mint)}
.theme-choice-text{min-width:0;overflow-wrap:anywhere}
.theme-swatch{
  --swatch-paper:#FFFCE8;--swatch-header:#E8C86C;
  flex:0 0 24px;width:24px;height:24px;border-radius:8px;
  background:linear-gradient(180deg,var(--swatch-header) 0 37%,var(--swatch-paper) 37% 100%);
  border:1px solid rgba(0,0,0,.16);box-shadow:inset 0 0 0 2px rgba(255,255,255,.35)
}
.swatch-bold_yellow{--swatch-paper:#FFF2B7;--swatch-header:#E3C269}
.swatch-mint{--swatch-paper:#FAFCFA;--swatch-header:#A6D9C0}
.swatch-pink{--swatch-paper:#FFFAFC;--swatch-header:#F0B6C6}
.swatch-paper{--swatch-paper:#FFFDF9;--swatch-header:#E3CEAA}
.swatch-charcoal{--swatch-paper:#2D3541;--swatch-header:#242B35}
.swatch-high_contrast{--swatch-paper:#F8F8F8;--swatch-header:#B8CDF5}
.swatch-system{--swatch-paper:#FFFFFF;--swatch-header:#DAE5EF}
.theme-current{
  margin-top:18px;padding:17px 17px 13px;background:#f6f5ee;
  border:1px solid var(--line);border-radius:16px;min-height:110px
}
.theme-current-label{
  display:inline-block;margin-bottom:4px;font-size:11px;font-weight:800;color:var(--deep);letter-spacing:.055em
}
.theme-current h4{margin:0 0 6px;font-size:17px;font-weight:800;letter-spacing:-.035em;line-height:1.35}
.theme-current p{margin:0;color:var(--muted);font-size:13px;line-height:1.55}
.theme-controls-footnote{margin:auto 0 0;padding-top:15px;color:var(--muted);font-size:12px;line-height:1.6}
.memo-page .cases{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
.memo-page .cases .case{
  display:flex;flex-direction:column;min-height:355px;padding:16px;
  border:1px solid var(--line);border-radius:19px;background:var(--surface)
}
.memo-page .cases .case:last-child:nth-child(odd){grid-column:auto}
.memo-page .case .paper{order:0;min-height:171px;border-radius:12px;clip-path:none;box-shadow:none}
.memo-page .paper-label{
  display:inline-flex;margin:0 0 9px;padding:3px 8px;border-radius:20px;
  border:1px solid rgba(75,66,30,.23);font-size:10.5px;font-weight:800;letter-spacing:.01em;line-height:1.5
}
.memo-page .case .paper h3{margin:0 0 8px;font-size:17px}
.memo-page .case .paper ul{padding-top:2px}
.memo-page .case[data-note-tone="mint"] .paper{
  color:#171B19;background:repeating-linear-gradient(to bottom,transparent 0 26px,rgba(41,79,52,.09) 26px 27px),#FAFCFA;
  border:1px solid #A0B7A9
}
.memo-page .case[data-note-tone="mint"] .paper h3,.memo-page .case[data-note-tone="mint"] .paper li{color:#171B19}
.memo-page .case[data-note-tone="pink"] .paper{
  color:#1D191B;background:repeating-linear-gradient(to bottom,transparent 0 26px,rgba(122,62,82,.08) 26px 27px),#FFFAFC;
  border:1px solid #C6A5B2
}
.memo-page .case[data-note-tone="pink"] .paper h3,.memo-page .case[data-note-tone="pink"] .paper li{color:#1D191B}
.memo-page .case[data-note-tone="yellow"] .paper{border:1px solid #D1C28B}
.memo-page .case-copy{flex:1}
.memo-page .case-copy h3{margin-top:4px}
.memo-page .case-copy .rel{margin-top:auto}
@media(max-width:1050px){
  .theme-showcase{grid-template-columns:1fr;gap:14px}
  .theme-controls{order:-1}
  .theme-options{grid-template-columns:repeat(4,minmax(0,1fr))}
  .theme-stage{min-height:355px}
  .theme-device{width:min(100%,460px)}
}
@media(min-width:761px) and (max-width:1050px){
  .memo-page .cases{grid-template-columns:1fr;gap:14px}
  .memo-page .cases .case{
    display:grid;grid-template-columns:minmax(260px,.9fr) minmax(0,1.1fr);
    gap:20px;min-height:210px;align-items:stretch
  }
  .memo-page .case .paper{height:100%;min-height:170px}
  .memo-page .case-copy{padding-block:6px}
}
@media(max-width:760px){
  .theme-showcase{display:flex;flex-direction:column;gap:12px}
  .theme-controls{order:0;padding:16px;border-radius:18px}
  .theme-controls>h3{font-size:17px}
  .theme-controls-hint{margin:0 0 12px;font-size:12px}
  .theme-options{
    display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x proximity;
    scroll-padding-inline:1px;padding:2px 2px 10px;scrollbar-width:thin;overscroll-behavior-x:contain
  }
  .theme-choice{flex:0 0 auto;max-width:158px;width:auto;min-height:47px;padding:7px 10px;scroll-snap-align:start}
  .theme-choice.is-active,.theme-choice[aria-pressed="true"]{padding:6.5px 9.5px}
  .theme-swatch{flex-basis:21px;width:21px;height:21px}
  .theme-current{margin-top:9px;padding:12px 14px;min-height:auto}
  .theme-current h4{font-size:15px;margin-bottom:3px}
  .theme-current p{font-size:12px}
  .theme-controls-footnote{margin:0;padding-top:9px;font-size:11px}
  .theme-stage{padding:18px 15px;min-height:350px;border-radius:18px}
  .theme-device{min-height:300px;max-width:420px}
  .memo-page .cases{grid-template-columns:1fr;gap:14px}
  .memo-page .cases .case{min-height:auto;padding:14px}
  .memo-page .case .paper{min-height:149px}
  .memo-page .case-copy h3{font-size:17px}
}
@media(max-width:380px){
  .theme-section .section-heading h2{font-size:22px}
  .theme-choice{font-size:12px}
  .theme-controls{padding:13px}
  .theme-stage{min-height:310px;padding:14px 12px}
  .theme-device{min-height:275px;border-radius:15px}
  .theme-device-bar{min-height:43px;padding:11px 14px}
  .theme-device-content{padding:10px 13px 14px}
  .theme-note{padding:11px}
  .theme-note-heading{font-size:16px!important}
  .theme-note ul{min-height:81px}
  .theme-note li{font-size:12px;padding:5px 0}
  .theme-secondary-note{padding:8px 10px}
}
@media(prefers-reduced-motion:reduce){.theme-choice{transition:none!important;transform:none!important}}


/* Mobile reading order: theme choices -> live color preview -> selected explanation.
   The desktop two-column layout is preserved. */
@media(max-width:760px){
  .theme-showcase{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
  .theme-controls{display:contents}
  .theme-controls>h3{grid-row:1;margin:0 0 2px;padding:0 2px;order:initial}
  .theme-controls-hint{grid-row:2;margin:0 0 10px;padding:0 2px;order:initial}
  .theme-options{grid-row:3;margin-bottom:10px;order:initial}
  .theme-stage{grid-row:4;order:initial;min-height:310px;margin:0}
  .theme-device{min-height:275px}
  .theme-current{grid-row:5;order:initial;margin-top:12px}
  .theme-controls-footnote{grid-row:6;order:initial;padding:9px 2px 0}
}
@media(max-width:380px){
  .theme-stage{min-height:290px}
  .theme-device{min-height:255px}
}
