@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;600;700&display=swap');
.mobile-brand{display:none}
.card-actions{display:flex;align-items:center;gap:5px}.like{font-size:12px;padding:5px}.selected{color:var(--accent)!important}.danger{color:#a13e32!important}.detail-actions{flex-wrap:wrap}.detail-story>img{width:100%;max-height:400px;object-fit:cover;border-radius:9px}.comment-panel{margin-top:27px;border-top:1px solid var(--line);padding-top:15px}.comment-panel h3{font-size:16px}.comment-list{max-height:350px;overflow:auto}.comment{padding:14px 0;border-bottom:1px solid var(--line)}.comment-meta{display:flex;justify-content:space-between;gap:12px;font-size:11px;align-items:center}.comment-meta time{color:var(--muted);font-size:10px}.comment p{font-size:13px!important;white-space:pre-wrap;overflow-wrap:anywhere;margin:9px 0;line-height:1.7}.remove-comment{font-size:11px;padding:5px 0}.comment-panel textarea{width:100%;border:1px solid var(--line);border-radius:7px;background:#fff;padding:12px;resize:vertical;font:inherit}.comment-panel form{gap:10px}.profile-summary{background:#e9eee6;border-radius:12px;padding:24px;margin-bottom:25px}.profile-summary h2{overflow-wrap:anywhere}.profile-stats{font-size:12px;color:var(--green);margin:14px 0 20px}.profile-form{display:flex;align-items:flex-end;gap:12px;margin:0}.profile-form label{flex:1;font-size:12px}.profile-form input{min-width:0}.profile-form button{white-space:nowrap}.mobile-nav button.active{color:var(--green);font-weight:bold}@media(max-width:760px){.card-meta{align-items:flex-start;gap:5px;flex-wrap:wrap}.profile-summary{padding:18px}.profile-form{flex-direction:column;align-items:stretch}.profile-form label{width:100%}.comment-meta{align-items:flex-start;flex-wrap:wrap}.detail-actions button{padding:9px 12px}}
.google-btn{display:block;width:100%;padding:12px 18px;border:1px solid #c4c7c5;background:#fff;border-radius:7px;margin-top:22px;font-weight:500;font-size:14px}.google-btn:disabled{cursor:default;opacity:.65}
.account-btn{border:1px solid var(--line);border-radius:6px;padding:9px 12px;font-size:12px;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sync-banner{display:flex;gap:12px;justify-content:space-between;align-items:center;margin:-8px 0 18px;font-size:11px;color:var(--green);line-height:1.7}.sync-banner button{white-space:nowrap;text-decoration:underline}.auth-tabs{display:flex;gap:10px;margin-top:20px}.auth-tabs button{padding:9px 15px;border-radius:6px;background:#e9eee6}.auth-tabs button.active{background:var(--green);color:white}#auth-error{color:#a63426;font-size:12px;line-height:1.7}#logout{display:block;margin-top:20px}button:disabled{opacity:.5;cursor:wait}@media(max-width:760px){.account-btn{max-width:95px;padding:8px;font-size:11px}.header-actions select{padding:6px}.sync-banner{font-size:10px}}
:root{--paper:#fcf9f4;--ink:#252a26;--muted:#7d8179;--green:#2b5144;--line:#e6e5dc;--accent:#ed6a45}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans','Noto Sans JP',sans-serif}button,input,textarea,select{font:inherit}button,a,select{cursor:pointer}button{color:inherit}button{border:0;background:none}button:focus-visible,a:focus-visible{outline:3px solid var(--accent);outline-offset:4px}a{text-decoration:none;color:inherit}.sidebar{position:fixed;inset:0 auto 0 0;width:210px;border-right:1px solid var(--line);padding:40px 26px;display:flex;flex-direction:column}.brand{font-size:42px;letter-spacing:-3px;font-weight:700}.brand span{font-weight:400}.brand i{font-size:11px;color:var(--accent);vertical-align:top;letter-spacing:0;margin-left:4px}.brand-caption{font-size:9px;letter-spacing:2px;margin-top:7px}.sidebar nav{margin-top:65px;display:grid;gap:15px}.nav-item{display:flex;align-items:center;gap:15px;padding:15px 19px;border-radius:9px;text-align:left;color:var(--muted)}.nav-item b{font-size:14px;font-weight:500}.nav-item span{font-size:23px}.nav-item.active{background:#e9eee6;color:var(--green)}.sidebar-bottom{margin-top:auto}.mini-mark{display:grid;place-items:center;border:1px solid var(--green);width:34px;height:34px;color:var(--green)}.sidebar-bottom p{font-size:12px;line-height:1.9;color:var(--muted);max-width:130px}.sidebar-bottom small{font-size:8px;letter-spacing:1px;color:var(--muted)}main{margin-left:210px;padding:0 48px;max-width:1650px}header{height:100px;display:flex;align-items:center;justify-content:space-between}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--muted)}.header-actions{display:flex;align-items:center;gap:20px}select{border:0;background:transparent;color:var(--ink);padding:8px}.publish-btn,.submit{background:var(--green);color:white;border-radius:6px;padding:12px 20px;font-size:13px}.hero{display:grid;grid-template-columns:1fr 1.05fr;background:#eeeede;border-radius:12px;overflow:hidden;min-height:345px}.hero-copy{padding:37px 32px;display:flex;flex-direction:column}.edition{font-size:9px;letter-spacing:1.7px;color:var(--green)}.edition span{display:block;margin-top:8px;color:var(--muted);font-size:8px}.hero h1{font-size:clamp(30px,3.4vw,53px);font-weight:600;letter-spacing:-1.6px;line-height:1.3;margin:26px 0 15px;white-space:pre-line}.hero-copy>p{font-size:13px;line-height:1.9;color:#72786b;max-width:330px;margin:0}.hero-foot{margin-top:auto;padding-top:25px;display:flex;align-items:center;gap:8px;font-size:10px;color:var(--green)}.dot{width:6px;height:6px;background:var(--green);border-radius:100%}.hero-photo{position:relative;min-height:345px}.hero-photo img{width:100%;height:100%;position:absolute;object-fit:cover}.hero-photo:after{content:'';position:absolute;inset:60% 0 0;background:linear-gradient(transparent,#0007)}.photo-caption{position:absolute;bottom:23px;left:24px;right:24px;color:white;z-index:1;display:flex;justify-content:space-between;gap:10px;font-size:10px;letter-spacing:2px}.photo-caption b{font-weight:400;font-size:8px}.discovery{padding-top:40px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}h2{font-size:24px;font-weight:600;letter-spacing:-.6px;margin:9px 0 0}.search{display:flex;align-items:center;border:1px solid var(--line);border-radius:7px;padding:9px 12px;gap:8px;background:#fff8}.search span{font-size:24px;color:var(--muted)}.search input{border:0;background:none;outline:none;width:210px;font-size:12px}.filters{display:flex;gap:10px;overflow:auto;margin:26px 0 10px;padding-bottom:5px}.filter{white-space:nowrap;padding:9px 19px;border:1px solid var(--line);border-radius:30px;font-size:12px}.filter.active{background:var(--ink);border-color:var(--ink);color:white}.demo-label{font-size:10px;color:var(--muted);margin:12px 0 20px}.feed{columns:3;column-gap:20px}.card{display:inline-block;width:100%;margin-bottom:25px;break-inside:avoid;cursor:pointer}.card-cover{position:relative;border-radius:9px;overflow:hidden;background:#e9e7df}.card-cover img{display:block;width:100%;object-fit:cover;transition:transform .4s}.card:nth-child(3n+1) .card-cover img{aspect-ratio:4/5}.card:nth-child(3n+2) .card-cover img{aspect-ratio:1.1}.card:nth-child(3n) .card-cover img{aspect-ratio:4/4.5}.card:hover img{transform:scale(1.035)}.location-tag{position:absolute;bottom:12px;left:12px;font-size:10px;color:white;background:#252a2680;backdrop-filter:blur(8px);padding:6px 10px;border-radius:4px}.card h3{font-size:14px;line-height:1.7;margin:11px 2px 8px;font-weight:600}.card-meta{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted)}.author{display:flex;align-items:center;gap:6px}.avatar{background:#e2e7dc;border-radius:100%;width:22px;height:22px;display:grid;place-items:center;color:var(--green);font-size:9px}.save{padding:5px;font-size:13px}.save.saved{color:var(--accent)}footer{border-top:1px solid var(--line);padding:28px 0;display:flex;justify-content:space-between;font-size:9px;letter-spacing:1px;color:var(--muted)}.empty{padding:65px 0;text-align:center;color:var(--muted)}.mobile-nav{display:none}dialog{border:0;background:var(--paper);color:var(--ink);border-radius:14px;max-width:680px;width:calc(100% - 32px);padding:32px;max-height:90vh}dialog::backdrop{background:#17251f99;backdrop-filter:blur(4px)}.close{position:absolute;right:12px;top:8px;z-index:2;background:var(--paper);border-radius:50%;font-size:27px;width:36px;height:36px}#detail-content>img{width:100%;max-height:400px;object-fit:cover;border-radius:9px}#detail-content h2{line-height:1.6}#detail-content p{white-space:pre-wrap;line-height:1.9;font-size:14px}#detail-content .detail-meta{font-size:12px;color:var(--muted);margin-top:18px}.detail-actions{display:flex;gap:12px;margin-top:20px}.detail-actions button{border:1px solid var(--line);padding:10px 18px;border-radius:7px}.composer-note{font-size:12px;color:var(--muted);line-height:1.8}form{display:grid;gap:17px;margin-top:24px}form label{display:grid;gap:8px;font-size:13px}form input,form textarea,form select{width:100%;background:#fff;border:1px solid var(--line);border-radius:6px;padding:10px}#toast{position:fixed;bottom:85px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:12px 22px;border-radius:9px;font-size:13px;z-index:10;opacity:0;pointer-events:none;transition:opacity .2s}#toast.visible{opacity:1}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}
@media(min-width:1500px){.feed{columns:4}}@media(max-width:1100px){.sidebar{width:170px;padding:32px 20px}main{margin-left:170px;padding:0 28px}.hero-copy{padding:28px 25px}.hero h1{font-size:35px}.feed{column-gap:15px}.photo-caption b{display:none}}@media(max-width:760px){.sidebar{display:none}main{margin:0;padding:0 18px}header{height:75px}header>.eyebrow{font-size:8px;letter-spacing:1px;max-width:140px;line-height:1.7}.header-actions{gap:6px}.publish-btn{display:none}.hero{grid-template-columns:1fr;position:relative;min-height:390px}.hero-copy{z-index:1;padding:27px;color:white;background:linear-gradient(90deg,#152c24df,#152c2430)}.edition,.edition span,.hero-copy>p,.hero-foot{color:#fffD}.hero-photo{position:absolute;inset:0;min-height:0}.hero h1{font-size:40px;margin-top:36px;max-width:320px}.hero-copy>p{max-width:270px;font-size:12px}.photo-caption{left:auto;bottom:16px;right:18px;font-size:8px}.hero-foot{font-size:9px}.dot{background:#b7d9b7}.section-heading{align-items:flex-start;flex-direction:column;gap:18px}.discovery{padding-top:29px}.search{width:100%}.search input{width:100%}.feed{columns:2;column-gap:12px}.card{margin-bottom:20px}.card h3{font-size:12px;line-height:1.7}.card-meta{font-size:9px}.location-tag{font-size:9px;left:7px;bottom:7px;padding:5px 7px}.filters{margin-top:20px;gap:7px}.filter{padding:8px 15px}footer{margin-bottom:80px;font-size:8px;gap:15px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;background:#fcf9f4f5;backdrop-filter:blur(12px);border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-around;padding:8px 0 max(8px,env(safe-area-inset-bottom));z-index:3}.mobile-nav button{display:grid;place-items:center;gap:3px;min-width:65px}.mobile-nav span{font-size:23px}.mobile-nav small{font-size:9px}.mobile-nav .mobile-add{background:var(--green);color:white;border-radius:14px;min-width:46px;height:42px;font-size:27px}dialog{padding:25px 20px}.hero h1:lang(en){font-size:36px}}
@media(max-width:760px){.mobile-brand{display:block;font-size:32px}header>.eyebrow{display:none}.hero h1{font-size:32px;letter-spacing:-1px}}
.author-link{background:none;border:0;color:inherit;padding:4px;cursor:pointer;text-align:left}.review-item{padding:16px 0;border-bottom:1px solid #ddd;overflow-wrap:anywhere}.review-item button{margin:8px 8px 0 0}#author-summary[hidden]{display:none}#moderation{width:min(680px,94vw)}#moderation-list{max-height:70vh;overflow:auto}.report-comment{background:none;border:0;color:#756c60;padding:8px;cursor:pointer}#author-summary{overflow-wrap:anywhere}@media(max-width:760px){.mobile-nav{justify-content:space-around}.mobile-nav button{min-width:0;flex:1}#mobile-following{font-size:11px}.mobile-nav .mobile-add{flex:0 0 42px}}

.field-count{font-size:11px;color:var(--muted);text-align:right}#image-preview{width:100%;max-height:260px;object-fit:contain;border-radius:8px;background:#e9eee6}#draft-status{margin:0}#composer input,#composer textarea,#composer select{font-size:16px}#composer{overscroll-behavior:contain}

.story-video,#video-preview{display:block;width:100%;max-height:65vh;background:#17251f;border-radius:9px}#video-progress{width:100%;height:12px;accent-color:var(--green)}.video-badge{position:absolute;top:10px;right:10px;background:#17251fcc;color:white;padding:6px 9px;border-radius:20px;font-size:11px}#remove-video-label{display:flex;align-items:center;gap:8px}#remove-video-label input{width:auto}

.image-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.image-item{position:relative;min-width:0}.image-item img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:7px}.cover-tag{position:absolute;top:5px;left:5px;background:var(--green);color:white;padding:3px 6px;border-radius:4px;font-size:10px}.image-tools{display:flex;gap:3px;flex-wrap:wrap}.image-tools button{border:1px solid var(--line);border-radius:5px;padding:6px;font-size:10px;min-height:32px}.photo-album{width:100%;min-width:0}.album-track{display:flex;width:100%;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;border-radius:9px}.album-track img{width:100%;flex:0 0 100%;height:min(420px,55vh);object-fit:contain;scroll-snap-align:start;background:#e9eee6}.album-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:9px 0;font-size:12px}.album-nav button{padding:10px;border:1px solid var(--line);border-radius:6px}.feed-tools{display:flex;gap:20px;justify-content:space-between;flex-wrap:wrap;margin:12px 0}.feed-tools label{display:flex;gap:5px;align-items:center;font-size:11px;color:var(--muted)}.feed-tools select{font-size:12px;border:1px solid var(--line);border-radius:6px;background:#fff}.feed-tools select:focus-visible{outline:2px solid var(--accent)}@media(max-width:420px){.feed-tools{gap:8px}.image-tools button{font-size:10px;padding:5px}}

#password-settings{margin-top:22px;border-top:1px solid var(--line);padding-top:16px}#password-settings summary{cursor:pointer;font-size:13px;padding:10px 0}#password-form input{font-size:16px}#password-status{color:var(--green)}

.story-media>.photo-album{margin-top:14px}

.notification-item{display:grid;gap:8px;width:100%;text-align:left;padding:16px 12px;border-bottom:1px solid var(--line);border-radius:7px;overflow-wrap:anywhere}.notification-item.unread{background:#e9eee6;border-left:3px solid var(--green)}.notification-item b{font-size:13px}.notification-item span{font-size:12px}.notification-item time{font-size:10px;color:var(--muted)}#notification-list{margin-top:16px}.copy-link{width:100%;display:grid;gap:8px;font-size:12px}.copy-link input{width:100%;min-width:0;padding:10px;border:1px solid var(--line);border-radius:6px}.copy-link small{color:var(--muted)}@media(max-width:760px){#notifications-open{max-width:68px;font-size:11px;padding:8px 5px}.header-actions{gap:4px}}

.storage-usage{background:#e9eee6;border-radius:8px;padding:12px 14px;margin:16px 0}.storage-usage h3{font-size:13px;margin:0 0 10px}.storage-usage p{font-size:12px;line-height:1.7;margin:6px 0}

#test-info p{font-size:13px;line-height:1.9;white-space:pre-line;overflow-wrap:anywhere}#test-info h3{font-size:15px;margin-top:24px}#test-info-open{font-size:11px;text-decoration:underline}

.sync-banner[data-state="offline"],.sync-banner[data-state="error"]{color:#944526}.sync-banner[data-state="connecting"]{color:var(--muted)}.sync-banner #sync-status{overflow-wrap:anywhere}.sync-banner button{min-height:36px;flex-shrink:0}

.sync-banner[data-state="offline"],.sync-banner[data-state="error"]{color:#914122}.sync-banner[data-state="connecting"]{color:var(--muted)}#sync-status{overflow-wrap:anywhere}#sync-now:disabled{cursor:default}

img[data-photo-state="failed"]{cursor:pointer;object-fit:contain!important;background:#e9eee6}img[data-photo-state="failed"]:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}.card:hover img[data-photo-state="failed"]{transform:none}img[data-photo-state="loading"][role="button"]{cursor:wait}

.detail-media>img{width:100%;max-height:400px;object-fit:cover;border-radius:9px}

/* Mobile community layout: scoped to viewport, not user-agent sniffing. */
main,.hero-copy,.section-heading,.card,.card-meta,.author,.header-actions{min-width:0}
.card h3,#account-name,.profile-summary p{overflow-wrap:anywhere}
.author-link{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card-actions{flex-shrink:0}
dialog{overflow-y:auto;overscroll-behavior:contain;overflow-wrap:anywhere;max-height:calc(100dvh - 32px)}
body:has(dialog[open]){overflow:hidden}
dialog input,dialog textarea,dialog select{min-width:0}
@media(max-width:760px){
  main{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
  header{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;min-height:80px;height:auto;padding:10px 0}
  .header-actions{justify-content:flex-end;flex-wrap:wrap;gap:4px}
  .header-actions select,.header-actions .account-btn{min-height:44px}
  .header-actions select{max-width:96px}
  .header-actions .account-btn{max-width:100px}
  .hero-copy{padding:24px 20px}
  .hero h1{font-size:clamp(28px,8vw,36px);max-width:100%}
  .search input{min-width:0;font-size:16px}
  .search{min-height:44px}
  .filter{min-height:44px}
  .card-meta .author{flex:1 1 70px;overflow:hidden}
  .card-meta .author-link{min-width:0}
  .card-actions button{min-width:36px;min-height:44px}
  .feed-tools label{min-width:0;flex-wrap:wrap}
  .feed-tools select{max-width:100%;min-height:44px}
  .mobile-nav{padding-left:max(4px,env(safe-area-inset-left));padding-right:max(4px,env(safe-area-inset-right))}
  .mobile-nav button{min-height:44px}
  dialog,#moderation{width:calc(100% - 24px);max-width:680px;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:28px 18px 24px}
  dialog input,dialog textarea,dialog select{font-size:16px}
  dialog button,dialog summary{min-height:44px}
  dialog .close{top:8px;right:8px;width:44px;height:44px}
  dialog h2{padding-right:32px}
  #moderation-list{max-height:none}
  footer{padding-bottom:calc(28px + env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){.card-cover img,#toast{transition:none}}

/* Destination directory: all entries link to existing community categories. */
.destination-toolbar{display:flex;justify-content:flex-start;margin:0 0 12px}
.destination-toolbar button,#destination-all{min-height:44px;white-space:normal;text-align:left}
.destination-search-label{display:grid;gap:8px;margin:18px 0;font-size:14px}
#destination-search{width:100%;min-width:0;box-sizing:border-box;min-height:44px;font-size:16px}
.destination-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.destination-card{display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;min-width:0;padding:16px;border:1px solid #dcded5;border-radius:14px;background:#fff;color:inherit;cursor:pointer;overflow-wrap:anywhere}
.destination-card:hover,.destination-card[aria-pressed="true"]{border-color:#496b57;background:#f0f4ed}
.destination-card:focus-visible{outline:3px solid #496b57;outline-offset:2px}
.destination-card strong{font-size:21px}.destination-kind{font-size:12px;color:#496b57}.destination-names,.destination-count{font-size:12px;color:#666;line-height:1.5}
@media(max-width:380px){.destination-grid{grid-template-columns:minmax(0,1fr)}}

.destination-toolbar{gap:10px;flex-wrap:wrap}
#collection-create{display:grid;gap:10px;margin:18px 0}
#collection-create label{display:grid;gap:8px;font-size:14px}
#collection-create input{box-sizing:border-box;width:100%;min-height:44px;font-size:16px}
#collection-folders{display:grid;gap:10px;margin:16px 0}
.collection-folder,.collection-story{display:flex;gap:8px;align-items:center;min-width:0}
.collection-select,.collection-story-open{flex:1;min-width:0;text-align:left}
#collections button{white-space:normal;overflow-wrap:anywhere;min-height:44px}
.collection-select[aria-pressed="true"]{background:#e6eddf;border-color:#496b57}
.collection-tools{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.collection-story{margin:10px 0}.collection-story-open{max-width:100%}
@media(max-width:380px){.collection-folder,.collection-story{align-items:stretch;flex-direction:column}}

.place-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.place-card{min-width:0;border:1px solid #dcded5;border-radius:14px;padding:16px;display:flex;flex-direction:column;align-items:flex-start;gap:10px;overflow-wrap:anywhere;background:#fff}
.place-card h3,.place-card p{margin:0}.place-card h3{font-size:21px}.place-card:focus-visible{outline:3px solid #496b57;outline-offset:2px}
.place-source{color:#315d42;min-height:44px;display:inline-flex;align-items:center;font-size:14px}
.place-card button{min-height:44px;white-space:normal}
#place-search,#place-destination{width:100%;box-sizing:border-box;min-height:44px;font-size:16px}
@media(max-width:480px){.place-grid{grid-template-columns:minmax(0,1fr)}}

.publish-place-fieldset{min-width:0;border:1px solid #dcded5;border-radius:12px;padding:14px;margin:12px 0}
.publish-place-fieldset legend{max-width:100%;font-size:14px;overflow-wrap:anywhere}
#publish-places{display:grid;gap:6px}.place-choice{display:flex!important;align-items:center;gap:10px;min-height:44px;margin:0!important;cursor:pointer}
#publish-places .place-choice input{width:22px;height:22px;min-height:22px;flex:0 0 22px;margin:0;padding:0}
.place-choice span{min-width:0;font-size:14px;overflow-wrap:anywhere}
.detail-places{margin:18px 0}.detail-places button{margin:4px 8px 4px 0;min-height:44px;white-space:normal}
.place-feed-context{margin:12px 0;overflow-wrap:anywhere}.place-feed-context button{min-height:44px;margin-left:8px}

#collection-query,#collection-type,#collection-sort{min-height:44px;font-size:16px;max-width:100%;box-sizing:border-box}#collection-query{width:100%}#collection-search-controls{margin:16px 0}#collection-type,#collection-sort{margin:0 8px 10px 0}

.collection-note{white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;background:#f5f4f0;border-radius:12px}
#collection-note-editor{width:min(520px,calc(100% - 24px));box-sizing:border-box}
#collection-note-form{display:grid;gap:12px}
#collection-note-text{width:100%;box-sizing:border-box;resize:vertical;min-height:132px;font:inherit}

#reply-dialog{width:min(520px,calc(100% - 24px));box-sizing:border-box}
#reply-form{display:grid;gap:12px}#reply-text{width:100%;box-sizing:border-box;font:inherit;min-height:110px;resize:vertical}
#reply-context{overflow-wrap:anywhere;white-space:pre-wrap;max-height:150px;overflow:auto}
.comment-reply{margin-left:16px;border-left:3px solid #dce5d6;padding-left:12px}.comment.focused-comment{outline:2px solid #496b57;outline-offset:2px}
.reply-comment{min-height:44px}.reply-parent{font-size:13px;color:#59654e;overflow-wrap:anywhere}

#muted-authors{width:min(560px,calc(100% - 24px));box-sizing:border-box}.muted-author-row{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line)}.muted-author-row span{min-width:0;overflow-wrap:anywhere}.muted-author-row button{flex-shrink:0;min-height:44px}#muted-authors-open,.mute-author,.mute-comment-author{min-height:44px}

#place-admin{width:min(92vw,640px)}#place-admin input:not([type=checkbox]),#place-admin textarea{box-sizing:border-box;width:100%}#place-latest{white-space:pre-wrap;overflow-wrap:anywhere}#place-log{overflow-wrap:anywhere}

.collection-story{flex-wrap:wrap}.collection-entry-note{width:100%;white-space:pre-wrap;overflow-wrap:anywhere}#collection-entry-editor{box-sizing:border-box;width:min(560px,94vw);max-height:90dvh;overflow:auto;padding:20px}#collection-entry-editor textarea{box-sizing:border-box;width:100%}#collection-entry-latest{white-space:pre-wrap;overflow-wrap:anywhere}#collection-entry-editor button{min-height:44px;margin:4px;white-space:normal}

#safety{max-width:42rem;width:calc(100% - 2rem)}
#safety .review-item,#safety p{overflow-wrap:anywhere}
#safety textarea{display:block;box-sizing:border-box;width:100%;min-height:5rem;margin:.5rem 0}

.governance-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0 16px}
.governance-controls small{max-width:100%;overflow-wrap:anywhere}
.governance-controls select{max-width:100%}

#profile-summary .profile-form{flex-wrap:wrap;align-items:stretch}
#profile-summary .profile-form label{flex:1 1 240px;min-width:0}
#profile-summary textarea{width:100%;border:1px solid var(--line);border-radius:7px;padding:12px;font:inherit;resize:vertical}
#profile-status,#profile-latest{flex-basis:100%;white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}
.author-bio{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
@media(max-width:760px){#profile-summary .profile-form label,#profile-status,#profile-latest{flex:0 0 auto;width:100%}}

#profile-stats-refresh{margin:6px 8px;font-size:12px}
.stats-scope{display:block;font-size:11px;line-height:1.65;margin-top:8px;overflow-wrap:anywhere}
#profile-stats-refresh{max-width:100%;white-space:normal;overflow:visible;text-overflow:clip}
#liked-notes-open{max-width:100%;white-space:normal}
#liked-history-hint{line-height:1.7;overflow-wrap:anywhere}
#following-people-open{max-width:100%;white-space:normal}
#following-people label{display:grid;gap:8px}
#following-people-query{width:100%;min-width:0}
.following-person{padding:14px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.following-person-open,.following-person-unfollow{max-width:100%;white-space:normal}
.following-person-open{font-weight:bold;text-align:left}
.following-person-bio{white-space:pre-wrap;line-height:1.7;font-size:13px}
/* Read the full configured sign-in state on narrow screens. */
#google-signin{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.edit-recovery{padding:14px;border:1px solid var(--line);border-radius:8px;display:grid;gap:10px;margin-bottom:18px}
.edit-recovery[hidden]{display:none}.edit-recovery .account-btn{max-width:100%;white-space:normal;text-align:left}
.edit-recovery pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:260px;overflow:auto;font:inherit;font-size:13px;line-height:1.7}
#edit-retained{width:100%;min-width:0;resize:vertical}#edit-retained-caption{font-size:13px}
#edit-drafts-open,#edit-drafts .account-btn{max-width:100%;white-space:normal}
.retained-edit{display:grid;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.retained-edit label{display:grid;gap:8px;overflow-wrap:anywhere}.retained-edit textarea{width:100%;min-width:0}
#edit-discard-current{max-width:100%;white-space:normal;margin-top:12px}
#edit-discard-current,.edit-discard-one,#edit-discard-all{color:#a63426}

.new-draft-tools{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.new-draft-tools[hidden]{display:none}.new-draft-tools textarea{flex-basis:100%;width:100%;min-width:0;box-sizing:border-box;overflow-wrap:anywhere}

#comment-drafts{width:min(680px,calc(100vw - 24px));box-sizing:border-box}#comment-drafts-list{display:grid;gap:16px}.retained-comment{display:flex;flex-wrap:wrap;gap:8px;border-top:1px solid #dedbd2;padding-top:12px;min-width:0}.retained-comment b,.retained-comment textarea,.retained-comment p{flex-basis:100%;max-width:100%;box-sizing:border-box}.retained-comment textarea{width:100%;min-width:0}.retained-comment .account-btn{max-width:100%;white-space:normal;overflow:visible;text-overflow:clip}

#comment-drafts>.account-btn{max-width:100%;white-space:normal;overflow:visible;text-overflow:clip}

.folder-note-tools{display:flex;flex-wrap:wrap;gap:8px}.folder-note-tools .account-btn,.folder-note-retained .account-btn{max-width:100%;white-space:normal;overflow:visible;text-overflow:clip}.folder-note-latest{white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;background:#ecefe7;border-radius:8px}.folder-note-latest:empty{display:none}.folder-note-retained[hidden]{display:none}.folder-note-retained{border-top:1px solid #dedbd2;margin-top:12px;padding-top:12px}

/* B1 read-only national catalog, scoped to avoid existing dialogs. */
#geography{width:min(720px,calc(100vw - 24px));max-height:85dvh;overflow-y:auto;box-sizing:border-box}#geography label{display:grid;gap:8px}#geography input,#geography select{width:100%;box-sizing:border-box;font-size:16px;min-height:44px;margin:8px 0}#geography-list{display:grid;gap:12px}.geo-card{border:1px solid #dedbd4;border-radius:12px;padding:14px;overflow-wrap:anywhere}.geo-card h3{margin:0 0 8px}.geo-card p,.geo-terms{overflow-wrap:anywhere}.geo-card button{white-space:normal;max-width:100%;min-height:44px}

/* B1b author-selected contexts: bounded groups, native focus and wrapping. */
.taxonomy-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:6px;max-height:220px;overflow:auto}.taxonomy-group{margin:8px 0}.taxonomy-group summary{cursor:pointer}.taxonomy-options label{overflow-wrap:anywhere;min-width:0}
