/* The Plaza (plaza.php): D3K08's own 1-bit Macintosh -- a menu bar, a dithered desktop, paper windows with pinstriped
   title bars, a close box and a zoom box. Ink and paper with the site's violet and cyan for focus only; no gradients
   (the dither and the pinstripes are 1 px patterns drawn as tiny pictures, not blends). */

/* The page gives the desktop the whole width and the height under the site's bar. */
body:has(.vt-os) main h1.wp-block-post-title { display: none; }
body:has(.vt-os) .wp-block-post-content, body:has(.vt-os) main > .wp-block-group { padding-left: 0 !important; padding-right: 0 !important; max-width: none !important; }
body:has(.vt-os) main { margin-top: 0 !important; padding-top: 0 !important; }
body:has(.vt-os) footer.wp-block-template-part { margin-top: 0; }
body:has(.vt-os) .entry-content.alignfull, body:has(.vt-os) .wp-block-post-content.alignfull { margin-left: 0 !important; margin-right: 0 !important; }
.wp-block-post-content > .vt-os, .entry-content > .vt-os { max-width: none !important; margin: 0 !important; width: 100%; }
.vt-os {
  --os-ink: #000; --os-paper: #f1efe8;
  position: relative; display: flex; flex-direction: column; height: calc(100svh - 70px); min-height: 560px;
  font-family: var(--pk-mono); font-size: 13px; color: var(--os-ink); user-select: none; -webkit-user-select: none;
}
.vt-os button { font-family: var(--pk-mono) !important;   /* not the retired pixel type the old kit gives buttons */
  font-size: inherit; cursor: pointer; border-radius: 0 !important; box-shadow: none !important; text-transform: none !important; letter-spacing: normal; }
.vt-os a { text-decoration: none; }

/* ---- the menu bar ---- */
.vt-os-bar {
  flex: none; display: flex; align-items: stretch; height: 28px; background: var(--os-paper); color: var(--os-ink);
  border-bottom: 1px solid var(--os-ink); position: relative; z-index: 9000; padding: 0 8px;
}
.vt-os-menu { position: relative; display: flex; }
.vt-os-menu > button, .vt-os-bar .vt-os-link {
  background: none !important; border: 0 !important; color: var(--os-ink) !important; padding: 0 12px !important; font-weight: 600; letter-spacing: 0.04em;
}
.vt-os-menu > button[aria-expanded="true"], .vt-os-menu > button:hover { background: var(--os-ink) !important; color: var(--os-paper) !important; }
.vt-os .vt-os-logo { font-family: var(--pk-head) !important; font-weight: 400 !important; font-size: 15px !important; letter-spacing: 0.06em !important; }
.vt-os-drop {
  position: absolute; left: 0; top: 100%; min-width: 200px; background: var(--os-paper); border: 1px solid var(--os-ink);
  box-shadow: 2px 2px 0 var(--os-ink) !important; padding: 4px 0; display: flex; flex-direction: column;
}
.vt-os-drop[hidden] { display: none; }
.vt-os-drop button, .vt-os-drop a {
  text-align: left; background: none !important; border: 0 !important; color: var(--os-ink) !important; padding: 6px 16px !important; min-height: 32px;
  font-weight: 400; display: flex; align-items: center;
}
.vt-os-drop button:hover, .vt-os-drop a:hover, .vt-os-drop button:focus-visible, .vt-os-drop a:focus-visible { background: var(--os-ink) !important; color: var(--os-paper) !important; outline: none; }
.vt-os-drop hr { border: 0; border-top: 1px dotted var(--os-ink); margin: 4px 0; }
.vt-os-right { margin-left: auto; display: flex; align-items: center; gap: 4px; font-weight: 600; }
.vt-os-me, .vt-os-clock { padding: 0 10px; }

/* ---- the desktop: ink with a sparse dither ---- */
.vt-os-desk {
  position: relative; flex: 1; overflow: hidden; background-color: var(--os-ink); image-rendering: pixelated;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' shape-rendering='crispEdges'%3E%3Crect width='1' height='1' fill='%23383838'/%3E%3Crect x='2' y='2' width='1' height='1' fill='%23383838'/%3E%3C/svg%3E");
}
.vt-os-icons { list-style: none; margin: 0; padding: 16px 10px; position: absolute; right: 0; top: 0; bottom: 0; display: flex; flex-direction: column; flex-wrap: wrap-reverse; align-content: flex-start; gap: 4px 8px; z-index: 1; }
.vt-os-icon {
  width: 92px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px !important;
  background: none !important; border: 0 !important; color: var(--os-paper) !important; text-align: center;
}
.vt-os-icon svg { color: var(--os-paper); background: var(--os-ink); padding: 4px; }
.vt-os-icon span { font-size: 12px; line-height: 1.25; padding: 1px 5px; background: var(--os-ink); }
.vt-os-icon:hover span, .vt-os-icon:focus-visible span { background: var(--os-paper); color: var(--os-ink); }
.vt-os-icon:hover svg, .vt-os-icon:focus-visible svg { color: var(--pk-cyan); }
.vt-os-icon:focus-visible { outline: none; }

/* ---- a window ---- */
.vt-w {
  position: absolute; z-index: 10; width: min(380px, calc(100% - 140px)); max-height: calc(100% - 20px); display: flex; flex-direction: column;
  background: var(--os-paper); color: var(--os-ink); border: 1px solid var(--os-ink); outline: 1px solid var(--os-paper);
}
.vt-w[hidden] { display: none; }
.vt-w-front { box-shadow: 6px 6px 0 var(--pk-violet) !important; }
.vt-w-wide { width: min(940px, calc(100% - 140px)); height: calc(100% - 50px); }
.vt-w-small { width: min(320px, calc(100% - 140px)); }
.vt-w-zoomed { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; max-height: none; outline: 0; border-left: 0; border-right: 0; border-top: 0; }
.vt-w-moving { opacity: 0.92; }
.vt-w-bar {
  flex: none; display: flex; align-items: center; gap: 8px; height: 26px; box-sizing: border-box; padding: 0 6px; border-bottom: 1px solid var(--os-ink);
  cursor: grab; touch-action: none;
}
.vt-w-front .vt-w-bar {   /* pinstripes on the window in front, as the old Finder: 1 px lines, 1 px apart */
  padding-top: 6px; padding-bottom: 6px; background-clip: content-box; background-origin: content-box;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2' shape-rendering='crispEdges'%3E%3Crect width='2' height='1' fill='%23000'/%3E%3C/svg%3E");
  background-size: 2px 2px; background-repeat: repeat;
}
.vt-w-moving .vt-w-bar { cursor: grabbing; }
.vt-w-ctl { flex: none; display: flex; gap: 4px; position: relative; z-index: 1; padding-left: 6px; background: var(--os-paper); }
.vt-w-min, .vt-w-zoom, .vt-w-close {
  width: 22px; height: 18px; padding: 0 !important; display: grid; place-items: center; font-size: 13px !important; font-weight: 600; line-height: 1;
  background: var(--os-paper) !important; color: var(--os-ink) !important; border: 1px solid var(--os-ink) !important; position: relative;
}
.vt-w-min:hover, .vt-w-zoom:hover, .vt-w-min:focus-visible, .vt-w-zoom:focus-visible { background: var(--os-ink) !important; color: var(--os-paper) !important; outline: none; }
.vt-w-close:hover, .vt-w-close:focus-visible { background: var(--pk-violet) !important; border-color: var(--pk-violet) !important; color: var(--os-paper) !important; outline: none; }
.vt-w-zoom::after { content: ""; width: 9px; height: 7px; border: 1px solid currentColor; border-top-width: 2px; }
.vt-w-title {
  flex: 0 1 auto; margin: 0 auto 0 0 !important; padding: 0 10px 0 4px !important; background: var(--os-paper) !important; color: var(--os-ink) !important;
  font-family: var(--pk-mono) !important; font-size: 13px !important; font-weight: 600 !important; letter-spacing: 0.04em !important; text-transform: none !important;
  line-height: 1 !important; transform: none !important; display: block !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; z-index: 1;
}
.vt-w-title::before { content: none !important; }
.vt-w-body { flex: 1; overflow: auto; padding: 16px 18px 20px; user-select: text; -webkit-user-select: text; line-height: 1.55; }
.vt-w-body p { margin: 0 0 12px; }
/* The theme colours page text for a dark page; a paper window keeps ink, a dark one paper. */
.vt-w .vt-w-body :where(p, li, b, span, i, strong) { color: inherit !important; }
.vt-w-dark .vt-w-body { background: var(--os-ink); color: var(--os-paper); }
.vt-w-wide .vt-w-body { padding: 0 16px 16px; }

