/* =========================================================================
   RNGesus XP - Luna theme
   ========================================================================= */

:root {
  --win-frame-focus: linear-gradient(180deg, #0997ff 0%, #0053ee 8%, #0050ee 40%, #0066ff 88%, #0061ff 93%, #005bff 95%, #0345cf 100%);
  --win-frame-blur: linear-gradient(180deg, #7697e7 0%, #7e9ee3 3%, #94afe8 6%, #97b4e9 8%, #82a5e4 14%, #7c9fe2 17%, #7996de 25%, #7b99e1 56%, #82a9e9 81%, #80a5e7 89%, #7b96e1 94%, #7a93df 97%, #9caee0 100%);
  --win-face: #ece9d8;
  --font: Tahoma, "Segoe UI", Verdana, Geneva, sans-serif;
  --font-title: "Trebuchet MS", Tahoma, "Segoe UI", sans-serif;
  --menu-hi: #316ac5;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; height: 100%; overflow: hidden;
  font-family: var(--font); font-size: 12px; color: #000;
  background: #2f7de0;
  user-select: none; -webkit-user-select: none;
}
body.dragging { cursor: default; }
body.dragging * { cursor: inherit !important; }

.hidden { display: none !important; }

/* ===================== Boot screen ===================== */
.boot-screen {
  position: fixed; inset: 0; z-index: 9000;
  background: #000; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity .5s ease;
}
.boot-screen.fade-out { opacity: 0; }
.boot-logo { display: flex; flex-direction: column; align-items: center; }
.boot-brand { font-size: 46px; letter-spacing: .5px; margin-bottom: 42px; font-family: var(--font); }
.boot-brand .boot-flag { width: 52px; height: 52px; display: inline-block; vertical-align: -8px; margin-right: 14px; }
.boot-brand-strong { font-weight: 700;
  background: linear-gradient(#ffffff, #cfd8e8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.boot-brand-tm { color: #ff8a2a; font-style: italic; font-weight: 700; margin-left: 6px;
  vertical-align: super; font-size: 22px; }
.boot-bar { width: 200px; height: 16px; border: 1px solid #a8a8a8; border-radius: 8px; overflow: hidden; padding: 2px 1px; }
.boot-bar-track { display: flex; gap: 4px; height: 100%; animation: bootscroll 1.6s linear infinite; }
.boot-bar-track span { width: 10px; height: 100%; border-radius: 2px; flex: 0 0 auto;
  background: linear-gradient(180deg, #9ec8ff 0%, #3f7fe8 45%, #1b50c8 100%); }
@keyframes bootscroll { 0% { transform: translateX(-52px); } 100% { transform: translateX(210px); } }
.boot-copyright { position: absolute; bottom: 34px; left: 30px; color: #b8b8b8; font-size: 13px; }

/* ===================== Login screen ===================== */
.login-screen {
  position: fixed; inset: 0; z-index: 8500; color: #fff;
  display: flex; flex-direction: column;
  background: linear-gradient(105deg, #5a86d8 0%, #7ba2e2 40%, #5a86d8 75%, #4a74cd 100%);
  transition: opacity .5s ease;
}
.login-screen.fade-out { opacity: 0; }
.login-top { height: 12%;
  background: linear-gradient(180deg, #00309c 0%, #0a4bd0 90%, #2a6ee0 100%);
  border-bottom: 2px solid #7eaef2; }
.login-main { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0; }
.login-left { text-align: right; padding-right: 40px; min-width: 320px; }
.login-brand { font-size: 36px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.login-brand .login-flag { width: 60px; height: 60px; flex: 0 0 auto; filter: drop-shadow(2px 3px 3px rgba(0,20,80,.45)); }
.login-hint { margin-top: 16px; font-size: 15px; color: #dfeafd; }
.login-divider { width: 1px; align-self: stretch; margin: 70px 0;
  background: linear-gradient(transparent, #b8cef5 20%, #b8cef5 80%, transparent); }
.login-right { padding-left: 40px; min-width: 320px; }
.user-tile { display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  background: none; border: none; border-radius: 6px; min-height: 74px;
  padding: 6px 18px 6px 82px; position: relative; cursor: pointer; color: #fff; text-align: left;
  font-family: var(--font); }
.user-tile:hover, .user-tile:focus { background: linear-gradient(90deg, rgba(255,255,255,.28), rgba(255,255,255,.06)); outline: none; }
.user-avatar, .start-header-avatar {
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 60px; height: 60px;
  border-radius: 5px; border: 2px solid #fff; overflow: hidden;
  background: linear-gradient(135deg, #fbe098, #e8a04a); display: block;
  box-shadow: 0 1px 4px rgba(0,20,80,.4); }
.user-avatar svg { width: 100%; height: 100%; }
.user-name { font-size: 21px; font-weight: 400; line-height: 1.35; }
.user-sub { font-size: 12px; color: #dfeafd; }
.login-bottom { height: 14%; min-height: 72px; background: linear-gradient(180deg, #2a6ee0 0%, #0a4bd0 12%, #00309c 100%);
  border-top: 1px solid #7eaef2; }
.login-bottom-inner { display: flex; align-items: center; justify-content: space-between;
  height: 100%; padding: 0 44px; }
.login-poweroff { cursor: pointer; padding-left: 30px; position: relative; font-size: 13px; }
.login-poweroff::before { content: "\23FB"; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 4px; color: #fff;
  background: linear-gradient(180deg, #f0a86a, #d84a1a 60%, #b83a10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 1px 2px rgba(0,0,0,.4);
  font-size: 13px; text-align: center; line-height: 22px; }
.login-note { font-size: 11px; color: #cfe0f8; text-align: right; line-height: 1.5; }

/* ===================== Desktop ===================== */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.desktop {
  position: fixed; inset: 0; overflow: hidden;
  background: #3a6ea5 url('../assets/bliss-rngesus.jpg?v=2') center center / cover no-repeat;
}

.xp-ico { width: 100%; height: 100%; object-fit: contain; display: block; }
.avatar-img { object-fit: cover; }

/* ---- Desktop icons ---- */
.desktop-icons { position: absolute; top: 8px; left: 6px; z-index: 1;
  display: flex; flex-direction: column; flex-wrap: wrap; gap: 2px; max-height: calc(100vh - 50px); }
.desk-icon { width: 90px; background: none; border: none; cursor: default;
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px 6px;
  font-family: var(--font); color: #fff; }
.desk-icon .di-img { width: 48px; height: 48px; position: relative; }
.desk-icon .di-img .xp-ico { filter: drop-shadow(1px 2px 2px rgba(0,0,0,.5)); }
.desk-icon .di-img svg { width: 100%; height: 100%; filter: drop-shadow(1px 2px 2px rgba(0,0,0,.5)); }
.desk-icon .di-label { font-size: 11px; text-align: center; line-height: 1.25; padding: 1px 3px;
  text-shadow: 1px 1px 2px rgba(0,0,0,.95), 0 0 4px rgba(0,0,0,.6); border: 1px dotted transparent; }
.desk-icon.selected .di-label { background: #0b61ce; border-color: #f0e8a0; }
.desk-icon.selected .di-img::after { content: ""; position: absolute; inset: 0;
  background: rgba(11,97,206,.4); mix-blend-mode: multiply; border-radius: 2px; }

/* ===================== Windows ===================== */
#window-layer { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.window {
  position: absolute; pointer-events: auto;
  padding: 0 3px 3px;
  background: var(--win-frame-focus);
  border-radius: 8px 8px 2px 2px;
  box-shadow: inset -1px -1px 0 rgba(0,20,90,.35), inset 1px 0 0 rgba(255,255,255,.18), 2px 6px 20px rgba(0,0,0,.45);
  display: flex; flex-direction: column; min-width: 340px; min-height: 180px;
  animation: winpop .12s ease;
}
.window:not(.focused) { background: var(--win-frame-blur); box-shadow: 2px 4px 14px rgba(0,0,0,.3); }
@keyframes winpop { from { transform: scale(.96); opacity: .4; } to { transform: scale(1); opacity: 1; } }
.window.closing { animation: winclose .12s ease forwards; }
@keyframes winclose { to { transform: scale(.96); opacity: 0; } }
.window.minimized { display: none; }
.window.maximized { border-radius: 0; }

/* title bar */
.title-bar {
  height: 30px; flex: 0 0 auto; display: flex; align-items: center; gap: 5px; padding: 0 5px 2px 5px;
  background: transparent; color: #fff; cursor: default;
}
.title-icon { width: 16px; height: 16px; display: inline-flex; flex: 0 0 auto; }
.title-icon svg, .title-icon img { width: 100%; height: 100%; }
.title-text { flex: 1; font-family: var(--font-title); font-weight: 700; font-size: 13px;
  text-shadow: 1px 1px 1px #0f1089; letter-spacing: .2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.title-controls { display: flex; gap: 2px; }
.tb-btn { width: 21px; height: 21px; border-radius: 3px; padding: 0;
  border: 1px solid #fff; cursor: pointer; position: relative;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 22%, #b5d3ff 0%, #6f9ff0 28%, #2a63d8 70%, #1c4cc0 100%);
  box-shadow: inset 0 -2px 3px rgba(0,20,90,.35); }
.tb-btn svg { width: 12px; height: 12px; display: block; }
.tb-btn:hover { filter: brightness(1.15); }
.tb-btn:active { filter: brightness(.85); }
.tb-close { background: radial-gradient(circle at 30% 22%, #ffc0a8 0%, #f07a52 30%, #d23a12 72%, #b02c0a 100%); }
.window:not(.focused) .tb-btn { opacity: .75; }

/* menu bar */
.menu-bar { flex: 0 0 auto; display: flex; align-items: stretch; height: 21px;
  background: var(--win-face); border-bottom: 1px solid #d4d0c0; font-size: 11px;
  padding-left: 2px; }
.menu-item { display: flex; align-items: center; padding: 0 7px; cursor: default; color: #000; }
.menu-item:hover { background: var(--menu-hi); color: #fff; }
.menu-flag { margin-left: auto; width: 26px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #245edb, #1941a5); border-left: 1px solid #d4d0c0; }
.menu-flag svg { width: 16px; height: 16px; }

/* toolbar */
.tool-bar { flex: 0 0 auto; display: flex; align-items: center; gap: 2px; height: 36px;
  background: var(--win-face); border-bottom: 1px solid #d4d0c0; padding: 0 6px; font-size: 11px; }
.tool-btn { display: flex; align-items: center; gap: 5px; height: 30px; padding: 0 7px;
  background: none; border: 1px solid transparent; border-radius: 3px; cursor: pointer;
  font-family: var(--font); font-size: 11px; color: #000; }
.tool-btn:hover { border-color: #b8c8e8; background: linear-gradient(180deg, #fff, #e2ecfc); }
.tool-btn:disabled { opacity: .45; pointer-events: none; }
.tool-btn .tool-ico { width: 22px; height: 22px; display: inline-flex; }
.tool-btn .tool-ico svg { width: 100%; height: 100%; }
.tool-sep { width: 1px; height: 26px; background: #d4d0c0; margin: 0 4px; }

/* address bar */
.addr-bar { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; height: 25px;
  background: var(--win-face); border-bottom: 1px solid #b8b4a4; padding: 0 4px 0 6px; font-size: 11px; }
.addr-label { color: #6a6a6a; }
.addr-field { flex: 1; display: flex; align-items: center; gap: 5px; height: 19px;
  background: #fff; border: 1px solid #7f9db9; padding: 0 4px; }
.addr-field .addr-ico { width: 14px; height: 14px; display: inline-flex; flex: 0 0 auto; }
.addr-field .addr-ico svg, .addr-field .addr-ico img { width: 100%; height: 100%; }
.addr-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #000; }
.addr-go { display: flex; align-items: center; gap: 3px; padding: 0 6px; height: 21px;
  background: none; border: 1px solid transparent; border-radius: 3px; cursor: pointer;
  font-family: var(--font); font-size: 11px; color: #000; }
.addr-go:hover { border-color: #b8c8e8; background: linear-gradient(180deg, #fff, #e2ecfc); }
.addr-go .go-ico { width: 16px; height: 16px; display: inline-flex; }

/* body */
.window-body { flex: 1 1 auto; overflow: auto; background: #fff; position: relative; min-height: 0; }

/* status bar */
.status-bar { flex: 0 0 auto; height: 22px; display: flex; align-items: center;
  background: var(--win-face); border-top: 1px solid #fff; font-size: 11px; color: #444;
  padding: 0 2px; gap: 2px; }
.status-cell { flex: 1; height: 18px; display: flex; align-items: center; padding: 0 7px;
  box-shadow: inset 1px 1px 0 #9d998a, inset -1px -1px 0 #fff; }
.status-grip { flex: 0 0 auto; width: 18px; height: 18px; cursor: nwse-resize;
  background:
    linear-gradient(135deg, transparent 55%, #fff 55%, #fff 60%, #9d998a 60%, #9d998a 66%, transparent 66%,
      transparent 72%, #fff 72%, #fff 77%, #9d998a 77%, #9d998a 83%, transparent 83%,
      transparent 88%, #fff 88%, #fff 93%, #9d998a 93%); }

.resize-handle { position: absolute; right: 0; bottom: 0; width: 17px; height: 17px;
  cursor: nwse-resize; z-index: 3; }

/* ===================== Taskbar ===================== */
.taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: 30px; z-index: 7000;
  display: flex; align-items: stretch;
  background: linear-gradient(180deg,
    #1f2f86 0%, #3165c4 3%, #3682e5 6%, #4490e6 10%, #3883e5 12%, #2b71e0 15%,
    #2663da 18%, #235bd6 20%, #2258d5 23%, #2157d6 38%, #245ddb 54%, #2562df 86%,
    #245fdc 89%, #2158d4 92%, #1d4ec0 95%, #1941a5 98%);
}
.start-button {
  position: relative; display: flex; align-items: center; gap: 6px; padding: 0 24px 2px 9px;
  border: none; cursor: pointer; color: #fff; font-style: italic; font-weight: 700; font-size: 17px;
  font-family: var(--font-title); text-shadow: 1px 1px 2px rgba(0,0,0,.55);
  margin-right: 12px; border-radius: 0 12px 12px 0;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(255,255,255,.6), rgba(255,255,255,0) 55%),
    linear-gradient(180deg, #8ede7c 0%, #4cb04a 9%, #3d9c3d 35%, #319031 62%, #2a7f2e 85%, #1f5f24 100%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.55), inset -3px 0 4px rgba(0,40,0,.3), 1px 0 3px rgba(0,0,0,.3);
}
.start-button:hover { filter: brightness(1.1); }
.start-button.active { filter: brightness(.85); box-shadow: inset 0 2px 6px rgba(0,30,0,.5); }
.start-flag { width: 20px; height: 20px; display: inline-flex;
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,.5)); }
.start-flag svg { width: 100%; height: 100%; }
.start-text { transform: translateY(-1px); }

.task-buttons { flex: 1; display: flex; align-items: center; gap: 2px; padding: 2px 2px; overflow: hidden; }
.task-btn { height: 25px; min-width: 60px; width: 152px; display: flex; align-items: center; gap: 5px;
  padding: 0 7px; border: none; border-radius: 2px; cursor: pointer; color: #fff;
  font-family: var(--font); font-size: 11px;
  background: linear-gradient(180deg, #5c8ff0 0%, #3873e0 8%, #2e6ada 45%, #2b64d5 88%, #2258c8 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset -1px 0 1px rgba(0,20,90,.25); }
.task-btn .tb-ico { width: 16px; height: 16px; display: inline-flex; flex: 0 0 auto; }
.task-btn .tb-ico svg, .task-btn .tb-ico img { width: 100%; height: 100%; }
.task-btn .tb-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 1px 1px 1px rgba(0,0,0,.3); }
.task-btn.active { background: linear-gradient(180deg, #1e50b8 0%, #2a5ec5 12%, #3468cd 90%, #2e62c8 100%);
  box-shadow: inset 1px 2px 3px rgba(0,10,60,.5); }
.task-btn:hover:not(.active) { filter: brightness(1.1); }

.tray { display: flex; align-items: center; gap: 7px; padding: 0 12px 0 14px;
  background: linear-gradient(180deg,
    #0f5bc0 0%, #139ee9 2%, #18b5f2 3%, #1290e8 5%, #0d61c8 9%, #0f52b5 30%, #0f52b5 63%,
    #1263bd 81%, #1668c9 88%, #1a70d1 91%, #1e7ad8 94%, #2883e0 97%, #3a93e9 100%);
  box-shadow: inset 2px 0 3px rgba(0,20,80,.45); }
.tray-icon { width: 16px; height: 16px; display: inline-flex; cursor: pointer; }
.tray-icon svg { width: 100%; height: 100%; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.tray-clock { color: #fff; font-size: 11px; text-shadow: 1px 1px 1px rgba(0,0,0,.4); margin-left: 3px; }

/* tray balloon */
.xp-balloon { position: fixed; right: 10px; bottom: 40px; z-index: 7600; max-width: 300px;
  background: #ffffe1; border: 1px solid #000; border-radius: 6px; padding: 10px 26px 10px 12px;
  font-size: 11px; color: #000; box-shadow: 2px 3px 8px rgba(0,0,0,.35);
  animation: balloonIn .25s ease; }
.xp-balloon::after { content: ""; position: absolute; right: 26px; bottom: -12px;
  border: 12px solid transparent; border-top-color: #ffffe1; border-right-width: 4px; border-left-width: 16px; }
.xp-balloon b { display: block; margin-bottom: 4px; font-size: 11px; }
.xp-balloon .bl-close { position: absolute; top: 5px; right: 6px; width: 14px; height: 14px;
  border: 1px solid #888; background: #ffffe1; cursor: pointer; font-size: 9px; line-height: 1;
  display: flex; align-items: center; justify-content: center; padding: 0; }
@keyframes balloonIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.xp-balloon.fade { opacity: 0; transition: opacity .6s ease; }

/* ===================== Start menu ===================== */
.start-menu {
  position: fixed; left: 0; bottom: 30px; z-index: 7500; width: 392px;
  background: #4282d6; padding: 2px; padding-bottom: 0;
  border-radius: 6px 6px 0 0; overflow: hidden;
  box-shadow: 3px -3px 14px rgba(0,0,0,.45);
  animation: smUp .14s ease;
}
@keyframes smUp { from { transform: translateY(14px); opacity: .5; } to { transform: translateY(0); opacity: 1; } }
.start-header { height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 10px;
  color: #fff; font-size: 14px; font-weight: 700; text-shadow: 1px 1px 2px rgba(0,0,0,.55);
  border-radius: 5px 5px 0 0;
  background:
    radial-gradient(ellipse at 8% 10%, rgba(255,255,255,.35), rgba(255,255,255,0) 40%),
    linear-gradient(180deg, #1c68d8 0%, #2a7ee8 12%, #1560d0 60%, #0a52c8 100%); }
.start-header-avatar { position: static; transform: none; width: 44px; height: 44px;
  border-radius: 4px; border: 2px solid rgba(255,255,255,.85); }
.start-body { display: flex; background: #fff; border-top: 2px solid #f09609; }
.start-col { padding: 6px 5px; display: flex; flex-direction: column; }
.start-col-left { flex: 1.12; background: #fff; }
.start-col-right { flex: 1; background: #d3e5fa; border-left: 1px solid #a8c4e8; }
.sm-item { width: 100%; display: flex; align-items: center; gap: 8px; padding: 5px 7px;
  background: none; border: none; cursor: pointer; text-align: left; border-radius: 2px;
  font-family: var(--font); color: #00186c; }
.sm-item:hover { background: var(--menu-hi); color: #fff; }
.sm-ico { width: 30px; height: 30px; flex: 0 0 auto; display: inline-flex; }
.sm-item:not(.pinned) .sm-ico { width: 22px; height: 22px; }
.sm-ico svg, .sm-ico img { width: 100%; height: 100%; }
.sm-text { display: flex; flex-direction: column; line-height: 1.25; }
.sm-text b { font-weight: 700; font-size: 11px; }
.sm-item:not(.pinned) .sm-text b { font-weight: 400; }
.sm-text small { font-size: 10px; color: #7f8fa8; }
.sm-item:hover .sm-text small { color: #d8e6ff; }
.sm-divider { height: 1px; margin: 4px 6px; background: #d8d4c8; flex: 0 0 auto; }
.start-col-right .sm-item { color: #00309c; }
.start-col-right .sm-item .sm-text b { font-weight: 700; }
.start-col-right .sm-divider { background: #a8c4e8; }

.start-footer { display: flex; justify-content: flex-end; gap: 4px; padding: 5px 8px;
  background: linear-gradient(180deg, #4282d6 0%, #3b78cd 50%, #2a63c0 100%); }
.start-footer-btn { display: flex; align-items: center; gap: 6px; background: none; border: none;
  color: #fff; cursor: pointer; font-family: var(--font); font-size: 11px; padding: 4px 7px; border-radius: 3px; }
.start-footer-btn:hover { background: rgba(255,255,255,.18); }
.sf-icon { width: 22px; height: 22px; border-radius: 3px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 1px 2px rgba(0,0,0,.3); }
.sf-icon.sf-logoff { background: linear-gradient(180deg, #f8c860, #e89020 60%, #c87810); }
.sf-icon.sf-off { background: linear-gradient(180deg, #f0a86a, #d84a1a 60%, #b83a10); }

/* ===================== Shutdown ===================== */
.shutdown-screen { position: fixed; inset: 0; z-index: 9999; background: #000; color: #ffb43a;
  display: flex; align-items: center; justify-content: center; text-align: center; }
.shutdown-msg { font-size: 22px; line-height: 1.6; font-family: var(--font); }
.shutdown-back { margin-top: 26px; display: block; margin-inline: auto; font-size: 13px;
  padding: 6px 14px; cursor: pointer; }

/* ===================== App content ===================== */
.app { padding: 16px 18px; color: #222; user-select: text; line-height: 1.5; }
.app h1 { margin: 0 0 2px; font-size: 21px; color: #0a3a86; }
.app h3 { color: #0a3a86; margin: 16px 0 6px; font-size: 13px; }
.app p { margin: 0 0 10px; }
.app .lead { font-size: 13px; color: #333; }
.subtitle { color: #d8531e; font-weight: 700; font-size: 12px; }
.tagline { color: #555; font-style: italic; margin-top: 4px; font-size: 12px; }

/* ---- About: task pane + periwinkle main, like classic XP web view ---- */
.app.about { padding: 0; height: 100%; display: flex; background: #7c8ce5; }
.about-side { flex: 0 0 168px; padding: 10px 8px; overflow: auto;
  background: linear-gradient(180deg, #748ae8 0%, #6a80e0 100%); }
.pane { margin-bottom: 10px; border-radius: 5px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,20,90,.3); }
.pane-head { display: flex; align-items: center; justify-content: space-between;
  padding: 4px 10px; font-weight: 700; font-size: 11px; color: #215dc6;
  background: linear-gradient(90deg, #ffffff, #c7d8f8); }
.pane-head .chev { color: #4a76d8; font-size: 12px; font-weight: 700; }
.pane-body { background: #d6dff7; padding: 7px 10px; display: flex; flex-direction: column; gap: 5px; }
.pane-body a, .pane-body span { font-size: 11px; color: #215dc6; text-decoration: none;
  display: flex; align-items: center; gap: 6px; }
.pane-body a:hover { text-decoration: underline; color: #4a90ff; }
.pane-ico { width: 14px; height: 14px; display: inline-flex; flex: 0 0 auto; }
.pane-ico svg, .pane-ico img { width: 100%; height: 100%; }
.pane-dot::before { content: ""; width: 7px; height: 7px; border-radius: 2px; flex: 0 0 auto;
  background: linear-gradient(135deg, #7ab8f8, #2a63d8); box-shadow: 0 1px 1px rgba(0,20,90,.3); }
.about-main { flex: 1; overflow: auto; padding: 18px 22px; color: #fff; }
.about-main h1 { color: #fff; font-size: 24px; text-shadow: 1px 2px 2px rgba(0,20,90,.4); margin-bottom: 10px; }
.about-main .subtitle { color: #ffd9a0; }
.about-main .tagline { color: #dfe6ff; }
.about-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.about-avatar { width: 64px; height: 64px; flex: 0 0 auto; border: 2px solid #fff; border-radius: 6px;
  overflow: hidden; box-shadow: 0 2px 6px rgba(0,20,90,.4); background: #fff; }
.about-avatar svg { width: 100%; height: 100%; }
.about-main .lead { color: #fff; font-size: 13px; font-weight: 700; }
.about-main p { color: #eef2ff; font-size: 12.5px; line-height: 1.65; }
.facts { border-collapse: collapse; margin-top: 12px; width: 100%; max-width: 460px; }
.facts td { border: 1px solid rgba(255,255,255,.35); padding: 5px 10px; font-size: 12px; color: #fff; }
.facts td:first-child { background: rgba(255,255,255,.14); font-weight: 700; width: 36%; }
.app:not(.about) .facts td { color: #222; border-color: #d8d4c4; }
.app:not(.about) .facts td:first-child { background: #f2efe4; color: #0a3a86; }

/* projects */
.explorer-bar { display: flex; justify-content: space-between; align-items: center;
  padding: 6px 10px; background: linear-gradient(#fbfbfb, #ececec); border-bottom: 1px solid #c8c8c8;
  font-size: 11px; color: #333; position: sticky; top: 0; z-index: 1; }
.crumb { font-weight: 700; }
.crumb-count { color: #777; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; padding: 14px; }
.proj-card { border: 1px solid #c9d4e2; border-radius: 6px; padding: 12px; background: #f8fbff;
  box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.proj-top { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.proj-ico { width: 34px; height: 34px; flex: 0 0 auto; }
.proj-ico svg, .proj-ico img { width: 100%; height: 100%; }
.proj-top h3 { margin: 0; font-size: 14px; }
.proj-tag { color: #d8531e; font-size: 11px; font-weight: 700; }
.proj-desc { font-size: 12px; color: #333; margin: 0 0 8px; }
.proj-hl { margin: 0 0 8px; padding-left: 18px; font-size: 11.5px; color: #444; }
.proj-hl li { margin-bottom: 2px; }
.proj-stack { font-size: 11px; color: #567; background: #eaf1fb; border-radius: 3px;
  padding: 4px 7px; display: inline-block; }

/* résumé / skills */
.doc-head { border-bottom: 2px solid #0a52c0; padding-bottom: 8px; margin-bottom: 10px; }
.cv-handle { font-size: 14px; color: #667; font-weight: 400; }
.cv-contact { font-size: 11.5px; color: #555; margin-top: 3px; }
.cv-sec { border-bottom: 1px solid #c8d4e4; padding-bottom: 3px; margin-top: 18px; }
.cv-job { margin: 10px 0 12px; }
.cv-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; }
.cv-dates { color: #777; font-size: 11.5px; white-space: nowrap; }
.cv-co { color: #d8531e; font-size: 11.5px; font-weight: 700; margin: 1px 0 4px; }
.cv-bullets { margin: 4px 0 0; padding-left: 18px; font-size: 12px; color: #333; }
.cv-bullets li { margin-bottom: 3px; }
.cv-list { margin: 6px 0 0; padding-left: 18px; font-size: 12px; color: #333; }
.cv-list li { margin-bottom: 7px; }
.cv-list .cv-co { font-weight: 400; }
.cv-note { font-size: 11px; color: #888; font-style: italic; margin: 2px 0 8px; }
.skill-group { margin-bottom: 14px; }
.skill-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.skill-name { width: 44%; font-size: 12px; }
.skill-bar { flex: 1; height: 13px; background: #f2f2f2; border: 1px solid #b8b8b8; border-radius: 2px;
  overflow: hidden; padding: 1px; }
.skill-fill { display: block; height: 100%; border-radius: 1px;
  background: repeating-linear-gradient(90deg, #4ea83c 0 7px, #63c04c 7px 9px);
  box-shadow: inset 0 2px 2px rgba(255,255,255,.45), inset 0 -2px 2px rgba(0,60,0,.25);
  animation: grow 1s ease; }
@keyframes grow { from { width: 0 !important; } }

/* contact */
.contact-head { display: flex; align-items: center; gap: 12px; }
.contact-ico { width: 40px; height: 40px; }
.contact-ico svg, .contact-ico img { width: 100%; height: 100%; }
.contact-links { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.contact-link { display: flex; justify-content: space-between; align-items: center; text-decoration: none;
  border: 1px solid #c9d4e2; border-radius: 5px; padding: 10px 12px; background: #f6faff; color: #0a3a86; }
.contact-link:hover { background: linear-gradient(#eaf3ff, #d8e9ff); }
.cl-label { font-weight: 700; }
.cl-text { color: #d8531e; }
.contact-foot { font-size: 11.5px; color: #555; }
.contact-foot code, .app code { background: #f2efe4; padding: 1px 5px; border-radius: 3px; font-size: 11.5px; }

/* my computer */
.drive-grid { display: flex; gap: 12px; flex-wrap: wrap; padding: 14px; }
.drive { display: flex; align-items: center; gap: 10px; border: 1px solid #d8d4c4; border-radius: 5px;
  padding: 10px 14px; background: #f8fbff; min-width: 180px; }
.drive-ico { font-size: 28px; }
.sysinfo { padding: 0 14px 14px; }

/* terminal */
.app.terminal { padding: 0; background: #000; height: 100%; display: flex; flex-direction: column;
  font-family: "Lucida Console", "Courier New", monospace; color: #d8d8d8; }
.window:has(.app.terminal) .window-body { background: #000; }
.term-out { flex: 1; overflow: auto; padding: 8px 10px 0; font-size: 13px; line-height: 1.35; white-space: pre-wrap; }
.term-out b { color: #7fff7f; }
.term-line { display: flex; align-items: center; padding: 2px 10px 8px; }
.term-prompt { color: #d8d8d8; white-space: nowrap; }
.term-input { flex: 1; background: none; border: none; outline: none; color: #d8d8d8;
  font-family: inherit; font-size: 13px; margin-left: 6px; }

/* browser */
.app.browser { padding: 0; height: 100%; display: flex; flex-direction: column; }
.ie-page { flex: 1; overflow: auto; padding: 18px 20px; background: #fff; }
.ie-profile { display: flex; gap: 16px; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 14px; }
.ie-avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; }
.ie-avatar svg { width: 100%; height: 100%; }
.ie-profile h2 { margin: 0; color: #0a3a86; }
.ie-profile p { margin: 2px 0; color: #555; }
.ie-bio { font-style: italic; }
.ie-repos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.ie-repo { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: #0a58c8;
  border: 1px solid #d0d7e0; border-radius: 6px; padding: 10px 12px; background: #f8fbff; }
.ie-repo:hover { background: #eef4ff; }
.ie-repo span { color: #d8531e; font-size: 11px; }
.ie-repo small { color: #777; font-size: 10px; }

/* scrollbars - XP flavor */
.window-body::-webkit-scrollbar, .term-out::-webkit-scrollbar, .ie-page::-webkit-scrollbar,
.about-main::-webkit-scrollbar, .about-side::-webkit-scrollbar { width: 16px; height: 16px; }
.window-body::-webkit-scrollbar-thumb, .ie-page::-webkit-scrollbar-thumb,
.about-main::-webkit-scrollbar-thumb, .about-side::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #cfe0f5, #9dbde8); border: 1px solid #7f9fd0; border-radius: 2px; }
.window-body::-webkit-scrollbar-track { background: #e8eef8; }

/* ===================== BSOD (secrets.exe) ===================== */
.bsod { position: fixed; inset: 0; z-index: 99000; background: #0000aa;
  display: flex; align-items: center; }
.bsod-inner { max-width: 720px; margin: 0 auto; padding: 24px;
  font-family: "Lucida Console", "Courier New", monospace; font-size: 13px; line-height: 1.5;
  color: #fff; white-space: pre-wrap; }
.bsod-cursor { animation: bsodblink 1s steps(1) infinite; }
@keyframes bsodblink { 50% { opacity: 0; } }
html.mobile .bsod-inner { font-size: 11px; padding: 16px; }

/* ===================== CRT monitor overlay ===================== */
#crt { position: fixed; inset: 0; z-index: 99990; pointer-events: none; overflow: hidden; }
#crt::before { /* scanlines + aperture grille */
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .14) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 70, 70, .045) 0 1px, rgba(70, 255, 120, .035) 1px 2px, rgba(80, 130, 255, .045) 2px 3px);
}
#crt::after { /* curved-glass glare + corner vignette */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 38% at 50% 6%, rgba(255, 255, 255, .055), transparent 70%),
    radial-gradient(ellipse 140% 120% at 50% 50%, transparent 58%, rgba(0, 8, 30, .38) 100%);
}

/* ===================== Responsive ===================== */
@media (max-width: 640px) {
  .login-left, .login-right { min-width: auto; }
  .login-main { flex-direction: column; gap: 20px; }
  .login-divider { display: none; }
  .start-menu { width: 100%; }
  .proj-grid, .ie-repos { grid-template-columns: 1fr; }
  .desktop-icons { max-height: calc(100vh - 120px); }
  .about-side { display: none; }
}

/* ===================== Mobile (html.mobile, set from JS) ===================== */
html.mobile .taskbar { height: 38px; }
html.mobile .start-menu { bottom: 38px; width: 100%; border-radius: 0; }
html.mobile .xp-balloon { bottom: 48px; }
html.mobile .title-bar { height: 38px; padding-top: 2px; }
html.mobile .tb-btn { width: 28px; height: 28px; }
html.mobile .tb-btn svg { width: 14px; height: 14px; }
html.mobile .tb-max { display: none; }            /* fullscreen is the only mode */
html.mobile .menu-bar, html.mobile .tool-bar { display: none; }
html.mobile .addr-bar { height: 30px; }
html.mobile .window { border-radius: 0; padding: 0 2px 2px; min-width: 0; }
html.mobile .resize-handle, html.mobile .status-grip { display: none; }
html.mobile .status-bar { height: 24px; }
html.mobile .task-btn { height: 32px; min-width: 44px; width: 132px; font-size: 12px; }
html.mobile .start-button { font-size: 19px; gap: 7px; padding-right: 28px; }
html.mobile .start-flag { width: 24px; height: 24px; }
html.mobile .tray { gap: 10px; }
html.mobile .tray-icon { width: 20px; height: 20px; }
html.mobile .tray-clock { font-size: 12px; }
html.mobile .desk-icon { width: 80px; padding: 10px 2px 8px; }
html.mobile .desk-icon .di-label { font-size: 12px; }
html.mobile .sm-item { padding: 9px 8px; }
html.mobile .sm-text b { font-size: 13px; }
html.mobile .start-footer-btn { padding: 8px 9px; font-size: 12px; }
html.mobile .app { font-size: 14px; line-height: 1.55; }
html.mobile .app .lead { font-size: 14px; }
html.mobile .about-main p { font-size: 14px; }
html.mobile .term-out, html.mobile .term-input { font-size: 14px; }
html.mobile .user-tile { min-height: 84px; }
html.mobile .contact-link { padding: 13px 12px; }
