.section-picker{display:none}
.preview-controls,.mobile-nav{display:flex;gap:.6rem;flex-wrap:wrap}.mobile-nav{flex-direction:column}
.mobile-nav a{padding:.7rem;border:1px solid var(--line);border-radius:.6rem;text-decoration:none;display:flex;gap:.8rem;align-items:center}
.mobile-nav a.active{background:var(--tint);font-weight:650}.panel,.record,.stack,.editor,.wrap,.scroll{min-width:0}
@media(max-width:850px){
 .shell{grid-template-columns:minmax(0,1fr)}.sidebar,.shell.open .sidebar{display:none}.top .menu{display:inline-flex}.top .crumb{margin-inline-end:auto}
 .editor{display:block}.editor .outline{display:none}.section-picker{display:grid;max-width:100%;margin-bottom:.8rem}.section-picker select{width:100%;text-overflow:ellipsis}
}
@media(max-width:720px){
 .top{padding-top:max(.55rem,env(safe-area-inset-top));padding-left:max(.65rem,env(safe-area-inset-left));padding-right:max(.65rem,env(safe-area-inset-right));justify-content:space-between;flex-wrap:wrap}
 .top.authTop{justify-content:flex-end}.top select,.top button{font-size:1rem;line-height:1.3}.top select{width:auto;max-width:100%;padding-inline:.4rem}
 .top .menu{min-width:44px}.top button[data-act=account]{padding-inline:.55rem;max-width:8rem}.top{gap:.3rem}.top label{min-width:0}
 .wrap{padding-inline:max(1rem,env(safe-area-inset-left)) max(1rem,env(safe-area-inset-right));padding-bottom:max(1.5rem,env(safe-area-inset-bottom))}
 button,a.button,select,input:not([type=checkbox]){min-height:44px}input,select,textarea{font-size:1rem}input[type=checkbox]{height:1.25rem;width:1.25rem}
 .actions label.row{min-height:44px}.metric{text-align:start}.titlebar{align-items:start}.titlebar>div:first-child,.subtitle,.facts,.record,#dialog p{min-width:0;overflow-wrap:anywhere}
 .panel,.wrap{gap:1rem}.filters,.facts{grid-template-columns:repeat(2,minmax(0,1fr))}.filters label{min-width:0}.filters select{width:100%;text-overflow:ellipsis}
 .search{width:100%}.actions,.tabs{gap:.45rem}.tabs a{min-width:0;flex:1 1 7rem;text-align:center;line-height:1.35}
 .listing.adaptive,.listing.adaptive tbody,.listing.adaptive tr,.listing.adaptive td{display:block;width:100%}
 .listing.adaptive thead{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
 .listing.adaptive tr{border-bottom:1px solid var(--line);padding:.65rem 0}.listing.adaptive tr:last-child{border-bottom:0}
 .listing.adaptive td{display:grid;grid-template-columns:minmax(5rem,35%) minmax(0,1fr);gap:.25rem .6rem;padding:.3rem 0;border:0;overflow-wrap:anywhere}
 .listing.adaptive td::before{content:attr(data-label);grid-column:1;color:var(--muted);font-size:.85rem}.listing.adaptive td>*{grid-column:2}
 .listing.adaptive td:first-child{display:block;font-weight:650;padding-bottom:.5rem}.listing.adaptive td:first-child::before{display:none}.listing.adaptive td br{display:none}.listing.adaptive td small{display:block;font-weight:400}.listing.adaptive td .pill{width:fit-content}
 .listing.adaptive td:has(.pill){display:flex;align-items:center;flex-wrap:wrap}.listing.adaptive td:has(.pill)::before{width:35%}
 .record .scroll{overscroll-behavior-x:contain}.record .listing th,.record .listing td{min-width:8.5rem}.record textarea{min-height:7rem}
 .auth{width:calc(100% - 1.5rem);max-width:29rem;margin:clamp(.8rem,5vh,2.5rem) auto;padding:1.25rem}.auth form{min-width:0}
 dialog{max-height:calc(100dvh - max(1rem,env(safe-area-inset-bottom)) - max(1rem,env(safe-area-inset-top)));width:min(96vw,42rem);padding:1rem;overscroll-behavior:contain}
 dialog iframe{height:clamp(9rem,53dvh,42rem);margin:0}.preview-controls{justify-content:space-between}.preview-controls button{flex:1}
 #notice:not(:empty){bottom:max(.65rem,env(safe-area-inset-bottom));inset-inline:.65rem;max-width:100%;pointer-events:none}
}
@media(max-width:360px){.top select,.top button{padding-inline:.3rem}.top label{max-width:6.2rem}.top{gap:.2rem}.wrap{padding-inline:.7rem}.filters{grid-template-columns:1fr}.panel{padding:.85rem}.actions>button{max-width:100%}}
@media(max-height:480px) and (orientation:landscape){dialog{max-height:94dvh}dialog iframe{height:42dvh}.auth{margin:.6rem auto}.top{position:static}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.ui-icon{display:block;flex:none}
.top-tools,.pref-controls{display:inline-flex;align-items:center;flex:none}
.top-tools{gap:.65rem;margin-inline-start:auto}
.pref-controls{border:1px solid var(--line);border-radius:.9rem;padding:2px;background:var(--paper)}
.top .icon-control{position:relative;display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0;border:0;border-radius:.7rem;cursor:pointer;color:var(--muted);background:transparent}
.top label.icon-control{overflow:hidden}
.top .icon-control select{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;max-width:none;height:100%;padding:0}
.top .icon-control:hover,.top .icon-control:focus-within{color:var(--accent);background:var(--hover)}
.top .icon-control:focus-within,.identity-langs button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.top .profile-control{border:1px solid var(--line);background:var(--tint);color:var(--accent);border-radius:50%}
.top .menu{justify-content:center;align-items:center}
.identity-layout{padding:0;border:0;margin:0;min-inline-size:0;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);align-items:start;gap:1.2rem}
.identity-fields,.identity-aside{display:grid;gap:1rem;min-width:0}
.identity-aside{position:sticky;top:5rem}.identity-aside>button{justify-self:end}
.identity-layout .panel{margin:0}.identity-layout input{width:100%;min-width:0}
.logo-picker{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.logo-picker bdi{font-size:.9rem;overflow-wrap:anywhere}
.logo-picker .file-control{position:relative;display:inline-flex;align-items:center;gap:.55rem;min-height:44px;padding:.5rem .85rem;overflow:hidden;cursor:pointer;border:1px solid var(--line);border-radius:.65rem;background:var(--paper);color:var(--accent);font-weight:600}
.file-control .ui-icon{width:1.15rem;height:1.15rem}.file-control input[type=file]{position:absolute;inset:0;height:100%;width:100%;padding:0;opacity:0;cursor:pointer}
.file-control:hover{background:var(--hover)}.file-control:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.identity-langs{display:flex;gap:.2rem;border-radius:.75rem;width:fit-content;max-width:100%;padding:.2rem;background:var(--paper);border:1px solid var(--line)}
.identity-langs button{min-height:44px;padding:.35rem .7rem;border:1px solid transparent;background:transparent;color:var(--muted)}
.identity-langs button[aria-pressed=true]{background:var(--panel);color:var(--accent);border-color:var(--line);font-weight:650}
.letterhead{background:white;color:#18352d;border:1px solid #cfddda;border-radius:.45rem;display:flex;justify-content:center;align-items:center;gap:.75rem;padding:1.35rem .75rem 1.6rem;position:relative;min-height:8rem}
.letterhead:after{content:"";position:absolute;bottom:.75rem;left:5%;right:5%;height:1px;background:#93a69b}
.letterhead img{width:3.5rem;height:3.5rem;object-fit:contain;flex:none}
.letterhead-lines{min-width:0;text-align:start;overflow-wrap:anywhere;font-size:.85rem;line-height:1.55}
.letterhead-lines div:first-child{font-size:1rem;font-weight:700}.letterhead-lines div:last-child{font-weight:600}
@media(max-width:950px){.identity-layout{grid-template-columns:1fr}.identity-aside{position:static}}
@media(max-width:480px){.identity-aside>button{width:100%}.top-tools{gap:.45rem}.identity-langs{width:100%}.identity-langs button{flex:1;padding-inline:.35rem}}

