/* A personal desktop: cobalt, brushed silver, generous type, familiar controls. */
:root {
  --face: #e4e8ed;
  --blue: #153da6;
  --desktop: #102e76;
  --ui: 'Segoe UI', Arial, sans-serif;
  --bar: 48px;
  --ink: #1c2b42;
  --muted: #52627a;
  --line: #cbd4e0;
  --accent: #1648bb;
}
body { font-size: 14px; color: var(--ink); }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { border-radius: 4px; padding: 7px 12px; border: 1px solid #acb9cc; border-top-color: #fff; background: linear-gradient(#fcfdff, #e0e6ee); box-shadow: 0 1px 2px #162b4514; }
button:active { padding: 7px 12px; border-color: #91a2bd; box-shadow: inset 0 1px 3px #152b4520; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid #1b55d9; outline-offset: 2px; }
button:disabled { color: #657187; text-shadow: none; }
input, select, textarea { border: 1px solid #a6b5ca; border-radius: 4px; box-shadow: inset 0 1px 3px #1c2b420a; }
a { color: #1645a8; }

/* Wallpaper remains decorative; every interaction belongs to the desktop. */
#desktop { isolation: isolate; background: radial-gradient(ellipse at 84% 90%, #487dac 0, transparent 58%), linear-gradient(125deg, #091c45, #183d86 60%, #284d8d); }
#desktop[data-wallpaper=teal] { --desktop: #102e76; }
#desktop[data-wallpaper=blue] { --desktop: #1648a8; }
#desktop[data-wallpaper=night] { --desktop: #0a1833; }
#desktop::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(180deg, #001c4c05, #03133112), url('assets/desktop-atmosphere.webp'); background-position: center; background-size: cover; pointer-events: none; }
#desktop[data-wallpaper=blue]::before { filter: saturate(1.3) brightness(1.12); }
#desktop[data-wallpaper=night]::before { filter: saturate(.55) brightness(.5); }
.wallpaper { inset: 0; display: block; font: inherit; color: #fff; letter-spacing: normal; }
.desktop-signature { position: absolute; left: 200px; top: 27px; display: flex; gap: 13px; align-items: center; font-size: 27px; font-weight: 650; letter-spacing: -1.4px; }
.signature-monogram { font: italic 35px/1 Georgia, serif; letter-spacing: -3px; padding: 2px 10px 6px 8px; border: 1px solid #c6e0ff5c; border-radius: 10px; box-shadow: inset 0 1px 0 #ffffff25; }
.desktop-signature>div>span { display: block; font: 10px/1.6 Consolas, monospace; letter-spacing: 2.4px; color: #c2d3ed; margin-top: 2px; }
.desktop-edition { position: absolute; top: 35px; right: 28px; text-align: right; font: 11px/1.7 Consolas, monospace; letter-spacing: 1.4px; color: #cfdef4; }
.desktop-edition>span { display: block; margin-top: 4px; font: 14px/1.5 var(--ui); letter-spacing: 0; color: white; }
.wallpaper-wordmark { position: absolute; right: 33px; bottom: 28px; font: 650 clamp(70px, 11vw, 174px)/1 var(--ui); letter-spacing: -.085em; color: #c5dafa; opacity: .27; }
.wallpaper-wordmark>span { font-weight: 300; color: white; }
.wallpaper .wallpaper-caption { position: absolute; left: 201px; bottom: 37px; color: #e4edff; font: 12px/1.6 Consolas, monospace; letter-spacing: .15px; }
#desktop-hint { right: 28px; bottom: 13px; font-size: 12px; color: #edf4ff; text-shadow: 0 1px 5px #001438; }
.desktop-icon { border-radius: 6px; transition: background .16s, box-shadow .16s; }
.desktop-icon:hover { background: #e7f2ff14; box-shadow: inset 0 0 0 1px #d7ebff25; }
.desktop-icon svg { filter: drop-shadow(0 3px 3px #03194066); transition: transform .18s; }
.desktop-icon:hover svg { transform: translateY(-3px); }
.desktop-icon>span { font-size: 12px; line-height: 1.25; max-width: 84px; text-shadow: 0 1px 3px #031634, 0 0 8px #031634; }
.desktop-icon[aria-selected=true] { background: #c6e0ff25; box-shadow: inset 0 0 0 1px #d7ebff66; }
.desktop-icon[aria-selected=true]>span, .desktop-icon:focus-visible>span { background: #163b82; outline: 1px solid #8bb8ff; border-radius: 3px; }
.desktop-icon[aria-selected=true] svg { filter: drop-shadow(0 3px 3px #03194066); }
#snap-preview { border: 1px solid #aecfff; background: #9bc7ff2b; border-radius: 8px; backdrop-filter: blur(5px); }

/* Brushed frames and precise blue title bars preserve the OS vocabulary. */
.app-window { padding: 5px; border: 1px solid #ced8e7; border-radius: 9px; background: linear-gradient(120deg, #edf1f6, #d9e1eb); grid-template-rows: 36px 31px minmax(0, 1fr) 26px; box-shadow: 0 15px 50px #00123440, 0 3px 9px #00123433, inset 0 1px #fff; }
.app-window.active { border-color: #afc5ec; box-shadow: 0 24px 65px #00103966, 0 4px 14px #00123440, inset 0 1px #fff; }
.window-titlebar { height: 33px; border-radius: 4px 4px 2px 2px; gap: 9px; padding: 3px 5px 3px 8px; background: linear-gradient(100deg, #697c97, #7d91af); }
.active .window-titlebar { background: linear-gradient(105deg, #113b9a, #245bc5 80%, #3f72d1); box-shadow: inset 0 1px 0 #b6d1ff60; }
.window-titlebar>span { font-size: 14px; font-weight: 600; letter-spacing: .05px; text-shadow: 0 1px 2px #12326555; }
.window-controls { gap: 4px; }
.window-controls button { width: 26px; height: 25px; font-size: 20px; border-radius: 3px; background: linear-gradient(#fafcff, #cfdbed); box-shadow: inset 0 1px #fff; border: 1px solid #bed0eb; }
.window-controls button[data-control=close] { background: linear-gradient(#fff3ec, #ebc1b8); border-color: #f2d4c8; }
.window-controls button:hover { background: white; }
.window-controls button[data-control=close]:hover { background: #b73434; color: white; border-color: #d44848; }
.app-menubar { height: 31px; gap: 2px; }
.app-menubar button { height: 27px; padding: 4px 11px; font-size: 13px; border-radius: 3px; }
.app-menubar button:hover, .app-menubar button[aria-expanded=true] { background: #fff9; border: 1px solid #b8c6db; }
.window-body { border: 1px solid #b6c4d8; border-radius: 3px; background: #fff; scrollbar-width: thin; scrollbar-color: #a5b7d0 #eff3f8; }
.window-status { height: 23px; margin-top: 3px; padding: 3px 7px; border: 0; border-top: 1px solid #becadc; font-size: 12px; color: #465870; }
.resize-grip { color: #7c8eaa; }
.maximized { border-radius: 0; }
.window-body::-webkit-scrollbar { width: 10px; height: 10px; }
.window-body::-webkit-scrollbar-track { background: #eff3f8; }
.window-body::-webkit-scrollbar-thumb { background: #a5b7d0; border: 2px solid #eff3f8; border-radius: 8px; }

/* Existing project data and media are presented at a more readable scale. */
.explorer-toolbar { height: 43px; padding: 6px; gap: 6px; background: #eef2f8; border-color: #c4d0e0; }
.explorer-toolbar>button { height: 29px; min-width: 30px; border-radius: 4px; }
.address-bar { height: 29px; border: 1px solid #c4d0e0; border-radius: 4px; gap: 8px; padding: 3px 9px; }
.address-bar button { font-size: 13px; color: #314966; }
.explorer { height: calc(100% - 43px); grid-template-columns: 128px minmax(0, 1fr) 210px; }
.explorer-sidebar { padding: 20px 7px; gap: 4px; background: #f0f4fa; border-color: #dae2ed; }
.explorer-owner { border-color: #d3deed; padding: 0 10px 19px; margin-bottom: 9px; }
.explorer-owner strong { font-size: 20px; letter-spacing: -.8px; }
.explorer-owner span { font-size: 12px; line-height: 1.5; color: #52627a; }
.explorer-sidebar button { padding: 9px 8px; font-size: 13px; border-radius: 4px; }
.explorer-sidebar button:hover { background: #e0e8f6; }
.explorer-sidebar [aria-current=page] { color: #143b8f; background: #dde7fa; box-shadow: inset 3px 0 #2350b0; }
.explorer-main { padding: 23px 19px; background: #fff; }
.folder-intro { margin-bottom: 13px; padding-bottom: 15px; border-color: #e0e6ee; }
.folder-intro>span { font: 11px/1.5 Consolas, monospace; letter-spacing: 1px; color: #516580; }
.folder-intro p { margin-top: 10px; font-size: 29px; font-weight: 550; letter-spacing: -1.3px; line-height: 1.17; color: #172e52; }
.folder-heading { margin-bottom: 12px; }
.folder-heading b { font-size: 14px; }
.folder-heading span { font-size: 12px; color: #53637c; }
.icon-view { gap: 12px; }
.icon-view .file-item { min-height: 191px; padding: 9px; gap: 6px; background: #f8fafd; border: 1px solid #dce3ee; border-radius: 7px; transition: border-color .18s, box-shadow .18s, background .18s; }
.icon-view .file-item:active { padding: 9px; }
.icon-view .file-item:hover { border-color: #8ca8d2; box-shadow: 0 4px 12px #173d7514; background: #f0f5ff; }
.file-item .file-thumbnail { height: 96px; padding: 6px; border: 1px solid #dce3ec; border-radius: 4px; overflow: hidden; }
.file-thumbnail img { transition: transform .3s; }
.file-item:hover .file-thumbnail img { transform: scale(1.035); }
.icon-view .file-item>span:not(.file-thumbnail) { font-size: 14px; font-weight: 600; letter-spacing: -.25px; }
.icon-view .file-item>small { font-size: 12px; line-height: 1.4; color: #53627a; }
.file-item em { font-size: 12px; line-height: 1.4; color: #465a78; }
.icon-view .file-item[aria-selected=true] { border: 1px solid #93afe0; background: #eaf1ff; box-shadow: 0 0 0 1px #c8d8f3; }
.file-item[aria-selected=true]>span:not(.file-thumbnail) { background: transparent; color: #153d90; }
.file-item:focus-visible { outline: 2px solid #1b55d9; outline-offset: 2px; }
.details-view .file-item { border-color: #dce3ee; min-height: 53px; border-radius: 3px; }
.details-view .file-item .file-thumbnail { width: 42px; height: 35px; padding: 3px; flex-shrink: 0; }
.details-view .file-item>span:not(.file-thumbnail) { font-size: 14px; }
.details-view .file-item>small { font-size: 12px; }
#file-preview { padding: 24px 16px; background: #f4f7fc; border-color: #dce3ee; }
#file-preview>img { height: 124px; border-radius: 5px; padding: 7px; border-color: #dce3ee; background: #eaf0f8; margin-bottom: 20px; }
#file-preview h2 { font-size: 22px; font-weight: 550; letter-spacing: -.7px; }
#file-preview>p, #file-preview dl { font-size: 13px; line-height: 1.65; color: #4b5e79; }
#file-preview dl { margin-bottom: 20px; }
#file-preview dd { color: #4b5e79; margin-bottom: 12px; }
.preview-summary { font-size: 14px!important; line-height: 1.65!important; }
.preview-stage { background: #e5edfa; border-color: #6a8fca; color: #344e73!important; font: 12px/1.6 Consolas, monospace!important; }
#file-preview button { font-size: 13px; min-height: 35px; padding: 8px; }
.preview-actions button:first-child { color: white; border-color: #214cb0; background: linear-gradient(#2f60c6, #204aa5); box-shadow: inset 0 1px #ffffff30, 0 2px 5px #17419426; }
.notepad { font: 14px/1.85 Consolas, 'Courier New', monospace; padding: 21px; color: #31425f; background: linear-gradient(90deg, #eef3fb 0, #eef3fb 1px, transparent 1px) 12px 0 / 100% 100% no-repeat, #fdfdff; }
.document { padding: 30px 34px; font-size: 16px; line-height: 1.75; color: var(--ink); }
.document p { color: #485871; }
.document h1 { font-size: 32px; letter-spacing: -1px; color: #1b3153; }
.document h2 { font-size: 24px; letter-spacing: -.65px; }
.document h3 { font-size: 18px; }
.eyebrow { font: 12px/1.6 Consolas, monospace; letter-spacing: 1px; color: #52627a; }
.lead, .dialog-lead { font-size: 18px; color: #304565!important; }
.document button, .overview-actions a { font-size: 14px; }
.document .small-note, .caption { font-size: 12px!important; color: #53627a!important; }
.case-columns p, .about-points p { font-size: 15px; }
.case-facts, .project-status, .project-identity .eyebrow { font-size: 12px; }
.case-callout { font-size: 15px; border-radius: 0 5px 5px 0; }
.project-heading { border-radius: 0 5px 5px 0; }
.project-pages { padding: 10px 10px 0; background: #eef2f8; border-color: #bfcddd; }
.project-pages button { font-size: 14px; padding: 7px 15px; }
.project-pages button:active { padding: 7px 15px; }
.screenshot-open { border-radius: 5px; }
.screenshot-open>span, .image-caption, .image-toolbar>span, .image-toolbar button, .image-case-link { font-size: 12px; }
.overview-projects button { padding: 18px 10px; }
.overview-projects button span { font-size: 14px; }
.overview-projects button span:first-of-type { font-size: 12px; }
.overview-projects button i { color: #244f9e; }
.settings { background: #f4f7fc; height: auto; min-height: 100%; }
.settings h1 { font-size: 26px; }
.settings legend, .settings label, .settings select { font-size: 14px; }
.settings fieldset { border-color: #bdcbe0; border-radius: 5px; box-shadow: none; }
.wallpaper-options button { font-size: 12px; gap: 9px; border-color: #bdcbe0; }
.wallpaper-options button[aria-pressed=true] { outline: 2px solid #315bb0; outline-offset: -2px; background: #e4edff; }
.swatch { width: 68px; height: 42px; border-radius: 3px; border: 1px solid #1c3b7866; }
.swatch.teal { background: linear-gradient(130deg, #0b1f49, #3366ae 65%, #c6e4f9); }
.swatch.blue { background: linear-gradient(130deg, #1539a2, #4b89ec); }
.swatch.night { background: linear-gradient(130deg, #091328, #203c62); }
.settings-actions button, .field-label, .search-app>label { font-size: 14px; }
.help-list { font-size: 14px; }
.university-item { border-radius: 6px; border-color: #cfdaea; }
.university-item small, #search-results small { font-size: 12px; }
.pipeline li, .pipeline li p, .lab-result p, .lab-controls>span { font-size: 13px; }

/* A translucent, anchored taskbar; a distinct Start menu, not a web navbar. */
.taskbar { height: var(--bar); padding: 5px 8px; gap: 6px; border-top: 1px solid #fff; background: linear-gradient(#f6f8fceF, #dce5f1ef); box-shadow: 0 -3px 24px #04183c25; backdrop-filter: blur(18px); }
.taskbar button { height: 35px; border-radius: 4px; }
.taskbar button:active { padding: 3px 8px; }
#start-button { min-width: 91px; padding: 4px 12px; font-size: 14px; gap: 9px; color: #fff; background: linear-gradient(#2a59b8, #163f91); border: 1px solid #17438c; box-shadow: inset 0 1px #ffffff45, 0 1px 3px #0c2c6540; }
#start-button:hover, #start-button[aria-expanded=true] { background: #1747a5; }
.start-symbol { rotate: 0deg; gap: 2px; }
.start-symbol i { border: 0; border-radius: 1px; box-shadow: inset 0 1px #fff5; }
.taskbar-tool { color: #405c89; }
.taskbar-divider { height: 25px; border-left-color: #a8b8cf; margin: 0 3px; }
.task-button { min-width: 95px; max-width: 175px; width: 175px; font-size: 13px; border: 1px solid transparent; background: #f9fbff80; box-shadow: none; gap: 8px; }
.task-button.active { color: #123783; background: #fff; border: 1px solid #aabfdf; box-shadow: inset 0 -2px #2352aa; font-weight: 600; }
#clock { min-width: 87px; font-size: 13px; border: 0; background: transparent; color: #304a72; }
#clock small { font-size: 10px; }
#show-desktop { height: 35px!important; width: 27px; background: #cad7eb80; border: 1px solid #aebfda; border-radius: 3px; }
#start-menu { left: 8px; width: 338px; bottom: calc(var(--bar) + 7px); border: 1px solid #b9cbe5; border-radius: 8px; padding: 5px; grid-template-columns: 38px 1fr; background: #f2f6fceF; backdrop-filter: blur(22px); box-shadow: 0 12px 42px #00133866; }
.start-brand { border-radius: 3px; background: linear-gradient(#164bb6, #142d65); }
.start-body { padding: 10px 5px 0; }
.start-body>label { font-size: 12px; color: #52627a; }
.start-body input { height: 35px; font-size: 14px; margin-bottom: 10px; }
#start-apps>button { min-height: 43px; border-radius: 4px; font-size: 14px; }
#start-apps>button:hover, #start-apps>button:focus-visible { background: #1c4fae; }
.start-footer { border-color: #c0cde0; box-shadow: none; padding: 9px 5px 4px; }
.start-footer button { font-size: 12px; }
#context-menu { border: 1px solid #bdcbe0; border-radius: 6px; padding: 5px; background: #f6f9fe; box-shadow: 0 8px 24px #00153840; }
#context-menu>button { font-size: 14px; padding: 8px 20px; border-radius: 3px; }
#context-menu>button:hover, #context-menu>button:focus-visible { background: #1c4fae; }
.menu-separator { border-color: #cad6e5; border-bottom: 0; }
#toast { bottom: 64px; border: 1px solid #bed0eb; border-radius: 7px; background: #f5f9ff; font-size: 14px; box-shadow: 0 8px 24px #00153833; }

@keyframes window-appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes desktop-appear { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  body:not(.motion-off) .app-window { animation: window-appear .25s cubic-bezier(.2,.7,.2,1) both; }
  body:not(.motion-off) .wallpaper { animation: desktop-appear .6s ease-out both; }
}
body.motion-off *, body.motion-off *::before, body.motion-off *::after { animation: none!important; transition: none!important; }

@container app (max-width: 850px) {
  .explorer { grid-template-columns: 112px minmax(0,1fr) 196px; }
  .explorer-sidebar button { font-size: 12px; padding: 9px 5px; }
  .explorer-owner { padding-left: 5px; padding-right: 5px; }
  .explorer-main { padding: 21px 16px; }
  .folder-intro p { font-size: 27px; }
}
@container app (max-width: 720px) {
  .explorer { grid-template-columns: 112px minmax(0,1fr); }
  #file-preview { grid-column: 1/-1; border-left: 0; border-top: 1px solid #dce3ee; }
}
@container app (max-width: 680px) {
  .explorer { display: block; height: calc(100% - 43px); overflow: auto; }
  .explorer-sidebar { display: none; }
  .explorer-main { overflow: visible; padding: 23px 19px; }
  #file-preview { padding: 23px 20px; }
  #file-preview>img { height: 160px; }
  .preview-actions { flex-direction: row; }
}
@container app (max-width: 420px) {
  .icon-view { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .icon-view .file-item { min-height: 199px; padding: 8px; }
  .file-item .file-thumbnail { height: 96px; }
  .icon-view .file-item>span:not(.file-thumbnail) { font-size: 14px; }
  .icon-view .file-item>small, .file-item em { font-size: 12px; }
  .document { padding: 23px 19px; }
  .project-pages button { font-size: 12px; padding: 7px 9px; }
  .project-pages button:active { padding: 7px 9px; }
  .project-identity h1 { font-size: 25px; }
}
@container app (max-width: 330px) {
  .icon-view { grid-template-columns: minmax(0,1fr); }
  .file-item .file-thumbnail { height: 125px; }
  .icon-view .file-item { min-height: 200px; }
}
@media (max-width: 1199px) {
  .desktop-signature { left: 200px; }
  .wallpaper .wallpaper-caption { left: 201px; bottom: 34px; font-size: 11px; }
  .desktop-edition { font-size: 10px; }
}
@media (max-width: 640px) {
  .desktop-signature { left: auto; right: 22px; top: 24px; font-size: 23px; }
  .desktop-signature>div>span { font-size: 9px; letter-spacing: 1.2px; }
  .desktop-edition, .wallpaper .wallpaper-caption { display: none; }
  .wallpaper-wordmark { bottom: 57px; right: 22px; font-size: 81px; }
  #desktop-hint { right: 20px; font-size: 12px; max-width: 215px; line-height: 1.5; }
  .app-window { padding: 3px; border-radius: 0; grid-template-rows: 37px 31px minmax(0,1fr) 26px; animation: none!important; }
  .window-titlebar { height: 34px; }
  .window-controls button { width: 30px; height: 28px; }
  .window-titlebar>span { font-size: 14px; }
  .taskbar { padding: 5px; gap: 4px; }
  #start-button { min-width: 76px; padding: 4px 8px; font-size: 13px; gap: 7px; }
  #search-button { width: 30px; padding: 0; }
  .task-button { width: 38px!important; min-width: 38px; border-radius: 4px; }
  #clock { min-width: 68px; font-size: 12px; padding: 2px; }
  #clock small { font-size: 9px; }
  #show-desktop { width: 25px; }
  #start-menu { width: min(338px, calc(100vw - 10px)); left: 5px; }
  .folder-intro p { font-size: 30px; }
  .folder-intro>span { font-size: 11px; letter-spacing: .7px; }
  .document { font-size: 16px; }
  .document h1 { font-size: 29px; }
  .document h2 { font-size: 23px; }
  .project-heading .lead { font-size: 16px; }
  .notepad { font-size: 14px; padding: 20px; }
  .swatch { width: 54px; height: 35px; }
}
@media print { .wallpaper { display: none; } }
