/* Near-black workspace. Shared tokens live in frontend/theme.css. */
html.dark{scroll-behavior:auto;scroll-padding-top:0}
.modern-app .page-frame{overflow-anchor:none}
body.modern-app,body.modern-login-page{background:var(--background);background-image:none;color:var(--foreground);font-family:var(--sans);font-size:13px;-webkit-font-smoothing:antialiased}
.modern-app{--left-panel:224px;--toolbar:52px}
.modern-app .page-frame{margin:var(--toolbar) 0 0 var(--left-panel);padding:38px clamp(28px,4vw,64px) 64px;max-width:none;width:auto;min-height:calc(100dvh - var(--toolbar));border:0;background:none}
.modern-app main{max-width:980px;margin:0 auto}
.modern-app .search-page,.modern-app #entity-view{max-width:960px!important;margin-inline:auto}
.modern-app .topbar{display:none}
.modern-app .page-frame:before{display:none}
.modern-app #search-results{min-height:200px}
.modern-app #search-results:has(#search-output[hidden]):not(.is-loading){min-height:0}
.modern-app [data-slot=input-group-control]:focus-visible,.modern-login [data-slot=input-group-control]:focus-visible{outline:none;box-shadow:none;border-color:transparent}

/* Navigation stays quiet; the data has the visual priority. */
.workspace-sidebar{position:fixed;inset:0 auto 0 0;width:var(--left-panel);display:flex;flex-direction:column;padding:18px 9px 12px;background:var(--background);border-right:1px solid var(--sidebar-border);z-index:12}
.sidebar-wordmark{display:flex;align-items:center;gap:10px;padding:0 10px;margin-bottom:25px;font-size:16px;font-weight:600;letter-spacing:-.4px}
.sidebar-wordmark>svg{width:19px;height:19px;stroke-width:1.7;color:var(--foreground)}
.workspace-sidebar nav,.mobile-navigation nav{display:flex;flex-direction:column;gap:4px}
.sidebar-group-label{font-size:10px;color:var(--dim);padding:0 11px;margin:0 0 9px;font-weight:500}
.workspace-sidebar nav + .sidebar-group-label,.mobile-navigation nav + .sidebar-group-label{margin-top:24px}
.workspace-link{height:36px;padding:0 11px;display:flex;align-items:center;gap:11px;border-radius:6px;color:var(--muted-foreground);font-size:13px;font-weight:400;transition:background-color 120ms,color 120ms}
.workspace-link svg{width:18px;height:18px;flex:none}
.workspace-link:hover{background:var(--muted);color:var(--foreground)}
.workspace-link.is-selected{background:var(--sidebar-accent);color:var(--foreground)}
.sidebar-bottom{margin-top:auto;display:flex;flex-direction:column;gap:12px}
.sidebar-preferences{color:var(--muted-foreground);font-size:12px;height:36px}
.workspace-account{display:flex;align-items:center;gap:9px;padding:0 7px;font-size:12px;color:var(--secondary-foreground)}
.workspace-account [data-slot=avatar]{width:26px;height:26px;background:var(--secondary);font-size:10px}
.workspace-account>button{margin-left:auto;color:var(--muted-foreground)}
.workspace-toolbar{position:fixed;inset:0 0 auto var(--left-panel);height:var(--toolbar);display:flex;align-items:center;gap:20px;padding:0 28px;background:var(--background);border-bottom:1px solid var(--sidebar-border);z-index:11}
.toolbar-breadcrumb{font-size:12px;color:var(--muted-foreground)}
.toolbar-breadcrumb strong{font-weight:450}
.toolbar-search{width:266px;margin-left:auto}
.toolbar-search [data-slot=input-group]{background:var(--card);height:30px;border-color:var(--border);border-radius:7px}
.toolbar-search [data-slot=input-group-control]{font-size:11px}
.toolbar-search kbd{font-size:10px;color:var(--dim);white-space:nowrap}
.modern-app[data-view=search] .toolbar-breadcrumb,.modern-app[data-view=search] .toolbar-search{display:none}
.mobile-menu,.mobile-preferences{display:none!important}

