:root{
  --bg:#f7f4ec;
  --surface:#fffdf8;
  --surface-2:#f1ebe1;
  --ink:#44372f;
  --muted:#776d62;
  --line:#ded5c8;
  --accent:#56664d;
  --accent-soft:#edf1e7;
  --warm:#eee2d2;
  --hand:'NanumSquareRound','Apple SD Gothic Neo','Malgun Gothic',sans-serif;
  --text:'NanumSquareRound','Apple SD Gothic Neo','Malgun Gothic','Noto Sans CJK KR',sans-serif;
  --safe-bottom:env(safe-area-inset-bottom,0px);
  --safe-top:env(safe-area-inset-top,0px);
  --dock-h:86px;
}
html.fonts-ready{
  --hand:'Gaegu','NanumSquareRound','Apple SD Gothic Neo','Malgun Gothic',sans-serif;
  --text:'Gowun Dodum','NanumSquareRound','Apple SD Gothic Neo','Malgun Gothic',sans-serif;
}
*{box-sizing:border-box}
html{min-height:100%;background:var(--bg);-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-bottom:calc(var(--dock-h) + 24px)}
body{margin:0;min-width:0;min-height:100dvh;background:var(--bg);color:var(--ink);font-family:var(--text);font-size:16px;line-height:1.65;word-break:keep-all;overflow-wrap:break-word}
button,a,textarea,input{font:inherit;color:inherit}
button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button{border:0;background:none;padding:0;cursor:pointer}
button:disabled{cursor:default;opacity:.45}
a{text-decoration:none}
h1,h2,h3,p,figure{margin:0}
h1,h2,h3{font-family:var(--hand);line-height:1.25}
img{display:block;max-width:100%;height:auto;object-fit:contain}
button:focus-visible,a:focus-visible,textarea:focus-visible,input:focus-visible{outline:3px solid #728268;outline-offset:3px}
.hidden,[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* App frame */
.shell{width:100%;max-width:480px;margin-inline:auto;padding-inline:16px;min-width:0}
.site-header{position:sticky;top:0;z-index:30;height:calc(56px + var(--safe-top));padding-top:var(--safe-top);display:flex;align-items:center;justify-content:center;background:rgba(247,244,236,.96);backdrop-filter:blur(12px);border-bottom:1px solid rgba(222,213,200,.82)}
.brand{font-family:var(--text);font-size:14px;line-height:1;font-weight:800;letter-spacing:.08em;color:#473b33;white-space:nowrap}
main{min-height:calc(100dvh - 56px - var(--safe-top));outline:none}

/* Controls */
.btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:54px;border:1px solid var(--line);border-radius:15px;padding:12px 16px;font:700 20px/1.1 var(--hand);text-align:center;background:var(--surface);color:var(--ink)}
.btn.primary{background:var(--ink);border-color:var(--ink);color:#fffdf8}
.btn.accent{background:var(--accent);border-color:var(--accent);color:#fffdf8}
.btn.secondary{background:var(--surface);border-color:#cfc4b5;color:var(--ink)}
.btn:active:not(:disabled){filter:brightness(.98)}
.text-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 4px;color:var(--muted);font-size:14px;line-height:1.3}
.icon-button{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;font-size:27px;line-height:1;color:var(--ink)}
.icon-button:active{background:#ece6dc}
.screen{padding:8px 0 calc(var(--dock-h) + 24px + var(--safe-bottom))}

/* Artwork must never be clipped */
.art-space{display:flex;align-items:center;justify-content:center;min-width:0;overflow:visible;padding:6px}
.art-space img{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;object-position:center;clip-path:none!important;mask:none!important;border-radius:0!important;transform:none!important;flex-shrink:1}

/* Home */
.home{min-height:calc(100dvh - 56px - var(--safe-top));padding:18px 0 calc(var(--dock-h) + 24px + var(--safe-bottom));display:flex;flex-direction:column;align-items:center;text-align:center}
.home h1{font-size:42px;font-weight:700;letter-spacing:-.03em;margin-top:6px}
.home .test-count{margin-top:7px;font-size:13px;color:var(--muted)}
.home-art{width:100%;height:min(42dvh,340px);min-height:250px;margin:20px 0 8px;padding:12px 12px 8px}
.home-art img{max-height:100%;max-width:92%}
.home-actions{margin-top:auto;width:100%}
.home-actions .text-button{margin-top:3px}
.home-tail{height:44px}

/* Quiz */
.quiz{padding-top:0}
.quiz-appbar{position:sticky;top:calc(56px + var(--safe-top));z-index:20;margin:0 -16px 2px;padding:7px 16px 8px;display:grid;grid-template-columns:44px minmax(0,1fr) 54px;gap:10px;align-items:center;background:rgba(247,244,236,.97);backdrop-filter:blur(12px)}
.track{height:5px;background:#e4ded4;border-radius:999px;overflow:hidden}
.track>span{display:block;height:100%;background:#aa8f71;border-radius:inherit;transition:none}
.count{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.count b{color:var(--ink);font-weight:700}
.question-title{display:flex;align-items:center;justify-content:center;text-align:center;min-height:96px;padding:14px 2px 12px;font-size:28px;font-weight:700;line-height:1.35;letter-spacing:-.02em}
.choices{display:grid;gap:12px}
.choice{position:relative;width:100%;min-height:154px;display:grid;grid-template-columns:120px minmax(0,1fr) 24px;gap:10px;align-items:center;padding:14px 12px 14px 10px;border:1px solid #ddd2c3;border-radius:18px;background:var(--surface);text-align:left;overflow:visible;box-shadow:0 2px 0 rgba(71,55,44,.02)}
.choice:nth-child(2){background:#fbf7f0}
.choice .art-space{height:120px;width:120px;padding:8px}
.choice .art-space img{max-height:108px;max-width:108px}
.choice-label{display:block;min-width:0;font:700 20px/1.45 var(--hand);color:var(--ink);white-space:pre-wrap;overflow-wrap:break-word}
.choice-check{display:grid;place-items:center;width:20px;height:20px;border:1.5px solid #c8bbaa;border-radius:50%;font:700 12px/1 sans-serif;color:transparent;background:transparent;justify-self:end;transition:none}
.choice.selected{border-color:var(--accent);background:var(--accent-soft)}
.choice.selected .choice-check{background:var(--accent);border-color:var(--accent);color:white}

/* Bottom action dock */
.dock{position:fixed;inset:auto 0 0;z-index:40;background:rgba(247,244,236,.97);backdrop-filter:blur(12px);border-top:1px solid var(--line);padding:10px max(16px,env(safe-area-inset-right,0px)) calc(10px + var(--safe-bottom)) max(16px,env(safe-area-inset-left,0px))}
.dock-inner{width:100%;max-width:448px;margin:auto;display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.result-dock .dock-inner{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
.dock .btn{min-height:54px}

/* Result */
.result{max-width:448px;margin:auto}
.topline{min-height:50px;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;margin-bottom:4px}
.topline .text-button{font-size:13px;color:var(--muted);white-space:nowrap}
.topline .left{justify-self:start}
.topline .right{justify-self:end}
.result-head{text-align:center;padding-top:4px}
.type-label{display:inline-block;font:700 22px/1.2 var(--hand);color:#806b56;letter-spacing:.09em;margin-bottom:4px}
.result-title{font-size:30px;font-weight:700;line-height:1.3;max-width:390px;margin:auto;overflow-wrap:anywhere}
.result-art{height:270px;max-width:340px;margin:8px auto 10px;padding:12px;overflow:visible}
.result-art img{width:auto;height:auto;max-width:100%;max-height:100%}
.analysis{font:400 16px/1.85 var(--text);color:#473a32;white-space:pre-wrap;padding:18px 18px 20px;background:var(--surface);border:1px solid #e1d7c8;border-radius:16px;margin:4px 0 16px}
.result-extras{margin-top:6px;padding-top:4px}
.ig-link{display:flex;align-items:center;gap:13px;min-height:60px;padding:8px 4px;border-top:1px solid var(--line)}
.ig-image{display:flex;align-items:center;justify-content:center;width:42px;height:42px;flex:0 0 42px}
.ig-image img{width:24px;height:24px;max-width:none;max-height:none}
.ig-text strong{display:block;font-size:14px;font-weight:700}.ig-text small{display:block;font-size:12px;color:var(--muted);margin-top:2px}
.extra-actions{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;padding:2px 0 10px}
.invite{padding:13px 15px;background:#eef2e8;border-radius:14px;margin-bottom:14px;font-size:14px;text-align:center}
.comparison{padding:16px 0 4px;border-top:1px solid var(--line);margin-top:5px}
.comparison h2{text-align:center;font-size:24px}
.compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:12px;text-align:center}
.compare-grid .art-space{height:92px;padding:8px}.compare-grid strong{display:block;font-size:16px}.compare-grid p{font-size:12px;line-height:1.6}.compare-grid small{font-size:12px;color:var(--muted)}

/* Gallery */
.gallery h1{font-size:30px;margin:0 0 3px}.gallery-meta{font-size:13px;color:var(--muted);margin-bottom:12px}
.gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
.tile{text-align:center;min-width:0;padding:14px 4px 16px;border-bottom:1px solid var(--line);background:transparent;overflow:visible}
.tile .art-space{height:126px;margin-bottom:4px;padding:8px}.tile img{max-height:110px;max-width:100%}.tile .type{display:block;font:700 18px/1.3 var(--hand);letter-spacing:.05em;color:#856e57}.tile p{font:600 13px/1.5 var(--text);min-height:40px;margin-top:3px;overflow-wrap:anywhere}
.gallery .extra-actions{margin:18px 0}

/* Dialog as bottom sheet */
.dialog{width:min(100%,480px);max-width:100%;padding:0;border:1px solid #ddd2c2;border-radius:24px 24px 0 0;background:var(--surface);color:var(--ink);margin:auto auto 0;max-height:92dvh;overflow:visible}
.dialog::backdrop{background:rgba(38,30,23,.38)}
.dialog-box{display:flex;flex-direction:column;max-height:92dvh;padding-bottom:var(--safe-bottom)}
.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:62px;padding:10px 18px;border-bottom:1px solid var(--line);flex-shrink:0}
.dialog-head h2{font-size:25px}.dialog-head button{min-width:44px;min-height:44px;color:var(--muted);font-size:14px}
.dialog-body{overflow:auto;overscroll-behavior:contain;padding:16px 18px 20px;min-height:0}
.dialog p{font-size:14px;line-height:1.8}.dialog textarea{width:100%;min-height:130px;padding:12px;border:1px solid var(--line);border-radius:12px;background:white;font-size:15px}
.dialog-actions{display:grid;gap:10px}.dialog-duo{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.share-summary{display:grid;grid-template-columns:92px minmax(0,1fr);gap:14px;align-items:center;padding-bottom:14px}.share-summary figure{height:96px;padding:8px}.share-summary img{max-width:88px;max-height:88px}.share-summary strong{display:block;font:700 34px/1.1 var(--hand)}.share-summary p{font-size:14px;line-height:1.5;margin-top:4px}
.share-help{margin-bottom:12px;color:var(--muted)}
.card-dialog{height:min(88dvh,700px)}.card-dialog .dialog-box{height:100%}.format-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}.format-tabs button{min-height:44px;border:1px solid var(--line);border-radius:12px;font:700 17px/1.2 var(--hand)}.format-tabs button.active{background:var(--warm);border-color:#c9b697}
.card-stage{height:380px;position:relative;display:flex;align-items:center;justify-content:center;background:#f2ece2;border-radius:12px;overflow:hidden}.card-stage img{position:absolute;inset:10px;width:calc(100% - 20px);height:calc(100% - 20px);object-fit:contain}.card-stage .loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#f2ece2}.card-stage[aria-busy=false] .loading{display:none}.card-note{text-align:center;color:var(--muted);font-size:11px!important;margin-top:8px}
.toast{position:fixed;left:50%;bottom:calc(var(--dock-h) + 12px + var(--safe-bottom));transform:translateX(-50%);z-index:100;padding:10px 16px;border-radius:999px;background:#43372f;color:white;font-size:13px;max-width:calc(100% - 32px);text-align:center;pointer-events:none}
.error-note{padding:20px;text-align:center}

/* Desktop: still presented as a mobile product, not a stretched webpage */
@media(min-width:700px){
  body{background:#eee9df}
  .site-header,.shell{max-width:480px}
  .site-header{box-shadow:0 0 0 1px rgba(67,55,47,.03)}
  main{background:var(--bg);min-height:calc(100dvh - 56px)}
}
@media(max-width:380px){
  .shell{padding-inline:14px}
  .home h1{font-size:38px}.home-art{height:min(40dvh,300px)}
  .question-title{font-size:25px;min-height:88px}
  .choice{grid-template-columns:104px minmax(0,1fr) 20px;gap:8px;min-height:146px;padding:12px 10px 12px 8px}
  .choice .art-space{width:104px;height:108px;padding:7px}.choice .art-space img{max-width:94px;max-height:94px}
  .choice-label{font-size:18px}
  .result-title{font-size:27px}.result-art{height:250px}
}
@media(max-height:690px) and (max-width:699px){
  .home{padding-top:8px}.home h1{font-size:36px}.home-art{height:245px;min-height:220px;margin:10px 0 2px}.home-art img{max-width:270px}
  .question-title{min-height:80px;padding-top:6px;padding-bottom:6px}.choice{min-height:136px}.choice .art-space{height:102px}.choice .art-space img{max-height:92px}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
body[data-view="quiz"] .site-header,body[data-view="result"] .site-header,body[data-view="gallery"] .site-header{display:none}
body[data-view="quiz"] main,body[data-view="result"] main,body[data-view="gallery"] main{min-height:100dvh}
body[data-view="quiz"] .quiz-appbar{top:var(--safe-top)}
.appbar{position:sticky;top:var(--safe-top);z-index:25;margin:0 -16px 4px;padding:7px 16px;min-height:56px;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;background:rgba(247,244,236,.97);backdrop-filter:blur(12px);border-bottom:1px solid rgba(222,213,200,.75)}
.appbar-title{text-align:center;font:700 18px/1.2 var(--hand);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.appbar-spacer{width:44px;height:44px}


/* v16 — balanced answer cards */
.choice,.choice:nth-child(2){
  min-height:164px;
  grid-template-columns:128px minmax(0,1fr) 26px;
  gap:12px;
  padding:15px 13px 15px 11px;
  background:var(--surface);
  border-color:#ddd2c3;
  box-shadow:0 2px 8px rgba(68,55,47,.035);
}
.choice .art-space{
  width:128px;
  height:128px;
  padding:8px;
  border-radius:14px;
  background:transparent;
}
.choice .art-space img{max-width:112px;max-height:112px}
.choice-label{
  font-size:21px;
  line-height:1.5;
  text-align:center;
  justify-self:stretch;
  align-self:center;
}
.choice-check{
  width:22px;
  height:22px;
  border-color:#c8bbaa;
  background:#fffdf8;
  color:transparent;
  box-shadow:none;
}
.choice.selected{
  background:#f0f3e8;
  border-color:#718063;
  box-shadow:0 0 0 2px rgba(86,102,77,.14),0 5px 16px rgba(68,78,58,.08);
}
.choice.selected .art-space{background:#f7f9f2}
.choice.selected .choice-label{color:#34402f}
.choice.selected .choice-check{
  background:#617257;
  border-color:#617257;
  color:#fff;
  box-shadow:0 0 0 3px rgba(97,114,87,.10);
}
@media(max-width:380px){
  .choice,.choice:nth-child(2){
    grid-template-columns:112px minmax(0,1fr) 22px;
    gap:9px;
    min-height:154px;
    padding:13px 10px 13px 9px;
  }
  .choice .art-space{width:112px;height:114px;padding:7px}
  .choice .art-space img{max-width:100px;max-height:100px}
  .choice-label{font-size:19px;line-height:1.5}
  .choice-check{width:20px;height:20px}
}
@media(max-height:690px) and (max-width:699px){
  .choice,.choice:nth-child(2){min-height:150px}
  .choice .art-space{height:110px}
  .choice .art-space img{max-height:98px}
}


/* v17 — mobile app pass */
:root{
  --app-bg:#f7f4ec;
  --card:#fffdf8;
  --card-border:#dfd6c8;
  --selected:#eef2e8;
  --selected-border:#65765a;
  --nav-h:58px;
}
html,body{overscroll-behavior-y:none}
body{background:var(--app-bg)}
.shell{max-width:480px;padding-inline:18px}
.site-header{height:calc(var(--nav-h) + var(--safe-top));padding-top:var(--safe-top);border-bottom:0;background:rgba(247,244,236,.96)}
.brand{font-size:13px;letter-spacing:.12em}
body[data-view="quiz"] .site-header,
body[data-view="result"] .site-header,
body[data-view="gallery"] .site-header{display:none}
body[data-view="quiz"] main,
body[data-view="result"] main,
body[data-view="gallery"] main{min-height:100dvh}
.screen{padding-top:0}

/* Home behaves like a single app launch screen. */
body[data-view="home"] main{min-height:calc(100dvh - var(--nav-h) - var(--safe-top))}
.home{min-height:calc(100dvh - var(--nav-h) - var(--safe-top));padding:14px 0 calc(var(--dock-h) + 20px + var(--safe-bottom));justify-content:flex-start}
.home h1{font-size:38px;line-height:1.14;margin-top:8px}
.home .test-count{font-size:12px;margin-top:6px}
.home-art{height:min(43dvh,330px);min-height:230px;margin:12px 0 0;padding:16px 14px}
.home-art img{max-width:92%;max-height:100%}
.home-actions{margin-top:auto}
.home-dock .dock-inner{grid-template-columns:1fr}

/* Native-feeling quiz appbar. */
.quiz-appbar{top:0;margin:0 -18px;padding:calc(8px + var(--safe-top)) 18px 10px;grid-template-columns:44px minmax(0,1fr) 48px;background:rgba(247,244,236,.97);border-bottom:0}
.icon-button{width:42px;height:42px;font-size:26px}
.track{height:4px;background:#e5ded3}
.track>span{background:#8f795f}
.count{font-size:12px}
.question-title{min-height:86px;padding:14px 4px 14px;font-size:25px;line-height:1.38}
.choices{gap:12px}
.choice,.choice:nth-child(2){background:var(--card);border:1px solid var(--card-border);border-radius:20px;box-shadow:none;min-height:164px;padding:15px 14px;grid-template-columns:118px minmax(0,1fr) 22px;gap:10px}
.choice:active{background:#faf6ef}
.choice.selected{background:var(--selected);border:2px solid var(--selected-border);padding:14px 13px}
.choice .art-space{width:118px;height:118px;padding:10px}
.choice .art-space img{max-width:100px;max-height:100px}
.choice-label{font-size:19px;line-height:1.5;text-align:center;justify-self:stretch}
.choice-check{width:20px;height:20px;border-width:1.5px}
.choice.selected .choice-check{box-shadow:0 0 0 3px rgba(101,118,90,.10)}

/* Bottom dock feels like a native bottom action area, not a web footer. */
.dock{background:rgba(247,244,236,.96);border-top:0;box-shadow:0 -10px 30px rgba(68,55,47,.06);padding:10px max(18px,env(safe-area-inset-right,0px)) calc(10px + var(--safe-bottom)) max(18px,env(safe-area-inset-left,0px))}
.dock-inner{max-width:444px}
.dock .btn{min-height:56px;border-radius:16px}
.btn.primary,.btn.accent{box-shadow:none}

/* Result: reduce web-card feel and use a simple vertical app hierarchy. */
.result{padding-top:0}
.appbar{position:sticky;top:0;z-index:25;height:calc(var(--nav-h) + var(--safe-top));margin:0 -18px;padding:var(--safe-top) 18px 0;display:grid;grid-template-columns:44px minmax(0,1fr) 64px;align-items:center;background:rgba(247,244,236,.97);backdrop-filter:blur(12px)}
.appbar-title{text-align:center;font-size:15px;font-weight:700}
.appbar-spacer{display:block;width:44px;height:44px;justify-self:end}
.result-head{padding:16px 0 0}
.type-label{font-size:18px;letter-spacing:.08em;margin-bottom:4px;color:#806b56}
.result-title{font-size:29px;line-height:1.28}
.result-art{height:286px;max-width:360px;margin:8px auto 4px;padding:18px;overflow:visible}
.result-art img{max-width:100%;max-height:100%}
.analysis{margin:0 0 12px;padding:18px 4px 20px;background:transparent;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;font-size:16px;line-height:1.85;color:#493c34}
.result-extras{margin:0;padding:0}
.ig-link{min-height:58px;padding:7px 2px;border-top:0;border-bottom:1px solid var(--line)}
.ig-image{width:40px;height:40px;flex-basis:40px}
.ig-text strong{font-size:14px}.ig-text small{font-size:11px}
.extra-actions{display:none!important}
.result-dock .dock-inner{grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr)}
.invite{border-radius:14px;margin:10px 0 4px}

/* Gallery remains an app sub-screen and is only reachable after a result. */
.gallery{padding-top:0}
.gallery .appbar{margin-bottom:6px}
.gallery-meta{padding:5px 2px 8px;margin:0;font-size:12px}
.gallery-grid{gap:0 10px}
.tile{min-height:208px;padding:12px 3px 14px}
.tile .art-space{height:118px;padding:10px}
.tile img{max-height:98px}
.tile .type{font-size:17px}
.tile p{font-size:12px;min-height:36px}

/* Bottom sheets use mobile spacing and retain scroll position. */
.dialog{width:100%;border-radius:24px 24px 0 0;border-left:0;border-right:0;border-bottom:0}
.dialog-head{min-height:58px;padding:9px 18px}
.dialog-body{padding:4px 18px 18px}
.dialog-actions .btn{border-radius:15px}

@media(max-width:390px){
  .shell{padding-inline:14px}
  .quiz-appbar,.appbar{margin-left:-14px;margin-right:-14px;padding-left:14px;padding-right:14px}
  .question-title{font-size:23px;min-height:80px}
  .choice,.choice:nth-child(2){grid-template-columns:104px minmax(0,1fr) 20px;min-height:154px;padding:13px 12px;gap:8px}
  .choice.selected{padding:12px 11px}
  .choice .art-space{width:104px;height:104px;padding:8px}
  .choice .art-space img{max-width:90px;max-height:90px}
  .choice-label{font-size:18px;line-height:1.48}
  .result-title{font-size:27px}
  .result-art{height:260px;padding:16px}
}
@media(max-width:340px){
  .choice,.choice:nth-child(2){grid-template-columns:88px minmax(0,1fr) 18px;min-height:148px;padding:12px 10px}
  .choice.selected{padding:11px 9px}
  .choice .art-space{width:88px;height:94px;padding:6px}
  .choice .art-space img{max-width:78px;max-height:82px}
  .choice-label{font-size:17px}
  .question-title{font-size:21px}
  .result-art{height:240px}
}


/* v18: comfortable bottom-sheet spacing */
.dialog-head{min-height:64px;padding:12px 20px 10px}
.dialog-head h2{line-height:1.25}
.dialog-head button{padding:8px 4px}
.dialog-body{padding:12px 20px calc(24px + var(--safe-bottom));overflow:auto;overscroll-behavior:contain}
.dialog-actions{display:grid;gap:12px;margin-top:14px}
.dialog-actions>.btn{min-height:54px;padding:12px 16px}
.dialog-duo{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
.dialog-duo>.btn{min-height:54px;padding:12px 12px}
.share-summary{padding:4px 0 18px;margin-bottom:4px}
.share-help{margin:0 0 16px}
.share-instagram{margin-top:18px;padding-top:14px}
.format-tabs{gap:10px;margin:4px 0 16px}
.format-tabs button{min-height:46px;padding:10px 12px}
.card-stage{margin-bottom:2px}
.card-note{margin:12px 0 0!important;line-height:1.6}
.card-dialog .dialog-body{padding-top:10px}
.card-dialog .dialog-duo{margin-top:16px}
.dialog textarea{margin-top:6px}
@media(max-width:390px){
  .dialog-head{padding:10px 18px 8px}
  .dialog-body{padding:10px 18px calc(22px + var(--safe-bottom))}
  .dialog-actions{gap:11px;margin-top:12px}
  .dialog-duo{gap:10px;margin-top:14px}
  .format-tabs{margin-bottom:14px}
}
@media(max-height:650px){
  .dialog-head{min-height:56px;padding-top:8px;padding-bottom:6px}
  .dialog-body{padding-top:8px;padding-bottom:calc(16px + var(--safe-bottom))}
  .format-tabs{margin-bottom:10px}
  .dialog-duo{margin-top:10px}
  .card-note{margin-top:8px!important}
}
