:root{font-family:Ubuntu,"Segoe UI",system-ui,Arial,sans-serif;color:#25282b;background:#f6f7f7;--navy:#33373d;--blue:#f26522;--border:#d9dee3;--muted:#667078}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,.btn{background:#fff;border:1px solid var(--border);border-radius:7px;padding:10px 15px;color:#173450;cursor:pointer;font-weight:600;text-decoration:none;display:inline-block}button:hover,.btn:hover{border-color:#87abd0;background:#f1f7fc}button:disabled{opacity:.42;cursor:not-allowed}button.primary,.btn.primary{background:#ec5b18;color:white;border-color:#ec5b18}button.primary:hover,.btn.primary:hover{background:#ce4610}button.quiet{background:transparent;border:none;color:#46799d;font-weight:500;margin-top:12px}.topbar{height:82px;background:#fff;border-top:5px solid #f26522;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 max(calc((100vw - 1440px)/2),30px)}.brand{display:flex;align-items:center;gap:12px}.logo{height:40px;width:48px;background:#152c47;color:#fff;border-radius:5px;display:flex;align-items:center;justify-content:center;letter-spacing:-1px;font-weight:800;font-size:20px}.brand strong{display:block;font-size:16px}.brand small{display:block;color:var(--muted);margin-top:2px}.identity{font-size:13px;color:var(--muted)}main{max-width:1440px;margin:auto;padding:30px}h1{font-size:29px;letter-spacing:-.7px;margin:7px 0 9px}h2{font-size:19px;margin:0 0 11px}h3{font-size:15px;margin:0 0 12px}p{line-height:1.6;margin:0 0 12px}.eyebrow{color:#567b9c;font-weight:800;font-size:11px;letter-spacing:1.3px}.muted,.hint{color:var(--muted)}.hint{font-size:12px}.hidden{display:none!important}.login-panel{display:flex;justify-content:center;min-height:75vh;align-items:center}.card{border:1px solid var(--border);background:#fff;border-radius:12px;padding:22px;box-shadow:0 2px 12px #1e3a5c08}.login-card{max-width:490px;width:100%;padding:40px}.login-card p{margin-bottom:24px}label{font-weight:600;color:#35475c;font-size:13px;display:block;margin-bottom:7px}input:not([type=file]),select,textarea{background:white;border:1px solid #ccd8e5;border-radius:7px;padding:9px 11px;color:#17283f;width:100%;min-height:39px}input:focus,select:focus,textarea:focus{outline:2px solid #afd3f4;outline-offset:0}.login-card button.primary{width:100%;margin-top:16px}.alert{padding:12px;margin-top:12px;border:1px solid #e4b6b6;background:#fff0ef;color:#942c2c;border-radius:7px}.intro{display:flex;justify-content:space-between;align-items:center;margin:4px 0 24px;gap:25px}.intro p{color:var(--muted);margin:0}.tabs{border-bottom:1px solid var(--border);display:flex;gap:0}.tabs button{border:0;border-bottom:3px solid transparent;background:transparent;border-radius:0;color:#62748a;padding:16px 23px}.tabs button.active{border-bottom-color:#ec5b18;color:#853509;background:#fff1e8}.tabs button span{margin-left:6px;color:#a34912;font-size:12px}.task-toolbar{background:white;padding:15px 20px;border:1px solid var(--border);border-top:0;display:flex;justify-content:space-between;align-items:center;gap:14px}.task-toolbar strong{margin-right:13px}.state{font-size:12px;background:#eef2f5;padding:5px 9px;border-radius:50px;color:#586b7b}.state.locked{background:#fff1e8;color:#9c4b1b}.actions,.inline{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.save-status{font-size:12px;color:#667b90;margin-right:10px}.task-pane{background:#fff;border:1px solid var(--border);border-top:0;min-height:520px}.task-description{border-bottom:1px solid var(--border);padding:22px 25px;background:#fcfdff}.task-description p{max-width:1100px;margin-bottom:8px;font-size:14px;color:#495b6c}.task-description code,.card code{background:#edf1f7;border-radius:3px;padding:1px 4px;font-size:13px}.notice{border-left:3px solid #d6a451;background:#fff9ec;padding:12px 15px;margin-top:14px;max-width:1030px;font-size:13px}.notice p{margin:3px 0 0}.snap-tools{padding:12px 17px;display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--border)}#snap-holder{height:570px}#snap-frame{width:100%;height:100%;border:0}.uml-layout{display:grid;grid-template-columns:275px minmax(0,1fr);height:710px}.toolbox{padding:18px;border-right:1px solid var(--border);overflow-y:auto}.toolbox .inline{align-items:stretch}.toolbox .inline select{width:140px}.toolbox>label{margin-top:10px}.toolbox button:not(.inline button){margin-top:10px}.toolbox select{font-size:13px}.divider{height:1px;background:var(--border);margin:19px 0}.toolbox textarea{height:100px;resize:vertical}.toolbox #uml-inspector label{margin:8px 0 4px}.diagram-panel{overflow:hidden;position:relative;background-color:#fff;background-image:radial-gradient(#dbe3ee 1px, transparent 1px);background-size:18px 18px}.canvas-label{display:flex;justify-content:space-between;align-items:center;padding:13px 17px;font-size:11px;font-weight:800;color:#607993;letter-spacing:1px;background:#f8fafc;border-bottom:1px solid var(--border)}.canvas-label span{font-size:11px;font-weight:500;letter-spacing:0;color:#8695a6}#uml-canvas{height:calc(100% - 43px);width:100%;touch-action:none}svg .uml-node{cursor:grab}svg .uml-node.selected rect.outer{stroke:#ec5b18;stroke-width:2.6}svg .uml-edge{cursor:pointer}svg .uml-edge.selected{stroke:#ec5b18;stroke-width:3}.lmc-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px}.editor-panel{min-width:0;border-right:1px solid var(--border)}.code-shell{height:480px;position:relative;overflow:hidden;background:#0e1b2c}.code-shell pre,.code-shell textarea{position:absolute;inset:0;margin:0;padding:17px 19px;border:0;width:100%;height:100%;font:14px/23px Consolas,'Cascadia Code',monospace;tab-size:4;white-space:pre;overflow:auto}.code-shell pre{color:#c8d9e7;pointer-events:none;white-space:pre-wrap;overflow-wrap:normal}.code-shell textarea{color:transparent;-webkit-text-fill-color:transparent;background:transparent;resize:none;caret-color:white;outline:0!important}.code-shell textarea::selection{background:#557aaf77;-webkit-text-fill-color:transparent}.code-shell .keyword{color:#67bff0;font-weight:700}.code-shell .address{color:#e7bc78}.code-shell .comment{color:#71926f}.code-shell .value{color:#d5bbfa}.lmc-execution{padding:12px;background:#f8fafc;border-bottom:1px solid var(--border)}.lmc-execution label{margin:0}.lmc-execution input{max-width:160px}.console{background:#122236;color:#d8e8ef;min-height:70px;font:13px/1.6 Consolas,monospace;padding:14px 19px;white-space:pre-wrap}.machine-panel{padding:19px}.machine-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:16px}.machine-stats div{text-align:center;border:1px solid var(--border);background:#f9fbfe;border-radius:7px;padding:10px 4px;font-size:11px;color:var(--muted)}.machine-stats strong{display:block;color:#193d63;font-size:23px;margin-top:4px}.mailbox-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:4px}.mailbox{border:1px solid #e0e8f0;text-align:center;padding:5px 0;border-radius:3px;background:#f9fafc;min-width:0}.mailbox small{display:block;font-size:9px;color:#8b9ab0}.mailbox b{display:block;font-size:9px;font-weight:500;color:#273e55;overflow:hidden}.mailbox.active{background:#e3f0ff;border-color:#1f70b8}.evaluation{background:#fff;border:1px solid var(--border);padding:23px;margin-top:15px;border-radius:10px}.evaluation h3{font-size:16px;margin-bottom:9px}.evaluation li{line-height:1.9;font-size:13px}.evaluation .pass{color:#176b4b}.evaluation .fail{color:#ad4444}.admin-grid{display:grid;grid-template-columns:1fr 1.4fr;gap:17px;margin-bottom:17px}.admin-grid .card{min-height:240px}.admin-grid .card input[type=file]{display:block;padding:15px 0}.admin-grid .inline{margin-top:17px}.admin-grid .btn{font-size:13px}.toggle-row{display:flex;justify-content:space-between;align-items:center;padding:11px 0;border-bottom:1px solid var(--border)}.toggle-row input{height:20px;width:20px;accent-color:#ec5b18}.full{margin-bottom:17px}.row-between{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.row-between input{max-width:280px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px}th{text-align:left;background:#f4f7fb;color:#536a82;font-size:12px}td,th{border-bottom:1px solid #e8edf2;padding:10px;white-space:nowrap}td small{display:block;color:#788ba0}td button{padding:5px 8px;font-size:12px}.pill{background:#e9f4ee;color:#287154;border-radius:20px;padding:4px 7px;font-size:11px}.pill.off{background:#f8eaea;color:#98555c}.activity{max-height:240px;overflow:auto}.activity div{border-bottom:1px solid #edf1f6;padding:7px;font-size:12px;color:#485e71}.activity strong{color:#244a76}footer{text-align:center;color:#8796a5;padding:22px;font-size:12px}@media(max-width:1000px){.uml-layout{grid-template-columns:240px 1fr}.lmc-layout{grid-template-columns:1fr}.machine-panel{border-top:1px solid var(--border)}.mailbox-grid{max-width:500px}}@media(max-width:700px){main{padding:15px}.topbar{padding:0 15px}.brand strong{font-size:13px}.intro,.task-toolbar{align-items:flex-start;flex-direction:column}.tabs{overflow-x:auto}.tabs button{min-width:190px}.admin-grid{grid-template-columns:1fr}.uml-layout{grid-template-columns:1fr;height:auto}.toolbox{order:2;border:0}.diagram-panel{height:450px}.lmc-execution{gap:5px}.login-card{padding:24px}}

.wordmark{background:#f26522;color:#fff;letter-spacing:.4px;font-size:10px;line-height:1.25;font-weight:800;padding:11px 9px;text-align:center;min-width:109px;min-height:52px;display:flex;align-items:center;justify-content:center;border-radius:0} 
.topbar .brand{gap:16px}.topbar .brand small{font-size:11px}button.primary,.btn.primary{background:#e45a1b;border-color:#e45a1b}button.primary:hover,.btn.primary:hover{background:#bc410c}.eyebrow{color:#ba4d12}a{color:#b74a0e}input:focus,select:focus,textarea:focus{outline-color:#f7a77d}.tabs button.active{border-bottom-color:#f26522}.toggle-row input{accent-color:#f26522}

.wordmark{background:transparent;color:#373b3f;border-left:5px solid #f26522;min-width:0;min-height:0;justify-content:flex-start;padding:5px 0 5px 12px;text-align:left;font-size:11px;letter-spacing:.6px;line-height:1.35}

/* Read-only representation of the host-owned Snap! contract. */
.snap-contract{display:flex;flex-direction:column;align-items:flex-start;gap:0.15rem;margin:0.65rem 0;font-weight:600;font-size:.84rem}
.snap-hat{border-radius:24px 24px 5px 5px;background:#ecaf3b;color:#242527;padding:10px 18px;user-select:none}
.snap-eval{border-radius:5px;background:#e49b2c;color:#1e2024;padding:12px 16px;user-select:none}
.snap-slot{background:#f5e2a5;border-radius:14px;padding:5px 8px;margin-left:4px}
.snap-input{background:#f7b34d;border:1px solid #ac6e13;border-radius:20px;padding:3px 8px;white-space:nowrap}

/* V5 University brand and database design workbench */
.logo-host{min-width:112px;display:flex;align-items:center}.uj-primary-logo{display:block;width:116px;max-height:72px;object-fit:contain;object-position:left center}.uj-primary-logo[hidden]{display:none}.logo-host .wordmark{border-left:5px solid #f26522}.flat-table{overflow-x:auto;margin:16px 0}.flat-table table{min-width:1100px}.erd-layout .diagram-panel{min-height:600px}.erd-layout .toolbox textarea{height:190px}.erd-layout svg .erd-entity{cursor:grab}.erd-layout svg .erd-entity.selected rect{stroke:#e45a1b;stroke-width:3}.erd-layout svg .erd-relationship.selected{stroke:#e45a1b;stroke-width:3}.task-description .flat-table th{color:#242a30}.task-description .flat-table td{font-size:12px}.logo-host .wordmark{font-size:11px} .tabs button{white-space:nowrap} 

/* Sprint acceptance: test/submission state is beside the task controls, above every editor. */
.feedback-zone{display:flex;flex-direction:column;align-items:flex-end;gap:8px;background:#fff;border-left:1px solid var(--border);border-right:1px solid var(--border);padding:0 18px}
.feedback-zone .evaluation{width:min(760px,100%);margin:8px 0 13px;padding:19px}
.operation-progress{display:flex;align-items:center;gap:10px;margin:10px 0 4px;padding:11px 14px;width:min(760px,100%);border:1px solid #edc69f;border-radius:8px;color:#86400e;background:#fff8f0;font-size:13px;font-weight:600}
.operation-progress .elapsed{margin-left:auto;color:#5f6469;font-variant-numeric:tabular-nums;font-weight:500}
.evaluation-spinner{display:inline-block;width:18px;height:18px;flex:0 0 18px;border:3px solid #efc6ab;border-top-color:#e85c1b;border-radius:50%;animation:evaluation-spin .8s linear infinite}
@keyframes evaluation-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.evaluation-spinner{animation:none;border-top-color:#e85c1b}}
@media(max-width:750px){.feedback-zone{padding:0 10px}.feedback-zone .evaluation,.operation-progress{width:100%}}

/* Diagnostic output generated by public Snap! test cases. */
.snap-debug{margin:6px 0 13px 0;max-width:100%;color:#25282b;font-weight:normal}
.snap-debug summary{cursor:pointer;color:#33485d;font-size:13px}
.snap-debug-lines{white-space:pre-wrap;overflow-wrap:anywhere;background:#122236;color:#e3edf5;
    font:13px/1.55 Consolas,"Cascadia Code",monospace;padding:11px 13px;
    border-radius:6px;max-height:220px;overflow:auto;margin:8px 0}
.snap-debug-lines .muted{color:#b2c4d6}
.snap-debug-kind{color:#ffa873;font-weight:bold}

/* V6: assessment feedback, notation-only symbol palettes, LMC introduction */
.candidate-mark-note{font-size:.88rem;color:#496174;margin:.45rem 0 .65rem}
.symbol-palette{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;width:100%;margin:7px 0 9px}
.symbol-palette-edges{grid-template-columns:repeat(3,minmax(0,1fr))}
.symbol-palette .symbol-choice{margin:0;padding:4px;background:white;border:1px solid #b7c3d0;border-radius:6px;height:48px;display:flex;align-items:center;justify-content:center;cursor:pointer}
.symbol-palette .symbol-choice svg{max-width:100%;width:66px;height:34px;stroke:#3a4e61}
.symbol-palette .symbol-choice[aria-pressed="true"]{border:2px solid #ed6b20;background:#fff3e9;box-shadow:0 0 0 1px #ed6b20}
.symbol-palette .symbol-choice:focus-visible{outline:3px solid #0061a3;outline-offset:2px}
select[hidden]{display:none!important}
.feedback-section{display:flex;gap:1rem;justify-content:space-between;border-bottom:1px solid #e5eaf0;padding:9px 0}
.feedback-section strong{font-weight:650}
.lmc-learning{margin:1rem 0;padding-top:1rem;border-top:1px solid #d5dce5}
.lmc-learning h3{margin:1rem 0 .35rem}
.lmc-figure{margin:1rem auto;max-width:690px;text-align:center}
.lmc-figure img{width:100%;height:auto;border:1px solid #e1e6eb;background:white}
.lmc-figure figcaption{font-size:.81rem;color:#536273;margin-top:.3rem;line-height:1.5}
.lmc-reference-wrap{max-width:100%;overflow-x:auto}
.lmc-reference{border-collapse:collapse;width:100%;font-size:.86rem;line-height:1.4}
.lmc-reference th,.lmc-reference td{border:1px solid #c4d0da;padding:7px 9px;vertical-align:top;text-align:left}
.lmc-reference th{background:#e9eff5;color:#142f48}
.lmc-reference td:first-child{white-space:nowrap}

/* V6.2: unlabelled crow's-foot end-symbol palettes and typed ERD attributes. */
.erd-layout{grid-template-columns:365px minmax(0,1fr)}
.erd-symbol-palette{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:14px}
.erd-symbol-palette .symbol-choice{height:54px;min-width:0;padding:2px}
.erd-symbol-palette .symbol-choice svg{height:42px;width:100%;max-width:115px}
.erd-attribute-list{display:flex;flex-direction:column;gap:6px;margin:10px 0}
/* Two-row attribute editor keeps key, UNIQUE checkbox and delete action
   usable in the narrow inspector at desktop and mobile widths. */
.erd-attribute-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.16fr) 66px;grid-template-rows:auto auto;gap:5px 6px;align-items:center;padding:4px 0 8px;border-bottom:1px solid #edf0f3}
.erd-attribute-row input,.erd-attribute-row select{font-size:11px;min-width:0;width:100%;min-height:33px;padding:5px}
.erd-attribute-row button{min-width:0!important;min-height:33px;padding:2px 5px;margin:0!important}
.erd-layout .toolbox h4{margin:16px 0 4px}
@media(max-width:1000px){.erd-layout{grid-template-columns:315px minmax(0,1fr)}}
@media(max-width:700px){.erd-layout{grid-template-columns:1fr}}

/* V6.3: the task toolbar remains visible while closed, but no editor or question. */
.closed-task-notice{background:#f6f7f8;border:1px solid var(--border);border-top:0;padding:30px 24px;color:#52606b;font-size:14px;min-height:115px}

/* Positive draft-save acknowledgement (errors retain .alert). */
.alert-success{padding:12px;margin-top:12px;border:1px solid #b8d7c5;background:#eef8f1;color:#215c3e;border-radius:7px}
/* Snap! working-copy integrity and read-only recovery listing. */
#snap-integrity-warning{margin:.65rem 0;padding:.65rem 1rem}
#snap-recovery-list{margin:.65rem 0;padding:1rem;max-height:20rem;overflow:auto}
.snap-recovery-row{display:flex;gap:.8rem;align-items:center;justify-content:space-between;padding:.55rem 0;border-bottom:1px solid var(--border,#ddd)}
.snap-recovery-row button{white-space:nowrap}

/* V7.1 ERD key controls: checkbox/delete occupy a separate grid row. */
.erd-attribute-row>.erd-unique-label{grid-column:1 / 3;grid-row:2;display:inline-flex;align-items:center;gap:7px;justify-self:start;min-height:32px;margin:0;white-space:normal;font-size:.76rem;font-weight:600;cursor:pointer}
.erd-attribute-row .erd-unique-label input[type=checkbox]{width:17px;min-width:17px;height:17px;min-height:17px;padding:0;margin:0;accent-color:#e45a1b;cursor:pointer}
.erd-attribute-row>button{grid-column:3;grid-row:2;justify-self:end;width:38px;min-width:38px!important}

/* V7 Sprint 4: compact read-only review rows */
.review-evidence{margin-top:12px;max-height:530px;overflow:auto}.review-entry{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:8px 0;border-bottom:1px solid #dce2e8;font-size:.9rem}.review-entry span{overflow-wrap:anywhere}.review-entry button{flex-shrink:0}.review-evidence h3{margin:18px 0 6px}
