/* Mobile is a reading and writing interface, with one primary action per area. */
.mobile-nav,.mobile-wall-filter,.mobile-wall-title,.composer-close{display:none}
.composer-extras{border-block:1px solid var(--line);margin:15px 0;padding:0 0 5px}
.composer-extras>summary{cursor:pointer;min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;font-weight:800;list-style:none}
.composer-extras>summary:after{content:'+';font-size:22px;font-weight:500}
.composer-extras[open]>summary:after{content:'−'}
.composer-extras>summary span{font-size:11px;font-weight:500;color:var(--muted);margin-left:auto}
.composer-extras[open]{padding-bottom:12px}.composer-extras>label{margin-top:10px}
.wall-composer .composer-controls>.button{width:100%;justify-content:center}
.emoji-picker input{width:1px!important;height:1px!important;padding:0!important;margin:0!important;overflow:hidden;clip-path:inset(50%)}
.wall-composer-heading{justify-content:space-between}.wall-composer textarea{scroll-margin-top:20px}
@media(max-width:700px){
  :root{--mobile-bar:70px}
  html{scroll-padding-bottom:calc(var(--mobile-bar) + env(safe-area-inset-bottom) + 18px)}
  body{padding-bottom:calc(var(--mobile-bar) + env(safe-area-inset-bottom));-webkit-text-size-adjust:100%}
  body.page-admin{padding-bottom:0}
  .shell{width:calc(100% - 32px);max-width:560px}
  .header{display:flex;justify-content:space-between;min-height:62px;height:62px;padding-block:7px;gap:8px;border-bottom:1px solid var(--line)}
  .header nav,.header>.button{display:none}
  .header .brand{font-size:29px;gap:5px;letter-spacing:-1.5px}
  .header .brand img{width:34px;height:34px}
  .mobile-nav{position:fixed;inset:auto 0 0;z-index:40;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:7px max(12px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:#fffdf9;border-top:1px solid #ddd5cc;box-shadow:0 -3px 20px #30221808}
  .mobile-nav>a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:54px;border-radius:12px;color:#625b5e;font-size:11px;font-weight:800;line-height:1.15}
  .mobile-nav .icon{width:22px;height:22px}.mobile-nav>a[aria-current=page]{background:#eee4f6;color:#493255}
  .mobile-nav .mobile-write{background:#c9ef7d;color:#191619}
  body:has(textarea:focus,input:not([type=radio]):not([type=checkbox]):focus,select:focus) .mobile-nav,body:has(dialog[open]) .mobile-nav{display:none}
  a,button,input,select,textarea{-webkit-tap-highlight-color:#bada8b55}
  input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px;min-height:48px;border-radius:10px}
  textarea{line-height:1.55;resize:vertical}
  .button{min-height:48px;font-size:14px;padding:12px 16px}
  :focus-visible{outline:3px solid #78539b;outline-offset:3px}
  .editorial-hero{padding-top:20px}.hero-kicker{font-size:11px;margin-bottom:12px}
  .editorial-hero h1{font-size:clamp(35px,9.5vw,50px);letter-spacing:-1.8px;line-height:1.03;margin-bottom:13px}
  .editorial-hero .hero-copy>p{font-size:14px;line-height:1.5}
  .hero-scene{height:180px;margin:0}.hero-scene-image{height:200px;bottom:-5px}.hero-handnote{display:none}
  .editorial-hero .hero-actions{margin-bottom:20px;gap:9px}
  .editorial-hero .hero-actions .button{font-size:13px;min-height:48px;padding:11px 10px}
  .wall-welcome{padding-top:20px;gap:15px}.wall-welcome .page-intro{padding:0}
  .wall-welcome .eyebrow,.desktop-wall-title{display:none}.mobile-wall-title{display:inline}
  .wall-welcome .page-intro h1{font-size:30px;letter-spacing:-1.1px;line-height:1.1;margin:0 0 8px}
  .wall-welcome .page-intro>p{font-size:14px;line-height:1.45;margin:0}
  .wall-composer{padding:16px;border-radius:14px;margin:0}
  .wall-composer-heading{margin-bottom:13px;gap:8px;align-items:flex-start}
  .wall-composer-heading h2{font-size:22px;letter-spacing:-.7px;line-height:1.2;margin-bottom:5px}
  .wall-composer-heading p{font-size:12px;line-height:1.45;margin:0}
  .wall-composer>label{font-size:13px;margin-bottom:7px}.wall-composer>label span{font-size:11px}
  .wall-composer textarea{min-height:88px;height:88px;padding:12px;font-size:16px;line-height:1.5}
  .wall-composer>.form-hint{font-size:10px;gap:8px;margin:5px 0 0;line-height:1.4}
  .mobile-enhanced .wall-composer:not(.is-writing) .composer-controls{display:none}
  .wall-composer .composer-controls{margin-top:15px}.wall-composer .composer-controls>label{font-size:13px}
  .wall-composer.is-writing .composer-close{display:flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;font-size:12px;color:#6f4c7b;padding:5px}
  .wall-composer.is-writing textarea{height:120px}
  .composer-extras>summary{font-size:13px;flex-wrap:wrap;gap:5px;line-height:1.3}
  .composer-extras>summary span{font-size:11px}.composer-extras>summary:after{margin-left:0}
  .composer-extras input,.composer-extras select{width:100%}
  .wall-composer .checkbox{align-items:flex-start;font-size:12px;line-height:1.55;gap:10px;margin-block:15px}
  .checkbox input{width:21px;height:21px;flex:0 0 21px;margin-top:2px}
  .wall-composer .composer-controls>.button{min-height:48px;font-size:15px}
  .wall-composer .composer-controls>.form-hint{font-size:11px;line-height:1.5}
  .inline-composer-status{font-size:13px;line-height:1.5;padding:12px;border-radius:10px;margin:12px 0 0;scroll-margin-block:20px}
  .wall-welcome+.wall-section{padding-top:24px}
  .wall-tools{display:none}
  .mobile-wall-filter{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) auto;gap:8px;align-items:end;margin-bottom:12px}
  .mobile-wall-filter>div{min-width:0}.mobile-wall-filter label{font-size:11px;font-weight:700;margin-bottom:5px}
  .mobile-wall-filter select{min-width:0;width:100%;min-height:48px;padding:9px 25px 9px 10px;font-size:16px;background-color:#fffdf9}
  .mobile-wall-filter .button{font-size:12px;min-height:46px;padding:10px 12px}
  .mobile-enhanced .mobile-wall-filter{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
  .mobile-enhanced .mobile-wall-filter>button{display:none}
  .section-top h2{font-size:27px;line-height:1.12;letter-spacing:-1px}
  .section-top .text-link{font-size:12px;min-height:44px;display:inline-flex;align-items:center;gap:7px}
  .section-top{margin-bottom:12px;gap:4px 12px}
  .page-wall .wall-section .section-top .text-link{display:none}
  .demo-note{font-size:11px;line-height:1.5;color:#71676d;margin-bottom:12px}
  .post-grid{grid-template-columns:1fr;gap:13px}
  .story-card{min-height:220px;padding:15px 17px 10px;gap:0;border-radius:13px}
  .story-card .post-body{font-size:17px;line-height:1.55;font-weight:600;margin-bottom:16px}
  .story-card.has-photo .post-body{padding-right:32px}.story-card.long-story .post-body{padding-right:0}
  .story-photo{opacity:.32;width:38%;max-width:180px;top:0}
  .story-card .story-category{font-size:12px;gap:7px}.category-symbol{width:20px;height:20px}
  .story-heading>.quiet{min-width:44px;min-height:44px}.story-heading{margin-bottom:6px}
  .story-card .nickname{font-size:12px;max-width:165px}.story-card .post-date{font-size:10px}
  .story-card .mood-tag{font-size:10px}.story-meta{flex-wrap:wrap;gap:5px 8px;justify-content:space-between;margin-top:auto}
  .story-card .post-bottom{gap:8px;justify-content:flex-end}.story-card .post-bottom button{min-width:48px;min-height:48px;font-size:12px}
  .story-card .post-bottom .share-card>span{font-size:12px}.story-card .post-bottom .like>span{font-size:12px}
  .home-compose>summary{min-height:58px;font-size:13px;padding:13px}.home-compose>summary strong{font-size:12px}
  .home-compose .wall-composer{margin:0 8px 8px}
  .editorial-quiz{padding:23px 18px;gap:18px}.editorial-quiz h2{font-size:30px}
  .editorial-quiz .quiz-promo-copy>p{font-size:15px}.editorial-quiz small{font-size:11px}
  .character-scene h3{font-size:12px}.character-scene>p{display:none}.character-art{height:112px}
  .blog-meta{font-size:12px}.blog-card>p{font-size:15px;line-height:1.55}.blog-read{font-size:14px;min-height:44px}
  .blog-card h3{font-size:23px}.editorial-cover{height:210px}
  .page-quiz>.header+main>.section{padding-top:22px}.page-quiz main>.section>div.center h1{font-size:34px;line-height:1.05;margin-bottom:12px}
  .page-quiz main>.section>div.center>p{font-size:14px;line-height:1.5;margin-bottom:0}
  .page-quiz:has(#quiz-form:not([hidden])) main>.section>.center{display:none}
  .page-quiz:has(#quiz-form:not([hidden])) .quiz-box{margin-top:0}
  .page-quiz:has(#quiz-form:not([hidden])) .header,.page-quiz:has(#quiz-form:not([hidden])) .footer{display:none}
  .page-quiz:has(#quiz-form:not([hidden])) main>.section{padding-block:16px}
  .quiz-box.panel{padding:18px;margin-top:20px}.quiz-box h2{font-size:25px;margin-bottom:10px}
  .quiz-intro-scenes{margin-bottom:18px}.quiz-intro-scenes .quiz-scene-image{height:92px}
  #quiz-start>p{font-size:14px;line-height:1.5}.quiz-top{font-size:12px;gap:10px}
  .question{margin:22px 0 12px}.question legend{font-size:23px;line-height:1.3;margin-bottom:18px}
  .answer{padding:14px 12px;min-height:64px;gap:12px;margin-bottom:10px}.answer span{font-size:16px;line-height:1.45}
  .answer .answer-letter{font-size:13px;width:30px;min-width:30px;height:30px}
  .quiz-actions{margin-top:15px}.quiz-actions button{min-height:46px}.quiz-top>span:last-child{font-size:11px}
  .result-page>h1{font-size:34px}.result-page .result-panel{padding:20px 17px}.result-panel>p{font-size:16px;line-height:1.65}
  .result-puf{width:240px;height:225px}.result-tagline{font-size:21px;line-height:1.35}
  .result-page .fine-print{font-size:12px;line-height:1.6}.result-panel>.button{width:100%;justify-content:center}
  .article-layout h1{font-size:36px;line-height:1.12}.article-lead{font-size:17px;line-height:1.6}.article-body p{font-size:17px;line-height:1.75}
  .article-layout>.editorial-cover{height:230px;margin-block:22px}.article-layout .byline,.breadcrumbs{font-size:11px;line-height:1.5}
  .community h3{font-size:16px}.community p{font-size:13px;line-height:1.5}.community .text-link{font-size:12px;min-height:44px}
  .footer-bottom nav{font-size:12px;gap:5px 16px}.footer-bottom nav a{min-height:44px;display:inline-flex;align-items:center}.footer p{font-size:12px}
  dialog{width:calc(100% - 24px);max-height:calc(100dvh - 28px);padding:18px;border-radius:17px;overscroll-behavior:contain}
  .dialog-close{min-height:44px;min-width:44px;font-size:26px}.dialog-actions{display:grid;grid-template-columns:1fr;gap:9px}
  .dialog-actions .button{width:100%;font-size:14px;min-height:48px}.dialog-actions #copy-link{order:3}
  dialog h2{font-size:26px;line-height:1.15;margin:15px 0 12px}dialog p{font-size:13px;line-height:1.5}
  #report-form>.button{width:100%;justify-content:center;margin-top:16px}
  #share-canvas{max-height:32dvh;width:auto;max-width:100%;display:block;margin:16px auto}
  .toast{bottom:calc(var(--mobile-bar) + env(safe-area-inset-bottom) + 12px);max-width:calc(100% - 32px);font-size:14px}
}
@media(max-width:370px){.mobile-nav>a{font-size:10px}.story-card{padding-inline:14px}.story-card .post-body{font-size:16px}.editorial-hero .hero-actions .button{font-size:12px}.hero-scene{height:165px}.hero-scene-image{height:185px}.character-art{height:95px}.quiz-top>span:last-child{max-width:150px}.composer-extras>summary span{display:none}}
