
:root{
  color-scheme:dark;
  --screen:#0b1723;
  --screen-2:#112131;
  --casing:#20292f;
  --casing-2:#161d22;
  --outer:#9bf1e2;
  --inner:#6387a8;
  --gold:#e8b94f;
  --blue:#8ac8ef;
  --ink:#c2d1dc;
  --heading:#dcebf3;
  --muted:#709ba9;
  --divider:#355c70;
  --orange:#f39b4c;
}
*{box-sizing:border-box}
html,body{min-height:100%}
body{
  margin:0;
  color:var(--ink);
  font:17px/1.75 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  padding:18px 14px 30px;
  background:
    radial-gradient(circle at 20% 10%, #1a2f42 0, transparent 28%),
    radial-gradient(circle at 85% 30%, #10202d 0, transparent 24%),
    linear-gradient(180deg,#080c11 0%,#090d12 45%,#06090d 100%);
}
.tablet{
  position:relative;
  max-width:980px;
  margin:0 auto;
  padding:0 28px;
  filter:drop-shadow(0 16px 24px rgba(0,0,0,.45)) drop-shadow(0 0 16px rgba(155,241,226,.08));
}
.tablet::before,
.tablet::after{
  content:"";
  position:absolute;
  pointer-events:none;
  z-index:3;
}
/* left edge indicator lights */
.tablet::before{
  left:8px;
  top:122px;
  width:18px;
  height:82px;
  border-radius:10px;
  background:
    linear-gradient(180deg, transparent 0 7px, #dffff8 7px 13px, transparent 13px 18px, #dffff8 18px 24px, transparent 24px 29px, #94c3c9 29px 34px, transparent 34px 100%),
    linear-gradient(180deg,#132027,#1d2c34 40%,#152229);
  box-shadow:
    inset 1px 0 0 rgba(255,255,255,.12),
    inset -1px 0 0 rgba(0,0,0,.35),
    0 0 10px rgba(155,241,226,.18);
  clip-path:polygon(20% 0,100% 0,100% 100%,0 100%,0 10%);
}
/* right-side hardware pod */
.tablet::after{
  right:6px;
  top:38px;
  width:94px;
  height:170px;
  border-radius:0 18px 10px 18px;
  clip-path:polygon(20% 0,100% 0,100% 84%,84% 96%,48% 100%,0 100%,0 28%);
  background:
    /* red semi-spherical indicator light */
    radial-gradient(circle at 55% 22%, #781010 0 17px, #e64848 17.5px, #e64848 18.5px, transparent 19px),
    /* three shrinking status circles */
    radial-gradient(circle at 63% 54%, #f1ffff 0 4px, #e0f6f8 4.3px, transparent 5px),
    radial-gradient(circle at 63% 65%, #ecffff 0 3px, #dff5f7 3.3px, transparent 4px),
    radial-gradient(circle at 63% 75%, #e6fbff 0 2px, #dff5f7 2.3px, transparent 3px),
    /* body */
    linear-gradient(180deg,#20313a 0%,#17252e 34%,#1e2c35 100%);
  box-shadow:
    inset 1px 0 0 rgba(255,255,255,.08),
    inset 0 0 0 1px rgba(0,0,0,.30),
    -8px 0 12px rgba(0,0,0,.18);
}
.tablet-top,
.tablet-bottom{
  position:relative;
  background:var(--outer);
  isolation:isolate;
}
.tablet-top{
  height:72px;
  clip-path:polygon(0 100%,0 40%,3% 0,81% 0,86% 22%,95% 22%,100% 64%,100% 100%);
}
.tablet-top::before,
.tablet-bottom::before{
  content:"";
  position:absolute;
  inset:3px;
  background:
    linear-gradient(140deg,#394850 0%,#232d34 20%,#1c242a 42%,#232e36 68%,#161e24 100%);
  clip-path:inherit;
  z-index:-1;
}
.tablet-top::after{
  content:"";
  position:absolute;
  inset:10px 13px auto 13px;
  height:40px;
  border-radius:12px 14px 0 0;
  background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,0));
  opacity:.45;
}
.hardware{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  padding:21px 7% 0;
  gap:12px;
}
.lights{display:flex;gap:5px}
.lights i{
  width:7px;height:5px;
  background:#c3fff1;
  box-shadow:0 0 8px rgba(155,241,226,.7);
}
.lights i:last-child{opacity:.45}
.device-label{
  grid-column:2;
  font-size:10px;
  letter-spacing:.25em;
  color:#a9c8cf;
  text-align:center;
}
/* remove old orange oval */
.indicator{display:none}
.screen{
  position:relative;
  border-left:2px solid var(--outer);
  border-right:2px solid var(--outer);
  box-shadow:
    inset 0 0 0 3px var(--casing),
    inset 0 0 0 5px var(--inner),
    inset 0 0 0 6px rgba(255,255,255,.03);
  padding:30px clamp(22px,6vw,64px) 22px;
  min-height:360px;
  overflow-wrap:anywhere;
  background:
    radial-gradient(circle at 18% 14%, rgba(111,200,255,.05), transparent 25%),
    radial-gradient(circle at 76% 24%, rgba(138,200,239,.04), transparent 22%),
    radial-gradient(circle at 90% 82%, rgba(155,241,226,.02), transparent 18%),
    repeating-linear-gradient(180deg, rgba(160,205,255,.06) 0 1px, transparent 1px 9px),
    radial-gradient(circle at 12px 12px, rgba(136,196,235,.18) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, var(--screen-2) 0%, var(--screen) 18%, #0a1420 100%);
  background-size:auto,auto,auto,auto,8px 8px,auto;
}
.screen > *{position:relative;z-index:2}
.screen::before{
  content:"";
  position:absolute;
  inset:13px 16px;
  border:1px solid rgba(138,200,239,.12);
  box-shadow:inset 0 0 18px rgba(138,200,239,.03);
  pointer-events:none;
}
.screen::after{
  content:"";
  position:absolute;
  top:0;
  right:0;
  width:92px;
  height:120px;
  background:
    linear-gradient(135deg, transparent 0 26px, rgba(99,135,168,.4) 26px 27px, transparent 27px),
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 50%);
  clip-path:polygon(58% 0,100% 0,100% 100%,44% 100%,62% 76%,0 76%,0 18%);
  opacity:.35;
  pointer-events:none;
}
.journal-heading{
  text-align:center;
  border-bottom:1px solid var(--divider);
  padding-bottom:19px;
  margin-bottom:24px;
}
.journal-heading h1{
  font-size:clamp(1.5rem,3vw,2.25rem);
  font-weight:600;
  line-height:1.25;
  color:var(--heading);
  margin:0 0 9px;
}
.log-number{
  font-size:.78rem;
  letter-spacing:.16em;
  color:var(--muted);
}
article h2{
  font-size:1.55rem;
  line-height:1.35;
  color:var(--gold);
  margin:0 0 4px;
  font-weight:600;
}
.datestamp{font-size:.92rem;color:#a7b7c3}
.datestamp span{color:var(--blue)}
.story-image{
  display:block;
  width:auto;
  max-width:min(100%,480px);
  height:auto;
  max-height:480px;
  object-fit:contain;
  margin:22px auto;
  border:1px solid rgba(138,200,239,.16);
  box-shadow:0 0 0 4px rgba(15,24,31,.75), 0 8px 18px rgba(0,0,0,.3);
}
.story{margin-top:20px}
.story p{margin:0 0 1.15em}
.story h2,.story h3,.story h4,.story h5,.story h6{color:var(--gold);line-height:1.4}
.story blockquote{border-left:2px solid var(--inner);padding-left:16px;margin:1em 0;color:#a7becd}
.story code{background:#202e3c;padding:2px 4px;border-radius:3px}
a{color:var(--blue)}
.navigation{
  border-top:1px solid var(--divider);
  display:flex;
  justify-content:center;
  align-items:center;
  gap:clamp(3px,2vw,17px);
  padding-top:18px;
  margin-top:28px;
  font-size:.9rem;
}
.navigation a,.navigation .disabled{
  display:inline-block;
  padding:5px 4px;
  min-width:22px;
  text-align:center;
  text-decoration:none;
}
.navigation a:hover,.navigation a:focus-visible{background:#203748;outline:1px solid var(--blue)}
.disabled{color:#587080}
.counter{white-space:nowrap;font-variant-numeric:tabular-nums}
.empty{text-align:center;margin:48px 0;color:var(--ink)}
.tablet-bottom{
  height:48px;
  clip-path:polygon(0 0,100% 0,100% 36%,96% 70%,85% 70%,81% 100%,3% 100%,0 48%);
}
.vent{
  position:absolute;
  top:12px;
  left:42%;
  width:16%;
  height:6px;
  background:linear-gradient(180deg,#627e8a,#3f5962);
  border-radius:3px;
  box-shadow:0 1px 0 rgba(255,255,255,.08) inset;
}
.bottom-lights{
  position:absolute;
  left:7%;
  top:12px;
  width:5px;
  height:6px;
  background:#c3fff1;
  box-shadow:10px 0 #c3fff1,0 0 8px rgba(155,241,226,.65);
}
@media (max-width: 680px){
  .tablet{padding:0 14px}
  .tablet::after{right:1px;top:40px;width:74px;height:142px;opacity:.95}
  .tablet::before{left:1px;top:120px;height:70px}
}
@media (max-width: 480px){
  body{padding:6px 4px 16px;font-size:16px}
  .tablet{padding:0 6px}
  .tablet-top{height:52px}
  .hardware{padding-top:14px}
  .device-label{font-size:8px;letter-spacing:.12em}
  .screen{padding:20px 19px 14px}
  .screen::before{inset:10px 10px}
  .screen::after{width:64px;height:86px;opacity:.25}
  .tablet::after{width:56px;height:110px;top:32px;right:0}
  .tablet::before{width:14px;height:54px;top:98px}
  .navigation{gap:2px;font-size:.8rem}
  .navigation a,.navigation .disabled{padding:6px 3px}
  .tablet-bottom{height:34px}
}

/* Scale the red hardware indicator on narrow displays. */
@media(max-width:480px){
  .tablet::after{background:
    radial-gradient(circle at 55% 22%, #781010 0 10.5px, #e64848 11px, #e64848 11.5px, transparent 12px),
    radial-gradient(circle at 63% 54%, #f1ffff 0 4px, #e0f6f8 4.3px, transparent 5px),
    radial-gradient(circle at 63% 65%, #ecffff 0 3px, #dff5f7 3.3px, transparent 4px),
    radial-gradient(circle at 63% 75%, #e6fbff 0 2px, #dff5f7 2.3px, transparent 3px),
    linear-gradient(180deg,#20313a 0%,#17252e 34%,#1e2c35 100%);}
}

/* Discreet administrator link centred over the first white status light. */
.admin-indicator{position:absolute;z-index:4;right:6px;top:38px;width:94px;height:170px;pointer-events:none}
.admin-indicator a{position:absolute;left:63%;top:54%;width:24px;height:24px;transform:translate(-50%,-50%);border-radius:50%;pointer-events:auto;cursor:pointer;text-decoration:none}
.admin-indicator a:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
@media(max-width:680px){.admin-indicator{right:1px;top:40px;width:74px;height:142px}}
@media(max-width:480px){.admin-indicator{right:0;top:32px;width:56px;height:110px}}

/* Smooth glass dome, contained inside the existing red mounting ring. */
.admin-indicator::before{
  content:"";position:absolute;left:55%;top:22%;
  width:28px;height:28px;transform:translate(-50%,-50%);
  border-radius:50%;pointer-events:none;
  background:radial-gradient(circle at 37% 30%, #ffd0d0 0%, #ef9292 13%, #dc5050 30%, #bc2525 53%, #961414 74%, #790b0b 100%);
  box-shadow:inset 0 -2px 4px #62070755;
}
@media(max-width:480px){.admin-indicator::before{width:18px;height:18px}}