/* Settings appear only when requested. */
.reading-content{padding:24px}
.rail-heading{display:flex;align-items:center;gap:9px;margin-bottom:24px;color:var(--foreground)}
.rail-heading svg{width:16px;height:16px;color:var(--muted-foreground)}
.rail-heading h3{font-size:13px;font-weight:500;margin:0}
.setting-copy{flex:1}
.setting-copy p{font-size:12px;line-height:1.6;color:var(--muted-foreground);margin:6px 0 0}
.reading-content [data-slot=field-group]{gap:28px}
.reading-content [data-slot=field-label]{font-size:12px;font-weight:500}
.reading-content [data-slot=toggle-group]{width:100%;gap:3px;background:var(--background);border:1px solid var(--border);padding:3px}
.reading-content [data-slot=toggle-group-item]{flex:1;height:32px;padding:0 8px;font-size:12px;border-radius:6px}
.reading-content [data-slot=toggle-group-item][data-pressed]{background:var(--secondary);color:var(--foreground)}
[data-slot=sheet-content]{max-width:340px!important;background:var(--popover)}
[data-slot=sheet-header]{padding:24px}
[data-slot=sheet-title]{font-size:15px;letter-spacing:-.2px;font-weight:500}
.mobile-navigation{display:flex;flex-direction:column;flex:1;padding:16px}
.mobile-navigation .sidebar-wordmark{display:none}
.mobile-navigation .sidebar-bottom{margin-top:auto}

