
/* dotwaregames.css */
/* dotwaregames.com: Conner's desktop on Dotsoft. dg- = the OS, br- = the browser, cc- = the Claude chat (parody). */
html, body { margin: 0; height: 100%; background: #06205e; overscroll-behavior: none; }
body { -webkit-tap-highlight-color: transparent; }

.dg-os {
  --dg-ui: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --dg-accent: #0a64d6;
  --dg-tb: 48px;
  position: relative; width: 100%; height: 100vh; height: 100dvh; min-height: 480px; overflow: hidden;
  font: 13px/1.4 var(--dg-ui); color: #1b1b1b; user-select: none; -webkit-user-select: none; background: #06205e;
}
.dg-os *, .dg-os *::before, .dg-os *::after { box-sizing: border-box; }
.dg-os button { font: inherit; color: inherit; cursor: default; }
.dg-os :focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.dg-os .dg-win :focus-visible { outline-color: var(--dg-accent); }
.dg-os [hidden] { display: none !important; }
.dg-muted { color: #6b6f76; }

.dg-desk { position: absolute; inset: 0 0 var(--dg-tb) 0; }
.dg-wall { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- desktop icons ---------- */
.dg-icons { position: absolute; top: 6px; left: 4px; margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; grid-auto-flow: column; grid-template-rows: repeat(auto-fill, 92px); max-height: calc(100% - 12px); z-index: 1; }
.dg-icon { width: 78px; padding: 6px 2px 4px; border: 1px solid transparent; background: none; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.dg-icon span { color: #fff; font-size: 12px; text-align: center; line-height: 1.25; text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 6px rgba(0,0,0,.45); word-break: break-word; }
.dg-icon:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); }
.dg-icon.is-selected { background: rgba(120,175,255,.32); border-color: rgba(160,200,255,.55); }

/* ---------- windows ---------- */
.dg-win { position: absolute; display: flex; flex-direction: column; min-width: 280px; background: #fff; border: 1px solid #5f6b7a; box-shadow: 0 10px 36px rgba(0,0,0,.38), 0 2px 8px rgba(0,0,0,.2); }
.dg-win.is-active { border-color: var(--dg-accent); }
.dg-win:not(.is-active) { box-shadow: 0 6px 22px rgba(0,0,0,.28); }
.dg-win.is-max { inset: 0 !important; width: auto !important; height: auto !important; border: 0; box-shadow: none; }
.dg-win-browser { left: max(96px, 7%); top: 3%; width: min(1240px, calc(93% - 96px)); height: 90%; }
.dg-win-notes { left: 24%; top: 14%; width: min(560px, 80%); height: min(440px, 70%); }
.dg-win-computer { left: 18%; top: 9%; width: min(720px, 86%); height: min(460px, 76%); }
.dg-win-bin { left: 28%; top: 17%; width: min(820px, 86%); height: min(460px, 72%); }
.dg-win-unreal { left: calc(50% - 270px); top: calc(45% - 140px); width: 540px; min-width: 0; height: auto; }
.dg-win.is-placed { right: auto; bottom: auto; }

.dg-titlebar { flex: none; height: 32px; display: flex; align-items: center; gap: 8px; padding-left: 10px; background: #fff; color: #1b1b1b; touch-action: none; }
.dg-win:not(.is-active) .dg-titlebar { color: #8a8a8a; }
.dg-title { flex: 1; min-width: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-caps { display: flex; align-self: stretch; margin-left: auto; }
.dg-cap { position: relative; width: 46px; height: 32px; padding: 0; border: 0; background: transparent; color: #1b1b1b; }
.dg-cap:hover { background: rgba(0,0,0,.08); }
.dg-cap:active { background: rgba(0,0,0,.14); }
.dg-cap-close:hover { background: #e81123; color: #fff; }
.dg-cap-close:active { background: #f1707a; color: #fff; }
.dg-cap i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.dg-cap-min i { width: 10px; height: 1px; background: currentColor; }
.dg-cap-max i { width: 10px; height: 10px; border: 1px solid currentColor; }
.dg-win.is-max .dg-cap-max i { width: 8px; height: 8px; margin: 1px 0 0 -1px; box-shadow: 2px -2px 0 -1px #fff, 2px -2px 0 0 currentColor; }
.dg-cap-close i { width: 14px; height: 14px; }
.dg-cap-close i::before, .dg-cap-close i::after { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1px; background: currentColor; transform: rotate(45deg); }
.dg-cap-close i::after { transform: rotate(-45deg); }
.dg-win:not(.is-active) .dg-cap { color: #9a9a9a; }
.dg-win:not(.is-active) .dg-cap-close:hover { color: #fff; }
.dg-win-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.dg-win-body > * { flex: 1; min-height: 0; }

/* The browser window has no title bar: its tab strip is the title bar. The drag layer sits under the tabs. */
.dg-win.is-bare .dg-caps { position: absolute; right: 0; top: 0; z-index: 3; height: 32px; }
.dg-win.is-bare .dg-cap { height: 32px; }
.dg-win.is-bare .dg-cap:not(.dg-cap-close):hover { background: rgba(0,0,0,.07); }

/* ---------- browser ---------- */
.br { display: flex; flex-direction: column; height: 100%; background: #fff; font: 13px/1.4 var(--dg-ui, system-ui, sans-serif); color: #1f1f1f; }
.br svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.br-strip { position: relative; z-index: 1; flex: none; height: 40px; display: flex; align-items: flex-end; padding: 0 150px 0 8px; background: #dfe3e8; touch-action: none; }
.dg-win:not(.is-active) .br-strip { background: #e9ecef; }
.br-tab { position: relative; flex: 0 1 236px; min-width: 48px; height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 6px 0 12px; border-radius: 9px 9px 0 0; color: #3c4043; font-size: 12px; }
.br-tab.is-on { background: #fff; color: #1f1f1f; z-index: 1; }
.br-tab:not(.is-on):hover { background: rgba(255,255,255,.5); }
.br-tab:not(.is-on) + .br-tab:not(.is-on)::before { content: ""; position: absolute; left: 0; top: 9px; height: 16px; width: 1px; background: #a7adb5; }
.br-tab.is-on::before, .br-tab.is-on::after { content: ""; position: absolute; bottom: 0; width: 9px; height: 9px; background: radial-gradient(circle at 0 0, transparent 9px, #fff 9.5px); }
.br-tab.is-on::before { left: -9px; background: radial-gradient(circle at 0 0, transparent 8.5px, #fff 9px); }
.br-tab.is-on::after { right: -9px; background: radial-gradient(circle at 100% 0, transparent 8.5px, #fff 9px); }
.br-tab-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-tab-x { flex: none; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; color: #5f6368; }
.br-tab-x:hover { background: rgba(0,0,0,.1); }
.br-newtab { align-self: center; margin: 0 0 -2px 6px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; color: #3c4043; }
.br-newtab:hover { background: rgba(0,0,0,.08); }
.br-fav { flex: none; width: 16px; height: 16px; display: grid; place-items: center; color: #5f6368; }
.br-fav-chat { color: #d97757; }
.br-fav-w { font: 700 13px/1 Georgia, "Times New Roman", serif; color: #202122; }
.br-bar { flex: none; height: 42px; display: flex; align-items: center; gap: 2px; padding: 0 8px; background: #fff; border-bottom: 1px solid #e3e5e8; }
.br-btn { flex: none; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; color: #3c4043; }
.br-btn:hover:not(:disabled) { background: #edeff1; }
.br-btn:disabled { color: #b5b9be; }
.br-omni { flex: 1; min-width: 0; height: 34px; margin: 0 6px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 14px; border-radius: 17px; background: #eef1f4; color: #5f6368; }
.br-omni:hover { background: #e7eaee; }
.br-omni:focus-within { background: #fff; box-shadow: 0 0 0 2px #0b57d0 inset; }
.br-omni input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 14px var(--dg-ui, system-ui, sans-serif); color: #1f1f1f; user-select: text; -webkit-user-select: text; }
.br-lock, .br-star { display: grid; place-items: center; }
.br-profile { flex: none; width: 26px; height: 26px; margin: 0 4px; border-radius: 50%; display: grid; place-items: center; background: #7b4bd1; color: #fff; font-size: 12px; font-weight: 600; }
.br-page { position: relative; flex: 1; min-height: 0; background: #fff; }
.br-view { position: absolute; inset: 0; }
.br-frame { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.br-missing, .br-blank { height: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; padding: 0 12%; color: #5f6368; }
.br-missing h2 { margin: 6px 0 0; font-size: 22px; font-weight: 500; color: #202124; }
.br-missing p { margin: 0; font-size: 14px; }
.br-blank { align-items: center; color: #d97757; }
.br-blank p { color: #5f6368; font-size: 14px; }

/* ---------- Claude chat (parody) ---------- */
.cc {
  --cc-bg: #faf9f5; --cc-side: #f5f4ed; --cc-ink: #141413; --cc-ink2: #3d3d3a; --cc-mute: #73726c; --cc-line: #e6e3da;
  --cc-bubble: #f0eee6; --cc-orange: #d97757; --cc-btn: #c6613f; --cc-serif: "Tiempos Text", Charter, "Iowan Old Style", Georgia, Cambria, serif;
  container-type: inline-size; height: 100%; display: flex; background: var(--cc-bg); color: var(--cc-ink); font: 14px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.cc svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cc-side { flex: none; width: 248px; display: flex; flex-direction: column; padding: 10px 8px 8px; background: var(--cc-side); border-right: 1px solid var(--cc-line); }
.cc-side-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 12px; }
.cc-word { font: 500 20px/1 var(--cc-serif); letter-spacing: -.01em; color: var(--cc-ink); }
.cc-iconbtn { color: var(--cc-mute); display: grid; }
.cc-new { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; font-weight: 500; color: var(--cc-ink); }
.cc-plus { width: 22px; height: 22px; border-radius: 50%; background: var(--cc-btn); color: #fff; display: grid; place-items: center; font-size: 17px; line-height: 1; }
.cc-nav { display: flex; flex-direction: column; margin: 6px 0 14px; }
.cc-nav span { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; color: var(--cc-ink2); }
.cc-recents-h { margin: 0; padding: 4px 10px 6px; font-size: 12px; color: var(--cc-mute); }
.cc-recents { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; overflow: hidden; }
.cc-recents li { padding: 6px 10px; border-radius: 8px; font-size: 13px; color: var(--cc-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-recents li.is-on { background: #e9e7de; color: var(--cc-ink); }
.cc-me { display: flex; align-items: center; gap: 10px; padding: 10px 8px 4px; border-top: 1px solid var(--cc-line); }
.cc-avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #3d3d3a; color: #fff; font-size: 13px; font-weight: 600; }
.cc-avatar-sm { width: 26px; height: 26px; font-size: 12px; }
.cc-me-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.cc-me-text b { font-weight: 500; font-size: 13px; }
.cc-me-text small { font-size: 12px; color: var(--cc-mute); }
.cc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cc-top { flex: none; height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 20px; }
.cc-title { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--cc-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-title svg { color: var(--cc-mute); }
.cc-share { flex: none; padding: 5px 12px; border: 1px solid var(--cc-line); border-radius: 8px; font-size: 13px; color: var(--cc-ink2); background: #fff; }
.cc-scroll { flex: 1; min-height: 0; overflow: auto; padding: 12px 20px 20px; user-select: text; -webkit-user-select: text; }
.cc-thread { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.cc-user { align-self: flex-start; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; max-width: 88%; padding: 10px 16px 10px 10px; border-radius: 14px; background: var(--cc-bubble); }
.cc-user p { max-width: none; flex: 1; min-width: 0; margin: 3px 0 0; font-size: 15px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.cc-busy { flex-basis: 100%; padding-left: 36px; font-size: 12px; color: var(--cc-mute); }
.cc-ai { display: flex; flex-direction: column; gap: 12px; padding: 0 4px; font-family: var(--cc-serif); }
.cc-status { margin: 0; font-size: 16px; }
.cc-shimmer { background: linear-gradient(90deg, #8a8880 0%, #8a8880 40%, #e3e1d8 50%, #8a8880 60%, #8a8880 100%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: cc-shimmer 2.4s linear infinite; }
@keyframes cc-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.cc-working { display: flex; align-items: center; gap: 12px; }
.cc-spark { color: var(--cc-orange); }
.cc-spark line { stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; }
.cc-spark.is-spin { animation: cc-spin 3.2s cubic-bezier(.6,.1,.4,.9) infinite; transform-origin: 50% 50%; }
@keyframes cc-spin { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(180deg) scale(.82); } 100% { transform: rotate(360deg) scale(1); } }
.cc-meter { font: 12.5px/1.3 ui-sans-serif, system-ui, sans-serif; color: var(--cc-mute); font-variant-numeric: tabular-nums; }
.cc-tokens { color: var(--cc-ink2); font-weight: 500; }
.cc-dot { margin: 0 6px; }
.cc-composer { position: relative; flex: none; width: calc(100% - 32px); max-width: 720px; margin: 0 auto; padding: 12px 12px 10px 16px; border: 1px solid var(--cc-line); border-radius: 18px; background: #fff; box-shadow: 0 4px 18px rgba(30,28,20,.06); }
.cc-composer textarea { display: block; width: 100%; resize: none; border: 0; outline: 0; background: none; padding: 2px 0 10px; font: 15px/1.5 inherit; font-family: inherit; color: var(--cc-ink); max-height: 120px; user-select: text; -webkit-user-select: text; }
.cc-composer textarea::placeholder { color: #9b998f; }
.cc-composer-row { display: flex; align-items: center; gap: 6px; }
.cc-tool { width: 32px; height: 32px; border: 1px solid var(--cc-line); border-radius: 9px; display: grid; place-items: center; color: var(--cc-ink2); font-size: 18px; }
.cc-model { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; font-size: 13px; color: var(--cc-ink2); }
.cc-stop, .cc-send { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 9px; background: var(--cc-btn); color: #fff; display: grid; place-items: center; }
.cc-stop:hover, .cc-send:hover { background: #b2532f; }
.cc-stop i { width: 10px; height: 10px; border-radius: 2px; background: #fff; }
.cc-toast { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); margin: 0; padding: 8px 14px; border-radius: 10px; background: #2b2a27; color: #fff; font-size: 13px; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.cc-fine { flex: none; align-self: stretch; max-width: none; margin: 8px 0 10px; text-align: center; font-size: 11.5px; color: var(--cc-mute); }
@container (max-width: 760px) { .cc-side { display: none; } }
@container (max-width: 480px) { .cc-share, .cc-model { display: none; } .cc-scroll { padding: 8px 12px 14px; } .cc-composer { width: calc(100% - 20px); } }

/* ---------- notepad ---------- */
.dg-notepad { display: flex; flex-direction: column; background: #fff; }
.dg-menubar { flex: none; display: flex; gap: 2px; padding: 2px 4px; font-size: 12px; }
.dg-menubar span { padding: 3px 8px; }
.dg-menubar span:hover { background: #e5f1fb; }
.dg-notepad textarea { flex: 1; min-height: 0; resize: none; border: 0; border-top: 1px solid #e5e5e5; outline: 0; padding: 6px 8px; font: 15px/1.45 Consolas, "Cascadia Mono", ui-monospace, monospace; color: #111; user-select: text; -webkit-user-select: text; }
.dg-statusline { flex: none; display: flex; gap: 0; border-top: 1px solid #e5e5e5; background: #f3f3f3; font-size: 12px; color: #444; }
.dg-statusline span { padding: 3px 12px; border-left: 1px solid #ddd; }
.dg-statusline span:first-child { border-left: 0; margin-right: auto; }

/* ---------- file windows: This PC, Recycle Bin ---------- */
.dg-files { display: flex; flex-direction: column; background: #fff; }
.dg-files-bar { flex: none; display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid #e5e5e5; background: #f9f9f9; }
.dg-flat { height: 28px; padding: 0 10px; border: 1px solid transparent; background: none; font-size: 12px; }
.dg-flat:hover:not(:disabled) { background: #e5f1fb; border-color: #cce4f7; }
.dg-flat:disabled { color: #a0a0a0; }
.dg-files-note { margin-left: 8px; font-size: 12px; color: #6b6f76; }
.dg-files-split { flex: 1; min-height: 0; display: flex; }
.dg-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.dg-table-wrap { flex: 1; overflow: auto; }
.dg-table th { position: sticky; top: 0; text-align: left; font-weight: 400; color: #4c607a; padding: 6px 10px; border-bottom: 1px solid #e5e5e5; border-right: 1px solid #ececec; background: #fff; white-space: nowrap; }
.dg-table td { padding: 3px 10px; white-space: nowrap; color: #6d6d6d; }
.dg-table td:first-child { color: #111; }
.dg-table tr { outline: 0; }
.dg-table tbody tr:hover td { background: #e5f3ff; }
.dg-table tbody tr.is-sel td { background: #cce8ff; }
.dg-cell-name { display: inline-flex; align-items: center; gap: 6px; }
.dg-preview { flex: none; width: min(300px, 42%); display: flex; flex-direction: column; border-left: 1px solid #e5e5e5; background: #fbfbfb; }
.dg-preview header { display: flex; align-items: center; gap: 8px; padding: 8px 6px 8px 12px; border-bottom: 1px solid #ececec; font-size: 12px; }
.dg-preview header b { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-x { width: 28px; padding: 0; font-size: 18px; line-height: 1; }
.dg-preview pre { flex: 1; margin: 0; padding: 12px; overflow: auto; font: 13px/1.5 Consolas, "Cascadia Mono", ui-monospace, monospace; white-space: pre-wrap; user-select: text; -webkit-user-select: text; }
.dg-pc { flex: 1; overflow: auto; padding: 10px 18px 16px; }
.dg-pc h3 { margin: 8px 0 8px; padding-bottom: 4px; font-size: 13px; font-weight: 400; color: #1e3287; border-bottom: 1px solid #e5e5e5; }
.dg-tiles { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.dg-tiles button, .dg-drive { display: flex; align-items: center; gap: 10px; width: 240px; padding: 6px 8px; border: 1px solid transparent; background: none; text-align: left; font-size: 12.5px; }
.dg-tiles button:hover { background: #e5f3ff; border-color: #cce8ff; }
.dg-drive > span { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.dg-usage { display: block; height: 14px; border: 1px solid #bcbcbc; background: #e6e6e6; }
.dg-usage b { display: block; height: 100%; background: #da2626; }
.dg-drive small { color: #6d6d6d; font-size: 11.5px; }

/* ---------- Unreal splash ---------- */
.dg-ue { display: flex; align-items: center; gap: 22px; padding: 26px 28px 24px; background: #151515; color: #e8e8e8; }
.dg-ue > div { flex: 1; min-width: 0; }
.dg-ue p { margin: 0; }
.dg-ue-name { font-size: 22px; font-weight: 600; letter-spacing: .01em; }
.dg-ue-proj { margin-top: 2px !important; color: #9a9a9a; }
.dg-ue-step { margin-top: 18px !important; font-size: 12px; color: #c8c8c8; }
.dg-ue-bar { margin-top: 6px; height: 4px; background: #333; }
.dg-ue-bar b { display: block; width: 99%; height: 100%; background: #f0f0f0; animation: dg-ue 2.6s ease-in-out infinite; }
@keyframes dg-ue { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.dg-ue-pct { margin-top: 4px !important; font-size: 11px; color: #8a8a8a; text-align: right; }
.dg-win-unreal, .dg-win-unreal .dg-titlebar { background: #151515; color: #ddd; border-color: #333; }
.dg-win-unreal .dg-cap { color: #ddd; }
.dg-win-unreal .dg-cap:not(.dg-cap-close):hover { background: rgba(255,255,255,.1); }

/* ---------- taskbar ---------- */
.dg-taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: var(--dg-tb); z-index: 2000; display: flex; align-items: stretch; background: rgba(16,20,30,.88); color: #fff; backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.dg-start { flex: none; width: 48px; padding: 0; border: 0; background: none; display: grid; place-items: center; color: #fff; }
.dg-start:hover { background: rgba(255,255,255,.1); color: #6fb6ff; }
.dg-start.is-open { background: rgba(255,255,255,.14); color: #6fb6ff; }
.dg-search { flex: none; width: 300px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: #f2f2f2; color: #333; }
.dg-search svg { width: 16px; height: 16px; fill: none; stroke: #333; stroke-width: 1.6; }
.dg-search input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font: 13px var(--dg-ui); color: #333; }
.dg-search input::placeholder { color: #444; opacity: 1; }
.dg-tasks { flex: 1; min-width: 0; display: flex; }
.dg-task { position: relative; flex: none; width: 48px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.dg-task:hover { background: rgba(255,255,255,.1); }
.dg-task.is-open::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px; background: #9fc7ff; }
.dg-task.is-active { background: rgba(255,255,255,.15); }
.dg-task.is-active::after { left: 0; right: 0; background: #76b9ff; }
.dg-tray { flex: none; margin-left: auto; display: flex; align-items: center; font-size: 12px; }
.dg-tray-icons { display: flex; gap: 2px; padding: 0 6px; }
.dg-tray-icons svg { width: 30px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; }
.dg-tray-icons circle { fill: #fff; stroke: none; }
.dg-when { display: flex; flex-direction: column; align-items: center; padding: 0 10px; line-height: 1.35; }
.dg-peek { align-self: stretch; width: 6px; margin-left: 4px; border-left: 1px solid rgba(255,255,255,.3); }

/* ---------- start menu ---------- */
.dg-start-menu { position: absolute; left: 0; bottom: 0; z-index: 1900; width: min(340px, 100%); height: min(520px, calc(100% - 20px)); display: flex; background: rgba(26,30,40,.95); color: #fff; backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3); box-shadow: 4px -4px 30px rgba(0,0,0,.35); animation: dg-rise .16s ease-out; }
@keyframes dg-rise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.dg-start-rail { flex: none; width: 48px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; padding-bottom: 6px; }
.dg-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #7b4bd1; color: #fff; font-weight: 600; }
.dg-power { width: 48px; height: 44px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.dg-power:hover { background: rgba(255,255,255,.12); }
.dg-power svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; }
.dg-start-list { flex: 1; display: flex; flex-direction: column; padding: 10px 6px; overflow: auto; }
.dg-start-user { margin: 4px 10px 12px; font-size: 14px; font-weight: 600; }
.dg-start-list button { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 10px; border: 0; background: none; text-align: left; font-size: 13px; }
.dg-start-list button:hover { background: rgba(255,255,255,.12); }

/* ---------- shut down ---------- */
.dg-off { position: absolute; inset: 0; z-index: 3000; display: grid; place-items: center; text-align: center; color: #fff; background: rgba(6,32,94,.0); animation: dg-dim .6s forwards; }
.dg-off.is-gone { background: #06205e; animation: none; }
@keyframes dg-dim { to { background: rgba(6,32,94,.96); } }
.dg-off p { margin: 0 0 6px; font-size: 22px; font-weight: 300; }
.dg-off .dg-muted { color: #b7c7e6; font-size: 15px; margin-bottom: 18px; }
.dg-btn { height: 32px; min-width: 120px; padding: 0 16px; border: 1px solid transparent; background: #fff; color: #111 !important; font-size: 13px; }
.dg-btn:hover { background: #e9eef6; }

/* ---------- phones: one window at a time, full screen ---------- */
@media (max-width: 699.98px) {
  .dg-search { display: none; }
  .dg-win, .dg-win.is-placed { inset: 0 !important; width: auto !important; height: auto !important; border: 0; box-shadow: none; }
  .dg-win-unreal { inset: auto 0 auto 0 !important; top: 30% !important; }
  .dg-tray-icons, .dg-peek { display: none; }
  .br-strip { padding-right: 140px; }
  .br-tab { flex-basis: 140px; }
  .br-star, .br-more { display: none; }
  .dg-start-menu { width: 100%; }
}

/* ---------- Classic (2000s): kept for the story's rollback. Same parts, older skin. ---------- */
.dg-classic { --dg-ui: Tahoma, Verdana, "Segoe UI", sans-serif; --dg-tb: 30px; font-size: 12px; }
.dg-classic .dg-win { border: 3px solid #0a3fbf; border-top-width: 0; border-radius: 8px 8px 0 0; background: #ece9d8; }
.dg-classic .dg-win:not(.is-active) { border-color: #7a96df; }
.dg-classic .dg-titlebar { height: 28px; border-radius: 6px 6px 0 0; background: linear-gradient(#0a5ee8, #0842c0 60%, #0a3fae); color: #fff; font-weight: 700; text-shadow: 1px 1px #0a1f5e; }
.dg-classic .dg-win:not(.is-active) .dg-titlebar { background: linear-gradient(#8aa8ec, #7b98dd); color: #d8e2f7; }
.dg-classic .dg-title { font-size: 13px; }
.dg-classic .dg-caps { gap: 2px; align-self: center; padding-right: 4px; }
.dg-classic .dg-cap { width: 21px; height: 21px; border: 1px solid #fff; border-radius: 3px; background: linear-gradient(#3f8cf3, #1556d8); color: #fff; }
.dg-classic .dg-cap-close { background: linear-gradient(#e8805a, #c43c14); }
.dg-classic .dg-cap-min i { width: 7px; height: 3px; top: auto; bottom: 4px; left: 5px; transform: none; background: #fff; }
.dg-classic .dg-cap-max i { width: 11px; height: 10px; border: 1px solid #fff; border-top-width: 3px; }
.dg-classic .dg-cap-close i::before, .dg-classic .dg-cap-close i::after { width: 12px; height: 2px; background: #fff; left: 1px; }
.dg-classic .dg-win.is-bare .dg-caps { top: 6px; }
.dg-classic .dg-win.is-bare .dg-cap { height: 21px; }
.dg-classic .br-strip { background: linear-gradient(#0a5ee8, #0842c0 60%, #0a3fae); border-radius: 6px 6px 0 0; }
.dg-classic .br-tab:not(.is-on) { color: #fff; }
.dg-classic .dg-taskbar { background: linear-gradient(#3168d5, #245edb 10%, #1941a5); backdrop-filter: none; }
.dg-classic .dg-start { width: auto; padding: 0 18px 0 10px; gap: 6px; display: flex; align-items: center; border-radius: 0 10px 10px 0; background: linear-gradient(#3c9c3c, #2f8a2f 50%, #1f6f1f); font: italic 700 17px/1 "Trebuchet MS", sans-serif; text-shadow: 1px 1px 2px #0a2a0a; }
.dg-classic .dg-tasks { gap: 3px; padding: 3px 6px; }
.dg-classic .dg-task { width: 160px; display: flex; gap: 6px; justify-content: flex-start; padding: 0 8px; border-radius: 3px; background: #3c81f3; font-size: 11px; }
.dg-classic .dg-task span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-classic .dg-task.is-active { background: #1e52b7; box-shadow: inset 1px 1px 2px rgba(0,0,0,.4); }
.dg-classic .dg-task::after { display: none; }
.dg-classic .dg-tray { padding: 0 10px; background: linear-gradient(#0c59b9, #139ee9 10%, #18b9f7 15%, #1295e4 85%); border-left: 1px solid #0c2f86; }
.dg-classic .dg-tray-icons { display: none; }
.dg-classic .dg-start-menu { border-radius: 8px 8px 0 0; background: #fff; color: #111; border: 2px solid #1f5ad1; }
.dg-classic .dg-start-rail { background: linear-gradient(#1b5bd3, #1048b8); }
.dg-classic .dg-start-list button:hover { background: #316ac5; color: #fff; }

/* Text fields draw their own focus (the composer, the omnibox, notepad): no extra ring on top. */
.dg-os .cc textarea:focus-visible, .dg-os .br-omni input:focus-visible, .dg-os .dg-notepad textarea:focus-visible { outline: 0; }
.cc-composer:focus-within { border-color: #d6d2c6; box-shadow: 0 4px 22px rgba(30,28,20,.1); }

/* Studio web standards: type scale, line length, media, focus, motion (STANDARDS.md) */
:where(html) { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
:where(html:not(.st-editor)) { scroll-behavior: smooth; }
:where(body) { margin: 0; font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(*, *::before, *::after) { box-sizing: border-box; }
:where(h1, h2, h3, h4, h5, h6) { font-weight: 700; text-wrap: balance; }
:where(h1) { font-size: clamp(2.5rem, 1.6rem + 3.2vw, 4.5rem); line-height: 1.05; letter-spacing: -0.025em; }
:where(h2) { font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; }
:where(h3) { font-size: clamp(1.5rem, 1.3rem + 0.7vw, 1.875rem); line-height: 1.2; letter-spacing: -0.01em; }
:where(h4) { font-size: 1.25rem; line-height: 1.3; }
:where(p) { max-width: 70ch; text-wrap: pretty; }
:where(img, video, svg, canvas, iframe) { max-width: 100%; }
:where(img, video) { height: auto; }
:where([id]) { scroll-margin-top: 88px; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--accent, currentColor); outline-offset: 3px; }
/* Skip link: hidden until a keyboard user tabs to it, then jumps past the header to the main content. */
.st-skip { position: fixed; left: 12px; top: -48px; z-index: 2147483647; padding: 10px 14px; border-radius: 8px; background: #111; color: #fff !important; font: 600 14px/1 system-ui, sans-serif; text-decoration: none !important; transition: top .12s; }
.st-skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { :where(html:not(.st-editor)) { scroll-behavior: auto; } }
/* Grids reflow on smaller screens (Frame → Smaller screens: Keep turns it off) */
@media (max-width: 1199.98px) { [data-collection][data-st-cols="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } [data-st-cols="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } [data-st-cols="5"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } [data-st-cols="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } [data-st-cols="7"] { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } [data-st-cols="8"] { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } [data-st-cols="9"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } [data-st-cols="10"] { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } [data-st-cols="11"] { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } [data-st-cols="12"] { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
@media (max-width: 809.98px) { [data-st-cols="2"] { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; } [data-st-cols="3"] { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; } [data-st-cols="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } [data-st-cols="5"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } [data-st-cols="6"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } [data-st-cols="7"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } [data-st-cols="8"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } [data-st-cols="9"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } [data-st-cols="10"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } [data-st-cols="11"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } [data-st-cols="12"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } [data-st-cols] > * { grid-column: auto !important; grid-row: auto !important; } }
/* Rows wrap on phone instead of squeezing (Frame → On phone: Keep in one row turns it off) */
@media (max-width: 809.98px) { [data-st-row] { flex-wrap: wrap !important; } }
/* Free placement stacks on phone, in reading order; blocks placed for phone on purpose, and fill-size backdrops, stay put */
@media (max-width: 809.98px) {
  [data-st-free-stack][data-st-free-stack] { display: flex !important; flex-wrap: wrap; align-content: flex-start; gap: 16px; padding: max(var(--bx-pad, 0px), 24px) !important; }
  [data-st-free-stack][data-st-free-stack]:has(> [style*="--st-free"]:not([style*="--st-own-phone"]):not([style*="--st-backdrop"])) { min-height: 0 !important; }
  [data-st-free-stack][data-st-free-stack] > [style*="--st-free"]:not([style*="--st-own-phone"]):not([style*="--st-backdrop"]) { position: relative !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; transform: none !important; max-width: 100% !important; flex: 0 1 auto; }
  [data-st-free-stack][data-st-free-stack] > [style*="--st-free"]:not([style*="--st-own-phone"]):not([style*="--st-backdrop"]):is(h1, h2, h3, h4, p, div:not([style*="width"])) { flex-basis: 100%; }
}

/* Links follow the site's accent (blocks can still style their own) */
:where(a) { color: var(--accent, inherit); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
:where(a:hover) { text-decoration-thickness: 2px; }
