/* Qiluo v1: legacy page adapter. Canonical file: design/system/qiluo-legacy.css.
   Deliberately opt-in; preserves specialized flight/video/photo layouts. */
.q-migrated dialog.world-map-dialog{inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:0;display:flex;flex-direction:column;background:var(--q-surface)}
.q-migrated .world-map-dialog>header{flex:none;padding-top:env(safe-area-inset-top);background:var(--q-surface)}
.q-migrated .world-map-dialog>.sheet-content{flex:1;min-height:0;padding:0;overflow:hidden;display:flex}
.world-map{position:relative;flex:1;min-width:0;min-height:0;background:#EEF0F2;overflow:hidden;color:#3A3E44}
.world-map canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:grab}
.world-map canvas:active{cursor:grabbing}
.world-map-tools{position:absolute;right:12px;top:12px;display:flex;flex-direction:column;gap:8px;align-items:flex-end}
.world-map-tools .q-btn{background:#FDFDFE;color:#3A3E44;box-shadow:0 2px 8px #3a3e4414;min-height:44px}
.world-map-status{position:absolute;left:12px;right:12px;bottom:calc(28px + env(safe-area-inset-bottom));font-size:12px;color:#6B7178;pointer-events:none}
.world-map-status button{pointer-events:auto;background:#FDFDFE}
.world-map-credit{position:absolute;bottom:calc(6px + env(safe-area-inset-bottom));left:12px;font-size:10px;color:#6B7178;pointer-events:none}
.world-map-info{position:absolute;bottom:calc(62px + env(safe-area-inset-bottom));left:12px;right:12px;background:var(--q-surface);color:var(--q-ink);border-radius:16px;padding:12px;box-shadow:var(--q-shadow-float)}
.world-selection-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.world-selection-list{max-height:28dvh;overflow:auto;display:flex;flex-direction:column;align-items:stretch}
.world-selection-list .q-btn{text-align:left;white-space:normal}
html[data-q-design="1"]{--green:var(--q-brand);--ink:var(--q-ink);--muted:var(--q-muted);--text-secondary:var(--q-muted);--line:var(--q-line);--bg:var(--q-bg);--tint:var(--q-tint);--q49-muted:var(--q-muted);--q50-muted:var(--q-muted);--q-dock-icon:var(--q-icon);--q-dock-label:12px;--q-dock-item:var(--q-hit);--q-dock-safe-bottom:var(--q-safe-bottom)}
body.q-migrated{font-family:var(--q-font);font-size:15px;line-height:1.6;color:var(--q-ink);background:var(--q-bg);accent-color:var(--q-accent);caret-color:var(--q-accent)}
.q-migrated ::selection{background:var(--q-tint);color:var(--q-ink)}
.q-migrated :is(button,a,input,textarea,select,summary):focus-visible{outline:2px solid var(--q-focus);outline-offset:3px}
.q-migrated :is(.primary,.secondary){min-height:var(--q-hit);min-width:var(--q-hit);border-radius:var(--q-radius-control);padding:10px 16px;font-size:15px;line-height:1.6;font-weight:600;transition:filter var(--q-fast)}
.q-migrated .primary{background:var(--q-accent);color:var(--q-on-accent);border:0}
.q-migrated .secondary{background:var(--q-tint);color:var(--q-accent);border:0}
.q-migrated :is(.primary,.secondary):disabled{opacity:.48;cursor:default}
@media(hover:hover){.q-migrated :is(.primary,.secondary):hover:not(:disabled){filter:brightness(.94)}}
.q-migrated :is(#main,#dialog-body) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]),select){min-height:44px;font-size:16px;border-color:var(--q-field-line);border-radius:var(--q-radius-control)}
.q-migrated :is(#main,#dialog-body) textarea{font-size:16px;line-height:1.6}
.q-migrated :is(input,textarea)::placeholder{color:var(--q-muted);opacity:1}
.q-migrated :is(.form-error,.error){color:var(--q-danger);font-size:13px}
.q-migrated :is(.page-heading h1,.profile-hero h1){font-size:22px;line-height:1.35}
.q-migrated .section-heading h2{font-size:18px;line-height:1.4}
.q-migrated :is(.meta,.note-meta,.setting-help,.destination-hint,.personal-status,.draft-list small){color:var(--q-muted);font-size:13px}
.q-migrated :is(.home-tabs,.profile-tabs) button{min-height:44px;min-width:44px}
.q-migrated .site-header [data-search-open]{min-width:44px;min-height:44px}
.q-migrated .community-author>button{min-height:44px;min-width:44px}
.q-migrated .feed-card .badge{background:var(--q-tint);color:var(--q-accent);font-size:13px;line-height:1.6}
.q-migrated :is(.message-utilities,.group-utilities){gap:12px}
.q-migrated :is(.message-utilities button,.group-utilities button,.load-more,.link-button){min-height:44px;min-width:44px}
.q-migrated :is(.empty,.empty-comments){padding:32px 16px;color:var(--q-muted)}
.q-migrated :is(.empty h2,.empty h3){font-size:18px;color:var(--q-ink);margin:0 0 8px}
.q-migrated .empty p{font-size:13px;margin:8px 0 16px}
.q-migrated .feed-card{box-shadow:none;border-radius:12px}
.q-migrated .feed-copy{padding:12px}
.q-migrated .feed-card .excerpt{font-size:15px;line-height:1.6}
.q-migrated .feed-photo{height:auto;aspect-ratio:auto;object-fit:contain}
.q-migrated :is(.group-card,.joined-section){border-radius:var(--q-radius-card);box-shadow:none}
.q-migrated .group-card{padding:16px}
.q-migrated .reference-editor .editor-footer .primary{height:auto;min-height:44px;border-radius:var(--q-radius-control);font-size:15px}
.q-migrated .reference-editor :is(.editor-option small,.note-count){font-size:13px;color:var(--q-muted)}
.q-migrated .reference-editor .compose-body textarea{font-size:16px;line-height:1.6}
.q-migrated .reference-editor .compose-body textarea:focus-visible{outline:none;box-shadow:none}
.q-migrated :is(.comment-copy p,.body-text){line-height:1.6}
.q-migrated .comment-copy :is(button,summary){min-height:44px}
.q-migrated #close-dialog{min-height:44px;min-width:44px;display:grid;place-items:center}
.q-migrated #dialog::backdrop{background:var(--q-scrim)}
.q-migrated #status{box-shadow:var(--q-shadow-float);border-radius:var(--q-radius-control);bottom:calc(var(--q-dock-height) + 16px);max-width:calc(100% - 32px)}
.q-migrated [data-flight-open]{min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.q-migrated .nav{background:var(--q-surface)}
.q-migrated .nav button:not(.publish):not(.active){color:var(--q-muted)}
@media(max-width:650px){body.q-migrated #main{padding-left:16px;padding-right:16px;padding-bottom:calc(var(--q-dock-height) + 24px)}body.q-migrated.home-view .grid{column-gap:12px}.q-migrated .site-header{padding-left:16px;padding-right:16px}}
@media(prefers-reduced-motion:reduce){.q-migrated *,.q-migrated *::before,.q-migrated *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Keep each flight number intact when a narrow card wraps the label. */
.q-migrated .flight-mark{flex-wrap:wrap}.q-migrated .flight-mark b{flex:0 0 auto;white-space:nowrap}

/* Shared surfaces. Keep photo/video pixels and the original green logo untouched. */
html[data-q-design="1"]{--green:var(--q-accent);--soft:var(--q-tint)}
.q-migrated :is(.site-header,.home-tabs,.profile-tabs,.editor-footer,.note-bottom,.settings-list,.qs,.qs-form,.qs-input-wrap,.message-utilities,.group-utilities,.editor-sheet,.sheet-content,.note-editor,.reference-editor,.note-surface,.dm-dialog,.full-note-editor,.personal-search){background-color:var(--q-surface);color:var(--q-ink)}
.q-migrated :is(input,textarea,select){background-color:var(--q-surface);color:var(--q-ink)}
.q-migrated :is(.avatar,.mini-avatar,.flight-mark:before,.qs-history span){background:var(--q-tint);color:var(--q-accent)}
.q-migrated :is(.more-menu>div,.action-sheet,.login-prompt){background:var(--q-raised);color:var(--q-ink);box-shadow:var(--q-shadow-overlay)}
.q-migrated :is(.primary,.nav .publish,#status){background:var(--q-accent);color:var(--q-on-accent)}
.q-migrated .profile-tools button{min-height:44px}.q-migrated :is(.qs-trending button){display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:44px;width:100%;text-align:left}.qs-trending small{font-size:13px;color:var(--q-muted)}
html[data-q-dark] .q-migrated :is(.site-header,.profile-hero:not(.with-background),.note-detail>header,.reference-editor,.reference-editor .editor-content,.flight-footprint){background:var(--q-bg);color:var(--q-ink)}
html[data-q-dark] .q-migrated .flight-ticket{background:linear-gradient(145deg,var(--q-raised),var(--q-surface));border-color:var(--q-line);color:var(--q-ink);box-shadow:var(--q-shadow-float)}
html[data-q-dark] .q-migrated .flight-ticket :is(h1,.flight-ticket-airline,.flight-ticket-label,.flight-ticket-airport>small,.flight-ticket-airport>p,.flight-ticket-airport>p>span){color:var(--q-muted)}
html[data-q-dark] .q-migrated .flight-ticket h1{color:var(--q-accent)}
html[data-q-dark] .q-migrated .flight-mini{background:var(--q-raised);color:var(--q-ink)}
html[data-q-dark] .q-migrated :is(.flight-mini,.flight-ticket) svg:has(path[fill="#3a3e44"]){background:#F6F7F8;border-radius:8px}
html[data-q-dark] .q-migrated .flight-compose-dock{background:linear-gradient(to bottom,transparent,var(--q-bg));pointer-events:none}.q-migrated .flight-compose-dock button{pointer-events:auto}
.q-migrated.legal-surface :is(article,.notice){background:var(--q-surface);color:var(--q-ink)}.q-migrated.legal-surface a{color:var(--q-accent)}
.q-migrated.account-surface{background:var(--q-bg);color:var(--q-ink)}.q-migrated.account-surface :is(p,small,label){color:var(--q-muted)}

html[data-q-design="1"]{--q49-surface:var(--q-surface);--q49-secondary:var(--q-tint);--q49-ink:var(--q-ink);--q49-green:var(--q-accent);--q49-green-light:var(--q-accent);--q49-glass:var(--q-surface);--q49-line:var(--q-line);--q50-bg:var(--q-bg);--q50-face:var(--q-surface);--q50-soft:var(--q-tint);--q50-ink:var(--q-ink);--q50-green:var(--q-accent);--q50-green-light:var(--q-accent);--q50-glass:var(--q-surface);--q50-line:var(--q-line)}
.q-migrated :is(.feed-card .title,.feed-card .excerpt,.community-card .title.body-summary,.video-card .title){color:var(--q-ink)}
html[data-q-dark] .q-migrated .text-card{background:var(--q-surface);border-color:var(--q-line)}
html[data-q-dark] .q-migrated .flight-mark>svg{background:#F6F7F8;border-radius:4px}

.q-migrated .site-header [data-search-open][hidden]{display:none!important}
.q-migrated.groups-view .site-header .brand{display:none}.q-migrated.groups-view #explore-return{grid-column:1;width:44px;height:44px;display:grid;place-items:center;color:var(--q-ink)}.q-migrated.groups-view #explore-return svg{width:24px;height:24px}.q-migrated.groups-view .home-tabs{grid-column:2}.q-migrated.groups-view #group-header-menu{grid-column:3}
.q-migrated :is(.profile-stats b,.profile-hero:not(.with-background) h1){color:var(--q-ink)}.q-migrated .profile-hero:not(.with-background) p{color:var(--q-muted)}
html[data-q-dark] .q-migrated :is(.group-avatar,.message-utilities button>span){background:var(--q-tint);color:var(--q-accent)}
html[data-q-dark] .q-migrated :is(.flight-mini,.flight-ticket,.flight-mark) svg:has(path[fill="#3a3e44" i]){background:#F6F7F8;border-radius:8px}
html[data-q-dark] .q-migrated .note-bottom input{background:var(--q-tint);color:var(--q-ink)}

html[data-q-dark] .q-migrated :is(.flight-mark>svg,#editor-flight svg){mix-blend-mode:normal;background:#F6F7F8;border-radius:4px}
html[data-q-dark] .q-migrated #dialog:has(.flight-stories)>header #close-dialog{background:var(--q-raised);color:var(--q-ink)}

.q-migrated.legal-surface .legal-page-heading{display:flex;align-items:center;gap:8px;min-height:52px}.q-migrated.legal-surface .legal-page-heading a{display:grid;place-items:center;width:44px;height:44px;font-size:28px;text-decoration:none}.q-migrated.legal-surface .legal-page-heading h1{font-size:22px;margin:0}.q-migrated.legal-surface h2{font-size:18px}.q-migrated.legal-surface .version{color:var(--q-muted)}

/* Centered group selector: five slots, boundary space and decorative edge fade. */
.q-migrated.groups-view .joined-strip-frame{overflow:hidden;mask-image:linear-gradient(to right,transparent,#000 14%,#000 86%,transparent);-webkit-mask-image:linear-gradient(to right,transparent,#000 14%,#000 86%,transparent)}
.q-migrated.groups-view .joined-strip{display:flex;gap:0;padding:8px 0 12px;scroll-snap-type:x mandatory;overscroll-behavior-x:none;mask-image:none;-webkit-mask-image:none;position:relative}
.q-migrated.groups-view .joined-strip::before,.q-migrated.groups-view .joined-strip::after{content:'';flex:0 0 40%;position:static;width:auto;height:auto;background:none}
.q-migrated.groups-view .joined-strip>button{flex:0 0 20%;width:20%;min-width:44px;scroll-snap-align:center;gap:8px;transform:translateX(var(--q-edge-shift,0px));touch-action:pan-x pan-y;min-height:88px}
.q-migrated.groups-view .joined-strip.edge-return>button{transition:transform 200ms cubic-bezier(.2,.8,.2,1)}
.q-migrated.groups-view .joined-strip>button>span:last-child{width:100%;max-width:none;padding:0 4px;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.4}
.q-migrated.groups-view .joined-strip .group-avatar{width:44px;height:44px;border-radius:50%;border:1px solid var(--q-line);background:var(--q-tint)}
.q-migrated.groups-view .joined-strip .selected .group-avatar{border:2px solid var(--q-accent)}
.q-migrated.groups-view .joined-strip .selected>span:last-child{color:var(--q-accent);font-weight:600}
.q-migrated.groups-view .joined-strip>button:focus-visible{outline:2px solid var(--q-accent);outline-offset:-2px;border-radius:12px}
.q-migrated.groups-view .joined-discovery{display:flex;justify-content:flex-end;padding:4px 0 8px}
/* Flight footprint map: approved Qiluo visual direction, 2026-10-09.
   Map geography keeps a light surface in both themes; review status is in its source asset. */
.flight-map{margin:12px 0 20px;background:#eef0f2;border-radius:16px;overflow:hidden;color:#26282c}
.flight-footprint .flight-map .flight-route-map,.flight-map .flight-route-map{display:block;width:100%;height:auto!important;min-height:0;max-height:none;aspect-ratio:4/3;background:#eef0f2;border-radius:0}
.flight-map .flight-route-map .footprint-arcs path{fill:none;stroke:#3a3e44;stroke-width:1.55;stroke-opacity:.78}
.flight-map .flight-route-map .footprint-points circle{fill:#3a3e44;stroke:#fff;stroke-width:1.6}
.flight-map .flight-route-map .footprint-labels text{fill:#3a3e44;font:600 25px var(--q-font);stroke:#fdfdfe;stroke-width:3;paint-order:stroke;stroke-linejoin:round}
.flight-map figcaption{padding:8px 12px 12px;font-size:12px;line-height:1.6;color:#969ca2}
.flight-footprint .flight-tools{flex-wrap:wrap;gap:8px}.flight-footprint .flight-tools label{display:flex;align-items:center;gap:8px}
.flight-footprint .flight-stats{justify-content:flex-start;gap:32px;padding:20px 4px 8px}.flight-footprint .flight-stats>div{text-align:left}.flight-footprint .flight-stats b{color:var(--q-accent);font-size:30px;font-variant-numeric:tabular-nums}.flight-footprint .flight-stats span{font-size:13px}
.footprint-record-heading{font-size:18px;margin:16px 0 8px}
.flight-footprint .flight-legs article{padding:10px 0;margin:0}
.flight-footprint .flight-legs article>div:first-child{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2px 8px;align-items:baseline}
.flight-footprint .flight-legs article>div:first-child>strong{grid-column:1;grid-row:1;font-size:16px;line-height:1.5}
.flight-footprint .flight-legs article>div:first-child>span{grid-column:1/-1;grid-row:2;font-size:15px;line-height:1.5}
.flight-footprint .flight-legs article>div:first-child>small{grid-column:2;grid-row:1;text-align:right;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.flight-footprint .flight-leg-actions{gap:0 8px;margin-top:4px}
.flight-footprint .flight-leg-actions button{min-height:44px;padding:8px;font-size:14px;line-height:1.5}
.flight-footprint .footprint-actions+.q-meta{margin:8px 0 0}
.flight-footprint [data-record-status]:empty{display:none}
.flight-footprint [data-record-more]{margin-top:8px}
.footprint-card-map{position:relative}.footprint-card-map .flight-map{margin:8px 0 0}.footprint-map-open{position:absolute;inset:0;width:100%;height:100%;border:0;background:transparent!important;border-radius:16px;cursor:pointer}.footprint-map-open:focus-visible{outline:2px solid var(--q-focus);outline-offset:2px}
.footprint-entry .footprint-open{min-height:44px}.footprint-entry .explore-actions{margin-top:12px}
/* Explore preview: one compact map surface; the full footprint page stays unchanged. */
.footprint-periods{display:flex;overflow-x:auto;gap:4px;padding:4px;background:var(--q-tint);border-radius:12px}.footprint-periods button{min-width:88px;min-height:44px;flex:1;border-radius:10px;padding:8px 16px;white-space:nowrap;color:var(--q-muted)}.footprint-periods button.selected{background:var(--q-accent);color:var(--q-on-accent)}.footprint-actions{display:flex;gap:12px;align-items:center}.footprint-actions [data-flight-add]{flex:1}
.flight-map figcaption [data-map-expand]{display:block;color:#3a3e44;padding:4px 0;min-height:44px}.footprint-zoom-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.footprint-zoom-scroll{overflow:auto;max-height:65dvh;margin-top:12px}.footprint-zoom-scroll .flight-map{margin:0;max-width:none}.footprint-zoom-scroll figcaption{display:none}


/* Explore hierarchy: map first, concise discovery previews, quiet utilities. */
.explore-page>.explore-heading{margin-bottom:8px;min-height:44px}
.explore-page .explore-heading h1{font-size:22px;line-height:1.35;font-weight:600}
.explore-page .explore-heading h2{font-size:18px;line-height:1.4;font-weight:600}
.explore-page .explore-heading>.q-btn{font-size:13px;font-weight:400;padding-inline:8px}
.explore-page>.explore-heading>[data-view="groups"]{font-size:20px;line-height:1.4;font-weight:600}
.explore-page>section+section{margin-top:16px}
.explore-page .feed-card{background:var(--q-surface);border:0}
.explore-page .feed-card .feed-copy{padding:12px}
.explore-page .feed-card .title{font-size:15px;font-weight:600;line-height:1.55;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-align:left}
.explore-page .feed-card .excerpt{font-size:14px;line-height:1.65;color:var(--q-muted);margin:8px 0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;text-align:left}
.explore-page .discovery-group .q-meta{font-size:13px;margin:0 0 4px}


/* Compact discovery entry: content-sized, one summary and one destination. */
.explore-page .footprint-entry{position:relative;height:auto;aspect-ratio:3/2;max-height:300px;padding:0;border:0;border-radius:12px;overflow:hidden;background:#eef0f2!important;color:#6B7178}
.explore-page .footprint-entry .footprint-card-map{position:absolute;inset:0}
.explore-page .footprint-entry .flight-map{height:100%;margin:0;border-radius:0}
.explore-page .footprint-entry .flight-route-map{height:100%!important;width:100%;aspect-ratio:auto}
.explore-page .footprint-entry .footprint-open{position:absolute;z-index:1;top:4px;left:12px;right:12px;width:auto;min-height:44px;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-content:center;align-items:center;gap:4px 12px;padding:0;background:transparent;text-align:left;color:#6B7178}
.explore-page .footprint-entry .footprint-open span{font-size:13px;font-weight:500}
.explore-page .footprint-entry .footprint-open strong{font-size:12px;font-weight:400;line-height:1.5;font-variant-numeric:tabular-nums}
.explore-page .footprint-entry .footprint-open small{display:none}
.explore-page .footprint-view{position:absolute;z-index:1;left:12px;right:auto;bottom:16px;min-height:44px;padding:8px;font-size:12px;font-weight:400;color:#6B7178;background:transparent}
.explore-page .footprint-entry>.q-meta{position:absolute;top:64px;left:12px;right:12px;font-size:13px;color:#6B7178}
.explore-page .footprint-entry:not(:has(.footprint-card-map)){min-height:144px;aspect-ratio:auto}
.explore-page .footprint-entry:not(:has(.footprint-card-map)) .footprint-open small{display:block;flex-basis:100%;color:#6B7178}
.explore-page .footprint-entry{--footprint-edge:20px;container-type:size}
.explore-page .footprint-view{left:var(--footprint-edge);padding-inline:0}
.explore-page .footprint-sea-inset{position:absolute;right:var(--footprint-edge);bottom:4px;width:auto;height:35.185cqh;aspect-ratio:124/192;overflow:hidden;pointer-events:none}
/* Video overlays keep a readable light flight chip in both system themes. */
.q-migrated #dialog.video-stream-dialog .vs-context .flight-mark{background:#F6F7F8!important;color:#3A3E44!important;border-color:transparent;min-height:44px}
.q-migrated #dialog.video-stream-dialog .vs-context .flight-mark b{color:inherit!important}
.video-stream .vs-actions .more-menu{position:relative;margin:0}
.video-stream .vs-actions .more-menu>summary{display:flex;align-items:center;justify-content:center;width:48px;min-height:44px;padding:0;color:#fff;background:transparent;list-style:none;cursor:pointer}
.video-stream .vs-actions .more-menu>summary::-webkit-details-marker{display:none}
.video-stream .vs-actions .more-menu>div{display:none}

/* Two groups: identity, then flight and caption together. */
.video-stream .vs-author{margin-bottom:2px}
.video-stream .vs-context{margin-top:0;gap:4px}
.video-stream .vs-caption{display:flex;align-items:center;gap:8px;width:100%;min-width:0}
.video-stream .vs-caption .flight-mark{flex:none;padding:5px 8px}
.video-stream .vs-caption .flight-mark>span{display:none}
.video-stream .vs-caption .flight-mark>svg{width:24px;height:auto}
.video-stream .vs-caption .vs-text{flex:1;min-width:0;width:auto;min-height:44px;padding:0;color:#fff}
.video-stream .vs-caption:has(.vs-text.expanded){flex-wrap:wrap}
.video-stream .vs-caption .vs-text.expanded{flex-basis:100%;padding:8px}

.video-stream .vs-context .flight-mark::before{display:none}

/* Video actions grow horizontally, keeping the viewing area visible. */
dialog.action-sheet--horizontal{padding:12px 0 max(12px,env(safe-area-inset-bottom));overflow-x:hidden;border-radius:20px 20px 0 0}
.action-sheet--horizontal .action-sheet-handle{margin:0 auto 8px;background:var(--q-line)}
.action-sheet--horizontal h2{font-size:15px;line-height:24px;margin:0 64px 12px;font-weight:600}
.action-sheet--horizontal .action-list{display:flex;flex-wrap:nowrap;gap:4px;overflow-x:auto;overscroll-behavior-x:contain;touch-action:pan-x;scroll-snap-type:x proximity;scroll-padding-inline:16px;padding:4px 16px 8px;scrollbar-width:thin;scrollbar-color:var(--q-line) transparent}
.action-sheet--horizontal .action-list>button{flex:0 0 88px;width:88px;min-height:88px;display:flex;flex-direction:column;justify-content:flex-start;gap:8px;padding:8px 2px;border:0;margin:0;border-radius:12px;text-align:center;scroll-snap-align:start;font-size:12px;line-height:18px;color:var(--q-ink)}
.action-sheet--horizontal .action-list>button>span{white-space:nowrap}
.action-sheet--horizontal .action-list>button>svg{width:24px;height:24px;box-sizing:content-box;padding:10px;background:var(--q-surface);border-radius:50%}
.action-sheet--horizontal .action-list>button[data-flight-edit]>svg{width:32px;height:auto;aspect-ratio:1507/1044;padding:11px 6px;background:#F6F7F8}
.action-sheet--horizontal .action-list>button.destructive{color:var(--q-danger);border:0;margin:0;border-radius:12px}
.action-sheet--horizontal .action-cancel{position:absolute;right:8px;top:12px;width:48px;min-height:44px;margin:0;padding:0;background:transparent;font-size:13px;color:var(--q-muted)}
.action-sheet--horizontal button:focus-visible{outline:2px solid var(--q-accent);outline-offset:-2px}
.action-sheet--horizontal button:active{background:var(--q-tint)}
/* Conversation context stays visible while writing, without covering the content. */
.q-migrated #comment-form{flex-wrap:wrap;min-width:0}
.q-migrated #comment-form .comment-reply-target{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-basis:100%;width:100%;min-width:0;color:var(--q-muted);font-size:13px}
.q-migrated #comment-form .comment-reply-target[hidden]{display:none}
.q-migrated .comment-reply-target span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.q-migrated #comment-form .comment-reply-target button{flex:none;width:44px;height:44px;padding:10px;background:transparent;color:var(--q-ink);border:0;border-radius:8px}
.q-migrated .comment-reply-target svg{width:20px;height:20px}
.q-migrated #comment-form .form-error{flex-basis:100%;font-size:13px;color:var(--q-muted)}
.q-migrated #comment-form .form-error:empty{display:none}
.q-migrated .comment-context{margin:16px 0;padding:12px;background:var(--q-tint);border-radius:12px}
.q-migrated .comment-context h3{margin:0 0 12px;font-size:15px}
.q-migrated .comment-target-highlight{outline:2px solid var(--q-accent);outline-offset:2px;border-radius:8px}
.q-migrated #comment-form input[name=body]{flex:1 1 0;width:0;min-width:0}
#dialog.note-detail #comment-form>button[type=submit]{min-height:44px;height:44px}
#dialog.note-detail .note-bottom{align-items:flex-end}
html[data-q-dark] #dialog.note-detail #comment-body{background:var(--q-tint);color:var(--q-ink);caret-color:var(--q-ink)}
.notification-settings>p,.notification-settings form>p{font-size:13px;line-height:1.5;margin:8px 0 12px}
.notification-settings .q-switch{min-height:48px;margin:0;padding:8px 0;border-bottom:1px solid var(--q-line)}
.notification-settings .notification-feedback:empty{display:none}
.notification-settings .notification-feedback{color:var(--q-accent)}
.notification-settings .notification-feedback[data-error]{color:var(--q-danger)}

/* Publishing continuity: short status, identifiable drafts, secondary inbox utilities. */
.q-migrated .context-empty{margin:16px 0;padding:0 4px;color:var(--q-muted);font-size:14px;line-height:1.6}
.q-migrated .reference-editor .draft-save-status{margin:4px 0 8px;color:var(--q-muted);font-size:13px;line-height:1.4}
.q-migrated .reference-editor .draft-save-status.save-failed{color:var(--q-danger)}
.q-migrated .draft-list article{gap:8px;padding:12px 0}
.q-migrated .draft-list article>button:first-child{display:flex;align-items:center;gap:12px;min-height:64px}
.q-migrated .draft-thumbnail{width:56px;height:64px;object-fit:cover;flex:none;border-radius:6px;background:var(--q-tint);color:var(--q-accent)}
.q-migrated .draft-text-mark{display:flex;align-items:center;justify-content:center}
.q-migrated .draft-text-mark svg{width:24px;height:24px}
.q-migrated .draft-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.q-migrated .draft-copy strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font-size:15px;line-height:1.5}
.q-migrated .draft-copy small{font-size:13px;line-height:1.5}
.q-migrated .draft-list article>button:last-child{min-width:44px;min-height:44px;flex:none}
.q-migrated .draft-resume-link{display:block;width:100%;min-height:44px;margin:4px 0 0;color:var(--q-accent);background:transparent;font-size:14px}
.q-migrated .message-secondary{display:flex;justify-content:flex-end;margin:8px 0 0;background:transparent}
.q-migrated .message-secondary button{color:var(--q-muted);font-size:13px}
.explore-page .footprint-empty .footprint-open small{display:block;flex-basis:100%;font-size:12px;color:#6B7178}

.q-migrated .message-empty{margin:12px 0 0;padding:0 4px}
.q-migrated .draft-heading{margin:20px 0 4px;font-size:16px}
.q-migrated .draft-list .empty-comments{padding:12px 0;margin:0;text-align:left;font-size:14px}

/* Mixed-content reading: content sizes the card; metadata and action share one row. */
.q-migrated .community-card .text-cover{min-height:44px;padding:12px;line-height:1.6}
.q-migrated .community-card .feed-copy{padding:6px 2px 0}
.q-migrated .community-author{gap:4px}
.q-migrated .community-author>[data-profile]{flex:1;min-width:0;min-height:44px}
.q-migrated .community-author>.feed-like{flex:0 0 auto;display:flex;align-items:center;justify-content:center;gap:2px;min-width:44px;min-height:44px;margin:0;padding:0 4px;color:var(--q-muted);background:transparent}
.q-migrated .community-author>.feed-like svg{width:18px;height:18px;flex:none}
.q-migrated .community-author>.feed-like small{font-size:12px;font-variant-numeric:tabular-nums}
.q-migrated .community-author>.feed-like.is-liked{color:var(--q-accent)}
.q-migrated .community-author>.feed-like.is-liked svg{fill:currentColor}
.q-migrated #dialog.note-detail .note-author>[data-profile]{flex:1;min-width:0}
.q-migrated #dialog.note-detail .note-author>.note-share{flex:0 0 44px;display:grid;place-items:center;width:44px;height:44px;padding:0;margin:0;color:var(--q-accent);background:transparent}
.q-migrated .note-share svg{width:22px;height:22px}

/* Video overlays stay bounded when names are long or the viewport is short. */
.video-stream .vs-info{bottom:calc(76px + env(safe-area-inset-bottom));padding:40px 76px 12px 16px}
.video-stream .vs-author{width:100%;max-width:100%;min-width:0}
.video-stream .vs-author .avatar{flex:0 0 32px}
.video-stream .vs-author strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.video-stream .vs-caption .vs-text{overflow-wrap:anywhere}
.video-stream .vs-stage .ctl button{min-width:44px;min-height:44px}
.video-stream .vs-context>button{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-height:600px){
 .video-stream .vs-info{padding-top:24px}
 .video-stream .vs-actions{bottom:calc(92px + env(safe-area-inset-bottom));gap:4px;max-height:calc(100dvh - 152px - env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
 .video-stream .vs-actions>button,.video-stream .vs-actions>.more-menu{flex:none}
}

/* Own profile: compact identity, private collections, original flight mark. */
.q-migrated .own-profile:not(.with-background){min-height:0;padding-top:0}
.q-migrated .own-profile:not(.with-background) .profile-content{padding-top:12px;margin-top:0}
.q-migrated .own-profile .profile-content h1{margin:8px 0 4px}
.q-migrated .own-profile .profile-content>p{margin:4px 0 8px}
.q-migrated .profile-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:0;padding:0;min-height:0}
.q-migrated .profile-tools .profile-drafts{border:0;background:transparent;box-shadow:none;border-radius:0;min-height:44px;padding:0 8px;color:var(--q-muted)}
.q-migrated .profile-flight-entry{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--q-accent);padding:0 8px}
.q-migrated .profile-flight-entry svg{width:32px;height:auto;max-height:32px;background:#fff;border-radius:4px}
.q-migrated .profile-state-tabs{display:flex;gap:4px;overflow-x:auto;margin:0 0 12px}
.q-migrated .profile-state-tabs button{flex:none;min-height:44px;padding:8px 12px;color:var(--q-muted);font-size:13px}
.q-migrated .profile-state-tabs button[aria-pressed=true]{color:var(--q-accent);background:var(--q-tint);border-radius:12px}
.q-migrated .settings-list h3{font-size:13px;color:var(--q-muted);margin:16px 12px 4px}
.q-migrated .settings-list h3:first-child{margin-top:0}
/* Video viewing: compact author, inline comment entry, edge seek line. */
.q-migrated .video-stream{--vs-footer:calc(60px + env(safe-area-inset-bottom))}
.q-migrated .video-stream .vs-stage.player{height:calc(100% - var(--vs-footer));bottom:var(--vs-footer)}
.q-migrated .video-stream .vs-info{bottom:calc(var(--vs-footer) + 12px);padding:40px 16px 8px;right:0}
.q-migrated .video-stream .vs-author-row{display:flex;align-items:center;gap:10px;min-width:0}
.q-migrated .video-stream .vs-author{width:auto;max-width:calc(100% - 90px);min-height:44px;margin:0;padding:0}
.q-migrated .video-stream .vs-follow{flex:none;min-height:44px;padding:0 14px;border:0;border-radius:22px;background:#3A3E44;color:#fff;font-size:13px}
.q-migrated .video-stream .vs-follow[data-following=true]{background:#ffffff25}
.q-migrated .video-stream .vs-actions{left:0;right:0;bottom:0;height:var(--vs-footer);max-height:none;padding:8px 12px calc(8px + env(safe-area-inset-bottom));display:flex;flex-direction:row;align-items:center;gap:8px;background:#090b0f;overflow:visible}
.q-migrated .video-stream .vs-actions>button{flex:none;width:auto;min-width:44px;min-height:44px;flex-direction:row;gap:4px;padding:0;filter:none}
.q-migrated .video-stream .vs-actions .vs-write-comment{flex:1;min-width:70px;justify-content:flex-start;padding:0 14px;border-radius:24px;background:#ffffff18;color:#ffffffb3;text-align:left;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.q-migrated .video-stream .vs-actions svg{width:26px;height:26px;flex:none}
.q-migrated .video-stream .vs-actions small{font-size:12px}
.q-migrated .video-stream .vs-top-actions{position:absolute;right:8px;top:calc(8px + env(safe-area-inset-top));display:flex;gap:0;align-items:center;z-index:6}
.q-migrated .video-stream .vs-top-actions>button,.q-migrated .video-stream .vs-top-actions summary{display:grid;place-items:center;width:44px;height:44px;padding:10px;color:white;background:transparent;border:0;list-style:none}
.q-migrated .video-stream .vs-top-actions svg{width:23px;height:23px}
.q-migrated .video-stream .vs-top-actions .snd svg,.q-migrated .video-stream .vs-top-actions .fs svg{fill:white}
.q-migrated .video-stream .vs-top-actions small,.q-migrated .video-stream .vs-top-actions .more-menu>div{display:none}
.q-migrated .video-stream .vs-top-actions summary::-webkit-details-marker{display:none}
.q-migrated .video-stream .vs-top-actions .more-menu{margin:0}
.q-migrated #dialog.video-stream-dialog #dialog-title{visibility:hidden}
.q-migrated .video-stream .vs-stage .ctl{bottom:-22px;left:12px;right:12px;height:44px;padding:0;border-radius:0;background:none;display:flex;gap:0;opacity:1;z-index:4}
.q-migrated .video-stream .vs-stage .ctl .pp,.q-migrated .video-stream .vs-stage .ctl .snd,.q-migrated .video-stream .vs-stage .ctl .fs{display:none}
.q-migrated .video-stream .vs-stage .bar{height:44px;min-height:44px}
.q-migrated .video-stream .vs-stage .track{height:2px;background:#ffffff40}
.q-migrated .video-stream .vs-stage .knob{width:6px;height:6px;opacity:0}
.q-migrated .video-stream .vs-stage .cur,.q-migrated .video-stream .vs-stage .tot{display:none}
.q-migrated .video-stream .vs-stage.is-seeking .track,.q-migrated .video-stream .bar:focus-visible .track{height:6px}
.q-migrated .video-stream .vs-stage.is-seeking .knob,.q-migrated .video-stream .bar:focus-visible .knob{width:12px;height:12px;opacity:1}
.q-migrated .video-stream .vs-stage.is-seeking .cur,.q-migrated .video-stream .vs-stage.is-seeking .tot{display:block;position:absolute;bottom:70px;font-size:22px;color:white;text-shadow:0 1px 4px #000;pointer-events:none}
.q-migrated .video-stream .vs-stage.is-seeking .cur{right:50%;padding-right:12px}
.q-migrated .video-stream .vs-stage.is-seeking .tot{left:50%;padding-left:12px}
.q-migrated .video-stream .vs-stage.is-seeking .tot:before{content:'/';position:absolute;left:-3px;color:#ffffff99}
.q-migrated .video-stream:has(.is-seeking) .vs-info{visibility:hidden}
.video-quick-comment.video-comments-sheet{height:auto!important;max-height:40dvh}
.video-quick-comment .sheet-content{display:none}
@media(max-width:350px){.q-migrated .video-stream .vs-actions{gap:4px;padding-left:8px;padding-right:8px}.q-migrated .video-stream .vs-actions svg{width:24px;height:24px}.q-migrated .video-stream .vs-actions .vs-write-comment{padding:0 10px}}
.q-migrated .video-stream .vs-seek-preview{display:none;position:absolute;left:50%;bottom:110px;transform:translateX(-50%);max-width:120px;max-height:150px;width:auto;height:auto;object-fit:contain;border:1px solid #ffffff80;border-radius:8px;pointer-events:none;z-index:4;background:#090b0f}
.q-migrated .video-stream .is-seeking .vs-seek-preview{display:block}
.q-migrated .video-stream .is-seeking .spin{display:none}
/* Quick comment follows the visual viewport bottom, including iOS keyboard pan. */
.video-quick-comment.video-comments-sheet{margin:0 auto;border-radius:16px 16px 0 0;max-height:none}
.video-quick-comment.video-comments-sheet>header{display:none}
.video-quick-comment.video-comments-sheet #comment-form{padding:12px 12px calc(12px + env(safe-area-inset-bottom));border-top:0;align-items:flex-end}
.video-quick-comment.video-comments-sheet.keyboard-open #comment-form{padding-bottom:12px}
.video-quick-comment.video-comments-sheet #comment-body{min-height:56px;border-radius:14px;outline:0;box-shadow:none;border:1px solid transparent;caret-color:var(--q-accent);background:var(--q-bg)}
.video-quick-comment.video-comments-sheet #comment-body:focus-visible{border-color:var(--q-field-line)}

/* Explore begins with its own heading; inset viewport includes the full stroke. */
body.explore-view>.site-header{display:none}
/* Message title belongs to the page header, not a separate white surface. */
body.q-migrated.messages-view .site-header{background:var(--q-bg)}
body.q-migrated.messages-view .home-tabs{background:transparent}
/* Account identity stays secondary to the display name. */
.q-migrated .profile-handle{display:block;min-height:44px;padding:4px 0;text-align:left;font-size:13px;overflow-wrap:anywhere}

.q-migrated .profile-handle svg{vertical-align:middle;margin-left:6px;flex:none}

.q-migrated .profile-name-row{display:flex;align-items:center;gap:4px;min-width:0}
.q-migrated .profile-name-row>span{min-width:0;overflow-wrap:anywhere}
.q-migrated .profile-name-edit{display:inline-grid;place-items:center;width:44px;min-width:44px;height:44px;padding:0;color:var(--q-muted);border:0;background:transparent;flex:none}
.q-migrated .profile-name-edit:hover{color:var(--q-accent)}
.q-ai-declaration{padding:12px 0;border-bottom:1px solid var(--q-line)}
.q-ai-declaration label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;min-height:44px;font-size:15px;color:var(--q-ink)}
.q-ai-declaration input.q-toggle{flex:none;margin:0}
.q-ai-declaration p{font-size:13px;line-height:1.6;color:var(--q-muted);margin:0 0 4px}
.q-ai-label{display:block;width:fit-content;max-width:100%;font-size:12px;line-height:1.6;padding:0;margin:8px 0 0;color:var(--q-muted);background:none;white-space:normal}
.vs-context .q-ai-label{color:#fff;background:none}

/* Publisher labels align left; supporting icons follow their text. */
.reference-editor .editor-options .editor-option>span:first-child{position:relative;display:flex;align-items:center;min-height:28px;padding-left:0;gap:8px;white-space:normal;line-height:1.5}
.reference-editor .editor-options .editor-option>span:first-child>svg{position:static;order:1;transform:none;margin:0;width:21px;height:21px;flex-shrink:0}
.reference-editor .editor-options #editor-flight>span:first-child>svg{width:34px;height:auto;aspect-ratio:1507/1044}
.reference-editor .editor-options .q-ai-declaration{padding:0 0 12px}
.reference-editor .editor-options .q-ai-declaration label{min-height:52px}
.reference-editor .editor-options .q-ai-declaration label>span{padding-left:0;line-height:1.5}
.reference-editor .editor-options .q-ai-declaration p{margin:0}

/* All feed media types share one enclosed body: content, author, flight. */
.q-migrated .feed-card.community-card:not(.home-feed-card){background:var(--q-surface)!important}
.q-migrated .feed-card .feed-copy{padding:8px 10px}
.q-migrated .feed-card .feed-copy>.flight-mark{display:flex;align-items:center;gap:4px;max-width:100%;min-height:44px;padding:4px 0;margin:0;font-size:11px;line-height:1.4;flex-wrap:nowrap;color:var(--q-muted);background:transparent;border:0}
.q-migrated .feed-card .feed-copy>.flight-mark::before{display:none}
.q-migrated .feed-card .feed-copy>.flight-mark>svg{width:22px;height:auto;aspect-ratio:1507/1044;flex:0 0 22px;border-radius:2px}
.q-migrated .feed-card .feed-copy>.flight-mark>span{white-space:nowrap}
.q-migrated .feed-card .feed-copy>.flight-mark>b{font-size:11px;font-weight:500;flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.q-migrated .feed-card .community-author{width:100%;min-width:0}

.q-migrated .feed-card .feed-copy>.flight-mark{min-height:32px;padding:0;line-height:1.4}
.q-migrated .feed-card .cover-button{position:relative}
.profile-review-badge{display:block;width:fit-content;max-width:calc(100% - 16px);box-sizing:border-box;padding:3px 7px;border-radius:4px;font-size:12px;line-height:1.5;color:#fff;background:#3A3E44;margin:0 0 6px;pointer-events:none}
.cover-button>.profile-review-badge{position:absolute;left:8px;top:8px;z-index:2;margin:0}

/* Own profile: compact header, narrow consistent masonry gutters. */
.q-migrated .own-profile.profile-hero{padding:8px 12px 0;margin:0;border-radius:0;background:linear-gradient(180deg,#3A3E44 0%,#c6c8cc 35%,#fff 100%);--q-ink:#25272B;--q-muted:#5D5F63;--q-accent:#3A3E44;color:#25272B}
html[data-q-dark] .q-migrated .own-profile.profile-hero:not(.with-background){background:linear-gradient(180deg,#3A3E44 0%,#c6c8cc 35%,#fff 100%);color:#25272B}
.q-migrated .own-profile .profile-content,.q-migrated .own-profile:not(.with-background) .profile-content{padding-top:0;margin-top:0;min-height:0}
.q-migrated .own-profile .profile-top{margin:0}
.q-migrated .own-profile .profile-name-row{margin:0;min-height:36px}
.q-migrated .own-profile .profile-name-edit svg{width:14px;height:14px}
.q-migrated .own-profile .profile-handle{width:fit-content;max-width:100%;margin:0;min-height:32px;padding:0;font-size:12px;color:#5D5F63}
.q-migrated .profile-handle svg{width:13px;height:13px;margin-left:4px}
.q-migrated .own-profile .profile-stats{margin:0;padding:0;gap:18px;min-height:40px;align-items:center;color:#5D5F63}
.q-migrated .own-profile .profile-stats button{padding:0;min-height:40px;color:#5D5F63}
.q-migrated .own-profile+.profile-tabs{margin:0;padding-top:0;padding-bottom:0}
.q-migrated .own-profile .profile-background-edit{z-index:0}
.q-migrated .own-profile.with-background::after{background:linear-gradient(180deg,#3A3E4440 0%,#ffffff66 35%,#fff 100%)}
.q-migrated .own-profile .profile-name-row>span,.q-migrated .own-profile .profile-stats b{color:#25272B}
#profile-posts>.grid{column-gap:4px;font-size:0;line-height:0}
#profile-posts .profile-note{display:inline-block;margin:0 0 4px;vertical-align:top;line-height:1.6;font-size:15px}
#profile-posts .profile-note>.feed-card{margin:0!important;display:block}
#profile-posts .feed-card .feed-copy{padding:4px 8px}
#profile-posts .feed-card .community-author{min-height:32px}
#profile-posts .feed-card .community-author>button{min-height:32px}
#profile-posts .feed-card .feed-copy>.flight-mark{min-height:26px;margin:0;padding:0}

.q-migrated .own-profile .profile-top-actions>.secondary{background:#EEF0F4;color:#3A3E44}
.q-migrated .own-profile .profile-name-edit{color:#5D5F63}

/* Edge-to-edge personal cover flows behind the rounded content surface. */
body.q-migrated.profile-view #main{padding-left:0;padding-right:0}
.q-migrated.profile-view .own-profile.profile-hero{overflow:visible;isolation:auto;padding-left:16px;padding-right:16px;background:transparent!important}
.q-migrated.profile-view .own-profile::after{content:"";position:absolute;inset:0 0 -64px;z-index:-1;background:linear-gradient(180deg,#3A3E44 0%,#c6c8cc 42%,#fff 100%);pointer-events:none}
.q-migrated.profile-view .own-profile .profile-background{height:calc(100% + 64px);z-index:-2}
.q-migrated.profile-view .own-profile.with-background::after{background:linear-gradient(180deg,#3A3E4420 0%,#ffffff70 42%,#fff 100%)}
.q-migrated.profile-view .profile-body{position:relative;isolation:isolate;border-radius:18px 18px 0 0;overflow:hidden;background:linear-gradient(180deg,#ffffffd9 0,#fff 64px);min-height:50vh;--q-bg:#fff;--q-surface:#fff;--q-raised:#fff;--q-ink:#25272B;--q-muted:#6a6c70;--q-accent:#3A3E44;--q-tint:#EEF0F4;--q-line:#E5E7EB;color:var(--q-ink);padding-bottom:12px}
.q-migrated.profile-view .profile-body .profile-tabs{margin:0;padding:4px 16px 0;background:transparent;color:var(--q-ink)}
.q-migrated.profile-view .profile-body .profile-tabs button{color:var(--q-muted)}
.q-migrated.profile-view .profile-body .profile-tabs button.active{color:var(--q-accent)}
.q-migrated.profile-view .profile-body :is(.profile-tools,.profile-state-tabs){padding-left:12px;padding-right:12px;color:var(--q-ink)}
.q-migrated.profile-view .profile-body #profile-posts{padding:0 4px}
.q-migrated.profile-view .profile-body .feed-card{background:#F6F7F8!important}
.q-migrated.profile-view .profile-body .profile-tabs small{color:var(--q-muted)}

/* Profile follows the existing system/manual theme controller. */
html[data-q-dark] .q-migrated.profile-view :is(.own-profile.profile-hero,.profile-body){--q-bg:inherit;--q-surface:inherit;--q-raised:inherit;--q-ink:inherit;--q-muted:inherit;--q-accent:inherit;--q-tint:inherit;--q-line:inherit;color:var(--q-ink)}
html[data-q-dark] .q-migrated.profile-view .own-profile::after{background:linear-gradient(180deg,#3A3E44 0%,#26282C 42%,#16181B 100%)}
html[data-q-dark] .q-migrated.profile-view .own-profile.with-background::after{background:linear-gradient(180deg,#16181B66 0%,#16181Bb3 42%,#16181B 100%)}
html[data-q-dark] .q-migrated.profile-view .profile-body{background:linear-gradient(180deg,#16181Be8 0,#16181B 64px)}
html[data-q-dark] .q-migrated.profile-view .profile-body .feed-card{background:var(--q-surface)!important}
html[data-q-dark] .q-migrated.profile-view .own-profile :is(.profile-name-row>span,.profile-stats b){color:var(--q-ink)}
html[data-q-dark] .q-migrated.profile-view .own-profile :is(.profile-handle,.profile-name-edit,.profile-stats,.profile-stats button){color:var(--q-muted)}
html[data-q-dark] .q-migrated.profile-view .own-profile .profile-top-actions>.secondary{background:var(--q-raised);color:var(--q-ink)}

.q-migrated.profile-view .profile-body .profile-tabs{display:flex;gap:16px;align-items:flex-start;overflow-x:auto;padding:4px 12px 0}
.q-migrated.profile-view .profile-body .profile-tabs>button{flex:none}
.q-migrated.profile-view .profile-body .profile-tabs>.profile-flight-entry{margin-left:auto;display:flex;flex-direction:row;align-items:center;gap:4px;padding:8px 0;min-height:44px;font-size:13px;white-space:nowrap;color:var(--q-accent)}
.q-migrated.profile-view .profile-tabs>.profile-flight-entry svg{width:22px;height:auto;max-height:22px;flex:none}
.q-migrated.profile-view .profile-body .profile-state-tabs{margin:4px 0 6px}
@media(max-width:360px){.q-migrated.profile-view .profile-body .profile-tabs{gap:10px;padding-left:8px;padding-right:8px}.q-migrated.profile-view .profile-body .profile-tabs>.profile-flight-entry{font-size:12px}}

/* Personal navigation: 75% drawer, leaving the live profile visible. */
body.q-migrated .profile-toolbar{display:flex;justify-content:space-between;margin:-4px 0 4px;pointer-events:auto}
body.q-migrated .profile-toolbar button{display:grid;place-items:center;width:44px;height:44px;padding:10px;background:transparent;border:0;color:inherit}
body.q-migrated .profile-toolbar svg{width:24px;height:24px}
dialog.profile-drawer{position:fixed;inset:0 auto 0 0;margin:0;width:75vw;max-width:420px;height:100dvh;max-height:100dvh;padding:16px;padding-top:max(16px,env(safe-area-inset-top));box-sizing:border-box;border:0;border-radius:0;background:var(--q-surface);color:var(--q-ink);overflow-y:auto;animation:profile-drawer-in 200ms ease-out}
dialog.profile-drawer::backdrop{background:rgb(0 0 0 / .28)}
.profile-drawer .drawer-dismiss{display:grid;place-items:center;margin:0 0 8px auto;width:44px;height:44px;border:0;background:transparent;color:var(--q-muted)}
.profile-drawer svg{width:20px;height:20px}.profile-drawer .creator-entry{display:block;width:100%;border:0;border-radius:12px;background:var(--q-tint);color:var(--q-ink);padding:16px;text-align:left}
.creator-entry strong{display:flex;justify-content:space-between;font-size:17px}.creator-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.creator-summary b{display:block;font-size:23px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.creator-summary small{display:block;color:var(--q-muted);font-size:13px}.drawer-load{font-size:12px;min-height:20px}.drawer-links button{width:100%;min-height:52px;background:transparent;border:0;border-bottom:1px solid var(--q-line);text-align:left;color:var(--q-ink);display:flex;align-items:center;justify-content:space-between}.profile-drawer footer{display:flex;gap:8px;margin-top:32px}.profile-drawer footer button{flex:1;min-height:44px;border:0;border-radius:12px;background:var(--q-bg);color:var(--q-ink);font-size:13px}
.creator-period,.creator-metrics{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.creator-analysis button[aria-pressed=true]{background:var(--q-tint);color:var(--q-accent)}.creator-chart{width:100%;max-width:500px;height:auto;display:block}.creator-table{width:100%;border-collapse:collapse}.creator-table th,.creator-table td{padding:6px 8px;border-bottom:1px solid var(--q-line);text-align:left}.creator-posts button{display:flex;gap:12px;width:100%;text-align:left;background:transparent;border:0;border-bottom:1px solid var(--q-line);color:var(--q-ink);padding:12px 0}.creator-posts button span{flex:1;overflow-wrap:anywhere}.creator-posts b{white-space:nowrap}.drawer-history-row{display:flex;border-bottom:1px solid var(--q-line)}.drawer-history-row button{min-height:44px;background:transparent;border:0;color:var(--q-ink)}.drawer-history-row button:first-child{flex:1;text-align:left}.drawer-history-row svg{width:18px;height:18px}#drawer-feedback textarea{display:block;width:100%;min-height:100px}
@keyframes profile-drawer-in{from{transform:translateX(-100%)}to{transform:translateX(0)}}@media(prefers-reduced-motion:reduce){dialog.profile-drawer{animation:none}}
.q-ui.creator-analysis svg.creator-chart{width:100%;height:auto;max-width:500px;stroke:none;fill:none}
.q-ui.creator-analysis .creator-chart text{stroke:none;fill:var(--q-muted)}
dialog.profile-drawer::backdrop{backdrop-filter:none}
/* Drawer actions remain below future menu sections; short screens may scroll. */
dialog.profile-drawer[open]{display:flex;flex-direction:column}
.profile-drawer .creator-entry,.profile-drawer .drawer-dismiss,.profile-drawer footer{flex-shrink:0}
.profile-drawer footer{margin-top:auto;padding-top:24px;padding-bottom:env(safe-area-inset-bottom)}
.creator-metrics>button{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left}
.creator-metrics>button b{font-size:24px;font-variant-numeric:tabular-nums}
.history-tools{display:flex;align-items:center;justify-content:space-between;gap:8px}.history-pull{font-size:13px;color:var(--q-muted)}.history-sentinel{height:1px}
.q-migrated .feed-card .card-context{display:flex;align-items:center;gap:4px;min-height:28px;width:100%;margin:0}
.q-migrated .feed-card .card-context>.flight-mark{display:flex;align-items:center;gap:3px;min-width:0;max-width:calc(100% - 30px);padding:0;margin:0;background:transparent;border:0;color:var(--q-muted);font-size:11px;min-height:32px;white-space:nowrap}
.q-migrated .feed-card .card-context>.flight-mark>svg{width:16px;height:auto;aspect-ratio:1507/1044;flex:none}
.q-migrated .feed-card .card-context>.flight-mark>b{font-weight:400;overflow:hidden;text-overflow:ellipsis}
.q-migrated .feed-card .card-views{display:inline-flex;align-items:center;gap:3px;margin-left:auto;color:var(--q-muted);font-size:11px;white-space:nowrap;flex-shrink:0}
.q-migrated .feed-card .card-views svg{width:14px;height:14px;flex:none}
@media(max-width:360px){.q-migrated .feed-card .card-context>.flight-mark>span{display:none}}

/* Cover metadata: image bottom edge, never an extra row below the author. */
.q-migrated .feed-card .card-cover{position:relative;overflow:hidden;border-radius:12px 12px 0 0}
.q-migrated .feed-card .card-cover>.cover-button{display:block;width:100%;margin:0}
.q-migrated .feed-card .card-cover>.card-context{position:absolute;inset:auto 0 0;z-index:1;box-sizing:border-box;padding:8px 7px 2px;min-height:36px;background:linear-gradient(transparent,rgba(0,0,0,.72));color:#fff;pointer-events:none}
.q-migrated .feed-card .card-cover .card-context>.flight-mark{color:inherit;pointer-events:auto;max-width:calc(100% - 40px);min-height:32px;font-size:11px;gap:3px}
.q-migrated .feed-card .card-cover .card-context>.flight-mark>span,.q-migrated .feed-card .card-cover .card-context>.flight-mark>i{display:none}
.q-migrated .feed-card .card-cover .card-context>.flight-mark>svg{width:18px;height:auto;padding:1px;background:#fff;border-radius:3px}
.q-migrated .feed-card .card-cover .card-views{color:inherit;font-variant-numeric:tabular-nums}
.q-migrated .feed-card .card-cover .video-duration{top:8px;right:8px;bottom:auto}
.q-migrated .feed-card .card-cover--text>.text-cover{width:100%;padding:12px 12px 40px;text-align:left}
.q-migrated .feed-card .card-cover--text>.card-context{background:transparent;color:var(--q-muted)}
.q-migrated .feed-card .card-cover--text>.text-cover{display:block;color:var(--q-ink);background:transparent;border:0;line-height:1.6}.q-migrated .feed-card .card-cover--text>.text-cover>strong{display:block;margin-bottom:4px}

/* Flight identity on covers stays light in both themes; render the original SVG only once. */
.q-migrated .feed-card .card-cover .card-context>.flight-mark{background:#F6F7F8!important;color:#3A3E44!important;padding:0 5px;border-radius:5px;flex-wrap:nowrap;min-height:24px}
.q-migrated .feed-card .card-cover .card-context>.flight-mark::before{display:none!important}
.q-migrated .feed-card .card-cover .card-context>.flight-mark>b{color:inherit!important}
.q-migrated .feed-card .card-cover .card-context>.flight-mark>svg{background:transparent!important;border-radius:0!important;padding:0;mix-blend-mode:normal;filter:none;width:20px;height:auto;aspect-ratio:1507/1044;flex:0 0 20px}

.flight-trust{color:var(--q-muted);font-size:13px;margin:4px 0 8px}.flight-trust summary{cursor:pointer;min-height:44px;display:flex;align-items:center;text-decoration:underline;text-underline-offset:3px}.flight-trust p{margin:0 0 8px;line-height:1.6}.public-footprint strong small{font-weight:400;font-size:12px;margin-left:6px;color:var(--q-muted)}

/* Public profile shares the full-width profile hierarchy, without private tabs. */
.q-migrated #dialog-body:has(>.guest-profile){padding:0}
.guest-profile{--profile-end:var(--q-bg);background:var(--q-bg);min-height:100%}
.q-migrated .guest-profile .profile-hero{margin:0;padding:16px 16px 20px;border-radius:0;background:linear-gradient(#3A3E4440,var(--profile-end));color:var(--q-ink);overflow:hidden}
.q-migrated .guest-profile .profile-hero.with-background::after{background:linear-gradient(180deg,transparent,var(--profile-end))}
.q-migrated .guest-profile .profile-background{width:100%;height:100%;object-fit:cover;inset:0}
.q-migrated .guest-profile .profile-content{position:relative;z-index:1}
.q-migrated .guest-profile .profile-hero h1{color:var(--q-ink);margin:12px 0 4px}
.q-migrated .guest-profile .profile-hero p{color:var(--q-muted)}
.guest-profile .profile-handle{margin:0;font-size:13px;min-height:36px}
.guest-profile .profile-handle svg{width:13px;height:13px}
.guest-profile .profile-stats{display:flex;flex-wrap:wrap;gap:16px;margin:14px 0 16px;font-size:13px}
.guest-profile .profile-stats b{font-size:17px}
.guest-profile-body{border-radius:18px 18px 0 0;background:var(--q-bg);overflow:hidden;min-height:45vh;padding-bottom:16px}
.guest-profile-tabs{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 12px 8px;min-height:48px}
.guest-flight-entry{display:flex;align-items:center;gap:4px;font-size:13px;min-height:44px;color:var(--q-accent)}
.guest-flight-entry svg{width:24px;height:auto;aspect-ratio:1507/1044;background:#F6F7F8;border-radius:3px}
.guest-flight-entry small{font-size:11px;color:var(--q-muted)}
.guest-profile-body>.grid{padding:0 4px;gap:4px;column-gap:4px;margin:0}
.guest-profile-body .feed-card{margin-bottom:4px}
.q-migrated .flight-sheet,.q-migrated .flight-date-sheet{--card:var(--q-surface);--text:var(--q-ink);--soft:var(--q-tint);--muted:var(--q-muted);--green:var(--q-accent)}
.q-migrated .flight-form-actions{background:var(--q-surface)}
.q-migrated .flight-form .flight-date-trigger{color:var(--q-ink);background:var(--q-tint)}
.q-migrated .flight-calendar .is-selected{color:var(--q-on-accent)}

.footprint-public-settings{display:flex;align-items:center;gap:8px;width:100%;text-align:left}.footprint-public-settings small{margin-left:auto;font-size:13px;color:var(--q-muted)}

.q-migrated .flight-form .flight-confirm{justify-content:space-between;min-height:48px;gap:12px}
.q-migrated .flight-form .flight-confirm input{order:1;width:44px;min-width:44px;height:26px;min-height:26px;margin:0;flex:none}
.q-migrated .footprint-switches{display:grid;grid-template-columns:1fr;gap:0}
.q-migrated .footprint-switches label{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;width:100%;box-sizing:border-box}
.q-migrated .footprint-switches input{order:1;flex:none;width:44px;min-width:44px;height:26px;min-height:26px;margin:0}

.q-migrated #drawer-feedback .feedback-writing textarea{background:transparent;border:0;border-radius:0;box-shadow:none;padding:12px 0;min-height:96px;font-size:16px;line-height:1.7;resize:none;width:100%}.feedback-photo-preview{display:flex;gap:8px;flex-wrap:wrap}.feedback-photo-preview button{display:grid;gap:4px;font-size:12px}.feedback-photo{width:80px;height:80px;object-fit:cover;border-radius:8px}.feedback-items article small{display:block}.q-migrated [data-feedback-more][hidden]{display:none!important}

/* Appearance options keep full-width labels and reuse the shared switch. */
.q-migrated .theme-settings{display:block;width:100%}.q-migrated .theme-settings .q-switch{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:16px;min-height:52px;width:100%;margin:0}.q-migrated .theme-settings .q-switch>span{flex:1;min-width:0;white-space:nowrap;color:var(--q-ink)}.q-migrated .theme-settings input.q-toggle{flex:0 0 44px;width:44px;margin:0}
.q-migrated .theme-settings.q-ui{background:transparent;font:16px/1.5 var(--q-font)}.q-migrated .theme-settings input.q-toggle{background:#fff;box-shadow:inset 0 0 0 1px #8B8D91}.q-migrated .theme-settings input.q-toggle:checked{background:var(--q-toggle-on,#0FA386);box-shadow:none}.q-migrated .theme-settings input.q-toggle::before{background:#8B8D91;transform:translateX(0)}.q-migrated .theme-settings input.q-toggle:checked::before{background:#fff;transform:translateX(18px)}

/* Legacy forms must not override the shared switch track or thumb. */
.q-migrated :is(input.q-toggle,.q-switch input)[type=checkbox]{appearance:none;-webkit-appearance:none;position:relative;display:inline-block;box-sizing:border-box;flex:0 0 44px;width:44px;min-width:44px;height:26px;min-height:26px;padding:0;border:0;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1px #8B8D91}
.q-migrated :is(input.q-toggle,.q-switch input)[type=checkbox]::before{content:"";position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:#8B8D91;transform:translateX(0)}
.q-migrated :is(input.q-toggle,.q-switch input)[type=checkbox]:checked{background:var(--q-toggle-on,#0FA386);box-shadow:none}
.q-migrated :is(input.q-toggle,.q-switch input)[type=checkbox]:checked::before{background:#fff;transform:translateX(18px)}
.q-migrated :is(input.q-toggle,.q-switch input)[type=checkbox]::after{content:none}
.q-migrated :is(input.q-toggle,.q-switch input)[type=checkbox][hidden]{display:none}
.q-migrated .reference-editor .editor-option>span:last-child{color:var(--q-muted)}
.q-migrated .reference-editor .draft-button:not(:disabled){color:var(--q-accent)}
.q-migrated .video-card-frame{background:var(--q-tint)}
/* Flight history uses the same page/card surface separation as the home feed. */
.q-migrated #dialog:has(.flight-stories){background:var(--q-bg)}
.q-migrated .flight-stories .feed-card{background:var(--q-surface);border-radius:12px;overflow:hidden}
.q-migrated .flight-compose-dock{background:linear-gradient(to bottom,transparent,var(--q-bg))}

/* Circles use uploaded photos or the first character of their name. */
.q-migrated :is(.group-avatar,.group-avatar img,.new-group-avatar,.new-group-avatar img,.group-tile .group-avatar,.joined-strip .group-avatar){border-radius:50%!important;overflow:hidden}
.q-migrated .group-avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;background:var(--q-tint);color:var(--q-accent);font-size:22px;flex:none}
.q-migrated .group-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.q-migrated .create-identity .new-group-avatar{background:var(--q-tint);color:var(--q-accent);display:grid;place-items:center}
.q-migrated .create-group-dialog .new-group-avatar>.group-initial{display:block;font-size:26px;line-height:1}

.circle-limit-notice{color:var(--q-muted);font-size:13px;margin:8px 0 12px}.q-migrated .circle-owner-name{color:var(--q-accent);font-weight:600}.circle-owner-badge{display:inline-block;margin-left:4px;padding:0 4px;border-radius:4px;background:var(--q-tint);color:var(--q-accent);font-size:10px;white-space:nowrap}

/* Unread total belongs to the message destination on every main tab. */
.q-migrated .nav [data-view="message"]{position:relative}
.q-migrated .nav .nav-unread{position:absolute;top:0;left:calc(50% + 6px);min-width:18px;height:18px;padding:0 4px;box-sizing:border-box;border-radius:999px;background:var(--q-unread,#D84A05);color:#fff;display:flex;align-items:center;justify-content:center;font-size:11px;line-height:1;text-align:center;font-weight:600;font-variant-numeric:tabular-nums;border:1px solid var(--q-surface);pointer-events:none}
.q-migrated .nav .nav-unread[hidden]{display:none}



/* Message actions retain the existing row layout and theme tokens. */
.inbox-swipe{position:relative;overflow:hidden;touch-action:pan-y;isolation:isolate}
.inbox-swipe-front{position:relative;display:flex;align-items:stretch;background:var(--q-bg);transition:transform .18s ease;z-index:1}
.inbox-swipe-front>.conversation{flex:1;min-width:0;width:auto}
.inbox-swipe-more{flex:0 0 44px;min-height:44px;display:grid;place-items:center;color:var(--q-muted);padding:0}
.inbox-swipe-more svg{width:20px;height:20px}
.inbox-swipe-actions{position:absolute;inset:0 0 0 auto;width:160px;display:flex}
.inbox-swipe-actions button{width:80px;min-height:44px;padding:8px;color:var(--q-ink);background:var(--q-tint);font-size:14px}
.inbox-swipe-actions [data-inbox-action=delete]{color:#fff;background:#B3261E}
.inbox-swipe.is-open .inbox-swipe-front{transform:translateX(-160px)}
.inbox-swipe.confirm-delete [data-inbox-action=hide]{display:none}
.inbox-swipe.confirm-delete [data-inbox-action=delete]{width:160px}
.inbox-swipe button:disabled{cursor:wait}
@media(prefers-reduced-motion:reduce){.inbox-swipe-front{transition:none}}
/* IP provenance is secondary text; an optional place is separate from it. */
.note-place{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:4px 8px;border:1px solid var(--q-line);border-radius:6px;color:var(--q-ink);font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.note-place svg{width:16px;height:16px;flex:none}.note-place span{min-width:0}
.ip-region,.profile-ip,.comment-region{color:var(--q-muted);font-size:12px;line-height:1.5}.profile-ip{margin:8px 0}.comment-region{margin:6px 0 0}
.place-picker{display:grid;gap:12px}.place-picker p{margin:0}.place-picker .row input{min-width:0;flex:1}.place-picker .row button{flex:none}.place-result{display:flex;flex-direction:column;align-items:flex-start;width:100%;min-height:44px;padding:10px 0;text-align:left;border-bottom:1px solid var(--q-line);white-space:normal;overflow-wrap:anywhere}.place-result small{color:var(--q-muted);font-size:12px}.place-result strong{font-weight:500}.place-picker [data-place-results]:empty{display:none}.vs-place,.vs-ip{display:block;font-size:12px;line-height:1.5;margin-top:6px}

/* Place selection: borderless writing and a compact list in a bottom sheet. */
.place-sheet.editor-sheet{position:fixed;inset:auto 0 0;width:min(100%,560px);height:min(78dvh,720px);max-height:90dvh;margin:0 auto;border-radius:20px 20px 0 0;background:var(--q-surface);color:var(--q-ink)}
.place-sheet.editor-sheet>header{grid-template-columns:44px 1fr 44px;min-height:52px;height:52px;padding:0 12px}.place-sheet>header h2{text-align:center}.place-sheet>header button{grid-column:3;grid-row:1}.place-sheet>header h2{grid-column:2;grid-row:1}.place-sheet>header>span{grid-column:1;grid-row:1}
.place-sheet .sheet-content{padding:0;display:flex;flex:1;min-height:0;overflow:hidden;background:var(--q-surface)}
.place-sheet .place-picker{display:flex;flex-direction:column;width:100%;min-height:0;gap:0;background:var(--q-surface)}
.place-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 16px 16px;scrollbar-color:var(--q-line) transparent}
.place-sheet .place-search{display:flex;align-items:center;gap:8px;background:var(--q-bg);border-radius:12px;padding:0 4px 0 12px;margin:4px 0 8px}
.place-search>svg,.place-nearby>svg{width:20px;height:20px;flex:none;color:var(--q-muted)}
.place-sheet .place-search input,.place-sheet #place-name{border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--q-ink);font:inherit;font-size:16px;line-height:1.6;min-width:0;margin:0;caret-color:var(--q-accent)}
.place-sheet .place-search input{width:100%;flex:1;padding:10px 0;min-height:44px}.place-sheet .place-search .q-btn{padding:0 12px;background:transparent;flex:none}
.place-sheet input::placeholder,.place-sheet textarea::placeholder{color:var(--q-muted);opacity:1}
.place-sheet .place-nearby{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:8px 0;background:transparent;border:0;border-radius:0;text-align:left;color:var(--q-accent);font-size:15px}.place-nearby span{flex:1}
.place-sheet .place-consent,.place-sheet .place-privacy{font-size:12px;line-height:1.6;color:var(--q-muted);margin:0 0 12px}.place-sheet .place-privacy{margin:16px 0 0}
.place-sheet [data-place-status]:empty{display:none}.place-sheet [data-place-status]{padding:8px 0;font-size:13px}
.place-sheet .place-result{position:relative;display:flex;gap:3px;padding:14px 32px 14px 0;min-height:64px;border:0;border-bottom:1px solid var(--q-line);border-radius:0;background:transparent;color:var(--q-ink)}
.place-sheet .place-result strong{font-size:16px;font-weight:500}.place-sheet .place-result small{font-size:13px;line-height:1.5}.place-sheet .place-result::after{content:'';position:absolute;right:4px;top:24px;width:16px;height:16px;border:1px solid var(--q-field-line);border-radius:50%}.place-sheet .place-result[aria-pressed=true]::after{background:var(--q-accent);border-color:var(--q-accent);box-shadow:inset 0 0 0 4px var(--q-surface)}
.place-sheet .place-custom{margin-top:8px;border:0}.place-custom summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:14px;color:var(--q-accent);list-style:none}.place-custom summary::-webkit-details-marker{display:none}
.place-sheet #place-name{display:block;width:100%;resize:vertical;min-height:80px;padding:8px 0;border-bottom:1px solid var(--q-line)}
.place-sheet .place-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;margin:0;padding:12px 16px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--q-line);background:var(--q-surface)}
.place-sheet [data-place-save]{min-width:112px}.place-sheet :is(button,summary):focus-visible{outline:2px solid var(--q-accent);outline-offset:-2px}.place-sheet .place-search:focus-within{outline:none}

/* Writing surfaces use the caret, not a surrounding focus rectangle. */
.q-migrated .place-sheet :is(#place-query,#place-name):is(:focus,:focus-visible),.q-migrated .reference-editor .compose-body textarea:is(:focus,:focus-visible),.q-migrated .full-note-editor .full-note-text:is(:focus,:focus-visible){outline:none;box-shadow:none;border:0;caret-color:var(--q-accent)}

/* Note detail flight entry sizes to its contents, preserving the 44px hit area. */
.q-migrated .flight-card .flight-mark{display:inline-flex;width:fit-content;max-width:100%;min-height:44px;gap:6px;padding:6px 10px;font-size:13px;line-height:1.5}
.q-migrated .flight-card .flight-mark>i{margin-left:4px}
.q-migrated .flight-card small{padding:0;margin-top:2px}

/* Detail metadata: optional context, then time and coarse region. */
.q-migrated .note-copy .published-context{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;margin:8px 0}
.q-migrated .note-copy .published-context:empty{display:none}
.q-migrated .note-copy .flight-card--compact{display:inline-flex;margin:0}
.q-migrated .note-copy .flight-card--compact .flight-mark{margin:0;padding:4px 10px;font-size:13px;min-height:44px}
.q-migrated .note-copy .note-meta{display:flex;align-items:center;flex-wrap:wrap;gap:0 8px;margin-top:4px;font-size:12px}
.q-migrated .note-copy .note-meta .ip-region{font:inherit;color:inherit;min-height:44px;padding:0 4px;border:0;background:transparent}

/* Compact reading rhythm: no outer padding around an existing author hit row. */
.q-migrated .feed-card .feed-copy{padding:0 8px}
.q-migrated .feed-card .feed-copy>.title{margin:0;padding:6px 0 0;min-height:0;line-height:1.4}
.q-migrated .feed-card{margin-bottom:8px}
.q-migrated #dialog.note-detail .note-copy{padding:6px 14px 0}
.q-migrated #dialog.note-detail .note-copy h1{margin-bottom:6px}
.q-migrated #dialog.note-detail .body-text{margin:0 0 6px}
.q-migrated #dialog.note-detail .body-text:empty{display:none;margin:0}
.q-migrated #dialog.note-detail .published-context{margin:0;gap:0 8px}
.q-migrated #dialog.note-detail .flight-card--compact .flight-mark{min-height:32px;padding:2px 8px}
.q-migrated #dialog.note-detail .note-meta{margin:0;min-height:32px}
.q-migrated #dialog.note-detail .note-meta .ip-region{min-height:32px}
.q-migrated #dialog.note-detail .comments-section>h3{margin:0 0 6px;padding-top:8px}

.q-migrated .community-card{margin-bottom:8px!important}
.q-migrated .masonry-column{gap:8px}
.q-migrated .masonry-column>.community-card{margin:0!important}

/* Inbox: search belongs to the heading; spacing stays within each row. */
.q-migrated.messages-view .site-header .inbox-search-toggle{position:absolute;right:0;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;padding:0;color:var(--q-ink)}
.q-migrated.messages-view .home-tabs{position:static}
.q-migrated.messages-view .inbox-search-toggle svg{width:22px;height:22px}
.q-migrated.messages-view .inbox-search[hidden]{display:none}
.q-migrated.messages-view .inbox-search{margin:0 0 4px;gap:4px}
.q-migrated.messages-view .inbox-search input{min-width:0;flex:1;border:0;box-shadow:none;background:var(--q-surface);border-radius:8px}
.q-migrated.messages-view .inbox-search input:focus{outline:none;box-shadow:none}
.q-migrated.messages-view .notice-shortcuts{padding:4px 0 8px}
.q-migrated.messages-view .notice-shortcuts button{gap:4px}
.q-migrated.messages-view .conversation{min-height:56px;padding:8px 0;gap:10px}
.q-migrated.messages-view .message-empty{margin:8px 0 0;padding:0}
.q-migrated.messages-view .message-utilities{padding:0;margin:0}

/* Detail context tags share one outline and height; flight comes first. */
.q-migrated #dialog.note-detail .published-context .note-place,
.q-migrated #dialog.note-detail .published-context .flight-mark{box-sizing:border-box;min-height:32px;padding:4px 8px;border:1px solid var(--q-line);border-radius:6px;background:transparent;line-height:1.5;font-size:13px;gap:6px}
.q-migrated #dialog.note-detail .published-context .flight-mark:before{display:none}
.q-migrated #dialog.note-detail .published-context .flight-mark>svg{width:28px;height:auto;aspect-ratio:1507/1044}

/* Place notes: a compact bottom sheet over the original note. */
.q-migrated .place-notes-sheet{box-sizing:border-box;position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,560px);max-width:100%;height:78dvh;max-height:90dvh;border:0;border-radius:20px 20px 0 0;padding:0;background:var(--q-surface);color:var(--q-ink)}
.q-migrated .place-notes-sheet[open]{display:flex;flex-direction:column}
.q-migrated .place-notes-sheet>header{display:flex;align-items:center;justify-content:space-between;flex:none;padding:4px 12px;gap:8px}
.q-migrated .place-notes-sheet>header h2{font-size:18px;line-height:1.4;margin:0;overflow-wrap:anywhere}
.q-migrated .place-notes-sheet>header button{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0}
.q-migrated .place-notes-sheet>header svg{width:22px;height:22px}
.q-migrated .place-notes-sheet .sheet-content{padding:0 12px max(12px,env(safe-area-inset-bottom));overflow-y:auto;min-height:0}
.q-migrated .place-notes-sheet .place-address{font-size:13px;color:var(--q-muted);margin:0 0 8px}
.q-migrated .place-notes-sheet .community-grid{margin:0;gap:8px}
.q-migrated .place-notes-sheet .place-note-status{font-size:13px;color:var(--q-muted);margin:8px 0}
.q-migrated .place-notes-sheet .place-note-status:empty{display:none}
.q-migrated .place-notes-sheet .place-load{margin:4px auto;display:block}
.q-migrated .place-notes-sheet .place-load[hidden],.q-migrated .place-notes-sheet .place-address[hidden]{display:none}

.q-migrated .place-notes-sheet .place-note-list>.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start;margin:0}

.q-migrated .place-notes-sheet>header{flex-direction:row;height:auto;min-height:52px}

.q-migrated .place-notes-sheet .place-note-list>.grid{display:block;columns:2;column-gap:8px}
.q-migrated .place-notes-sheet .place-note-list .community-card{break-inside:avoid;display:inline-block;width:100%;vertical-align:top}

/* Text cards have no image overlay: metadata follows the actual text height. */
.q-migrated .feed-card .card-cover--text>.text-cover{min-height:0;padding:8px 10px 4px}
.q-migrated .feed-card .card-cover--text>.card-context{position:static;min-height:20px;padding:0 10px;inset:auto;background:transparent;pointer-events:auto}
.q-migrated .feed-card .card-cover--text>.card-context:has(.flight-mark){min-height:24px}
/* Reports use a writing surface, including while focused, rather than a framed form field. */
.report-sheet .report-details textarea.report-writing,.report-sheet .report-details textarea.report-writing:is(:focus,:focus-visible){display:block;box-sizing:border-box;width:100%;min-height:32dvh;max-height:none;height:auto;padding:8px 0;margin:4px 0;border:0!important;outline:0!important;box-shadow:none!important;border-radius:0;background:transparent;color:var(--q-ink);font:400 16px/1.8 var(--q-font);resize:none;overflow:hidden;-webkit-appearance:none;caret-color:var(--q-accent)}
.report-sheet .report-file-list{display:flex;gap:8px;flex-wrap:wrap}.report-sheet .report-file-list figure{margin:0;width:96px}.report-sheet .report-file-list img{display:block;width:96px;height:96px;object-fit:contain;background:var(--q-bg);border-radius:8px}.report-sheet .report-file-list button{min-height:44px;width:100%;font-size:13px}.report-sheet .report-details{margin-top:12px}.report-sheet .report-target{padding:8px 0;background:transparent;border-radius:0;margin-bottom:8px}

/* One header surface and one search anchor across home and inbox. */
body.q-migrated:is(.home-view,.messages-view) .site-header{padding-inline:16px;background:var(--q-bg)}
body.q-migrated:is(.home-view,.messages-view) .site-header .home-tabs{background:transparent;box-shadow:none;border:0}
body.q-migrated:is(.home-view,.messages-view) .site-header :is([data-search-open],.inbox-search-toggle){position:absolute;inset:auto 16px auto auto;top:50%;transform:translateY(-50%);display:grid;place-items:center;box-sizing:border-box;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:var(--q-ink)}
body.q-migrated:is(.home-view,.messages-view) .site-header :is([data-search-open],.inbox-search-toggle) svg{display:block;width:22px;height:22px}

/* Homepage baseline: content determines height; media stays unobstructed. */
body.q-migrated.home-view{background:var(--q-surface)}
body.q-migrated.home-view .site-header{background:var(--q-surface)}
body.q-migrated.home-view #main{padding-inline:12px}
body.q-migrated.home-view #main .grid{column-gap:8px}
.q-migrated .home-feed-card{background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}
.q-migrated .home-feed-card .cover-button,.q-migrated .home-feed-card .feed-photo{border-radius:6px}
.q-migrated .home-feed-card .feed-photo{display:block;width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain}
.q-migrated .home-feed-card .video-card-frame .feed-photo{height:100%;object-fit:contain}
.q-migrated .home-feed-card .feed-copy{padding:0 2px}
.q-migrated .home-feed-card .feed-copy>.title{font-size:15px;line-height:1.5;margin:0;padding:4px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.q-migrated .home-feed-card.text-card{background:var(--q-bg)!important;border-radius:12px!important;overflow:hidden}
.q-migrated .home-feed-card.text-card .feed-copy{padding:0 10px}
.q-migrated .home-feed-card .card-cover--text>.text-cover{padding:10px 10px 0;min-height:0;background:transparent;font-size:15px;line-height:1.6}
.q-migrated .home-feed-card .text-cover>span{-webkit-line-clamp:6;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere}
.q-migrated .home-feed-card .feed-copy>.card-context{position:static;inset:auto;width:auto;min-height:0;margin:4px 0 0;padding:0;background:none;pointer-events:auto}
.q-migrated .home-feed-card .feed-copy>.card-context>.flight-mark{position:relative;display:inline-flex;align-items:center;min-height:28px;max-width:100%;gap:4px;padding:0 8px;margin:0;border:0;border-radius:8px;background:#F2F3F5;color:#3A3E44;font-size:13px}
.q-migrated .home-feed-card .card-context>.flight-mark::before{display:none}
.q-migrated .home-feed-card .card-context>.flight-mark::after{content:'';position:absolute;inset:-8px 0}
.q-migrated .home-feed-card .card-context>.flight-mark>span,.q-migrated .home-feed-card .card-context>.flight-mark>i{display:none}
.q-migrated .home-feed-card .card-context>.flight-mark>svg{width:32px;height:auto;aspect-ratio:1507/1044;flex:0 0 32px;padding:0;overflow:visible;background:transparent}
.q-migrated .home-feed-card .card-context>.flight-mark>b{font-weight:500;color:inherit}
.q-migrated .home-feed-card .community-author{margin:0;padding:0;min-height:44px;font-size:13px}
body.q-migrated>.nav>.publish{width:44px;min-width:44px;height:44px;min-height:44px;max-height:44px;padding:0;margin:0;align-self:center;transform:none;border-radius:12px;box-shadow:inset 0 0 0 1.6px var(--q-accent);background:transparent;color:var(--q-accent);display:grid;place-items:center}
body.q-migrated>.nav>.publish>svg{width:24px;height:24px;margin:0}

.q-migrated .home-feed-card .home-video-play{position:absolute;top:6px;left:6px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#0007;color:#fff;pointer-events:none}.q-migrated .home-feed-card .home-video-play svg{width:18px;height:18px}

/* Original flight page: date scope only; selected type follows section hierarchy. */
.q-migrated .flight-scope-tabs{display:flex;align-items:baseline;gap:20px;min-height:44px;margin:0;flex-wrap:wrap}
.q-migrated .flight-scope-tabs button{position:relative;min-height:44px;padding:8px 0;font-size:15px;line-height:25px;font-weight:400;color:var(--q-muted);background:transparent;border:0;border-radius:0}
.q-migrated .flight-scope-tabs button[aria-pressed=true]{font-size:18px;font-weight:600;color:var(--q-accent)}
.q-migrated .flight-scope-tabs button[aria-pressed=true]::after{content:'';position:absolute;bottom:2px;left:0;right:0;height:2px;border-radius:2px;background:currentColor}
.q-migrated .flight-scope-date{display:block;margin:0 0 4px}
.q-migrated .flight-scope-date[hidden]{display:none}
.q-migrated .flight-scope-date input{width:auto;max-width:100%;min-height:44px;margin:0;padding:4px 0;border:0;border-radius:0;background:transparent;color:var(--q-ink);font:inherit;font-size:16px;box-shadow:none}

/* Joined circles only: large centered identities, concise introduction, shared feed. */
body.q-migrated.groups-view:has(.joined-section[data-active-group]){background:var(--q-surface)}
.q-migrated.groups-view:has(.joined-section[data-active-group]) .site-header{background:var(--q-surface)}
.q-migrated.groups-view .joined-strip{padding:8px 0;align-items:center}
.q-migrated.groups-view .joined-strip::before,.q-migrated.groups-view .joined-strip::after{flex-basis:33.333333%}
.q-migrated.groups-view .joined-strip>button{flex-basis:33.333333%;width:33.333333%;min-height:150px;justify-content:center;gap:8px}
.q-migrated.groups-view .joined-strip .group-avatar{width:clamp(64px,20vw,80px);height:clamp(64px,20vw,80px);font-size:28px}
.q-migrated.groups-view .joined-strip .selected .group-avatar{width:clamp(88px,28vw,110px);height:clamp(88px,28vw,110px);outline:1px solid var(--q-accent);outline-offset:3px;border:0}
.q-migrated.groups-view .joined-strip>button>span:last-child{font-size:13px;line-height:1.4;padding:0 2px}
.q-migrated.groups-view .joined-strip .selected>span:last-child{font-size:15px;font-weight:600;color:var(--q-ink)}
.q-migrated #joined-group-content .group-feed-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;padding:0;min-height:44px}
.q-migrated #joined-group-content .group-feed-toolbar>span{font-size:18px;font-weight:600;min-width:0;overflow-wrap:anywhere}
.q-migrated .group-heading-actions{display:flex;align-items:center;flex:none;gap:0}
.q-migrated .group-heading-actions button{font-size:13px;color:var(--q-muted);min-height:44px;padding:0 4px}
.q-migrated .group-heading-actions button[data-group-menu]{width:32px}
.q-migrated .group-heading-actions svg{width:20px;height:20px}
.q-migrated .group-home-summary{font-size:13px;line-height:1.6;color:var(--q-muted);margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.q-migrated .group-feed-sort{display:flex;align-items:baseline;gap:24px;min-height:44px;margin:0}
.q-migrated .group-feed-sort button{min-height:44px;padding:8px 0;font-size:15px;color:var(--q-muted);position:relative;background:transparent;border:0;border-radius:0}
.q-migrated .group-feed-sort button[aria-pressed=true]{color:var(--q-accent);font-weight:600}
.q-migrated .group-feed-sort button[aria-pressed=true]::after{content:'';position:absolute;bottom:4px;left:0;right:0;height:2px;background:currentColor;border-radius:2px}
.q-migrated #joined-group-posts{margin:0;gap:8px}

.group-full-intro{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.6}.group-heading-actions [data-group-menu]{width:44px;min-width:44px}
/* Messages: quiet surfaces, compact readable rows; orange is reserved for unread. */
:root{--q-unread:#D84A05}
body.q-migrated.messages-view{background:var(--q-surface)}
.q-migrated.messages-view #main{padding-top:4px}
.q-migrated.messages-view .notice-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:4px 0 12px}
.q-migrated.messages-view .notice-shortcuts button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;padding:10px 2px;background:color-mix(in srgb,var(--q-tint) 55%,var(--q-surface));border:0;border-radius:12px;color:var(--q-ink);font-size:13px;line-height:20px}
.q-migrated.messages-view .notice-shortcuts button>span{position:relative;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--q-tint);color:var(--q-accent)}
.q-migrated.messages-view .notice-shortcuts svg{width:24px;height:24px}
.q-migrated.messages-view .notice-shortcuts [data-notices="likes"] svg{fill:currentColor}
.q-migrated :is(.notice-shortcuts,.conversation-list) b{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:var(--q-unread);color:#fff;font-size:11px;line-height:18px;font-weight:600;font-variant-numeric:tabular-nums}
.q-migrated :is(.notice-shortcuts,.conversation-list) b[hidden]{display:none}
.q-migrated.messages-view .notice-shortcuts b{position:absolute;right:-5px;top:-3px;border:1px solid var(--q-surface)}
.q-migrated .conversation-list .conversation{display:flex;align-items:center;gap:12px;width:100%;min-height:72px;padding:10px 0;text-align:left;border:0;border-radius:0;background:var(--q-surface);color:var(--q-ink)}
.q-migrated .conversation-list .conversation :is(.avatar,.inbox-symbol){flex:0 0 44px;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;overflow:hidden}
.q-migrated .conversation-list .inbox-symbol{background:var(--q-tint);color:var(--q-accent)}
.q-migrated .conversation-list .inbox-symbol.system{background:var(--q-accent);color:var(--q-on-accent)}
.q-migrated .conversation-list .inbox-symbol svg{width:24px;height:24px}
.q-migrated .conversation-list .conversation-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.q-migrated .conversation-list .conversation-copy strong{font-size:15px;font-weight:600;line-height:22px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.q-migrated .conversation-list .conversation-copy small{font-size:13px;line-height:20px;color:var(--q-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.q-migrated .conversation-list .conversation-meta{display:flex;flex:0 0 auto;align-items:flex-end;flex-direction:column;gap:5px;min-width:32px;font-size:12px;line-height:18px;color:var(--q-muted)}
.q-migrated .conversation-list .inbox-swipe{border:0;border-bottom:1px solid var(--q-line);border-radius:0}
.q-migrated .conversation-list .inbox-swipe:last-child{border-bottom:0}
.q-migrated .conversation-more{display:block;min-height:44px;margin:0 auto;background:transparent;color:var(--q-accent)}
.q-migrated.messages-view .message-empty{padding:16px 0 4px;text-align:center;font-size:13px;color:var(--q-muted)}
.q-migrated.messages-view .inbox-search input:is(:focus,:focus-visible){border:0;outline:none;box-shadow:none}
body.q-migrated.messages-view .site-header{background:var(--q-surface)}
body.q-migrated.messages-view .site-header .brand{display:none}
body.q-migrated.messages-view .site-header .home-tabs{grid-column:1 / -1;justify-content:flex-start;padding-right:44px}
body.q-migrated.messages-view .site-header h1{margin:0;font-size:22px;line-height:1.35;font-weight:600;color:var(--q-accent)}
.q-migrated.messages-view .notice-shortcuts{border-bottom:0}
.q-migrated .conversation-list .inbox-swipe-front,.q-migrated .conversation-list .inbox-swipe-more{background:var(--q-surface)}
/* Restore the original unboxed destination icons. */
body.q-migrated>.nav>[data-view]{gap:2px}
body.q-migrated>.nav>[data-view]>svg{box-sizing:border-box;width:24px;height:24px;padding:0;border-radius:0;background:transparent;flex-shrink:0}
body.q-migrated>.nav>[data-view].active>svg{color:var(--q-accent);stroke:currentColor}
body.q-migrated>.nav>[data-view].active>span{color:var(--q-accent);font-weight:600}