.vt-os-big { font-family: var(--pk-head); font-size: 30px; text-transform: uppercase; line-height: 1; margin: 0 0 10px !important; }
.vt-os-dim { opacity: 0.6; font-size: 12px; }
.vt-os-label { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; margin: 18px 0 8px !important; }
.vt-os-btn { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border: 1px solid var(--os-ink); color: var(--os-ink) !important; font-weight: 600; border-radius: 6px; }
.vt-os-btn:hover { background: var(--os-ink) !important; color: var(--os-paper) !important; }
.vt-os-link { background: none !important; border: 0 !important; padding: 0 !important; color: inherit !important; text-decoration: underline !important; font-weight: 600; }
.vt-os-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.vt-os-list li { padding: 8px 10px; border: 1px solid var(--os-ink); }
.vt-os-list b { display: block; }

/* ---- the StarPad window: the screen alone, at a whole-number scale ---- */
.vt-pad { display: flex; flex-direction: column; align-items: center; gap: 10px; outline: none; }
.vt-pad:focus-visible .vt-pad-screen { outline: 2px solid var(--pk-cyan); outline-offset: 4px; }
.vt-pad-screen { position: relative; line-height: 0; cursor: pointer; }
.vt-pad-screen img { display: block; width: 480px; height: 640px; max-width: none !important; image-rendering: pixelated; }
.vt-pad-tag { position: absolute; right: 0; top: 0; font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  line-height: 1; padding: 4px 7px; background: var(--pk-cyan); color: var(--os-ink); }
.vt-pad-cap { margin: 0 !important; text-align: center; }
.vt-pad-cap b { font-family: var(--pk-head); font-weight: 400; font-size: 18px; text-transform: uppercase; display: block; }
.vt-pad-cap span { font-size: 12px; opacity: 0.75; }
.vt-pad-keys { display: flex; align-items: center; gap: 8px; margin: 0 !important; }
.vt-pad-keys button { min-width: 40px; min-height: 36px; padding: 0 12px !important; background: none !important; color: var(--os-paper) !important; border: 1px solid rgba(241, 239, 232, 0.5) !important; }
.vt-pad-keys button:hover { border-color: var(--pk-cyan) !important; color: var(--pk-cyan) !important; }
.vt-pad-n { min-width: 64px; text-align: center; font-weight: 600; }
.vt-pad-help { text-align: center; max-width: 480px; margin: 0 !important; }
#vt-w-starpad { width: auto; }

/* ---- the Plaza window ---- */
.vt-plz-grid { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.vt-plz-grid a { display: block; position: relative; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid var(--os-ink); background: var(--os-ink); }
.vt-plz-grid img, .vt-plz-grid video { width: 100% !important; height: 100% !important; object-fit: cover; display: block; max-width: none !important; }
.vt-plz-grid span { position: absolute; left: 0; bottom: 0; font-size: 10px; font-weight: 600; padding: 2px 5px; background: var(--os-paper); color: var(--os-ink); }
#vt-w-plaza { width: min(420px, calc(100% - 140px)); }

/* ---- the Network window holds the network app ---- */
#vt-w-network .vt-netapp { margin-top: 0; max-width: none; }
#vt-w-network .vt-n-gate { margin: 28px auto; border: 0; box-shadow: none !important; }   /* the window is the frame */

/* ---- a phone: icons in a grid; a window fills the desktop, Close goes back ---- */
@media (max-width: 760px) {
  .vt-os { height: auto; min-height: calc(100svh - 110px); }
  .vt-os-bar { padding: 0 2px; }
  .vt-os-menu > button, .vt-os-bar .vt-os-link { padding: 0 8px !important; }
  .vt-os-me { display: none; }
  .vt-os-desk { overflow: visible; min-height: calc(100svh - 140px); }
  .vt-os-icons { position: static; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 24px 8px; }
  .vt-os-icon { width: 104px; }
  .vt-w, .vt-w-wide, .vt-w-small, #vt-w-plaza, #vt-w-starpad, .vt-w-zoomed {
    position: absolute; left: 0 !important; top: 0 !important; width: 100% !important; height: auto !important; min-height: 100%; max-height: none;
    outline: 0; border-left: 0; border-right: 0;
  }
  .vt-w-front { box-shadow: none !important; }
  .vt-w-zoom { visibility: hidden; }
  .vt-w-body { padding: 16px; }
  .vt-pad-screen img { width: 240px; height: 320px; }
}

/* ---- the dock: Apps, then a button a window ---- */
.vt-os-dock {
  flex: none; display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 8px; background: var(--os-paper); color: var(--os-ink);
  border-top: 1px solid var(--os-ink); position: relative; z-index: 8500; overflow-x: auto; scrollbar-width: none;
}
.vt-os-dock::-webkit-scrollbar { display: none; }
.vt-os-appsbtn {
  flex: none; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 6px !important;
  background: var(--os-ink) !important; color: var(--os-paper) !important; border: 1px solid var(--os-ink) !important; font-weight: 600;
}
.vt-os-appsbtn svg { width: 20px; height: 20px; }
.vt-os-appsbtn:hover, .vt-os-appsbtn[aria-expanded="true"] { background: var(--pk-violet) !important; border-color: var(--pk-violet) !important; }
.vt-os-tasks { display: flex; gap: 6px; }
.vt-task {
  flex: none; height: 32px; max-width: 200px; padding: 0 12px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: var(--os-paper) !important; color: var(--os-ink) !important; border: 1px solid var(--os-ink) !important; font-weight: 600;
}
.vt-task-front { background: var(--os-ink) !important; color: var(--os-paper) !important; }
.vt-task-min { border-style: dashed !important; font-weight: 400; opacity: 0.75; }
.vt-task:hover { box-shadow: inset 0 -3px 0 var(--pk-cyan) !important; }

