/* ==========================================================================
   phone.css — MayesOS Mobile
   A 2006-era handset UI that replaces the desktop entirely on small screens.
   Glossy tiles, a carrier status bar, soft keys. Same CONTENT, different box.
   ========================================================================== */

#phone {
  position: fixed; inset: 0;
  display: none;
  flex-direction: column;
  background: #06121e;
  color: #eaf4ff;
  font-family: var(--font);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
#phone.on { display: flex; }
html.phone-mode, html.phone-mode body { overflow: hidden; height: 100%; }
html.phone-mode #screen { display: none !important; }

/* ---------- status bar ---------- */
.ph-status {
  flex: 0 0 auto;
  height: 26px;
  padding: 0 10px;
  padding-top: env(safe-area-inset-top, 0px);
  height: calc(26px + env(safe-area-inset-top, 0px));
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: .2px;
  color: #cfe6fb;
  background: linear-gradient(180deg, #0f2f4c, #0a2033);
  border-bottom: 1px solid rgba(140,200,245,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
  z-index: 5;
}
.ph-status .carrier { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-status .bars { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.ph-status .bars i {
  width: 3px; background: #8fe6b4; border-radius: 1px; display: block;
}
.ph-status .bars i:nth-child(1) { height: 3px; }
.ph-status .bars i:nth-child(2) { height: 5px; }
.ph-status .bars i:nth-child(3) { height: 8px; }
.ph-status .bars i:nth-child(4) { height: 11px; opacity: .35; }
.ph-status .batt {
  width: 22px; height: 11px; border: 1px solid #cfe6fb; border-radius: 2px;
  position: relative; padding: 1.5px;
}
.ph-status .batt::after {
  content: ""; position: absolute; right: -3px; top: 3px;
  width: 2px; height: 5px; background: #cfe6fb; border-radius: 0 1px 1px 0;
}
.ph-status .batt i { display: block; height: 100%; width: 72%; background: #8fe6b4; border-radius: 1px; }

/* ---------- screen area ---------- */
.ph-screen {
  flex: 1 1 auto; min-height: 0;
  position: relative;
  overflow: hidden;
}
.ph-view {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: #08192a;
  overflow: hidden;
}
.ph-view[hidden] { display: none !important; }
.ph-view.slide-in  { animation: phIn .22s cubic-bezier(.22,.9,.3,1) both; }
@keyframes phIn  { from { transform: translateX(22%); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes phOut { from { transform: none; opacity: 1; } to { transform: translateX(-14%); opacity: 0; } }

.ph-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* ---------- app title bar ---------- */
.ph-bar {
  flex: 0 0 auto;
  height: 42px; padding: 0 8px;
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, #2f7cba, #174a72 52%, #0f3555);
  border-bottom: 1px solid rgba(160,210,250,.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 2px 6px rgba(0,0,0,.35);
  font-size: 15px; font-weight: 600;
}
.ph-bar .t { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-bar button {
  background: none; border: 0; color: #dff0ff; padding: 6px 8px;
  display: grid; place-items: center; border-radius: 6px;
}
.ph-bar button:active { background: rgba(255,255,255,.18); }
.ph-bar svg { width: 18px; height: 18px; }

/* ---------- home screen ---------- */
/* the home view must fill the scroll box, or the wallpaper stops partway down */
.ph-body.is-home { display: flex; flex-direction: column; }
.ph-home {
  position: relative;
  flex: 1 0 auto; min-height: 100%;
  display: flex; flex-direction: column;
}
.ph-home .wall {
  position: absolute; inset: 0;
  background-color: #17456e;
  background-image: var(--wall, url("../assets/wall-meadow.svg"));
  background-position: center;
  background-size: var(--wall-size, cover);
  background-repeat: var(--wall-repeat, no-repeat);
}
.ph-home .veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,16,28,.42), rgba(4,16,28,.72));
}
.ph-home .inner {
  position: relative; z-index: 1;
  flex: 1 1 auto;
  display: flex; flex-direction: column;
  padding: 14px 14px 22px;
}
.ph-clock { text-align: center; margin: 6px 0 16px; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.ph-clock .tt { font-size: 46px; font-weight: 200; letter-spacing: -1px; line-height: 1; }
.ph-clock .dd { font-size: 12.5px; color: rgba(225,240,255,.8); margin-top: 4px; }
.ph-clock .who { font-size: 12px; color: rgba(225,240,255,.62); margin-top: 10px; }

.ph-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.ph-app {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: 0; padding: 4px 2px;
  color: #fff; font-size: 11.5px; line-height: 1.2; text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
/* `.tile` already means something in vista.css (explorer tiles, min-height
   150px), so the phone uses its own name or the icons come out stretched. */
.ph-ticon { position: relative; display: inline-block; line-height: 0; }
.ph-tile {
  width: 62px; height: 62px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.38), rgba(255,255,255,.08) 48%, rgba(0,0,0,.14) 50%, rgba(255,255,255,.14));
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: 0 6px 16px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.6);
  backdrop-filter: blur(8px) saturate(1.3);
  -webkit-backdrop-filter: blur(8px) saturate(1.3);
  transition: transform .12s ease, filter .12s ease;
}
.ph-app:active .ph-tile { transform: scale(.93); filter: brightness(1.2); }
.ph-tile svg { width: 34px; height: 34px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.ph-app .badge {
  position: absolute; top: -6px; right: -7px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: #e0473a;
  border: 2px solid rgba(255,255,255,.92);
  font-size: 10.5px; font-weight: 700; line-height: 17px; color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.5);
}

/* ---------- soft keys ---------- */
.ph-soft {
  flex: 0 0 auto;
  display: flex; align-items: stretch; gap: 1px;
  height: 48px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  height: calc(48px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(50,90,130,.6), rgba(8,22,36,.94) 40%);
  border-top: 1px solid rgba(160,210,250,.35);
  box-shadow: 0 -2px 10px rgba(0,0,0,.5);
  z-index: 5;
}
.ph-soft button {
  flex: 1 1 0; background: none; border: 0; color: #dff0ff;
  font-size: 12.5px; font-weight: 600; letter-spacing: .3px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.ph-soft button:active { background: rgba(255,255,255,.14); }
.ph-soft button svg { width: 17px; height: 17px; }
.ph-soft .sep { width: 1px; background: rgba(255,255,255,.16); }
.ph-soft button[disabled] { opacity: .35; }

/* ---------- list rows ---------- */
.ph-list { padding: 6px 0 16px; }
.ph-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 12px 14px;
  background: none; border: 0; border-bottom: 1px solid rgba(140,200,245,.14);
  color: #eaf4ff; text-align: left; text-decoration: none;
}
.ph-item:active { background: rgba(120,190,245,.18); }
.ph-item .ico { flex: 0 0 34px; height: 34px; display: grid; place-items: center; }
.ph-item .ico svg { width: 30px; height: 30px; }
.ph-item .txt { flex: 1 1 auto; min-width: 0; }
.ph-item .nm { font-size: 14px; font-weight: 600; }
.ph-item .sb { font-size: 12px; color: rgba(200,226,248,.68); margin-top: 2px; line-height: 1.35; }
.ph-item .go { flex: 0 0 auto; color: rgba(190,225,250,.5); font-size: 18px; }
.ph-sect {
  padding: 14px 14px 5px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: rgba(160,205,240,.62);
  background: rgba(8,26,44,.6);
  border-bottom: 1px solid rgba(140,200,245,.14);
}

/* ---------- messages ---------- */
.ph-thread { padding: 14px 12px 20px; display: flex; flex-direction: column; gap: 10px; }
.ph-msg { max-width: 84%; display: flex; flex-direction: column; gap: 3px; }
.ph-msg.them { align-self: flex-start; }
.ph-msg.me   { align-self: flex-end; align-items: flex-end; }
.ph-bub {
  padding: 9px 13px; border-radius: 16px;
  font-size: 13.5px; line-height: 1.5;
  box-shadow: 0 2px 6px rgba(0,0,0,.28);
  overflow-wrap: anywhere;
}
.ph-msg.them .ph-bub {
  background: linear-gradient(180deg, #e9f2f9, #d3e3f0);
  color: #14293a; border-bottom-left-radius: 5px;
}
.ph-msg.me .ph-bub {
  background: linear-gradient(180deg, #5fb0f0, #2c7fc4);
  color: #fff; border-bottom-right-radius: 5px;
}
.ph-bub b { font-weight: 700; }
.ph-bub .sm { display: block; font-size: 12px; opacity: .8; margin-top: 2px; }
.ph-stamp { font-size: 10.5px; color: rgba(190,225,250,.5); padding: 0 6px; }
.ph-daybreak {
  align-self: center; margin: 6px 0;
  font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase;
  color: rgba(180,215,245,.55);
}

/* ---------- gallery ---------- */
.ph-gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 10px; }
.ph-shot {
  position: relative; background: #0d2438; border: 0; padding: 0;
  border-radius: 8px; overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 3px 10px rgba(0,0,0,.4);
}
.ph-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.ph-shot .noimg {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(160deg, #16405f, #0e2a41);
}
.ph-shot .noimg svg { width: 34px; height: 34px; opacity: .7; }
.ph-shot .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 7px 6px;
  background: linear-gradient(180deg, transparent, rgba(4,14,24,.92));
  font-size: 10.5px; line-height: 1.25; color: #eaf4ff; text-align: left;
}
.ph-lightbox { padding: 12px; }
.ph-lightbox img {
  width: 100%; height: auto; display: block; border-radius: 6px;
  background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.5);
}
.ph-lightbox .meta { margin-top: 12px; font-size: 12.5px; color: rgba(205,230,250,.8); line-height: 1.55; }
.ph-lightbox h2 { margin: 0 0 4px; font-size: 17px; }

/* ---------- generic prose page ---------- */
.ph-page { padding: 16px 16px 26px; font-size: 14px; line-height: 1.62; color: #dfeefb; }
.ph-page h2 { margin: 20px 0 8px; font-size: 12px; letter-spacing: 1.1px; text-transform: uppercase; color: #8fd0f5; }
.ph-page h2:first-child { margin-top: 0; }
.ph-page h3 { margin: 16px 0 2px; font-size: 14.5px; color: #fff; }
.ph-page p { margin: 0 0 12px; }
.ph-page ul { margin: 6px 0 12px; padding-left: 19px; }
.ph-page li { margin-bottom: 6px; }
.ph-page .dim { color: rgba(195,225,248,.68); font-size: 12.5px; }
.ph-page .chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.ph-page .chip {
  background: rgba(120,190,245,.16); border: 1px solid rgba(150,210,250,.32);
  color: #d6ecfb; font-size: 11.5px; padding: 3px 9px; border-radius: 11px;
}
.ph-hero {
  padding: 20px 16px 18px;
  background: linear-gradient(150deg, #1b5688, #0d2c47 72%);
  border-bottom: 1px solid rgba(150,205,245,.24);
}
.ph-hero h1 { margin: 0; font-size: 22px; font-weight: 300; }
.ph-hero .role { margin-top: 3px; font-size: 13px; color: rgba(215,238,255,.82); }
.ph-hero .tag { margin-top: 9px; font-size: 12.5px; color: rgba(205,232,252,.72); line-height: 1.5; }
.ph-hero .pip { display: inline-flex; align-items: center; gap: 6px; margin-top: 11px; font-size: 11.5px; color: #cdf5dc; }
.ph-hero .pip i { width: 8px; height: 8px; border-radius: 50%; background: #5ce08a; box-shadow: 0 0 8px #5ce08a; }

/* ---------- meters ---------- */
.ph-meter { padding: 11px 14px; border-bottom: 1px solid rgba(140,200,245,.14); }
.ph-meter .top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 600; }
.ph-meter .note { font-size: 11.5px; color: rgba(195,225,248,.62); margin-top: 1px; }
.ph-meter .bar {
  margin-top: 7px; height: 10px; border-radius: 5px;
  background: rgba(8,26,44,.8); border: 1px solid rgba(140,200,245,.28); overflow: hidden;
}
.ph-meter .bar i { display: block; height: 100%; background: linear-gradient(90deg, #3f9fd8, #7fe0c0); }
.ph-meter .bar.hot i { background: linear-gradient(90deg, #f0a03a, #ffd36a); }

/* ---------- form ---------- */
.ph-form { padding: 14px 14px 24px; }
.ph-form label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .7px;
  text-transform: uppercase; color: rgba(160,205,240,.72); margin: 14px 0 5px;
}
.ph-form label:first-child { margin-top: 0; }
.ph-form input, .ph-form textarea {
  width: 100%; padding: 11px 12px;
  border-radius: 9px; border: 1px solid rgba(150,205,245,.34);
  background: rgba(6,20,34,.7); color: #eaf4ff;
  font-size: 16px;                     /* 16px stops iOS zooming on focus */
  font-family: inherit;
}
.ph-form textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.ph-form input:focus, .ph-form textarea:focus {
  outline: none; border-color: #6fc4f5; box-shadow: 0 0 0 3px rgba(111,196,245,.25);
}
.ph-btn {
  width: 100%; margin-top: 16px; padding: 14px;
  border-radius: 11px; border: 1px solid rgba(160,215,250,.4);
  background: linear-gradient(180deg, #58a9e8, #2470ae);
  color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .3px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.35);
}
.ph-btn:active { filter: brightness(.9); }
.ph-btn.ghost { background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.05)); }
.ph-btn[disabled] { opacity: .55; }
.ph-btn svg { width: 17px; height: 17px; }
.ph-status-msg { margin-top: 12px; font-size: 13px; line-height: 1.5; text-align: center; min-height: 20px; }
.ph-status-msg.good { color: #8fe6b4; }
.ph-status-msg.bad  { color: #ffb3a4; }
.ph-fallback {
  margin-top: 18px; padding: 14px;
  border-radius: 11px; border: 1px solid rgba(150,205,245,.28);
  background: rgba(10,30,50,.6);
}
.ph-fallback .ft { font-size: 13.5px; font-weight: 700; margin-bottom: 5px; }
.ph-fallback p { margin: 0; font-size: 12.5px; line-height: 1.55; color: rgba(205,232,252,.8); }

/* ---------- boot ---------- */
#ph-boot {
  position: absolute; inset: 0; z-index: 40;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: radial-gradient(120% 80% at 50% 30%, #123a5e, #04101c 70%);
  transition: opacity .5s ease;
}
#ph-boot.gone { opacity: 0; pointer-events: none; }
#ph-boot .mark { width: 76px; height: 76px; }
#ph-boot h1 { margin: 0; font-size: 27px; font-weight: 300; letter-spacing: .5px; }
#ph-boot .ed { font-size: 10.5px; letter-spacing: 3px; text-transform: uppercase; color: rgba(200,230,250,.45); margin-top: 5px; }
#ph-boot .dots { display: flex; gap: 7px; margin-top: 4px; }
#ph-boot .dots i {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(160,215,250,.35);
  animation: phDot 1.2s ease-in-out infinite;
}
#ph-boot .dots i:nth-child(2) { animation-delay: .15s; }
#ph-boot .dots i:nth-child(3) { animation-delay: .3s; }
#ph-boot .dots i:nth-child(4) { animation-delay: .45s; }
@keyframes phDot { 0%,100% { opacity:.3; transform:scale(.8);} 50% { opacity:1; transform:scale(1.15); background:#9fe0ff; } }
#ph-boot .note { position: absolute; bottom: 34px; font-size: 11px; color: rgba(190,225,250,.4); }

/* ---------- snake ---------- */
.ph-snake { display: flex; flex-direction: column; height: 100%; }
.ph-snake-top {
  display: flex; justify-content: space-between; padding: 9px 14px;
  font-size: 13px; font-variant-numeric: tabular-nums;
  border-bottom: 1px solid rgba(140,200,245,.16);
}
.ph-snake-stage { flex: 1 1 auto; min-height: 0; display: grid; place-items: center; padding: 8px; }
.ph-snake canvas {
  background: #9bb02a; border: 3px solid #2b3a10; border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0,0,0,.45); touch-action: none;
  max-width: 100%; max-height: 100%;
}
.ph-dpad {
  flex: 0 0 auto; padding: 8px 0 14px;
  display: grid; grid-template-columns: repeat(3, 58px); grid-template-rows: repeat(3, 46px);
  justify-content: center; gap: 6px;
}
.ph-dpad button {
  border-radius: 10px; border: 1px solid rgba(160,215,250,.34);
  background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.05));
  color: #dff0ff; font-size: 17px; display: grid; place-items: center;
}
.ph-dpad button:active { background: rgba(120,190,245,.35); }
.ph-dpad .u { grid-area: 1 / 2; } .ph-dpad .l { grid-area: 2 / 1; }
.ph-dpad .r { grid-area: 2 / 3; } .ph-dpad .d { grid-area: 3 / 2; }
.ph-dpad .c { grid-area: 2 / 2; font-size: 11px; font-weight: 700; }

/* ---------- misc ---------- */
.ph-empty { padding: 40px 24px; text-align: center; color: rgba(195,225,248,.6); font-size: 13px; }
.ph-empty svg { width: 46px; height: 46px; opacity: .5; margin-bottom: 10px; }
.ph-note {
  margin: 16px 14px; padding: 12px 14px;
  border-left: 3px solid #4f9fd8; border-radius: 0 8px 8px 0;
  background: rgba(30,80,125,.3);
  font-size: 12.5px; line-height: 1.55; color: rgba(210,235,252,.85);
}

@media (prefers-reduced-motion: reduce) {
  .ph-view.slide-in { animation: none; }
  #ph-boot .dots i { animation: none; opacity: .7; }
}

/* ==========================================================================
   Off the clock — Photos, Games, Watching, My PC, Guestbook

   New classes in this file must keep the `ph-` prefix. vista.css is loaded
   on the phone too, and a bare name like .tile or .card picks up its rules.
   ========================================================================== */

/* ---------- photo albums ---------- */
.ph-albums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; padding: 4px 10px 6px; }
.ph-alb {
  position: relative; display: block; padding: 0; border: 0;
  border-radius: 9px; overflow: hidden; background: #0d2438;
  box-shadow: 0 3px 10px rgba(0,0,0,.4); text-align: left;
}
.ph-alb .art { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.ph-alb .art svg { display: block; width: 100%; height: 100%; }
.ph-alb .nm {
  position: absolute; left: 9px; right: 9px; bottom: 19px;
  font-size: 14px; font-weight: 600; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
.ph-alb .ct {
  position: absolute; left: 9px; bottom: 5px;
  font-size: 10.5px; color: rgba(225,240,252,.8); text-shadow: 0 1px 3px rgba(0,0,0,.8);
}

/* a drawn stand-in inside a certificate-sized tile */
.ph-shot .ph-drawn { display: block; width: 100%; height: 100%; }
.ph-shot .ph-drawn svg { display: block; width: 100%; height: 100%; }
.ph-drawnbig {
  position: relative; display: block; border-radius: 6px; overflow: hidden;
  aspect-ratio: 4 / 3; box-shadow: 0 6px 20px rgba(0,0,0,.5);
}
.ph-drawnbig svg { display: block; width: 100%; height: 100%; }
.ph-drawnbig .tag {
  position: absolute; left: 50%; bottom: 9px; transform: translateX(-50%);
  padding: 3px 9px; border-radius: 10px;
  background: rgba(6,14,22,.72); border: 1px solid rgba(255,255,255,.22);
  font-size: 10px; color: #dceaf5; white-space: nowrap;
}

/* ---------- games and watching ---------- */
.ph-shelf { padding: 2px 0 6px; }
.ph-gcard {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 11px 14px; border-bottom: 1px solid rgba(140,200,245,.14);
}
.ph-gcard .art {
  flex: 0 0 auto; width: 58px; aspect-ratio: 3 / 4;
  border-radius: 4px; overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,.45);
}
.ph-gcard .art svg,
.ph-gcard .art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-gcard .mt {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 3px;
  font-size: 12px; color: rgba(200,228,250,.7);
}
.ph-gcard .mt b { font-size: 14px; color: #8fd0f5; font-variant-numeric: tabular-nums; }
.ph-gcard .mt .pl { font-size: 11px; color: rgba(185,215,240,.6); }
.ph-gcard .mt .gold {
  font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 8px;
  background: rgba(240,200,90,.2); border: 1px solid rgba(240,200,90,.5); color: #ffdf94;
}
.ph-gcard .ach { display: flex; align-items: center; gap: 7px; margin-top: 5px; font-size: 11px; color: rgba(190,220,245,.6); }
.ph-gcard .ach .bar {
  flex: 1 1 auto; max-width: 120px; height: 5px; border-radius: 3px;
  background: rgba(8,26,44,.8); border: 1px solid rgba(140,200,245,.28); overflow: hidden;
}
.ph-gcard .ach .bar i { display: block; height: 100%; background: linear-gradient(90deg, #4f9f6a, #8fd9a4); }

/* the three-up totals strip above the library */
.ph-tally {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(140,200,245,.16);
  border-bottom: 1px solid rgba(140,200,245,.16);
}
.ph-tally div {
  background: rgba(10,32,50,.75); padding: 12px 6px; text-align: center;
}
.ph-tally b { display: block; font-size: 19px; color: #fff; font-variant-numeric: tabular-nums; }
.ph-tally span { display: block; font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase; color: rgba(170,210,240,.6); margin-top: 2px; }
.ph-gcard .txt { min-width: 0; }
.ph-gcard .nm { font-size: 14px; font-weight: 600; color: #fff; line-height: 1.25; }
.ph-gcard .tg { font-size: 11.5px; color: #8fd0f5; margin-top: 1px; }
.ph-gcard .nt { font-size: 12.5px; color: rgba(205,232,252,.74); line-height: 1.5; margin-top: 4px; }

/* ---------- spec sheet ---------- */
.ph-specs { padding: 2px 0 4px; }
.ph-specs .row {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 8px 14px; border-bottom: 1px solid rgba(140,200,245,.12);
}
.ph-specs .k { flex: 0 0 auto; font-size: 12.5px; color: rgba(195,225,248,.66); }
.ph-specs .v { text-align: right; font-size: 13px; color: #eaf6ff; }

/* ---------- guestbook ---------- */
.ph-entries { padding: 2px 14px 4px; }
.ph-entry {
  padding: 10px 12px; margin-bottom: 8px; border-radius: 7px;
  background: rgba(10,32,50,.7);
  border: 1px solid rgba(140,200,245,.18);
  border-left: 3px solid #4aa8de;
}
.ph-entry .mt { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: rgba(195,225,248,.6); }
.ph-entry .mt b { color: #cfeaff; font-size: 12.5px; }
.ph-entry .tx { font-size: 13px; line-height: 1.5; color: #dfeefb; margin-top: 3px; overflow-wrap: anywhere; }
