/* Shared source favicons. Brand images retain their own colors in either theme. */
.site-icon.has-favicon{background:#fff!important;border:1px solid #18212d0d;box-shadow:0 2px 5px #18212d05}
.site-icon .site-favicon{width:24px;height:24px;object-fit:contain;opacity:1;filter:none!important}
.site-icon.has-favicon .favicon-fallback{display:none}
.site-icon.icon-failed .site-favicon{display:none}
.site-icon.icon-failed .favicon-fallback{display:block}
.site-row .site-icon .site-favicon{width:21px;height:21px}
.manage-site{display:flex;gap:12px;align-items:center}
.manage-site .site-icon{width:34px;height:34px;border-radius:10px}
.manage-site .site-favicon{width:22px;height:22px}
.manage-context{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px;background:var(--surface);border:1px solid var(--line);border-radius:12px;margin:0 0 20px;font-size:14px;font-weight:600}
.context-detail{display:block;color:var(--muted);font-size:12px;font-weight:400;margin-top:3px}
.library-filters{display:flex;align-items:center;gap:20px;margin-bottom:24px;flex-wrap:wrap}
.category-picker{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted)}
.category-picker select{padding:8px 11px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text)}
.library-filters .tag-row{margin:0}
.url-feedback{font-size:12px;display:block;line-height:1.6;margin-top:9px;color:var(--muted)}
.url-field{margin-bottom:0}.url-guidance{margin-bottom:18px}
.url-feedback[data-state=valid]{color:#39705c}
.url-feedback[data-state=warning]{color:#a65c24}
.edit-duplicate{font-size:12px;color:var(--accent);padding:5px 0;text-decoration:underline;text-underline-offset:3px}
.edit-duplicate[hidden],.url-preview[hidden]{display:none}
.url-preview{display:flex;gap:13px;align-items:center;background:var(--soft);border:1px solid var(--line);border-radius:11px;padding:14px 16px;margin:0 0 22px}
.url-preview>span:last-child{min-width:0}
.url-preview strong{font-size:14px;display:block;font-weight:600;overflow-wrap:anywhere}
.url-preview small{font-size:11px;color:var(--muted);display:block;margin-top:2px;overflow-wrap:anywhere}
.form-note{font-size:11px;line-height:1.8;color:var(--muted);margin:4px 0 0}
dialog{max-height:calc(100dvh - 32px);overflow:auto}
form label{font-size:13px}form input:not([type=checkbox]),form select{font-size:14px;height:46px}
.optional{font-size:11px}.dialog-heading h2{font-size:22px}.form-error{font-size:12px}
.row-actions button{width:38px;height:38px}.site-tools button{width:30px;height:30px}
.site-tools img{width:13px;height:13px}
body[data-direction=workbench]:not([data-theme=light]) .site-tools img,
body[data-theme=dark] .site-tools img,
body[data-direction=workbench]:not([data-theme=light]) .row-actions img,
body[data-theme=dark] .row-actions img{filter:invert(1)}
body[data-theme=dark] .url-feedback[data-state=valid],body[data-direction=workbench]:not([data-theme=light]) .url-feedback[data-state=valid]{color:#a0cfb5}
body[data-theme=dark] .url-feedback[data-state=warning],body[data-direction=workbench]:not([data-theme=light]) .url-feedback[data-state=warning]{color:#e8ba8d}
button,a{touch-action:manipulation}
button{transition:background .16s,color .16s,transform .16s}
button:active{transform:translateY(1px)}
.nav-backdrop,.mobile-add span,.sidebar-close{display:none}
.site-options{border-block:1px solid var(--line);margin:0 0 19px}
.site-options summary{display:flex;align-items:center;gap:9px;min-height:47px;font-size:13px;font-weight:500;cursor:pointer;list-style:none}
.site-options summary::-webkit-details-marker{display:none}
.site-options summary span{margin-left:auto;font-size:11px;font-weight:400;color:var(--muted)}
.site-options summary img{width:14px;height:14px;opacity:.6;transition:transform .18s}
.site-options[open] summary img{transform:rotate(90deg)}
.site-options .form-columns{padding-top:8px}
.site-options summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}

/* Focus refinement: a horizontal personal workspace with a warm, quiet identity. */
body.app[data-direction=focus]{--bg:#f5f4ef;--surface:#fffefa;--soft:#efede7;--discovery:#eeece5;--tile:#f7f6f1;--collection:#f2f1eb;--text:#272b2a;--muted:#666b61;--line:#e2e0d6;--accent:#aa4328;--accent-soft:#f7e9e1;--sidebar:#f5f4ef;--shadow:0 6px 24px #40332407;--radius:14px}
body.app[data-direction=focus][data-theme=dark]{--bg:#1b1d1c;--surface:#282c27;--soft:#2c302c;--discovery:#242823;--tile:#30352e;--collection:#22261f;--text:#efeee7;--muted:#abb1a4;--line:#3a4036;--accent:#e7a18a;--accent-soft:#3c2d27;--sidebar:#1b1d1c;--shadow:none}
body[data-direction=focus] .sidebar{position:sticky;top:0;inset-inline:0;width:100%;height:76px;flex-direction:row;align-items:center;padding:0 40px;gap:46px;border-right:0;border-bottom:1px solid var(--line);background:var(--bg)}
body[data-direction=focus] .brand{font-size:23px;letter-spacing:-1px;gap:11px;min-width:156px}
body[data-direction=focus] .brand-symbol{background:var(--accent);border:0;border-radius:12px;width:37px;height:37px}
body[data-direction=focus] .brand-symbol img{filter:brightness(0) invert(1);opacity:1}
body[data-direction=focus] .brand-sub{font-size:9px;letter-spacing:1px;margin-top:0}
body[data-direction=focus] .main-nav{display:flex;align-items:center;gap:8px;margin:0}
body[data-direction=focus] .main-nav button{width:auto;min-height:44px;padding:9px 13px;gap:8px;border-radius:7px;white-space:nowrap;font-size:13px}
body[data-direction=focus] .main-nav button>img{width:15px;height:15px}
body[data-direction=focus] .main-nav button.active{background:var(--soft);color:var(--text)}
body[data-direction=focus] .main-nav button>span:last-child{margin-left:2px;font-size:10px;color:var(--muted)}
body[data-direction=focus] .sidebar>.nav-heading,body[data-direction=focus] .sidebar>.category-nav,body[data-direction=focus] .sidebar>.sidebar-bottom{display:none}
body[data-direction=focus] .workspace{margin-left:0}
body[data-direction=focus] .topbar{position:fixed;right:40px;top:0;padding:0;height:76px;border:0;z-index:40}
body[data-direction=focus] .topbar .breadcrumb,body[data-direction=focus] .today{display:none}
body[data-direction=focus] .top-actions{gap:6px}
body[data-direction=focus] .button.primary{color:#fff;border-color:#b94b2d;background:#b94b2d}
body[data-direction=focus] .button.primary img{filter:brightness(0) invert(1)}
body[data-direction=focus] main#main{max-width:1216px;padding:30px 38px 28px}
body[data-direction=focus] .discovery-panel{padding:26px 30px 0;border:1px solid var(--line);border-radius:20px;background:var(--discovery);margin-bottom:24px}
body[data-direction=focus] .intro{margin-bottom:22px;align-items:flex-end}
body[data-direction=focus] .intro .eyebrow{font-size:11px;letter-spacing:1px;color:var(--muted);margin-bottom:10px}
body[data-direction=focus] h1{font-size:34px;line-height:1.4;font-weight:650;letter-spacing:-1px;text-wrap:balance}
body[data-direction=focus] .intro-description{font-size:13px;line-height:1.8;margin-top:8px}
body[data-direction=focus] .intro-marker{display:none}
body[data-direction=focus] .search-wrap{height:56px;border-radius:11px;padding:0 19px;border-color:var(--line);box-shadow:var(--shadow);background:var(--surface)}
body[data-direction=focus] .search-wrap input{font-size:15px}
body[data-direction=focus] .search-wrap:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
body.app[data-direction=focus][data-theme=dark] .search-wrap{border-color:var(--line)}
body[data-direction=focus] .search-wrap>img{opacity:.6;width:20px;height:20px}
body[data-direction=focus] .collection-tabs{gap:27px;margin:14px 0 0}
body[data-direction=focus] .collection-tabs button{font-size:13px;padding:13px 0;min-height:46px}
body[data-direction=focus] .collection-tabs button.active{color:var(--accent)}
body[data-direction=focus] .section-header{margin-bottom:12px}
body[data-direction=focus] .section-title{font-size:16px;letter-spacing:-.3px}
body[data-direction=focus] .section-title small{font-size:11px}
body[data-direction=focus] .section-header>button,body[data-direction=focus] .text-link{font-size:12px}
body[data-direction=focus] .pinned-heading .section-title::before{content:'01';font:11px 'Segoe UI',sans-serif;color:var(--accent);padding:2px 7px 2px 0;letter-spacing:1px}
body[data-direction=focus] .explore-heading .section-title::before{content:'02';font:11px 'Segoe UI',sans-serif;color:var(--accent);padding:2px 7px 2px 0;letter-spacing:1px}
body[data-direction=focus] .section-note{font-size:11px;margin:0 0 16px}
body[data-direction=focus] .quick-access{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:23px 24px 24px;box-shadow:0 4px 20px #40332404}
body[data-direction=focus] .pin-grid{gap:10px;margin-bottom:0}
body[data-direction=focus] .quick-access .site-card{background:var(--tile);border-color:transparent;box-shadow:none}
body[data-direction=focus] .site-card{background:var(--surface);border-color:var(--line);border-radius:12px;box-shadow:none}
body[data-direction=focus] .site-card>a{padding:19px 15px;gap:12px;min-height:88px}
body[data-direction=focus] .site-card .site-icon{width:40px;height:40px;border-radius:11px}
body[data-direction=focus] .site-card .site-favicon{width:28px;height:28px}
body[data-direction=focus] .site-name{font-size:14px;font-weight:600;line-height:1.5}
body[data-direction=focus] .site-note{font-size:11px;line-height:1.6;margin-top:4px}
body[data-direction=focus] .site-tools{top:4px;right:4px}
body[data-direction=focus] .site-card:hover{background:var(--surface);border-color:color-mix(in srgb,var(--accent) 40%,var(--line));box-shadow:0 5px 18px #513c2f09;transform:translateY(-1px)}
body[data-direction=focus] .explore-heading{margin-top:29px;margin-bottom:16px}
body[data-direction=focus] .collections-grid{gap:16px}
body[data-direction=focus] .collection-block{background:var(--collection);border:1px solid var(--line);border-radius:14px;padding:17px 18px 3px}
body[data-direction=focus] .collection-heading{font-size:14px;padding-bottom:10px;border-bottom:0}
body[data-direction=focus] .collection-heading>small{font-size:11px}
body[data-direction=focus] .site-row{padding:11px 0;border-bottom:1px solid var(--line)}
body[data-direction=focus] .site-row .site-name{font-size:14px}
body[data-direction=focus] .site-row .site-note{font-size:11px}
body[data-direction=focus] .site-row .site-icon{width:34px;height:34px;border-radius:9px}
body[data-direction=focus] .collection-more{font-size:12px;padding-top:16px}
body[data-direction=focus] .app-footer{font-size:11px;padding-top:19px;margin-top:27px;border-top:1px solid var(--line)}
body[data-direction=focus]:not([data-view=home]) .discovery-panel{padding-top:21px}
body[data-direction=focus]:not([data-view=home]) h1{font-size:28px}
body[data-direction=focus] .manage-toolbar p{font-size:12px}
body[data-direction=focus] th{font-size:12px;background:var(--soft);padding:13px 18px}
body[data-direction=focus] td{font-size:13px;padding:15px 18px}
body[data-direction=focus] .source-caption{font-size:11px}
body[data-direction=focus] .table-wrap{border-radius:12px}
body[data-direction=focus] .tag{border-radius:7px;font-size:12px;padding:6px 11px}
body[data-direction=focus][data-density=compact] .site-card>a{min-height:72px;padding-top:12px;padding-bottom:12px}
@media(max-width:1100px) and (min-width:701px){
 body[data-direction=focus] .sidebar{padding:0 24px;gap:22px}
 body[data-direction=focus] .brand{min-width:132px;font-size:20px}
 body[data-direction=focus] .main-nav{gap:3px}
 body[data-direction=focus] .main-nav button{font-size:12px;padding:8px;gap:5px}
 body[data-direction=focus] .main-nav button>img{display:none}
 body[data-direction=focus] .topbar{right:24px}
 body[data-direction=focus] .top-actions .density-button{display:none}
 body[data-direction=focus] .intro-marker{display:none}
 body[data-direction=focus] .site-card>a{padding:19px 13px;gap:10px}
 body[data-direction=focus] .site-card .site-icon{width:36px;height:36px}
 body[data-direction=focus] .site-card .site-favicon{width:24px;height:24px}
}
@media(max-width:700px){
 body.app .sidebar{z-index:60}
 .sidebar-close{display:grid;position:absolute;right:14px;top:25px;width:44px;height:44px;place-items:center}
 .nav-backdrop:not([hidden]){display:block;position:fixed;inset:0;width:100%;height:100dvh;z-index:55;background:#171e2255;cursor:default}
 body[data-direction=focus] .sidebar{position:fixed;inset:0 auto 0 0;width:260px;height:100dvh;display:flex;flex-direction:column;align-items:stretch;padding:28px 20px;gap:0;z-index:60;overflow-y:auto}
 body[data-direction=focus] .main-nav{display:grid;margin-top:30px}
 body[data-direction=focus] .main-nav button{padding:11px 13px;font-size:14px;width:100%;gap:11px}
 body[data-direction=focus] .sidebar>.nav-heading{display:block;margin-top:25px}
 body[data-direction=focus] .sidebar>.category-nav{display:grid}
 body[data-direction=focus] .sidebar>.sidebar-bottom{display:block;margin-top:auto}
 body[data-direction=focus] .topbar{position:sticky;right:auto;top:0;height:68px;padding:0 16px;border-bottom:1px solid var(--line);z-index:40;background:var(--bg)}
 body[data-direction=focus] .top-actions{padding-right:76px}
 body[data-direction=focus] .topbar .icon-button{width:44px;height:44px}
 body[data-direction=focus] .topbar .breadcrumb{display:flex;font-size:12px}
 body[data-direction=focus] main#main{padding:20px 14px 40px}
 body[data-direction=focus] .discovery-panel{padding:19px 18px 0;border-radius:16px;margin-bottom:18px}
 body[data-direction=focus] .intro{margin-bottom:18px}
 body[data-direction=focus] .intro .eyebrow{font-size:10px;letter-spacing:1px;line-height:1.7;margin-bottom:8px}
 body[data-direction=focus] h1{font-size:27px;letter-spacing:-.7px;line-height:1.5}
 body[data-direction=focus] .intro-description{display:none}
 body[data-direction=focus] .intro-marker{display:none}
 body[data-direction=focus] .search-wrap{height:51px;padding:0 13px;border-radius:10px}
 body[data-direction=focus] .search-wrap input{font-size:13px}
 body[data-direction=focus] .collection-tabs{gap:19px;margin:10px 0 0}
 body[data-direction=focus] .collection-tabs button{font-size:12px;min-height:44px}
 body[data-direction=focus] .section-title{font-size:15px;gap:7px}
 body[data-direction=focus] .section-title small{display:inline;font-size:10px}
 body[data-direction=focus] .section-note{font-size:11px;line-height:1.8}
 body[data-direction=focus] .section-header>button{font-size:11px}
 body[data-direction=focus] .quick-access{padding:18px 12px;border-radius:16px}
 body[data-direction=focus] .pin-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:0}
 body[data-direction=focus] .site-card>a{padding:18px 10px;gap:9px;min-height:84px}
 body[data-direction=focus] .site-card .site-icon{width:33px;height:33px;border-radius:9px}
 body[data-direction=focus] .site-card .site-favicon{width:23px;height:23px}
 body[data-direction=focus] .site-name{font-size:13px}
 body[data-direction=focus] .site-note{font-size:10px}
 body[data-direction=focus] .collections-grid{grid-template-columns:1fr;gap:14px}
 body[data-direction=focus] .collection-block:last-child{display:block}
 body[data-direction=focus] .collection-block{padding:17px 18px 4px}
 body[data-direction=focus] .mobile-add{top:12px;bottom:auto;right:16px;width:72px;height:44px;display:flex;align-items:center;justify-content:center;gap:6px;background:#b94b2d;color:#fff;border-radius:9px;box-shadow:none;z-index:45;font-size:12px;font-weight:600}
 body[data-direction=focus] .mobile-add img{width:17px;height:17px;filter:brightness(0) invert(1)!important}
 body[data-direction=focus] .mobile-add span{display:inline}
 body[data-direction=focus] .app-footer{font-size:10px;padding-top:22px}
 .manage-context{align-items:flex-start;padding:16px;flex-direction:column}
 .manage-context .button{font-size:12px}.manage-toolbar{margin-top:12px}
 .library-filters{gap:14px}.library-filters .tag-row{gap:7px}
 .site-tools button{width:26px;height:26px}.site-tools img{width:12px;height:12px}
 dialog{padding:24px 20px}.dialog-heading{margin-bottom:21px}.dialog-heading h2{font-size:21px}
 .url-feedback{font-size:11px}.optional{font-size:10px}.dialog-actions .button{min-height:43px;font-size:12px}
}
@media(min-width:701px) and (max-width:900px){
 body[data-direction=focus] .collection-block:last-child{display:block;grid-column:1/-1}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}

/* More shortcuts, with one quiet control row and a compact visual rhythm. */
.quick-actions{display:flex;gap:16px;align-items:center}
.quick-actions button{display:inline-flex;align-items:center;gap:5px;font-size:12px;min-height:36px;color:var(--muted)}
.quick-actions img{width:14px;height:14px}
.quick-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-3px 0 15px}
.quick-toolbar .section-note{margin:0}
.quick-filters{display:flex;gap:3px;flex-shrink:0;background:var(--soft);padding:3px;border-radius:8px}
.quick-filters button{font-size:11px;color:var(--muted);padding:4px 12px;border-radius:5px;min-height:30px}
.quick-filters button[aria-pressed=true]{color:var(--text);background:var(--surface);box-shadow:0 1px 3px #29281f0a}
.quick-expand{display:flex;align-items:center;justify-content:center;gap:7px;color:var(--muted);font-size:12px;padding:14px 0 0;width:100%;min-height:44px}
.quick-expand img{width:14px;height:14px}.quick-expand[aria-expanded=true] img{transform:rotate(180deg)}
.collection-covered{padding:22px 0 20px;min-height:110px;color:var(--muted)}
.collection-covered strong{font-size:13px;color:var(--text);font-weight:500}
.collection-covered p{font-size:12px;line-height:1.8;margin:7px 0 0}
body[data-direction=focus] .quick-access .site-card>a{min-height:82px;padding:17px 11px;gap:10px}
body[data-direction=focus] .quick-access .site-card .site-icon{width:34px;height:34px;border-radius:9px}
body[data-direction=focus] .quick-access .site-card .site-favicon{width:23px;height:23px}
body[data-direction=focus] .quick-access .site-name{font-size:13px}
body[data-direction=focus] .quick-access .site-note{font-size:10px;margin-top:3px}
body[data-direction=focus] .quick-toolbar .section-note{margin:0}
body[data-direction=focus] .quick-access .site-tools{top:2px;right:2px}
.search-hint{display:flex;gap:14px;justify-content:space-between;margin:0 0 19px;font-size:12px;color:var(--muted);line-height:1.8}
.search-hint>span{font-size:11px}
.result-grid.search-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.search-results .site-card>a{padding:16px 18px;min-height:78px}
.search-results .site-card>a:focus-visible{outline-offset:1px;border-radius:inherit;background:var(--accent-soft)}
.search-results .site-note{font-size:12px}
#shortcut-dialog{width:min(720px,calc(100% - 30px));padding:28px;overflow:hidden}
#shortcut-dialog .dialog-heading{margin-bottom:20px}
.shortcut-tabs{display:flex;border-bottom:1px solid var(--line);gap:25px;margin-bottom:19px}
.shortcut-tabs button{padding:0 0 12px;font-size:13px;color:var(--muted);border-bottom:2px solid transparent}
.shortcut-tabs button[aria-pressed=true]{color:var(--accent);border-color:var(--accent);font-weight:600}
.shortcut-search-label{display:flex;align-items:center;gap:10px;background:var(--bg);border:1px solid var(--line);border-radius:9px;padding:0 14px;height:45px}
.shortcut-search-label>img{width:17px;height:17px;opacity:.65}
.shortcut-search-label input{min-width:0;flex:1;background:none;border:0;outline:0;color:var(--text);font-size:13px}
.shortcut-search-label:focus-within{outline:2px solid var(--accent);outline-offset:1px}
.shortcut-search-label input:focus-visible{outline:0}
.shortcut-filters{display:flex;gap:8px;padding:13px 0 15px}
.shortcut-filters button{font-size:12px;color:var(--muted);padding:6px 11px;border-radius:6px;min-height:34px}
.shortcut-filters button[aria-pressed=true]{background:var(--soft);color:var(--text)}
.shortcut-options{overflow-y:auto;max-height:min(430px,calc(100dvh - 335px));overscroll-behavior:contain;padding:4px;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.shortcut-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.shortcut-choice{display:flex;align-items:center;gap:10px;padding:12px 10px;border:1px solid var(--line);border-radius:9px;min-width:0;cursor:pointer}
.shortcut-choice:has(:checked){background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 28%,var(--line))}
.shortcut-choice input{width:17px;height:17px;flex-shrink:0;accent-color:var(--accent)}
.shortcut-choice .site-icon{width:32px;height:32px;border-radius:8px}.shortcut-choice .site-favicon{width:22px;height:22px}
.shortcut-choice .site-name{font-size:13px}.shortcut-choice .site-note{font-size:11px;margin-top:2px}
.shortcut-choice.unavailable{opacity:.65;cursor:default}
.shortcut-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:20px;margin-top:14px;border-top:1px solid var(--line)}
.shortcut-footer p{font-size:12px;color:var(--muted);margin:0}
.shortcut-order{list-style:none;margin:0;padding:0}
.shortcut-order li{display:flex;align-items:center;gap:13px;padding:10px 0;border-bottom:1px solid var(--line)}
.shortcut-order li:last-child{border:0}.order-number{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums;width:20px;flex-shrink:0}
.shortcut-order .site-info{flex:1}.shortcut-order .site-name{font-size:13px}.shortcut-order .site-note{font-size:11px}
.order-controls{display:flex;gap:3px;margin-left:auto}
.order-controls button{width:36px;height:36px;display:grid;place-items:center;border-radius:7px;background:var(--soft)}
.order-controls img{width:15px;height:15px}.order-controls button:disabled{opacity:.25;cursor:default}
body[data-theme=dark] .order-controls img,body[data-direction=workbench]:not([data-theme=light]) .order-controls img,
body[data-theme=dark] .quick-actions img,body[data-direction=workbench]:not([data-theme=light]) .quick-actions img,
body[data-theme=dark] .quick-expand img,body[data-direction=workbench]:not([data-theme=light]) .quick-expand img,
body[data-theme=dark] .shortcut-search-label>img,body[data-direction=workbench]:not([data-theme=light]) .shortcut-search-label>img{filter:invert(1)}
@media(min-width:1280px){body[data-direction=focus] .pin-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(min-width:701px) and (max-width:1000px){.quick-toolbar{flex-wrap:wrap}.quick-toolbar .section-note{flex-basis:100%}}
@media(max-width:700px){
 .quick-toolbar{display:block;margin:0 0 12px}.quick-toolbar .section-note{display:none}
 .quick-filters{width:max-content;padding:2px}.quick-filters button{min-height:36px;padding:4px 13px}
 .quick-actions{gap:12px}.quick-actions button{font-size:11px;min-height:38px}.quick-actions img{display:none}
 body[data-direction=focus] .pinned-heading .section-title::before{display:none}
 body[data-direction=focus] .pinned-heading .section-title small{display:none}
 body[data-direction=focus] .quick-access{padding:14px 12px 10px}
 body[data-direction=focus] .quick-access .pin-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
 body[data-direction=focus] .quick-access .site-card>a{flex-direction:column;justify-content:center;gap:8px;min-height:92px;padding:11px 3px 9px}
 body[data-direction=focus] .quick-access .site-card .site-icon{width:35px;height:35px;border-radius:10px}
 body[data-direction=focus] .quick-access .site-name{font-size:11px;font-weight:550;text-align:center;line-height:1.5}
 body[data-direction=focus] .quick-access .site-info{width:100%}
 body[data-direction=focus] .quick-access .site-note{display:none}
 body[data-direction=focus] .quick-access .site-tools{display:none}
 .search-hint{display:block;font-size:11px}.search-hint>span{display:none}
 .result-grid.search-results{grid-template-columns:1fr}
 #shortcut-dialog{padding:22px 16px;width:calc(100% - 20px)}
 #shortcut-dialog .dialog-heading h2{font-size:20px}
 .shortcut-options{max-height:calc(100dvh - 330px)}
 .shortcut-choices{grid-template-columns:1fr}.shortcut-choice{padding:10px 12px}
 .shortcut-choice .site-name{font-size:13px}.shortcut-choice .site-note{font-size:11px}
 .shortcut-footer{padding-top:15px;margin-top:10px;gap:8px}.shortcut-footer p{font-size:11px}.shortcut-footer .button{font-size:12px;padding:10px 13px}
 .shortcut-order li{gap:9px}.shortcut-order .site-note{display:none}.shortcut-order .site-name{font-size:12px}
 .shortcut-order .site-icon{width:28px;height:28px}.shortcut-order .site-favicon{width:20px;height:20px}
 .order-controls{gap:2px}.order-controls button{width:34px;height:40px}.order-number{width:16px;font-size:10px}
}

/* Keep dialog actions visible; only the choices/order list scrolls. */
#shortcut-dialog[open]{display:flex;flex-direction:column;height:min(720px,calc(100dvh - 32px));max-height:calc(100dvh - 32px)}
#shortcut-dialog>.dialog-heading,#shortcut-dialog>.shortcut-tabs,#shortcut-selection,#shortcut-dialog>.shortcut-footer{flex-shrink:0}
#shortcut-dialog .shortcut-options{flex:1;min-height:0;max-height:none}
@media(max-height:600px){
 #shortcut-dialog{padding:16px}
 #shortcut-dialog .dialog-heading{margin-bottom:12px}
 #shortcut-dialog .dialog-heading .eyebrow{display:none}
 #shortcut-dialog .dialog-heading h2{font-size:18px;margin:0}
 #shortcut-dialog .shortcut-tabs{margin-bottom:10px}
 #shortcut-dialog .shortcut-tabs button{padding-bottom:9px}
 #shortcut-dialog .shortcut-filters{padding:7px 0}
 #shortcut-dialog .shortcut-footer{padding-top:10px;margin-top:8px}
}