/* ---- the app dock, full screen ---- */
.vt-os-apps {
  position: absolute; left: 0; right: 0; top: 28px; bottom: 44px; z-index: 8400; overflow: auto; padding: 22px clamp(16px, 4vw, 48px) 40px;
  background-color: var(--os-ink); color: var(--os-paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' shape-rendering='crispEdges'%3E%3Crect width='1' height='1' fill='%23383838'/%3E%3Crect x='2' y='2' width='1' height='1' fill='%23383838'/%3E%3C/svg%3E");
}
.vt-os-apps[hidden] { display: none; }
.vt-apps-head { display: flex; align-items: center; justify-content: space-between; max-width: 1100px; margin: 0 auto; }
.vt-apps-head h2 { margin: 0 !important; font-size: clamp(34px, 5vw, 56px) !important; background: none !important; color: var(--os-paper) !important; padding: 0 !important; transform: none !important; display: block !important; }
.vt-apps-head h2::before { content: none !important; }
.vt-apps-x { width: 44px; height: 44px; padding: 0 !important; font-size: 18px !important; background: var(--os-ink) !important; color: var(--os-paper) !important; border: 1px solid var(--os-paper) !important; }
.vt-apps-x:hover { background: var(--pk-violet) !important; border-color: var(--pk-violet) !important; }
.vt-os-apps h3 { max-width: 1100px; margin: 26px auto 6px !important; font-family: var(--pk-mono) !important; font-size: 12px !important; font-weight: 600; letter-spacing: 0.2em !important; color: var(--pk-cyan) !important; }
.vt-os-apps > p { max-width: 1100px; margin: 0 auto 10px !important; }
.vt-apps-grid { list-style: none; max-width: 1100px; margin: 8px auto 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 12px; }
.vt-app {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 8px 14px !important; position: relative;
  background: none !important; color: var(--os-paper) !important; border: 1px solid transparent !important; text-align: center;
}
.vt-app:hover, .vt-app:focus-visible { border-color: var(--os-paper) !important; outline: none; }
.vt-app-ic { width: 64px; height: 64px; display: grid; place-items: center; background: var(--os-paper); color: var(--os-ink); }
.vt-app-ic svg { width: 40px; height: 40px; }
.vt-app:hover .vt-app-ic, .vt-app:focus-visible .vt-app-ic { background: var(--pk-cyan); }
.vt-app b { font-size: 13px; font-weight: 600; }
.vt-app i { position: absolute; top: 8px; right: 8px; font-style: normal; font-size: 9.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 2px 5px; background: var(--os-ink); color: var(--pk-cyan); border: 1px solid var(--pk-cyan); }
@media (max-width: 760px) {
  .vt-os { min-height: calc(100svh - 110px); }
  .vt-os-dock { position: sticky; bottom: 0; }
  .vt-os-apps { position: fixed; inset: 0; z-index: 9500; padding-top: 16px; }   /* the whole screen, over the page and the dock */
  .vt-apps-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .vt-app-ic { width: 56px; height: 56px; }
  .vt-app b { font-size: 12px; }
}

/* ---- Split View ---- */
.vt-os-desk { --split: 50%; }
.vt-w-snap-l, .vt-w-snap-r { top: 0 !important; height: 100% !important; max-height: none; outline: 0; border-top: 0; resize: none !important; }
.vt-w-snap-l { left: 0 !important; width: var(--split) !important; border-left: 0; }
.vt-w-snap-r { left: var(--split) !important; width: calc(100% - var(--split)) !important; border-right: 0; }
.vt-w-zoomed { resize: none !important; }
/* A free window resizes from its bottom-right corner. */
.vt-w:not(.vt-w-zoomed):not(.vt-w-snap-l):not(.vt-w-snap-r) { resize: both; overflow: hidden; min-width: 260px; min-height: 160px; }
.vt-snap-ghost { position: absolute; pointer-events: none; border: 2px dashed var(--pk-cyan); background: rgba(0, 240, 255, 0.08); }
.vt-snap-ghost[hidden] { display: none; }
.vt-snap-ghost-l { left: 6px; top: 6px; bottom: 6px; width: calc(var(--split) - 12px); }
.vt-snap-ghost-r { right: 6px; top: 6px; bottom: 6px; width: calc(100% - var(--split) - 12px); }
.vt-snap-ghost-full { left: 6px; right: 6px; top: 6px; bottom: 6px; }
.vt-snap-assist {
  position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 20px; background: rgba(0, 0, 0, 0.82); border: 2px dashed var(--pk-cyan);
}
.vt-snap-assist[hidden] { display: none; }
.vt-snap-assist-l { left: 0; width: var(--split); }
.vt-snap-assist-r { left: var(--split); right: 0; }
.vt-snap-assist p { margin: 0 0 6px; color: var(--pk-cyan); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.vt-snap-assist button { min-width: 200px; min-height: 40px; padding: 0 16px !important; background: var(--os-paper) !important; color: var(--os-ink) !important; border: 1px solid var(--os-paper) !important; font-weight: 600; }
.vt-snap-assist button:hover, .vt-snap-assist button:focus-visible { background: var(--pk-cyan) !important; border-color: var(--pk-cyan) !important; }
.vt-snap-assist .vt-snap-skip { background: none !important; color: var(--os-paper) !important; border-style: dashed !important; font-weight: 400; }
.vt-split-line { position: absolute; top: 0; bottom: 0; left: calc(var(--split) - 5px); width: 10px; cursor: col-resize; touch-action: none; }
.vt-split-line[hidden] { display: none; }
.vt-split-line::after { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 2px; background: var(--os-ink); }
.vt-split-line:hover::after { background: var(--pk-cyan); }

/* ---- a phone's Split View: two windows stacked, top and bottom; the desktop takes the whole screen ---- */
@media (max-width: 760px) {
  .vt-os.vt-os-split { position: fixed; inset: 0; z-index: 9000; height: 100svh !important; min-height: 0; }
  .vt-os-split .vt-os-desk { min-height: 0; overflow: hidden; }
  .vt-os-split .vt-os-icons { display: none; }
  .vt-os-split :is(#vt-w-starpad, #vt-w-plaza, #vt-w-network, #vt-w-inbox, #vt-w-get, #vt-w-about).vt-w-snap-l, .vt-os-split :is(#vt-w-starpad, #vt-w-plaza, #vt-w-network, #vt-w-inbox, #vt-w-get, #vt-w-about).vt-w-snap-r {
    left: 0 !important; width: 100% !important; min-height: 0 !important; max-height: none; border: 0; border-bottom: 1px solid var(--os-ink);
  }
  .vt-os-split :is(#vt-w-starpad, #vt-w-plaza, #vt-w-network, #vt-w-inbox, #vt-w-get, #vt-w-about).vt-w-snap-l { top: 0 !important; height: var(--split) !important; }
  .vt-os-split :is(#vt-w-starpad, #vt-w-plaza, #vt-w-network, #vt-w-inbox, #vt-w-get, #vt-w-about).vt-w-snap-r { top: var(--split) !important; height: calc(100% - var(--split)) !important; }
  .vt-os-split :is(#vt-w-starpad, #vt-w-plaza, #vt-w-network, #vt-w-inbox, #vt-w-get, #vt-w-about).vt-w-zoomed { height: 100% !important; min-height: 0 !important; }  /* ids: they outrank the phone layout's own window rules */
  .vt-os-split .vt-split-line { left: 0; right: 0; width: auto; top: calc(var(--split) - 9px); height: 18px; cursor: row-resize; }
  .vt-os-split .vt-split-line::after { left: 0; right: 0; top: 7px; bottom: auto; width: auto; height: 4px; background: var(--os-ink); box-shadow: 0 0 0 1px var(--os-paper); }
  .vt-snap-ghost-l { left: 6px; right: 6px; top: 6px; bottom: auto; width: auto; height: calc(var(--split) - 12px); }
  .vt-snap-ghost-r { left: 6px; right: 6px; top: auto; bottom: 6px; width: auto; height: calc(100% - var(--split) - 12px); }
  .vt-snap-assist-l { left: 0; right: 0; width: auto; top: 0; bottom: auto; height: var(--split); }
  .vt-snap-assist-r { left: 0; right: 0; width: auto; top: var(--split); bottom: 0; }
  .vt-snap-assist button { min-width: 220px; min-height: 44px; }
  .vt-w-bar { touch-action: none; }
}

/* ==== Dark mode (Nel, 2026-11-30: "the network is too contrasting and should be in dark mode"). Soft greys in place
   of ink and paper; the site's violet and cyan stay for focus and the active tab. Ink and paper are re-pointed at
   text and surface, and the rules that used ink as a fill or a hard line are given greys below. ==== */
.vt-os {
  --os-bg: #0e0e12; --os-surface: #17171c; --os-raised: #212128; --os-line: #2e2e37; --os-text: #dddbd5; --os-dim: #8f8d96;
  --os-ink: var(--os-text); --os-paper: var(--os-surface); color: var(--os-text);
}
.vt-os-bar { border-bottom-color: var(--os-line); }
.vt-os-menu > button[aria-expanded="true"], .vt-os-menu > button:hover { background: var(--os-raised) !important; color: var(--os-text) !important; }
.vt-os-drop { border-color: var(--os-line); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5) !important; border-radius: 8px; overflow: hidden; }
.vt-os-drop button:hover, .vt-os-drop a:hover, .vt-os-drop button:focus-visible, .vt-os-drop a:focus-visible { background: var(--os-raised) !important; color: var(--pk-cyan) !important; }
.vt-os-drop hr { border-top: 1px solid var(--os-line); }
.vt-os-desk {
  background-color: var(--os-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' shape-rendering='crispEdges'%3E%3Crect width='1' height='1' fill='%231b1b22'/%3E%3C/svg%3E");
}
.vt-os-icon { color: var(--os-text) !important; }
.vt-os-icon svg { color: var(--os-text); background: var(--os-raised); border-radius: 10px; padding: 8px; width: 48px; height: 48px; }
.vt-os-icon span { background: none; color: var(--os-text); }
.vt-os-icon:hover span, .vt-os-icon:focus-visible span { background: var(--os-raised); color: var(--pk-cyan); border-radius: 4px; }
.vt-w { border-color: var(--os-line); outline: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.vt-w-front { box-shadow: 0 0 0 1px rgba(155, 92, 255, 0.55), 0 22px 48px rgba(0, 0, 0, 0.55) !important; }
.vt-w-bar { border-bottom-color: var(--os-line); background: var(--os-surface); }
.vt-w-front .vt-w-bar {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2' shape-rendering='crispEdges'%3E%3Crect width='2' height='1' fill='%23292931'/%3E%3C/svg%3E");
}
.vt-w-ctl, .vt-w-title { background: var(--os-surface) !important; }
.vt-w-min, .vt-w-zoom, .vt-w-close { background: var(--os-raised) !important; color: var(--os-text) !important; border-color: var(--os-line) !important; border-radius: 5px !important; }
.vt-w-min:hover, .vt-w-zoom:hover, .vt-w-min:focus-visible, .vt-w-zoom:focus-visible { background: var(--os-line) !important; color: var(--pk-cyan) !important; }
.vt-w-dark .vt-w-body { background: #111116; color: var(--os-text); }
.vt-os-btn { border-color: var(--os-line); color: var(--os-text) !important; background: var(--os-raised); }
.vt-os-btn:hover { background: var(--os-line) !important; color: var(--pk-cyan) !important; }
.vt-os-list li { border-color: var(--os-line); border-radius: 8px; background: var(--os-raised); }
.vt-pad-keys button { border-color: var(--os-line) !important; color: var(--os-text) !important; border-radius: 6px !important; }
.vt-plz-grid a { border-color: var(--os-line); background: var(--os-bg); border-radius: 6px; }
.vt-plz-grid span { background: rgba(14, 14, 18, 0.8); color: var(--os-text); }
.vt-os-dock { border-top-color: var(--os-line); }
.vt-os-appsbtn { background: var(--os-raised) !important; color: var(--os-text) !important; border-color: var(--os-line) !important; border-radius: 8px !important; }
.vt-task { background: var(--os-surface) !important; color: var(--os-dim) !important; border-color: var(--os-line) !important; border-radius: 8px !important; }
.vt-task-front { background: var(--os-raised) !important; color: var(--os-text) !important; box-shadow: inset 0 -2px 0 var(--pk-violet) !important; }
.vt-os-apps { background-color: var(--os-bg); background-image: none; }
.vt-apps-x { background: var(--os-raised) !important; color: var(--os-text) !important; border-color: var(--os-line) !important; border-radius: 50% !important; }
.vt-app { border-radius: 14px; }
.vt-app:hover, .vt-app:focus-visible { border-color: var(--os-line) !important; background: var(--os-surface) !important; }
.vt-app-ic { background: var(--os-raised); color: var(--os-text); border-radius: 16px; }
.vt-app:hover .vt-app-ic, .vt-app:focus-visible .vt-app-ic { background: var(--pk-violet); color: #fff; }
.vt-app i { background: var(--os-bg); }
.vt-split-line::after { background: var(--os-line); }
@media (max-width: 760px) { .vt-os-split .vt-split-line::after { background: var(--os-line); box-shadow: none; } }
/* The network app inside its window, toned down to the same greys. */
#vt-w-network .vt-netapp { color: var(--os-text); }
#vt-w-network .vt-n-gate { background: var(--os-surface); }

/* ==== The phone frame: a full-screen window (zoomed, or any window on a phone) looks like a phone app -- a status
   line, a big title, one column, and a tab bar in place of the menu bar and the dock (Nel, 2026-11-30). ==== */
.vt-w-status, .vt-os-tabs { display: none; }
.vt-os-full .vt-os-bar, .vt-os-full .vt-os-dock { display: none; }
.vt-os-full .vt-w-front { border-radius: 0; box-shadow: none !important; border: 0; }
.vt-os-full .vt-w-front .vt-w-status {
  flex: none; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 20px; font-size: 12px; font-weight: 600; color: var(--os-text); background: var(--os-surface);
}
.vt-w-time { margin-right: auto; }
.vt-w-sig { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.vt-w-sig i { width: 3px; background: var(--os-text); border-radius: 1px; }
.vt-w-sig i:nth-child(1) { height: 4px; } .vt-w-sig i:nth-child(2) { height: 6px; } .vt-w-sig i:nth-child(3) { height: 8px; } .vt-w-sig i:nth-child(4) { height: 11px; opacity: 0.4; }
.vt-w-batt { position: relative; width: 22px; height: 11px; border: 1px solid var(--os-dim); border-radius: 3px; padding: 1px; }
.vt-w-batt::after { content: ""; position: absolute; right: -3px; top: 3px; width: 2px; height: 4px; background: var(--os-dim); border-radius: 0 1px 1px 0; }
.vt-w-batt i { display: block; width: 72%; height: 100%; background: var(--os-text); border-radius: 1px; }
.vt-os-full .vt-w-front .vt-w-bar {
  height: auto; padding: 4px 16px 12px; background-image: none; cursor: default; touch-action: auto; align-items: flex-end;
}
.vt-os-full .vt-w-front .vt-w-title {
  font-family: var(--pk-head) !important; font-size: clamp(26px, 6vw, 34px) !important; font-weight: 400 !important; letter-spacing: 0.02em !important;
  text-transform: uppercase !important; line-height: 1.05 !important; padding: 0 !important; white-space: normal;
}
.vt-os-full .vt-w-front .vt-w-ctl { gap: 8px; padding-bottom: 2px; }
.vt-os-full .vt-w-front :is(.vt-w-min, .vt-w-zoom, .vt-w-close) { width: 34px; height: 34px; border-radius: 50% !important; font-size: 15px !important; }
.vt-os-full .vt-w-front .vt-w-body { padding: 16px 16px 24px; }
/* One column, a phone's width, for the reading windows; the StarPad and the network app keep their own layout. */
.vt-os-full :is(#vt-w-plaza, #vt-w-inbox, #vt-w-get, #vt-w-about).vt-w-front .vt-w-body > * { max-width: 680px; margin-left: auto; margin-right: auto; }
.vt-os-full .vt-os-tabs {
  flex: none; display: flex; justify-content: space-around; align-items: stretch; height: 60px; padding: 0 4px env(safe-area-inset-bottom);
  background: var(--os-surface); border-top: 1px solid var(--os-line); position: relative; z-index: 8600;
}
.vt-os-tabs button {
  flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0 !important;
  background: none !important; border: 0 !important; color: var(--os-dim) !important; font-size: 11px !important; font-weight: 600;
}
.vt-os-tabs svg { width: 22px; height: 22px; }
.vt-os-tabs button:hover, .vt-os-tabs button:focus-visible { color: var(--os-text) !important; outline: none; }
.vt-os[data-front="plaza"] .vt-os-tabs [data-open="plaza"], .vt-os[data-front="network"] .vt-os-tabs [data-open="network"],
.vt-os[data-front="starpad"] .vt-os-tabs [data-open="starpad"], .vt-os[data-front="inbox"] .vt-os-tabs [data-open="inbox"],
.vt-os[data-front="get"] .vt-os-tabs [data-open="get"] { color: var(--pk-cyan) !important; }
@media (max-width: 760px) {
  .vt-os-full .vt-w-front .vt-w-zoom { display: none; }
  /* The window is taller than the screen and the page scrolls, so the tab bar is pinned to the screen's foot. */
  .vt-os-full .vt-os-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9400; height: calc(60px + env(safe-area-inset-bottom)); }
  .vt-os-full .vt-w-front .vt-w-body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* ---- the live StarPad (ADR-0168 W1: the real OS, starpad/web/): its screen at a whole-number scale, and its seven
   buttons -- Home, the d-pad round OK, Back -- for touch screens and mice ---- */
.vt-pad-live { display: block; width: 480px; height: 640px; image-rendering: pixelated; image-rendering: crisp-edges; background: #000; cursor: crosshair; touch-action: none; border-radius: 6px; }
.vt-pad-live[hidden], .vt-pad-pad[hidden], .vt-pad-livehelp[hidden], .vt-pad [hidden] { display: none !important; }
.vt-pad:focus-visible .vt-pad-live { outline: 2px solid var(--pk-cyan); outline-offset: 4px; }
.vt-pad-pad { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 4px 0 0; user-select: none; -webkit-user-select: none; }
.vt-pd-dpad { display: grid; grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(3, 44px); gap: 4px; }
.vt-pd-dpad [data-pd="up"] { grid-column: 2; grid-row: 1; }
.vt-pd-dpad [data-pd="left"] { grid-column: 1; grid-row: 2; }
.vt-pd-dpad [data-pd="ok"] { grid-column: 2; grid-row: 2; }
.vt-pd-dpad [data-pd="right"] { grid-column: 3; grid-row: 2; }
.vt-pd-dpad [data-pd="down"] { grid-column: 2; grid-row: 3; }
.vt-pad-pad button { touch-action: none; padding: 0 !important; display: grid; place-items: center; font-weight: 600; color: var(--os-text) !important;
  background: var(--os-raised) !important; border: 1px solid var(--os-line) !important; border-radius: 10px !important; }
.vt-pad-pad button:active { background: var(--pk-violet) !important; color: #fff !important; }
.vt-pd-ok { border-radius: 50% !important; }
.vt-pd-sys { width: 64px; height: 36px; font-size: 12px !important; border-radius: 18px !important; }

/* ==== The Network tab's StarPad (plaza.php: vectec_plaza_handheld; Nel, 2026-11-30): the real OS in a handheld --
   upright on a phone (screen, then the d-pad and A/B, Home between), wide on a desktop (d-pad and A/B either side).
   Flat colours and plain shadows; the screen at whole device pixels (vectec-starpad-tab.js). ==== */
body:has(.vt-sp) main h1.wp-block-post-title { display: none; }
/* The theme narrows a page's content; the handheld takes its own width, as the desktop does. */
.wp-block-post-content > .vt-sp, .entry-content > .vt-sp { max-width: 1100px !important; width: 100%; margin-left: auto !important; margin-right: auto !important; }
.vt-sp[hidden], .vt-os[hidden] { display: none !important; }
.vt-sp {
  --sp-body: #1c1c22; --sp-edge: #2b2b33; --sp-key: #2a2a31; --sp-key-hi: #34343d; --sp-text: #dddbd5; --sp-dim: #8f8d96;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; height: calc(100svh - 76px); min-height: 520px;
  max-width: 1100px; margin: 0 auto; padding: 8px 12px 10px; box-sizing: border-box; color: var(--sp-text); font-family: var(--pk-mono); outline: none;
}
.vt-sp:fullscreen { height: 100vh; max-width: none; padding: 12px; background: #0e0e12; }
.vt-sp-bar { display: flex; align-items: center; gap: 10px; }
.vt-sp-name { font-family: var(--pk-head); font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase; margin-right: auto; }
.vt-sp-tools { display: flex; gap: 8px; }
.vt-sp-tools button { min-height: 36px; padding: 0 14px !important; border-radius: 18px !important; border: 1px solid var(--sp-edge) !important; background: var(--sp-body) !important;
  color: var(--sp-text) !important; font: 600 12px/1 var(--pk-mono) !important; letter-spacing: 0.06em; cursor: pointer; box-shadow: none !important; }
.vt-sp-tools button:hover, .vt-sp-tools button:focus-visible { color: var(--pk-cyan) !important; border-color: var(--pk-cyan) !important; }
.vt-sp-shell {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto auto; grid-template-areas: "glass glass" "dpad face" "sys sys";
  gap: 14px 10px; min-height: 0; padding: 16px 16px 22px; background: var(--sp-body); border-radius: 22px 22px 56px 22px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.05), inset 0 -3px 0 rgba(0, 0, 0, 0.35), 0 18px 40px rgba(0, 0, 0, 0.45);
}
.vt-sp:focus-visible .vt-sp-shell { box-shadow: 0 0 0 2px var(--pk-violet), 0 18px 40px rgba(0, 0, 0, 0.45); }
.vt-sp-glass { grid-area: glass; min-height: 0; display: grid; place-items: center; position: relative; background: #060608; border-radius: 12px; padding: 8px;
  box-shadow: inset 0 0 0 2px #101014; }
.vt-sp-screen { display: block; image-rendering: pixelated; image-rendering: crisp-edges; background: #000; touch-action: none; cursor: crosshair;
  border: 0 !important; box-shadow: none !important; }
.vt-sp-wait { position: absolute; margin: 0; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sp-dim); }
.vt-sp-wait[hidden] { display: none; }
.vt-sp-shell button { -webkit-tap-highlight-color: transparent; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; box-shadow: none !important; }
/* The d-pad: a cross of five squares. */
.vt-sp-dpad { grid-area: dpad; justify-self: center; align-self: center; display: grid; grid-template-columns: repeat(3, 50px); grid-template-rows: repeat(3, 50px); }
.vt-sp-dpad button, .vt-sp-hub { background: var(--sp-key) !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; color: var(--sp-dim) !important; font-size: 15px; }
.vt-sp-hub { grid-column: 2; grid-row: 2; display: block; }
.vt-sp-u { grid-column: 2; grid-row: 1; border-radius: 8px 8px 0 0 !important; } .vt-sp-u::after { content: "\25B2"; }
.vt-sp-l { grid-column: 1; grid-row: 2; border-radius: 8px 0 0 8px !important; } .vt-sp-l::after { content: "\25C0"; }
.vt-sp-r { grid-column: 3; grid-row: 2; border-radius: 0 8px 8px 0 !important; } .vt-sp-r::after { content: "\25B6"; }
.vt-sp-d { grid-column: 2; grid-row: 3; border-radius: 0 0 8px 8px !important; } .vt-sp-d::after { content: "\25BC"; }
.vt-sp-dpad button:active { background: var(--sp-key-hi) !important; color: var(--pk-cyan) !important; }
/* A and B: two round buttons on a slant, A higher and to the right. */
.vt-sp-face { grid-area: face; justify-self: center; align-self: center; display: grid; grid-template-columns: 66px 66px; grid-template-rows: 66px 66px; }
.vt-sp-a, .vt-sp-b { width: 62px; height: 62px; border-radius: 50% !important; border: 0 !important; padding: 0 !important; font: 700 18px/1 var(--pk-mono) !important; color: #fff !important; }
.vt-sp-a { grid-column: 2; grid-row: 1; background: var(--pk-violet) !important; }
.vt-sp-b { grid-column: 1; grid-row: 2; background: #3a3a44 !important; }
.vt-sp-a:active, .vt-sp-b:active { transform: translateY(2px); filter: brightness(1.25); }
.vt-sp-sys { grid-area: sys; display: flex; justify-content: center; }
.vt-sp-home { min-width: 92px; height: 30px; padding: 0 16px !important; border-radius: 15px !important; border: 0 !important; background: var(--sp-key) !important;
  color: var(--sp-dim) !important; font: 600 11px/1 var(--pk-mono) !important; letter-spacing: 0.14em; text-transform: uppercase; }
.vt-sp-home:active { background: var(--sp-key-hi) !important; color: var(--pk-cyan) !important; }
.vt-sp-help { margin: 0; text-align: center; font-size: 11.5px; color: var(--sp-dim); }
/* Wide: the controls either side of the screen. */
@media (min-width: 720px) and (min-aspect-ratio: 1/1) {
  .vt-sp-shell { grid-template-columns: minmax(170px, 1fr) minmax(264px, 2.4fr) minmax(170px, 1fr); grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas: "dpad glass face" "dpad sys face"; padding: 18px 26px; border-radius: 40px; }
}
@media (max-width: 719px) {
  .vt-sp { height: calc(100svh - 112px); padding: 6px 8px; gap: 8px; }
  .vt-sp-dpad { grid-template-columns: repeat(3, 46px); grid-template-rows: repeat(3, 46px); }
  .vt-sp-help { display: none; }
}
.vt-os-backpad { margin-right: 6px; }

/* ==== The StarPad as an XR overlay (Nel, 2026-11-30: "full screen at all times on the networking page"; "buttons
   bigger in the space"; "in style with the site ... a XR digital overlay with just white lines and a few accent
   lines"). No body: the site's own screen shows through; the screen sits in HUD brackets; every control is a thin
   white outline that lights when pressed; cyan and violet only as accents. Sizes follow the window. ==== */
body:has(.vt-sp:not([hidden])) { overflow: hidden; }
body:has(.vt-sp:not([hidden])) header.wp-block-template-part, body:has(.vt-sp:not([hidden])) footer.wp-block-template-part { display: none !important; }
.wp-block-post-content > .vt-sp, .entry-content > .vt-sp, .vt-sp {
  position: fixed !important; inset: 0; z-index: 9000; width: auto !important; max-width: none !important; height: 100vh; height: 100dvh; min-height: 0;
  margin: 0 !important; padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: rgba(6, 6, 9, 0.55); --line: rgba(245, 245, 240, 0.86); --line-dim: rgba(245, 245, 240, 0.32);
}
.vt-sp-bar { gap: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line-dim); position: relative; }
.vt-sp-bar::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 64px; height: 1px; background: var(--pk-cyan); }
.vt-sp-out { color: var(--line); text-decoration: none; font: 600 12px/1 var(--pk-mono); letter-spacing: 0.12em; text-transform: uppercase; padding: 8px 2px; }
.vt-sp-out:hover, .vt-sp-out:focus-visible { color: var(--pk-cyan); background: none; }
.vt-sp-name { font-size: 18px; color: var(--line); }
.vt-sp-tools button { background: none !important; border: 1px solid var(--line-dim) !important; border-radius: 0 !important; color: var(--line) !important; }
.vt-sp-shell { background: none; box-shadow: none; border-radius: 0; padding: 10px 4px 6px; gap: 12px 10px; }
.vt-sp:focus-visible .vt-sp-shell { box-shadow: none; }
.vt-sp:focus-visible .vt-sp-glass { outline: 1px solid var(--pk-violet); outline-offset: 6px; }
/* The screen in HUD brackets. */
.vt-sp-glass { background: none; box-shadow: none; border-radius: 0; padding: 14px; }
.vt-sp-k { position: absolute; width: 22px; height: 22px; border: 0 solid var(--line); pointer-events: none; }
.vt-sp-k1 { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; }
.vt-sp-k2 { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; border-color: var(--pk-cyan); }
.vt-sp-k3 { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; border-color: var(--pk-violet); }
.vt-sp-k4 { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }
.vt-sp-screen { box-shadow: 0 0 0 1px var(--line-dim), 0 0 24px rgba(0, 229, 255, 0.08) !important; }
/* The d-pad: four outlined arms round an empty middle, as big as the space allows. */
.vt-sp { --cell: clamp(52px, 10.5vmin, 104px); --round: clamp(66px, 13.5vmin, 132px); }
.vt-sp-dpad { grid-template-columns: repeat(3, var(--cell)); grid-template-rows: repeat(3, var(--cell)); gap: 2px; }
.vt-sp-dpad button, .vt-sp-hub { background: none !important; border: 1.5px solid var(--line) !important; border-radius: 0 !important; color: var(--line) !important;
  font-size: calc(var(--cell) * 0.28) !important; }
.vt-sp-hub { border-color: var(--line-dim) !important; border-style: dashed !important; }
.vt-sp-u { border-bottom: 0 !important; } .vt-sp-d { border-top: 0 !important; } .vt-sp-l { border-right: 0 !important; } .vt-sp-r { border-left: 0 !important; }
.vt-sp-u, .vt-sp-l, .vt-sp-r, .vt-sp-d { border-radius: 0 !important; }
.vt-sp-dpad button:active { background: rgba(0, 229, 255, 0.16) !important; color: var(--pk-cyan) !important; border-color: var(--pk-cyan) !important; }
/* A and B: rings, A with a violet accent. */
.vt-sp-face { grid-template-columns: var(--round) var(--round); grid-template-rows: var(--round) var(--round); gap: 0 calc(var(--round) * 0.1); }
.vt-sp-a, .vt-sp-b { width: calc(var(--round) * 0.92); height: calc(var(--round) * 0.92); background: none !important; border: 1.5px solid var(--line) !important;
  color: var(--line) !important; font-size: calc(var(--round) * 0.26) !important; font-weight: 600 !important; }
.vt-sp-a { box-shadow: inset 0 0 0 4px rgba(6, 6, 9, 0.6), inset 0 0 0 5.5px var(--pk-violet) !important; }
.vt-sp-a:active, .vt-sp-b:active { transform: none; filter: none; background: rgba(176, 38, 255, 0.2) !important; border-color: var(--pk-violet) !important; color: #fff !important; }
.vt-sp-home { background: none !important; border: 1.5px solid var(--line) !important; border-radius: 0 !important; color: var(--line) !important;
  min-width: calc(var(--cell) * 2); height: calc(var(--cell) * 0.6); font-size: calc(var(--cell) * 0.2) !important; }
.vt-sp-home:active { background: rgba(0, 229, 255, 0.16) !important; border-color: var(--pk-cyan) !important; color: var(--pk-cyan) !important; }
.vt-sp-help { color: var(--line-dim); }
@media (min-width: 720px) and (min-aspect-ratio: 1/1) {
  .vt-sp-shell { grid-template-columns: minmax(calc(var(--cell) * 3.4), 1fr) minmax(264px, 2.4fr) minmax(calc(var(--round) * 2.4), 1fr); padding: 10px 8px; border-radius: 0; }
}
@media (max-width: 719px) {
  .wp-block-post-content > .vt-sp, .entry-content > .vt-sp, .vt-sp { padding: max(8px, env(safe-area-inset-top)) 10px max(8px, env(safe-area-inset-bottom)); }
  .vt-sp { --cell: clamp(48px, 15vw, 76px); --round: clamp(62px, 19vw, 96px); }
}
.vt-sp-tools button, .vt-sp-out { white-space: nowrap; }
@media (max-width: 719px) {
  .vt-sp-name { display: none; }
  .vt-sp-out { margin-right: auto; }
  .vt-sp-tools button { min-height: 32px; padding: 0 10px !important; font-size: 11px !important; }
}

/* ---- the Inbox (vectec-inbox.js): direct messages ---- */
.vt-ib { display: grid; gap: 10px; }
.vt-ib-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; }
.vt-ib-set { display: flex; flex-direction: column; gap: 2px; font-size: 11px; }
.vt-ib-set select, .vt-ib input[type=search], .vt-ib textarea {
  font: inherit; font-size: 13px; color: var(--os-ink); background: var(--os-paper); border: 1px solid var(--os-ink); border-radius: 0; padding: 4px 6px; box-sizing: border-box; width: 100%;
}
.vt-ib-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.vt-ib-conv { display: grid; gap: 2px; width: 100%; text-align: left; padding: 8px 10px !important; background: var(--os-paper) !important; color: var(--os-ink) !important; border: 1px solid var(--os-ink) !important; }
.vt-ib-conv:hover, .vt-ib-conv:focus-visible { background: var(--os-ink) !important; color: var(--os-paper) !important; outline: none; }
.vt-ib-conv:disabled { opacity: 0.55; cursor: default; }
.vt-ib-top { display: flex; gap: 8px; align-items: baseline; }
.vt-ib-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-ib-new { font-size: 11px; font-weight: 600; padding: 0 5px; background: var(--pk-violet); color: var(--os-paper); }
.vt-ib-last { font-size: 12px; opacity: 0.75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-ib-log { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow: auto; }
.vt-ib-log li { max-width: 82%; display: grid; gap: 3px; padding: 6px 9px; border: 1px solid var(--os-ink); }
.vt-ib-mine { align-self: flex-end; background: var(--os-ink); color: var(--os-paper); }
.vt-ib-theirs { align-self: flex-start; }
.vt-w .vt-w-body .vt-ib-mine :where(span) { color: var(--os-paper) !important; }
.vt-ib-words { white-space: pre-wrap; overflow-wrap: anywhere; }
.vt-ib-when { font-size: 11px; opacity: 0.65; }
.vt-ib-draw { max-width: 100%; image-rendering: pixelated; background: #fff; }
.vt-ib-say { display: grid; gap: 6px; }
.vt-ib-say .vt-os-btn { justify-self: end; background: var(--os-paper); }
.vt-ib-note { margin-top: 6px !important; }
.vt-ib-held { border-style: dashed !important; font-style: italic; }
.vt-ib-acts { display: flex; gap: 12px; align-items: baseline; font-style: normal; }
.vt-ib-report { font-size: 11px !important; font-weight: 400 !important; }

/* ==== The StarPad's floating XR controls (Nel, 2026-11-30: "Floating XR/AR like futuristic GUI controls over the site";
   his answers: a hologram HUD in the site's white, tilting with the mouse and the phone, beside the screen when wide and
   under it on a phone; press animation, click and vibration; the fringe on the web page only). Light, not objects:
   thin white lines with a bloom, rings and ticks, faint scanlines. The screen itself only shifts (never tilts), so a
   touch lands where the pointer is. The fringe is round the screen, never over its picture (Nel). The default since
   2026-11-30; ?look=classic gives the earlier controls. ==== */
.vt-sp[data-look="xr"] {
  --glow: rgba(255, 255, 255, 0.55); --tx: 0deg; --ty: 0deg; --px: 0px; --py: 0px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 45%, rgba(10, 12, 20, 0.35), rgba(4, 4, 7, 0.78) 70%);
}
.vt-sp[data-look="xr"] .vt-sp-shell { perspective: 1100px; }
/* Each floating layer tilts with the pointer at its own depth. */
.vt-sp[data-look="xr"] .vt-sp-dpad, .vt-sp[data-look="xr"] .vt-sp-face, .vt-sp[data-look="xr"] .vt-sp-sys {
  transform: rotateX(var(--tx)) rotateY(var(--ty)) translateZ(40px); transform-style: preserve-3d; transition: transform 0.25s ease-out;
  filter: drop-shadow(0 0 6px var(--glow)) drop-shadow(0 0 18px rgba(255, 255, 255, 0.12));
}
.vt-sp[data-look="xr"] .vt-sp-k { transform: translate(calc(var(--px) * 1.6), calc(var(--py) * 1.6)); transition: transform 0.25s ease-out;
  filter: drop-shadow(0 0 5px var(--glow)); }
.vt-sp[data-look="xr"] .vt-sp-screen { transform: translate(var(--px), var(--py)); transition: transform 0.25s ease-out;
  box-shadow: -2px 0 0 rgba(255, 46, 99, 0.55), 2px 0 0 rgba(0, 229, 255, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.35), 0 0 36px rgba(255, 255, 255, 0.10) !important; }
/* Tick marks along the screen's frame, like a viewfinder's. */
.vt-sp[data-look="xr"] .vt-sp-glass::before, .vt-sp[data-look="xr"] .vt-sp-glass::after {
  content: ""; position: absolute; left: 34px; right: 34px; height: 6px; pointer-events: none; opacity: 0.6;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0 1px, transparent 1px 12px);
  transform: translate(calc(var(--px) * 1.6), calc(var(--py) * 1.6)); transition: transform 0.25s ease-out;
}
.vt-sp[data-look="xr"] .vt-sp-glass::before { top: 2px; }
.vt-sp[data-look="xr"] .vt-sp-glass::after { bottom: 2px; }
/* The d-pad: a ring of ticks round four chevron arms and a crosshair hub. */
.vt-sp[data-look="xr"] .vt-sp-dpad { position: relative; gap: 6px; margin: calc(var(--cell) * 0.2); }
.vt-sp[data-look="xr"] .vt-sp-dpad::before {
  content: ""; position: absolute; inset: calc(var(--cell) * -0.16); border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.7) 0 0.6deg, transparent 0.6deg 10deg);
  -webkit-mask: radial-gradient(circle, transparent calc(70% - 7px), #000 calc(70% - 6px), #000 70%, transparent 70%);
          mask: radial-gradient(circle, transparent calc(70% - 7px), #000 calc(70% - 6px), #000 70%, transparent 70%);
  animation: vt-sp-spin 40s linear infinite;
}
.vt-sp[data-look="xr"] .vt-sp-dpad button { border: 1.5px solid var(--line) !important; border-radius: 10px !important; background: rgba(255, 255, 255, 0.03) !important;
  color: #fff !important; transition: transform 0.12s ease-out, background 0.12s, box-shadow 0.12s; }
.vt-sp[data-look="xr"] .vt-sp-u, .vt-sp[data-look="xr"] .vt-sp-d, .vt-sp[data-look="xr"] .vt-sp-l, .vt-sp[data-look="xr"] .vt-sp-r { border: 1.5px solid var(--line) !important; }
.vt-sp[data-look="xr"] .vt-sp-u::after { content: "\2303"; } .vt-sp[data-look="xr"] .vt-sp-d::after { content: "\2304"; }
.vt-sp[data-look="xr"] .vt-sp-l::after { content: "\2039"; } .vt-sp[data-look="xr"] .vt-sp-r::after { content: "\203A"; }
.vt-sp[data-look="xr"] .vt-sp-dpad button::after { font-size: calc(var(--cell) * 0.42); line-height: 1; }
.vt-sp[data-look="xr"] .vt-sp-hub { border: 0 !important; background:
    linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)) center / 40% 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)) center / 1px 40% no-repeat,
    radial-gradient(circle, transparent 26%, rgba(255, 255, 255, 0.55) 27%, rgba(255, 255, 255, 0.55) 29%, transparent 30%) !important; }
/* A and B: rings inside ticked rings; A carries the violet accent, B the cyan. */
.vt-sp[data-look="xr"] .vt-sp-a, .vt-sp[data-look="xr"] .vt-sp-b { position: relative; background: rgba(255, 255, 255, 0.03) !important; border: 1.5px solid var(--line) !important;
  color: #fff !important; transition: transform 0.12s ease-out, background 0.12s, box-shadow 0.12s; }
.vt-sp[data-look="xr"] .vt-sp-a::before, .vt-sp[data-look="xr"] .vt-sp-b::before {
  content: ""; position: absolute; inset: -9px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.75) 0 1deg, transparent 1deg 15deg);
  -webkit-mask: radial-gradient(circle, transparent calc(70% - 5px), #000 calc(70% - 4px), #000 70%, transparent 70%);
          mask: radial-gradient(circle, transparent calc(70% - 5px), #000 calc(70% - 4px), #000 70%, transparent 70%);
}
.vt-sp[data-look="xr"] .vt-sp-a { box-shadow: inset 0 0 0 4px rgba(6, 6, 9, 0.5), inset 0 0 0 5.5px var(--pk-violet), 0 0 14px rgba(176, 38, 255, 0.35) !important; }
.vt-sp[data-look="xr"] .vt-sp-b { box-shadow: inset 0 0 0 4px rgba(6, 6, 9, 0.5), inset 0 0 0 5.5px var(--pk-cyan), 0 0 14px rgba(0, 229, 255, 0.3) !important; }
.vt-sp[data-look="xr"] .vt-sp-home { border-radius: 999px !important; background: rgba(255, 255, 255, 0.03) !important; color: #fff !important; letter-spacing: 0.2em;
  transition: transform 0.12s ease-out, background 0.12s, box-shadow 0.12s; }
/* Pressed (pointer, keyboard or controller): the button sinks into the page and flashes, a ring leaves it. */
.vt-sp[data-look="xr"] .vt-sp-shell button.vt-sp-hit, .vt-sp[data-look="xr"] .vt-sp-shell button:active {
  transform: translateZ(-14px) scale(0.92); background: rgba(255, 255, 255, 0.22) !important; color: #fff !important;
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.7), inset 0 0 12px rgba(255, 255, 255, 0.5) !important; }
.vt-sp[data-look="xr"] .vt-sp-shell button.vt-sp-hit::before { animation: vt-sp-ping 0.32s ease-out; }
.vt-sp[data-look="xr"] .vt-sp-dpad button.vt-sp-hit::before {
  content: ""; position: absolute; inset: -6px; border: 1px solid #fff; border-radius: 14px; pointer-events: none; animation: vt-sp-ping 0.32s ease-out forwards; }
.vt-sp[data-look="xr"] .vt-sp-dpad button { position: relative; }
@keyframes vt-sp-ping { from { opacity: 0.9; transform: scale(0.9); } to { opacity: 0; transform: scale(1.35); } }
@keyframes vt-sp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .vt-sp[data-look="xr"] { --tx: 0deg !important; --ty: 0deg !important; --px: 0px !important; --py: 0px !important; }
  .vt-sp[data-look="xr"] .vt-sp-dpad::before { animation: none; }
}
/* On a phone held upright the controls hover over the page under the screen; the fringe is kept, half as wide. */
body:has(.vt-sp[data-look="xr"]:not([hidden])) .vt-a2hs { display: none; }   /* the Home-screen card would show through the controls */
@media (max-width: 719px) {
  .vt-sp[data-look="xr"] { --cell: clamp(44px, 12vw, 60px); --round: clamp(56px, 15vw, 74px); }
  .vt-sp[data-look="xr"] .vt-sp-dpad { margin: 4px; }
  .vt-sp[data-look="xr"] .vt-sp-face { justify-self: center; margin-right: 10px; }
  .vt-sp[data-look="xr"] .vt-sp-screen { box-shadow: -1px 0 0 rgba(255, 46, 99, 0.55), 1px 0 0 rgba(0, 229, 255, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.35) !important; }
  .vt-sp[data-look="xr"] .vt-sp-dpad, .vt-sp[data-look="xr"] .vt-sp-face, .vt-sp[data-look="xr"] .vt-sp-sys { transform: rotateX(var(--tx)) rotateY(var(--ty)); }
}
