/* ==========================================================================
   Daniel Vista — an Aero-glass desktop portfolio
   ========================================================================== */
/* Selawik: open-source (SIL OFL 1.1) metric match for Segoe UI, so Macs, Linux and phones get the right widths */
@font-face { font-family: "Selawik"; src: url("../assets/fonts/selawkl.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Selawik"; src: url("../assets/fonts/selawk.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Selawik"; src: url("../assets/fonts/selawksb.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Selawik"; src: url("../assets/fonts/selawkb.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --font: "Segoe UI", Selawik, "Open Sans", Tahoma, "Helvetica Neue", Arial, sans-serif;
  --glass: rgba(150, 190, 225, 0.48);
  --glass-inactive: rgba(175, 195, 215, 0.36);
  --glass-border: rgba(20, 30, 45, 0.85);
  --text: #1e1e1e;
  --link: #0066cc;
  --sel: #cce8ff;
  --sel-border: #99d1ff;
  --taskbar-h: 32px;
  --di: 1;
  --win-radius: 8px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  font-family: var(--font); font-size: 12px; color: var(--text);
  background: #000; -webkit-font-smoothing: antialiased;
  user-select: none; -webkit-user-select: none;
}
button { font-family: inherit; font-size: inherit; }
img { -webkit-user-drag: none; }
a { color: var(--link); }
.selectable, .selectable * { user-select: text; -webkit-user-select: text; }

/* ---------- Boot ---------- */
#boot {
  position: fixed; inset: 0; z-index: 100000; background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity .6s;
}
#boot .boot-orb {
  width: 120px; height: 120px; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 50% 40%, rgba(120,200,255,.9), rgba(20,80,160,.6) 45%, transparent 70%);
  filter: blur(.3px); animation: bootGlow 2.4s ease-in-out infinite;
}
#boot .boot-orb::after {
  content: ""; position: absolute; inset: 30px; border-radius: 50%;
  background: conic-gradient(from 0deg, #37d67a, #2fb6ff, #9be7ff, #5cf0b0, #37d67a);
  opacity: .0; animation: bootSpin 2.4s ease-in-out infinite;
  mask: radial-gradient(circle, transparent 38%, #000 40%);
  -webkit-mask: radial-gradient(circle, transparent 38%, #000 40%);
}
@keyframes bootGlow { 0%,100% { transform: scale(.9); opacity: .6 } 50% { transform: scale(1.05); opacity: 1 } }
@keyframes bootSpin { 0% { transform: rotate(0); opacity: .2 } 50% { opacity: .9 } 100% { transform: rotate(360deg); opacity: .2 } }
#boot .boot-bar {
  margin-top: 60px; width: 180px; height: 14px; border: 1px solid #5a5a5a; border-radius: 3px;
  overflow: hidden; position: relative; background: #050505;
}
#boot .boot-bar i {
  position: absolute; top: 2px; bottom: 2px; width: 30px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #2ec82e, #4cff4c, #2ec82e, transparent);
  animation: bootBar 1.6s linear infinite;
}
@keyframes bootBar { from { left: -40px } to { left: 190px } }
#boot .boot-copy { position: absolute; bottom: 30px; color: #8a8a8a; font-size: 11px; letter-spacing: .3px; }

/* ---------- Welcome / login ---------- */
#login {
  position: fixed; inset: 0; z-index: 99999; display: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 120%, rgba(110,190,255,.35), transparent 60%),
    radial-gradient(ellipse 60% 40% at 15% 10%, rgba(80,160,230,.35), transparent 60%),
    linear-gradient(180deg, #0b3b75 0%, #1a5aa6 45%, #0f4687 100%);
  color: #fff; align-items: center; justify-content: center; flex-direction: column;
  transition: opacity .7s;
}
#login::before { /* light ribbons */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(170deg, transparent 40%, rgba(255,255,255,.10) 48%, transparent 56%),
    linear-gradient(165deg, transparent 58%, rgba(170,220,255,.12) 64%, transparent 70%);
}
#login .login-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px;
  cursor: pointer; padding: 18px 28px; border-radius: 8px; border: 1px solid transparent; transition: .2s;
}
#login .login-tile:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); }
.user-frame {
  width: 126px; height: 126px; padding: 9px; border-radius: 10px;
  background: linear-gradient(160deg, rgba(255,255,255,.95), rgba(220,235,250,.75) 45%, rgba(170,200,230,.7));
  box-shadow: 0 2px 12px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.8);
  position: relative;
}
.user-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; border: 1px solid rgba(0,0,0,.35); display: block; background: #9cc; }
.user-frame::after { content: ""; position: absolute; inset: 9px 9px 50% 9px; border-radius: 4px 4px 40% 40%/4px 4px 12px 12px; background: linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,0)); pointer-events: none; }
#login .login-name { font-size: 24px; font-weight: 300; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
#login .login-hint { font-size: 12px; opacity: .75; }
#login .login-arrow {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 30%, #8fd6ff, #1d78c9 60%, #0f4f91);
  border: 1px solid rgba(255,255,255,.6); box-shadow: 0 0 10px rgba(120,200,255,.6); font-size: 15px;
}
#login .login-brand { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; font-size: 22px; font-weight: 300; letter-spacing: .5px; opacity: .9; }
#login .login-brand b { font-weight: 600; }
#login .login-brand small { display: block; font-size: 11px; letter-spacing: 1px; opacity: .6; margin-top: 4px; }
#login.welcome .login-tile { pointer-events: none; }
#login .welcome-text { display: none; font-size: 34px; font-weight: 300; text-shadow: 0 2px 10px rgba(0,0,0,.4); align-items: center; gap: 14px; }
#login.welcome .login-tile { display: none; }
#login.welcome .welcome-text { display: flex; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: #9fdcff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }

