/* v0.34: scoped popup refinements; homepage geometry remains unchanged. */
.device-copy h2,.device-copy>p{text-align:center}.device-copy h2{margin-top:24px}.device-copy>p{max-width:38ch;margin-inline:auto}
.brand-popover{bottom:86px;max-height:calc(100dvh - 110px);overflow:auto}
.panel{padding:28px;max-height:calc(100dvh - 32px)}
.panel>h2{font-size:24px;line-height:1.25;margin:0 36px 24px 0;letter-spacing:-.025em}
.panel-close{width:32px;height:32px;top:16px;right:16px;display:grid;place-items:center;line-height:1;border-radius:9px}
.tile-editor{width:min(880px,calc(100vw - 32px));overflow:hidden;padding:0}
.tile-editor>h2{margin:26px 64px 20px 28px}
#editForm{display:flex;flex-direction:column;min-height:0;max-height:calc(100dvh - 118px)}
.editor-body{overflow:auto;min-height:0;padding:0 28px 24px;overscroll-behavior:contain}
.tile-editor .editor-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;max-height:none;align-items:start}
.tile-editor .editor-right,.tile-editor .editor-left{max-height:none;overflow:visible;padding:0;min-width:0}
.tile-editor .editor-preview-column{display:flex;flex-direction:column;gap:10px;align-items:center;margin:0 0 22px;padding:0}
.tile-editor .tile-preview{width:220px;max-width:100%;height:138px;border-radius:17px;margin:auto}
.tile-editor .tile-preview .mark{width:76px;height:76px;font-size:52px}
.tile-editor .editor-preview-column p{margin:0;text-align:center;line-height:1.5}
.tile-editor #editorStatus:empty{display:none}
.tile-editor .appearance-controls{overflow:visible;padding:0;min-height:0}
.tile-editor .editor-section,.tile-editor .editor-fields>.editor-section:first-child{display:block;border:0;padding:0;margin:0 0 20px}
.tile-editor .editor-section h3{font-size:14px;font-weight:650;margin:0 0 16px;color:var(--fg)}
.tile-editor label{display:block;font-size:12px;line-height:1.5;margin-bottom:14px;color:#c7d3e5}
.tile-editor input:not([type=radio]):not([type=file]):not([type=color]){display:block;width:100%;height:42px;margin:6px 0 0;padding:10px 12px;border-radius:9px;font-size:14px}
.tile-editor input[type=color]{width:42px;height:42px;margin:0;padding:3px;flex:0 0 42px;border-radius:9px}
.tile-editor .color-controls{display:flex;align-items:center;gap:8px;margin-top:6px}
.tile-editor .color-controls input:not([type=color]){margin:0}
.tile-editor fieldset{padding:0;border:0;margin:0 0 16px;min-width:0}
.tile-editor fieldset legend{font-size:12px;margin-bottom:10px;color:#c7d3e5}
.tile-editor :is(.logo-color-options,.art-choices){display:flex;flex-wrap:wrap;gap:10px 16px}
.tile-editor fieldset label{display:inline-flex;align-items:center;gap:6px;margin:0;font-size:12px}
.tile-editor input[type=radio]{margin:0;accent-color:#79aaff}
.tile-editor :is(small,#tintHelp){display:block;font-size:11px;line-height:1.6;color:#aabbd1;margin-top:7px}
.tile-editor #shortcutHelp{max-width:40ch}
.tile-editor #editKey{max-width:84px}
.tile-editor .advanced-search{margin:20px 0 0;padding:0;border:0}
.tile-editor .advanced-search summary{padding:12px;border-radius:9px;font-size:12px}
.tile-editor .advanced-search p{font-size:12px;line-height:1.6}
.tile-editor .advanced-actions{display:flex;flex-wrap:wrap;gap:8px}
.tile-editor .dialog-actions{display:flex;justify-content:space-between;gap:12px;flex-shrink:0;position:static;margin:0;padding:18px 28px;background:#102039;border-top:1px solid #b4c9e525}
.tile-editor .dialog-actions :is(.primary,.destructive){height:42px;padding:0 22px;min-width:142px;border-radius:10px;font-size:13px;font-weight:650;box-shadow:none}
.tile-editor .dialog-actions .primary{background:#3977bb;border:1px solid #77a9e855;color:white}
.tile-editor .dialog-actions .primary:hover{background:#4788ce}
.tile-editor .dialog-actions .destructive{background:#963e50;border:1px solid #d86b8055;color:#fff}
.tile-editor .dialog-actions .destructive:hover{background:#aa485b}
#howDialog{width:min(960px,calc(100vw - 32px));padding:28px}
#howDialog .info-sections{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:28px;align-items:start}
#howDialog .instructions-column{padding:0;background:none;border:0;border-radius:0}
#howDialog .info-sections h2{font-size:16px;line-height:1.4;margin-bottom:16px}
#howDialog .help-buttons{gap:0}
#howDialog .help-item{grid-template-columns:112px minmax(0,1fr);gap:14px;background:none;border:0;border-radius:0;padding:10px 0;box-shadow:none}
#howDialog .help-item .demo-key{width:112px;padding:9px 5px;min-height:40px;font-size:11px;border-radius:9px}
#howDialog .help-item strong{font-size:13px}#howDialog .help-item small{font-size:12px;line-height:1.55}
#howDialog .hubspree-backup-card{padding:22px;border-radius:14px}
#howDialog .hubspree-backup-card p{font-size:13px;line-height:1.75;margin-bottom:16px}
#howDialog .privacy-settings-link{margin-top:8px}
#settingsDialog .settings-cards{gap:24px}
#settingsDialog .settings-card{background:none;border:0;border-radius:0;padding:0}
#settingsDialog .settings-card h3{font-size:14px;margin:0 0 14px;color:#c7d3e5}
#settingsDialog .reset-section.settings-card{padding:20px 0 0;margin:0;border:0;border-top:1px solid #b4c9e525;background:none}
#settingsDialog .data-actions button{min-height:42px;border-radius:9px}
.search-site-logo{border-radius:14px!important;overflow:visible;box-shadow:none;border:0;flex:0 0 64px;width:64px;height:64px}
.search-site-logo .mark{width:40px;height:40px;max-width:100%;max-height:100%}
.search-site-logo .mark img{object-fit:contain;width:100%;height:100%;border-radius:0;box-shadow:none}
.search-site-logo.intelligent-context{border-radius:0!important;background:none}
.search-layer .search-hint{display:flex;flex-wrap:wrap;align-items:start;justify-content:center;gap:10px 24px;opacity:1;color:#d4deed;font-size:11px;line-height:1.8}
.search-hint>span{display:block}.search-hint small{display:block;font-size:10px;color:#a9bbd1;line-height:1.5;margin-top:4px}
.search-hint kbd{display:inline-block;min-width:22px;padding:2px 5px;text-align:center;background:#1d3352;border:1px solid #b4c9e540;border-radius:5px;color:#e8f0fc}
@media(max-width:760px){.tile-editor .editor-columns,#howDialog .info-sections{grid-template-columns:1fr;gap:24px}.tile-editor .editor-right{width:100%}.tile-editor .editor-preview-column{margin-bottom:20px}.tile-editor .tile-preview{width:208px;height:132px}.panel,#howDialog{padding:22px}.tile-editor{padding:0}.tile-editor>h2{margin-left:22px}.editor-body{padding-inline:22px}.tile-editor .dialog-actions{padding:14px 22px}.tile-editor .dialog-actions :is(.primary,.destructive){min-width:0;flex:1;padding:0 12px}.brand-popover{max-width:calc(100vw - 24px)}.device-copy{padding-top:20px;padding-bottom:20px}.device-copy h2{margin-top:20px}}
@media(max-height:600px){.panel{max-height:calc(100dvh - 24px)}.tile-editor>h2{margin-top:18px;margin-bottom:16px}#editForm{max-height:calc(100dvh - 88px)}.tile-editor .dialog-actions{padding-top:12px;padding-bottom:12px}.brand-popover{max-height:calc(100dvh - 108px)}}
/* Override the legacy dialog.panel sizing without touching other page geometry. */
dialog#editDialog{padding:0;overflow:hidden;max-height:calc(100dvh - 32px)}
.tile-editor #editRemove{margin-left:0;color:#fff;padding-left:22px}
#editName{outline:none}
.brand-popover{bottom:94px}
@media(max-height:600px){dialog#editDialog{max-height:calc(100dvh - 24px)}}
.brand-popover:not([hidden]){bottom:94px}
/* Keep the bubble pointer outside the shell; scroll only the selected content. */
.brand-popover:not([hidden]){display:flex;flex-direction:column;overflow:visible}
.brand-popover .popover-nav{flex:0 0 auto}
.brand-popover .popover-view{flex:1 1 auto;min-height:0;height:auto;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
.brand-popover::after{content:"";display:block;position:absolute;left:50%;bottom:-8px;width:14px;height:14px;transform:translateX(-50%) rotate(45deg);background:#102039;border-right:1px solid #b4c9e52d;border-bottom:1px solid #b4c9e52d;pointer-events:none}
#settingsDialog>#settingsTitle{text-align:center;margin-left:36px;margin-right:36px}
#settingsDialog .reset-section.settings-card{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-height:168px;padding:22px;border:1px solid #ed657c55;border-radius:14px;background:#cf354110}
#settingsDialog .reset-section.settings-card h3{margin-bottom:10px}
#settingsDialog .reset-section.settings-card p{margin-bottom:14px}
