/* Monitor AI 0.15: native light/dark themes and a quieter navigation inspired by hPanel. */
html[data-theme]{--primary:#3a35f4;--primary-soft:#eeecff;--ink:#211d35;--muted:#59556a;--border:#c9c6d6;--canvas:#f5f5f8;--white:#fff;--surface:#fff;--soft:#eeedf3;--nav-bg:#eae9ef;--nav-text:#302b40;--nav-hover:#fff;--header:#151126;--header-ink:#fff;--focus:#3a35f4;--notice:#f0edff;--notice-ink:#443a80;--positive:#08724f;--shadow:0 7px 25px rgba(30,22,58,.04);color-scheme:light}
html[data-theme=dark]{--primary:#aaa6ff;--primary-soft:#30294f;--ink:#f4f2ff;--muted:#c4bed6;--border:#625a79;--canvas:#151221;--white:#231e32;--surface:#231e32;--soft:#302a41;--nav-bg:#1c1829;--nav-text:#ded8ef;--nav-hover:#332c46;--header:#0e0b19;--header-ink:#fff;--focus:#f6ea51;--notice:#30294f;--notice-ink:#e2dcff;--positive:#9be6ca;color-scheme:dark}
html[data-theme][data-contrast=true]{--muted:var(--ink);--border:var(--ink);--shadow:none}
html[data-theme] body{background:var(--canvas);color:var(--ink);font-size:15px;line-height:1.6}
html[data-theme] a{color:var(--primary);text-decoration:underline;text-underline-offset:3px}
html[data-theme] :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid var(--focus)!important;outline-offset:3px;box-shadow:0 0 0 2px var(--surface)}
html[data-theme] :is(button,summary){min-height:36px}
html[data-theme] :is(input,select,textarea){color:var(--ink);background:var(--surface);border-color:var(--field-border);font-size:15px}
html[data-theme] :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
html[data-theme] :is(input[type=checkbox],input[type=radio]){min-height:20px;min-width:20px;accent-color:#3a35f4}
html[data-theme] :is(label,.form-group label){color:var(--ink)}
html[data-theme] .sidebar{width:280px;background:var(--nav-bg);color:var(--nav-text);padding:24px 16px;border-right:1px solid var(--border)}
html[data-theme] .brand{margin-bottom:28px;padding:0 10px}.brand small{letter-spacing:.25px}
html[data-theme] .brand :is(strong,small){color:var(--nav-text)}
html[data-theme] .side-caption{color:var(--muted);font-size:11px;letter-spacing:.5px}
html[data-theme] .nav-link{color:var(--nav-text);font-size:14px;padding:12px 10px;white-space:normal;line-height:1.35;min-height:48px;font-weight:550;box-shadow:none}
html[data-theme] .nav-link:hover{background:var(--nav-hover);color:var(--ink)}
html[data-theme] .nav-link.active{background:var(--nav-hover);color:var(--ink);font-weight:750;box-shadow:inset 3px 0 0 #3a35f4}
html[data-theme] .context-help-nav-wrap{display:grid;grid-template-columns:minmax(0,1fr) 32px;gap:2px;align-items:center;border-radius:12px}
html[data-theme] .context-help-nav-wrap:has(.nav-link.active){background:var(--nav-hover)}
html[data-theme] .context-help-nav-wrap>.nav-link{padding-right:10px;min-width:0}
html[data-theme] .context-help-nav-wrap>.context-help-trigger{position:static;transform:none;margin:0;opacity:0;pointer-events:none;justify-self:center;color:var(--muted);background:transparent;border-color:var(--border)}
html[data-theme] .context-help-nav-wrap:hover>.context-help-trigger,html[data-theme] .context-help-nav-wrap:focus-within>.context-help-trigger{opacity:1;pointer-events:auto}
html[data-theme] .side-help{background:var(--surface);border-color:var(--border);color:var(--ink)}
html[data-theme] :is(.side-help p,.side-foot,.side-help button){color:var(--muted);font-size:12px}
html[data-theme] .topbar{background:var(--header);color:var(--header-ink);height:auto;min-height:80px;gap:16px;padding:16px 28px;border:0;border-radius:0 0 20px 20px;position:relative;z-index:10}
html[data-theme] .topbar :is(.breadcrumb,.breadcrumb strong,.breadcrumb span){color:var(--header-ink)}
html[data-theme] .top-right{gap:10px;flex-wrap:wrap;justify-content:flex-end;min-width:0}
html[data-theme] .topbar .environment{background:#2e2841;color:#ede9ff;border-color:#726986}
html[data-theme] .topbar .btn{background:#fff;color:#211d35;border-color:#d5d0e4}
html[data-theme] .main{padding:32px 32px 85px}
html[data-theme] .page-head h1{font-size:30px;letter-spacing:-.7px;color:var(--ink)}
html[data-theme] :is(.page-head p,.card-head p,.stat-label,.stat-desc,.item-sub,.section-note,.form-help,.muted,.report-method,.report-caption,.question-evidence-note,.chart-caption,.legend){color:var(--muted);font-size:13px;line-height:1.65}
html[data-theme] .eyebrow{font-size:11px;text-transform:none;letter-spacing:.7px}
html[data-theme] :is(.card,.stat-card,.settings-panel,.table-card,.modal,.wizard-panel,.adam-panel){background:var(--surface);color:var(--ink);border-color:var(--border);border-radius:16px}
html[data-theme] :is(.card-head h2,.item-title,.form-group label){font-size:15px;color:var(--ink)}
html[data-theme] :is(.btn,.icon-button,.context-help-trigger,.context-help-close,.wizard-choice,.wizard-exit,.wizard-remove,.wizard-tag-button,.adam-suggestions button,.adam-actions button,.adam-project-tools button,.adam-proposal button){background:var(--surface);color:var(--ink);border-color:var(--border)}
html[data-theme] .btn{font-size:13px;min-height:40px;white-space:normal}
html[data-theme] .btn.primary{color:#fff;background:#3a35f4;border-color:#3a35f4}
html[data-theme] .btn.yellow{background:#f6ea51;color:#211d35;border-color:#f6ea51}
html[data-theme] .icon-button{min-height:36px;min-width:36px}
html[data-theme] :is(.notice,.info-card,.small-tag,.stat-icon,.bullet-icon,.wizard-help-live,.wizard-ai-box,.wizard-info,.wizard-small,.wizard-feedback,.wizard-ai-pill){background:var(--notice);color:var(--notice-ink);border-color:var(--border)}
html[data-theme] :is(.pill,.rec-category){background:var(--soft);color:var(--ink);border-color:var(--border)}
html[data-theme] .pill.good{color:var(--positive);background:var(--surface)}
html[data-theme] :is(table th,.table-toolbar,.question-report-table th,.result-answer,.measurement-preview,.question-answer-record,.wizard-bottom,.wizard-note,.wizard-summary>div,.wizard-choice.active,.wizard-draft-saved,.adam-free-help,.adam-message,.adam-proposal,.adam-message.user){background:var(--soft);color:var(--ink);border-color:var(--border)}
html[data-theme] :is(table td,table th,.table-toolbar p,.table-toolbar h2,.wizard-lead,.wizard-label label,.wizard-choice span,.wizard-summary span,.wizard-choice strong,.wizard-body h1,.wizard-body h2,.wizard-note,.wizard-feedback,.wizard-prompt-check,.wizard-steps>div,.adam-intro,.adam-cost,.adam-status,.adam-project-tools p){color:var(--ink)}
html[data-theme] :is(.table td,.table th,.result-row,.result-answer,.measurement-run-error,.measurement-run-pending){font-size:13px;line-height:1.65;border-color:var(--border)}
html[data-theme] .context-help-trigger{min-height:28px;min-width:28px;width:28px;height:28px;font-size:13px;flex-shrink:0;vertical-align:middle;border-radius:50%;margin-left:8px}
html[data-theme] h1 .context-help-trigger{font-size:13px;vertical-align:middle;margin-left:10px}
html[data-theme] .context-help-popover{background:var(--surface);color:var(--ink);border-color:var(--border);font-size:14px}
html[data-theme] .context-help-popover :is(strong,p){color:var(--ink);font-size:14px}
html[data-theme] .context-help-popover .context-help-example{background:var(--soft);color:var(--ink)}
html[data-theme] :is(.measurement-outcome,.measurement-outcome p,.measurement-dashboard-alert,.measurement-run-error,.measurement-run-pending){background:var(--soft);color:var(--ink);border-color:var(--border)}
html[data-theme] .result-copy-controls .btn{font-size:12px;min-height:36px}
html[data-theme] .adam-head{background:#3a35f4;color:#fff}
html[data-theme] .adam-head :is(h2,p,button){color:#fff}
html[data-theme] .adam-message strong{color:var(--ink)}
html[data-theme] .adam-form{background:var(--surface);border-color:var(--border)}
html[data-theme] .adam-links a{background:var(--soft);color:var(--primary);border-color:var(--border)}
html[data-theme] .adam-launcher{background:#3a35f4;color:#fff;box-shadow:0 6px 20px #17112930}
html[data-theme] .adam-launcher-help{color:#fff}
html[data-theme] .modal-head h2{color:var(--ink)}
html[data-theme] .evidence-highlight{outline-color:var(--focus)}
html[data-theme] svg text{fill:var(--muted)}
html[data-theme] .table-scroll{border-radius:12px}
.display-menu{position:relative;flex-shrink:0;color:var(--ink);font-size:14px}
.display-menu summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:7px;border:1px solid #726986;background:#2e2841;color:#fff;border-radius:10px;padding:8px 12px;min-height:40px}
.display-menu summary::-webkit-details-marker{display:none}
.display-popover{position:absolute;right:0;top:calc(100% + 10px);z-index:220;width:min(320px,calc(100vw - 30px));padding:20px;background:var(--surface);color:var(--ink);border:1px solid var(--border);border-radius:14px;box-shadow:0 12px 35px #100b2d40;max-height:calc(100dvh - 110px);overflow:auto}
.display-popover strong{font-size:16px;display:block;margin-bottom:14px}.display-popover label{display:block;margin-top:12px;font-size:14px;font-weight:600}
.display-popover select{width:100%;padding:9px;border:1px solid var(--border);border-radius:8px;min-height:40px;margin-top:6px}
.display-popover .display-check{display:flex;gap:8px;align-items:center;line-height:1.4;padding:5px 0}
.display-popover p{font-size:13px;color:var(--muted);line-height:1.6;margin:14px 0}
.display-popover button{padding:7px 10px;background:var(--soft);color:var(--ink);border:1px solid var(--border);border-radius:8px;margin-right:6px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:fixed;top:8px;left:8px;z-index:2147483646;background:var(--surface);color:var(--ink)!important;padding:12px;border:2px solid var(--focus);border-radius:8px;transform:translateY(-160%)}
.skip-link:focus{transform:none}
html[data-text="125"] :is(p,li,label,input,select,textarea,.nav-link,.btn,.stat-label,.stat-desc,.item-title,.item-sub,.section-note,.form-help,.report-method,.report-caption,.question-evidence-note,.result-answer,.table td,.table th){font-size:17px!important}
html[data-text="150"] :is(p,li,label,input,select,textarea,.nav-link,.btn,.stat-label,.stat-desc,.item-title,.item-sub,.section-note,.form-help,.report-method,.report-caption,.question-evidence-note,.result-answer,.table td,.table th){font-size:20px!important;line-height:1.7!important}
html[data-text="150"] .sidebar{width:300px}
html[data-theme] .auth-main{background:var(--surface);color:var(--ink);border-color:var(--border)}
html[data-theme] .auth-main :is(p,small){color:var(--muted)}
html[data-theme] .auth-main input{background:var(--surface);color:var(--ink);border-color:var(--border)}
html[data-theme] .auth-main button:not(.display-popover button){background:#3a35f4;color:#fff}
html[data-theme] .auth-main #account-nav{align-items:center}
html[data-theme] .auth-main #error{color:var(--ink)}
html[data-theme] .auth-main .display-popover button{width:auto;margin-top:12px}
@media(hover:none){html[data-theme] .context-help-nav-wrap>.context-help-trigger{opacity:1;pointer-events:auto}}
@media(max-width:1100px){html[data-theme] .topbar{padding:14px 20px}.top-left{min-width:0;flex:1}.breadcrumb{overflow-wrap:anywhere}.environment{display:none!important}}
@media(max-width:900px){html[data-theme] .stats{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-theme] :is(.dashboard-grid,.lower-grid,.subgrid){grid-template-columns:1fr}html[data-theme] .main{padding:26px 20px 90px}html[data-theme] .page-head{flex-wrap:wrap}}
@media(max-width:720px){html[data-theme] .sidebar,html[data-text="150"] .sidebar{width:min(320px,90vw)}html[data-theme] .topbar{padding:12px 14px;border-radius:0 0 14px 14px;flex-wrap:wrap;gap:12px}html[data-theme] .top-left{width:100%;flex:auto;gap:10px}html[data-theme] .top-right{width:100%;justify-content:flex-end;gap:8px}html[data-theme] .main{padding:24px 16px 100px}html[data-theme] .page-head h1{font-size:26px}html[data-theme] .mobile-menu{color:#fff}html[data-theme] .sidebar-close{color:var(--ink)}html[data-theme] .context-help-nav-wrap>.context-help-trigger{opacity:1;pointer-events:auto}html[data-theme] .display-popover{position:fixed;top:100px;right:15px}html[data-theme] .context-help-trigger{min-height:32px;min-width:32px;width:32px;height:32px}}
@media(max-width:390px){html[data-theme] .stats{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
html[data-motion=true] *,html[data-motion=true] *::before,html[data-motion=true] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(forced-colors:active){.nav-link.active{border:2px solid Highlight!important}.context-help-trigger{border:1px solid ButtonText!important}.context-help-nav-wrap>.context-help-trigger{opacity:1!important}}

.page-title-row{display:flex;gap:4px;align-items:center;flex-wrap:wrap;margin-bottom:8px}.page-title-row h1{margin-bottom:0!important}.page-title-row>.context-help-trigger{margin-top:0;flex-shrink:0}

html[data-theme] :is(h1,h2,h3,h4){color:var(--ink)}
html[data-theme] :is(.setup-hero,.setup-counts>div,.setup-profile,.setup-example,.setup-plan-list,.perception-placeholder,.empty){background:var(--surface);color:var(--ink);border-color:var(--border)}
html[data-theme] :is(.setup-hero p,.setup-counts span,.setup-profile dt,.setup-profile dd,.setup-example-list,.setup-disclaimer,.setup-plan-list p,.setup-plan-list strong,.perception-placeholder p,.empty p,.empty h3){color:var(--ink)}
html[data-theme] .setup-counts strong{color:var(--primary)}
html[data-theme] .auth-main .mark{color:var(--primary)}html[data-theme] .auth-main .mark b{color:#211d35}

html[data-theme] .mobile-menu{background:transparent;border:1px solid #726986;color:#fff;min-width:40px;min-height:40px}
.skip-link{left:-10000px;top:8px;transform:none}.skip-link:focus{left:8px}

html[data-theme] :is(.rec-body p,.info-card p,.brand-legend,.report-empty p){color:var(--muted);font-size:13px;line-height:1.65}

html[data-theme] .rec-number{background:var(--notice);color:var(--notice-ink)}
html[data-theme] pre{background:var(--soft)!important;color:var(--ink)}

html[data-theme] .intent-example{background:var(--soft);border-color:var(--border);color:var(--ink)}
html[data-theme] .intent-example :is(span,p){color:var(--ink);font-size:13px;line-height:1.65}

/* 0.19: distinguish editable fields from surrounding text by shape and contrast. */
html[data-theme]{--field-bg:#f6f4ff;--field-border:#83758f}
html[data-theme=dark]{--field-bg:#1b1628;--field-border:#c4b6d8}
html[data-theme][data-contrast=true]{--field-bg:var(--canvas);--field-border:var(--ink)}
html[data-theme][data-fields=true] body :is(input:not([type]),input[type=text],input[type=email],input[type=password],input[type=search],input[type=url],input[type=tel],input[type=number],select,textarea){background:var(--field-bg);color:var(--ink);border:2px solid var(--field-border);border-radius:10px;min-height:48px;padding:10px 12px;box-shadow:inset 0 1px 2px #0000000c}
html[data-theme][data-fields=true] body :is(input:not([type]),input[type=text],input[type=email],input[type=password],input[type=search],input[type=url],input[type=tel],input[type=number],select,textarea):focus{border-color:var(--focus);outline:3px solid var(--focus);outline-offset:3px}
html[data-theme][data-fields=true] body :is(input,textarea)::placeholder{color:var(--muted);font-style:italic;opacity:1}
html[data-theme][data-fields=true] body :is(input,select,textarea):disabled,html[data-theme][data-fields=true] body :is(input,textarea)[readonly]{background:var(--soft);color:var(--ink);border-style:dashed;opacity:1}
html[data-theme][data-fields=true] body :is(.form-group label,.wizard-field label,.users-panel form>label){font-weight:750}
@media(forced-colors:active){html[data-theme][data-fields=true] body :is(input,select,textarea){border:2px solid ButtonText;background:Canvas;color:CanvasText}}

/* Table hover and keyboard focus must retain readable text in both themes. */
html[data-theme] .table tbody tr:is(:hover,:focus-within)>td{background:var(--soft);color:var(--ink)}

html[data-theme]{--selection-bg:#3a35f4;--selection-ink:#fff}
html[data-theme=dark]{--selection-bg:#f6ea51;--selection-ink:#211d35}
html[data-theme]::selection,html[data-theme] ::selection{background:var(--selection-bg);color:var(--selection-ink)}
html[data-theme] :is(.icon-button,.wizard-exit,.wizard-info,.wizard-remove,.adam-suggestions button):hover{background:var(--soft);color:var(--ink)}

/* Input boundaries stay distinguishable even without the optional enhanced field style. */
html[data-theme] .display-popover select,html[data-theme] .auth-main input{border-color:var(--field-border)}

/* Standalone account actions remain easy to reach with large text and touch. */
html[data-theme] .auth-main #account-nav>a{display:inline-flex;align-items:center;min-height:44px;max-width:100%;padding:8px 10px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;border-radius:8px}
html[data-text="125"] .auth-main #account-nav>a{font-size:17px!important}
html[data-text="150"] .auth-main #account-nav>a{font-size:20px!important;line-height:1.7!important}
@media(max-width:480px){html[data-theme] .auth-main #account-nav>a{width:100%}}
@media(forced-colors:active){html[data-theme] .auth-main #account-nav>a:focus-visible{outline:3px solid Highlight!important}}


/* An action and its help share one wrapping unit; separate actions retain the row gap. */
.context-help-action{display:inline-flex;align-items:center;gap:5px;flex:0 1 auto;max-width:100%;min-width:0;vertical-align:middle}
.context-help-action>.btn{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
html[data-theme] .context-help-action>.context-help-trigger,html[data-theme] .context-help-label-row>.context-help-trigger,html[data-theme] .page-title-row>.context-help-trigger{margin:0;flex-shrink:0}
.context-help-label-row,.page-title-row{flex-wrap:nowrap;gap:6px;min-width:0}
.context-help-label-row>label,.page-title-row>h1{min-width:0;overflow-wrap:anywhere}
.context-help-action:has(>button[hidden]){display:none!important}
html[data-theme] :is(.action-bar,.project-selector):has(>.context-help-action){column-gap:16px;row-gap:10px}
@media(max-width:720px){html[data-theme] .project-selector>.context-help-action{justify-self:start;max-width:100%}.context-help-action>.btn{min-height:44px}}

.settings-panel .context-help-action{margin-top:22px}.settings-panel .context-help-action>.btn{margin-top:0}

/* Internal subscription confirmation and return status. */
.commerce-cancel-preview,.commerce-return{border:1px solid var(--border,#dce1ee);border-radius:14px;padding:18px;margin:18px 0;background:var(--card-bg,var(--panel,#fff));overflow-wrap:anywhere}
.commerce-cancel-preview h4,.commerce-return p:first-child{margin-top:0}
.commerce-cancel-preview .commerce-actions{display:flex;flex-wrap:wrap;gap:12px}
.commerce-panel #billing-refresh{margin-bottom:16px}
html[data-theme=dark] .commerce-cancel-preview,html[data-theme=dark] .commerce-return{background:var(--surface,#171b2c);border-color:var(--border,#38405a)}

/* A full display settings dialog keeps choices together without covering the header menu. */
html[data-theme] .display-overlay[hidden]{display:none!important}
html[data-theme] .display-overlay{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;padding:20px;background:rgb(18 26 44 / 38%);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);color:var(--ink)}
html[data-theme] .display-dialog{width:min(1160px,100%);max-height:calc(100dvh - 40px);min-width:0;display:flex;flex-direction:column;background:var(--surface);color:var(--ink);border:1px solid var(--border);border-radius:22px;box-shadow:0 22px 70px rgb(16 24 40 / 24%);overflow:hidden;text-align:left;font-size:14px;line-height:1.5}
html[data-theme] .display-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px 28px 22px;border-bottom:1px solid var(--border);flex:0 0 auto;background:var(--surface)}
html[data-theme] .display-dialog h2{font-size:25px;line-height:1.3;font-weight:600;letter-spacing:-.3px;margin:0 0 8px;color:var(--ink)}
html[data-theme] .display-dialog h3{font-size:16px;font-weight:600;line-height:1.4;margin:0 0 18px;color:var(--ink)}
html[data-theme] .display-dialog h4{font-size:15px;font-weight:600;line-height:1.4;margin:0 0 8px;color:var(--ink)}
html[data-theme] .display-dialog p{font-size:13px;color:var(--muted);line-height:1.6;margin:0 0 18px}
html[data-theme] .display-dialog-head p{margin:0}
html[data-theme] .display-dialog button{font:inherit;cursor:pointer;color:var(--ink);background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:10px 16px;min-height:44px;white-space:normal;line-height:1.4}
html[data-theme] .display-dialog button:hover{background:var(--soft);color:var(--ink)}
html[data-theme] .display-dialog #display-close{font-size:25px;font-weight:400;line-height:1;display:grid;place-items:center;flex:0 0 44px;min-width:44px;width:44px;height:44px;padding:0;border-color:var(--border);background:var(--soft)}
html[data-theme] .display-dialog-body{display:grid;grid-template-columns:minmax(0,2fr) minmax(265px,1fr);gap:24px;align-items:start;overflow:auto;overscroll-behavior:contain;padding:24px 28px;min-height:0;min-width:0;scrollbar-gutter:stable}
html[data-theme] .display-dialog-body>*{min-width:0}
html[data-theme] .display-settings-card{background:var(--soft);border:1px solid var(--border);border-radius:18px;padding:22px;min-width:0;margin-bottom:20px}
html[data-theme] .display-settings-card:last-child{margin-bottom:0}
html[data-theme] .display-dialog fieldset{padding:0;min-width:0;border:0;margin:0}
html[data-theme] .display-theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0 0 16px}
html[data-theme] .display-theme-card{display:block;position:relative;min-width:0;margin:0;padding:6px;border:1px solid var(--border);border-radius:12px;background:var(--surface);cursor:pointer;outline:2px solid transparent;outline-offset:0;color:var(--ink);font-size:12px;font-weight:400}
html[data-theme] .display-theme-card:has(input:checked){outline-color:var(--primary);border-color:var(--primary)}
html[data-theme] .display-theme-card:focus-within{outline:3px solid var(--focus);outline-offset:2px}
html[data-theme] .display-theme-preview{height:72px;display:grid;grid-template-columns:26% 1fr;grid-template-rows:12px 1fr;border:1px solid var(--border);border-radius:5px;overflow:hidden;background:var(--preview-canvas);pointer-events:none}
html[data-theme] .display-theme-preview>i{grid-column:1/-1;background:var(--preview-surface);border-bottom:1px solid var(--border);position:relative}
html[data-theme] .display-theme-preview>i:before{content:'';position:absolute;left:5px;top:4px;width:16px;height:3px;background:var(--preview-accent);border-radius:1px}
html[data-theme] .display-theme-preview>b{background:var(--preview-menu);padding:8px 5px;display:flex;flex-direction:column;gap:4px;font-weight:400}
html[data-theme] .display-theme-preview em{display:block;height:3px;width:100%;background:var(--preview-accent);opacity:.35;font-style:normal}
html[data-theme] .display-theme-preview em:first-child{opacity:1}
html[data-theme] .display-theme-preview>span{margin:10px 8px;min-width:0}
html[data-theme] .display-theme-preview>span>i{display:block;height:19px;border:1px solid var(--border);border-radius:2px;background:var(--preview-surface);position:relative}
html[data-theme] .display-theme-preview>span>i:before{content:'';position:absolute;left:4px;right:18px;top:5px;height:3px;background:var(--preview-ink);opacity:.55}
html[data-theme] .display-theme-preview>span>i+i{height:6px;margin-top:7px;width:18px;border:0;background:var(--preview-accent)}
html[data-theme] .display-theme-preview>span>i+i:before{display:none}
html[data-theme] .display-theme-caption{display:flex;align-items:center;justify-content:space-between;gap:4px;min-height:25px;padding:6px 2px 0;line-height:1.3;font-size:12px;overflow-wrap:anywhere}
html[data-theme] .display-theme-caption input{margin:0;min-width:16px!important;min-height:16px!important;width:16px;height:16px;flex:0 0 16px;padding:0}
html[data-theme] .display-default-theme{width:100%;margin:0 0 10px}
html[data-theme] .display-dialog .display-small-note{font-size:12px;margin:10px 0 0}
html[data-theme] .display-mode-label{font-size:12px;font-weight:500;display:block;margin:16px 0 6px}
html[data-theme] .display-dialog #display-theme{width:100%;max-width:100%;font-size:14px;padding:9px 12px;border:1px solid var(--field-border);border-radius:8px;min-height:42px;background:var(--surface);color:var(--ink)}
html[data-theme] .display-colors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px;margin-top:14px}
html[data-theme] .display-color-field{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:400;min-width:0;overflow-wrap:anywhere}
html[data-theme] .display-color-control{display:flex;gap:9px;align-items:center;min-width:0}
html[data-theme] .display-dialog input[type=color]{height:40px;width:40px;min-width:40px;min-height:40px;padding:4px;border-radius:50%;background:var(--surface);border:1px solid var(--border);cursor:pointer;flex-shrink:0}
html[data-theme] .display-dialog input[type=color]::-webkit-color-swatch-wrapper{padding:0}
html[data-theme] .display-dialog input[type=color]::-webkit-color-swatch{border:0;border-radius:50%}
html[data-theme] .display-dialog input[type=color]::-moz-color-swatch{border:0;border-radius:50%}
html[data-theme] .display-color-control output{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
html[data-theme] .display-accessibility{align-self:stretch;margin-bottom:0}
html[data-theme] .display-accessibility>p{margin-bottom:22px}
html[data-theme] .display-text-choices{display:flex;flex-direction:column;gap:8px;margin-bottom:24px}
html[data-theme] .display-text-choices legend{font-weight:600;font-size:14px;padding:0;margin-bottom:8px}
html[data-theme] .display-text-choices label{display:flex;align-items:center;gap:8px;padding:10px 11px;border:1px solid var(--border);border-radius:10px;background:var(--surface);font-size:13px;cursor:pointer;min-height:44px;margin:0;line-height:1.4}
html[data-theme] .display-text-choices label:has(input:checked){border-color:var(--primary);outline:1px solid var(--primary)}
html[data-theme] .display-dialog input[type=radio],html[data-theme] .display-dialog input[type=checkbox]{accent-color:var(--primary);flex-shrink:0;margin:0}
html[data-theme] .display-dialog .display-check{display:flex;align-items:center;gap:10px;min-height:44px;margin:14px 0;font-size:13px;font-weight:400;line-height:1.5;cursor:pointer}
html[data-theme] .display-dialog-foot{border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:16px;flex:0 0 auto;padding:14px 28px;background:var(--surface)}
html[data-theme] .display-dialog-foot>span{font-size:12px;color:var(--muted)}
html[data-theme] .display-dialog-foot>button{margin-left:auto;flex-shrink:0}
html[data-theme][data-links=true] a[href]{text-decoration:underline!important;text-decoration-thickness:2px!important;text-underline-offset:3px}
html[data-theme][data-strong-focus=true] :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline-width:4px!important;outline-offset:5px!important;box-shadow:0 0 0 3px var(--surface),0 0 0 7px var(--focus)!important}
@media(max-width:760px){
 html[data-theme] .display-overlay{padding:12px}
 html[data-theme] .display-dialog{max-height:calc(100dvh - 24px);border-radius:16px}
 html[data-theme] .display-dialog-head{padding:18px;gap:12px}
 html[data-theme] .display-dialog h2{font-size:21px}
 html[data-theme] .display-dialog-body{grid-template-columns:minmax(0,1fr);gap:18px;padding:18px}
 html[data-theme] .display-settings-card{padding:16px;border-radius:14px}
 html[data-theme] .display-dialog-foot{padding:12px 18px;gap:10px}
 html[data-theme] .display-dialog-foot>span{font-size:11px}
 html[data-theme] .display-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 html[data-theme] .display-theme-preview{height:68px}
 html[data-theme] .display-colors{gap:18px 14px}
}
@media(forced-colors:active){html[data-theme] .display-theme-card:has(input:checked),html[data-theme] .display-text-choices label:has(input:checked){outline:2px solid Highlight}html[data-theme] .display-theme-preview{forced-color-adjust:none}html[data-theme] .display-dialog input[type=color]{forced-color-adjust:none}}
html[data-text="125"] .display-dialog :is(.display-theme-caption,.display-color-control output,.display-small-note){font-size:15px!important}
html[data-text="150"] .display-dialog :is(.display-theme-caption,.display-color-control output,.display-small-note){font-size:17px!important;line-height:1.5!important}
