/* IGCSE360 ICT practicals — non-Office application fidelity layer
   Visual/interface enhancement only. Existing assessed controls and marking logic stay authoritative. */
:root{--nio-line:#d6dbe3;--nio-soft:#f5f7fa;--nio-ink:#253044;--nio-muted:#667085;--nio-blue:#0f6cbd}
.nio-toast{position:fixed;right:18px;bottom:62px;z-index:10000;max-width:360px;padding:10px 13px;border-radius:9px;background:#182230;color:#fff;box-shadow:0 10px 35px #0004;font:600 12px/1.45 "Segoe UI",system-ui,sans-serif;opacity:0;transform:translateY(8px);pointer-events:none;transition:.18s}.nio-toast.show{opacity:1;transform:none}
.nio-passive{cursor:pointer!important}.nio-passive:hover{filter:brightness(.97)}

/* ---------------- File Explorer ---------------- */
.nio-explorer-bar,.explorer-commandbar,.explorer-toolbar,.explorer-command,.command-row{box-shadow:inset 0 -1px 0 rgba(0,0,0,.04)}
.nio-explorer-tools{display:flex;align-items:center;gap:3px;margin-left:auto;flex:0 0 auto}
.nio-explorer-tools button{height:28px!important;min-width:30px!important;width:auto!important;border:0!important;background:transparent!important;border-radius:5px!important;padding:0 7px!important;color:#3b4658!important;font-size:12px!important}
.nio-explorer-tools button:hover{background:#e9eef5!important}
.nio-search-box{height:28px;min-width:108px;max-width:160px;border:1px solid #c9d1dc;border-radius:5px;background:#fff;color:#7a8493;display:flex;align-items:center;gap:6px;padding:0 8px;font-size:10px;white-space:nowrap;overflow:hidden}
.file-nav,.explorer-nav,.tree{background:linear-gradient(180deg,#fafbfd,#f5f7fa)}
.file-nav b,.file-nav strong,.explorer-nav strong{font-size:10px;text-transform:uppercase;letter-spacing:.055em;color:#7a8493}
.file-main,.files-pane,.explorer-list,.content-panel{background:#fff}
.file-headline{border-bottom:1px solid #edf0f4;margin-bottom:2px;padding-bottom:8px!important}
.file-row,.mini-file,.explorer-file{transition:background .1s,border-color .1s}
.file-row:hover,.mini-file:hover,.explorer-file:hover{background:#f1f6fc!important}
.file-row.selected,.mini-file.selected,.explorer-file.selected{background:#e5f1fb!important;box-shadow:inset 3px 0 0 #0f6cbd}
.file-preview{background:linear-gradient(180deg,#fbfcfe,#f5f7fa)!important;border-left:1px solid #dbe1e9!important}
.file-preview h3,.file-preview h4{font-size:12px;margin-top:0}
.file-preview p{font-size:10px;line-height:1.5;color:#667085}
.explorer-path,.address-bar,.explorer-address,.address{box-shadow:inset 0 1px 2px rgba(15,23,42,.03)}
body.ict-practical-chapter11 .action-row{background:linear-gradient(#fff,#f9fafb)}
body.ict-practical-chapter11 .action-row button{border-radius:5px;padding:6px 8px}
body.ict-practical-chapter11 .file-table thead{position:sticky;top:0;z-index:2;background:#f8fafc}
body.ict-practical-chapter11 .file-table th{font-weight:600;color:#475467}

/* ---------------- Browser ---------------- */
.browser-toolbar.nio-browser-toolbar{background:linear-gradient(#fbfcfd,#f3f6f9)!important;border-bottom:1px solid #d7dde5!important;gap:4px!important;padding:5px 7px!important}
.browser-toolbar.nio-browser-toolbar>button{height:29px;border:0!important;border-radius:6px!important;background:transparent!important;color:#364152;font-size:11px;display:grid;place-items:center;padding:0 8px!important;white-space:nowrap}.browser-toolbar.nio-browser-toolbar>#browserBack,.browser-toolbar.nio-browser-toolbar>#browserForward,.browser-toolbar.nio-browser-toolbar>#refreshBtn,.browser-toolbar.nio-browser-toolbar>#p3BrowserBack,.browser-toolbar.nio-browser-toolbar>#p3BrowserForward,.browser-toolbar.nio-browser-toolbar>button[data-wcmd="refresh"],.browser-toolbar.nio-browser-toolbar>.nio-browser-extra{width:30px!important;padding:0!important;font-size:13px}
.browser-toolbar.nio-browser-toolbar>button:hover:not(:disabled){background:#e6ebf1!important}
.browser-toolbar.nio-browser-toolbar .address-bar{height:30px;display:flex;align-items:center;min-width:0;border-radius:15px!important;border:1px solid #d3dae4!important;background:#fff!important;padding-left:28px!important;position:relative;color:#4b5565!important;font-size:10px!important}
.browser-toolbar.nio-browser-toolbar .address-bar:before{content:"▤";position:absolute;left:9px;top:50%;transform:translateY(-50%);font-size:9px;filter:grayscale(1)}
.nio-browser-extra{font-weight:600}
.browser-frame{background:#fff}
.browser-status,.web-status{background:#fafbfc!important;border-top:1px solid #e1e5eb!important;color:#667085!important}
.browser-window .win-title,.web-pane.nio-browser-pane .pane-title{background:linear-gradient(180deg,#eef3f8,#e8edf3)!important}

/* ---------------- Notepad / text editor ---------------- */
.notepad-menu.nio-notepad-menu{height:31px!important;display:flex!important;align-items:center!important;gap:0!important;padding:0 6px!important;background:#fff!important;border-bottom:1px solid #e3e6eb!important;color:#202124!important;font:400 11px "Segoe UI",system-ui,sans-serif!important}
.notepad-menu.nio-notepad-menu button{border:0!important;background:transparent!important;border-radius:4px!important;padding:5px 8px!important;color:#2d3644!important;font:inherit!important}
.notepad-menu.nio-notepad-menu button:hover:not(:disabled){background:#edf2f7!important}
.notepad-menu.nio-notepad-menu button:disabled{opacity:.55}
.code-wrap,.code-editor,.notepad-text{background:#fff!important}
.code-wrap textarea,.code-editor{font-family:Consolas,"Cascadia Mono","Courier New",monospace!important;line-height:1.48!important;tab-size:4}
.line-numbers{background:#f7f8fa!important;color:#9aa3af!important;border-right:1px solid #edf0f3!important}
.statusline,.notepad-status{min-height:24px!important;background:#fafafa!important;border-top:1px solid #e6e8ec!important;color:#657080!important;font-size:9px!important;display:flex;align-items:center;justify-content:space-between;padding:0 8px!important}
.nio-notepad-status{height:24px;background:#fafafa;border-top:1px solid #e6e8ec;display:flex;justify-content:flex-end;align-items:center;gap:18px;padding:0 9px;color:#667085;font-size:9px}
.nio-notepad-status span+span{border-left:1px solid #d9dde3;padding-left:12px}
body.ict-practical-chapter18 .notepad-shell{height:100%;display:flex;flex-direction:column;background:#fff}
body.ict-practical-chapter18 .notepad-text{flex:1;padding:14px 16px!important;white-space:pre-wrap;font:13px/1.55 Consolas,"Cascadia Mono",monospace;color:#1f2937;overflow:auto}

/* ---------------- GIMP / graphics editor ---------------- */
.nio-gimp-menubar{height:31px;background:#242424;color:#e8e8e8;display:flex;align-items:center;padding:0 7px;border-bottom:1px solid #111;font:400 10px "Segoe UI",system-ui,sans-serif;overflow-x:auto}
.nio-gimp-menubar button{border:0;background:transparent;color:inherit;padding:5px 7px;border-radius:3px;white-space:nowrap}
.nio-gimp-menubar button:hover{background:#3b3b3b}
.nio-gimp-toolbar{height:38px;background:#303030;color:#eee;display:flex;align-items:center;gap:4px;padding:4px 8px;border-bottom:1px solid #181818}
.nio-gimp-toolbar button{width:29px;height:28px;border:1px solid #454545;background:#383838;color:#eee;border-radius:4px;padding:0;display:grid;place-items:center}
.nio-gimp-toolbar button:hover{background:#484848}
.nio-gimp-spacer{height:22px;border-left:1px solid #555;margin:0 3px}
.nio-gimp-swatches{position:relative;width:42px;height:30px;margin-left:4px}.nio-gimp-swatches i{position:absolute;width:21px;height:21px;border:2px solid #ddd;box-shadow:0 0 0 1px #111}.nio-gimp-swatches i:first-child{left:2px;top:1px;background:#111;z-index:2}.nio-gimp-swatches i:last-child{right:2px;bottom:1px;background:#fff}
.gimp-menu{min-height:31px!important;height:auto!important}.gimp-menu button{white-space:nowrap}
.gimp-main,.graphics-shell{font-family:"Segoe UI",system-ui,sans-serif}
.graphics-shell.nio-graphics-shell,.gimp-shell.nio-graphics-shell{background:#333!important;color:#eee!important}
.graphics-shell.nio-graphics-shell .graphics-tools,.gimp-shell.nio-graphics-shell .gimp-fields{background:#2b2b2b!important;color:#eee!important;border-color:#171717!important}
.graphics-shell.nio-graphics-shell label,.gimp-shell.nio-graphics-shell label{color:#ddd!important}
.graphics-shell.nio-graphics-shell input,.graphics-shell.nio-graphics-shell select,.gimp-shell.nio-graphics-shell input,.gimp-shell.nio-graphics-shell select{background:#3b3b3b!important;color:#fff!important;border:1px solid #5c5c5c!important;border-radius:4px!important}
.graphics-shell.nio-graphics-shell .graphics-canvas,.gimp-shell.nio-graphics-shell .gimp-canvas{background-color:#505050!important;background-image:linear-gradient(45deg,#5c5c5c 25%,transparent 25%),linear-gradient(-45deg,#5c5c5c 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#5c5c5c 75%),linear-gradient(-45deg,transparent 75%,#5c5c5c 75%)!important;background-size:20px 20px!important;background-position:0 0,0 10px,10px -10px,-10px 0!important}
.graphic-image,.fake-image{box-shadow:0 0 0 1px #111,0 8px 28px #0007!important}
.nio-gimp-status{height:25px;background:#222;color:#c9c9c9;border-top:1px solid #111;display:flex;align-items:center;justify-content:space-between;padding:0 9px;font-size:9px}

/* ---------------- PDF viewer ---------------- */
.nio-pdf-menu{height:30px;background:#fff;border-bottom:1px solid #d7dde5;display:flex;align-items:center;padding:0 7px;gap:1px;color:#394456;font-size:10px}
.nio-pdf-menu button{border:0;background:transparent;padding:5px 8px;border-radius:4px;color:inherit}
.nio-pdf-menu button:hover{background:#eef2f6}
.pdf-scroll.nio-pdf-scroll{display:grid!important;grid-template-columns:105px minmax(0,1fr)!important;gap:20px!important;padding:18px!important;align-items:start}
.nio-pdf-thumbs{position:sticky;top:0;align-self:start;display:flex;flex-direction:column;gap:8px;background:#48525d;border-radius:6px;padding:8px;max-height:100%;overflow:auto}
.nio-pdf-thumb{border:2px solid transparent;background:transparent;padding:0;color:#fff;font-size:9px;border-radius:4px;text-align:center}
.nio-pdf-thumb:hover{border-color:#a9c6e6}.nio-pdf-thumb.active{border-color:#5aa7e8}
.nio-pdf-thumb-page{width:70px;height:92px;background:#fff;color:#263140;display:grid;place-items:center;box-shadow:0 2px 7px #0005;margin:0 auto 4px;border-radius:1px;font-weight:700}
.pdf-scroll.nio-pdf-scroll .pdf-sheet{grid-column:2;margin:0 auto}

/* ---------------- Snipping Tool ---------------- */
.snip-panel.nio-snip-panel{padding:0!important;overflow:hidden;background:#fff!important;border-radius:10px!important}
.nio-snip-title{height:38px;display:flex;align-items:center;justify-content:space-between;padding:0 10px;background:#fafbfc;border-bottom:1px solid #dfe3e8;font-size:11px;font-weight:650;color:#344054}
.nio-snip-toolbar{display:flex;align-items:center;gap:5px;padding:8px;border-bottom:1px solid #e5e8ed;background:#fff}
.nio-snip-toolbar button{height:30px;border:1px solid #d5dbe3;border-radius:6px;background:#fff;padding:0 9px;font-size:10px;color:#344054}
.nio-snip-toolbar button:first-child{background:#0f6cbd;color:#fff;border-color:#0f6cbd}
.snip-panel.nio-snip-panel>p,.snip-panel.nio-snip-panel>.primary{margin-left:12px;margin-right:12px}.snip-panel.nio-snip-panel>.primary{margin-bottom:12px}

/* ---------------- Mail compose ---------------- */
.mail-shell.nio-mail-shell{border:1px solid #d8dee7;border-radius:8px;overflow:hidden;background:#fff}.mail-shell.nio-mail-shell .mail-title{padding:10px 12px!important;background:#f5f7fa!important;border-bottom:1px solid #dfe3e8;font-weight:650}.nio-mail-toolbar{display:flex;gap:5px;padding:8px;border-bottom:1px solid #e4e8ed}.nio-mail-toolbar button{height:30px;border:1px solid #d4dae2;border-radius:6px;background:#fff;padding:0 9px;font-size:10px}.nio-mail-toolbar button:first-child{background:#0f6cbd;color:#fff;border-color:#0f6cbd}.mail-row{border-bottom:1px solid #edf0f3;padding:8px 10px!important}.mail-body{min-height:120px!important;padding:12px!important;background:#fff!important}
.nio-mail-compose{border:1px solid #d8dee7;border-radius:8px;overflow:hidden;background:#fff}.nio-mail-compose .nio-mail-fields{padding:0 10px}.nio-mail-compose .mini-note{border-bottom:1px solid #edf0f3;margin:0!important;padding:8px 2px!important;background:#fff!important}

@media(max-width:760px){.nio-search-box{display:none}.nio-explorer-tools button:nth-child(-n+2){display:none}.pdf-scroll.nio-pdf-scroll{display:block!important}.nio-pdf-thumbs{display:none}.nio-gimp-toolbar{overflow-x:auto}.nio-gimp-menubar{font-size:9px}}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.browser-toolbar.nio-browser-toolbar{display:flex!important;grid-template-columns:none!important}.browser-toolbar.nio-browser-toolbar .address-bar{flex:1!important}
.graphics-shell.nio-graphics-shell{height:calc(100% - 69px)!important}


/* Snipping Tool reliability + native functional chrome */
.snip-native-title{height:38px;display:flex;align-items:center;justify-content:space-between;padding:0 8px 0 10px;background:#fafbfc;border-bottom:1px solid #dfe3e8;font-size:11px;font-weight:650;color:#344054}
.snip-native-title button{width:30px;height:28px;border:0;border-radius:5px;background:transparent;color:#475467;font-size:16px;line-height:1}.snip-native-title button:hover{background:#e81123;color:#fff}
.snip-native-toolbar{display:flex;align-items:center;gap:8px;padding:8px;background:#fff;border-bottom:1px solid #e5e8ed;flex-wrap:wrap}.snip-native-toolbar button,.snip-native-toolbar select{height:30px;border:1px solid #d5dbe3;border-radius:6px;background:#fff;padding:0 8px;font:10px "Segoe UI",system-ui,sans-serif;color:#344054}.snip-native-toolbar .snip-new{background:#0f6cbd;color:#fff;border-color:#0f6cbd}.snip-native-toolbar label{display:flex;align-items:center;gap:4px;font-size:9px;color:#667085}.snip-native-body{padding:12px}.snip-native-body>p{margin:0 0 10px;color:#475467;font-size:10px;line-height:1.45}.snip-preview{height:108px;border:1px solid #d7dde5;border-radius:7px;background:#f3f5f7;display:grid;place-items:center;overflow:hidden;margin-bottom:8px}.snip-preview-empty{color:#98a2b3;font-size:10px}.snip-preview-window{width:86%;height:76%;border:1px solid #9aa6b2;background:#fff;box-shadow:0 3px 10px #0002}.snip-preview-title{height:22px;background:#eef2f6;border-bottom:1px solid #d7dde5;padding:4px 7px;font-size:8px;color:#344054}.snip-preview-body{height:calc(100% - 22px);display:grid;place-items:center;font-size:9px;color:#667085}.snip-status{min-height:20px;margin-bottom:8px;font-size:9px;color:#667085}.snip-native-body .primary{width:100%;margin:0!important}.nio-snip-mode-label{height:30px;display:flex;align-items:center;padding:0 8px;border:1px solid #d5dbe3;border-radius:6px;color:#475467;font-size:10px}.nio-snip-close{font-size:16px!important}

/* Mail compose reliability + editable fields */
.mail-shell.nio-mail-shell{font-family:"Segoe UI",system-ui,sans-serif}.mail-shell.nio-mail-shell .mail-title{display:flex;align-items:center;min-height:36px;color:#344054}.nio-mail-toolbar button:disabled{opacity:.45;cursor:not-allowed}.nio-mail-toolbar .nio-mail-sendbar{background:#0f6cbd!important;color:#fff!important;border-color:#0f6cbd!important;font-weight:650}.mail-field-row{display:grid!important;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:8px}.mail-field-row label{font-size:10px;color:#667085;font-weight:600}.mail-field-row input{width:100%;min-width:0;border:0!important;outline:0!important;background:transparent!important;padding:4px 2px!important;font:11px "Segoe UI",system-ui,sans-serif;color:#1f2937}.mail-field-row input:focus{box-shadow:inset 0 -2px #0f6cbd}.mail-body[contenteditable="true"]{outline:0;white-space:pre-wrap;overflow:auto;font:11px/1.5 "Segoe UI",system-ui,sans-serif;color:#1f2937}.mail-body[contenteditable="true"]:focus{box-shadow:inset 0 0 0 2px #cfe5f8}.mail-body:empty:before{content:"Type a message";color:#98a2b3}.mail-compose-status{min-height:27px;padding:6px 10px;border-top:1px solid #edf0f3;background:#fafbfc;color:#667085;font-size:9px}.dialog-actions .nio-mail-send{background:#0f6cbd!important;border-color:#0f6cbd!important;color:#fff!important}.dialog-actions .nio-mail-discard{color:#475467!important}
@media(max-width:560px){.snip-panel{left:12px!important;right:12px!important;width:auto!important}.snip-native-toolbar{gap:5px}.mail-field-row{grid-template-columns:44px minmax(0,1fr)}}

.dialog-actions .nio-mail-footer-hidden{display:none!important}
