/* Full workspace: scrolling is necessary only when actual columns exceed the viewport. */
.fixed-lesson{display:block;padding:11px 13px;min-height:42px;border-left:3px solid #4e7ba2;background:#eaf2f9;border-radius:3px;color:var(--navy);font-size:13px;font-weight:600;overflow-wrap:anywhere}
.feedback-editor .screenshot-image-frame{display:block;position:relative;flex:0 0 auto;max-width:100%;margin:0;outline:1px solid #9ab5cc;border-radius:2px;line-height:0}.feedback-editor .screenshot-image-frame>img{display:block;width:100%;height:auto;max-height:none;margin:0;object-fit:contain;cursor:default;border-radius:2px}
.resize-handle{position:absolute;width:24px;height:24px;padding:0;transform:translate(-50%,-50%);background:transparent;border:0;z-index:1;touch-action:none;user-select:none}.resize-handle::after{content:'';display:block;width:12px;height:12px;margin:6px;background:#fff;border:2px solid #275c89;border-radius:2px;box-shadow:0 1px 3px #163e6130}.resize-handle:hover::after,.resize-handle:focus-visible::after{background:#cde3f6}.resize-nw{left:0;top:0;cursor:nwse-resize}.resize-ne{left:100%;top:0;cursor:nesw-resize}.resize-sw{left:0;top:100%;cursor:nesw-resize}.resize-se{left:100%;top:100%;cursor:nwse-resize}.screenshot-controls .remove-image{margin-left:0}
.matrix .agent-column{width:42px;min-width:42px;padding:10px 3px;text-align:center}.matrix .agent-name-slot{height:132px;display:flex;flex-direction:column;justify-content:space-between;align-items:center;gap:10px}.matrix .agent-name{display:block;writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-height:120px;max-width:none;font-size:12px;font-weight:600;line-height:1.5;overflow-wrap:normal}.matrix button.agent-name:hover{text-decoration:underline}
.matrix .agent-progress-track{display:block;width:24px;height:5px;flex:0 0 5px}.matrix .agent-progress{display:block;width:24px;height:5px;margin:0;border:0;border-radius:5px;overflow:hidden;appearance:none;background:#cbd9e5;color:#286891}.matrix .agent-progress::-webkit-progress-bar{background:#cbd9e5;border-radius:5px}.matrix .agent-progress::-webkit-progress-value{background:#286891;border-radius:5px}.matrix .agent-progress::-moz-progress-bar{background:#286891;border-radius:5px}
.matrix thead .agent-group{height:36px;padding:8px 10px;border-bottom:1px solid #afc4d6;border-left:2px solid #a9bfd2;text-align:center;font-size:11px;letter-spacing:.02em;background:#d5e4f0;overflow-wrap:anywhere}.matrix .agent-group-start{border-left:2px solid #a9bfd2}.matrix .lesson-feedback{opacity:1;width:27px;height:30px;color:#2b628d}.matrix .lesson-feedback .icon{width:19px;height:19px;stroke-width:1.8}.matrix .lesson-cell{gap:8px}.agent-filter-status{margin:0;padding:10px 22px;background:#edf4fa;color:#3e5e79;font-size:11px;border-bottom:1px solid #c4d3e0}.matrix-tools{flex-wrap:wrap}.matrix-tools #agent-search{width:235px}
@media(max-width:850px){.matrix-tools .search-field{flex:1 1 220px}.matrix-tools #agent-search{width:100%}}
@media(max-width:600px){.matrix .agent-column{width:42px;min-width:42px}.matrix .agent-name{font-size:11px}.matrix .agent-name-slot{height:110px}.matrix .agent-name{max-height:95px}.matrix .lesson-cell{gap:4px;flex-wrap:wrap}.matrix .lesson-name{flex-basis:calc(100% - 28px)}.matrix .lesson-feedback{height:26px}.matrix-tools .search-field{flex-basis:100%}}
.floating-matrix-head{position:fixed;top:0;z-index:30;overflow:hidden;background:#e4edf6;box-shadow:0 4px 12px #153a6133;border-bottom:1px solid #bdccdc}.floating-matrix-head .matrix{margin:0}
.dialog-heading>.dialog-label-toggle{font-size:10px;padding:6px 9px;min-height:30px;margin-left:auto;flex-shrink:0}.dialog-heading:has(.dialog-label-toggle){flex-wrap:wrap}.dialog-label-toggle[aria-pressed=true]{background:#fff2d5;border-color:#dfab54}
.editing-labels select:has(option[data-ui-option]){outline:1px dashed #7a9dbb;outline-offset:3px}
.editing-labels [data-ui-key]{outline:1px dashed #7a9dbb;outline-offset:3px;cursor:text;border-radius:2px}.editing-labels [data-ui-key]:hover{background:#fff2d5;outline-color:#d07b00}.editing-labels [data-ui-placeholder],.editing-labels [data-ui-data-placeholder]:empty{outline:1px dashed #7a9dbb;outline-offset:3px}
.editing-labels #toggle-label-mode [data-ui-key]{outline:0;cursor:pointer}.editing-labels .inline-label-active{display:inline-block;min-width:30px;min-height:1em;background:#fff7e6;outline:2px solid #e58a00;outline-offset:4px;white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;cursor:text}.inline-attribute-editor{padding:8px;margin:8px 0;color:var(--navy);font-size:13px;line-height:1.6}
#toggle-label-mode[aria-pressed=true]{background:var(--navy);color:#fff}#inline-label-guide{display:flex;align-items:center;gap:15px;padding:14px clamp(18px,2.5vw,64px);background:#fff5df;border-bottom:1px solid #edcb8e;color:var(--navy);font-size:12px;line-height:1.6}#inline-label-guide>span{flex:1}#inline-label-guide strong{display:block}#inline-label-guide .button{font-size:11px;white-space:nowrap}
#inline-label-tools{position:fixed;inset:auto;margin:0;padding:12px;max-width:calc(100vw - 16px);width:410px;border:1px solid #c5d5e4;border-radius:8px;background:white;color:var(--navy);box-shadow:0 6px 30px #193f6940}#inline-label-tools p{font-size:10px;line-height:1.5;margin:8px 0 0}.inline-label-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.inline-label-actions .button{font-size:11px;min-height:34px;padding:7px 11px}.inline-label-actions .text-link{font-size:10px}#inline-label-error{color:#a52c26}
.login-preview-dialog{width:min(1150px,calc(100% - 24px))}.login-preview-layout{display:grid;grid-template-columns:1fr 1fr;gap:50px;padding:20px}.login-preview-layout .login-intro h1{font-size:32px}.login-preview-layout .login-card{width:100%}
@media(max-width:760px){#inline-label-guide{flex-wrap:wrap}#inline-label-guide>span{flex-basis:100%}.login-preview-layout{grid-template-columns:1fr;gap:20px;padding:0}}
.site-footer .app-version{display:inline;white-space:nowrap;margin-left:auto}.site-footer{flex-wrap:wrap}@media(max-width:600px){.site-footer .footer-motto{display:none}}
.workspace{max-width:none;padding-left:clamp(18px,2.5vw,64px);padding-right:clamp(18px,2.5vw,64px)}
.matrix-scroll{max-height:none}.matrix{min-width:100%}
.matrix .lesson-column{width:var(--lesson-width);min-width:var(--lesson-width)}.matrix .row-summary{position:sticky;right:0;z-index:2;background:#f7fafd;box-shadow:-3px 0 7px #193f6908}.matrix thead .row-summary{z-index:5;background:#f2f6fa}.matrix tbody tr:hover .row-summary{background:#eef4fa}
.matrix .category-row th,.matrix .category-row td{height:43px;padding-top:10px;padding-bottom:10px;background:#edf3f8;border-top:1px solid #d3e0eb;border-bottom:1px solid #dae5ef}.category-row .lesson-column{font-size:12px;font-weight:650}.category-row small{font-size:9px;font-weight:400;color:#7f96ac;margin-left:8px}.matrix .category-row .row-summary{background:#edf3f8}
@media(max-width:600px){.matrix .lesson-column{width:154px;min-width:154px}.matrix .row-summary{width:62px;min-width:62px}.lesson-cell{gap:6px}.lesson-number{display:none}.matrix .category-row .lesson-column{font-size:11px}.category-row small{display:block;margin:4px 0 0}}
.feedback-editor figure.screenshot-figure{display:flex;align-items:flex-start;gap:14px;max-width:100%;padding:0;border:0;background:transparent;border-radius:0;margin:10px 0 16px}
.feedback-editor figure .screenshot-controls{display:flex;flex-direction:column;align-items:flex-start;gap:4px;flex-wrap:nowrap;flex:0 0 72px;min-width:0;max-width:72px}.screenshot-controls .button{font-size:11px;min-height:28px;padding:4px 8px}.screenshot-controls .remove-image{flex-shrink:0}
.annotation-dialog{width:min(1200px,calc(100% - 24px))}.annotation-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}.annotation-tools{display:flex;gap:4px;flex-wrap:wrap;background:#edf3f8;padding:4px;border-radius:6px}
.annotation-tools button{padding:10px;background:transparent;color:var(--navy);border-radius:4px;font-size:12px}.annotation-tools button[aria-pressed=true]{color:white;background:var(--navy)}
.annotation-toolbar>label{display:flex;align-items:center;gap:7px;font-size:11px}.annotation-toolbar select{width:95px;min-height:34px;padding:5px;font-size:11px}.annotation-toolbar input[type=range]{width:80px;min-height:30px;padding:0;accent-color:var(--navy);border:0}.annotation-toolbar>.button{font-size:11px;min-height:34px;padding:6px 9px}
.annotation-stage{display:flex;align-items:center;justify-content:center;overflow:auto;background:#e4ebf3;border:1px solid #ccd9e5;border-radius:5px;padding:12px;margin:12px 0}.annotation-stage canvas{display:block;max-width:100%;max-height:55vh;width:auto;height:auto;background:#fff;touch-action:none;cursor:crosshair;box-shadow:0 1px 6px #173c6820}
.annotation-dialog .dialog-footer{align-items:center;flex-wrap:wrap}.annotation-dialog .dialog-footer>.field-help{margin-right:auto;max-width:400px}
.screenshot-width-20 img{width:20%}.screenshot-width-25 img{width:25%}.screenshot-width-30 img{width:30%}.screenshot-width-35 img{width:35%}.screenshot-width-40 img{width:40%}.screenshot-width-45 img{width:45%}.screenshot-width-50 img{width:50%}.screenshot-width-55 img{width:55%}.screenshot-width-60 img{width:60%}.screenshot-width-65 img{width:65%}.screenshot-width-70 img{width:70%}.screenshot-width-75 img{width:75%}.screenshot-width-80 img{width:80%}.screenshot-width-85 img{width:85%}.screenshot-width-90 img{width:90%}.screenshot-width-95 img{width:95%}.screenshot-width-100 img{width:100%}
/* Stronger separation and readable secondary copy in the existing NEO palette. */
:root{--navy:#153b63;--blue:#235680;--muted:#52697e;--line:#c4d2df;--shadow:0 2px 5px #17345020,0 8px 25px #17345009}
body{background:linear-gradient(118deg,transparent 0 47%,#ffffff35 47% 61%,transparent 61%),linear-gradient(159deg,#edf4fa 5%,#dce7f1 58%,#cbdbe8 90%,#e1dcd3)}
.panel{border-color:#b9ccdc}.panel-heading{border-bottom-color:#c4d3e0}.feedback-strip{border-color:#b4c9dc;background:#f6faff}.button.secondary{border-color:#9bb3c9}.badge{background:#dde9f3;color:#304f6d}
.eyebrow,.page-heading p,.panel-subtitle,.feedback-strip-copy p,.workspace-note,.workspace-note>span,.field-help,.editor-hint,.dialog-intro,.connection-note,.breadcrumb strong,.site-footer,.environment{color:#506b83}
.matrix thead th,.matrix thead .lesson-column,.matrix thead .row-summary{background:#e4edf6;color:#345571;border-bottom-color:#db7b00}.matrix thead .lesson-column{background:#fff}.matrix thead .lesson-column>span,.matrix thead .lesson-column>small,.agent-column small,.matrix thead .row-summary,.lesson-number,.lesson-name small{color:#526a80}
.matrix .category-row th,.matrix .category-row td,.matrix .category-row .row-summary{background:#dce8f3;border-color:#b9cddd}.category-row small{color:#4f687d}.matrix .category-row:hover th,.matrix .category-row:hover td{background:#d3e2ef}
.matrix tbody th,.matrix tbody td{border-bottom-color:#cbd9e5}.matrix .check-cell,.agent-column{border-left-color:#dde5ed}.matrix .row-summary{background:#edf3f9;border-left-color:#c0d1e0}.matrix-check>span{border-color:#829fb9}.row-count>span{color:#526a80}.row-summary progress{background:#cedce8}.row-summary progress::-webkit-progress-bar{background:#cedce8}.row-summary progress::-webkit-progress-value{background:#3c719e}.row-summary progress::-moz-progress-bar{background:#3c719e}
.matrix-footer{color:#526a80;border-top-color:#c4d3e0}.matrix-footer .text-link{color:#315b7e}.lesson-name>span{color:#345a7c}.lesson-name .icon{color:#54799a}
input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea,.feedback-editor{border-color:#a0b7cc}input::placeholder,textarea::placeholder,.feedback-editor:empty::before{color:#5e748a}.rating-section{background:#edf3f9;border-color:#b8cddd}.rating-section-heading>span,.rating-section .field-help,.saved-blocks figcaption{color:#52697e}
@media(max-width:760px){.site-header:has(.label-mode-button){height:auto;min-height:84px;flex-wrap:wrap;padding-top:16px;padding-bottom:16px}.label-mode-button{font-size:10px;padding:7px 10px;min-height:34px}.site-header:has(.label-mode-button) .header-right{flex-wrap:wrap;justify-content:flex-end}.label-toolbar{flex-wrap:wrap}.label-toolbar>input{flex-basis:100%}.label-entry{grid-template-columns:1fr;gap:10px}.annotation-toolbar{gap:7px}.annotation-tools button{font-size:10px;padding:9px}.annotation-stage{padding:5px}}

/* Dense cells retain a comfortable hit area around the smaller checkbox. */
.matrix .check-cell{padding:8px 3px;height:54px}.matrix tbody tr[data-lesson-row]>.lesson-column,.matrix tbody tr[data-lesson-row]>.row-summary{padding-top:8px;padding-bottom:8px;height:54px}.matrix-check{width:32px;height:32px}.matrix-check input{width:20px;height:20px}.matrix-check>span{width:18px;height:18px;border-radius:3px}.matrix-check>span .icon{width:13px;height:13px}
.matrix-panning,.matrix-panning *{cursor:grabbing!important;user-select:none!important}.matrix-scroll{overflow-anchor:none}

/* Keep hidden copy reachable exactly where it belongs in the text editing mode. */
.ui-text:empty{display:none}
body:not(.editing-labels) :is(p,h1,h2,h3,small,strong,legend,label,button,a):has(>.ui-text:only-child:empty){display:none}
.editing-labels [data-ui-key]:empty{display:inline-block;min-width:28px;min-height:20px;background:#fff5df}
.editing-labels [data-ui-key]:empty::before{content:attr(data-ui-default);font-size:11px;color:#715f41;opacity:.8}
.editing-labels .inline-label-active:empty::before{content:none}
.feedback-scope{margin:0;border:1px solid #b8cddd;border-radius:5px;padding:14px 16px;display:flex;gap:12px 22px;flex-wrap:wrap}
.feedback-scope legend{font-size:12px;padding:0 5px}.feedback-scope label{display:flex;align-items:center;gap:7px;margin:0;font-size:12px;cursor:pointer}.feedback-scope input{accent-color:var(--navy)}.feedback-scope .field-help{flex-basis:100%;margin:0}
.feedback-strip{margin-top:20px}.feedback-strip-copy small{display:block;font-size:10px;color:var(--muted);margin-top:4px}
.matrix{--lesson-width:390px}.matrix .feedback-column{position:sticky;left:var(--lesson-width);width:40px;min-width:40px;padding:6px 3px;text-align:center;background:#fff;z-index:2;border-right:1px solid var(--line)}
.matrix thead .feedback-column{z-index:4;background:#e4edf6}.matrix .feedback-column>.icon{width:18px;height:18px}.matrix .feedback-column .lesson-feedback{width:30px;height:30px;margin:auto}.matrix .category-row .feedback-column{background:#dce8f3}
.screenshot-controls .button{max-width:72px;white-space:normal;overflow-wrap:anywhere}
@media(max-width:600px){.matrix{--lesson-width:154px}}
.matrix .agent-name-slot{justify-content:flex-end;height:120px}.matrix .agent-name{max-height:105px}
.matrix .feedback-column{border-left:1px solid #c4d2df;background:#f2f6fa}.matrix tbody tr[data-lesson-row]>.feedback-column{height:54px}
@media(max-width:600px){.matrix .agent-name-slot{height:110px}.matrix .agent-name{max-height:95px}}
/* A tiny license replaces the completed progress bar without widening the matrix. */
.license-intro{display:flex;gap:8px;align-items:center;margin:-12px 0 18px;color:#46627b;font-size:12px;line-height:1.6}.license-intro>.icon{width:16px;height:16px;flex-shrink:0}
.matrix .agent-progress-track{display:flex;align-items:center;justify-content:center;width:32px;height:24px;flex:0 0 24px}
.matrix .agent-name-slot{gap:6px}.matrix .agent-name{max-height:90px}
.agent-license{display:flex;align-items:center;justify-content:center;width:32px;height:26px;padding:0;background:transparent;border-radius:4px;cursor:pointer}
.agent-license img{display:block;width:30px;height:24px;object-fit:contain;filter:drop-shadow(0 1px 1px #173c6830)}
.agent-license:hover{background:#fff3d7;outline:1px solid #d5b376}.agent-license:focus-visible{outline:3px solid #eea548;outline-offset:1px}
.license-dialog{width:min(520px,calc(100% - 24px));isolation:isolate;background:radial-gradient(ellipse at 50% 32%,#edf6ff 0,white 70%);text-align:center;overflow-x:hidden}
.license-dialog .dialog-heading{border:0;margin-bottom:0;padding-bottom:0;position:relative;z-index:2}.license-dialog .dialog-heading .eyebrow{margin:0}
.license-art{display:block;width:min(340px,100%);height:auto;max-height:290px;object-fit:contain;margin:8px auto 12px;filter:drop-shadow(0 10px 10px #153b6320)}
.license-dialog h2{font-size:26px;line-height:1.3;overflow-wrap:anywhere;margin:0 0 12px}.license-dialog>p{font-size:14px;line-height:1.7;color:#48657e;margin:0 auto;max-width:380px}
.license-dialog .license-completed{display:inline-flex;align-items:center;gap:6px;margin-top:18px;padding:6px 12px;background:#e5f1ec;border-radius:20px;color:#28684e;font-size:12px}.license-completed .icon{width:14px;height:14px}
.license-dialog .dialog-footer{justify-content:center;margin-top:24px;border:0;padding-top:0;position:relative;z-index:2}
.license-confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:-1}
.license-confetti i{position:absolute;top:-16px;left:var(--left);width:7px;height:12px;background:var(--color);border-radius:2px;animation:license-confetti 2.4s var(--delay) ease-out both}
.license-confetti i:nth-child(3n){border-radius:50%;width:8px;height:8px}.license-dialog.is-celebrating .license-art{animation:license-arrive .65s cubic-bezier(.2,.8,.25,1) both}
@keyframes license-confetti{0%{opacity:0;transform:translate(0,-10px) rotate(0)}10%{opacity:1}85%{opacity:.8}100%{opacity:0;transform:translate(var(--drift),650px) rotate(480deg)}}
@keyframes license-arrive{0%{opacity:0;transform:translateY(12px) scale(.85) rotate(-5deg)}70%{opacity:1;transform:translateY(-3px) scale(1.03) rotate(1deg)}100%{opacity:1;transform:none}}
@media(max-width:600px){.matrix .agent-name{max-height:80px}.license-dialog h2{font-size:22px}.license-art{max-height:220px}}
@media(prefers-reduced-motion:reduce){.license-dialog.is-celebrating .license-art,.license-confetti i{animation:none}.license-confetti{display:none}}
/* Direct manipulation: the frame follows the same transform as the annotation. */
.annotation-stage{padding:38px 22px;overflow:auto}
.annotation-surface{position:relative;width:fit-content;max-width:100%;line-height:0}
#annotation-transform{position:absolute;border:1px dashed #153b63;transform-origin:center;cursor:move;touch-action:none;line-height:normal;box-sizing:border-box}
#annotation-text{position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0;padding:0;margin:0;border:0;border-radius:0;outline:0;box-shadow:none;background:#ffffffb8;font-family:Arial,sans-serif;font-weight:600;line-height:1.25;resize:none;overflow:hidden;white-space:pre;touch-action:auto;cursor:text}
.transform-handle{position:absolute;width:22px;height:22px;padding:5px;border:0;background:transparent;transform:translate(-50%,-50%);touch-action:none;z-index:2}
.transform-handle::after{content:'';display:block;width:12px;height:12px;background:#fff;border:2px solid #275c89;border-radius:2px}
.transform-handle:hover::after,.transform-handle:focus-visible::after{background:#cde3f6}
.transform-nw{left:0;top:0;cursor:nwse-resize}.transform-ne{left:100%;top:0;cursor:nesw-resize}.transform-sw{left:0;top:100%;cursor:nesw-resize}.transform-se{left:100%;top:100%;cursor:nwse-resize}
.transform-rotate{left:50%;top:-25px;padding:0;border-radius:50%;background:white;border:1px solid #275c89;color:#153b63;cursor:grab;font-size:18px;line-height:20px}
.transform-rotate::after{display:none}.transform-rotate::before{content:'';position:absolute;left:50%;top:21px;height:14px;border-left:1px solid #275c89;pointer-events:none}
.matrix .feedback-column{width:56px;min-width:56px}
.general-feedback-head{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:100%;padding:7px 0;border:1px solid #9bb3c9;border-radius:4px;background:#fff;color:#153b63;cursor:pointer}
.general-feedback-head>.icon{width:20px;height:20px}.general-feedback-head>span{font-size:9px;line-height:1.2;letter-spacing:0;text-transform:none;overflow-wrap:anywhere}
.general-feedback-head:hover{background:#d5e7f6;border-color:#235680}
/* More room for the actual feedback, with ratings arranged side by side. */
.feedback-dialog{width:min(1040px,calc(100% - 24px));padding:22px 24px}
.feedback-dialog .dialog-heading{padding-bottom:10px;margin-bottom:12px}.feedback-dialog .dialog-heading h2{font-size:23px}.feedback-dialog .dialog-heading .eyebrow{margin-bottom:5px}
.feedback-form{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px}.feedback-form>*{grid-column:1/-1}
.feedback-form .dialog-intro{margin:0;font-size:11px;line-height:1.5}
.feedback-form:has(.feedback-scope)>.form-grid{grid-column:1;align-self:center;gap:12px}
.feedback-form .form-grid label{font-size:11px;margin-bottom:5px}.feedback-form .form-grid input,.feedback-form .form-grid select,.feedback-form .fixed-lesson{min-height:36px;padding:7px 10px;font-size:12px}
.feedback-form .feedback-scope{grid-column:2;padding:7px 10px;gap:6px 12px;align-self:end}.feedback-scope legend,.feedback-scope label{font-size:11px}.feedback-scope .field-help{font-size:9px;line-height:1.5}
.feedback-form .rating-section{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px 16px;padding:10px 14px;margin:0}
.feedback-form [data-rating-kind=lesson]{grid-template-columns:repeat(2,minmax(0,1fr))}
.feedback-form .rating-section-heading,.feedback-form .rating-section>.field-help{grid-column:1/-1;margin:0}
.feedback-form .rating-section-heading{font-size:11px}.feedback-form .rating-section-heading>span{font-size:9px}
.feedback-form .score-row{display:block;min-height:0;padding:3px 0;border:0;min-width:0}.feedback-form .score-row legend{display:block;float:none;width:100%;font-size:11px;padding:0;line-height:1.5}
.feedback-form .star-group{justify-content:flex-start;margin:0}.feedback-form .star-group label>span{width:28px;height:29px}.feedback-form .star-group .icon{width:20px;height:20px}.feedback-form .reset-stars{width:24px;margin-left:5px}
.feedback-form .rating-section>.field-help{font-size:9px;line-height:1.5}.feedback-form .editor-label{margin:0}.feedback-form .editor-label label{margin:0}
.feedback-form .feedback-editor{min-height:210px;max-height:45vh}.feedback-form .editor-hint,.feedback-form .privacy-note{margin:0;font-size:9px;line-height:1.5}
.feedback-form .dialog-footer{margin-top:-4px;padding-top:0;border-top:0}
@media(max-width:760px){.feedback-dialog{padding:16px}.feedback-form{grid-template-columns:1fr;gap:10px}.feedback-form:has(.feedback-scope)>.form-grid,.feedback-form .feedback-scope{grid-column:1}.feedback-form .form-grid{grid-template-columns:1fr 1fr;gap:10px}.feedback-form .rating-section,.feedback-form [data-rating-kind=lesson]{grid-template-columns:1fr}.feedback-form .rating-section-heading{flex-direction:row;flex-wrap:wrap}.feedback-form .score-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.feedback-form .score-row legend{display:contents}.feedback-form .star-group{flex-shrink:0}.feedback-form .star-group label>span{width:24px}.feedback-form .reset-stars{width:18px;margin-left:0}.feedback-form .feedback-editor{min-height:180px}.annotation-stage{padding:36px 16px}}
#annotation-transform{pointer-events:none}#annotation-text,.transform-handle,.transform-edge{pointer-events:auto}
.transform-edge{position:absolute;cursor:move;touch-action:none}.transform-edge-top,.transform-edge-bottom{left:0;width:100%;height:8px}.transform-edge-top{top:-4px}.transform-edge-bottom{bottom:-4px}.transform-edge-left,.transform-edge-right{top:0;height:100%;width:8px}.transform-edge-left{left:-4px}.transform-edge-right{right:-4px}
/* A single, flat login on the supplied welcome artwork. */
body.login-page{display:block;margin:0;background:#f2f2f1}
.login-page .login-workspace{display:block;max-width:none;margin:0;padding:0;min-height:100svh}
/* The artwork and its percentage hotspots share exactly the same coordinate space. */
.login-scene{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-height:100svh;background:#f2f2f1}
.login-stage{position:relative;width:min(100%,177.734375svh)}
.login-artwork{position:relative;width:100%;line-height:0}
.login-background{display:block;width:100%;height:auto;object-fit:contain}
.login-entry{position:absolute;top:62%;left:30%;transform:translateX(-50%);width:min(470px,calc(60% - 32px))}
.login-form{margin:0}.login-controls{display:flex;align-items:stretch;gap:8px}.login-controls>.password-field{flex:1;min-width:0}.login-controls input{height:44px;background:#fffffff2!important;box-shadow:0 1px 5px #153b6312;border:1px solid #9aafbf!important;border-radius:5px!important}.login-controls>.button{flex-shrink:0;min-height:44px;white-space:nowrap;padding:9px 15px}.login-controls #show-password{font-size:11px}
.login-error{margin:10px 0 0;padding:10px 12px;border-radius:4px;background:#fff5f0f5;border:1px solid #cf8a73;color:#8b271c;font-size:12px;line-height:1.5}
.login-audio-zone{position:absolute;display:flex;align-items:center;justify-content:center;border:0;background:transparent;color:var(--navy);text-decoration:none;line-height:1;cursor:pointer;touch-action:manipulation}
.login-audio-zone[data-zone="mann"]{left:86.7%;top:12.5%;width:5.2%;height:13%}
.login-audio-zone[data-zone="frau"]{left:91.9%;top:10.5%;width:5.3%;height:15%}
.login-audio-zone[data-zone="boot"]{left:87%;top:25.5%;width:11%;height:8.5%}
.login-audio-zone>span{visibility:hidden;display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#fffffff0;box-shadow:0 1px 4px #153b6326;font-size:19px;pointer-events:none}
.login-audio-zone[aria-pressed="true"]>span{visibility:visible}
.login-audio-zone:focus-visible{outline:2px solid var(--navy);outline-offset:2px;border-radius:4px}
.login-preview-layout.login-preview-scene{display:block;padding:0}.login-preview-scene .login-scene{min-height:0}.login-preview-scene .login-stage{width:100%}
@media(max-aspect-ratio:4/3){.login-page .login-scene{align-items:flex-start}.login-page .login-stage{width:100%}.login-page .login-entry{position:relative;top:auto;left:auto;transform:none;margin:18px auto 24px;width:min(470px,calc(100% - 32px))}}
@media(max-width:520px){.login-controls>.button{padding:9px 12px;font-size:12px}.login-controls>.button>.icon{display:none}.login-preview-scene .login-entry{position:relative;top:auto;left:auto;transform:none;width:calc(100% - 32px);margin:16px auto}.login-audio-zone>span{width:17px;height:17px;font-size:15px}}
/* Matrix v1.10: feedback actions and counts live at their point of use. */
.brand-license{display:block;width:78px;height:60px;object-fit:contain;filter:drop-shadow(0 2px 2px #153b6320)}
.matrix .feedback-column{width:112px;min-width:112px;padding:4px 8px;background:#f1f6fa}
.matrix thead .feedback-column{background:#e7eff6}.matrix thead .feedback-heading{height:36px;border-bottom:1px solid #b9cddd;font-size:12px;font-weight:650;text-transform:none;letter-spacing:0}
.matrix .general-feedback-head,.matrix .feedback-column .lesson-feedback{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:100%;height:auto;min-height:44px;margin:0;padding:4px;border:0;background:transparent;box-shadow:none;border-radius:4px;color:#235680;white-space:normal}
.matrix .general-feedback-head{gap:7px;padding:10px 2px}.matrix .general-feedback-head:hover,.matrix .feedback-column .lesson-feedback:hover{background:#d8e8f5;color:#123d66}
.matrix .feedback-icon-count{display:inline-flex;align-items:center;justify-content:center;gap:5px;line-height:1}.matrix .feedback-icon-count>.icon{width:18px;height:18px;flex-shrink:0}.matrix .general-feedback-head .icon{width:23px;height:23px}
.matrix .feedback-count{display:inline-flex;align-items:center;justify-content:center;min-width:17px;min-height:17px;padding:2px 4px;border-radius:9px;background:#dce8f2;color:#264f70;font-size:10px;font-weight:650;font-variant-numeric:tabular-nums}
.matrix .feedback-label{display:block;font-size:10px;font-weight:500;line-height:1.35;text-transform:none;letter-spacing:0;overflow-wrap:anywhere}
.matrix .general-feedback-head>.feedback-label{max-width:90px;font-size:11px;font-weight:550}
.matrix .agent-group[data-team-tone]{background:var(--team-head);border-bottom-color:var(--matrix-grid);border-left-color:var(--matrix-grid)}
.matrix .agent-column[data-team-tone]{background:var(--team-cell);border-left-color:var(--matrix-grid)}
.matrix .check-cell[data-team-tone]{background:var(--team-cell);border-left-color:var(--matrix-grid)}
.matrix tbody tr:hover .check-cell[data-team-tone]{background:var(--team-hover)}
.matrix [data-team-tone].agent-group-start{border-left:1px solid var(--matrix-grid)}
@media(max-width:600px){.brand-license{width:58px;height:46px}.matrix .feedback-column{width:92px;min-width:92px;padding-left:4px;padding-right:4px}.matrix .general-feedback-head>.feedback-label{font-size:10px}.matrix .feedback-column .lesson-feedback{min-height:44px}}
:is(.matrix,.participant-tabs) [data-team-tone="0"]{--team-head:#cddff1;--team-header:#e3edf7;--team-cell:#f1f6fc;--team-hover:#e5effa;--team-edge:#a9bfd5;--team-grid:#e3edf7}
:is(.matrix,.participant-tabs) [data-team-tone="1"]{--team-head:#cce4d7;--team-header:#e1f0e7;--team-cell:#f0f8f3;--team-hover:#e1f0e7;--team-edge:#a5c8b5;--team-grid:#e1f0e7}
:is(.matrix,.participant-tabs) [data-team-tone="2"]{--team-head:#eee1bd;--team-header:#f6efd9;--team-cell:#fcf8ed;--team-hover:#f4edda;--team-edge:#cfc097;--team-grid:#f6efd9}
:is(.matrix,.participant-tabs) [data-team-tone="3"]{--team-head:#ddd3ef;--team-header:#ece5f7;--team-cell:#f7f3fc;--team-hover:#eee7f8;--team-edge:#c0aed7;--team-grid:#ece5f7}
:is(.matrix,.participant-tabs) [data-team-tone="4"]{--team-head:#c8e4e7;--team-header:#def0f1;--team-cell:#eef8f9;--team-hover:#def0f3;--team-edge:#9fc4c9;--team-grid:#def0f1}
:is(.matrix,.participant-tabs) [data-team-tone="5"]{--team-head:#eed1da;--team-header:#f5e4ea;--team-cell:#fcf2f5;--team-hover:#f6e4eb;--team-edge:#d3aebb;--team-grid:#f5e4ea}
:is(.matrix,.participant-tabs) [data-team-tone="6"]{--team-head:#edd6c4;--team-header:#f6e8dd;--team-cell:#fcf5ef;--team-hover:#f5e6da;--team-edge:#d0b69f;--team-grid:#f6e8dd}
:is(.matrix,.participant-tabs) [data-team-tone="7"]{--team-head:#dbe3c7;--team-header:#ebf0de;--team-cell:#f6f9ef;--team-hover:#eaf0db;--team-edge:#b9c69f;--team-grid:#ebf0de}
:is(.matrix,.participant-tabs) [data-team-tone="8"]{--team-head:#d4d9ed;--team-header:#e6eaf7;--team-cell:#f3f5fc;--team-hover:#e8ecfa;--team-edge:#afb8d1;--team-grid:#e6eaf7}
:is(.matrix,.participant-tabs) [data-team-tone="9"]{--team-head:#dfd3ca;--team-header:#eee7e2;--team-cell:#f8f5f2;--team-hover:#efe8e1;--team-edge:#c3b6ab;--team-grid:#eee7e2}
:is(.matrix,.participant-tabs) [data-team-tone="10"]{--team-head:#cce5e0;--team-header:#e2f2ed;--team-cell:#f1f9f6;--team-hover:#e1f1eb;--team-edge:#a8c9c0;--team-grid:#e2f2ed}
:is(.matrix,.participant-tabs) [data-team-tone="11"]{--team-head:#e8d5e8;--team-header:#f3e6f3;--team-cell:#faf3fa;--team-hover:#f3e5f3;--team-edge:#cbb0cb;--team-grid:#f3e6f3}
/* The entire annotation viewport is a drawing surface, independent of image size. */
.annotation-stage{display:block;position:relative;height:clamp(280px,52vh,640px);padding:0;overflow:hidden;background:white}
.annotation-stage .annotation-surface{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;line-height:normal}
.annotation-stage #annotation-canvas{display:block;width:100%;height:100%;max-width:none;max-height:none;margin:0;box-shadow:none;background:white;cursor:default}
.annotation-stage.is-panning,.annotation-stage.is-panning *{cursor:grabbing!important}
.annotation-toolbar{gap:8px;margin-bottom:8px}.annotation-zoom{display:flex;align-items:center;gap:3px;margin-left:auto;flex-wrap:wrap;color:var(--navy)}
.annotation-zoom button{min-height:30px;padding:5px 9px;border:1px solid #adc1d2;background:#fff;border-radius:4px;color:var(--navy);font-size:11px}.annotation-zoom button:hover{background:#e7f0f8}.annotation-zoom output{min-width:44px;text-align:center;font-size:11px;font-variant-numeric:tabular-nums}
.feedback-editor .screenshot-image-frame{max-width:calc(100% - 86px)}
.saved-blocks .screenshot-pixels img{height:auto;max-height:none;margin-left:0;margin-right:0}
@media(max-width:600px){.annotation-zoom{margin-left:0}.annotation-stage{height:48vh;min-height:240px}}
/* Compact, mutually exclusive feedback chips with native radio keyboard support. */
.feedback-form:has(.feedback-scope){grid-template-columns:minmax(180px,1fr) minmax(0,2fr)}
.feedback-form:has(.feedback-scope)>.form-grid{grid-template-columns:1fr}
.feedback-form .feedback-scope{border:0;padding:0;gap:8px;align-items:stretch;min-width:0}
.feedback-scope .scope-chip{position:relative;display:flex;max-width:100%;margin:0;font-size:12px}
.scope-chip-body{display:flex;flex-wrap:wrap;align-items:center;gap:3px 6px;min-height:36px;padding:7px 12px;border:1px solid #a6bdce;border-radius:18px;background:#f5f8fb;color:#235680;line-height:1.4}
.scope-chip-body #lesson-fixed{font-weight:650;overflow-wrap:anywhere}
.scope-chip input:checked+.scope-chip-body{background:#163e66;color:white;border-color:#163e66;box-shadow:inset 0 0 0 1px #163e66}
.scope-chip input:focus-visible+.scope-chip-body{outline:3px solid #ec920a;outline-offset:2px}
.scope-chip:hover .scope-chip-body{border-color:#163e66}
.feedback-scope #lesson-choice{width:100%}
@media(max-width:760px){.feedback-form:has(.feedback-scope){grid-template-columns:1fr}}
/* One compact row per rating; editing controls appear only in admin text mode. */
.feedback-form .rating-section,.feedback-form [data-rating-kind=lesson]{display:flex;flex-direction:column;align-items:flex-start;gap:0;padding:7px 10px}
.feedback-form .score-row{display:flex;align-items:center;justify-content:flex-start;gap:12px;width:100%;min-height:25px;padding:0}
.feedback-form .score-row legend{display:block;float:left;flex:none;width:230px;max-width:55%;margin:0;padding:3px 0;font-size:11px;line-height:1.3;overflow-wrap:anywhere}
.feedback-form .star-group{flex:none;margin:0;gap:0}.feedback-form .star-group label>span{width:25px;height:25px}.feedback-form .star-group .icon{width:17px;height:17px}.feedback-form .reset-stars{width:24px;margin:0}
.rating-admin{display:none;gap:6px;align-items:center;flex-wrap:wrap;width:100%;margin-top:7px}.editing-labels .rating-admin{display:flex}.rating-admin .new-rating-label{width:280px;max-width:100%;min-height:32px;padding:5px 8px}.rating-admin .button{min-height:32px;padding:5px 10px}.rating-error{color:#a32b1c;font-size:11px}
@media(max-width:480px){.feedback-form .score-row{gap:6px}.feedback-form .score-row legend{width:calc(100% - 155px);max-width:none}.feedback-form .star-group label>span{width:24px}}
/* Admin color controls stay with the relevant column, including the sticky copy. */
.matrix .agent-group:has(.column-color-button),.matrix .feedback-heading:has(.column-color-button){position:relative;padding-right:24px}
.matrix .feedback-heading:has(.column-color-button){position:sticky}
.column-color-button{position:absolute;right:3px;top:6px;display:grid;place-items:center;width:21px;height:23px;padding:3px;border:1px solid currentColor;border-radius:4px;background:transparent;color:inherit;opacity:.7;cursor:pointer}
.column-color-button:hover,.column-color-button:focus-visible{opacity:1;background:#ffffff33}.column-color-button .icon{width:13px;height:13px}
.matrix .agent-group[data-custom-color]{color:var(--column-head-text)}
.matrix .agent-column[data-custom-color],.matrix .agent-column[data-custom-color] .agent-name{color:var(--column-name-text)}
.matrix .feedback-column[data-custom-color]{background:var(--team-cell);border-color:var(--matrix-grid)}
.matrix thead .feedback-column[data-custom-color]{background:var(--team-header);color:var(--column-name-text)}
.matrix thead .feedback-heading[data-custom-color]{background:var(--team-head);color:var(--column-head-text)}
.matrix .category-row .feedback-column[data-custom-color]{background:var(--team-header)}
.matrix .feedback-column[data-custom-color] .general-feedback-head{color:var(--column-name-text)}
.matrix .feedback-column[data-custom-color] .general-feedback-head:hover,.matrix .feedback-column[data-custom-color] .lesson-feedback:hover{background:var(--team-hover);color:#102b46}
.column-color-fields{display:grid;grid-template-columns:auto 60px auto minmax(90px,1fr);align-items:center;gap:10px}
.column-color-fields label{margin:0;font-size:12px}#column-color-picker{width:60px;min-height:40px;padding:3px;cursor:pointer}#column-color-hex{min-width:0}
@media(max-width:480px){.column-color-fields{grid-template-columns:auto 1fr}}
.matrix .lesson-name .faq-number{display:block;width:auto;max-width:100%;margin:0 0 3px;color:#536e85;font-size:10px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
/* Matrix refinements: compact FAQ identifiers, consistent separators and a quiet right edge. */
.column-color-presets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.color-preset{display:flex;flex-direction:column;align-items:center;gap:5px;padding:7px 2px;border:1px solid transparent;border-radius:7px;background:#f5f8fb;color:#234d70;cursor:pointer;font-size:10px}
.color-swatch{width:30px;height:30px;border-radius:50%;background:var(--swatch);border:1px solid #163e6626}
.color-preset:hover{background:#e8f0f7}.color-preset[aria-pressed=true]{border-color:#163e66;background:#e5edf6}.color-preset[aria-pressed=true] .color-swatch{box-shadow:0 0 0 2px #fff,0 0 0 3px #163e66}
.matrix .agent-names-row .feedback-column{background:#f1f6fa;color:#235680}
.matrix .agent-names-row .feedback-column[data-custom-color]{background:var(--team-cell);color:#235680}
.matrix .agent-names-row .feedback-column .general-feedback-head{color:#235680}
.matrix .category-row .feedback-column,.matrix .category-row .feedback-column[data-custom-color]{background:#dce8f3;border-top-color:#b9cddd;border-bottom-color:#b9cddd;border-left-color:#dce8f3;border-right-color:#dce8f3}
.matrix .category-row:hover .feedback-column{background:#d3e2ef;border-left-color:#d3e2ef;border-right-color:#d3e2ef}
.matrix .matrix-end,.matrix .category-row .matrix-end,.matrix .category-row:hover .matrix-end,.matrix tbody tr:hover .matrix-end{position:sticky;right:0;width:22px;min-width:22px;max-width:22px;height:auto;padding:0;background:#fff;border:0;z-index:2}
.matrix thead .matrix-end{z-index:5}
.matrix .lesson-cell{flex-wrap:nowrap;align-items:center}
.matrix .lesson-cell>.faq-number{flex:0 0 auto;max-width:120px;overflow:hidden;text-overflow:ellipsis;margin:0;color:#536e85;font-size:10px;font-weight:400;font-variant-numeric:tabular-nums;white-space:nowrap;line-height:1.4}
.matrix .lesson-cell>.faq-number>.ui-text{display:inline;font-size:inherit}
.matrix .lesson-cell>.lesson-name{flex:1 1 0;min-width:0}
/* Feedback scope belongs to the title; the name takes only one compact input line. */
.feedback-form,.feedback-form:has(.feedback-scope){grid-template-columns:minmax(0,1fr)}
.feedback-form .dialog-heading{margin:0;padding-bottom:10px;gap:12px;align-items:flex-start}
.feedback-heading-main{flex:1;min-width:0}.feedback-title-line{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
.feedback-title-line h2{margin:0;max-width:100%;overflow-wrap:anywhere}
.feedback-form .feedback-title-line .feedback-scope{display:flex;flex-wrap:wrap;grid-column:auto;align-self:center;gap:8px;flex:1 1 auto;min-width:0;margin:0}
.feedback-title-line .scope-chip-body{min-height:32px;padding:6px 11px;font-size:11px}
.feedback-form .dialog-heading>.dialog-label-toggle{flex:none;margin:0;white-space:nowrap}
.feedback-form .dialog-heading>.close-dialog{flex:none}
.feedback-form>.form-grid,.feedback-form:has(.feedback-scope)>.form-grid{grid-column:1/-1;grid-template-columns:minmax(0,320px);gap:0;min-width:0}
@media(max-width:600px){.feedback-form .dialog-heading{flex-wrap:wrap}.feedback-heading-main{flex-basis:100%}.feedback-form .dialog-heading>.close-dialog{margin-left:auto}.feedback-title-line .feedback-scope{flex-basis:100%}}
.feedback-form>.form-grid{width:min(320px,100%)}
/* Compact matrix page: one title, neutral grid, matching name and progress cells. */
.matrix{--matrix-grid:#cbd9e5}
.matrix-panel>.panel-heading h1{margin:0;font-size:21px;line-height:1.4}
.matrix-panel>.panel-heading>div:first-child{flex-shrink:0}
.matrix-tools{justify-content:flex-end}
.matrix-tools [data-open="feedback-inbox"]{font-size:11px;min-height:37px;padding:8px 12px}
.matrix thead th,.matrix tbody th,.matrix tbody td{border-color:var(--matrix-grid)}
.matrix thead .lesson-column{border-bottom-color:var(--matrix-grid)}
.matrix thead .agent-group{border-left-width:1px}
.matrix .category-row th,.matrix .category-row td{border-top-color:var(--matrix-grid);border-bottom-color:var(--matrix-grid)}
.matrix .category-row .feedback-column,.matrix .category-row .feedback-column[data-custom-color]{border-top-color:var(--matrix-grid);border-bottom-color:var(--matrix-grid)}
.matrix thead .matrix-end,.matrix .category-row .matrix-end{border:0}
.workspace-note{justify-content:flex-end}
.matrix-footer{justify-content:flex-end}
.matrix-footer>#save-status{margin-left:auto;flex-basis:auto}
.matrix-footer>.text-link{margin-left:0}
.feedback-scope-or{align-self:center;padding:0 8px;font-size:11px;font-weight:650;color:var(--navy)}
.feedback-kind-label{font-size:14px;font-weight:600;color:var(--navy)}
.feedback-form .editor-hint{display:flex;flex-wrap:wrap;gap:4px 16px;align-items:center}
.feedback-form .editor-hint>span{white-space:nowrap}
.feedback-form .scope-chip-body{border-radius:4px}
.feedback-editor .screenshot-figure:not(.image-selected) .resize-handle,.feedback-editor .screenshot-figure:not(.image-selected) .screenshot-controls{visibility:hidden;pointer-events:none}
.feedback-editor .screenshot-figure:not(.image-selected) .screenshot-image-frame{outline:0}
.feedback-editor .screenshot-image-frame>img{cursor:pointer}
.feedback-editor .screenshot-figure:focus-visible{outline:2px solid #275c89;outline-offset:3px}
.screenshot-controls .remove-image{width:auto;height:auto}
.feedback-form .dialog-footer{align-items:flex-start;flex-wrap:wrap}
.feedback-action{display:flex;flex-direction:column;align-items:stretch;gap:5px;max-width:200px}
.feedback-action>small{font-size:10px;line-height:1.4;color:var(--muted);text-align:center}
/* A fixed FAQ slot keeps all lesson titles on the same left edge. */
.matrix:has(.faq-number) .lesson-cell{display:grid;grid-template-columns:72px minmax(0,1fr) auto}
.matrix:has(.faq-number) .lesson-cell>.faq-number{grid-column:1;grid-row:1;max-width:100%}
.matrix:has(.faq-number) .lesson-cell>.lesson-name{grid-column:2;grid-row:1;text-align:left}
.matrix:has(.faq-number) .lesson-cell>.edit-lesson{grid-column:3;grid-row:1}
@media(max-width:600px){.matrix:has(.faq-number) .lesson-cell{grid-template-columns:54px minmax(0,1fr) auto}}
@media(max-width:600px){.feedback-action{flex:1;min-width:0}.feedback-action>small{font-size:9px}}
@media(max-width:850px){.matrix-tools{justify-content:flex-start}}
@media(max-width:600px){.matrix-panel>.panel-heading h1{font-size:20px}.matrix .lesson-cell>.faq-number{max-width:65px;font-size:9px}.workspace-note>span{justify-content:flex-end}}
/* Search starts at the left edge; administration stays at the right. */
.matrix-panel>.panel-heading>.matrix-tools{width:100%;min-width:0;justify-content:flex-start}
.matrix-admin-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-left:auto}
@media(max-width:850px){.matrix-admin-actions{width:100%;margin-left:0}}
/* Two independent view controls in the formerly empty corner of the matrix. */
.matrix thead .matrix-view-cell{padding:12px 16px;vertical-align:middle}
.matrix-view-controls{font-weight:400;letter-spacing:0;text-transform:none;color:var(--navy);text-align:left}
.matrix-view-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.matrix-view-heading strong{font-size:13px;font-weight:650}
.matrix-view-reset{border:0;background:none;color:#456782;font-size:10px;padding:3px 0;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.matrix-view-row{display:flex;align-items:flex-end;gap:10px;margin-top:8px}
.matrix-view-row>label{flex:1;min-width:0;margin:0;font-size:10px;line-height:1.3}
.matrix-view-row>label>span{display:block;margin-bottom:4px;color:#506b83}
.matrix-view-controls select{display:block;width:100%;min-width:0;min-height:31px;padding:5px 22px 5px 8px;font-size:11px;background-color:#f6f9fc;border-color:#b5c9d9;border-radius:4px;color:var(--navy)}
.matrix-group-toggle{display:flex;align-items:center;justify-content:flex-start;gap:6px;min-height:31px;flex:0 0 106px;padding:5px 6px;border:1px solid #c6d6e2;border-radius:4px;background:#fff;color:#536c82;font-size:10px;cursor:pointer}
.matrix-group-toggle[aria-pressed=true]{background:#eaf2f8;color:#163e66;border-color:#9bb6cb}
.view-switch{position:relative;display:inline-block;flex:0 0 24px;height:14px;background:#bac8d4;border-radius:9px;transition:background .15s}
.view-switch::after{content:'';position:absolute;left:2px;top:2px;width:10px;height:10px;background:#fff;border-radius:50%;transition:transform .15s}
.matrix-group-toggle[aria-pressed=true] .view-switch{background:#245d88}.matrix-group-toggle[aria-pressed=true] .view-switch::after{transform:translateX(10px)}
.matrix-group-toggle:focus-visible,.matrix-view-reset:focus-visible{outline:2px solid #d77e00;outline-offset:2px}
.matrix thead .matrix-view-cell .matrix-view-hint{font-size:9px;margin-top:10px;font-weight:400}
.matrix-view-mobile{display:none}.matrix-view-dialog{width:min(450px,calc(100% - 24px))}.matrix-view-dialog .matrix-view-heading{margin-bottom:14px}
.matrix .agent-flat-heading{height:36px;background:#f1f6fa;border-bottom:1px solid var(--matrix-grid);font-size:11px;text-align:left;padding:8px 12px}
.matrix.lessons-ungrouped tbody tr:last-child th,.matrix.lessons-ungrouped tbody tr:last-child td{border-bottom:0}
@media(max-width:600px){.matrix-view-desktop{display:none}.matrix-view-mobile{display:flex;font-size:11px;padding:8px;min-height:34px}.matrix thead .matrix-view-cell{padding:12px}.matrix-view-dialog .matrix-view-row{gap:8px}.matrix-group-toggle{flex-basis:103px}}
@media(prefers-reduced-motion:reduce){.view-switch,.view-switch::after{transition:none}}
.matrix-view-axis+.matrix-view-axis{margin-top:10px;padding-top:10px;border-top:1px solid #d8e3ec}
.matrix-view-controls .matrix-view-search{display:block;margin:0}
.matrix-view-controls .matrix-view-search input[type=search]{width:100%;min-height:31px;height:31px;padding:5px 8px 5px 29px;font-size:11px;background:#fff}
.matrix-view-search>.icon{top:8px;left:9px;width:14px;height:14px}
.matrix-view-row{margin-top:6px}
.matrix-view-row>label>.sr-only{margin:0}
#inline-label-tools{max-height:calc(100dvh - 16px);overflow:auto}
/* Quiet corner: searches first, sorting and grouping one step away. */
.matrix-corner-search{display:grid;gap:9px;max-width:350px;font-weight:400;letter-spacing:0;text-transform:none}
.matrix-corner-search .search-field{display:block;margin:0}
.matrix .matrix-corner-search .search-field input[type=search]{width:100%;min-width:0;height:36px;min-height:36px;padding:6px 9px 6px 30px;font-size:12px;border-color:#c4d4e2;border-radius:5px;background:#fff}
.matrix-corner-search .matrix-view-search>.icon{top:11px;left:10px}
.matrix-corner-footer{display:flex;align-items:center;justify-content:space-between;gap:8px}
.matrix .matrix-corner-footer small{margin:0;font-size:9px;font-weight:400}
.matrix-view-open{display:flex;gap:8px;align-items:center;border:0;border-radius:4px;padding:6px 8px;background:#f0f5f9;color:var(--navy);font-size:11px;cursor:pointer}
.matrix-view-open:hover{background:#e0ebf3}.matrix-view-open:focus-visible{outline:2px solid #286891;outline-offset:2px}
.matrix-tools .general-feedback-button{margin-left:auto;white-space:nowrap;font-weight:500}
.general-feedback-button>.icon{color:#df8700;stroke-width:1.7}.general-feedback-button .badge{font-size:10px;background:#f4f0e5;color:#825700}
.matrix-tools:has(.matrix-admin-actions) .general-feedback-button{margin-left:12px}
/* A vertical meter below each name, with the existing licence in the same slot. */
.matrix .agent-progress-track{height:28px;flex-basis:28px}
.matrix .agent-progress{width:24px;height:5px;transform:rotate(-90deg);flex:none}
@media(max-width:850px){.matrix-tools:has(.matrix-admin-actions) .general-feedback-button{margin-left:auto}}
@media(max-width:600px){.matrix .lesson-column{width:194px;min-width:194px}.matrix{--lesson-width:194px}.matrix-corner-search{gap:7px}.matrix .matrix-corner-search .search-field input[type=search]{font-size:10px;padding-left:25px}.matrix-corner-search .matrix-view-search>.icon{left:7px;width:12px}.matrix-corner-footer{align-items:flex-start;gap:3px}.matrix .matrix-corner-footer small{max-width:90px;font-size:8px;line-height:1.5}.matrix-tools .general-feedback-button{font-size:11px;padding:8px 10px}.matrix-panel>.panel-heading h1{font-size:18px}}
/* Search, sort cycle and grouping share one quiet control per axis. */
.matrix-inline-controls{display:grid;gap:12px;font-weight:400;letter-spacing:0;text-transform:none}
.matrix-search-row{display:flex;align-items:stretch;border:1px solid #c3d4e4;border-radius:5px;background:#fff;box-shadow:0 1px 3px #193e6410;min-width:0}
.matrix-search-row .search-field{flex:1;min-width:0;margin:0}
.matrix .matrix-search-row .search-field input[type=search]{width:100%;min-width:0;height:38px;min-height:38px;padding:7px 8px 7px 30px;border:0;background:transparent;font-size:12px;border-radius:4px 0 0 4px}
.matrix-search-row .search-field>.icon{top:12px;left:10px;width:14px;height:14px}
.matrix-sort-cycle,.matrix-group-cycle{display:flex;align-items:center;justify-content:center;flex:none;min-height:38px;border:0;border-left:1px solid #dce6ef;background:#f7fafe;color:#466882;cursor:pointer;padding:4px;font-size:10px;font-weight:600}
.matrix-sort-cycle{width:51px;font-variant-numeric:tabular-nums;white-space:nowrap}
.matrix-group-cycle{width:34px;border-radius:0 4px 4px 0}.matrix-group-cycle>.icon{width:16px;height:16px}
.matrix-group-cycle[aria-pressed=true]{background:#eaf3fc;color:#1f679a}
.matrix-group-cycle[aria-pressed=true] .when-ungrouped,.matrix-group-cycle[aria-pressed=false] .when-grouped{display:none}
.matrix-sort-cycle:hover,.matrix-group-cycle:hover{background:#e1edf7;color:#154c79}
.matrix-sort-cycle:focus-visible,.matrix-group-cycle:focus-visible{outline:2px solid #286891;outline-offset:-3px}
.matrix-inline-controls>.matrix-view-reset{justify-self:start;padding:1px 0;font-size:10px}
.matrix .lesson-column{width:430px;min-width:430px}.matrix{--lesson-width:430px}
/* Title links and feedback stay together; the checkbox cells contain only progress. */
.matrix .lesson-cell{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}
.matrix:has(.faq-number) .lesson-cell{grid-template-columns:72px minmax(0,1fr) auto}
.matrix .lesson-name{min-width:0;text-align:left}
.lesson-actions{display:grid;grid-template-columns:28px 28px;gap:2px;align-items:center;justify-self:end}
.lesson-actions:has(.edit-lesson){grid-template-columns:28px 28px 24px}
.matrix:has(.faq-number) .lesson-cell>.lesson-actions{grid-column:3;grid-row:1}
.lesson-actions .icon-button{width:28px;height:32px;min-width:0;padding:5px;margin:0;opacity:1}
.lesson-actions .lesson-open{grid-column:1;grid-row:1;color:#547f9d}
.lesson-actions .lesson-feedback-bulb{grid-column:2;grid-row:1;color:#cc7900;background:transparent}
.lesson-actions .lesson-feedback-bulb:hover{background:#fff1d6;color:#985800}
.lesson-actions .edit-lesson{grid-column:3;grid-row:1;width:24px;color:#718da6}
.lesson-actions .icon{width:17px;height:17px}.lesson-actions .lesson-open .icon{width:14px;height:14px}
.matrix .check-cell{height:54px;padding:8px 3px}
/* Explicit centres avoid baseline/layout offsets for rotated native progress elements. */
.matrix .agent-name-slot{width:100%;align-items:center}
.matrix .agent-progress-track{position:relative;width:100%;height:28px;flex:0 0 28px;align-self:center}
.matrix .agent-progress-track>.agent-progress{position:absolute;left:50%;top:50%;width:24px;height:5px;margin:0;transform:translate(-50%,-50%) rotate(-90deg);transform-origin:center}
.matrix .agent-progress-track>.agent-license{position:absolute;left:50%;top:50%;margin:0;transform:translate(-50%,-50%)}
@media(max-width:600px){.matrix .lesson-column{width:230px;min-width:230px}.matrix{--lesson-width:230px}.matrix thead .matrix-view-cell{padding:10px}.matrix-inline-controls{gap:10px}.matrix .matrix-search-row .search-field input[type=search]{font-size:10px;padding-left:7px;padding-right:2px}.matrix-search-row .search-field>.icon{display:none}.matrix-sort-cycle{width:42px;font-size:9px}.matrix-group-cycle{width:29px}.matrix:has(.faq-number) .lesson-cell{grid-template-columns:54px minmax(0,1fr) auto}.lesson-actions{grid-template-columns:24px 24px;gap:0}.lesson-actions:has(.edit-lesson){grid-template-columns:24px 24px 20px}.lesson-actions .icon-button{width:24px;padding:3px}.lesson-actions .edit-lesson{width:20px}}
/* The category band continues over the search corner. */
.matrix thead .matrix-corner-band{height:36px;padding:0;background:#dce8f3;border-bottom:1px solid var(--matrix-grid)}
.matrix-title{display:flex;flex-direction:column;gap:3px}.matrix-subtitle{margin:0;font-size:12px;font-weight:400;color:#57748d}
/* Shared lower baseline for all names/meters; each sits on its column's centre axis. */
.matrix .agent-column{height:156px;vertical-align:bottom}
.matrix .agent-name-slot{height:124px;min-height:0;justify-content:flex-end;align-items:center;gap:6px}
.matrix .agent-name{flex:none;margin:0;padding:0;line-height:1}
.matrix .agent-progress-track{flex:0 0 28px}
/* Feedback totals are visible without a hover and stay compact next to the bulb. */
.lesson-actions{grid-template-columns:28px 44px}.lesson-actions:has(.edit-lesson){grid-template-columns:28px 44px 24px}
.lesson-actions .lesson-feedback-bulb{display:flex;width:44px;gap:3px;padding:3px}
.lesson-feedback-count{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:16px;height:16px;padding:0 3px;border-radius:50%;background:#f7edda;color:#765715;font-size:9px;font-weight:600;line-height:1;font-variant-numeric:tabular-nums}
/* Cover shared-edge/subpixel seams too: the entire trailing strip stays white. */
.matrix .matrix-end::after{content:'';position:absolute;inset:-2px 0 0;background:#fff;pointer-events:none}
.matrix-panel>.panel-heading,.matrix-footer{position:relative}
.matrix-panel>.panel-heading::after{content:'';position:absolute;right:0;bottom:-1px;width:22px;height:2px;background:#fff;pointer-events:none}
.matrix-footer::before{content:'';position:absolute;right:0;top:-1px;width:22px;height:2px;background:#fff;pointer-events:none}
@media(max-width:850px){.matrix-subtitle{margin-left:0;font-size:11px}}
@media(max-width:600px){.matrix .agent-column{height:148px}.lesson-actions{grid-template-columns:24px 39px}.lesson-actions:has(.edit-lesson){grid-template-columns:24px 39px 20px}.lesson-actions .lesson-feedback-bulb{width:39px;padding:2px;gap:1px}.lesson-feedback-count{min-width:15px;height:15px;font-size:8px}}
/* Header copy uses the same quiet typography as the application headings. */
.site-header{height:auto;min-height:92px;padding-top:12px;padding-bottom:12px;flex-wrap:wrap}
.site-header .brand{flex:1 1 330px;min-width:0;font-family:inherit;font-size:24px;font-weight:600;letter-spacing:-.025em;line-height:1.3}
.site-header .brand>span{min-width:0;overflow-wrap:anywhere}
.site-header .brand small{font-family:inherit;font-size:12px;font-weight:400;letter-spacing:normal;line-height:1.45;margin-top:4px}
.site-header .brand-license{flex:none}
.site-header .header-right{flex:none;margin-left:auto}
.footer-privacy{display:inline-flex;align-items:center;gap:7px;line-height:1.5}
.footer-privacy>.icon{width:12px;height:12px;flex:none}
/* Keep the white gutter, but close the coloured cells with a neutral vertical rule. */
.matrix .matrix-end,.matrix thead .matrix-end,.matrix .category-row .matrix-end,.matrix .category-row:hover .matrix-end,.matrix tbody tr:hover .matrix-end{border-left:1px solid var(--matrix-grid)}
@media(max-width:600px){.site-header .brand{flex-basis:100%;font-size:21px}.site-header .brand small{font-size:11px}.site-header .header-right{gap:16px}.footer-privacy{font-size:9px}}

/* Feedback grows with its contents up to the available viewport height. */
.feedback-dialog{max-height:calc(100dvh - 24px)}
.feedback-form,.feedback-form:has(.feedback-scope){display:flex;flex-direction:column;max-height:calc(100dvh - 70px);gap:10px}
.feedback-form>*{flex-shrink:0}
.feedback-form .dialog-heading{align-items:center;flex-wrap:nowrap}
.feedback-form .dialog-heading h2{font-size:26px;margin:0}
.feedback-form .feedback-heading-main{flex:1;min-width:0}
.feedback-form .feedback-author{flex:0 1 280px;min-width:140px;width:280px;min-height:36px;padding:7px 10px;font-size:12px}
.feedback-form .feedback-context{min-width:0}
.feedback-form .feedback-editor{flex:0 1 auto;min-height:210px;max-height:none;overflow:auto;overscroll-behavior:contain}
@media(max-width:760px){.feedback-form,.feedback-form:has(.feedback-scope){max-height:calc(100dvh - 58px)}.feedback-form .feedback-editor{min-height:120px}}
@media(max-width:600px){.feedback-form .dialog-heading{flex-wrap:wrap;gap:8px}.feedback-form .feedback-heading-main{flex:1 1 auto}.feedback-form .feedback-author{order:3;flex-basis:100%;width:100%}.feedback-form .dialog-heading h2{font-size:23px}.feedback-form .feedback-context .feedback-scope{gap:6px}.feedback-context .scope-chip-body{overflow-wrap:anywhere}}

/* Title and context form one quiet heading; controls never set a taller row. */
.feedback-form .dialog-heading{align-items:center;gap:12px}
.feedback-form .feedback-heading-main{flex:1 1 360px;min-width:0}
.feedback-subtitle{margin-top:4px;font-size:12px;font-weight:400;line-height:1.5;overflow-wrap:anywhere}
.feedback-subtitle #lesson-choice{margin-top:3px;min-height:32px;padding:5px 8px;font-size:12px}
.feedback-form .feedback-author{flex:0 1 230px;width:230px;min-height:34px;height:34px}
.feedback-form .dialog-heading>.button{flex:none;min-height:32px;height:32px;padding:6px 10px;font-size:11px;line-height:18px;white-space:nowrap}
@media(max-width:760px){.feedback-form .dialog-heading{flex-wrap:wrap;gap:8px}.feedback-form .feedback-heading-main{flex-basis:100%}.feedback-form .feedback-author{order:0;flex:1 1 140px;width:auto}.feedback-form .dialog-heading>.dialog-label-toggle{margin-left:auto}}

/* Real cell borders form the rounded edge; no painted corner overlays. */
.matrix-panel>.panel-heading,.matrix-footer{border-bottom:0}
.matrix-footer{border-top:0}
.matrix-panel>.panel-heading::after,.matrix-footer::before{content:none}
.matrix .matrix-end,.matrix thead .matrix-end,.matrix .category-row .matrix-end,.matrix .category-row:hover .matrix-end,.matrix tbody tr:hover .matrix-end{border-left:0}
.matrix tr>:not([hidden]):not(.matrix-end):not(:has(~:not([hidden]):not(.matrix-end))){border-right:1px solid var(--matrix-grid)}
.matrix thead tr:first-child>:not(.matrix-end){border-top:1px solid var(--matrix-grid)}
.matrix thead tr:first-child>:not([hidden]):not(.matrix-end):not(:has(~:not([hidden]):not(.matrix-end))){border-top-right-radius:8px}
.matrix>tbody:not([hidden]):not(:has(~tbody:not([hidden])))>tr:not([hidden]):not(:has(~tr:not([hidden])))>:not(.matrix-end){border-bottom:1px solid var(--matrix-grid)}
.matrix>tbody:not([hidden]):not(:has(~tbody:not([hidden])))>tr:not([hidden]):not(:has(~tr:not([hidden])))>:not([hidden]):not(.matrix-end):not(:has(~:not([hidden]):not(.matrix-end))){border-bottom-right-radius:8px}
/* Name and meter share one fixed-width grid column and a common bottom line. */
.matrix .agent-name-slot{--agent-label-width:12px;display:grid;grid-template-columns:var(--agent-label-width);grid-template-rows:minmax(0,1fr) 28px;justify-content:center;align-items:end}
.matrix .agent-name{width:var(--agent-label-width);font-size:var(--agent-label-width);justify-self:center}
.matrix .agent-progress-track{width:var(--agent-label-width);align-self:end}
.matrix .agent-progress-track>.agent-progress{height:var(--agent-label-width);border-radius:6px}
.matrix .agent-progress::-webkit-progress-bar,.matrix .agent-progress::-webkit-progress-value{border-radius:6px}
.matrix .agent-progress::-moz-progress-bar{border-radius:6px}
@media(max-width:600px){.matrix .agent-name-slot{--agent-label-width:11px}}

/* Same height for the optional name and all feedback header actions. */
.feedback-form .dialog-heading>.button{height:42px;min-height:42px}
.feedback-form .feedback-author{height:42px;min-height:42px}
.matrix .agent-flat-heading{background:#dce8f3}
.matrix-group-cycle{border-radius:0}
.matrix-axis-reset{display:flex;align-items:center;justify-content:center;flex:none;width:34px;min-height:38px;padding:4px;border:0;border-left:1px solid #dce6ef;border-radius:0 4px 4px 0;background:#f7fafe;color:#466882;cursor:pointer}
.matrix-axis-reset>.icon{width:15px;height:15px}
.matrix-axis-reset:hover{background:#eaf3fc;color:#1f679a}
.matrix-axis-reset:focus-visible{outline:2px solid #286891;outline-offset:-3px}
@media(max-width:600px){.matrix-axis-reset{width:29px}}

/* All questions share one label column and one left-aligned star column. */
.feedback-form .rating-section,.feedback-form [data-rating-kind=lesson]{display:grid;grid-template-columns:fit-content(calc(100% - 164px)) max-content;column-gap:12px;align-items:center;justify-content:start}
.feedback-form .score-row{display:contents}
.feedback-form .score-row legend{width:auto;max-width:none;min-width:0;grid-column:1}
.feedback-form .star-group{grid-column:2;justify-self:start}
.feedback-form .rating-admin{grid-column:1/-1}
@media(max-width:480px){.feedback-form .rating-section,.feedback-form [data-rating-kind=lesson]{grid-template-columns:fit-content(calc(100% - 150px)) max-content;column-gap:6px}.feedback-form .score-row{column-gap:6px}}

.ui-text strong{font-weight:750}.ui-text em{font-style:italic}.ui-text u{text-decoration:underline;text-underline-offset:2px}.ui-text del{text-decoration:line-through}
.inline-format-help{max-width:340px;white-space:normal}.inline-format-help code{font-size:10px}

/* Feedback typing shortcuts: match the saved feedback appearance. */
.feedback-editor ul,.formatted-feedback ul{list-style:disc;padding-left:1.6em;margin:.4em 0}
.feedback-editor li,.formatted-feedback li{margin:.15em 0}
.feedback-editor strong,.feedback-editor b,.formatted-feedback strong{font-weight:750}
.feedback-editor em,.feedback-editor i,.formatted-feedback em{font-style:italic}
.feedback-editor u,.formatted-feedback u{text-decoration:underline;text-underline-offset:2px}
.feedback-editor del,.formatted-feedback del{text-decoration:line-through}
.formatted-feedback p,.formatted-feedback li{white-space:pre-wrap}

/* Optional lesson checks and compact, editable contact notes. */
.header-contacts{font-size:11px;line-height:1.5;display:flex;flex-direction:column;gap:1px;overflow-wrap:anywhere;margin-left:auto;padding:0 20px;color:#315774}
.site-header .header-right{flex-shrink:0}.site-header{gap:16px}.site-header .brand{min-width:0}
.quiz-dialog{width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto}.quiz-dialog .dialog-heading p{font-size:12px;margin:6px 0 0}
.quiz-question-card,.quiz-edit-question{min-width:0;border:1px solid #bfd3e5;border-radius:6px;padding:14px;margin:14px 0;background:#f5f9fc}
/* Put the visual frame around the whole group, including the native legend. */
.quiz-question{min-width:0;margin:0;padding:0;border:0}
.quiz-question legend{font-weight:600;width:100%;max-width:100%;overflow-wrap:anywhere;white-space:pre-line;line-height:1.5;padding:0;margin:0 0 8px}.quiz-option{display:flex;align-items:flex-start;gap:10px;padding:9px 2px;line-height:1.5;cursor:pointer}.quiz-option input{flex:none;margin-top:3px}.quiz-option span{min-width:0;overflow-wrap:anywhere}
.quiz-result{background:#eef5fc;padding:14px;border-radius:6px;margin:14px 0}.quiz-result.success{background:#edf7ee;color:#24633a}
.quiz-editor{border:1px solid #bfd3e5;border-radius:6px;padding:12px;margin:8px 0}.quiz-editor summary{cursor:pointer;font-weight:600}.quiz-edit-question textarea{width:100%;margin-top:6px}
.quiz-edit-option{display:flex;align-items:center;gap:8px;margin:8px 0}.quiz-edit-option input[type=checkbox]{flex:none}.quiz-edit-option .quiz-answer-text{flex:1;min-width:0}.quiz-edit-actions{display:flex;gap:8px;flex-wrap:wrap}
.inbox-toolbar{flex-wrap:wrap}#inbox-lesson-filter{max-width:100%;flex:1;min-width:180px}.license-dialog .dialog-footer{flex-wrap:wrap}
@media(max-width:1100px){.site-header{flex-wrap:wrap}.header-contacts{order:3;width:100%;margin:0;padding:0;flex-direction:row;flex-wrap:wrap;gap:4px 20px}.site-header .header-right{margin-left:auto}}
@media(max-width:480px){.quiz-edit-option{flex-wrap:wrap}.quiz-edit-option .quiz-answer-text{flex-basis:calc(100% - 35px)}}

.lesson-actions:has([data-view-lesson-feedback]){grid-template-columns:28px 44px 28px 24px}
.lesson-actions [data-view-lesson-feedback]{grid-column:3;grid-row:1;color:#315774}
.lesson-actions:has([data-view-lesson-feedback]) .edit-lesson{grid-column:4}
@media(max-width:600px){.lesson-actions:has([data-view-lesson-feedback]){grid-template-columns:24px 39px;row-gap:0}.lesson-actions:has([data-view-lesson-feedback]) .edit-lesson{grid-column:1;grid-row:2}.lesson-actions [data-view-lesson-feedback]{grid-column:2;grid-row:2;justify-self:center}.lesson-actions:has([data-view-lesson-feedback]) .icon-button{height:24px}}

/* Website alongside the two mailboxes, all three notes remain editable. */
.header-contacts{font-size:12px;flex-direction:row;align-items:center;gap:18px;padding:0 12px}
.header-website{font-size:14px;font-weight:600}.header-mailboxes{display:flex;flex-direction:column;gap:2px}
@media(max-width:1100px){.header-contacts{width:auto;max-width:100%;flex-wrap:wrap;gap:8px 20px;padding:0}.header-mailboxes{min-width:0}}
@media(max-width:480px){.header-contacts{font-size:11px;gap:8px 14px}.header-website{font-size:13px}}

/* Clear outcomes and direct access to the scenario and its feedback. */
.quiz-result.failure{background:#fff0ee;color:#933b31}
.quiz-lesson-link{text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.quiz-dialog .dialog-footer{flex-wrap:wrap}
.license-dialog .license-completed{margin-bottom:18px}
.header-contacts{gap:40px;max-width:100%}
.header-website{font-size:32px;line-height:1.2;min-width:0}
.header-mailboxes{min-width:0}
@media(max-width:1100px){.header-contacts{gap:14px 36px}}
@media(max-width:480px){.header-website{font-size:28px}.header-contacts{gap:12px 28px}}

/* Primary actions finish on the right; the title leads the contact notes. */
.site-header .brand{font-weight:700}
.site-header .brand>.ui-text,.site-header .brand>span>.ui-text strong{font-weight:700}
.header-website{font-weight:400}
.header-contacts .ui-text strong{font-weight:600}
.header-contacts a{color:inherit;text-decoration:none}
.header-contacts a:hover{text-decoration:underline;text-underline-offset:3px}
.header-contacts a:focus-visible{outline:2px solid var(--navy);outline-offset:4px;border-radius:2px}

/* Keep the course badge beside the matrix title and subtitle. */
.matrix-title-group{display:flex;align-items:center;gap:20px;min-width:0;max-width:100%}
.matrix-title-group .matrix-title{min-width:0;overflow-wrap:anywhere}
.matrix-title-group .brand-license{flex:none}
@media(max-width:600px){.matrix-title-group{gap:12px}}

/* Paste imports keep validation and review beside the data. */
.import-dialog{width:min(960px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}
.import-dialog>label,.quiz-import-panel>label{display:block;margin:14px 0 6px}
.import-dialog textarea,.quiz-import-panel textarea{display:block;width:100%;font-family:ui-monospace,monospace;font-size:12px;margin-top:6px}
.import-help,.quiz-import-panel{border:1px solid var(--line);padding:12px;border-radius:6px;margin:12px 0}
.import-help summary,.quiz-import-panel summary{cursor:pointer;font-weight:600}
.import-file-label{font-size:12px}.import-file-label input{display:block;margin-top:8px;max-width:100%}
.import-preview{overflow:auto;max-height:340px;margin:14px 0;border:1px solid var(--line);border-radius:5px;padding:10px}
.import-preview table{border-collapse:collapse;width:100%;min-width:640px;font-size:12px;text-align:left}
.import-preview th,.import-preview td{padding:8px;border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere}
.import-preview .import-invalid{color:#933b31;background:#fff0ee}.import-preview .import-duplicate{color:#66798b}
.import-preview .import-new{color:#24633a}.import-preview ol{padding-left:22px}.import-preview li{margin:4px 0}
.quiz-import-mode{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0;font-size:12px}
.quiz-import-mode label{display:flex;align-items:center;gap:6px}.quiz-copy-prompt{margin:12px 0}
.import-dialog .dialog-footer{flex-wrap:wrap}

/* Violet identifies controls that exist only in administration. Shared actions keep their colors. */
:root{--admin-ink:#682398;--admin-fill:#7b2cbf;--admin-pale:#f5edff;--admin-border:#b48acf}
.admin-scope :is(button,a.button),button.admin-action,.button.admin-action,.icon-button.admin-action{color:var(--admin-ink);background:var(--admin-pale);border-color:var(--admin-border)}
.admin-scope :is(button,a.button):hover,button.admin-action:hover,.button.admin-action:hover,.icon-button.admin-action:hover{color:var(--admin-ink);background:#ead9fb;border-color:var(--admin-fill)}
.admin-scope .button.primary,button.admin-action.primary{color:#fff;background:var(--admin-fill);border-color:var(--admin-fill)}
.admin-scope .button.primary:hover,button.admin-action.primary:hover{color:#fff;background:#682398;border-color:#682398}
.admin-scope :is(button,a.button):focus-visible,button.admin-action:focus-visible{outline-color:var(--admin-fill)}
.admin-scope input::file-selector-button{color:var(--admin-ink);background:var(--admin-pale);border:1px solid var(--admin-border);border-radius:4px;padding:7px 10px;cursor:pointer}
.admin-scope .badge{background:#e8d6f7;color:var(--admin-ink)}
button.agent-name.admin-action{border-radius:4px}
.import-selection{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 10px;font-size:12px}
.import-selection label{display:flex;align-items:center;gap:8px;cursor:pointer}
.import-selection input,.import-choice input{accent-color:var(--admin-fill);width:18px;height:18px;margin:0;cursor:pointer}
.import-choice{width:40px;text-align:center}.import-choice label{display:grid;place-items:center;min-height:28px;cursor:pointer}
.import-preview .import-excluded{color:var(--muted);background:#f7f8fa}

.matrix .agent-column[data-custom-color] button.agent-name.admin-action{color:var(--admin-ink)}
.admin-scope button[aria-pressed=true],button.admin-action[aria-pressed=true]{background:#e2c8f7;box-shadow:inset 0 0 0 1px var(--admin-fill)}
.admin-scope .color-preset[aria-pressed=true] .color-swatch{box-shadow:0 0 0 2px #fff,0 0 0 3px var(--admin-fill)}

#toggle-label-mode.admin-action[aria-pressed=true]{color:var(--admin-ink);background:#e2c8f7;box-shadow:inset 0 0 0 1px var(--admin-fill)}

.import-preview th:first-child{min-width:64px;white-space:nowrap;text-align:center}

/* A quiet surface separates question imports from the surrounding lesson editor. */
.quiz-import-panel{background:#f3f4f6}
.quiz-import-panel textarea,.quiz-import-panel .quiz-import-preview{background:#fff}
.quiz-import-panel>.field-help{margin:10px 0}

.import-preview .import-update{background:#f5edff;color:#682398}
.import-preview .import-update td:nth-child(3)>div{color:#66798b;margin-bottom:4px}

.feedback-resolution{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.feedback-resolution .form-error{flex-basis:100%}
.feedback-status{border-radius:12px;padding:3px 8px;background:#fff3df;color:#80540c}
.feedback-entry[data-resolved="1"]{border-top-color:#729a84}
.feedback-entry[data-resolved="1"] .feedback-status{background:#e8f3eb;color:#316249}
#inbox-status-filter{min-width:110px;flex:0 1 150px}
@media(max-width:600px){#inbox-status-filter{flex:auto}}

/* General feedback belongs to the page header, independently of the lessons. */
.site-header{display:grid;grid-template-columns:fit-content(38%) minmax(180px,1fr) auto auto;grid-template-areas:"brand feedback contacts account";gap:20px}
.site-header .brand{grid-area:brand}
.site-header .header-feedback{grid-area:feedback;min-width:0;display:flex;justify-content:center}
.site-header .header-contacts{grid-area:contacts;margin:0;padding:0;order:initial;width:auto;justify-content:flex-end;text-align:right}
.site-header .header-right{grid-area:account;margin-left:0}
.header-feedback .general-feedback-button{font-size:12px;font-weight:500;min-height:44px;padding:10px 16px;white-space:normal;max-width:360px;text-align:center;line-height:1.4}
.header-feedback .general-feedback-button>.icon,.header-feedback .general-feedback-button>.badge{flex-shrink:0}
@media(max-width:1600px){.site-header{grid-template-columns:fit-content(50%) minmax(180px,1fr) auto;grid-template-areas:"brand feedback account" "contacts contacts contacts"}.site-header .header-contacts{justify-content:flex-end;flex-wrap:wrap}}
@media(max-width:900px){.site-header{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"brand account" "feedback feedback" "contacts contacts"}.site-header .header-right{flex-wrap:wrap;justify-content:flex-end}.header-feedback .general-feedback-button{max-width:100%}.site-header .header-contacts{justify-content:flex-end}}
@media(max-width:600px){.site-header{grid-template-columns:minmax(0,1fr);grid-template-areas:"brand" "feedback" "contacts" "account";gap:16px}.site-header .header-feedback .general-feedback-button{width:100%}.site-header .header-contacts{justify-content:flex-end;min-width:0}.site-header .header-right{justify-content:flex-end}.site-header .header-mailboxes{min-width:0;max-width:100%}}

.feedback-stars{border:1px solid var(--line);border-radius:6px;background:#f7f9fc;min-width:0}
.feedback-stars>summary{cursor:pointer;padding:11px 14px;font-size:12px;font-weight:600;color:var(--navy)}
.feedback-stars>summary::marker{color:#df8700}
.feedback-stars>summary:focus-visible{outline:2px solid var(--navy);outline-offset:2px;border-radius:5px}
.feedback-stars[open]>summary{border-bottom:1px solid var(--line)}
.feedback-form .feedback-stars>.rating-section{border:0;border-radius:0 0 6px 6px}

.feedback-delete-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.feedback-delete>summary{width:fit-content}
