/* A believable Windows 11-style desktop, drawn in HTML: wallpaper, a working app window and a taskbar.
   Used by the live demo on the home page (1920 × 1080 virtual screen, scaled to fit). */
.desk {
  --tb-h: 48px;
  position: relative; width: 1440px; height: 810px; overflow: hidden; background: #c7d6f2;
  font-family: "Segoe UI Variable Text", "Segoe UI", "Inter", system-ui, sans-serif; color: #1b1b1f;
  -webkit-font-smoothing: antialiased; user-select: none; text-align: left; line-height: normal;
}
/* original wallpaper: soft light ribbons */
.desk .wall { position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 10%, #dfe8ff 0%, rgba(223,232,255,0) 55%),
              radial-gradient(90% 80% at 10% 100%, #ffe6cf 0%, rgba(255,230,207,0) 55%),
              linear-gradient(160deg, #cfdcf7 0%, #b9c9f0 45%, #d7d0f3 100%); }
.desk .wall i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .85; }
.desk .wall i:nth-child(1) { width: 1300px; height: 520px; left: 560px; top: 300px; background: linear-gradient(90deg, #8fb0ff, #b79cff); transform: rotate(-18deg); opacity: .55; }
.desk .wall i:nth-child(2) { width: 900px; height: 360px; left: 900px; top: 520px; background: linear-gradient(90deg, #6f95ff, #9d7dff); transform: rotate(-24deg); opacity: .45; }
.desk .wall i:nth-child(3) { width: 760px; height: 300px; left: -120px; top: 760px; background: #ffd3ad; transform: rotate(12deg); opacity: .55; }
.desk .wall i:nth-child(4) { width: 520px; height: 520px; left: 1500px; top: -160px; background: #e9eeff; opacity: .9; }

/* app window */
.desk .win {
  position: absolute; border-radius: 9px; background: #fbfbfc; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.09), 0 32px 64px rgba(15, 25, 60, .28), 0 2px 21px rgba(15, 25, 60, .14);
}
.desk .caps { position: absolute; top: 0; right: 0; display: flex; height: 40px; }
.desk .caps span { width: 46px; display: grid; place-items: center; }
.desk .caps svg { width: 10px; height: 10px; stroke: #1b1b1f; stroke-width: 1; fill: none; }

/* browser */
.desk .win[data-scene] { display: none; left: 70px; top: 38px; width: 1030px; height: 690px; }
.desk[data-scene="everyday"] .win[data-scene="everyday"], .desk[data-scene="developer"] .win[data-scene="developer"],
.desk[data-scene="student"] .win[data-scene="student"], .desk[data-scene="writer"] .win[data-scene="writer"],
.desk[data-scene="manager"] .win[data-scene="manager"] { display: block; animation: winIn .35s cubic-bezier(.22,1,.36,1); }
@keyframes winIn { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.desk .browser { background: #f3f3f3; }
.desk .b-tabs { height: 40px; display: flex; align-items: flex-end; gap: 2px; padding-left: 8px; }
.desk .b-tab { height: 32px; width: 240px; white-space: nowrap; overflow: hidden; border-radius: 8px 8px 0 0; display: flex; align-items: center; gap: 9px; padding: 0 12px; font-size: 12.5px; color: #3a3a40; }
.desk .b-tab.on { background: #fff; color: #1b1b1f; box-shadow: 0 0 0 1px rgba(0,0,0,.04); }
.desk .b-tab .fav { width: 16px; height: 16px; border-radius: 4px; flex: none; }
.desk .b-tab .x { margin-left: auto; color: #6b6b73; font-size: 13px; }
.desk .b-new { width: 32px; height: 32px; display: grid; place-items: center; color: #55555c; font-size: 18px; }
.desk .b-bar { height: 44px; background: #fff; display: flex; align-items: center; gap: 6px; padding: 0 10px; border-bottom: 1px solid #e6e6ea; }
.desk .b-ic { width: 32px; height: 32px; display: grid; place-items: center; color: #4b4b52; }
.desk .b-ic svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.desk .b-url { flex: 1; height: 32px; border-radius: 16px; background: #f1f2f4; display: flex; align-items: center; gap: 8px; padding: 0 14px; font-size: 13px; color: #3a3a40; }
.desk .b-url b { font-weight: 500; color: #1b1b1f; }
.desk .b-url svg { width: 13px; height: 13px; stroke: #6b6b73; fill: none; stroke-width: 1.8; }
.desk .b-page { position: absolute; top: 84px; left: 0; right: 0; bottom: 0; background: #fff; display: grid; grid-template-columns: 236px 1fr; }

/* a document app inside the browser */
.desk .d-side { background: #f7f8fa; border-right: 1px solid #eceef2; padding: 18px 14px; display: grid; gap: 4px; align-content: start; font-size: 13px; color: #4a4d57; }
.desk .d-ws { display: flex; align-items: center; gap: 9px; font-weight: 600; color: #1b1b1f; margin-bottom: 12px; font-size: 13.5px; }
.desk .d-ws i { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, #ff9a62, #ff5f7e); }
.desk .d-side .h { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #8a8d96; margin: 14px 8px 4px; font-weight: 600; }
.desk .d-side .it { padding: 6px 8px; border-radius: 6px; display: flex; gap: 8px; align-items: center; }
.desk .d-side .it.on { background: #e8edfb; color: #1b1b1f; font-weight: 600; }
.desk .d-side .it::before { content: ""; width: 11px; height: 14px; border-radius: 2px; background: #c9cdd6; flex: none; }
.desk .d-side .it.on::before { background: #7f9cf5; }
.desk .d-main { padding: 34px 56px; overflow: hidden; font-size: 15px; line-height: 1.65; color: #2c2f36; }
.desk .d-crumb { font-size: 12.5px; color: #8a8d96; margin-bottom: 18px; }
.desk .d-main h1 { font: 700 34px/1.2 "Inter", "Segoe UI", sans-serif; letter-spacing: -.02em; color: #15171c; margin: 0 0 6px; }
.desk .d-meta { font-size: 12.5px; color: #8a8d96; margin-bottom: 26px; display: flex; gap: 14px; align-items: center; }
.desk .d-meta .av { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #7aa2ff, #a782ff); }
.desk .d-main h2 { font: 650 19px/1.3 "Inter", "Segoe UI", sans-serif; color: #15171c; margin: 26px 0 8px; }
.desk .d-main p { margin: 0 0 10px; max-width: 760px; }
.desk .d-tasks { display: grid; gap: 7px; margin: 6px 0; }
.desk .d-tasks div { display: flex; gap: 10px; align-items: center; }
.desk .d-tasks div::before { content: ""; width: 15px; height: 15px; border: 1.5px solid #9ca0aa; border-radius: 4px; }
.desk .d-tasks .ok { color: #8a8d96; text-decoration: line-through; }
.desk .d-tasks .ok::before { background: #3f6df6; border-color: #3f6df6; }
.desk .d-table { margin-top: 10px; border: 1px solid #e6e8ee; border-radius: 8px; overflow: hidden; font-size: 13.5px; max-width: 760px; }
.desk .d-table div { display: grid; grid-template-columns: 1.6fr 1fr 1fr; padding: 9px 14px; border-top: 1px solid #eef0f4; }
.desk .d-table div:first-child { border-top: 0; background: #f7f8fa; font-weight: 600; color: #4a4d57; }
.desk .pill { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }

/* taskbar */
.desk .taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--tb-h); z-index: 5;
  background: rgba(238, 241, 248, .82); backdrop-filter: blur(30px) saturate(1.4); -webkit-backdrop-filter: blur(30px) saturate(1.4);
  border-top: 1px solid rgba(255,255,255,.6); display: flex; align-items: center; justify-content: center; font-size: 12px; color: #1b1b1f;
}
.desk .tb-left { position: absolute; left: 14px; display: flex; align-items: center; gap: 10px; }
.desk .tb-left .sun { width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #ffd76a, #ffab2e); }
.desk .tb-left small { display: block; color: #55555c; font-size: 11px; }
.desk .tb-mid { display: flex; align-items: center; gap: 4px; }
.desk .tb-app { width: 40px; height: 40px; border-radius: 6px; display: grid; place-items: center; position: relative; }
.desk .tb-app.on { background: rgba(255,255,255,.6); }
.desk .tb-app.on::after { content: ""; position: absolute; bottom: 2px; width: 16px; height: 3px; border-radius: 2px; background: #3f6df6; }
.desk .tb-app.run::after { content: ""; position: absolute; bottom: 2px; width: 6px; height: 3px; border-radius: 2px; background: #8a8d96; }
.desk .tb-app > i { width: 24px; height: 24px; border-radius: 6px; display: block; }
.desk .tb-search { height: 34px; width: 220px; border-radius: 17px; background: rgba(255,255,255,.75); display: flex; align-items: center; gap: 9px; padding: 0 14px; color: #55555c; font-size: 13px; margin: 0 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.desk .tb-search svg { width: 15px; height: 15px; stroke: #3a3a40; fill: none; stroke-width: 1.8; }
.desk .tb-right { position: absolute; right: 12px; display: flex; align-items: center; gap: 4px; }
.desk .tb-tray { display: flex; align-items: center; gap: 12px; padding: 0 10px; height: 40px; border-radius: 6px; }
.desk .tb-tray svg { width: 16px; height: 16px; stroke: #1b1b1f; fill: none; stroke-width: 1.5; stroke-linecap: round; }
.desk .tb-tray img { width: 18px; height: 18px; }
.desk .tb-clock { text-align: right; line-height: 1.3; padding: 0 8px; font-size: 12px; }

/* app icons (generic) */
.desk .ic-folder { background: linear-gradient(#ffd666, #f5b82e) !important; border-radius: 4px 4px 5px 5px !important; height: 19px !important; position: relative; margin-top: 3px; }
.desk .ic-folder::before { content: ""; position: absolute; left: 0; top: -4px; width: 11px; height: 6px; background: #f5b82e; border-radius: 3px 3px 0 0; }
.desk .ic-web { background: conic-gradient(from 200deg, #2fb5ff, #1b6cf2, #33d6a6, #2fb5ff) !important; border-radius: 50% !important; }
.desk .ic-mail { background: linear-gradient(135deg, #4f8dff, #2a5fe0) !important; border-radius: 5px !important; position: relative; }
.desk .ic-mail::after { content: ""; position: absolute; left: 4px; right: 4px; top: 6px; height: 9px; border: 2px solid #fff; border-top: 0; transform: skewY(0); border-radius: 0 0 3px 3px; }
.desk .ic-cal { background: #fff !important; box-shadow: inset 0 6px 0 #ef5350, inset 0 0 0 1px rgba(0,0,0,.12); }
.desk .ic-chat { background: linear-gradient(135deg, #7b83eb, #5059c9) !important; border-radius: 6px !important; }
.desk .ic-music { background: linear-gradient(135deg, #ff6aa2, #ff3d6e) !important; border-radius: 6px !important; }
.desk .ic-np { background: url(assets/logo.png) center/cover !important; }

/* everyday: mail */
.desk .m-compose { display: inline-block; padding: 10px 18px; border-radius: 14px; background: #d9e4ff; color: #1b2a5c; font-weight: 600; margin-bottom: 14px; width: max-content; }
.desk .mail .d-side .it em { margin-left: auto; font-style: normal; font-weight: 600; font-size: 12px; }
.desk .mail .d-side .it::before { width: 14px; height: 11px; border-radius: 2px; }
.desk .m-list { overflow: hidden; font-size: 13.5px; }
.desk .m-search { margin: 14px 18px; height: 38px; border-radius: 19px; background: #eef1f6; display: flex; align-items: center; padding: 0 18px; color: #6b6f7b; }
.desk .m-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 80px; gap: 14px; padding: 12px 20px; border-top: 1px solid #f0f1f4; color: #4a4d57; }
.desk .m-row b { font-weight: 500; color: #2c2f36; } .desk .m-row strong { font-weight: 500; color: #2c2f36; }
.desk .m-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk .m-row time { text-align: right; font-size: 12.5px; color: #6b6f7b; }
.desk .m-row.un { background: #fff; } .desk .m-row.un b, .desk .m-row.un strong, .desk .m-row.un time { font-weight: 700; color: #111; }
.desk .m-row:not(.un) { background: #f8f9fb; }

/* developer: code editor */
.desk .editor { background: #1f2229; color: #c9ced8; }
.desk .editor .caps svg { stroke: #c9ced8; }
.desk .e-title { height: 38px; display: flex; align-items: center; padding: 0 14px; font-size: 12.5px; color: #aab1be; background: #181a20; }
.desk .e-name { position: absolute; left: 50%; transform: translateX(-50%); padding: 4px 80px; border-radius: 6px; background: #262931; }
.desk .e-body { position: absolute; top: 38px; bottom: 24px; left: 0; right: 0; display: grid; grid-template-columns: 48px 210px 1fr; }
.desk .e-act { background: #181a20; display: grid; align-content: start; gap: 18px; padding-top: 16px; justify-items: center; }
.desk .e-act i { width: 22px; height: 22px; border-radius: 5px; border: 2px solid #6b7280; }
.desk .e-act i:first-child { border-color: #e5e7eb; }
.desk .e-tree { background: #1b1d23; font-size: 13px; padding: 10px 0; color: #b6bcc8; }
.desk .e-tree .h { font-size: 11px; letter-spacing: .08em; color: #7f8695; padding: 0 16px 8px; }
.desk .e-tree div { padding: 3px 16px; } .desk .e-tree .i { padding-left: 28px; } .desk .e-tree .i2 { padding-left: 42px; }
.desk .e-tree .on { background: #2b3040; color: #fff; }
.desk .e-main { position: relative; overflow: hidden; }
.desk .e-tabs { height: 36px; display: flex; background: #181a20; font-size: 13px; }
.desk .e-tabs span { padding: 9px 18px; color: #8a91a0; } .desk .e-tabs .on { background: #1f2229; color: #fff; border-top: 2px solid #5b8cff; }
.desk .e-code { padding: 14px 0; font: 14px/1.75 "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace; }
.desk .e-code div { display: flex; white-space: pre; }
.desk .e-code em { width: 52px; text-align: right; padding-right: 22px; color: #555c6b; font-style: normal; }
.desk .e-code k { color: #c792ea; } .desk .e-code s { color: #a5d6a7; text-decoration: none; } .desk .e-code f { color: #82aaff; } .desk .e-code n { color: #f78c6c; } .desk .e-code c { color: #6b7385; font-style: italic; }
.desk .e-term { position: absolute; left: 0; right: 0; bottom: 0; height: 132px; border-top: 1px solid #2c303a; padding: 10px 18px; font: 13px/1.7 "Cascadia Mono", Consolas, monospace; color: #b6bcc8; background: #1b1d23; }
.desk .e-term .h { font: 600 11px "Inter", sans-serif; letter-spacing: .08em; color: #7f8695; margin-bottom: 4px; }
.desk .e-term .ok { color: #7ee2a8; } .desk .e-term .bad { color: #ff8a8a; }
.desk .e-status { position: absolute; left: 0; right: 0; bottom: 0; height: 24px; background: #3d5afe; color: #fff; font-size: 12px; display: flex; gap: 22px; align-items: center; padding: 0 14px; }

/* student: course page */
.desk .c-video { position: relative; height: 230px; border-radius: 12px; background: linear-gradient(135deg, #20264a, #3b2f6e); margin: 6px 0 8px; max-width: 700px; display: grid; place-items: center; color: #fff; }
.desk .c-video > span { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 24px; }
.desk .c-prog { position: absolute; left: 16px; right: 120px; bottom: 18px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); }
.desk .c-prog i { display: block; width: 40%; height: 100%; border-radius: 2px; background: #ffc83d; }
.desk .c-video small { position: absolute; right: 16px; bottom: 11px; font-size: 12px; opacity: .8; }

/* writer: word processor */
.desk .writer { background: #f3f4f6; }
.desk .w-title { height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 16px; font-size: 12.5px; background: #2b579a; color: #fff; }
.desk .writer .caps svg { stroke: #fff; }
.desk .w-doc { font-size: 15px; } .desk .w-saved { opacity: .75; margin-left: 10px; }
.desk .w-ribbon { display: flex; gap: 4px; padding: 0 12px; background: #2b579a; color: #dbe6f7; font-size: 13px; }
.desk .w-ribbon span { padding: 7px 12px; } .desk .w-ribbon .on { background: #f3f4f6; color: #1b1b1f; border-radius: 6px 6px 0 0; }
.desk .w-tools { display: flex; align-items: center; gap: 16px; padding: 8px 18px; background: #fff; border-bottom: 1px solid #e3e5ea; font-size: 14px; color: #3a3d46; }
.desk .w-tools .sep { width: 1px; height: 18px; background: #dfe1e6; }
.desk .w-canvas { position: absolute; top: 116px; bottom: 26px; left: 0; right: 0; overflow: hidden; display: flex; justify-content: center; padding-top: 22px; }
.desk .w-page { width: 640px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); padding: 56px 72px; font: 17px/1.75 Georgia, "DejaVu Serif", serif; color: #222; }
.desk .w-page h1 { font: 400 28px Georgia, serif; text-align: center; margin: 0 0 24px; }
.desk .w-page p { margin: 0 0 14px; text-indent: 28px; }
.desk .w-status { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: #f3f4f6; border-top: 1px solid #e3e5ea; font-size: 12px; color: #55585f; display: flex; gap: 24px; align-items: center; padding: 0 16px; }

/* taskbar app icons for each scene */
.desk .ic-code { background: linear-gradient(135deg, #3d8bfd, #1f5fd1) !important; border-radius: 6px !important; position: relative; }
.desk .ic-code::after { content: "</>"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 700 10px monospace; }
.desk .ic-word { background: linear-gradient(135deg, #3c74c6, #2b579a) !important; border-radius: 5px !important; position: relative; }
.desk .ic-word::after { content: "W"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 700 13px "Inter", sans-serif; }
.desk[data-scene="everyday"] .tb-app[data-app="web"], .desk[data-scene="student"] .tb-app[data-app="web"], .desk[data-scene="manager"] .tb-app[data-app="web"],
.desk[data-scene="developer"] .tb-app[data-app="code"], .desk[data-scene="writer"] .tb-app[data-app="word"] { background: rgba(255,255,255,.6); }
.desk[data-scene="everyday"] .tb-app[data-app="web"]::after, .desk[data-scene="student"] .tb-app[data-app="web"]::after, .desk[data-scene="manager"] .tb-app[data-app="web"]::after,
.desk[data-scene="developer"] .tb-app[data-app="code"]::after, .desk[data-scene="writer"] .tb-app[data-app="word"]::after { width: 16px; background: #3f6df6; }
.desk .e-code code { background: none; border: 0; padding: 0; border-radius: 0; font: inherit; color: inherit; }