/* Search controls share one calm surface and one focus treatment. */
.modern-app .search-heading{margin-bottom:24px;align-items:center}
.modern-app .search-heading h1,.modern-app #page-title,.modern-app .section-heading h2{font-size:24px;letter-spacing:-.6px;font-weight:600;margin:0}
.modern-app .search-heading p{display:block;font-size:13px;line-height:1.65;margin:6px 0 0;color:var(--muted-foreground);max-width:none}
.modern-app .section-heading p,.modern-app .subtle{color:var(--muted-foreground);font-size:12px}
.modern-app .search-tabs{display:inline-flex;border:1px solid var(--border);background:var(--card);padding:4px;gap:3px;border-radius:8px;margin-bottom:12px}
.modern-app .search-tabs button{height:32px;padding:0 12px;border:0;border-radius:5px;color:var(--muted-foreground);font-size:13px;background:none;box-shadow:none}
.modern-app .search-tabs button[aria-pressed=true]{background:var(--primary);color:var(--primary-foreground);box-shadow:none}
.modern-app .search-tabs button:hover:not(:disabled):not([aria-pressed=true]){color:var(--foreground);background:var(--muted)}
.modern-app .search-tabs svg{width:15px;height:15px;stroke-width:1.65}
.modern-app .main-search{display:flex;background:none;border:0;border-radius:0;padding:0;min-height:46px;gap:8px;box-shadow:none}
.modern-app .search-input-wrap{display:flex;align-items:center;gap:11px;flex:1;min-width:0;height:46px;padding:0 14px;background:var(--card);border:1px solid var(--input);border-radius:8px;transition:border-color 120ms,box-shadow 120ms}
.modern-app .main-search input{height:42px;font-size:13px}
.modern-app .search-input-wrap>svg{color:var(--muted-foreground);width:17px;height:17px}
.modern-app .main-search button{height:46px;width:58px;min-width:58px;flex:none;border-radius:8px;font-size:12px;padding:0;background:var(--primary);color:var(--primary-foreground);border-color:transparent;box-shadow:none}
.modern-app .main-search button>span{display:none}
.modern-app .main-search button>svg{width:19px;height:19px}
.modern-app .main-search button svg{color:currentColor}
.modern-app .main-search button:hover:not(:disabled){background:var(--foreground)}
.modern-app .main-search:focus-within{border-color:transparent;box-shadow:none}
.modern-app .search-input-wrap:focus-within,.modern-app .post-search:focus-within,.modern-app .result-search:focus-within{border-color:var(--ring);box-shadow:0 0 0 2px #ffffff06}
.modern-app .filter-toolbar{display:none}
.modern-app #query-hint{font-size:11px;color:var(--muted-foreground);line-height:1.65}
.modern-app .filter-panel{border:1px solid var(--border);background:var(--card);border-radius:8px;margin-top:12px;overflow:visible}
.modern-app .filter-toggle{min-height:40px;padding:0 16px;color:var(--muted-foreground)}
.modern-app .filter-toggle>span:nth-child(2){font-size:12px;color:var(--secondary-foreground)}
.modern-app .search-filters{padding:18px 16px;gap:18px 16px;border-top-color:var(--border);grid-template-columns:repeat(3,minmax(0,1fr))}
.modern-app .search-filters label{font-size:11px;color:var(--muted-foreground);gap:7px}
.modern-app .search-filters label:has([data-filter=bio]){grid-column:auto}
.modern-app .search-filters label:has([data-filter=username_history]){grid-column:span 2;align-self:start;min-height:36px;margin-top:23px}
.modern-app .filter-field-hint{font-size:10px;line-height:1.5;color:var(--dim)}
.modern-app .search-filters input:not([type=checkbox]),.modern-app .select-trigger{height:36px;background:var(--secondary);border-color:var(--input);border-radius:6px;font-size:12px}
.modern-app .search-filters input::placeholder{color:var(--dim)}
.modern-app .filter-description{font-size:11px;color:var(--muted-foreground);line-height:1.65;margin:0}
.modern-app .select-options,.modern-app .filter-menu{background:var(--popover);border-color:var(--input);border-radius:8px;box-shadow:0 12px 32px #0008}
.modern-app .select-options button,.modern-app .filter-menu button{color:var(--secondary-foreground)}
.modern-app .select-trigger>svg{width:13px;height:13px;color:var(--muted-foreground)}
.modern-app .select-options button:hover,.modern-app .select-options button[aria-selected=true],.modern-app .filter-menu button[aria-selected=true]{background:var(--secondary);color:var(--foreground)}
.modern-app .search-empty{margin:24px 0 8px;min-height:180px!important;color:var(--muted-foreground);border:0;background:none}
.modern-app .search-empty>svg{display:none}
.modern-app .search-empty p{font-size:13px;color:var(--muted-foreground)}
.modern-app .search-empty span{font-size:11px;color:var(--dim)}
.modern-app .compare-section{border-color:var(--border);color:var(--muted-foreground);font-size:11px;padding:11px 16px;margin:0}
.modern-app .filter-panel:has(#search-filters[hidden]) .compare-section{display:none}
.modern-app .search-utility{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 0 26px}
.modern-app .search-utility-button{display:inline-flex;align-items:center;gap:6px;color:var(--muted-foreground);background:none;border:0;padding:0;font-size:11px}
.modern-app .search-utility-button svg{width:13px;height:13px}
.modern-app .search-utility-button:hover{color:var(--foreground)}
.modern-app .search-utility .search-settings{margin:0}
.modern-app .search-utility-left{display:flex;align-items:center;gap:18px}
.modern-app .search-utility .filter-toggle{width:auto;min-height:28px;padding:0;gap:6px;border:0;background:none;font-size:11px}
.modern-app .search-utility .filter-chevron{width:12px;height:12px}
.modern-app .search-utility .filter-toggle>svg:first-child{width:13px;height:13px}
.modern-app .search-utility{margin:10px 0 20px}
.modern-app .filter-panel{margin:0 0 26px}
.modern-app .search-filters{border:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:16px}
.modern-app .filter-extra{grid-column:1/-1;border-top:1px solid var(--border);padding-top:12px}
.modern-app .filter-extra>summary{display:flex;align-items:center;gap:7px;color:var(--muted-foreground);font-size:11px;cursor:pointer;list-style:none}
.modern-app .filter-extra>summary::-webkit-details-marker{display:none}
.modern-app .filter-extra>summary svg{width:12px;height:12px}
.modern-app .filter-extra[open]>summary svg{transform:rotate(180deg)}
.modern-app .filter-extra-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:16px}
.modern-app .filter-extra-grid label:has([data-filter=username_history]){grid-column:1/-1;margin:0;min-height:24px}
.modern-app .search-settings{font-size:11px;color:var(--muted-foreground)}
.modern-app .saved-searches{border-color:var(--border);background:var(--card);border-radius:10px;padding:20px}
.modern-app .saved-row{border-color:var(--border)}
.modern-app .search-notice,.modern-app .inline-notice,.modern-app .notice{background:var(--card);border-color:var(--input);color:var(--secondary-foreground);border-radius:8px}

/* Flatter rows remove the stack of floating gray cards. */
.modern-app .result-card{background:none;border:0;border-bottom:1px solid var(--border);border-radius:0;padding:24px 0;margin:0;box-shadow:none}
.modern-app .result-card h3{font-size:14px;font-weight:550;letter-spacing:-.15px}
.modern-app .row-meta{gap:10px;color:var(--muted-foreground);line-height:1.6}
.modern-app .row-text{margin-top:17px;font-size:13px;line-height:1.85;color:var(--secondary-foreground);max-width:78ch}
.modern-app .record-badge{background:none;border-color:var(--border);color:var(--muted-foreground);border-radius:4px;padding:1px 5px}
.modern-app .entity-avatar{width:40px;height:40px;border-radius:10px;background:var(--secondary);border-color:var(--border)}
.modern-app .entity-avatar.avatar-loading>svg{filter:blur(2px);opacity:.25}
.modern-app .entity-avatar.avatar-loading::after{content:'';position:absolute;inset:7px;border-radius:6px;background:var(--secondary);filter:blur(2px);animation:skeleton-pulse 1.8s ease-in-out infinite;pointer-events:none}
.modern-app .row-actions{margin-top:20px;padding-top:0;border:0;gap:18px}
.modern-app .row-actions .row-action{font-size:11px;color:var(--muted-foreground);background:none;border:0;padding:0}
.modern-app .row-actions .row-action:hover{color:var(--foreground)}
.modern-app .copy-id{color:var(--muted-foreground);font-size:10px}
.modern-app .record-open{background:none;border-color:var(--border);color:var(--secondary-foreground);font-size:11px;height:30px;padding:0 10px}
.modern-app .entity-hero .result-card{border:0;padding:0 0 20px}
.modern-app .entity-hero h3{font-size:27px;font-weight:550;letter-spacing:-.8px}
.modern-app .entity-hero .entity-avatar{width:60px;height:60px;border-radius:14px}
.modern-app .entity-tabs{background:var(--background);top:var(--toolbar);gap:26px;border-color:var(--border);padding-top:8px}
.modern-app .entity-tab{font-size:12px;color:var(--muted-foreground);padding-bottom:13px}
.modern-app .entity-tab[aria-pressed=true]{color:var(--foreground);border-bottom-color:var(--foreground)}
.modern-app .overview-summary{gap:0;border-block:1px solid var(--border);margin-block:28px}
.modern-app .overview-stat{border:0;background:none;border-radius:0;padding:22px 20px;text-align:left}
.modern-app .overview-stat:first-child{padding-left:0}
.modern-app .overview-stat>span{color:var(--muted-foreground);font-size:11px}
.modern-app .overview-stat>strong{font-size:22px;font-weight:500;letter-spacing:-.7px}
.modern-app .overview-description{border:0;background:none;border-radius:0;padding:0;margin-block:28px}
.modern-app .overview-description p{color:var(--secondary-foreground);font-size:13px;line-height:1.8;max-width:78ch}
.modern-app .post-search{background:var(--card);border-color:var(--input);padding:8px 12px;border-radius:8px}
.modern-app .post-search input{font-size:12px}
.modern-app .post-media,.modern-app .post-count{font-size:11px;color:var(--muted-foreground)}
.modern-app .record-line,.modern-app .detail-stat{border-color:var(--border)}
.modern-app .detail-stat span{color:var(--muted-foreground)}
.modern-app .outline-button,.modern-app .history-open{background:var(--card);border-color:var(--border);color:var(--secondary-foreground);height:32px;padding:0 11px;border-radius:7px;font-size:11px;box-shadow:none}
.modern-app .outline-button:hover:not(:disabled),.modern-app .history-open:hover{background:var(--secondary);border-color:var(--input)}
.modern-app .outline-button svg{width:14px;height:14px}
.modern-app .loading-badge{background:var(--popover);border-color:var(--input);color:var(--foreground);border-radius:8px;font-size:12px;box-shadow:0 4px 16px #0005}
.modern-app .skeleton{background:var(--secondary)}
.modern-app .surface-loading{position:absolute;width:1px;height:1px;inset:auto;overflow:hidden;clip-path:inset(50%);white-space:nowrap;animation:none}
.modern-app .is-loading> :not(.surface-loading):not(.loading-placeholder){filter:blur(2px);opacity:.55;transition:opacity 120ms cubic-bezier(.23,1,.32,1)}
.modern-app .loading-placeholder{padding-top:12px}
.modern-app .skeleton-card{min-height:100px;border:1px solid var(--border);border-radius:10px;background:var(--card);padding:16px;margin-bottom:12px;align-items:center}
.modern-app .skeleton-avatar{width:56px;height:56px;border-radius:9px}
.modern-app .skeleton-line{height:12px;width:90%;border-radius:6px}
.modern-app .skeleton-line:first-child{width:45%;height:12px}
.modern-app .skeleton-line:last-child{width:90%}
.modern-app .skeleton{filter:blur(2px)}
.modern-app .translation-tools .translating svg{animation:none}
.modern-app .main-search button[aria-busy=true]>svg{filter:blur(1px);opacity:.55;animation:none}
.modern-login #login-form[aria-busy=true] [data-slot=field]{filter:blur(2px);opacity:.55}
.modern-app .is-translating{filter:blur(2px);opacity:.6;transition:filter 120ms,opacity 120ms}
.modern-app[data-density=compact] .result-card{padding:16px 0}
.modern-app[data-density=compact] .row-text{margin-top:10px;line-height:1.7}
.modern-app[data-density=compact] .row-actions{margin-top:12px}

/* Checker, library, history and dialogs use the same dark surfaces. */
.modern-app .console{background:var(--card);border-color:var(--border);border-radius:10px;padding:24px}
.modern-app fieldset{background:none;border-color:var(--input);border-radius:8px}
.modern-app legend{background:var(--card);color:var(--muted-foreground)}
.modern-app .input-meta,.modern-app .output-selection{border-color:var(--border)}
.modern-app .scan-button{background:var(--primary);color:var(--primary-foreground);border-color:transparent;box-shadow:none;border-radius:7px}
.modern-app .scan-button:hover:not(:disabled){background:var(--foreground);filter:none;box-shadow:none}
.modern-app .scan-button:disabled{background:var(--secondary);color:var(--muted-foreground);border-color:var(--border)}
.modern-app .scan-button.is-busy{background:var(--secondary);color:var(--foreground)}
.modern-app .result-search,.modern-app .operator-field input,.modern-app .contact-dialog input,.modern-app .contact-dialog textarea{background:var(--card);border-color:var(--input);color:var(--foreground);border-radius:7px}
.modern-app .table-wrap{background:none;border-color:var(--border);border-radius:9px}
.modern-app th{background:var(--card);border-color:var(--border);color:var(--muted-foreground)}
.modern-app td{border-color:var(--border)}
.modern-app tr:hover td{background:var(--card)}
.modern-app .result-tabs button,.modern-app .library-filters button,.modern-app .contact-status-options button{background:none;border-color:transparent;color:var(--muted-foreground);border-radius:6px}
.modern-app .result-tabs button[aria-pressed=true],.modern-app .library-filters button[aria-pressed=true],.modern-app .contact-status-options button[aria-pressed=true]{background:var(--secondary);color:var(--foreground);border-color:transparent}
.modern-app .type-badge,.modern-app .contact-badge{background:var(--card);border-color:var(--border)}
.modern-app .empty-mark{background:none;border-color:var(--border)}
.modern-app .contact-dialog{background:var(--popover);border-color:var(--input);border-radius:12px}
.modern-app .contact-dialog::backdrop{background:#000b;backdrop-filter:blur(5px)}
.modern-app .contact-dialog .section-heading,.modern-app .contact-claim,.modern-app .contact-save-row,.modern-app .contact-history{border-color:var(--border)}
.modern-app .toast{background:var(--popover);border-color:var(--input);color:var(--foreground)}

/* Message utilities and real media remain available. */
.translation-tools{display:flex;gap:10px;align-items:center;margin-top:12px;min-height:22px;color:var(--muted-foreground);font-size:10px}
.translation-tools button{border:0;background:none;color:var(--muted-foreground);display:inline-flex;gap:5px;align-items:center;padding:0;font-size:11px}
.translation-tools button:hover{color:var(--foreground)}
.translation-tools svg{width:13px;height:13px}
.translation-tools .translating svg{animation:none}
.message-text.is-translated{color:var(--foreground)}
.translation-note{margin:0;color:var(--muted-foreground);font-size:10px}
.post-attachments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:20px;max-width:680px}
.post-attachments:has(>:only-child){grid-template-columns:1fr}
.post-attachment{position:relative;display:block;overflow:hidden;border-radius:9px;border:1px solid var(--border);background:var(--card);min-height:100px}
.post-attachment:has(img),.post-attachment:has(video){aspect-ratio:16/10;max-height:400px;min-height:0}
.post-attachment img,.post-attachment video{display:block;height:100%;width:100%;max-height:400px;object-fit:contain}
.post-attachment img{transition:opacity 180ms;opacity:0}
.post-attachment img.loaded{opacity:1}
.post-attachment.image-pending::after,.media-skeleton{content:'';position:absolute;inset:16px;background:var(--secondary);border-radius:8px;filter:blur(3px);opacity:.65;pointer-events:none}
.media-placeholder{position:relative;aspect-ratio:16/10;max-width:680px;max-height:400px;border:1px solid var(--border);border-radius:9px;background:var(--card);margin-top:20px;overflow:hidden}
.media-skeleton{inset:16px}
.modern-app .scan-button.is-busy::after{display:none}
.modern-app .scan-button.is-busy{filter:blur(1px)}
.post-attachment audio{width:100%;padding:16px}
.post-attachment .attachment-status{padding:18px;display:flex;gap:8px;align-items:center;color:var(--muted-foreground);font-size:12px}
.media-unavailable{display:flex;align-items:center;gap:9px;border:1px dashed var(--border);border-radius:9px;padding:16px;margin-top:14px;color:var(--muted-foreground);font-size:12px}
.media-unavailable svg{width:18px;height:18px}
.modern-app .lookup-message{border-color:var(--border);background:none;border-radius:0;padding:20px 0}

/* Login has no surrounding card or decorative branding. */
.modern-login-page{display:grid;place-items:center;min-height:100dvh}
.modern-login{width:min(320px,calc(100vw - 48px));padding:40px 0}
.modern-login-brand{display:flex;align-items:center;gap:10px;font-weight:550;letter-spacing:-.35px;font-size:16px;margin-bottom:44px}
.modern-login-brand>svg{width:20px;height:20px;stroke-width:1.7}
.login-intro{margin-bottom:28px;text-align:left;animation:none}
.login-intro h1{font-size:23px;font-weight:550;letter-spacing:-.6px;margin:0}
.modern-login [data-slot=field-group]{gap:22px}
.modern-login [data-slot=field-label]{font-size:12px;font-weight:450;color:var(--secondary-foreground)}
.modern-login [data-slot=input],.modern-login [data-slot=input-group]{height:42px;font-size:13px;background:var(--card);border-color:var(--input);border-radius:8px}
.modern-login [data-slot=input-group-control]{border:0;border-radius:0;background:none;box-shadow:none;outline:none}
.modern-login #login-button{height:42px;margin-top:5px;width:100%;border-radius:7px}
.modern-login [data-slot=field-error]{font-size:12px}
[data-slot=button]{transition:background-color 120ms,color 120ms;box-shadow:none;letter-spacing:0;font-family:inherit}
.modern-app #search-rows>.result-card,.modern-app .entity-content .result-card{content-visibility:auto;contain-intrinsic-size:auto 160px}
@media(prefers-reduced-motion:no-preference){
 .modern-app .main-search button,.modern-app .discord-check-button,.modern-app .scan-button,.modern-login #login-button{transition:background-color 120ms,color 120ms,transform 100ms cubic-bezier(.23,1,.32,1)}
 .modern-app .main-search button:active:not(:disabled),.modern-app .discord-check-button:active:not(:disabled),.modern-app .scan-button:active:not(:disabled),.modern-login #login-button:active:not(:disabled){transform:scale(.97)}
}
[data-slot=button]:not(:disabled):active{transform:none}

@media(max-width:700px){
 .modern-app{--left-panel:0px;--toolbar:56px}
 .workspace-sidebar{display:none}
 .workspace-toolbar{left:0;padding:0 10px;gap:7px}
 .mobile-menu,.mobile-preferences{display:inline-flex!important}
 .workspace-toolbar [data-slot=button]{min-height:44px;min-width:44px}
 .toolbar-search{width:100%;margin-left:0}
 .modern-app[data-view=search] .toolbar-search{display:block}
 .toolbar-search [data-slot=input-group]{height:36px}
 .toolbar-search kbd,.toolbar-breadcrumb{display:none}
 .modern-app .page-frame{margin:56px 0 0;padding:28px 18px 44px}
 .modern-app .filter-extra-grid{grid-template-columns:1fr}
 .modern-app .search-filters label:has([data-filter=username_history]){grid-column:auto;margin-top:0}
 .modern-app .search-heading{margin-bottom:24px}
 .modern-app .search-heading p{font-size:12px;max-width:none;line-height:1.65}
 .modern-app .search-tabs{display:flex;width:100%;gap:2px;justify-content:space-between}
 .modern-app .search-tabs button{padding:0 7px;font-size:11px;gap:5px;flex:1;height:36px}
 .modern-app .search-tabs svg{width:14px;height:14px}
 .modern-app .search-filters{grid-template-columns:1fr}
 .modern-app .main-search{min-height:46px}
 .modern-app .main-search button{height:46px;min-width:50px;width:50px}
 .modern-app .main-search input{height:44px;font-size:16px}
 .modern-app .result-card{padding:22px 0}
 .modern-app .entity-hero h3{font-size:25px}
 .modern-app .row-meta{gap:7px}
 .modern-app .overview-summary{grid-template-columns:1fr}
 .modern-app .overview-stat{padding:16px 0;border-bottom:1px solid var(--border)}
 .modern-app .overview-stat:last-child{border-bottom:0}
 .modern-app .post-count{margin-left:auto}
 .post-attachments{grid-template-columns:1fr}
 .modern-app .console{padding:18px}
 .mobile-navigation .workspace-link{height:44px}
 .reading-content [data-slot=switch]::after{top:-13px;bottom:-13px}
 .modern-login-page [data-slot=input-group],.modern-login-page [data-slot=input]{height:44px;font-size:16px}
}
@media(min-width:701px) and (max-width:1000px){.modern-app .search-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){
 .modern-app .page-frame,.post-attachment img{transition:none}
 .translation-tools .translating svg{animation:none}
 .modern-app .entity-avatar.avatar-loading::after{animation:none}
}
