/* Jimbo Holo (Holo Posts, Holo calls, Living Profiles) and the Digital Twin Garage */

/* ---------- Holo Posts ---------- */
.ho-box { position: relative; overflow: hidden; isolation: isolate; }
.ho-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; pointer-events: none; }
.ho-box.ho-live { touch-action: pan-y; }
.ho-tag { position: absolute; left: .6rem; top: .6rem; z-index: 3; display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .55rem .3rem .4rem; border-radius: 999px;
  background: rgb(10 12 16 / .62); color: #fff; font: 700 .74rem/1 var(--font-body); letter-spacing: .02em; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .14), 0 0 18px rgb(120 210 255 / .25); pointer-events: none; }
.ho-tag .js-i { width: 15px; height: 15px; color: #8fe3ff; }
.ho-tag small { font-weight: 600; opacity: .7; font-size: .68rem; }
.ho-box.ho-live .ho-tag { animation: hoPulse 3.6s ease-in-out infinite; }
@keyframes hoPulse { 50% { box-shadow: 0 0 0 1px rgb(255 255 255 / .22), 0 0 26px rgb(120 210 255 / .45); } }
.ho-tiltbtn { position: absolute; right: .6rem; bottom: .6rem; z-index: 3; display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: .45rem .8rem; border-radius: 999px; border: 0;
  background: rgb(10 12 16 / .7); color: #fff; font: 700 .8rem/1 var(--font-body); cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ho-tiltbtn .js-i { width: 16px; height: 16px; }

/* composer */
.ho-comp { margin: .4rem 0 .2rem; display: grid; gap: .5rem; }
.ho-comp__b { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; padding: .7rem .85rem; border-radius: 12px;
  border: 1px solid var(--js-line); background: linear-gradient(120deg, color-mix(in oklab, #4cc9f0 10%, var(--js-card)), var(--js-card) 60%); min-height: 44px; }
.ho-comp__b:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.ho-comp__b > .js-i { width: 22px; height: 22px; color: #0ea5c6; }
.ho-comp__b b { display: block; font-size: .95rem; }
.ho-comp__b small { display: block; color: var(--js-mut); font-size: .8rem; line-height: 1.35; }
.ho-sw { width: 38px; height: 22px; border-radius: 999px; background: var(--color-surface-2); box-shadow: inset 0 0 0 1px var(--js-line); position: relative; transition: background .2s; }
.ho-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .2s; }
.ho-comp__b[aria-pressed="true"] .ho-sw { background: var(--amber); }
.ho-comp__b[aria-pressed="true"] .ho-sw::after { transform: translateX(16px); }
.ho-comp__o small { display: flex; gap: .35rem; align-items: flex-start; color: var(--js-mut); font-size: .8rem; line-height: 1.4; }
.ho-comp__o small .js-i { width: 15px; height: 15px; flex: none; color: #0ea5c6; margin-top: .1rem; }
.ho-prog { height: 6px; border-radius: 99px; background: var(--color-surface-2); overflow: hidden; margin-bottom: .35rem; }
.ho-prog i { display: block; height: 100%; background: linear-gradient(90deg, #4cc9f0, var(--amber)); transition: width .3s; }
.ho-prev { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; max-height: 260px; background: #0b0d12; touch-action: none; cursor: grab; margin-bottom: .35rem; }
.ho-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Holo calls ---------- */
.ho-callcv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; touch-action: none; }
.ho-call video { visibility: hidden; }
.ho-call .jc2-ink { z-index: 2; }
.ho-chip { position: absolute; left: 50%; top: .75rem; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem .35rem .5rem; border-radius: 999px;
  background: rgb(6 10 16 / .66); color: #e8f7ff; font: 700 .76rem/1.2 var(--font-body, system-ui); box-shadow: 0 0 0 1px rgb(143 227 255 / .3), 0 0 22px rgb(120 210 255 / .3); white-space: nowrap; max-width: calc(100% - 1.5rem); overflow: hidden; text-overflow: ellipsis;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none; }
.ho-chip svg { width: 15px; height: 15px; color: #8fe3ff; flex: none; }
.ho-chip small { font-weight: 600; opacity: .8; }

/* ---------- Living Profiles ---------- */
.js-prof__cover { overflow: hidden; }
.lv-sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; mix-blend-mode: soft-light; opacity: 1; }
.js-prof__cover.js-cv--img .lv-sky, .js-prof__cover.lv-on .lv-sky { mix-blend-mode: normal; opacity: .62; }
.lv-chip { position: absolute; right: .7rem; bottom: .6rem; z-index: 2; padding: .28rem .6rem; border-radius: 999px; background: rgb(10 12 16 / .55); color: #fff; font: 700 .72rem/1.2 var(--font-body); letter-spacing: .02em;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none; }
.js-prof__cover .js-cv__edit { z-index: 3; }
.lv-card { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: center; padding: .85rem 1rem; margin: .9rem 0; border: 1px solid var(--js-line); border-radius: var(--js-r); background: var(--js-card); color: inherit; text-decoration: none; }
.lv-card__i { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #0ea5c6, #f5a623); }
.lv-card__i .js-i { width: 20px; height: 20px; }
.lv-card b { display: block; } .lv-card b em { font-style: normal; font-size: .72rem; color: var(--dl-ok, #16a34a); margin-left: .35rem; text-transform: uppercase; letter-spacing: .06em; }
.lv-card small { display: block; color: var(--js-mut); font-size: .84rem; line-height: 1.4; }
@media (max-width: 520px) { .lv-card { grid-template-columns: auto 1fr; } .lv-card > .btn { grid-column: 1 / -1; justify-self: start; } }
.lv-route path { fill: none; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.lv-route__glow { stroke: rgb(245 166 35 / .35); stroke-width: 9; filter: blur(3px); }
.lv-route__line { stroke: var(--amber); stroke-width: 3; }
.lv-route__rig { fill: #fff; stroke: var(--amber); stroke-width: 3; filter: drop-shadow(0 0 6px rgb(245 166 35 / .9)); }

/* ---------- Digital Twin Garage ---------- */
.gx { display: grid; gap: 1rem; }
.gx-hero { position: relative; overflow: hidden; border-radius: 18px; padding: 1.6rem 1.4rem; color: #f4f6fb; background: radial-gradient(120% 120% at 85% 0, rgb(14 165 198 / .4), transparent 55%), linear-gradient(150deg, #0b0f17, #161b26); }
.gx-hero h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: .3rem 0 .5rem; color: #fff; }
.gx-hero p { color: rgb(244 246 251 / .78); max-width: 46ch; margin: 0 0 1rem; line-height: 1.5; }
.gx-hero .js-eyebrow { color: #8fe3ff; }
.gx-hero__fx { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgb(143 227 255 / .07) 1px, transparent 1px), linear-gradient(90deg, rgb(143 227 255 / .07) 1px, transparent 1px); background-size: 28px 28px;
  mask-image: linear-gradient(200deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(200deg, #000, transparent 70%); }
.gx-hero > *:not(.gx-hero__fx) { position: relative; }
.gx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.gx-grid--sm { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.gx-card { display: grid; border: 1px solid var(--js-line); border-radius: 14px; overflow: hidden; background: var(--js-card); color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.gx-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgb(0 0 0 / .12); }
.gx-card__b { padding: .7rem .85rem .85rem; display: grid; gap: .2rem; }
.gx-card__b small { color: var(--js-mut); font-size: .82rem; }
.gx-face { display: block; aspect-ratio: 16 / 10; background: #0b0f17 center / cover no-repeat; position: relative; }
.gx-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gx-face--none { display: grid; place-items: center; color: rgb(143 227 255 / .6); background: radial-gradient(circle at 50% 40%, #1b2433, #0b0f17); }
.gx-face--none .js-i { width: 40px; height: 40px; }
.gx-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem; }
.gx-tag { font-style: normal; display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 700; padding: .2rem .5rem; border-radius: 999px; background: var(--color-surface-2); color: var(--color-text); }
.gx-tag .js-i { width: 13px; height: 13px; }
.gx-tag--3d { background: color-mix(in oklab, #0ea5c6 18%, var(--js-card)); color: #0b7891; }
.gx-empty { padding: 1.2rem; border: 1px dashed var(--js-line); border-radius: 14px; color: var(--js-mut); }
.gx-back { display: inline-flex; align-items: center; gap: .3rem; width: max-content; }
.gx-back .js-i { width: 16px; height: 16px; }
.gx-stage { position: relative; border-radius: 18px; overflow: hidden; background: #070a10; aspect-ratio: 16 / 9; display: grid; place-items: center; isolation: isolate; }
.gx-stage .gx-face--big { position: absolute; inset: 0; aspect-ratio: auto; z-index: 1; }
.gx-stage__grid { position: absolute; inset: 55% -20% -10%; z-index: 2; pointer-events: none; transform: perspective(380px) rotateX(62deg); transform-origin: top;
  background-image: linear-gradient(rgb(245 166 35 / .35) 1px, transparent 1px), linear-gradient(90deg, rgb(245 166 35 / .35) 1px, transparent 1px); background-size: 40px 40px;
  mask-image: linear-gradient(#000, transparent 85%); -webkit-mask-image: linear-gradient(#000, transparent 85%); opacity: .55; }
.gx-stage__scan { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, transparent 0, rgb(143 227 255 / .14) 48%, transparent 52%); background-size: 100% 300%; animation: gxScan 5.5s linear infinite; mix-blend-mode: screen; }
@keyframes gxScan { from { background-position: 0 100%; } to { background-position: 0 -200%; } }
.gx-stage__hud { position: absolute; left: .75rem; top: .75rem; z-index: 3; display: flex; flex-wrap: wrap; gap: .35rem; }
.gx-hud { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .6rem; border-radius: 999px; background: rgb(6 10 16 / .66); color: #e8f7ff; font: 700 .74rem/1.2 var(--font-body); box-shadow: 0 0 0 1px rgb(143 227 255 / .25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.gx-hud .js-i { width: 14px; height: 14px; color: #8fe3ff; }
.gx-stage__go { position: absolute; z-index: 3; bottom: 1rem; left: 50%; transform: translateX(-50%); box-shadow: 0 8px 30px rgb(245 166 35 / .45); }
.gx-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; align-items: flex-end; }
.gx-head h1 { margin: 0; font-size: clamp(1.4rem, 3.5vw, 1.9rem); }
.gx-head p { margin: .15rem 0 0; color: var(--js-mut); }
.gx-head__a { display: flex; flex-wrap: wrap; gap: .5rem; }
.gx-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.gx-stats > div { padding: .7rem .8rem; border: 1px solid var(--js-line); border-radius: 12px; background: var(--js-card); }
.gx-stats b { display: block; font-size: 1.02rem; } .gx-stats small { color: var(--js-mut); font-size: .76rem; }
@media (max-width: 560px) { .gx-stats { grid-template-columns: repeat(2, 1fr); } }
.gx-add { display: grid; gap: .5rem; padding: .85rem; border: 1px solid var(--js-line); border-radius: 14px; background: var(--js-card); }
.gx-add__k { display: flex; flex-wrap: wrap; gap: .4rem; }
.gx-add__k button { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--js-line); background: var(--color-surface-2); color: var(--color-text); font: 700 .84rem/1 var(--font-body); cursor: pointer; }
.gx-add__k button:hover { border-color: var(--amber); }
.gx-add__k .js-i { width: 16px; height: 16px; }
.gx-time { list-style: none; margin: 0; padding: 0 0 0 .4rem; display: grid; gap: .2rem; position: relative; }
.gx-time::before { content: ''; position: absolute; left: 1.3rem; top: .6rem; bottom: .6rem; width: 2px; background: linear-gradient(var(--amber), #0ea5c6); opacity: .45; }
.gx-time__empty { color: var(--js-mut); padding: .6rem 0 .6rem 2.6rem; }
.gx-ev { display: grid; grid-template-columns: 2rem 1fr; gap: .7rem; padding: .5rem 0; position: relative; }
.gx-ev__dot { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--js-card); border: 2px solid var(--amber); color: var(--amber); z-index: 1; }
.gx-ev--pickup .gx-ev__dot, .gx-ev--delivery .gx-ev__dot, .gx-ev--inspect .gx-ev__dot { border-color: #0ea5c6; color: #0ea5c6; }
.gx-ev__dot .js-i { width: 15px; height: 15px; }
.gx-ev__b { padding: .65rem .85rem; border: 1px solid var(--js-line); border-radius: 12px; background: var(--js-card); display: grid; gap: .3rem; }
.gx-ev__b p { margin: 0; line-height: 1.45; }
.gx-ev__h { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.gx-ev__h time { color: var(--js-mut); font-size: .82rem; }
.gx-ev__m { color: var(--js-mut); font-size: .82rem; }
.gx-ev__ph { display: flex; gap: .35rem; flex-wrap: wrap; }
.gx-ev__ph img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; display: block; }
.gx-ev__a { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.gx-form { display: grid; gap: .7rem; }
.gx-form .mk-f { display: grid; gap: .3rem; flex: 1 1 140px; font-weight: 700; font-size: .86rem; }
.gx-form .mk-f small { font-weight: 500; color: var(--js-mut); }
.gx-form input:not([type=checkbox]):not([type=file]), .gx-form select, .gx-form textarea { width: 100%; box-sizing: border-box; min-height: 44px; padding: .55rem .7rem; border: 1px solid var(--js-line); border-radius: 10px; background: var(--color-surface-2); color: var(--color-text); font: 500 1rem/1.3 var(--font-body); }
.gx-form textarea { min-height: 84px; resize: vertical; }
.gx-form .mk-row { align-items: stretch; }
.gx-thumbs { display: flex; gap: .35rem; flex-wrap: wrap; } .gx-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.gx-cond { display: grid; gap: .35rem; padding: .75rem; border-radius: 12px; background: color-mix(in oklab, #0ea5c6 9%, var(--js-card)); border: 1px solid color-mix(in oklab, #0ea5c6 30%, var(--js-line)); }
.gx-cond b { display: inline-flex; align-items: center; gap: .35rem; } .gx-cond b .js-i { width: 16px; height: 16px; color: #0ea5c6; }
.gx-cond small { color: var(--js-mut); } .gx-cond .btn { justify-self: start; }
.gx-prof { margin-top: .6rem; }
.gx-prof .js-sech { display: flex; align-items: center; gap: .4rem; } .gx-prof .js-sech .js-i { width: 18px; height: 18px; color: #0ea5c6; }

@media (prefers-reduced-motion: reduce) {
  .ho-box.ho-live .ho-tag, .gx-stage__scan { animation: none; }
  .gx-card, .ho-sw::after { transition: none; }
}

/* Garage Talk: builds open for discussion and help requests */
.gx-hero .mk-row { gap: .6rem; }
.gx-hero__ask { display: inline-flex; align-items: center; gap: .4rem; color: #fff; border: 1px solid rgb(255 255 255 / .35); background: rgb(255 255 255 / .06); }
.gx-hero__ask:hover { border-color: #8fe3ff; background: rgb(143 227 255 / .12); }
.gx-hero__ask .js-i { width: 18px; height: 18px; }
.gx-askcard { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: center; padding: .85rem 1rem; border-radius: 14px; border: 1px solid color-mix(in oklab, var(--amber) 40%, var(--js-line));
  background: linear-gradient(120deg, color-mix(in oklab, var(--amber) 12%, var(--js-card)), var(--js-card) 70%); }
.gx-askcard b { display: block; } .gx-askcard small { display: block; color: var(--js-mut); font-size: .84rem; line-height: 1.4; }
@media (max-width: 520px) { .gx-askcard { grid-template-columns: auto 1fr; } .gx-askcard > .btn { grid-column: 1 / -1; justify-self: start; } }
.gx-talk { display: grid; gap: .5rem; margin-top: .6rem; }
.gx-talk__h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.gx-talk__h .js-sech { display: flex; align-items: center; gap: .4rem; margin: 0; } .gx-talk__h .js-sech .js-i { width: 20px; height: 20px; color: var(--amber); }
.gx-talk__sub { margin: 0; }
.gx-talk__tabs { display: inline-flex; gap: .25rem; padding: .2rem; border-radius: 999px; background: var(--color-surface-2); }
.gx-talk__tabs button { min-height: 38px; padding: .4rem .85rem; border: 0; border-radius: 999px; background: transparent; color: var(--js-mut); font: 700 .84rem/1 var(--font-body); cursor: pointer; }
.gx-talk__tabs button[aria-selected="true"] { background: var(--js-card); color: var(--color-text); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.gx-talk__feed { display: grid; gap: .8rem; }
.gx-chip { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .55rem; margin: .1rem 0 .55rem; padding: .45rem .7rem; border-radius: 10px; text-decoration: none; color: var(--color-text);
  background: color-mix(in oklab, #0ea5c6 10%, var(--js-card)); border: 1px solid color-mix(in oklab, #0ea5c6 30%, var(--js-line)); font-size: .84rem; width: max-content; max-width: 100%; }
.gx-chip b { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #0b7891; }
.gx-chip b .js-i { width: 15px; height: 15px; }
.gx-chip span { color: var(--js-mut); }
.gx-chip--help { background: color-mix(in oklab, var(--amber) 12%, var(--js-card)); border-color: color-mix(in oklab, var(--amber) 40%, var(--js-line)); }
.gx-chip--help b { color: #9a5b00; }
.gx-chip--ok { background: color-mix(in oklab, var(--dl-ok, #16a34a) 12%, var(--js-card)); border-color: color-mix(in oklab, var(--dl-ok, #16a34a) 35%, var(--js-line)); }
.gx-chip--ok b { color: var(--dl-ok, #15803d); }
.gx-chip:hover { border-color: var(--amber); }
.gx-ev__talk { display: inline-flex; align-items: center; gap: .3rem; } .gx-ev__talk .js-i { width: 15px; height: 15px; }
.gx-sharechk { font-weight: 700; }
