/* Titus de Bruijn — shared base + desktop (Mac OS X 10.6 Snow Leopard) */
/* self-hosted fonts (OFL): Kalam = phone notes (Marker Felt stand-in), JetBrains Mono = URL bars */
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(assets/fonts/jetbrains-mono.woff2) format('woff2'); }
@font-face { font-family: 'Kalam'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/kalam-400.woff2) format('woff2'); }
@font-face { font-family: 'Kalam'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/kalam-700.woff2) format('woff2'); }
:root {
  --ui: "Lucida Grande", "Lucida Sans Unicode", "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  --mono: "JetBrains Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --hand: "Kalam", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --orange: #ff6a13;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 -.28'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  --focus: 0 0 0 3px rgba(74, 144, 255, .75);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #1b1c1f; overflow: hidden; font-family: var(--ui); color: #222; -webkit-font-smoothing: antialiased; }
button { font-family: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); }
[hidden] { display: none !important; }
.logo { display: block; height: 1em; width: auto; overflow: visible; }
.ico { display: block; width: 100%; height: 100%; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#phone-root, #desk { position: fixed; inset: 0; }
body.is-phone #desk { display: none; }
body:not(.is-phone) #phone-root { display: none; }

/* ============ DESKTOP ============ */
#desk { overflow: hidden; background: #000; user-select: none; -webkit-user-select: none; font-size: 13px; }
#desk input, #desk textarea { user-select: text; -webkit-user-select: text; }

/* ---- login (Snow Leopard: "Aurora"-style space backdrop done in CSS, grey rounded user panel, Lucida Grande) ---- */
.login { position: absolute; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; font-family: var(--ui); transition: opacity .5s ease, transform .6s var(--ease); }
.login.out { opacity: 0; transform: scale(1.12); pointer-events: none; }
.aurora { background-color: #070520; background-image:
  radial-gradient(65% 50% at 80% 18%, rgba(128, 74, 232, .55), transparent 72%),
  radial-gradient(70% 55% at 14% 88%, rgba(28, 86, 214, .55), transparent 72%),
  radial-gradient(50% 36% at 54% 64%, rgba(196, 64, 170, .26), transparent 72%),
  radial-gradient(90% 55% at 50% 116%, rgba(44, 170, 230, .4), transparent 72%),
  linear-gradient(#090720, #160f48 58%, #0b1650); }
.lg-sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.lg-sky::before { content: ""; position: absolute; inset: 0; background-repeat: repeat;
  background-image:
  radial-gradient(1.3px 1.3px at 31px 42px, #fff, transparent), radial-gradient(1px 1px at 128px 96px, rgba(255,255,255,.8), transparent), radial-gradient(1.6px 1.6px at 205px 168px, #fff, transparent), radial-gradient(1px 1px at 74px 188px, rgba(200,214,255,.9), transparent),
  radial-gradient(1px 1px at 88px 54px, rgba(255,255,255,.75), transparent), radial-gradient(1.4px 1.4px at 241px 133px, #fff, transparent), radial-gradient(1px 1px at 312px 262px, rgba(255,255,255,.7), transparent), radial-gradient(1.2px 1.2px at 150px 290px, rgba(220,200,255,.9), transparent),
  radial-gradient(1.8px 1.8px at 410px 120px, #fff, transparent), radial-gradient(1px 1px at 60px 380px, rgba(255,255,255,.7), transparent), radial-gradient(1.2px 1.2px at 330px 410px, rgba(210,230,255,.9), transparent);
  background-size: 240px 220px, 240px 220px, 240px 220px, 240px 220px, 370px 310px, 370px 310px, 370px 310px, 370px 310px, 530px 470px, 530px 470px, 530px 470px; }
.lg-sky::after { content: ""; position: absolute; inset: -20%; background:
  radial-gradient(ellipse 58% 9% at 42% 60%, rgba(120, 210, 255, .5), transparent 70%),
  radial-gradient(ellipse 52% 7% at 60% 47%, rgba(190, 120, 255, .55), transparent 70%),
  radial-gradient(ellipse 44% 6% at 32% 36%, rgba(255, 130, 210, .35), transparent 70%),
  radial-gradient(ellipse 60% 5% at 66% 72%, rgba(90, 160, 255, .4), transparent 70%);
  filter: blur(12px); transform: rotate(-16deg); }
.login::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(0,0,0,.4)); pointer-events: none; }
.lg-top { position: absolute; top: 0; left: 0; right: 0; height: 24px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; font-size: 13px; text-shadow: 0 -1px 0 rgba(0,0,0,.6); z-index: 3; background: linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,.08)); }
.lg-top .logo { height: 11px; color: #ddd; }
.lg-head { position: relative; z-index: 2; order: 1; text-align: center; max-width: 520px; padding: 0 20px; margin-bottom: 24px; text-shadow: 0 -1px 1px rgba(0,0,0,.8); transition: opacity .35s; }
.lg-head h1 { margin: 0; font: 400 23px/1.25 var(--ui); letter-spacing: .1px; }
.lg-head p { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: #dfe3f3; }
.lg-stage { position: relative; z-index: 2; order: 2; width: 340px; min-height: 238px; padding: 14px; display: flex; flex-direction: column; justify-content: center; color: #222; border-radius: 12px; border: 1px solid rgba(0,0,0,.6); background: linear-gradient(rgba(250,250,250,.97), rgba(214,214,216,.97)); box-shadow: 0 1px 0 rgba(255,255,255,.95) inset, 0 12px 38px rgba(0,0,0,.65), 0 0 0 4px rgba(255,255,255,.1); }
.lg-tiles { display: flex; flex-direction: column; gap: 6px; transition: opacity .35s, transform .5s var(--ease); }
.u-tile { width: 100%; background: none; border: 0; color: #222; display: flex; flex-direction: row; align-items: center; gap: 16px; cursor: pointer; font-size: 18px; text-align: left; padding: 9px 12px; border-radius: 8px; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.u-tile:hover { background: linear-gradient(#e6eefb, #cddcf2); box-shadow: 0 0 0 1px rgba(40,90,170,.35) inset; }
.u-av { width: 60px; height: 60px; flex: none; border-radius: 8px; border: 2px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.6); display: grid; place-items: center; position: relative; overflow: hidden; }
.u-av::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 50%; background: linear-gradient(rgba(255,255,255,.3), rgba(255,255,255,.04)); pointer-events: none; }
.u-av.titus { background: radial-gradient(circle at 50% 30%, #3a3d44, #101114); color: #fff; }
.u-av.titus .logo { height: 17px; }
.u-av.guest { background: linear-gradient(#d3d9e1, #8d96a3); }
.u-av.guest svg { width: 40px; height: 40px; fill: #f5f7fa; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.u-tile[data-u="guest"] { font-size: 16px; }
.lg-pass { display: none; flex-direction: column; align-items: center; gap: 10px; position: absolute; inset: 0; justify-content: center; }
.lg-pass .u-av { width: 96px; height: 96px; }
.lg-pass .u-av.titus .logo { height: 28px; }
.lg-stage.pw .lg-tiles { opacity: 0; pointer-events: none; transform: scale(.94); }
.lg-stage.pw .lg-pass { display: flex; animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.88); } }
.lg-name { font-size: 18px; font-weight: bold; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.lg-field { display: flex; align-items: center; background: #fff; border-radius: 6px; border: 1px solid #7d7d7d; box-shadow: 0 1px 3px rgba(0,0,0,.35) inset; width: 232px; height: 28px; padding-left: 10px; }
.lg-field input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font: inherit; font-size: 15px; letter-spacing: 2px; color: #222; }
.lg-go { width: 22px; height: 22px; margin-right: 3px; border-radius: 50%; border: 1px solid #1f4e9c; background: linear-gradient(#a5ccfb, #4f93ec 50%, #2f78dc 51%, #5aa0f2); cursor: pointer; display: grid; place-items: center; padding: 0; box-shadow: 0 1px 1px rgba(0,0,0,.35); }
.lg-go svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lg-go.busy svg { display: none; }
.lg-go.busy::after { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; border-top-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.lg-enterwrap { position: relative; z-index: 2; order: 3; margin-top: 22px; transition: opacity .35s; }
.lg-stage.pw ~ .lg-enterwrap { opacity: 0; visibility: hidden; }
.btn.def.lg-enter { height: 36px; padding: 0 34px; font-size: 16px; border-radius: 18px; cursor: pointer; animation: lgglow 2.6s ease-in-out infinite; }
.btn.def.lg-enter { border-color: #123d80; background: linear-gradient(#3b73c4, #1f55a8 50%, #164690 51%, #2a62b8); }
.btn.def.lg-enter:hover { filter: brightness(1.12); }
@keyframes lgglow { 50% { box-shadow: 0 0 0 4px rgba(120,175,255,.35), 0 0 22px rgba(90,160,255,.7), 0 1px 0 rgba(255,255,255,.55) inset; } }
.lg-msg { position: relative; z-index: 2; order: 4; min-height: 22px; margin-top: 14px; font-size: 15px; text-shadow: 0 -1px 1px #000; opacity: 0; transition: opacity .3s; }
.lg-msg.on { opacity: 1; }
.lg-pw-back { background: none; border: 0; color: #2d5fae; font: inherit; font-size: 12px; cursor: pointer; margin-top: 2px; padding: 4px 10px; }
.lg-pw-back:hover { text-decoration: underline; }
.lg-power { position: absolute; bottom: 30px; left: 0; right: 0; display: flex; justify-content: center; gap: 12px; z-index: 3; opacity: .85; transition: opacity .2s; }
.lg-power:hover { opacity: 1; }
.pw-b { display: flex; align-items: center; gap: 7px; min-height: 28px; padding: 3px 14px 4px; border-radius: 6px; border: 1px solid #5d5d5d; color: #222; font-size: 12px; cursor: pointer; background: linear-gradient(#fafafa, #e4e4e4 50%, #d2d2d2 51%, #e6e6e6); box-shadow: 0 1px 3px rgba(0,0,0,.45), 0 1px 0 #fff inset; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.pw-b span { display: grid; place-items: center; }
.pw-b:hover { background: linear-gradient(#fff, #ececec 50%, #dcdcdc 51%, #eee); }
.pw-b:active { background: linear-gradient(#bbb, #d6d6d6); }
.pw-b svg { width: 15px; height: 15px; fill: none; stroke: #333; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-height: 760px) { .lg-head { margin-bottom: 14px; } .lg-head h1 { font-size: 20px; } .lg-head p { font-size: 12px; } .lg-stage { min-height: 226px; } .lg-enterwrap { margin-top: 14px; } }

.blackout { position: absolute; inset: 0; background: #000; z-index: 3000; display: grid; place-items: center; color: #aaa; font-size: 18px; opacity: 0; pointer-events: none; transition: opacity .6s; text-align: center; }
.blackout.on { opacity: 1; pointer-events: auto; }
.blackout .sm { color: #8c8c8c; font-size: 14px; }
.blackout .boot .logo { height: 40px; color: #ddd; margin: 0 auto 24px; }
.blackout .bar { width: 160px; height: 6px; border-radius: 3px; background: #333; overflow: hidden; margin: 0 auto; }
.blackout .bar i { display: block; height: 100%; width: 0; background: linear-gradient(#bbb, #888); border-radius: 3px; }
.blackout.on .bar i { animation: boot 2.4s ease-in-out forwards; }
@keyframes boot { to { width: 100%; } }

/* ---- OS ---- */
.os { position: absolute; inset: 0; transform-origin: 50% 55%; }
.os.entering { animation: zoomIn 1s var(--ease) both; }
@keyframes zoomIn { from { transform: scale(1.18); opacity: 0; } to { transform: none; opacity: 1; } }
.wall { position: absolute; inset: 0; background: #0a0b18; }
.wpi { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 55%; pointer-events: none; }
.wpi.phone { object-position: 50% 62%; }
.wall::after { content: ""; position: absolute; inset: 0; background: var(--noise); opacity: .35; pointer-events: none; }
.wins { position: absolute; inset: 22px 0 0 0; pointer-events: none; }
.wins > * { pointer-events: auto; }

/* menubar */
.menubar { position: absolute; top: 0; left: 0; right: 0; height: 22px; z-index: 600; display: flex; align-items: center; justify-content: space-between; padding: 0 6px; font-size: 13px; color: #111; background: linear-gradient(rgba(250,250,250,.94), rgba(219,219,219,.94) 50%, rgba(207,207,207,.95)); box-shadow: 0 1px 0 rgba(0,0,0,.55), 0 1px 5px rgba(0,0,0,.35); text-shadow: 0 1px 0 rgba(255,255,255,.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.mb-l, .mb-r { display: flex; align-items: center; height: 100%; }
.mb-i { background: none; border: 0; font: inherit; color: inherit; padding: 0 9px; height: 20px; margin: 1px 0; border-radius: 4px; cursor: default; display: flex; align-items: center; gap: 6px; text-shadow: inherit; white-space: nowrap; }
.mb-i b { font-weight: bold; }
.mb-i.logo-b .logo { height: 11px; color: #222; }
.mb-i:hover, .mb-i.open { background: linear-gradient(#5b95e8, #2b64c4); color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.4); }
.mb-i:hover .logo, .mb-i.open .logo { color: #fff; }
.mb-r .mb-i { padding: 0 7px; }
.mb-r svg { width: 15px; height: 15px; display: block; }
.mb-clock { font-size: 13px; padding: 0 8px; }
.menu { position: absolute; z-index: 650; top: 22px; min-width: 210px; padding: 4px 0; background: linear-gradient(rgba(247,247,247,.97), rgba(236,236,236,.97)); border: 1px solid rgba(0,0,0,.45); border-top: 0; border-radius: 0 0 6px 6px; box-shadow: 0 10px 24px rgba(0,0,0,.45); font-size: 13px; color: #111; animation: menuIn .12s ease-out; }
@keyframes menuIn { from { opacity: 0; } }
.menu button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 22px; padding: 2px 18px 3px; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: default; }
.menu button:hover:not(:disabled), .menu button:focus-visible { background: linear-gradient(#5b95e8, #2b64c4); color: #fff; box-shadow: none; }
.menu button:disabled { color: #999; }
.menu kbd { font: inherit; color: inherit; opacity: .65; }
.menu hr { border: 0; border-top: 1px solid rgba(0,0,0,.15); margin: 4px 0; }

/* ---- dock ---- */
.dock-wrap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; z-index: 400; pointer-events: none; }
.dock { position: relative; display: flex; align-items: flex-end; padding: 0 22px 14px; height: 102px; pointer-events: auto; perspective: 520px; }
.dock .shelf { position: absolute; left: 0; right: 0; bottom: 0; height: 74px; transform-origin: 50% 100%; transform: rotateX(58deg); border-radius: 6px; background: linear-gradient(rgba(255,255,255,.62), rgba(210,225,245,.28) 40%, rgba(150,175,215,.22)); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 0 22px rgba(0,0,0,.55) inset, 0 -1px 0 rgba(255,255,255,.35); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.dock .shelf::before { content: ""; position: absolute; inset: 0; border-radius: 6px; background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,.28) 38%, transparent 52%), repeating-linear-gradient(90deg, rgba(255,255,255,.0) 0 68px, rgba(255,255,255,.08) 68px 69px); }
.dock .shelf::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(255,255,255,.85); border-radius: 6px 6px 0 0; }
.dk-i { position: relative; width: 56px; height: 56px; margin: 0 3px 9px; flex: none; background: none; border: 0; padding: 0; cursor: pointer; transform-origin: 50% 100%; transition: transform .18s ease-out; will-change: transform; }
.dk-i.mag { transition: none; }
.dk-i .ico { filter: drop-shadow(0 3px 3px rgba(0,0,0,.45)); }
.dk-i .refl { position: absolute; left: 0; right: 0; top: 100%; height: 100%; transform: scaleY(-1); transform-origin: 50% 0; opacity: .38; -webkit-mask-image: linear-gradient(transparent 55%, #000); mask-image: linear-gradient(transparent 55%, #000); pointer-events: none; }
.dk-i .run { position: absolute; left: 50%; bottom: -8px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: radial-gradient(circle, #e6f8ff, #4bb2ff 55%, rgba(60,150,255,0) 100%); box-shadow: 0 0 6px 2px rgba(80,170,255,.9); opacity: 0; transition: opacity .25s; }
.dk-i.on .run { opacity: 1; }
.dk-i .lbl { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%) scale(calc(1 / var(--s, 1))); transform-origin: 50% 100%; padding: 3px 10px 4px; background: linear-gradient(rgba(60,62,68,.96), rgba(22,23,26,.96)); color: #fff; font-size: 13px; border-radius: 9px; white-space: nowrap; border: 1px solid rgba(255,255,255,.35); box-shadow: 0 3px 8px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .12s; text-shadow: 0 -1px 0 #000; }
.dk-i .lbl::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; width: 8px; height: 8px; transform: rotate(45deg); background: rgba(22,23,26,.96); border-right: 1px solid rgba(255,255,255,.3); border-bottom: 1px solid rgba(255,255,255,.3); }
.dk-i:hover .lbl, .dk-i:focus-visible .lbl { opacity: 1; }
.dk-i:focus-visible { box-shadow: none; }
.dk-i:focus-visible .ico { filter: drop-shadow(0 0 6px #6cb4ff); }
.dk-i.bounce { animation: bounce .7s ease-out 2; }
@keyframes bounce { 0%, 100% { translate: 0 0; } 35% { translate: 0 -26px; } 62% { translate: 0 0; } 80% { translate: 0 -8px; } }
.dk-sep { width: 2px; height: 50px; margin: 0 8px 12px; background: linear-gradient(transparent, rgba(255,255,255,.7), transparent); flex: none; }

/* ---- spotlight ---- */
.spot { position: absolute; z-index: 800; top: 24px; right: 66px; width: 430px; border-radius: 9px; overflow: hidden; background: linear-gradient(#f5f8fe, #e3ebf8); border: 1px solid rgba(20,50,100,.7); box-shadow: 0 16px 40px rgba(0,0,0,.55), 0 0 0 3px rgba(80,140,230,.25); animation: menuIn .15s; font-size: 13px; color: #111; }
.sp-head { padding: 9px 10px; background: linear-gradient(#6fa2ec, #3c74d0 50%, #2c63bd 51%, #3d78d6); border-bottom: 1px solid #1c4691; }
.sp-head label { display: flex; align-items: center; gap: 7px; background: #fff; border-radius: 15px; padding: 4px 11px; box-shadow: 0 1px 3px rgba(0,0,0,.5) inset; color: #567; }
.sp-head input:focus-visible { box-shadow: none; }
.sp-head input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 15px; color: #111; background: none; min-width: 0; }
.sp-list { max-height: 340px; overflow: auto; padding-bottom: 4px; }
.sp-sec { font-size: 11px; font-weight: bold; color: #4a5f80; padding: 8px 12px 2px; background: linear-gradient(#e8eef9, #dde6f4); border-top: 1px solid #c9d4e6; margin-top: 4px; }
.sp-sec:first-child { margin-top: 0; border-top: 0; }
.sp-r { display: flex; width: 100%; align-items: center; gap: 10px; padding: 4px 12px; background: none; border: 0; font: inherit; text-align: left; cursor: default; color: #111; }
.sp-r .ico { width: 26px; height: 26px; flex: none; }
.sp-r small { display: block; color: #6a7686; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 330px; }
.sp-r.sel { background: linear-gradient(#5b95e8, #2b64c4); color: #fff; }
.sp-r.sel small { color: #d6e6ff; }
.sp-empty { padding: 14px; color: #667; text-align: center; }
.sp-egg { font-size: 20px; padding: 12px; text-align: center; }

/* ---- windows ---- */
.win { position: absolute; display: flex; flex-direction: column; min-width: 280px; border-radius: 6px 6px 3px 3px; background: #ececec; box-shadow: 0 0 0 1px rgba(0,0,0,.62), 0 24px 64px rgba(0,0,0,.65), 0 8px 18px rgba(0,0,0,.4); will-change: transform; transform-origin: 0 0; }
.win.blur { box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 10px 30px rgba(0,0,0,.45); }
.win.closing { pointer-events: none; }
.win-tb { position: relative; flex: none; height: 27px; border-radius: 6px 6px 0 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(#ebebeb, #cbcbcb 49%, #bfbfbf 50%, #b1b1b1); border-bottom: 1px solid #555; box-shadow: 0 1px 0 rgba(255,255,255,.9) inset; cursor: default; touch-action: none; }
.win.blur .win-tb { background: linear-gradient(#f3f3f3, #e4e4e4 49%, #dcdcdc 50%, #d2d2d2); border-bottom-color: #8b8b8b; }
.win-title { font-size: 14px; color: #2a2a2a; text-shadow: 0 1px 0 rgba(255,255,255,.7); pointer-events: none; display: flex; align-items: center; gap: 6px; max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win.blur .win-title { color: #8a8a8a; }
.win-title .ico { width: 15px; height: 15px; flex: none; }
.tl { position: absolute; left: 9px; top: 6px; display: flex; gap: 8px; }
.tl button { position: relative; width: 15px; height: 15px; border-radius: 50%; padding: 0; border: 1px solid rgba(0,0,0,.4); cursor: default; display: grid; place-items: center; color: transparent; font-size: 9px; font-weight: 900; line-height: 1; box-shadow: 0 1px 0 rgba(255,255,255,.7), 0 1px 2px rgba(0,0,0,.3) inset; }
.tl button::after { content: ""; position: absolute; left: 2px; right: 2px; top: 1px; height: 6px; border-radius: 50%; background: linear-gradient(rgba(255,255,255,.85), rgba(255,255,255,.1)); }
.tl .c { background: radial-gradient(circle at 50% 70%, #ff9b8c, #e8402f 60%, #b02214); border-color: #8c1d12; }
.tl .m { background: radial-gradient(circle at 50% 70%, #ffe58a, #f2b926 60%, #bd8708); border-color: #946a07; }
.tl .z { background: radial-gradient(circle at 50% 70%, #a5ec7e, #44b929 60%, #277b14); border-color: #1d6310; }
.win.blur .tl button { background: linear-gradient(#e3e3e3, #bdbdbd); border-color: #8f8f8f; }
.tl:hover button { color: rgba(60,0,0,.75); }
.tl button span { position: relative; z-index: 2; }
.win-body { position: relative; flex: 1; min-height: 0; overflow: auto; background: #ececec; border-radius: 0 0 3px 3px; }
.win.proj .win-body { display: flex; flex-direction: column; overflow: hidden; }
.win-rs { position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; cursor: nwse-resize; z-index: 5; touch-action: none; background: linear-gradient(135deg, transparent 55%, rgba(0,0,0,.35) 56% 60%, transparent 61% 70%, rgba(0,0,0,.35) 71% 75%, transparent 76%); }
.sheet-dim { position: absolute; inset: 0; background: rgba(0,0,0,.22); z-index: 20; border-radius: 0 0 3px 3px; animation: menuIn .2s; }
.sheet { position: absolute; z-index: 21; left: 50%; top: 0; width: min(380px, 88%); transform: translateX(-50%); background: linear-gradient(#f4f4f4, #e0e0e0); border: 1px solid #666; border-top: 0; border-radius: 0 0 8px 8px; padding: 16px 20px 14px; box-shadow: 0 10px 28px rgba(0,0,0,.5); display: flex; gap: 14px; animation: sheetIn .35s var(--ease); font-size: 13px; }
@keyframes sheetIn { from { transform: translate(-50%, -100%); } }
.sheet .ico { width: 54px; height: 54px; flex: none; }
.sheet h3 { margin: 0 0 6px; font-size: 13px; }
.sheet p { margin: 0 0 14px; color: #333; line-height: 1.4; font-size: 12px; }
.sheet .row { display: flex; justify-content: flex-end; gap: 8px; }
.btn { font: inherit; font-size: 13px; padding: 3px 18px 4px; border-radius: 5px; border: 1px solid #7d7d7d; background: linear-gradient(#fff, #ebebeb 50%, #d9d9d9 51%, #ececec); color: #111; box-shadow: 0 1px 1px rgba(0,0,0,.25), 0 1px 0 #fff inset; cursor: default; min-width: 74px; }
.btn:active { background: linear-gradient(#bbb, #d6d6d6); }
.btn.def { border-color: #2a59a8; background: linear-gradient(#9fc6fb, #5b9aee 50%, #2f78dc 51%, #5aa0f2); color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.35); box-shadow: 0 1px 1px rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.55) inset; }

/* project window */
.tagp { padding: 1px 9px 2px; border-radius: 9px; background: linear-gradient(#f9f9f9, #dcdcdc); border: 1px solid #8f8f8f; font-size: 11px; box-shadow: 0 1px 0 #fff inset; color: #333; }


/* exposé */
.expo-dim { position: absolute; inset: 0; z-index: 560; background: rgba(0,0,0,.45); animation: menuIn .25s; }
.win.xp { transition: transform .45s var(--ease); cursor: pointer; z-index: 570 !important; }
.win.xp > * { pointer-events: none; }
.xp-lbl { position: absolute; z-index: 575; color: #fff; font-size: 14px; text-align: center; text-shadow: 0 1px 3px #000; pointer-events: none; transform: translateX(-50%); white-space: nowrap; }
@keyframes hintIn { from { opacity: 0; transform: translate(-50%, -8px); } }
.toast { position: absolute; z-index: 950; left: 50%; top: 60px; transform: translateX(-50%); padding: 10px 20px; border-radius: 12px; background: rgba(20,20,22,.82); color: #fff; font-size: 15px; box-shadow: 0 6px 20px rgba(0,0,0,.5); animation: hintIn .3s var(--ease); pointer-events: none; }

/* about */
.about { text-align: center; padding: 22px 26px 18px; background: linear-gradient(#fbfbfb, #ececec); height: 100%; display: flex; flex-direction: column; align-items: center; }
.about-logo { width: 150px; height: 92px; border-radius: 18px; display: grid; place-items: center; background: radial-gradient(circle at 50% 25%, #3d4047, #0e0f12); color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.45), 0 0 0 1px #000, 0 1px 0 rgba(255,255,255,.2) inset; position: relative; overflow: hidden; }
.about-logo::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 50%; background: linear-gradient(rgba(255,255,255,.25), rgba(255,255,255,0)); }
.about-logo .logo { height: 34px; }
.about h1 { margin: 12px 0 0; font-size: 28px; font-weight: 300; letter-spacing: -.01em; }
.about .ver { color: #777; font-size: 11px; margin: 2px 0 14px; }
.about dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0 0 14px; text-align: left; font-size: 11px; }
.about dt { text-align: right; font-weight: bold; color: #333; }
.about dd { margin: 0; color: #444; }
.about .copy { font-size: 9.5px; color: #888; margin-top: auto; padding-top: 12px; }

/* profile (System Profiler) */
.prof { display: grid; grid-template-columns: 170px 1fr; height: 100%; background: #fff; }
.srcl { background: linear-gradient(#e3e8f0, #d3dae6); border-right: 1px solid #8e97a6; padding: 8px 0; overflow: auto; }
.srcl h6 { margin: 8px 12px 3px; font-size: 10px; color: #7b8493; text-transform: uppercase; letter-spacing: .04em; }
.srcl button { display: block; width: 100%; text-align: left; padding: 3px 12px 4px 22px; background: none; border: 0; font: inherit; font-size: 12px; color: #1d2430; cursor: default; }
.srcl button.on { background: linear-gradient(#7fa9e8, #4a78c4); color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.3); }
.prof-main { overflow: auto; padding: 14px 18px; font-size: 12px; line-height: 1.5; }
.prof-main h2 { margin: 0 0 8px; font-size: 15px; }
.kv { display: grid; grid-template-columns: 150px 1fr; border-top: 1px solid #e3e3e3; }
.kv > * { padding: 5px 8px; border-bottom: 1px solid #ececec; }
.kv > b { text-align: right; color: #555; font-weight: normal; }
.kv > :nth-child(4n+1), .kv > :nth-child(4n+2) { background: #f4f7fb; }
.kv ul { margin: 0; padding-left: 16px; }
.prof-main .pill { display: inline-block; padding: 1px 8px 2px; margin: 2px 3px 2px 0; border-radius: 9px; background: #eef2f8; border: 1px solid #c6cfdd; font-size: 11px; }

/* finder */
.fd { display: grid; grid-template-columns: 150px 1fr; height: 100%; }
.fd-grid { padding: 14px; display: grid; grid-template-columns: repeat(auto-fill, 96px); gap: 14px 6px; align-content: start; background: #fff; overflow: auto; }
.fd-it { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; border-radius: 6px; font-size: 11.5px; text-align: center; cursor: default; color: #111; }
.fd-it .ico { width: 56px; height: 56px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.fd-it:focus, .fd-it.sel { background: rgba(120,120,130,.25); }
.fd-it.sel span { background: #2b64c4; color: #fff; border-radius: 8px; padding: 0 6px; }


/* career: Finder column view (Snow Leopard) */
.win.careerwin .win-body { background: #fff; }
.cf { display: flex; flex-direction: column; height: 100%; background: #fff; color: #111; }
.cf-tb { flex: none; display: flex; align-items: center; gap: 14px; padding: 5px 10px; background: linear-gradient(#cdcdcd, #b4b4b4); border-bottom: 1px solid #5a5a5a; box-shadow: 0 1px 0 rgba(255,255,255,.55) inset; font-size: 12px; color: #333; }
.cf-nav, .cf-seg { display: inline-flex; border: 1px solid #7a7a7a; border-radius: 5px; overflow: hidden; background: linear-gradient(#fff, #ebebeb 50%, #d9d9d9 51%, #ececec); box-shadow: 0 1px 0 rgba(255,255,255,.6); }
.cf-nav i, .cf-seg i { font-style: normal; display: block; min-width: 30px; height: 20px; line-height: 20px; text-align: center; font-size: 9px; color: #333; border-left: 1px solid #9a9a9a; }
.cf-nav i:first-child, .cf-seg i:first-child { border-left: 0; }
.cf-nav i.off { color: #aaa; }
.cf-seg i::before { content: ""; display: inline-block; vertical-align: middle; width: 12px; height: 10px; background: repeating-linear-gradient(#555 0 2px, transparent 2px 4px); opacity: .75; }
.cf-seg i:nth-child(1)::before { background: radial-gradient(#555 45%, transparent 50%) 0 0/6px 5px; }
.cf-seg i:nth-child(3)::before { background: linear-gradient(90deg, #555 0 3px, transparent 3px 4px, #555 4px 7px, transparent 7px 8px, #555 8px 12px); }
.cf-seg i:nth-child(4)::before { background: linear-gradient(#555 0 6px, transparent 6px 7px, #888 7px 10px); }
.cf-seg i.on { background: linear-gradient(#a9a9a9, #c9c9c9); box-shadow: 0 1px 3px rgba(0,0,0,.35) inset; }
.cf-path { margin-left: auto; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.cf-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: 230px 1fr; }
.cf-list { overflow: auto; background: #fff; border-right: 1px solid #b8b8b8; padding: 0; }
.cf-row { display: flex; align-items: center; gap: 9px; width: 100%; padding: 4px 8px 5px; border: 0; background: none; font: inherit; font-size: 13px; text-align: left; color: #111; cursor: default; }
.cf-row:nth-child(even) { background: #f1f4fa; }
.cf-row.on { background: linear-gradient(#6aa0ec, #2f66c8); color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.25); }
.cf-row:focus-visible { box-shadow: 0 0 0 2px rgba(74,144,255,.9) inset; }
.cf-nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-ar { font-style: normal; font-size: 8px; opacity: .65; }
.cf-badge { flex: none; position: relative; overflow: hidden; width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; font-size: 11px; font-weight: bold; color: #fff; background: linear-gradient(var(--cv, #17466e), #0b1b30); border: 1px solid rgba(0,0,0,.45); text-shadow: 0 -1px 0 rgba(0,0,0,.5); }
.cf-badge::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 50%; background: linear-gradient(rgba(255,255,255,.4), rgba(255,255,255,.05)); }
.cf-badge.big { width: 64px; height: 64px; border-radius: 14px; font-size: 32px; box-shadow: 0 3px 8px rgba(0,0,0,.4); }
.cv-navy { --cv: #3b63ab; } .cv-blue { --cv: #2f7fc0; } .cv-green { --cv: #3a9a64; } .cv-grey { --cv: #7a8089; } .cv-red { --cv: #bb3a3f; }
.cf-prev { overflow: auto; padding: 18px 24px 20px; background: linear-gradient(#fff, #f6f6f6); }
.cf-prev:focus-visible { box-shadow: 0 0 0 2px rgba(74,144,255,.8) inset; }
.cf-ph { display: flex; gap: 16px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid #ddd; }
.cf-ph h2 { margin: 0; font-size: 21px; font-weight: bold; }
.cf-ph p { margin: 3px 0 0; font-size: 12px; color: #666; }
.cf-info { margin: 14px 0 2px; font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: .06em; }
.cf-prev h4 { margin: 14px 0 5px; font-size: 13px; }
.cf-prev h4 small { font-weight: normal; color: #777; margin-left: 8px; font-size: 11px; }
.cf-prev ul { margin: 0; padding: 0; list-style: none; }
.cf-prev li { position: relative; padding: 5px 0 5px 18px; font-size: 13px; line-height: 1.45; border-bottom: 1px solid #ececec; }
.cf-prev li:last-child { border-bottom: 0; }
.cf-prev li::before { content: ""; position: absolute; left: 3px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(#9fbfee, #3f78d0); box-shadow: 0 1px 1px rgba(0,0,0,.3); }
.cf-sb { flex: none; text-align: center; font-size: 11px; color: #444; padding: 3px 8px 4px; background: linear-gradient(#e6e6e6, #cfcfcf); border-top: 1px solid #8f8f8f; text-shadow: 0 1px 0 rgba(255,255,255,.6); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .dk-i.bounce { animation: none; }
}

/* ============ folders: desktop icons, dock stacks ============ */
.dicons { position: absolute; z-index: 0; top: 40px; right: 16px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.di { width: 96px; padding: 4px 2px 3px; background: none; border: 0; border-radius: 5px; color: #fff; font-size: 12px; text-shadow: 0 1px 1px #000, 0 1px 3px #000, 0 0 8px rgba(0,0,0,.85); cursor: default; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.di .ico { width: 64px; height: 64px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); }
.di span { padding: 1px 7px 2px; border-radius: 9px; max-width: 100%; text-align: center; background: rgba(12,16,26,.34); }
.di.sel span, .di:focus-visible span { background: #2a62c4; text-shadow: none; box-shadow: 0 1px 2px rgba(0,0,0,.5); }
.di.sel .ico { filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)) brightness(.85); }
.di:focus-visible { box-shadow: none; }

.stack { position: absolute; z-index: 450; height: 0; pointer-events: none; transition: opacity .18s; }
.stack.out { opacity: 0; }
.stack .st-i { position: absolute; left: 0; bottom: 0; width: 56px; height: 56px; padding: 0; background: none; border: 0; cursor: pointer; pointer-events: auto; transform: translate(var(--tx), var(--ty)); animation: stIn .38s var(--ease) backwards; animation-delay: calc(var(--i) * 32ms); }
.stack .st-i .ico { filter: drop-shadow(0 3px 4px rgba(0,0,0,.55)); transition: transform .15s; }
.stack .st-i:hover .ico, .stack .st-i:focus-visible .ico { transform: scale(1.1); }
.stack .st-l { position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); white-space: nowrap; padding: 3px 11px 4px; border-radius: 11px; font-size: 13px; color: #fff; background: linear-gradient(rgba(70,72,78,.96), rgba(24,25,28,.96)); border: 1px solid rgba(255,255,255,.28); box-shadow: 0 2px 5px rgba(0,0,0,.5); text-shadow: 0 -1px 0 #000; }
@keyframes stIn { from { transform: translate(0, 0) scale(.35); opacity: 0; } }
.stack.grid { height: auto; background: rgba(24,26,32,.82); border: 1px solid rgba(255,255,255,.3); border-radius: 12px; padding: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; pointer-events: auto; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.stack.grid .st-i { position: relative; transform: none; width: 100%; height: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stack.grid .st-i .ico { width: 56px; height: 56px; }
.stack.grid .st-l { position: static; transform: none; order: 2; background: none; border: 0; box-shadow: none; padding: 0; font-size: 11px; }
.dk-i.stk-open .ico { filter: drop-shadow(0 3px 3px rgba(0,0,0,.45)) brightness(1.1); }

/* ============ project window ============ */
.win.proj .win-body { display: flex; flex-direction: column; overflow: hidden; }
.pj { display: flex; flex-direction: column; height: 100%; background: linear-gradient(#fafafa, #ececec); }
.pj-scroll { flex: 1; min-height: 0; overflow: auto; padding: 28px 36px 18px; }
.pj-head { display: flex; gap: 20px; align-items: center; margin-bottom: 22px; }
.pj-ic { flex: none; width: 96px; height: 96px; filter: drop-shadow(0 5px 7px rgba(0,0,0,.4)); }
.pj-head h2 { margin: 0; font-size: 30px; font-weight: 400; letter-spacing: -.015em; color: #1d1d1f; }
.pj-sum { margin: 4px 0 0; font-size: 14.5px; color: #666; }
.pj h4 { margin: 18px 0 7px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #888; font-weight: bold; }
.pj-p { margin: 0; font-size: 14.5px; line-height: 1.55; color: #2a2a2a; }
.pj-rel { margin-top: 8px; color: #4a5560; }
.pj-do { list-style: none; margin: 0; padding: 0; }
.pj-do li { position: relative; padding: 8px 0 8px 28px; font-size: 14.5px; line-height: 1.4; color: #2a2a2a; border-bottom: 1px solid #dadada; }
.pj-do li:last-child { border-bottom: 0; }
.pj-do li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(#9fbfee, #3f78d0); box-shadow: 0 1px 1px rgba(0,0,0,.3); }
.pj .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pj .tagp { font-size: 12px; padding: 2px 11px 3px; }
.pj-foot { flex: none; display: flex; justify-content: center; padding: 14px; background: linear-gradient(#dcdcdc, #bdbdbd); border-top: 1px solid #6e6e6e; box-shadow: 0 1px 0 rgba(255,255,255,.7) inset; }
.btn.def.demo-btn, .btn.def.cw-go { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 38px; padding: 0 36px; font-size: 16px; border-radius: 19px; }
.btn.def.demo-btn:hover, .btn.def.cw-go:hover { filter: brightness(1.06); }

/* ============ demo window ============ */
.win.demo .win-body { display: flex; flex-direction: column; overflow: hidden; background: #fff; }
.dm { display: flex; flex-direction: column; height: 100%; }
.dm-tb { flex: none; display: flex; align-items: center; gap: 6px; padding: 4px 8px; background: linear-gradient(#cdcdcd, #b4b4b4); border-bottom: 1px solid #5a5a5a; box-shadow: 0 1px 0 rgba(255,255,255,.6) inset; }
.dm-b { width: 30px; height: 22px; display: grid; place-items: center; padding: 0; border-radius: 5px; border: 1px solid #7d7d7d; background: linear-gradient(#fff, #ebebeb 50%, #d9d9d9 51%, #ececec); color: #333; box-shadow: 0 1px 0 #fff inset, 0 1px 1px rgba(0,0,0,.2); cursor: pointer; }
.dm-b svg { width: 14px; height: 14px; }
.dm-b:active { background: linear-gradient(#bbb, #d6d6d6); }
.dm-url { flex: 1; margin-left: 6px; padding: 2px 12px; border-radius: 11px; background: #fff; border: 1px solid #8a8a8a; box-shadow: 0 1px 2px rgba(0,0,0,.2) inset; font: 12px var(--mono); color: #666; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dm-view { position: relative; flex: 1; min-height: 0; background: #fff; }
.dm-frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.dm-ov { position: absolute; inset: 0; display: none; }
.win.blur .dm-ov, .wins.drag .dm-ov { display: block; }

/* folder + contact + about additions */
.fd.fd1 { display: block; }
.fd.fd1 .fd-grid { height: 100%; }
.cw { height: 100%; padding: 26px 34px 22px; text-align: center; background: linear-gradient(#fbfbfb, #ececec); display: flex; flex-direction: column; align-items: center; }
.cw-ic { width: 72px; height: 72px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
.cw h2 { margin: 12px 0 6px; font-size: 20px; font-weight: 400; }
.cw p { margin: 0 0 20px; font-size: 13px; line-height: 1.5; color: #444; }
.about-do { width: 100%; text-align: left; margin: 0 0 14px; padding: 10px 14px 6px; background: #fff; border: 1px solid #cfcfcf; border-radius: 7px; box-shadow: 0 1px 0 #fff; }
.about-do h4 { margin: 0 0 4px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #888; }
.about-do ul { margin: 0; padding: 0 0 0 16px; font-size: 12px; line-height: 1.45; color: #333; }
.about-do li { margin-bottom: 6px; }
.prof .kv ul { margin: 0; padding-left: 16px; }

/* ---- phase 3: a11y ---- */
.win:focus { outline: 0; }
.win:focus-visible { box-shadow: 0 0 0 1px rgba(0,0,0,.62), 0 24px 64px rgba(0,0,0,.65), 0 8px 18px rgba(0,0,0,.4); outline: 3px solid rgba(74, 144, 255, .6); outline-offset: 1px; }
.win.blur:focus-visible { box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 10px 30px rgba(0,0,0,.45); }
.mb-i:focus-visible { background: linear-gradient(#5b95e8, #2b64c4); color: #fff; box-shadow: none; }
.mb-i:focus-visible .logo { color: #fff; }
.u-tile:focus-visible .u-av { box-shadow: 0 0 0 5px #fff, 0 0 0 9px rgba(74,144,255,.85); }
.u-tile:focus-visible, .pw-b:focus-visible { box-shadow: none; }
.pw-b:focus-visible span { box-shadow: 0 0 0 3px rgba(74,144,255,.9); }

/* ---- phase 3b ---- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* one-time keyboard hint: a small HUD popover under the menu bar, like the dock labels */
.tip { position: absolute; z-index: 750; bottom: 16px; right: 16px; display: flex; align-items: center; gap: 12px; padding: 6px 8px 7px 12px; font-size: 12px; color: #e9ecf2; background: linear-gradient(rgba(60,62,68,.94), rgba(22,23,26,.94)); border: 1px solid rgba(255,255,255,.3); border-radius: 9px; box-shadow: 0 4px 12px rgba(0,0,0,.5); text-shadow: 0 -1px 0 #000; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .35s var(--ease); pointer-events: none; }
.tip.on { opacity: 1; transform: none; pointer-events: auto; }
.tip b { font-weight: bold; color: #fff; }
.tip-k { white-space: nowrap; color: #b9c0cc; }
.tip-k i { font-style: normal; }
.tip kbd { font: inherit; font-size: 11px; color: #fff; padding: 0 5px 1px; border-radius: 4px; background: linear-gradient(#6a6d75, #3a3c42); border: 1px solid #000; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset; }
.tip-x { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: none; color: #aab; font-size: 16px; line-height: 18px; cursor: pointer; }
.tip-x:hover { color: #fff; background: rgba(255,255,255,.14); }
@media (max-width: 1100px) { .tip b { display: none; } }

/* a touch more presence on big desktop screens */
@media (min-width: 1600px) {
  .dk-i .lbl { font-size: 15px; padding: 4px 12px 5px; border-radius: 10px; }
  .win-title { font-size: 15.5px; gap: 7px; }
  .win-title .ico { width: 18px; height: 18px; }
  .win-tb { height: 31px; }
  .tl { top: 7px; left: 11px; gap: 9px; }
  .tl button { width: 17px; height: 17px; }
  .tip { font-size: 13px; }
}

/* welcome window (opens after login) */
.wl { height: 100%; padding: 22px 28px 16px; background: linear-gradient(#fbfbfb, #ececec); display: flex; flex-direction: column; gap: 14px; overflow: auto; color: #222; }
.wl-head { display: flex; gap: 14px; align-items: center; }
.wl-av { flex: none; width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, #3a3d44, #101114); color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.wl-av .logo { height: 22px; }
.wl-head h2 { margin: 0 0 3px; font-size: 22px; font-weight: 400; }
.wl-head p { margin: 0; font-size: 13px; line-height: 1.45; color: #444; }
.wl-q { font-size: 14px; font-weight: bold; color: #333; margin-top: 4px; }
.wl-big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wl-b { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px 12px; border-radius: 10px; border: 1px solid #b4b8c0; background: linear-gradient(#fff, #e6e9ee); box-shadow: 0 1px 2px rgba(0,0,0,.2), 0 1px 0 #fff inset; cursor: pointer; font: inherit; color: #111; }
.wl-b:hover { border-color: #3b78d0; background: linear-gradient(#fff, #dbe8fb); }
.wl-b:active { background: linear-gradient(#cfd8e8, #e3e9f3); }
.wl-b .ico { width: 72px; height: 72px; filter: drop-shadow(0 3px 3px rgba(0,0,0,.35)); }
.wl-b b { font-size: 15px; }
.wl-b span { font-size: 11px; color: #666; line-height: 1.3; text-align: center; }
.wl-sm { display: flex; gap: 10px; justify-content: center; }
.wl-sm .btn { padding: 5px 22px 6px; font-size: 14px; }
.wl-tip { margin: auto 0 0; text-align: center; font-size: 12px; color: #666; }

/* folder windows: big icons, one click */
.fd.fd1 .fd-grid { grid-template-columns: repeat(auto-fill, 128px); gap: 18px 10px; padding: 20px; }
.fd.fd1 .fd-it { font-size: 14px; gap: 8px; padding: 10px 4px; cursor: pointer; }
.fd.fd1 .fd-it .ico { width: 80px; height: 80px; }
.fd.fd1 .fd-it:hover { background: rgba(60,120,220,.14); }

/* Bigger windows and controls on desktop (owner feedback): content scales with --ui, demos are not zoomed. */
:root { --uiscale: 1; }
@media (min-width: 1200px) { :root { --uiscale: 1.15; } }
@media (min-width: 1600px) { :root { --uiscale: 1.28; } }
.win:not(.demo) .win-body { zoom: var(--uiscale); }

/* the tdb cursor blinks (solid with reduced motion) */
.cursor { animation: cursor-blink 1.06s steps(1, end) infinite; }
@keyframes cursor-blink { 0%, 52% { opacity: 1; } 52.01%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