/* ---------- Desktop ---------- */
#desktop {
  position: fixed; inset: 0 0 var(--taskbar-h) 0; overflow: hidden;
  background: #0b2c18;
}
#wallpaper { position: absolute; inset: 0; z-index: 0; transition: opacity .8s; }
.wp-aurora { background: #0a4a1f url("../assets/wp-aurora.svg") center / cover no-repeat; }
.wp-aurora::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 30% 12% at 61% 50%, rgba(255,255,255,.18), transparent 70%);
  animation: aurora 9s ease-in-out infinite alternate;
}
@keyframes aurora { 0% { opacity: .3; transform: translateX(-2%) } 100% { opacity: 1; transform: translateX(2%) } }
.wp-blue { background:
    radial-gradient(ellipse 70% 50% at 50% 110%, rgba(120,200,255,.5), transparent 60%),
    linear-gradient(170deg, transparent 45%, rgba(255,255,255,.14) 50%, transparent 56%),
    linear-gradient(180deg, #08264d, #1b5fae 55%, #0b3366); }
.wp-sunset { background:
    radial-gradient(ellipse 60% 40% at 50% 75%, rgba(255,200,120,.7), transparent 60%),
    linear-gradient(170deg, transparent 50%, rgba(255,255,255,.15) 54%, transparent 60%),
    linear-gradient(180deg, #2a0f3d, #8a2f53 45%, #e07b39 75%, #3a1430); }
.wp-black { background:
    radial-gradient(ellipse 50% 35% at 50% 50%, rgba(80,160,255,.25), transparent 70%),
    linear-gradient(120deg, transparent 45%, rgba(120,190,255,.12) 50%, transparent 55%), #050608; }

/* Desktop icons */
#icons {
  position: absolute; z-index: 1; top: 6px; left: 4px; bottom: 6px;
  display: flex; flex-direction: column; flex-wrap: wrap; align-content: flex-start; gap: 2px;
}
.dicon {
  width: calc(82px * var(--di)); padding: 4px 2px 5px; border-radius: 3px; border: 1px solid transparent;
  display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: default;
  color: #fff; text-align: center; font-size: 12px; line-height: 1.2;
  text-shadow: 0 0 3px #000, 0 1px 2px #000, 0 1px 4px rgba(0,0,0,.9);
}
.dicon .ic { width: calc(48px * var(--di)); height: calc(48px * var(--di)); display: grid; place-items: center; position: relative; }
.dicon .ic > img, .dicon .ic > svg { width: calc(48px * var(--di)); height: calc(48px * var(--di)); object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)); }
.dicon .ic .appthumb { width: calc(46px * var(--di)); height: calc(46px * var(--di)); border-radius: calc(10px * var(--di)); object-fit: cover; box-shadow: 0 2px 5px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.3); }
.dicon .ic .shortcut { position: absolute; left: 0; bottom: 0; width: 14px; height: 14px; filter: none; }
.dicon span { max-width: calc(80px * var(--di)); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.dicon:hover { background: rgba(160, 205, 255, .18); border-color: rgba(200, 230, 255, .35); }
.dicon.sel { background: rgba(140, 195, 255, .35); border-color: rgba(200, 230, 255, .6); }

/* Sidebar gadgets */
#sidebar {
  position: absolute; z-index: 1; top: 8px; right: 8px; width: 170px;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.gadget { width: 160px; color: #fff; position: relative; }
.gadget-clock { width: 130px; height: 130px; }
.gadget-clock .face {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #ffffff, #e9eef3 55%, #b9c3cc 80%, #8b97a2);
  box-shadow: 0 4px 10px rgba(0,0,0,.5), inset 0 0 0 5px rgba(255,255,255,.7), inset 0 0 0 6px rgba(0,0,0,.25), inset 0 0 0 9px #cfd7de;
}
.gadget-clock .tick { position: absolute; left: 50%; top: 12px; width: 2px; height: 7px; margin-left: -1px; background: #444; transform-origin: 1px 53px; }
.gadget-clock .hand { position: absolute; left: 50%; bottom: 50%; transform-origin: 50% 100%; border-radius: 2px; }
.gadget-clock .h { width: 4px; height: 30px; margin-left: -2px; background: #222; }
.gadget-clock .m { width: 3px; height: 42px; margin-left: -1.5px; background: #333; }
.gadget-clock .s { width: 1px; height: 46px; margin-left: -.5px; background: #d22; }
.gadget-clock .pin { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: #222; }
.gadget-clock .brand { position: absolute; top: 74px; width: 100%; text-align: center; font-size: 8px; color: #666; letter-spacing: 1px; }
.gadget-box {
  border-radius: 7px; padding: 8px 9px; font-size: 11px;
  background: linear-gradient(180deg, rgba(40,50,60,.82), rgba(10,14,20,.88));
  border: 1px solid rgba(255,255,255,.22); box-shadow: 0 3px 10px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.25);
}
.gadget-box h4 { margin: 0 0 5px; font-size: 11px; font-weight: 600; color: #bfe3ff; display: flex; justify-content: space-between; }
.gadget-slideshow { padding: 5px; cursor: pointer; }
.gadget-slideshow .frame { height: 100px; border-radius: 4px; overflow: hidden; position: relative; background: #000; }
.gadget-slideshow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity 1s; }
.gadget-slideshow img:is(.tall, .wide) { object-fit: contain; object-position: center; background: #111; }
.gadget-slideshow .cap { margin-top: 4px; text-align: center; font-size: 10px; color: #cde; }
.meter { display: flex; gap: 8px; align-items: center; justify-content: space-around; }
.meter .dial { width: 58px; height: 58px; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 50% 40%, #3a4148, #111 70%); border: 2px solid #8a939b; box-shadow: inset 0 0 6px #000; }
.meter .dial .needle { position: absolute; left: 50%; bottom: 50%; width: 2px; height: 24px; margin-left: -1px; background: #ff3b30; transform-origin: 50% 100%; transition: transform .8s cubic-bezier(.3,1.6,.5,1); }
.meter .dial b { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-size: 9px; color: #7cff7c; font-weight: 600; }
.meter .lbl { text-align: center; font-size: 9px; color: #aac; margin-top: 2px; }
.gadget-note { background: linear-gradient(#fff9b8, #fdee7a); color: #403a10; border-radius: 3px; padding: 10px 10px 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,.45); font-family: "Segoe Print", "Comic Sans MS", "Bradley Hand", cursive; font-size: 12px; line-height: 1.35; transform: rotate(-1.5deg); }

/* ---------- Windows ---------- */
#windows { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.win {
  position: absolute; pointer-events: auto; display: flex; flex-direction: column;
  min-width: 260px; min-height: 160px;
  border-radius: var(--win-radius) var(--win-radius) 5px 5px;
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 0 1px rgba(255,255,255,.45) inset, 0 12px 38px rgba(0,0,0,.55), 0 0 1px rgba(0,0,0,.8);
  padding: 0 7px 7px;
  transition: box-shadow .2s, background-color .2s;
  animation: winOpen .2s cubic-bezier(.2,.8,.3,1);
}
.win::before { /* glass sheen */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,.05) 22%, transparent 40%, rgba(255,255,255,.12) 62%, transparent 75%),
    linear-gradient(180deg, rgba(255,255,255,.18), transparent 30px);
}
@keyframes winOpen { from { opacity: 0; transform: scale(.92) translateY(10px) } to { opacity: 1; transform: none } }
.win.closing { animation: winClose .18s ease-in forwards; }
@keyframes winClose { to { opacity: 0; transform: scale(.92) translateY(8px) } }
.win.minimizing { transition: transform .25s ease-in, opacity .25s ease-in; opacity: 0; pointer-events: none; }
.win.min { display: none; }
.win.inactive { background: var(--glass-inactive); box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset, 0 6px 22px rgba(0,0,0,.4); }
.win.inactive .win-title { opacity: .75; }
.win.max { border-radius: 0; padding: 0 0 0; border-left: 0; border-right: 0; border-bottom: 0; }
.win.max .win-body { border-radius: 0; }
.win-titlebar { height: 30px; display: flex; align-items: center; gap: 6px; padding-left: 2px; position: relative; flex: none; cursor: default; touch-action: none; }
.win-icon { width: 16px; height: 16px; flex: none; object-fit: contain; }
.win-icon svg, svg.win-icon { width: 16px; height: 16px; }
.win-title {
  flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 12.5px; color: #000; padding-right: 110px;
  text-shadow: 0 0 10px #fff, 0 0 6px #fff, 0 0 3px #fff;
}
.win-buttons { position: absolute; top: -1px; right: 0; display: flex; }
.win-buttons button {
  height: 20px; width: 27px; border: 1px solid rgba(0,0,0,.6); margin-left: -1px; padding: 0; cursor: default;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.18) 48%, rgba(0,0,0,.08) 50%, rgba(255,255,255,.22));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); display: grid; place-items: center; color: #fff;
}
.win-buttons button:first-child { border-bottom-left-radius: 5px; }
.win-buttons button:last-child { border-bottom-right-radius: 5px; border-top-right-radius: 5px; }
.win-buttons button:hover { background: linear-gradient(180deg, rgba(190,235,255,.9), rgba(90,180,240,.65) 48%, rgba(30,120,200,.7) 50%, rgba(120,210,255,.8)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 0 8px rgba(120,200,255,.8); }
.win-buttons .b-close { width: 45px; background: linear-gradient(180deg, #e8a493, #d1705a 48%, #c0422a 50%, #d6634a); }
.win-buttons .b-close:hover { background: linear-gradient(180deg, #ffb7a6, #ef6d52 48%, #e0391c 50%, #ff7a5c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 0 10px rgba(255,90,60,.9); }
.win-buttons svg { width: 11px; height: 11px; filter: drop-shadow(0 0 1px rgba(0,0,0,.9)) drop-shadow(0 0 2px rgba(0,0,0,.5)); }
.win.inactive .win-buttons button:not(:hover) { background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.12)); }
.win-body {
  flex: 1; min-height: 0; position: relative; background: #fff;
  border: 1px solid rgba(0,0,0,.55); border-radius: 2px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.35);
  display: flex; flex-direction: column;
}
.win-resize { position: absolute; z-index: 3; }
.win-resize.n { top: -3px; left: 8px; right: 8px; height: 6px; cursor: n-resize; }
.win-resize.s { bottom: -3px; left: 8px; right: 8px; height: 6px; cursor: s-resize; }
.win-resize.e { right: -3px; top: 8px; bottom: 8px; width: 6px; cursor: e-resize; }
.win-resize.w { left: -3px; top: 8px; bottom: 8px; width: 6px; cursor: w-resize; }
.win-resize.ne { top: -3px; right: -3px; width: 12px; height: 12px; cursor: ne-resize; }
.win-resize.nw { top: -3px; left: -3px; width: 12px; height: 12px; cursor: nw-resize; }
.win-resize.se { bottom: -3px; right: -3px; width: 14px; height: 14px; cursor: se-resize; }
.win-resize.sw { bottom: -3px; left: -3px; width: 12px; height: 12px; cursor: sw-resize; }
.win.max .win-resize { display: none; }
.drag-shield { position: fixed; inset: 0; z-index: 99990; }

/* ---------- Shared chrome inside windows ---------- */
.toolbar {
  flex: none; height: 32px; display: flex; align-items: center; gap: 2px; padding: 0 6px;
  background: linear-gradient(180deg, #3a6c94 0%, #24527a 50%, #183f63 51%, #24577f 100%);
  border-bottom: 1px solid #0d2a44; color: #fff;
}
.toolbar.light { background: linear-gradient(180deg, #fbfdff, #e4eef8 50%, #d6e5f3 51%, #e3eef9); color: #1e395b; border-bottom-color: #a5bcd6; }
.tb-btn {
  height: 24px; padding: 0 9px; border-radius: 3px; border: 1px solid transparent; background: transparent; color: inherit;
  display: inline-flex; align-items: center; gap: 5px; cursor: default; white-space: nowrap; text-decoration: none; font-size: 12px;
}
.tb-btn:hover { border-color: rgba(255,255,255,.55); background: linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.08) 50%, rgba(255,255,255,0) 51%, rgba(255,255,255,.18)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.toolbar.light .tb-btn:hover { border-color: #7eb4ea; background: linear-gradient(#f2f9ff, #d6ebfd 50%, #c2e0fc 51%, #d9ecfd); }
.tb-btn svg { width: 16px; height: 16px; }
.tb-sep { width: 1px; height: 18px; background: rgba(255,255,255,.25); margin: 0 4px; }
.menubar { flex: none; height: 22px; display: flex; align-items: center; padding: 0 2px; background: linear-gradient(#fff, #f0f3f8); border-bottom: 1px solid #d5dde8; font-size: 12px; }
.menubar span { padding: 2px 7px; border-radius: 2px; border: 1px solid transparent; }
.menubar span:hover { background: var(--sel); border-color: var(--sel-border); }

.addressbar {
  flex: none; display: flex; align-items: center; gap: 6px; padding: 5px 6px 6px;
  background: transparent;
}
.nav-orbs { display: flex; align-items: center; }
.nav-orb {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid #1f3b5a; display: grid; place-items: center; padding: 0;
  background: radial-gradient(circle at 50% 30%, #c9ecff, #3d8fd6 55%, #1a5aa0 56%, #3f9ae6); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 1px 2px rgba(0,0,0,.4);
}
.nav-orb + .nav-orb { margin-left: -3px; }
.nav-orb:disabled { background: radial-gradient(circle at 50% 30%, #f6f8fa, #c7d0d8 55%, #aab5bf 56%, #c3ccd4); border-color: #7a8794; opacity: .8; }
.nav-orb:not(:disabled):hover { filter: brightness(1.15); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 0 8px rgba(80,180,255,.9); }
.nav-orb svg { width: 14px; height: 14px; filter: drop-shadow(0 0 1px rgba(0,0,0,.6)); }
.crumbs, .searchbox {
  height: 24px; background: #fff; border: 1px solid #6d8aa8; border-radius: 2px; display: flex; align-items: center;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.15);
}
.crumbs { flex: 1; min-width: 0; padding: 0 4px; gap: 1px; overflow: hidden; }
.crumbs .crumb-ic { width: 16px; height: 16px; margin-right: 3px; flex: none; }
.crumbs .crumb { padding: 1px 4px; border: 1px solid transparent; border-radius: 2px; white-space: nowrap; }
.crumbs .crumb:hover { border-color: var(--sel-border); background: var(--sel); }
.crumbs .chev { color: #555; font-size: 9px; padding: 0 2px; }
.crumbs input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; height: 100%; }
.searchbox { width: 190px; padding: 0 6px; color: #888; font-style: italic; gap: 4px; flex: none; }
.searchbox input { border: 0; outline: 0; font: inherit; width: 100%; min-width: 0; font-style: italic; order: 1; }
.searchbox svg { width: 14px; height: 14px; flex: none; order: 2; opacity: .7; }
.searchbox input:focus { font-style: normal; }

.statusbar { flex: none; height: 22px; display: flex; align-items: center; padding: 0 8px; gap: 12px; font-size: 11px; color: #333; background: linear-gradient(#f5f7fa, #e4e9f0); border-top: 1px solid #c6cfdb; }

/* Explorer */
.explorer { display: flex; flex: 1; min-height: 0; }
.ex-nav { width: 175px; flex: none; overflow: auto; padding: 8px 0; background: linear-gradient(90deg, #f3f8fd, #e8f0f9); border-right: 1px solid #c7d6e6; }
.ex-nav h5 { margin: 4px 12px 4px; font-size: 11px; color: #1e3287; font-weight: 600; }
.ex-nav .nav-item { display: flex; align-items: center; gap: 7px; padding: 3px 12px; margin: 0 4px; border: 1px solid transparent; border-radius: 3px; color: #1e3287; cursor: default; }
.ex-nav .nav-item svg, .ex-nav .nav-item img { width: 16px; height: 16px; flex: none; object-fit: contain; }
.ex-nav .nav-item:hover { background: linear-gradient(#f5fbff, #e3f2ff); border-color: #b8dcfa; }
.ex-nav .nav-item.on { background: linear-gradient(#e6f4ff, #cde7fd); border-color: #84c1f2; }
.ex-content { flex: 1; min-width: 0; overflow: auto; padding: 10px; background: #fff; align-content: flex-start; display: flex; flex-wrap: wrap; gap: 6px; }
.ex-content.details { display: block; padding: 0; }
.ex-item { width: 112px; padding: 6px 4px; border: 1px solid transparent; border-radius: 3px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; cursor: default; }
.ex-item .thumb { width: 96px; height: 76px; display: grid; place-items: center; position: relative; }
.ex-item .thumb > svg, .ex-item .thumb > img.icon { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.ex-item .thumb > img.shot { max-width: 96px; max-height: 76px; object-fit: cover; border: 1px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.45); background: #eee; }
.ex-item .thumb > img.app { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.ex-item .thumb .play { position: absolute; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.55); border: 2px solid #fff; display: grid; place-items: center; color: #fff; font-size: 11px; }
.ex-item .nm { font-size: 12px; line-height: 1.2; word-break: break-word; max-height: 2.4em; overflow: hidden; }
.ex-item .sub { font-size: 11px; color: #6d6d6d; margin-top: -3px; }
.ex-item:hover { background: linear-gradient(#fafdff, #ebf5ff); border-color: #b8d6fb; }
.ex-item.sel { background: linear-gradient(#e7f3ff, #c4e2ff); border-color: #7da2ce; }
.ex-details { flex: none; height: 66px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-top: 1px solid #c7d6e6; background: linear-gradient(180deg, #f6fafe, #dde9f6); }
.ex-details .di { width: 48px; height: 48px; display: grid; place-items: center; }
.ex-details .di svg, .ex-details .di img { max-width: 48px; max-height: 48px; border-radius: 6px; object-fit: contain; }
.ex-details .dt b { font-size: 13px; display: block; }
.ex-details .dt span { color: #555; font-size: 11px; }
.ex-details .dt span em { font-style: normal; color: #888; margin-right: 4px; }
.ex-empty { color: #6d6d6d; padding: 20px; }

/* ---------- Taskbar ---------- */
#taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--taskbar-h); z-index: 90000;
  display: flex; align-items: center; padding-left: 54px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.06) 48%, rgba(0,0,0,.25) 50%, rgba(0,0,0,.45) 100%),
    rgba(12, 18, 26, .78);
  backdrop-filter: blur(10px) saturate(130%); -webkit-backdrop-filter: blur(10px) saturate(130%);
  border-top: 1px solid rgba(255,255,255,.28); box-shadow: 0 -1px 0 rgba(0,0,0,.8);
}
#start-orb {
  position: absolute; left: 4px; bottom: -1px; width: 46px; height: 46px; border-radius: 50%; border: 0; padding: 0; cursor: default;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.85) 0, rgba(255,255,255,.25) 32%, transparent 34%),
    radial-gradient(circle at 50% 80%, rgba(130,230,255,.9), transparent 55%),
    radial-gradient(circle at 50% 50%, #3b8fd8, #0c3f84 62%, #041a3a 72%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.85), inset 0 0 0 1px rgba(255,255,255,.55), 0 1px 4px rgba(0,0,0,.8);
  display: grid; place-items: center; z-index: 2; transition: filter .15s, box-shadow .15s;
}
#start-orb:hover, #start-orb.open {
  filter: brightness(1.18) saturate(1.2);
  box-shadow: 0 0 0 1px rgba(0,0,0,.85), inset 0 0 0 1px rgba(255,255,255,.7), 0 0 16px 3px rgba(110,200,255,.85);
}
#start-orb .glyph { width: 26px; height: 26px; filter: drop-shadow(0 0 3px rgba(255,255,255,.6)); }
#quicklaunch { display: flex; align-items: center; gap: 1px; padding: 0 6px; border-right: 1px solid rgba(0,0,0,.6); box-shadow: 1px 0 0 rgba(255,255,255,.12); height: 24px; }
#quicklaunch button { width: 23px; height: 23px; border: 1px solid transparent; border-radius: 3px; background: none; padding: 0; display: grid; place-items: center; cursor: default; }
#quicklaunch button:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.12); }
#quicklaunch svg, #quicklaunch img { width: 18px; height: 18px; border-radius: 3px; object-fit: cover; }
#tasks { flex: 1; min-width: 0; display: flex; gap: 3px; padding: 0 6px; height: 100%; align-items: center; overflow: hidden; }
.task {
  height: 25px; flex: 0 1 160px; min-width: 40px; display: flex; align-items: center; gap: 6px; padding: 0 8px;
  color: #fff; border-radius: 3px; border: 1px solid rgba(0,0,0,.75); cursor: default; font-size: 12px; white-space: nowrap; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.04) 50%, rgba(0,0,0,.12) 51%, rgba(255,255,255,.07));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); text-shadow: 0 0 4px #000;
}
.task span { overflow: hidden; text-overflow: ellipsis; }
.task svg, .task img { width: 16px; height: 16px; flex: none; object-fit: contain; }
.task:hover { background: linear-gradient(180deg, rgba(255,255,255,.3), rgba(255,255,255,.12) 50%, rgba(255,255,255,.04) 51%, rgba(255,255,255,.16)); }
.task.active { background: linear-gradient(180deg, rgba(160,210,255,.45), rgba(90,150,210,.3) 50%, rgba(30,80,140,.35) 51%, rgba(100,170,230,.4)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), inset 0 0 8px rgba(130,200,255,.35); }
.task.flash { animation: taskFlash .6s ease-in-out 3; }
@keyframes taskFlash { 50% { background: rgba(255,170,40,.8) } }
#tray {
  height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 10px; color: #fff;
  border-left: 1px solid rgba(0,0,0,.7); box-shadow: inset 1px 0 0 rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.2));
}
#tray .tray-ic { width: 16px; height: 16px; opacity: .9; cursor: default; display: grid; place-items: center; }
#tray .tray-ic svg { width: 16px; height: 16px; }
#clock { font-size: 12px; text-align: center; line-height: 1.2; padding: 0 4px; text-shadow: 0 0 3px #000; cursor: default; }
#show-desktop { width: 14px; height: 100%; border-left: 1px solid rgba(0,0,0,.7); background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.18)); cursor: default; }
#show-desktop:hover { background: rgba(255,255,255,.3); }

/* Tooltips + balloons */
.tip { position: fixed; z-index: 99995; background: linear-gradient(#fff, #e4e5f0); border: 1px solid #767676; color: #575757; padding: 3px 7px; font-size: 11px; border-radius: 2px; box-shadow: 2px 2px 4px rgba(0,0,0,.3); pointer-events: none; white-space: nowrap; }
.balloon {
  position: fixed; right: 18px; bottom: calc(var(--taskbar-h) + 14px); z-index: 99996; width: 300px;
  background: linear-gradient(#fff, #e9eff6); border: 1px solid #6f7d8b; border-radius: 6px; padding: 10px 26px 12px 12px; box-shadow: 0 4px 14px rgba(0,0,0,.4);
  font-size: 12px; color: #333; animation: balloonIn .35s ease-out;
}
.balloon::after { content: ""; position: absolute; right: 70px; bottom: -11px; border: 11px solid transparent; border-bottom: 0; border-top-color: #6f7d8b; }
.balloon::before { content: ""; position: absolute; right: 71px; bottom: -9px; border: 10px solid transparent; border-bottom: 0; border-top-color: #e9eff6; z-index: 1; }
.balloon b { display: flex; align-items: center; gap: 6px; font-size: 12.5px; margin-bottom: 4px; color: #000; }
.balloon b svg { width: 16px; height: 16px; }
.balloon .x { position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; border-radius: 3px; display: grid; place-items: center; color: #555; font-size: 11px; cursor: default; }
.balloon .x:hover { background: #e25b4a; color: #fff; }
.balloon a { cursor: pointer; }
@keyframes balloonIn { from { opacity: 0; transform: translateY(10px) } }

/* ---------- Start menu ---------- */
#startmenu {
  position: fixed; left: 0; bottom: var(--taskbar-h); z-index: 95000; width: 420px; height: auto; min-height: 520px; max-height: calc(100dvh - var(--taskbar-h) - 8px); display: none;
  border-radius: 8px 8px 0 0; padding: 8px 8px 8px; overflow: visible;
  background: linear-gradient(180deg, rgba(40,60,80,.82), rgba(15,22,32,.9));
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(0,0,0,.9); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 4px -2px 20px rgba(0,0,0,.6);
  animation: smIn .15s ease-out;
}
@keyframes smIn { from { opacity: 0; transform: translateY(8px) } }
#startmenu.open { display: flex; }
.sm-left { width: 250px; background: #fff; border: 1px solid #44566a; border-radius: 4px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.4); }
.sm-list { flex: 1; overflow: auto; padding: 5px; }
.sm-item { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 3px; border: 1px solid transparent; cursor: default; }
.sm-item .ic { width: 32px; height: 32px; display: grid; place-items: center; flex: none; }
.sm-item .ic svg, .sm-item .ic img { width: 32px; height: 32px; object-fit: contain; }
.sm-item .ic img.app { border-radius: 7px; width: 30px; height: 30px; object-fit: cover; }
.sm-item > div:last-child { min-width: 0; }
.sm-item b { font-weight: normal; display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-item small { color: #6d6d6d; font-size: 11px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-item:hover, .sm-item.kb { background: linear-gradient(#f2f8fe, #d9ecfd); border-color: #a7cdf0; }
.sm-sep { height: 1px; margin: 4px 6px; background: linear-gradient(90deg, transparent, #c5d2df, transparent); }
.sm-allprog { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-top: 1px solid #d8e2ec; font-weight: 600; color: #1f1f1f; cursor: default; }
.sm-allprog:hover { background: linear-gradient(#f2f8fe, #d9ecfd); }
.sm-search { padding: 7px 8px; background: linear-gradient(#e3ecf6, #cfdcea); border-top: 1px solid #a9bdd2; }
.sm-search input { width: 100%; height: 24px; border: 1px solid #7e95ad; border-radius: 2px; padding: 0 6px; font: inherit; font-style: italic; outline: 0; }
.sm-search input:focus { font-style: normal; }
.sm-right { flex: 1; display: flex; flex-direction: column; padding: 0 4px 0 8px; color: #fff; position: relative; }
.sm-right .user-frame { width: 64px; height: 64px; padding: 5px; border-radius: 6px; margin: -38px auto 10px; }
.sm-right .user-frame img { border-radius: 3px; }
.sm-right { min-width: 0; }
.sm-link { padding: 6px 10px; border-radius: 3px; border: 1px solid transparent; cursor: default; font-size: 12.5px; text-shadow: 0 0 4px #000; display: flex; justify-content: space-between; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-link:hover { border-color: rgba(255,255,255,.4); background: linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.08) 50%, rgba(255,255,255,0) 51%, rgba(255,255,255,.15)); }
.sm-link .sl { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sm-link.bold { font-weight: 600; }
.sm-rsep { height: 1px; margin: 5px 8px; background: rgba(255,255,255,.15); box-shadow: 0 1px 0 rgba(0,0,0,.5); }
.sm-power { margin-top: auto; display: flex; gap: 4px; align-items: center; padding: 6px 4px 2px; }
.sm-power button { height: 26px; border-radius: 3px; border: 1px solid rgba(0,0,0,.7); display: grid; place-items: center; cursor: default; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); padding: 0 8px; }
.sm-power .pw { background: linear-gradient(#f0a080, #d24a24 50%, #b5300c 51%, #e06038); width: 40px; }
.sm-power .lk { background: linear-gradient(#ffe39a, #e7b93a 50%, #c99708 51%, #f0c64c); width: 40px; }
.sm-power .mr { background: linear-gradient(rgba(255,255,255,.3), rgba(255,255,255,.05)); color: #fff; width: 22px; padding: 0; }
.sm-power button:hover { filter: brightness(1.15); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 0 8px rgba(255,255,255,.4); }
.sm-power svg { width: 14px; height: 14px; }
.sm-hover-pic { transition: opacity .15s; }

/* Context menu */
.ctx { position: fixed; z-index: 99997; min-width: 190px; padding: 2px; background: #f0f0f0; border: 1px solid #979797; box-shadow: 3px 3px 5px rgba(0,0,0,.35); font-size: 12px; }
.ctx::before { content: ""; position: absolute; left: 28px; top: 2px; bottom: 2px; width: 1px; background: #e2e3e3; box-shadow: 1px 0 0 #fff; }
.ctx .ci { position: relative; padding: 4px 20px 4px 34px; border: 1px solid transparent; border-radius: 3px; cursor: default; display: flex; justify-content: space-between; gap: 20px; }
.ctx .ci:hover { background: linear-gradient(#f1f8fe, #dcebfc); border-color: #a8d8f6; }
.ctx .ci.disabled { color: #8d8d8d; }
.ctx .ci .cic { position: absolute; left: 6px; top: 3px; width: 16px; height: 16px; }
.ctx .ci .cic svg { width: 16px; height: 16px; }
.ctx .csep { height: 1px; margin: 3px 2px 3px 32px; background: #e0e0e0; border-bottom: 1px solid #fff; }

/* Dialog buttons */
.vbtn {
  min-width: 74px; height: 23px; padding: 0 12px; border: 1px solid #707070; border-radius: 3px; cursor: default; font-size: 12px; color: #000;
  background: linear-gradient(#f2f2f2, #ebebeb 50%, #dddddd 51%, #cfcfcf); box-shadow: inset 0 0 0 1px rgba(255,255,255,.75);
}
.vbtn:hover { border-color: #3c7fb1; background: linear-gradient(#eaf6fd, #d9f0fc 50%, #bee6fd 51%, #a7d9f5); }
.vbtn:active { background: linear-gradient(#e5f4fc, #c4e5f6 50%, #98d1ef 51%, #68b3db); }
.vbtn.primary { border-color: #3c7fb1; box-shadow: inset 0 0 0 1px #48d8fb; }

/* UAC */
#uac { position: fixed; inset: 0; z-index: 99998; display: grid; place-items: center; background: rgba(0,0,0,.55); backdrop-filter: grayscale(1) brightness(.7); -webkit-backdrop-filter: grayscale(1) brightness(.7); animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0 } }
.uac-box { width: 460px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid #333; box-shadow: 0 10px 40px rgba(0,0,0,.7); }
.uac-head { background: linear-gradient(#f9e78c, #eccc4a); padding: 10px 14px; display: flex; gap: 10px; align-items: center; font-size: 13px; border-bottom: 1px solid #c9a72c; }
.uac-head svg { width: 32px; height: 32px; flex: none; }
.uac-body { padding: 14px 18px; font-size: 12px; line-height: 1.5; }
.uac-prog { display: flex; gap: 10px; align-items: center; margin: 10px 0; padding: 8px; border: 1px solid #e3e3e3; background: #f7f7f7; }
.uac-prog .ic { width: 32px; height: 32px; }
.uac-prog .ic svg { width: 32px; height: 32px; }
.uac-foot { padding: 10px 14px; background: #f0f0f0; border-top: 1px solid #dfdfdf; display: flex; justify-content: flex-end; gap: 8px; }

/* Flip 3D */
#flip3d { position: fixed; inset: 0; z-index: 96000; background: rgba(0,0,0,.45); perspective: 1400px; display: none; }
#flip3d.on { display: block; }
#flip3d .stack { position: absolute; left: 40%; top: 56%; transform-style: preserve-3d; transform: rotateY(-28deg) rotateX(4deg); }
#flip3d .card { position: absolute; width: 520px; height: 340px; left: -260px; top: -170px; border-radius: 8px; overflow: hidden; background: var(--glass); border: 1px solid #000; box-shadow: 0 0 30px rgba(0,0,0,.6); transition: transform .35s cubic-bezier(.2,.8,.3,1), opacity .35s; cursor: pointer; }
#flip3d .card .ct { height: 26px; color: #000; display: flex; align-items: center; gap: 6px; padding: 0 8px; text-shadow: 0 0 6px #fff; background: rgba(160,200,235,.75); }
#flip3d .card .ct svg, #flip3d .card .ct img { width: 16px; height: 16px; }
#flip3d .card .cb { position: absolute; inset: 26px 6px 6px; background: #fff; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; overflow: hidden; }
#flip3d .card .cb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
#flip3d .card .cb img:is(.tall, .wide) { object-fit: contain; object-position: center; background: #111; }
#flip3d .card.front { box-shadow: 0 0 0 1px rgba(255,255,255,.5) inset, 0 0 40px rgba(110,200,255,.45), 0 0 30px rgba(0,0,0,.6); }
body.flipping #windows { visibility: hidden; }
#flip3d .card .cb svg { width: 96px; height: 96px; }
#flip3d .hint { position: absolute; bottom: calc(var(--taskbar-h) + 16px); width: 100%; text-align: center; color: #fff; font-size: 13px; text-shadow: 0 0 6px #000; }

/* Generic content helpers */
.pad { padding: 14px 16px; }
.scroll { overflow: auto; flex: 1; min-height: 0; }
.muted { color: #6d6d6d; }
.pill { display: inline-block; padding: 1px 7px; border-radius: 9px; font-size: 11px; background: #e8f1fb; border: 1px solid #b7d1ee; color: #1f4f82; margin: 0 3px 3px 0; }
.pill.live { background: #e6f7e6; border-color: #9fd59f; color: #1c6b1c; }
.pill.dev { background: #fff4dc; border-color: #f0cc7c; color: #85600b; }
.vista-h1 { font-size: 17px; font-weight: normal; color: #1e3287; margin: 0 0 6px; }
.vista-h2 { font-size: 13px; font-weight: normal; color: #1e3287; margin: 14px 0 6px; border-bottom: 1px solid #dbe4ef; padding-bottom: 3px; }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  :root { --taskbar-h: 44px; }
  #sidebar { display: none; }
  #icons { flex-direction: row; flex-wrap: wrap; align-content: flex-start; right: 4px; justify-content: flex-start; }
  .dicon { width: calc((100vw - 16px) / 4 - 2px); }
  .win { min-width: 0; }
  .win-title { padding-right: 100px; }
  #startmenu { width: 100vw; height: min(560px, calc(100dvh - var(--taskbar-h) - 20px)); min-height: 0; border-radius: 8px 8px 0 0; }
  .sm-left { width: 60%; }
  .ex-nav { display: none; }
  .searchbox { display: none; }
  .ex-item { width: calc(33.3% - 4px); }
  .ex-item .thumb { width: 100%; }
  #quicklaunch { display: none; }
  .task { flex-basis: 44px; height: 34px; }
  #start-orb { width: 46px; height: 46px; bottom: -1px; }
  .win-buttons .b-max { display: none; }
  .task span { display: none; }
  #flip3d .card { width: 300px; height: 220px; left: -150px; top: -110px; }
  .balloon { right: 8px; width: calc(100vw - 16px); }
}
@media (pointer: coarse) {
  /* iOS zooms the fixed desktop on focus for anything under 16px */
  input, textarea, select { font-size: 16px !important; }
  .win-titlebar { height: 34px; }
  .win-buttons button { height: 30px; width: 36px; }
  .win-buttons .b-close { width: 52px; }
  #tray .tray-ic { padding: 12px 6px; width: auto; height: auto; }
  #show-desktop { width: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .wp-aurora::before { animation: none; }
  .win { animation: none; }
  .win.minimizing { transition: none; }
}
.win-icon { display: grid; place-items: center; overflow: hidden; }
.win-icon img { width: 16px; height: 16px; border-radius: 3px; object-fit: cover; display: block; }
.task img, #quicklaunch img { border-radius: 3px; object-fit: cover; }

/* Taskbar live preview (desktop pointers only) */
.tb-thumb {
  position: fixed; bottom: calc(var(--taskbar-h) + 6px); width: 210px; padding: 6px; z-index: 90001; border-radius: 6px;
  background: rgba(20,30,42,.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 4px 14px rgba(0,0,0,.6);
  color: #fff; font-size: 11px; pointer-events: none; animation: fadeIn .15s;
}
.tb-thumb .tt { display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-shadow: 0 0 4px #000; }
.tb-thumb .tt span { overflow: hidden; text-overflow: ellipsis; }
.tb-thumb .tt svg, .tb-thumb .tt img { width: 14px; height: 14px; flex: none; object-fit: contain; border-radius: 2px; }
.tb-thumb .tc { height: 120px; margin-top: 5px; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; background: #fff; border-radius: 2px; overflow: hidden; }
.tb-thumb .tc img { width: 100%; height: 100%; object-fit: cover; object-position: top; background: #111; }
.tb-thumb .tc img:is(.tall, .wide) { object-fit: contain; object-position: center; }
.tb-thumb .tc svg { width: 56px; height: 56px; }
