/* Visual layer over the existing catalogue and its controls. */
body{background:#eaf1f8}#home-screen,#camera-screen{display:none}body[data-screen=home]>.app-bar,body[data-screen=home]>#workspace,body[data-screen=camera]>.app-bar,body[data-screen=camera]>#workspace{display:none}body[data-screen=home]>#home-screen{display:flex}body[data-screen=camera]>#camera-screen{display:block}body[data-screen=explorer]>#workspace{display:block}
#home-screen{height:100%;flex-direction:column;background:radial-gradient(ellipse at 90% 8%,#e9e9cc88,transparent 48%),radial-gradient(ellipse at 8% 90%,#c6e3dcaa,transparent 55%),linear-gradient(125deg,#e6eefb,#edf2f6 60%,#dce9ed);padding:24px max(24px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom));overflow:hidden}.home-brand{font-size:18px;align-self:flex-start;gap:10px;letter-spacing:-.5px}.home-brand .brand-mark{background:#2864bb;box-shadow:0 4px 16px #2d61a122}.home-composition{width:min(1100px,100%);margin:auto;display:grid;grid-template-columns:1fr 1.15fr;grid-template-rows:auto auto;column-gap:20px;align-items:center}.circuit-art{grid-column:2;grid-row:1/3;width:100%;opacity:1}.circuit-art svg{display:block;width:100%;height:auto;overflow:visible}.home-copy{grid-column:1;grid-row:1}.home-copy .eyebrow{color:#477987;font-size:10px;letter-spacing:1.6px;margin:0 0 18px}.home-copy h1{font-size:clamp(36px,4.6vw,60px);font-weight:650;line-height:1.07;letter-spacing:-2px;margin:0}.home-copy h1 span{color:#2b669f}.home-copy>p:last-child{font-size:16px;line-height:1.65;color:#596a7e;margin:22px 0 28px}.home-actions{grid-column:1;grid-row:2;display:grid;gap:12px;max-width:365px}.home-action{display:flex;gap:14px;min-height:80px;border-radius:22px;padding:16px;text-align:left;justify-content:flex-start;box-shadow:0 8px 24px #2a578e12}.home-action>span:nth-child(2){flex:1}.home-action b{display:flex;align-items:center;gap:8px;font-size:19px;font-weight:600}.home-action small{display:block;margin-top:5px;font-size:12px;font-weight:400}.home-action>.icon{width:18px}.action-icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;flex-shrink:0;background:#ffffff20}.camera-action{background:#2866c3}.camera-action:hover{background:#215aac}.camera-action small{color:#d8e9ff}.library-action{background:#eef2e6d9;color:#354d50;border:1px solid #d5dfce;box-shadow:none}.library-action:hover{background:#e4eddd}.library-action small{color:#6b796e}.library-action .action-icon{background:#dde6d2;color:#5f8162}.home-action em{font-size:9px;font-style:normal;font-weight:500;background:#f4dfa0;color:#685723;border-radius:8px;padding:4px 6px;letter-spacing:0}.home-footer{text-align:center;color:#6d808c;letter-spacing:.4px;font-size:11px;margin:15px 0 0}
body[data-screen=explorer]{background:#161e28}body[data-screen=explorer] .app-bar{background:#19222e;border-color:#ffffff0c;color:#e6eff8}.explorer-brand{display:flex;align-items:center;gap:6px}.explorer-brand .brand{color:#e3edf7;font-size:16px}.app-bar .icon-button{color:#b3c5da}.app-bar .icon-button:hover{background:#2b3b50}.app-bar .tonal{background:#2a4160;color:#d3e5ff}#stage{background:radial-gradient(ellipse at 50% 40%,#3a4650 0%,#222d38 55%,#161e28 100%)}.board-heading h1{color:#f0f4fa;font-size:24px}.board-heading .eyebrow{color:#9badbd}.view-controls{background:#1d2b3ddd;border-color:#bcd1e322;box-shadow:0 5px 28px #0003;backdrop-filter:blur(10px)}.view-controls .icon-button{color:#cedef2}.view-controls .icon-button:hover{background:#334964}.view-controls .separator{background:#95b3d133}#viewer-message{color:#a7b8c9}#empty-state{color:#edf4fa}#empty-state>p:not(.eyebrow){color:#acbdcf}#empty-state .eyebrow{color:#99b9de}.component-card{background:#213044eF;color:#f3f6fc;border:1px solid #d7e8ff2b;box-shadow:0 14px 42px #0005;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);animation:card-in .16s ease-out}.component-card .card-header h2{color:#f6f8ff}.component-card .eyebrow{color:#b5c9de}.component-card .icon-button{color:#c1d3e8}.component-card .icon-button:hover{background:#ffffff18}.component-card .card-scroll>p{font-size:14px;line-height:1.5}.component-card .subtle{color:#becbdb;font-size:13px}.component-card #sources a{font-size:13px;color:#9cc4ff;min-height:36px}.component-card #facts{font-size:14px}.component-card .card-scroll{scrollbar-color:#7a93ad #ffffff10}
#camera-screen{height:100%;background:#121a23;flex:1;min-height:0;color:#fff}#camera-stage{height:100%;width:100%;position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 42%,#34424f,#141d27)}#live-camera,#frozen-camera,#capture-overlay{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}#live-camera{object-fit:cover}#capture-overlay{z-index:1;pointer-events:none}#capture-overlay polygon{vector-effect:non-scaling-stroke;stroke-width:3;fill:#71a5f512;stroke:#8ab6ff;pointer-events:all;cursor:pointer;filter:drop-shadow(0 1px 2px #000);transition:fill .12s,stroke .12s}#capture-overlay polygon.confirmado{stroke:#69e4b2;fill:#69e4b218}#capture-overlay polygon.probable{stroke:#ffc95e;stroke-dasharray:7 4;fill:#ffc95e10}#capture-overlay polygon.desconocido{stroke:#b2c5e4;stroke-dasharray:3 5}#capture-overlay polygon.selected{stroke:#ffe28b;stroke-width:5;stroke-dasharray:none;fill:#ffe28b32}#capture-overlay text{fill:#fff;font-family:Roboto,sans-serif;paint-order:stroke;stroke:#142131;stroke-width:5;stroke-linejoin:round;pointer-events:none;font-weight:500}.camera-top{position:absolute;top:max(12px,env(safe-area-inset-top));left:14px;right:14px;display:flex;gap:12px;align-items:center;z-index:4}.camera-top>div{flex:1;text-align:center;text-shadow:0 1px 8px #000}.camera-top b{display:block;font-size:16px;font-weight:500}.camera-top span{display:block;color:#d0dce8;font-size:12px;margin-top:4px}.camera-top .icon-button{color:#f0f6fd;background:#152332b3;border:1px solid #ffffff20;backdrop-filter:blur(8px)}.camera-profile{position:absolute;top:82px;left:50%;transform:translateX(-50%);z-index:4;display:flex;align-items:center;gap:8px;background:#182637e6;border:1px solid #c4d4e329;border-radius:22px;padding:3px 12px;max-width:calc(100% - 24px)}.camera-profile label{font-size:11px;white-space:nowrap;color:#bacbdc;margin:0}.camera-profile select{border:0;background:transparent;color:#e3eefb;font-size:12px;padding:9px 0;margin:0;width:auto;max-width:215px;min-height:36px}.camera-profile option{background:#213044;color:#fff}#camera-empty{position:absolute;inset:155px 20px 130px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.empty-camera-icon{height:80px;width:80px;border:1px solid #b3cbe733;background:#d8eaff0c;border-radius:26px;display:grid;place-items:center;color:#b6d2f1}.empty-camera-icon .icon{width:34px;height:34px;stroke-width:1.4}#camera-empty h2{font-size:24px;letter-spacing:-.6px;margin:22px 0 8px;font-weight:500}#camera-empty p{font-size:14px;color:#b5c7da;max-width:300px;line-height:1.6;margin:0 0 20px}#camera-empty button{background:#3a73c9}#capture-status{position:absolute;top:129px;left:50%;transform:translateX(-50%);max-width:calc(100% - 24px);width:max-content;margin:0;padding:8px 12px;border-radius:14px;background:#132132d9;color:#d5e4f4;font-size:12px;line-height:1.45;text-align:center;pointer-events:none;z-index:3}#capture-status:empty{display:none}#camera-busy{position:absolute;right:18px;bottom:125px;display:flex;align-items:center;gap:9px;padding:10px 14px;border-radius:24px;background:#17283ddf;color:#d5e6fa;font-size:12px;z-index:3;pointer-events:none}#camera-components{position:absolute;left:12px;right:12px;top:181px;display:flex;justify-content:center;gap:7px;overflow-x:auto;z-index:3;scrollbar-width:none}#camera-components button{background:#14253bdc;color:#d1e3f6;border:1px solid #a9c5e638;font-size:12px;padding:8px 12px;min-height:38px;flex-shrink:0}#camera-components button[aria-pressed=true]{background:#ffdf91;color:#303b42;border-color:#ffdf91}.capture-controls{position:absolute;bottom:max(20px,env(safe-area-inset-bottom));left:0;right:0;display:flex;align-items:center;justify-content:center;gap:34px;z-index:4}.capture-controls:before{content:'';position:absolute;inset:-45px 0 -35px;background:linear-gradient(transparent,#0f192bc2);pointer-events:none;z-index:-1}.camera-secondary{background:transparent;color:#dfecfa;display:flex;flex-direction:column;padding:8px;gap:7px;min-width:70px;font-size:11px}.camera-secondary:hover{background:#d0e7ff15}.camera-secondary:disabled{opacity:.35}#capture-button{width:76px;height:76px;border:3px solid #e0ecfa;background:transparent;border-radius:50%;padding:5px;box-shadow:0 3px 20px #0003}#capture-button span{width:100%;height:100%;display:block;border-radius:50%;background:#f1f6fc;transition:transform .12s}#capture-button:not(:disabled):active span{transform:scale(.9)}#capture-button:disabled{opacity:.45}#camera-stage .component-card{z-index:5}
@keyframes card-in{from{opacity:0;translate:0 6px}to{opacity:1;translate:0 0}}
@media(max-width:600px){#home-screen{padding:20px 22px max(16px,env(safe-area-inset-bottom))}.home-brand{font-size:17px}.home-brand .brand-mark{width:32px;height:32px}.home-composition{display:flex;flex-direction:column;margin:auto;width:100%;gap:0}.circuit-art{width:calc(100% + 32px);max-width:430px;margin:0 -16px 8px}.circuit-art svg{max-height:225px}.home-copy{text-align:center}.home-copy .eyebrow{font-size:8px;letter-spacing:1.25px;margin:0 0 12px}.home-copy h1{font-size:36px;letter-spacing:-1.3px}.home-copy>p:last-child{font-size:14px;line-height:1.55;margin:13px 0 22px}.home-actions{width:100%;max-width:360px;gap:10px}.home-action{min-height:76px;padding:13px;border-radius:20px;gap:12px}.home-action b{font-size:18px;gap:7px}.home-action small{font-size:11px}.home-action em{font-size:8px;padding:4px}.action-icon{width:38px;height:38px;border-radius:12px}.home-footer{font-size:10px;margin:10px 0 0}.explorer-brand .brand{font-size:14px}.explorer-brand .icon-button{width:36px;padding:6px}.explorer-brand{gap:2px}.app-bar .tonal{padding:9px 9px}.board-heading h1{font-size:22px}.component-card .card-scroll>p{font-size:14px}.camera-profile{top:78px}#capture-status{top:126px}}
@media(max-height:700px) and (max-width:600px){.circuit-art svg{max-height:155px}.home-copy h1{font-size:32px}.home-copy>p:last-child{margin:10px 0 15px}.home-action{min-height:68px}.home-footer{margin-top:8px}}
@media(max-height:500px){#home-screen{padding:14px 24px}.home-brand{font-size:15px}.home-composition{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr;margin:auto;gap:20px}.circuit-art{position:absolute;left:6%;width:35%;opacity:.12;pointer-events:none}.home-copy{grid-column:1;grid-row:1;text-align:left}.home-copy h1{font-size:32px}.home-copy>p:last-child{font-size:12px;margin:10px 0}.home-copy .eyebrow{font-size:8px;margin-bottom:10px}.home-actions{grid-column:2;grid-row:1}.home-action{min-height:66px;padding:12px}.home-action b{font-size:17px}.home-action small{font-size:11px}.home-footer{display:none}.camera-profile{top:15px;max-width:300px}.camera-top>div{visibility:hidden}#capture-status{top:62px;max-width:60%;font-size:11px}#camera-components{top:106px;justify-content:flex-start;max-width:60%}.capture-controls{left:auto;right:15px;top:80px;bottom:12px;flex-direction:column;gap:6px;justify-content:center}.capture-controls:before{inset:-10px -30px -10px -30px;background:linear-gradient(90deg,transparent,#101e30a8)}#capture-button{width:66px;height:66px}.camera-secondary{min-height:40px;padding:5px}.camera-secondary span{font-size:10px}#camera-busy{bottom:16px;right:115px}#camera-empty{inset:75px 115px 20px 20px}#camera-empty h2{margin:12px 0 8px;font-size:21px}.empty-camera-icon{height:50px;width:50px;border-radius:18px}#camera-empty p{margin:0 0 8px;font-size:12px}}
#live-camera{object-fit:contain} /* Same framing before and after freezing; no display-only crop. */
@media(prefers-reduced-motion:reduce){.circuit-art,.component-card{animation:none!important}}
/* Iteration 3: preserve the approved palette and layout; change only requested controls. */
.home-copy h1>span[data-i18n]{color:inherit}.home-copy h1>span:last-child{color:#2b669f}
.home-copy>p>span[data-i18n]{font:inherit}.camera-top b>span{font:inherit;color:inherit;margin:0}
.component-card{background:rgba(22,36,54,.45);backdrop-filter:none;-webkit-backdrop-filter:none;opacity:1;border-color:#e6f2ff66;text-shadow:0 1px 3px #000c;box-shadow:0 6px 24px #0003}
.component-card .card-header,.component-card .card-scroll{background:transparent}.component-card .card-header h2,.component-card .icon-button,.component-card .card-scroll{opacity:1}.component-card .card-scroll>p{font-weight:500}.component-card #sources a{color:#c5ddff;text-shadow:0 1px 3px #000}.component-card #original-content{border-color:#daeaff55}.component-card #original-content p{color:#fff}
@keyframes card-slide{from{translate:0 6px}to{translate:0 0}}.component-card{animation:card-slide .16s ease-out}
#capture-overlay polygon.selected{stroke:#fff0a1;stroke-width:4;fill:#ffdc7214;filter:drop-shadow(0 0 2px #533900) drop-shadow(0 0 5px #ffdc72)}
.language-switch{position:fixed;right:22px;top:20px;z-index:6;display:flex;padding:3px;border:1px solid #8fa7c43d;border-radius:18px;background:#ffffff55;gap:1px}.language-switch button{min-height:30px;min-width:30px;padding:6px;border-radius:14px;font-size:11px;background:transparent;color:#4a607b}.language-switch button[aria-pressed=true]{background:#2866c3;color:#fff}.language-switch button:hover{box-shadow:inset 0 0 0 1px #86acf0}
body[data-screen=camera] .language-switch{left:70px;right:auto;top:17px;background:#182637a8}body[data-screen=explorer] .language-switch{left:62px;top:31px;right:auto;background:transparent;padding:0;border:0}body[data-screen=explorer] .language-switch button{min-height:22px;padding:2px 5px;font-size:10px}body:not([data-screen=home]) .language-switch button{color:#dceaff}body[data-screen=explorer] .explorer-brand .brand{align-self:flex-start;margin-top:5px}body[data-screen=explorer] .explorer-brand{height:100%;align-items:center}body[data-screen=explorer] .explorer-brand>.icon-button{align-self:center}
#saved-panel{min-height:0;display:flex;flex-direction:column}#saved-panel[hidden]{display:none}#saved-search{font-size:16px;margin:0}#saved-panel .search-label{margin:10px 0 8px}#catalog-count{margin:10px 0;font-size:12px}#saved-list-scroll{overflow:auto;overscroll-behavior:contain;max-height:50dvh;min-height:0;scrollbar-width:thin;padding-right:4px}#catalog .catalog-item:first-child{margin-top:0}.advanced-tools-heading{border-radius:14px;padding:14px;background:#edf3fc}.advanced-tools-heading h3{font-size:16px;margin:0 0 8px}.advanced-tools-heading p{margin:0}.admin-tool{margin-top:14px}
@media(max-width:600px){body[data-screen=explorer] .language-switch{left:58px;top:33px}.home-brand{max-width:calc(100% - 64px)}.home-brand .brand-mark{flex-shrink:0}}
@media(max-height:500px){body[data-screen=camera] .language-switch{left:65px;top:17px}.camera-profile{left:52%}body[data-screen=explorer] .language-switch{top:29px}#saved-list-scroll{max-height:35dvh}}

/* Third iteration: whole-row catalogue and distinct education/admin surfaces. */
button.catalog-item{width:100%;text-align:left;color:#273b59;font-family:inherit;background:#f8faff;justify-content:flex-start}
button.catalog-item:hover{background:#eaf1fd;border-color:#9eb8df}button.catalog-item:focus-visible{outline:3px solid #5788dc;outline-offset:2px}
.catalog-item .catalog-copy{flex:1;font-size:14px;margin:0;color:#273b59}.catalog-copy strong{font-size:15px;font-weight:500;color:#273b59}.catalog-item .catalog-arrow{font-size:26px;margin:0;color:#5276ac}
.confidence-summary{border-top:1px solid #d0e0f12b;padding-top:7px;margin-top:8px}.confidence-summary p{font-size:12px;line-height:1.45;margin:2px 0;color:#e1ebfa}
#confidence-basis{font-size:13px;line-height:1.5;color:#d5e3f4}#board-education{font-size:14px;line-height:1.65}#board-education h3{margin-top:18px}#board-education ul{padding-left:20px}#board-education .education-model{font-size:21px;margin:0 0 10px;line-height:1.3}
#board-education a{display:block;margin:8px 0;font-size:13px}.admin-entry{display:block;margin:14px 0;min-height:44px}.accuracy-note{background:#fff5d9;border-left:3px solid #e4ba51;padding:12px;border-radius:8px;font-size:12px;line-height:1.6}
#details-dialog .dialog-header{background:#edf1f7}#details-dialog .dialog-scroll{padding-top:12px}

/* Reuse the same illustration inside the existing mark slot; no layout shift. */
#empty-state .empty-mark{position:relative;background:transparent;box-shadow:none;flex-shrink:0}#empty-state .empty-mark>svg{position:absolute;left:50%;top:50%;width:300%;height:auto;transform:translate(-50%,-50%);overflow:visible;pointer-events:none}

/* Educational card: content first; provenance and confidence on demand. */
.component-card:not(.expanded) #component-description{display:block;overflow:visible;-webkit-line-clamp:unset}
.component-card .technical-reference{font-size:12px;line-height:1.5;color:#e6effa;border-top:1px solid #d0e0f12b;padding-top:10px}
#component-example{font-size:14px;line-height:1.5}#component-diagnostic{border-top:1px solid #d0e0f14a;margin-top:10px;padding-top:8px}
#component-diagnostic h3{font-size:14px;margin:4px 0 10px}#component-diagnostic p{font-size:13px;line-height:1.5;margin:8px 0}
#component-info[aria-expanded=true]{background:#b9d4ff24;color:#ffe28b}

/* Source CAD incompleteness is visible, never silently promoted to a complete model. */
.model-warning{position:absolute;left:12px;right:12px;bottom:68px;margin:0;padding:8px 12px;border-radius:12px;background:rgba(56,42,13,.9);color:#ffde8a;font-size:12px;line-height:1.4;pointer-events:none;max-width:560px;}

/* Keep the viewport/camera fixed. Expand or minimise the overlay, never the model. */
body[data-screen=explorer] .component-card:not(.expanded):not(.diagnostic-open) #component-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body[data-screen=explorer] .component-card:not(.expanded):not(.diagnostic-open) :is(#component-example,#component-reference,#sources,#original-content){display:none}
.component-card.minimized .card-scroll{display:none}.component-card .card-actions .icon-button{width:36px;padding:7px}
body:not([data-screen=explorer]) #minimize-card{display:none}

#nearby-selection{position:absolute;z-index:4;max-width:248px;padding:8px 12px;border:1px solid #e6f2ff66;border-radius:20px;background:rgba(22,36,54,.83);color:#f3f6fc;font-family:inherit;font-size:14px;font-weight:500;line-height:1.5;opacity:1;text-shadow:0 1px 3px #000c;box-shadow:0 6px 24px #0003}#nearby-selection>div:first-child{display:flex;align-items:center;gap:8px}#nearby-choices{display:flex;flex-wrap:wrap;gap:6px;max-height:140px;overflow:auto}#nearby-choices button{min-height:40px;background:#304d6b;color:#f3f6fc;padding:6px 12px;border:1px solid #e6f2ff66;font:inherit;opacity:1}#nearby-selection .icon-button{color:#c1d3e8;opacity:1}#nearby-selection .icon-button:hover{background:#ffffff18}
/* One entry action, three explicit routes. Reuses the existing dialog palette. */
#explore-dialog{width:min(430px,calc(100vw - 24px));max-height:calc(100dvh - 32px)}
.explore-options{display:grid;gap:12px;padding:16px}
.explore-options button{display:flex;align-items:center;gap:14px;min-height:54px;text-align:left;font:inherit}

#photo-guidance{position:absolute;z-index:8;left:16px;bottom:110px;width:min(340px,calc(100% - 32px));padding:10px 14px;border-radius:12px;background:var(--ui-surface);color:var(--ui-text);max-height:45%;overflow:auto}#photo-guidance svg{width:90px;display:block;margin:auto}#photo-guidance p{font-size:14px;line-height:1.45}
/* Real onboarding progress stays visible from every entry screen. */
#preparation-status{position:fixed;z-index:20;top:auto;bottom:max(24px,env(safe-area-inset-bottom));max-width:calc(100vw - 24px);white-space:normal;box-sizing:border-box}
#preparation-status .text-button{white-space:nowrap}

/* Consolidated photo flow: readable status, actions and proportional image bounds. */
#photo-actions{position:absolute;z-index:5;left:12px;right:12px;bottom:125px;display:flex;flex-wrap:wrap;justify-content:center;gap:8px;padding:10px;border-radius:16px;background:var(--panel,#1b2a3a);max-height:30vh;overflow:auto}
#photo-actions[hidden]{display:none}#photo-actions button{min-height:44px;font-size:14px}
#camera-busy{font-size:14px;bottom:135px;left:50%;right:auto;transform:translateX(-50%);background:var(--panel,#1b2a3a);border:1px solid var(--border,#728398);box-shadow:0 4px 18px #0004;max-width:calc(100% - 32px)}
#capture-status{max-height:22vh;overflow:auto;pointer-events:auto;font-size:14px}
.saved-update{padding:12px 0}.saved-update button{margin:4px}
@media(max-height:500px){#photo-actions{left:12px;right:105px;bottom:12px;max-height:35vh}#camera-busy{left:40%;bottom:20px}}
@media(max-width:600px){#return-photo{font-size:12px;padding:8px}.explorer-brand .brand{max-width:90px;overflow:hidden;text-overflow:ellipsis}}

/* Error recovery belongs directly to the message, never behind administration. */
.error-details-button{display:block;margin:.35rem 0 .65rem;max-width:100%}
#error-dialog{width:min(760px,calc(100vw - 24px))}#error-json{box-sizing:border-box;width:100%;height:55dvh;resize:vertical;margin-top:.8rem;padding:12px;color:var(--ui-text);background:var(--ui-surface);font:13px/1.5 monospace;overflow:auto}

#error-dialog{background:var(--ui-surface);color:var(--ui-text)}

.model-deletion{padding:12px 0;border-top:1px solid var(--ui-line);margin-top:16px}.model-deletion .row{display:flex;flex-wrap:wrap;gap:8px}#delete-model{border:1px solid var(--ui-muted);background:var(--ui-surface);color:var(--ui-text)}#delete-status{overflow-wrap:anywhere}

/* Diagnostics stays usable independently of the 3D and inference modules. */
#session-diagnostics{width:min(92vw,760px);max-height:90dvh}#session-diagnostics .dialog-scroll{padding:16px}#diagnostics-json{display:block;box-sizing:border-box;width:100%;height:min(55dvh,500px);margin-top:10px;resize:vertical;background:var(--ui-raised);color:var(--ui-text);border:1px solid var(--ui-line);font:12px/1.45 monospace}#diagnostics-open{display:inline-flex;align-items:center;justify-content:center}#diagnostics-open .icon{width:18px;height:18px}

/* Catalog deletion shares administrator authorization; it never opens the viewer. */
.catalog-row{position:relative}.catalog-row .catalog-delete{position:absolute;right:8px;top:8px;width:40px;height:40px;min-width:0;display:grid;place-items:center;padding:0;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-surface);color:var(--ui-text)}.catalog-row .catalog-delete[hidden]{display:none}.catalog-row:has(.catalog-delete:not([hidden])) .catalog-arrow{visibility:hidden}
#delete-confirm-dialog{width:min(90vw,390px)}#delete-confirm-dialog .dialog-scroll{padding:20px}#delete-confirm-dialog .row{display:flex;gap:12px;justify-content:flex-end}#delete-confirm-name{overflow-wrap:anywhere;color:var(--ui-text)}
