/* Barry OS. A modern desktop in the style people know from current Windows,
   with its own name, logo, icons, and wallpaper. */
:root {
  --accent: #1a73e8;
  --accent-ink: #ffffff;
  --wall-a: #2f8cff;
  --wall-b: #0a43b8;
  --wall-c: #6ad7ff;
  --wall-d: #7b6cff;
  --ink: #1b1b1b;
  --ink-2: #5c5c5c;
  --surface: #ffffff;
  --chrome: #f3f3f3;
  --line: rgba(0, 0, 0, 0.12);
  --tea: #fff1cf;
  --tea-ink: #5a3b00;
  --taskbar-h: 48px;
  --radius: 8px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font: 14px/1.45 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: linear-gradient(155deg, var(--wall-a), var(--wall-b)) fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Wallpaper: a clean gradient with three large, soft glows. */
.wallpaper { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.wallpaper i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.7; transition: background 1.2s; }
.wallpaper i:nth-child(1) { width: 58vw; height: 58vw; left: -16vw; top: -24vw; background: var(--wall-c); }
.wallpaper i:nth-child(2) { width: 52vw; height: 52vw; right: -14vw; bottom: -22vw; background: var(--wall-d); }
.wallpaper i:nth-child(3) { width: 30vw; height: 30vw; left: 46vw; top: 18vh; background: #ffffff; opacity: 0.16; }

/* Mood colours. Every mood is a lively colour, never a dull one. */
body[data-mood="proud"] { --accent: #0f9d58; --wall-a: #22c27a; --wall-b: #06794a; --wall-c: #a6f3c8; --wall-d: #ffe27a; }
body[data-mood="excited"] { --accent: #0aa5c2; --wall-a: #19c9e6; --wall-b: #0767ad; --wall-c: #a8f6ff; --wall-d: #6ea8ff; }
body[data-mood="grumpy"] { --accent: #0b5ed7; --wall-a: #1b6cf0; --wall-b: #06308f; --wall-c: #58a4ff; --wall-d: #4458e6; }
body[data-mood="suspicious"] { --accent: #5b4bd6; --wall-a: #5a4be0; --wall-b: #1f1672; --wall-c: #9a86ff; --wall-d: #2fb7ff; }
body[data-mood="bored"] { --accent: #2f8fc4; --wall-a: #58b7e6; --wall-b: #2b6fae; --wall-c: #c7efff; --wall-d: #a8b6ff; }
body[data-mood="overwhelmed"] { --accent: #b03ad6; --wall-a: #a747e6; --wall-b: #47159a; --wall-c: #ff8fd8; --wall-d: #7c6bff; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.noscript { color: #fff; padding: 24px; }
.noscript a { color: #fff; }

button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--accent); }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; box-shadow: 0 0 0 4px #fff; }

.ico { display: inline-flex; flex: none; }
.ico svg { width: 100%; height: 100%; display: block; shape-rendering: geometricPrecision; }

/* Shared controls */
.btn, .chat-form button, .fame button[type="submit"] {
  display: inline-block; padding: 6px 16px; border: 1px solid transparent; border-radius: 4px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none;
}
.btn:hover, .chat-form button:hover, .fame button[type="submit"]:hover { filter: brightness(1.08); }
.plain, .mines-top button, .ghost {
  padding: 5px 12px; border: 1px solid #d1d1d1; border-bottom-color: #b8b8b8; border-radius: 4px; background: #fbfbfb; font-size: 13px;
}
.plain:hover, .mines-top button:hover, .ghost:hover { background: #f0f0f0; }
button:disabled { opacity: 0.6; cursor: default; }

/* Boot and fake crash screens */
.boot, .bsod { position: fixed; inset: 0; z-index: 9000; }
.boot { background: #000; color: #fff; display: grid; place-content: center; justify-items: center; gap: 22px; }
.boot-logo { width: 112px; height: 112px; }
.boot-logo svg { width: 100%; height: 100%; }
.boot-spinner { display: flex; gap: 8px; height: 10px; }
.boot-spinner i { width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: 0.25; }
.boot-text { margin: 0; min-height: 20px; color: #c9c9c9; font-size: 14px; }
.boot-skip { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; margin: 0; color: #6f6f6f; font-size: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .boot-spinner i { animation: dot 1.1s infinite ease-in-out; }
  .boot-spinner i:nth-child(2) { animation-delay: 0.12s; }
  .boot-spinner i:nth-child(3) { animation-delay: 0.24s; }
  .boot-spinner i:nth-child(4) { animation-delay: 0.36s; }
  .boot-spinner i:nth-child(5) { animation-delay: 0.48s; }
  @keyframes dot { 0%, 100% { opacity: 0.2; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1.15); } }
}
.bsod { background: #0a59c9; color: #fff; padding: 12vh 10vw; font-size: 22px; line-height: 1.45; }
.bsod-face { font-size: 120px; line-height: 1; font-weight: 300; margin-bottom: 28px; }
.bsod p { margin: 0 0 14px; max-width: 820px; }
.bsod-detail { font-size: 14px; opacity: 0.88; white-space: pre-wrap; }

/* Desktop */
.desktop { position: fixed; inset: 0 0 var(--taskbar-h) 0; overflow: hidden; }

.icons { position: absolute; top: 10px; left: 8px; display: grid; grid-auto-flow: column; grid-template-rows: repeat(auto-fill, 96px); gap: 4px; height: calc(100% - 20px); z-index: 1; }
.icon { width: 84px; height: 92px; padding: 6px 2px 4px; display: grid; justify-items: center; align-content: start; gap: 4px; background: transparent; border: 1px solid transparent; border-radius: 4px; color: #fff; font-size: 12px; line-height: 1.25; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75), 0 0 1px rgba(0, 0, 0, 0.8); }
.icon:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.22); }
.icon-ico { width: 48px; height: 48px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.3)); transition: transform 0.12s; }
.icon:hover .icon-ico { transform: translateY(-2px) scale(1.04); }
.icon.pressed { background: rgba(255, 255, 255, 0.24); border-color: rgba(255, 255, 255, 0.4); }
.icon.pressed .icon-ico { transform: scale(0.92); }

/* Windows. The layer fills the desktop so windows can be sized against it,
   and lets clicks through to the desktop icons underneath. */
.windows { position: absolute; inset: 0; pointer-events: none; }
.win { pointer-events: auto; position: absolute; display: flex; flex-direction: column; min-width: 260px; background: var(--surface); border: 1px solid rgba(0, 0, 0, 0.22); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); }
.win.active { box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38), 0 2px 8px rgba(0, 0, 0, 0.2); border-color: rgba(0, 0, 0, 0.3); }
.win.max { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0; border: 0; }
.win-bar { display: flex; align-items: center; height: 34px; flex: none; padding-left: 10px; gap: 8px; background: var(--chrome); cursor: default; user-select: none; touch-action: none; }
.win-ico { width: 18px; height: 18px; }
.win-title { flex: 1; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.win.active .win-title { color: var(--ink); }
.caps { display: flex; height: 100%; }
.cap { width: 46px; height: 100%; padding: 0; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink); }
.cap svg { width: 10px; height: 10px; }
.cap:hover { background: rgba(0, 0, 0, 0.07); }
.cap-close:hover { background: #c42b1c; color: #fff; }
.cap:focus-visible { outline-offset: -2px; box-shadow: none; }
.win-body { flex: 1; min-height: 0; overflow: auto; background: var(--surface); }
@media (prefers-reduced-motion: no-preference) {
  .win { animation: pop 0.18s cubic-bezier(0.2, 0.9, 0.3, 1); }
  @keyframes pop { from { transform: scale(0.96) translateY(6px); } }
  .win.shake { animation: shake 0.4s; }
  @keyframes shake { 20% { transform: translate(-6px, 2px); } 40% { transform: translate(5px, -2px); } 60% { transform: translate(-4px, 1px); } 80% { transform: translate(3px, 0); } }
}

/* Taskbar */
.taskbar { position: fixed; left: 0; right: 0; bottom: 0; height: var(--taskbar-h); z-index: 8000; background: rgba(243, 243, 243, 0.86); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); border-top: 1px solid rgba(0, 0, 0, 0.1); }
.taskbar-center { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; gap: 4px; padding: 0 200px; }
.tasks { display: flex; gap: 4px; align-items: center; }
.task { position: relative; width: 40px; height: 40px; padding: 0; border: 1px solid transparent; border-radius: 4px; background: transparent; display: grid; place-items: center; }
.task:hover, .task.active { background: rgba(255, 255, 255, 0.78); border-color: rgba(0, 0, 0, 0.06); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.task-ico { width: 28px; height: 28px; transition: transform 0.12s; }
.start .task-ico { width: 30px; height: 30px; }
.task::after { content: ""; position: absolute; bottom: 2px; left: 50%; width: 0; height: 3px; border-radius: 2px; background: #8a8a8a; transform: translateX(-50%); transition: width 0.15s, background 0.15s; }
.task.running::after { width: 6px; }
.task.active::after { width: 16px; background: var(--accent); }
.task:active .task-ico { transform: scale(0.88); }

.tray { position: absolute; right: 4px; top: 0; bottom: 0; display: flex; align-items: center; gap: 2px; font-size: 12px; white-space: nowrap; }
.tray-btn { height: 36px; padding: 0 8px; border: 1px solid transparent; border-radius: 4px; background: transparent; display: flex; align-items: center; gap: 6px; font-size: 12px; }
.tray-btn:hover { background: rgba(255, 255, 255, 0.78); border-color: rgba(0, 0, 0, 0.06); }
.tray-ico { width: 22px; height: 22px; }
.tray-sound { padding: 0 6px; color: var(--ink-2); }
.tray-sound svg { width: 18px; height: 18px; display: block; }
.tray-mood { padding: 0 8px; text-transform: capitalize; color: var(--ink-2); }
.tray-clock { display: grid; justify-items: end; padding: 0 10px 0 6px; line-height: 1.25; }

/* Start menu */
.start-menu { position: fixed; left: 50%; bottom: calc(var(--taskbar-h) + 12px); transform: translateX(-50%); z-index: 8001; width: min(600px, calc(100vw - 16px)); max-height: calc(100vh - var(--taskbar-h) - 24px); display: flex; flex-direction: column; background: rgba(243, 243, 243, 0.94); -webkit-backdrop-filter: blur(30px) saturate(1.4); backdrop-filter: blur(30px) saturate(1.4); border: 1px solid rgba(0, 0, 0, 0.16); border-radius: var(--radius); box-shadow: 0 22px 60px rgba(0, 0, 0, 0.4); overflow: hidden; }
.start-brand { display: flex; align-items: center; gap: 14px; margin: 24px 36px 10px; }
.start-brand .ico { width: 44px; height: 44px; filter: drop-shadow(0 3px 6px rgba(11, 79, 196, 0.35)); }
.start-brand b { display: block; font-size: 20px; font-weight: 600; line-height: 1.2; }
.start-brand small { display: block; font-size: 12px; color: var(--ink-2); }
.start-label { margin: 12px 36px 6px; font-weight: 600; font-size: 13px; }
.start-grid { padding: 4px 24px 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 4px; overflow-y: auto; }
.start-grid button { height: 84px; padding: 8px 4px 4px; display: grid; justify-items: center; align-content: start; gap: 6px; border: 1px solid transparent; border-radius: 4px; background: transparent; font-size: 12px; line-height: 1.2; }
.start-grid button:hover { background: rgba(255, 255, 255, 0.8); border-color: rgba(0, 0, 0, 0.05); }
.start-ico { width: 36px; height: 36px; }
.start-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 32px; background: rgba(0, 0, 0, 0.045); border-top: 1px solid rgba(0, 0, 0, 0.08); font-size: 13px; }
.start-user { display: flex; align-items: center; gap: 10px; }
.start-user .ico { width: 28px; height: 28px; }
.start-power { display: flex; gap: 6px; align-items: center; }
#start-shutdown { width: 34px; height: 32px; padding: 6px; display: grid; place-items: center; }
#start-shutdown svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .start-menu { animation: menu 0.18s cubic-bezier(0.2, 0.9, 0.3, 1); }
  @keyframes menu { from { transform: translateX(-50%) translateY(24px); } }
}

/* Characters */
.stage { position: absolute; inset: 0; pointer-events: none; z-index: 7000; }
.barry-bot { position: absolute; bottom: 0; left: 0; width: 72px; height: 98px; will-change: transform; pointer-events: auto; cursor: pointer; background: none; border: 0; padding: 0; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.28)); }
.barry-bot svg { width: 100%; height: 100%; overflow: visible; display: block; }
.barry-bot.flip svg { transform: scaleX(-1); }
.barry-bot:focus-visible { box-shadow: none; outline: 2px solid #fff; outline-offset: 2px; border-radius: 12px; }

/* Barry's art: also used for his head in the comic strip. */
.barry-art .screen { fill: var(--accent); transition: fill 0.8s; }
.barry-art .face { fill: #fff; }
.barry-art .face .line { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.barry-art .f { display: none; }
.barry-art[data-face="happy"] .f-happy, .barry-art[data-face="flat"] .f-flat, .barry-art[data-face="sad"] .f-sad,
.barry-art[data-face="shock"] .f-shock, .barry-art[data-face="angry"] .f-angry, .barry-art[data-face="smug"] .f-smug,
.barry-art[data-face="party"] .f-party { display: block; }
.barry-art .bot-body, .barry-art .bot-wheel, .barry-art .eye, .barry-art .beacon { transform-box: fill-box; }
.barry-art .bot-body { transform-origin: 50% 100%; transition: transform 0.25s ease-out; }
.barry-art .bot-wheel { transform-origin: center; }
.barry-art .eye { transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
  /* Idle: a gentle float, a blink, and a glowing beacon, so he never looks switched off. */
  .barry-bot .bot-body { animation: hover 2.6s ease-in-out infinite; }
  .barry-bot .eye { animation: blink 4.2s infinite; }
  .barry-bot .beacon { animation: beacon 1.8s ease-in-out infinite; }
  @keyframes hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
  @keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }
  @keyframes beacon { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.35) drop-shadow(0 0 3px #ffa726); } }

  /* Moving: the wheel spins and he leans into it. */
  .barry-bot.walking .bot-wheel { animation: spin 0.42s linear infinite; }
  .barry-bot.walking .bot-body { animation: lean 0.3s ease-in-out infinite alternate; }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes lean { from { transform: rotate(6deg) translateY(0); } to { transform: rotate(7.5deg) translateY(-1.5px); } }

  /* Talking: a small nod. */
  .barry-bot.talking:not(.walking) .bot-body { animation: nod 0.5s ease-in-out infinite alternate; }
  @keyframes nod { from { transform: translateY(0) rotate(-1.5deg); } to { transform: translateY(-2px) rotate(1.5deg); } }
}

.bubble { position: absolute; bottom: 108px; left: 0; max-width: min(320px, 80vw); width: max-content; padding: 10px 14px; background: #fff; color: var(--ink); border: 1px solid rgba(0, 0, 0, 0.14); border-radius: 14px 14px 14px 4px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28); font-size: 13px; pointer-events: none; }
.bubble.right { border-radius: 14px 14px 4px 14px; }
/* The tail of the bubble, pointing down at Barry like in a comic. */
.bubble::before, .bubble::after { content: ""; position: absolute; top: 100%; left: 20px; width: 0; height: 0; border-style: solid; border-color: transparent; border-width: 0 16px 0 5px; }
.bubble::before { border-top: 16px solid rgba(0, 0, 0, 0.2); margin-top: 1px; }
.bubble::after { border-top: 15px solid #fff; margin-top: -1px; }
.bubble.right::before, .bubble.right::after { left: auto; right: 20px; border-width: 0 5px 0 16px; }
.bubble.right::before { border-top-width: 16px; }
.bubble.right::after { border-top-width: 15px; }
.bubble b { display: block; font-size: 11px; font-weight: 600; color: var(--accent); }

/* The visible pointer Barry uses to open things. */
.ghost-pointer { position: absolute; left: 0; top: 0; width: 26px; height: 26px; z-index: 2; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45)); will-change: transform; }
.ghost-pointer svg { width: 100%; height: 100%; display: block; transition: transform 0.09s; transform-origin: 20% 12%; }
.ghost-pointer.press svg { transform: scale(0.8); }
.ghost-pointer::after { content: ""; position: absolute; left: -9px; top: -9px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; opacity: 0; }
.ghost-pointer.press::after { opacity: 0.9; transform: scale(1.25); transition: transform 0.1s, opacity 0.1s; }

/* Notifications from Cha-Bot */
.toasts { position: absolute; right: 12px; bottom: 12px; z-index: 7500; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.toast { width: min(340px, 90vw); display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: rgba(249, 249, 249, 0.97); border: 1px solid rgba(0, 0, 0, 0.14); border-radius: var(--radius); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3); font-size: 13px; white-space: pre-wrap; }
.toast-ico { width: 36px; height: 36px; }
.toast b { display: block; font-size: 12px; font-weight: 600; }
.toast span { display: block; color: #333; }
@media (prefers-reduced-motion: no-preference) {
  .bubble { animation: rise 0.2s ease-out; }
  @keyframes rise { from { transform: translateY(8px); } }
  .toast { animation: slide 0.25s cubic-bezier(0.2, 0.9, 0.3, 1); }
  @keyframes slide { from { transform: translateX(40px); } }
}

/* App: terminal */
.term { height: 100%; display: flex; flex-direction: column; background: #0c0c0c; color: #cccccc; font: 13px/1.5 "Cascadia Mono", Consolas, ui-monospace, monospace; }
.term-out { flex: 1; overflow-y: auto; padding: 10px 12px 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.term-out .cmd { color: #16c60c; }
.term-out .barry-line { color: #61d6d6; }
.term-out .dim { color: #767676; }
.term-in { display: flex; gap: 8px; padding: 4px 12px 10px; }
.term-in span { color: #16c60c; }
.term-in input { flex: 1; background: transparent; border: 0; color: inherit; font: inherit; outline: none; box-shadow: none; }

/* App: code review */
.editor { height: 100%; display: flex; flex-direction: column; background: #1e1e1e; color: #d4d4d4; font: 13px/1.55 "Cascadia Code", "Cascadia Mono", Consolas, ui-monospace, monospace; container-type: inline-size; }
.editor-body { flex: 1; min-height: 0; display: flex; }
.editor-activity { flex: none; width: 44px; background: #333333; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 6px; }
.editor-activity span { width: 44px; height: 40px; display: grid; place-items: center; color: #858585; border-left: 2px solid transparent; box-sizing: border-box; }
.editor-activity span.on { color: #fff; border-left-color: #fff; }
.editor-activity svg { width: 22px; height: 22px; }
.editor-side { flex: none; width: 168px; background: #252526; font: 12px/1.5 "Segoe UI", system-ui, sans-serif; color: #cccccc; overflow: hidden; }
.editor-side-title { padding: 9px 16px 8px; font-size: 11px; letter-spacing: 0.04em; color: #bbbbbb; }
.editor-folder { padding: 3px 8px 3px 20px; font-size: 11px; font-weight: 700; position: relative; }
.editor-folder::before { content: ""; position: absolute; left: 8px; top: 8px; border: 4px solid transparent; border-top-color: #c5c5c5; }
.editor-file { display: flex; align-items: center; gap: 6px; padding: 3px 8px 3px 26px; white-space: nowrap; }
.editor-file.on { background: #37373d; color: #fff; }
.ft { flex: none; width: 16px; font: 700 9px/16px "Segoe UI", system-ui, sans-serif; font-style: normal; text-align: center; color: #519aba; }
.ft-cs { color: #4fb361; }
.ft-xml { color: #e37933; }
.editor-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.editor-tabs { flex: none; display: flex; background: #252526; font: 13px "Segoe UI", system-ui, sans-serif; }
.editor-tab { display: flex; align-items: center; gap: 6px; padding: 7px 10px 7px 12px; background: #1e1e1e; color: #fff; border-top: 1px solid #0078d4; }
.editor-x { margin-left: 6px; color: #c5c5c5; font-size: 15px; line-height: 1; }
.editor-crumbs { flex: none; padding: 3px 16px; font: 12px "Segoe UI", system-ui, sans-serif; color: #a9a9a9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.editor-code { flex: 1; overflow: auto; padding: 4px 0 10px; scrollbar-color: #4f4f4f #1e1e1e; }
.editor-line { display: flex; white-space: pre; padding-right: 14px; min-height: 1.55em; }
.editor-line:hover { background: #2a2d2e; }
.editor-n { flex: none; width: 40px; margin-right: 16px; text-align: right; color: #858585; user-select: none; }
.editor-line .tk-kw { color: #569cd6; }
.editor-line .tk-ty { color: #4ec9b0; }
.editor-line .tk-fn { color: #dcdcaa; }
.editor-line .tk-id { color: #9cdcfe; }
.editor-line .tk-st { color: #ce9178; }
.editor-line .tk-nu { color: #b5cea8; }
.editor-line .tk-cm { color: #6a9955; }
/* Barry's notes: comments in the file, marked like an inline review remark. */
.editor-line.review { background: rgba(0, 120, 212, 0.16); box-shadow: inset 3px 0 0 #0078d4; }
.editor-line.review .tk-cm { color: #e2c08d; }
.editor-status { flex: none; display: flex; align-items: center; gap: 14px; padding: 2px 12px; background: #007acc; color: #fff; font: 12px/1.6 "Segoe UI", system-ui, sans-serif; white-space: nowrap; overflow: hidden; }
.editor-branch::before { content: "\2387"; margin-right: 5px; }
.editor-status-gap { flex: 1; }
@container (max-width: 560px) { .editor-side { display: none; } }
@container (max-width: 400px) { .editor-activity { display: none; } }

/* App: Minesweeper */
.mines { padding: 14px; display: grid; gap: 10px; justify-items: center; background: #f6f7f9; min-height: 100%; }
.mines-top { display: flex; gap: 10px; align-items: center; width: 100%; justify-content: space-between; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.mines-top button[aria-pressed="true"] { background: #fff1cf; border-color: #d9a400; }
.mines-grid { display: grid; grid-template-columns: repeat(8, 32px); gap: 2px; padding: 6px; background: #c3ccd9; border-radius: 6px; touch-action: manipulation; }
.cell { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 4px; background: linear-gradient(#9fb4d6, #7f97bf); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.16), 0 1px 1px rgba(0, 0, 0, 0.25); font: 700 15px "Segoe UI", system-ui, sans-serif; color: var(--ink); }
/* Closed squares are raised tiles. Opened squares are flat and sunken. */
.cell:hover:not(:disabled):not(.open) { background: linear-gradient(#b4c6e4, #93a9cf); }
.cell:active:not(:disabled):not(.open) { background: #7f97bf; box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.28); }
.cell.open { background: #fbfcfe; box-shadow: inset 0 0 0 1px #dfe5ee; opacity: 1; }
.cell.mine { background: #f1707a; box-shadow: inset 0 0 0 1px #d8525d; }
/* A flagged square: a red flag on a pole, drawn with two pseudo-elements. */
.cell.flag { position: relative; }
.cell.flag::before { content: ""; position: absolute; left: 13px; top: 7px; width: 12px; height: 10px; background: #e0241b; clip-path: polygon(0 0, 100% 50%, 0 100%); filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.25)); }
.cell.flag::after { content: ""; position: absolute; left: 8px; top: 6px; width: 8px; height: 20px; background: linear-gradient(#1f2633, #1f2633) center top / 2px 18px no-repeat, linear-gradient(#1f2633, #1f2633) center bottom / 8px 2px no-repeat; }
.cell.wrong { background: linear-gradient(to top right, transparent 46%, #8d1c1c 46%, #8d1c1c 54%, transparent 54%), #ffd9d9; box-shadow: inset 0 0 0 1px #e9a9a9; }
.cell.n1 { color: #1a73e8; } .cell.n2 { color: #12893f; } .cell.n3 { color: #d13438; } .cell.n4 { color: #5a2ca0; }
.cell.n5 { color: #8d1c1c; } .cell.n6 { color: #00796b; } .cell.n7 { color: #111; } .cell.n8 { color: #616161; }
.mines-msg { min-height: 20px; text-align: center; font-size: 13px; color: var(--ink-2); }
.fame { width: 100%; }
.fame h3 { margin: 4px 0; font-size: 13px; }
.fame ol { margin: 0; padding-left: 22px; font-size: 13px; }
.fame form { display: flex; gap: 6px; margin-top: 6px; }
.fame input { flex: 1; min-width: 0; padding: 6px 10px; border: 1px solid #d1d1d1; border-bottom: 2px solid #8a8a8a; border-radius: 4px; font: inherit; background: #fff; }
.fame input:focus { border-bottom-color: var(--accent); outline: none; box-shadow: none; }

/* App: tea forecast */
.tea { min-height: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; padding: 0 0 12px; background: #fbf7f0; }
.tea-hero { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #f59f00 0%, transparent 60%), linear-gradient(135deg, #e8590c, #a8431a); }
.tea-kicker { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.9; }
.tea-time { font-size: 40px; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.tea-place { font-size: 16px; font-weight: 600; opacity: 0.95; }
.tea-cup { flex: none; width: 84px; height: 84px; }
.tea-cup svg { width: 100%; height: 100%; }
.tea-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 14px; }
.tea-fact { display: grid; gap: 2px; align-content: start; padding: 9px 10px; background: #fff; border: 1px solid #eddfc9; border-radius: 10px; }
.tea-fact span { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #9a7b55; }
.tea-fact b { font-size: 14px; font-weight: 650; color: #4a2b0d; }
.tea-bar { height: 4px; margin-top: 3px; border-radius: 2px; background: #f1e3cd; overflow: hidden; }
.tea-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f59f00, #e8590c); }
.tea-map { flex: 1; min-height: 220px; margin: 0 14px; border: 1px solid #e3d3bb; border-radius: 12px; overflow: hidden; background: #e8ecf2; z-index: 0; }
.tea-map .leaflet-container { font: inherit; }
.tea-pin { background: none; border: 0; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.35)); }
.tea-pin svg { width: 40px; height: 52px; display: block; }
.tea-says { margin: 0 16px; font-size: 13px; color: #4a2b0d; }
.tea .note { margin: 0 16px; font-size: 11px; color: #9a7b55; }
@media (prefers-reduced-motion: no-preference) {
  .tea-cup .steam { animation: tea-steam 2.6s ease-in-out infinite; }
}
@keyframes tea-steam { 0%, 100% { opacity: 0.35; transform: translateY(2px); } 50% { opacity: 1; transform: translateY(-2px); } }

/* App: Messenger */
.chat { height: 100%; display: flex; flex-direction: column; background: #fff; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border-bottom: 1px solid #e6e8ee; box-shadow: 0 1px 4px rgba(20, 30, 60, 0.06); z-index: 1; }
.chat-head b { display: block; font-size: 14px; line-height: 1.2; }
.chat-status { font-size: 11px; color: var(--ink-2); }
.chat-dot { margin-left: auto; width: 10px; height: 10px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 3px rgba(47, 191, 113, 0.2); }
.chat-dot.away { background: #c2c7d0; box-shadow: none; }
.chat-avatar { flex: none; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; align-self: flex-end; }
.chat-head .chat-avatar { width: 38px; height: 38px; align-self: center; }
.chat-avatar svg { display: block; width: 100%; height: 100%; }
.chat-log { flex: 1; overflow-y: auto; padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 3px; background: linear-gradient(#f3f5fb, #eceff8); }
.chat-day { align-self: center; margin: 2px 0 8px; padding: 2px 10px; border-radius: 999px; background: rgba(20, 30, 60, 0.08); font-size: 11px; color: var(--ink-2); }
.chat-row { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; animation: msg-in 0.18s ease-out; }
.chat-row.first { margin-top: 8px; }
.chat-row.mine { justify-content: flex-end; }
.msg { position: relative; max-width: 78%; padding: 7px 11px 6px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.4; box-shadow: 0 1px 1px rgba(20, 30, 60, 0.08); }
.msg .who { display: block; font-size: 11px; font-weight: 600; color: var(--accent); margin-bottom: 1px; }
.msg.chabot .who { color: var(--tea-ink); }
.msg-meta { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 5px 0 -1px 10px; font-size: 10px; opacity: 0.62; white-space: nowrap; }
.msg-ticks { display: inline-flex; width: 15px; }
.msg-ticks svg { width: 100%; height: auto; }
.msg-ticks.done { color: #9fe3ff; opacity: 1; }
.msg-ticks.failed { visibility: hidden; }
.msg.barry { background: #fff; }
.msg.chabot { background: var(--tea); color: var(--tea-ink); }
.msg.visitor { background: linear-gradient(135deg, #4f7dff, #3b5bdb); color: #fff; }
.msg.visitor .msg-meta { opacity: 0.85; }
/* The first bubble of a run has a small tail on the sender's side. */
.chat-row.first.theirs .msg { border-bottom-left-radius: 5px; }
.chat-row.first.mine .msg { border-bottom-right-radius: 5px; }
.msg.dots { display: inline-flex; gap: 4px; align-items: center; padding: 11px 13px; }
.msg.dots i { width: 6px; height: 6px; border-radius: 50%; background: #9aa3b8; animation: dot-hop 1s infinite ease-in-out; }
.msg.dots i:nth-child(2) { animation-delay: 0.15s; }
.msg.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot-hop { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .chat-row, .msg.dots i { animation: none; } }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px 8px; border-top: 1px solid #e6e8ee; background: #fff; }
.chat-form textarea { flex: 1; min-width: 0; resize: none; max-height: 96px; box-sizing: border-box; scrollbar-width: none; padding: 8px 14px; border: 1px solid #d8dce6; border-radius: 18px; background: #f4f6fb; font: inherit; font-size: 13px; line-height: 1.4; }
.chat-form textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.15); }
.chat-form button.chat-send { flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #4f7dff, #3b5bdb); color: #fff; cursor: pointer; }
.chat-form button.chat-send svg { width: 18px; height: 18px; }
.chat-form button.chat-send:disabled { opacity: 0.5; cursor: default; }
.chat-note { padding: 0 12px 6px; font-size: 11px; color: var(--ink-2); }
.chat-memory { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 6px 12px 10px; border-top: 1px solid #ececec; font-size: 12px; color: var(--ink-2); }
.chat-memory:empty { display: none; }
.chat-memory button { padding: 3px 10px; font-size: 12px; }
.chat-memory-form { display: flex; gap: 6px; }
.chat-memory-form input { width: 130px; padding: 3px 8px; font-size: 12px; }
.chat-memory small { flex-basis: 100%; font-size: 11px; }

/* App: browser (The Morning Dispatch) */
.browser { height: 100%; display: flex; flex-direction: column; background: #fff; }
.browser-bar { display: flex; gap: 8px; align-items: center; padding: 6px 8px; background: #f7f7f7; border-bottom: 1px solid #e0e0e0; }
.browser-url { flex: 1; padding: 5px 14px; background: #fff; border: 1px solid #dcdcdc; border-radius: 16px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.browser-bar .btn { font-size: 12px; padding: 5px 12px; white-space: nowrap; }
.browser-frame { flex: 1; width: 100%; border: 0; background: #fff; }
.browser-card { padding: 18px; }
.browser-card h3 { margin: 0 0 6px; font: 700 20px Georgia, serif; }

/* App: mail */
.mail { height: 100%; display: grid; grid-template-columns: 210px 1fr; background: #fff; }
.mail-list { border-right: 1px solid #e5e5e5; overflow-y: auto; background: #f7f8fa; padding: 4px; }
.mail-list button { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-left: 3px solid transparent; border-radius: 4px; background: transparent; }
.mail-list button:hover { background: #eceff3; }
.mail-list button[aria-selected="true"] { background: #e2ecfb; border-left-color: var(--accent); }
.mail-list button.pinned b::after { content: " (pinned)"; font-weight: 400; color: var(--ink-2); }
.mail-list b, .mail-list span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-list b { font-weight: 600; }
.mail-list span { font-size: 12px; color: var(--ink-2); }
.mail-reader { padding: 16px 20px; overflow-y: auto; }
.mail-reader h3 { margin: 0 0 2px; font-size: 18px; font-weight: 600; }
.mail-from { font-size: 12px; color: var(--ink-2); margin-bottom: 12px; }
.mail-reader p { margin: 0 0 10px; }

/* App: jukebox. A glowing arch with a screen, chunky buttons, a board of selections. */
.juke { min-height: 100%; box-sizing: border-box; padding: 10px; display: grid; gap: 9px; align-content: start; background: radial-gradient(120% 60% at 50% 0%, #5a2046 0%, #2a1030 55%, #170a1f 100%); color: #ffe9c7; font-family: "Segoe UI", system-ui, sans-serif; --neon: #ffb347; --neon-2: #ff5fa2; --glow: #7df9c8; }
.juke-arch { padding: 10px 10px 10px; border-radius: 120px 120px 12px 12px / 70px 70px 12px 12px; background: linear-gradient(#3a1530, #22102a); border: 3px solid var(--neon); box-shadow: 0 0 0 3px #2a1030, 0 0 0 6px var(--neon-2), 0 0 22px rgba(255, 95, 162, 0.55), inset 0 0 18px rgba(255, 179, 71, 0.25); display: grid; gap: 8px; }
.juke-sign { text-align: center; font: 700 15px/1.2 Georgia, "Times New Roman", serif; letter-spacing: 0.22em; color: #fff3d6; text-shadow: 0 0 6px var(--neon), 0 0 14px var(--neon-2); padding-top: 4px; }
.juke-screen { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #07040b; border: 2px solid #0a0610; box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 179, 71, 0.5); }
.juke-screen iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.juke-idle { height: 100%; display: grid; place-items: center; align-content: center; gap: 8px; background: radial-gradient(circle at 50% 40%, #2b1638, #07040b 70%); }
.juke-idle p { margin: 0; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #d9b98a; }
.juke-record { width: 86px; height: 86px; border-radius: 50%; background: radial-gradient(circle, #ffb347 0 13%, #1a1a1a 14% 17%, #c2255c 18% 33%, #0d0d0d 34%), repeating-radial-gradient(circle, #0d0d0d 0 2px, #1f1f1f 2px 3px); background-blend-mode: normal; box-shadow: 0 0 0 2px #2c2c2c, 0 6px 16px rgba(0, 0, 0, 0.6); }
.juke-display { display: grid; grid-template-columns: auto 1fr 74px; align-items: center; gap: 10px; padding: 6px 10px; background: #05070c; border: 1px solid #000; border-radius: 6px; box-shadow: inset 0 0 12px rgba(125, 249, 200, 0.12); font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; }
.juke-time { font-size: 20px; line-height: 1; font-weight: 700; color: var(--glow); text-shadow: 0 0 8px rgba(125, 249, 200, 0.6); font-variant-numeric: tabular-nums; }
.juke-title { overflow: hidden; white-space: nowrap; font-size: 12px; color: var(--glow); text-shadow: 0 0 6px rgba(125, 249, 200, 0.5); }
.juke-title span { display: inline-block; padding-left: 100%; animation: juke-scroll 14s linear infinite; }
.juke-bars { display: flex; gap: 2px; align-items: flex-end; height: 20px; }
.juke-bars i { flex: 1; height: 8%; background: linear-gradient(var(--neon-2), var(--neon) 45%, var(--glow)); }
.juke-controls { display: flex; justify-content: center; gap: 8px; }
.juke-btn { width: 50px; height: 34px; padding: 0; display: grid; place-items: center; border: 1px solid #5c3b12; border-radius: 17px; background: linear-gradient(#fff1cf, #f0b24a); color: #4a2408; box-shadow: inset 0 1px 0 #fff, 0 2px 0 #7a4a12, 0 4px 8px rgba(0, 0, 0, 0.4); cursor: pointer; }
.juke-btn:hover { background: linear-gradient(#fff8e6, #ffc566); }
.juke-btn:active, .juke-btn[aria-pressed="true"] { transform: translateY(2px); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35), 0 0 0 #7a4a12; background: linear-gradient(#f0b24a, #ffd98a); }
.juke-btn svg { width: 14px; height: 14px; }
.juke-btn.play[aria-pressed="true"] { color: #0a6a3c; }
.juke-board { padding: 8px; border-radius: 10px; background: linear-gradient(#3a1530, #22102a); border: 1px solid rgba(255, 179, 71, 0.55); display: grid; gap: 6px; }
.juke-board-title { text-align: center; font-size: 10px; letter-spacing: 0.3em; color: var(--neon); }
.juke-list { list-style: none; margin: 0; padding: 0; max-height: 196px; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; scrollbar-color: #7a4a12 transparent; }
.juke-list button { width: 100%; height: 100%; display: flex; align-items: center; gap: 7px; padding: 5px 7px; border: 1px solid #c9a25a; border-radius: 5px; background: linear-gradient(#fffaf0, #f6e6c4); color: #3a220c; font: inherit; text-align: left; cursor: pointer; }
.juke-list button:hover { background: linear-gradient(#fff, #ffeec2); }
.juke-list li.on button { border-color: var(--neon-2); box-shadow: 0 0 0 2px var(--neon-2), 0 0 10px rgba(255, 95, 162, 0.7); }
.juke-code { flex: none; min-width: 24px; padding: 2px 0; border-radius: 4px; background: #c2255c; color: #fff; font: 700 11px/1.3 "Cascadia Mono", Consolas, monospace; text-align: center; }
.juke-card { flex: 1; min-width: 0; display: grid; }
.juke-card b, .juke-card span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.juke-card b { font-size: 12px; font-weight: 600; }
.juke-card span { font-size: 10px; color: #7a5a30; }
.juke-plays { flex: none; font-size: 10px; color: #7a5a30; }
.juke-foot { font-size: 10px; color: #d9b98a; text-align: right; }
@keyframes juke-scroll { to { transform: translateX(-100%); } }
@keyframes juke-eq { from { height: 8%; } to { height: 100%; } }
@keyframes juke-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
  .juke-record { animation: juke-spin 6s linear infinite; }
  .juke[data-state="playing"] .juke-bars i { animation: juke-eq 0.5s infinite alternate ease-in-out; }
  .juke[data-state="playing"] .juke-bars i:nth-child(3n) { animation-duration: 0.36s; animation-delay: 0.1s; }
  .juke[data-state="playing"] .juke-bars i:nth-child(3n + 1) { animation-duration: 0.62s; animation-delay: 0.25s; }
  .juke[data-state="playing"] .juke-bars i:nth-child(4n) { animation-duration: 0.44s; animation-delay: 0.05s; }
}
@media (prefers-reduced-motion: reduce) { .juke-title span { animation: none; padding-left: 0; } }

/* App: whiteboard */
.board { background: #fdfdf8; padding: 8px; }
.board svg { width: 100%; height: auto; display: block; font-family: "Segoe UI", system-ui, sans-serif; }
.board rect { stroke: #1b2330; stroke-width: 1.6; }
.board .zone { fill: none; stroke: #8a97a8; stroke-width: 1.4; stroke-dasharray: 6 5; }
.board .chip { fill: #ffffff; stroke: #5b7bb0; stroke-width: 1.2; }
.board .a { fill: none; stroke: #1b2330; stroke-width: 1.8; }
.board .t { font-size: 12.5px; font-weight: 600; fill: #111822; }
.board .s { font-size: 10px; fill: #4a5565; }
.board .c { font-size: 10px; fill: #1f3a66; }
.board .z { font-size: 11px; font-weight: 600; fill: #5b6777; letter-spacing: 0.4px; }
.board .n { font-size: 9.5px; fill: #4a5565; }
.board .d { font: 700 19px "Comic Sans MS", "Segoe Print", cursive; fill: #d93025; }
.board .d2 { font: 13px "Comic Sans MS", "Segoe Print", cursive; fill: #d93025; }
.board .step { opacity: 0; transition: opacity 0.5s; }
.board .step.drawn { opacity: 1; }
.board-note { padding: 6px 12px 10px; font-size: 12px; color: var(--ink-2); background: #fdfdf8; }

/* The desktop's right-click menu, and the Personalize window it opens. */
.desk-menu { position: fixed; z-index: 8500; min-width: 210px; padding: 5px; display: grid; gap: 1px; background: rgba(249, 249, 249, 0.96); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); border: 1px solid rgba(0, 0, 0, 0.14); border-radius: 8px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26); animation: desk-menu-in 0.12s ease-out; }
.desk-menu button { display: flex; justify-content: space-between; align-items: center; gap: 24px; width: 100%; padding: 6px 12px; border: 0; border-radius: 5px; background: transparent; font: inherit; font-size: 13px; color: var(--ink); text-align: left; cursor: default; }
.desk-menu button:hover, .desk-menu button:focus-visible { background: rgba(0, 0, 0, 0.07); outline: none; }
.desk-menu kbd { font: inherit; font-size: 11px; color: var(--ink-2); }
.desk-menu hr { margin: 4px 8px; border: 0; border-top: 1px solid rgba(0, 0, 0, 0.1); }
@keyframes desk-menu-in { from { opacity: 0; transform: translateY(-4px); } }
.desk-sub-wrap { position: relative; }
.desk-chevron { font-size: 15px; line-height: 1; color: var(--ink-2); }
.desk-sub { display: none; position: absolute; top: -6px; left: calc(100% - 2px); min-width: 170px; padding: 5px; gap: 1px; background: rgba(249, 249, 249, 0.98); border: 1px solid rgba(0, 0, 0, 0.14); border-radius: 8px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26); }
.desk-menu.flip .desk-sub { left: auto; right: calc(100% - 2px); }
.desk-sub-wrap:hover > .desk-sub, .desk-sub-wrap:focus-within > .desk-sub, .desk-sub-wrap.open > .desk-sub { display: grid; }
.desk-sub-wrap:hover > button, .desk-sub-wrap.open > button { background: rgba(0, 0, 0, 0.07); }
.desk-sub button { justify-content: flex-start; gap: 8px; }
.desk-sub button::before { content: ""; width: 12px; flex: none; font-size: 12px; }
.desk-sub button[aria-checked="true"]::before { content: "\2713"; }
/* Icon sizes from the View menu. Medium is the default. */
.icons.icons-small { grid-template-rows: repeat(auto-fill, 76px); }
.icons.icons-small .icon { width: 72px; height: 72px; font-size: 11px; gap: 3px; }
.icons.icons-small .icon-ico { width: 32px; height: 32px; }
.icons.icons-large { grid-template-rows: repeat(auto-fill, 124px); }
.icons.icons-large .icon { width: 104px; height: 120px; font-size: 13px; gap: 6px; }
.icons.icons-large .icon-ico { width: 68px; height: 68px; }
.icons.refreshing .icon { animation: icons-refresh 0.28s ease-out; }
@keyframes icons-refresh { 0% { opacity: 0; } 100% { opacity: 1; } }
.personalize { padding: 18px 20px; background: #f6f7f9; min-height: 100%; box-sizing: border-box; }
.personalize h2 { margin: 0 0 4px; font-size: 20px; font-weight: 600; }
.personalize h3 { margin: 18px 0 8px; font-size: 14px; font-weight: 600; }
.wall-note { margin: 0 0 14px; font-size: 12px; color: var(--ink-2); }
.wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.wall-option { display: grid; gap: 5px; padding: 4px 4px 6px; border: 2px solid transparent; border-radius: 8px; background: transparent; font: inherit; font-size: 11px; color: var(--ink); cursor: pointer; }
.wall-option:hover { background: rgba(0, 0, 0, 0.05); }
.wall-option[aria-checked="true"] { border-color: var(--accent); background: #fff; }
.wall-swatch { display: block; height: 50px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.wall-custom { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; }
.wall-custom label { display: flex; align-items: center; gap: 8px; }
.wall-custom input { width: 44px; height: 30px; padding: 0; border: 1px solid #c9ccd4; border-radius: 5px; background: #fff; }
.wall-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.wall-status { margin: 0; font-size: 12px; color: var(--ink-2); }
/* App: projects. Laid out like a GitHub profile page. */
.projects { padding: 18px 22px 22px; background: #fff; min-height: 100%; color: #1f2328; line-height: 1.5; }
.projects a { color: #0969da; text-decoration: none; }
.projects a:hover { text-decoration: underline; }
.projects-top { padding-bottom: 12px; border-bottom: 1px solid #d1d9e0; }
.projects-top h2 { margin: 0 0 4px; font-size: 22px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.projects-top p { margin: 0; color: #59636e; font-size: 13px; }
.projects section { margin-top: 20px; }
.projects h4 { margin: 0 0 4px; font-size: 16px; font-weight: 600; padding-bottom: 6px; border-bottom: 1px solid #d1d9e0; }
.section-intro { margin: 8px 0 0; color: #59636e; font-size: 13px; }
.project-stack { display: grid; gap: 12px; margin-top: 12px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 12px; }
.project { border: 1px solid #d1d9e0; border-radius: 8px; padding: 14px; background: #fff; display: grid; gap: 8px; align-content: start; }
.project header { display: flex; gap: 10px; align-items: center; }
.project-icon { width: 32px; height: 32px; border-radius: 7px; object-fit: contain; flex: none; }
.project h3 { margin: 0; font-size: 15px; font-weight: 600; }
.project.featured h3 { font-size: 17px; }
.project p { margin: 0; font-size: 13px; }
.project-tagline { color: #59636e; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips:empty { display: none; }
.chip { display: inline-block; padding: 0 8px; border: 1px solid #d1d9e0; border-radius: 999px; font-size: 11px; font-weight: 500; line-height: 20px; color: #59636e; white-space: nowrap; }
.chip.soft { background: #f6f8fa; }
.chip.warn { border-color: #d4a72c; color: #7d4e00; background: #fff8c5; }
.chip.public { border-color: #1a7f37; color: #1a7f37; font-size: 12px; }
.project-links { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.projects a.project-button { display: inline-block; padding: 3px 12px; border-radius: 6px; background: #1f883d; color: #fff; font-weight: 600; font-size: 12px; }
.projects a.project-button:hover { background: #1a7f37; text-decoration: none; }
.project-shot { display: block; border: 1px solid #d1d9e0; border-radius: 6px; overflow: hidden; background: #f6f8fa; }
.project-shot img { display: block; width: 100%; height: auto; }
.project .project-take { font-style: italic; color: #59636e; font-size: 12px; }
.repo-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.repo-list li { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.repo-list a, .repo-list b { font-weight: 600; }
.repo-list span:last-child { flex-basis: 100%; color: #59636e; }
.project-more { margin: 18px 0 0; font-size: 13px; }

/* App: comic strip */
.comic { padding: 12px; background: #fffdf5; min-height: 100%; }
.comic-title { font: 700 14px "Comic Sans MS", "Segoe Print", cursive; margin-bottom: 8px; }
.comic-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.comic-panel { border: 3px solid #1b2330; border-radius: 4px; background: #fff; padding: 8px; display: grid; gap: 6px; justify-items: center; align-content: space-between; min-height: 170px; }
.comic-panel.chabot { background: #fff6dd; }
.comic-say { font: 13px "Comic Sans MS", "Segoe Print", cursive; border: 2px solid #1b2330; border-radius: 12px; padding: 6px 8px; background: #fff; width: 100%; }
.comic-art svg { width: 76px; height: auto; display: block; }
.comic-who { font-size: 10px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--ink-2); }
.comic-note { margin-top: 8px; font-size: 11px; color: #8a8a8a; }

/* App: notepad */
.np { height: 100%; display: flex; flex-direction: column; background: #fff; font: 13px "Segoe UI", system-ui, sans-serif; color: #1b1b1b; }
.np-tabs { flex: none; display: flex; align-items: flex-end; gap: 4px; padding: 6px 8px 0; background: #eef3fb; }
.np-tab { display: flex; align-items: center; gap: 22px; padding: 7px 10px 8px 14px; background: #fff; border-radius: 8px 8px 0 0; font-size: 12px; }
.np-tab i { font-style: normal; font-size: 15px; line-height: 1; color: #5f6368; }
.np-plus { padding: 0 10px 8px; font-size: 18px; line-height: 1; color: #5f6368; }
.np-menu { flex: none; position: relative; display: flex; gap: 2px; padding: 3px 6px; border-bottom: 1px solid #ececec; }
.np-menu > button { padding: 5px 10px; border: 0; border-radius: 4px; background: transparent; font: inherit; color: inherit; cursor: default; }
.np-menu > button:hover, .np-menu > button[aria-expanded="true"] { background: #f0f0f0; }
.np-drop { position: absolute; top: calc(100% - 1px); z-index: 5; min-width: 190px; padding: 4px; display: grid; gap: 1px; background: #f9f9f9; border: 1px solid rgba(0, 0, 0, 0.14); border-radius: 8px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2); }
.np-drop button { padding: 6px 12px 6px 30px; border: 0; border-radius: 4px; background: transparent; font: inherit; color: inherit; text-align: left; cursor: default; position: relative; }
.np-drop button:hover, .np-drop button:focus-visible { background: rgba(0, 0, 0, 0.07); outline: none; }
.np-drop button[aria-checked="true"]::before { content: "\2713"; position: absolute; left: 11px; }
.np-text { flex: 1; min-height: 0; width: 100%; box-sizing: border-box; margin: 0; padding: 10px 14px; border: 0; outline: none; resize: none; background: #fff; color: #1b1b1b; font: 14px/1.5 Consolas, "Cascadia Mono", ui-monospace, monospace; white-space: pre-wrap; overflow: auto; }
.np-text.nowrap { white-space: pre; }
.np-status { flex: none; display: flex; align-items: center; gap: 0; padding: 0 6px; background: #f3f3f3; border-top: 1px solid #e5e5e5; font-size: 12px; color: #444; white-space: nowrap; overflow: hidden; }
.np-status span { padding: 5px 12px; }
.np-status span + span { border-left: 1px solid #dcdcdc; }
.np-status .np-gap { flex: 1; padding: 0; border: 0; }
.np-status .np-gap + span { border-left: 0; }

/* App: task manager */
.taskmgr-wrap { padding: 4px 8px 8px; background: #fff; min-height: 100%; overflow-x: auto; }
.taskmgr { width: 100%; border-collapse: collapse; font-size: 12px; }
.taskmgr th, .taskmgr td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #ececec; white-space: nowrap; }
.taskmgr th { font-weight: 600; color: var(--ink-2); }
.taskmgr tbody tr:hover { background: #f5f8fd; }
.taskmgr meter { width: 72px; height: 12px; }
.taskmgr td { padding-top: 5px; padding-bottom: 5px; }
.taskmgr .plain { padding: 2px 8px; font-size: 11px; }
.taskmgr .tm-group th { padding-top: 12px; font-size: 11px; color: var(--accent); border-bottom-color: #dfe6f3; }
.taskmgr .tm-group:hover { background: transparent; }
.tm-name { display: inline-flex; align-items: center; gap: 4px; }
.tm-twist { width: 16px; height: 16px; padding: 0; border: 0; background: transparent; color: var(--ink-2); font-size: 11px; line-height: 16px; text-align: center; cursor: pointer; flex: none; }
button.tm-twist:hover { color: var(--ink); }
.tm-child td { color: var(--ink-2); border-bottom-color: #f3f3f3; padding-top: 4px; padding-bottom: 4px; }
.tm-child .tm-name { padding-left: 20px; }

/* The map of antique stores in the Collection window. */
.store-map { height: 300px; border: 1px solid #d5d9e2; border-radius: 8px; overflow: hidden; background: #e8ecf2; z-index: 0; }
.store-map .leaflet-container { font: inherit; }
.map-popup { display: grid; gap: 2px; font-size: 13px; min-width: 150px; }
.map-popup span { color: var(--ink-2); font-size: 12px; }
.map-popup i { color: #444; font-size: 12px; }
.map-fail { margin: 0; padding: 20px; font-size: 13px; color: var(--ink-2); }
.store-list { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.store-list li { display: grid; gap: 1px; padding-left: 12px; border-left: 3px solid var(--accent); }
.store-list span { color: var(--ink-2); font-size: 12px; }
.store-list i { color: #444; font-size: 12px; }
/* Apps: bookshelf and collection */
.shelf { padding: 12px 16px; background: #f6efe2; min-height: 100%; }
.shelf h3 { margin: 4px 0 8px; font-size: 14px; }
.shelf-row { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.shelf-row li { display: flex; gap: 10px; align-items: stretch; }
.spine { width: 14px; border-radius: 2px; }
.shelf-row b, .shelf-row span, .shelf-row i { display: block; }
.shelf-row span { font-size: 12px; color: var(--ink-2); }

/* App: about */
.about { background: #f5f6fa; min-height: 100%; display: flex; flex-direction: column; }
.about-cover { height: 104px; flex: none; background: radial-gradient(120% 140% at 10% 0%, #7b6cf6 0%, transparent 60%), radial-gradient(90% 120% at 100% 100%, #23b5d3 0%, transparent 55%), linear-gradient(135deg, #2b3a8f, #4b2fa8); }
.about-head { display: flex; align-items: flex-end; gap: 16px; padding: 0 24px; margin-top: -52px; }
.about-photo { flex: none; width: 104px; height: 104px; border-radius: 50%; object-fit: cover; background: #dfe3ee; border: 4px solid #fff; box-shadow: 0 6px 18px rgba(20, 24, 60, 0.28); }
.about-initials { display: grid; place-items: center; box-sizing: border-box; font-size: 34px; font-weight: 600; color: #4b2fa8; }
.about-head h2 { margin: 0; font-size: 24px; font-weight: 650; line-height: 1.2; }
.about-sub { margin: 2px 0 8px; font-size: 13px; color: var(--ink-2); }
.about-body { margin: 16px 20px 0; padding: 16px 18px 6px; background: #fff; border: 1px solid #e6e8f0; border-radius: 12px; box-shadow: 0 1px 2px rgba(20, 24, 60, 0.05); font-size: 14px; line-height: 1.6; }
.about-body p { margin: 0 0 10px; }
.about-body p:first-child { font-size: 15px; color: #1d2340; }
.about-links { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 20px 0; }
.about-btn { border-radius: 999px; padding: 7px 16px; font-size: 13px; background: #fff; border: 1px solid #d5d9e6; color: var(--ink); text-decoration: none; }
.about-btn:hover { background: #eef0f8; }
.about-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.about-btn.primary:hover { filter: brightness(1.08); background: var(--accent); }
.about-note { margin: auto 20px 0; padding: 14px 0 14px; font-size: 11px; line-height: 1.5; color: #8a8fa3; }
@media (max-width: 760px) { .about-head { flex-direction: column; align-items: flex-start; gap: 8px; } }

/* App: BarryDbg */
.dbg { height: 100%; display: flex; flex-direction: column; background: #fff; }
.dbg-out { flex: 1 1 0; min-height: 120px; overflow: auto; padding: 10px 12px; background: #ffffff; border-bottom: 1px solid #d8d8d8; font: 12px/1.5 "Cascadia Mono", Consolas, ui-monospace, monospace; white-space: pre; color: #1b1b1b; }
.dbg-out:focus-visible { outline-offset: -2px; box-shadow: none; }
.dbg-cmd { color: #0b4fc4; font-weight: 700; margin-top: 4px; }
.dbg-rule { color: #7a7a7a; }
.dbg-key { color: #8a1f6b; font-weight: 700; }
.dbg-blame { background: #fff1cf; font-weight: 700; }
.dbg-panel { flex: 0 0 auto; max-height: 50%; overflow-y: auto; padding: 12px 14px; background: #f6f7f9; display: flex; flex-direction: column; gap: 8px; }
.dbg-panel > * { flex: none; }
.dbg-q { margin: 0; font-size: 14px; font-weight: 600; }
.dbg-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dbg-option { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 9px 12px; border: 1px solid #d1d1d1; border-bottom-color: #b8b8b8; border-radius: 6px; background: #fff; font-size: 13px; }
.dbg-option b { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 12px; }
.dbg-option:hover:not(:disabled) { border-color: var(--accent); background: #f3f8ff; }
.dbg-option.struck { opacity: 0.55; text-decoration: line-through; }
.dbg-option.struck b { background: #c42b1c; }
.dbg-option.right { border-color: #12893f; background: #e8f7ee; }
.dbg-option.right b { background: #12893f; }
.dbg-verdict { margin: 0; min-height: 18px; font-size: 13px; }
.dbg-verdict.wrong { color: #a4262c; font-weight: 600; }
.dbg-dim { margin: 0; font-size: 12px; color: var(--ink-2); }
.dbg-explain { margin: 0; font-size: 13px; }
.dbg-cert { display: grid; gap: 2px; justify-items: center; padding: 12px; border: 2px solid #c9a227; border-radius: 8px; background: linear-gradient(#fffaf0, #fff1cf); text-align: center; }
.dbg-cert b { font-size: 20px; letter-spacing: 0.4px; color: #6b4f00; }
.dbg-cert span { font-size: 12px; color: #6b4f00; }
.dbg-ladder { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.dbg-ladder li { padding: 4px 10px; border: 1px solid #d1d1d1; border-radius: 999px; background: #fff; font-size: 12px; display: flex; gap: 6px; align-items: baseline; }
.dbg-ladder li span { color: var(--ink-2); font-size: 11px; }
.dbg-ladder li.gone { opacity: 0.45; text-decoration: line-through; }
.dbg-board li span { color: var(--ink-2); }
.dbg-sign { display: flex; gap: 6px; }
.dbg-sign input { flex: 1; min-width: 0; padding: 6px 10px; border: 1px solid #d1d1d1; border-bottom: 2px solid #8a8a8a; border-radius: 4px; font: inherit; background: #fff; }
.dbg-board h3 { margin: 4px 0; font-size: 13px; }
.dbg-board ol { margin: 0; padding-left: 22px; font-size: 13px; }

/* Barry's celebration */
.confetti { position: fixed; inset: 0; z-index: 8500; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* Barry's ball, and the crack it can leave on a window. */
.play-ball { position: absolute; left: 0; bottom: 0; z-index: 1; pointer-events: auto; cursor: pointer; will-change: transform; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.35)); transition: opacity 0.6s; touch-action: none; }
.play-ball svg { width: 100%; height: 100%; display: block; }
.play-ball.out { opacity: 0; pointer-events: none; }
/* The basketball hoop on the right edge. The rim and net sit in front of the ball. */
.play-hoop { position: absolute; right: 0; width: 84px; height: 100px; z-index: 2; pointer-events: none; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.35)); transition: opacity 0.6s; animation: hoop-in 0.4s ease-out; }
.play-hoop svg { width: 100%; height: 100%; display: block; }
.play-hoop.out { opacity: 0; }
.play-hoop .hoop-net { transform-origin: 41px 41px; opacity: 0.9; }
.play-hoop.swish .hoop-net { animation: hoop-swish 0.5s ease-out; }
.hoop-score { position: absolute; right: 16px; top: -22px; min-width: 22px; padding: 1px 6px; border-radius: 9px; background: #16181d; color: #ffb347; font: 700 12px/1.5 "Cascadia Mono", Consolas, ui-monospace, monospace; text-align: center; font-variant-numeric: tabular-nums; }
@keyframes hoop-in { from { opacity: 0; transform: translateX(30px); } }
@keyframes hoop-swish { 30% { transform: scaleY(1.28) scaleX(0.9); } 60% { transform: scaleY(0.92); } }
.win-crack { position: absolute; inset: 0; z-index: 4; pointer-events: none; transition: opacity 1s; }
.win-crack svg { width: 100%; height: 100%; display: block; }
.win-crack.mend { opacity: 0; }
.crack-shadow { fill: none; stroke: rgba(0, 0, 0, 0.55); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.crack-line { fill: none; stroke: rgba(255, 255, 255, 0.95); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.crack-hole { fill: rgba(0, 0, 0, 0.6); stroke: rgba(255, 255, 255, 0.9); stroke-width: 1; }

/* Sticky note */
.sticky { position: absolute; top: 18px; right: 22px; z-index: 2; width: 156px; height: 156px; padding: 16px 14px; display: flex; flex-direction: column; justify-content: center; gap: 6px; background: linear-gradient(160deg, #fff9b8, #ffe76a); color: #3a3300; border-radius: 2px 2px 2px 14px; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3), inset 0 -18px 18px -18px rgba(0, 0, 0, 0.12); transform: rotate(2.5deg); font: 15px/1.3 "Segoe Print", "Comic Sans MS", cursive; text-align: center; }
.sticky::before { content: ""; position: absolute; top: -7px; left: 50%; width: 56px; height: 16px; margin-left: -28px; background: rgba(255, 255, 255, 0.55); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); transform: rotate(-3deg); }
.sticky b { display: block; font: 600 11px "Segoe UI", system-ui, sans-serif; letter-spacing: 0.6px; text-transform: uppercase; opacity: 0.6; }

/* Small screens: no dragging. Windows stack and the desktop scrolls. */
@media (max-width: 760px) {
  body { overflow: auto; }
  .desktop { position: static; min-height: calc(100vh - var(--taskbar-h)); padding: 10px 10px 120px; overflow: visible; }
  .icons { position: static; display: flex; flex-wrap: wrap; height: auto; margin-bottom: 10px; }
  .icon { width: 72px; }
  .windows { position: static; display: grid; gap: 12px; pointer-events: auto; }
  .win { position: static !important; width: auto !important; height: auto !important; max-height: 78vh; }
  .cap-max { display: none; }
  .stage { position: fixed; inset: auto 0 var(--taskbar-h) 0; height: 0; }
  .ghost-pointer { display: none; }
  .icon { width: 76px; }
  .toasts { position: fixed; bottom: calc(var(--taskbar-h) + 104px); }
  .taskbar-center { justify-content: flex-start; padding: 0 0 0 6px; right: 130px; overflow: hidden; }
  .tasks { gap: 0; }
  .task { width: 32px; }
  .tray-btn { padding: 0 4px; gap: 4px; }
  .tray-mood, #tray-date, .tray-secrets { display: none; }
  #tray-secrets { display: none !important; }
  .chat { height: 60vh; }
  .term, .editor { height: 46vh; }
  .mail { grid-template-columns: 1fr; height: auto; }
  .mail-list { border-right: 0; max-height: 30vh; }
  .comic-row { grid-template-columns: 1fr; }
  .dbg { height: 80vh; }
  .dbg-options { grid-template-columns: 1fr; }
  .sticky { position: relative; top: auto; right: auto; margin: 6px 0 14px 8px; }
}

/* Wallpapers the admin can pick. These come after the mood colours, so a
   chosen wallpaper wins. Barry's own colour still follows his mood. */
body[data-wallpaper="azure"] { --wall-a: #2f8cff; --wall-b: #0a43b8; --wall-c: #6ad7ff; --wall-d: #7b6cff; }
body[data-wallpaper="aurora"] { --wall-a: #0fb5a8; --wall-b: #1b2a7a; --wall-c: #7dffb0; --wall-d: #ff7ad9; }
body[data-wallpaper="sunset"] { --wall-a: #ff8a4c; --wall-b: #7a1fa2; --wall-c: #ffd36e; --wall-d: #ff4f8b; }
body[data-wallpaper="forest"] { --wall-a: #2fae6b; --wall-b: #0b4a3a; --wall-c: #b7f5a0; --wall-d: #2fd0c0; }
body[data-wallpaper="candy"] { --wall-a: #ff7ac3; --wall-b: #6a5cff; --wall-c: #ffe08a; --wall-d: #7fe0ff; }
body[data-wallpaper="midnight"] { --wall-a: #1c2550; --wall-b: #070a1c; --wall-c: #3f55c8; --wall-d: #7a3fd0; }
body[data-wallpaper="slate"] { --wall-a: #5d6b82; --wall-b: #232a38; --wall-c: #9fb2cf; --wall-d: #4a6fa8; }
body[data-wallpaper="grid"] { --wall-a: #2a7df0; --wall-b: #0a3a9c; --wall-c: #62b6ff; --wall-d: #3b5bdb; }
body[data-wallpaper="waves"] { --wall-a: #1f9bff; --wall-b: #0a3fae; --wall-c: #8fe3ff; --wall-d: #4b6bff; }
body[data-wallpaper="custom"] { --wall-c: color-mix(in srgb, var(--wall-a) 55%, #ffffff); --wall-d: color-mix(in srgb, var(--wall-b) 50%, var(--wall-a)); }

.wallpaper::before { content: ""; position: absolute; inset: 0; z-index: 1; }
body[data-wallpaper="midnight"] .wallpaper::before {
  background-image:
    radial-gradient(1.4px 1.4px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 110px 80px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.6px 1.6px at 170px 150px, #fff, transparent),
    radial-gradient(1px 1px at 60px 190px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.2px 1.2px at 230px 40px, rgba(255, 255, 255, 0.9), transparent);
  background-size: 260px 240px;
}
body[data-wallpaper="midnight"] .wallpaper i { opacity: 0.45; }
body[data-wallpaper="grid"] .wallpaper::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
body[data-wallpaper="grid"] .wallpaper i { opacity: 0.4; }
body[data-wallpaper="waves"] .wallpaper::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' fill-opacity='.14' d='M0 192l80-21c80-22 240-64 400-59s320 59 480 69 320-21 400-37l80-16v192H0z'/%3E%3Cpath fill='%23ffffff' fill-opacity='.12' d='M0 256l96-16c96-16 288-48 480-43s384 48 576 48 240-21 288-32v107H0z'/%3E%3C/svg%3E") bottom / 100% 46% no-repeat;
}
body[data-wallpaper="slate"] .wallpaper i { opacity: 0.4; }
.bsod-title { font-size: 22px; font-weight: 400; margin: 0 0 14px; max-width: 820px; }
.bsod-link { color: #fff; font-size: 16px; }
