/* The HIROS interface rebuilt in HTML: crisp at any size, phone layout via container queries.
   Animation primitives play only under .play; without it every element shows its final state. */
.app { container-type: inline-size; background: #fff; color: #1d1d1f; border-radius: clamp(14px, 2vw, 22px); overflow: hidden; text-align: left; letter-spacing: -.012em; isolation: isolate; }
.ai { position: relative; font-size: clamp(13.5px, 1.42cqw, 17px); line-height: 1.38; display: flex; flex-direction: column; min-height: 100%; }
.ap-nav { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: .95em 1.8em; border-bottom: 1px solid #ececf0; }
.ap-brand { font-weight: 700; font-size: 1.35em; letter-spacing: -.035em; }
.ap-tabs { display: flex; gap: 2em; color: #48484d; }
.ap-tabs .on { color: #0071e3; font-weight: 500; }
.ap-dot { display: inline-block; width: .45em; height: .45em; border-radius: 50%; background: #0071e3; vertical-align: top; margin-left: .2em; }
.ap-av { width: 2.4em; height: 2.4em; border-radius: 50%; background: #ececf0; display: grid; place-items: center; font-size: .82em; font-weight: 500; flex: none; }
.ap-body { padding: 1.6em 1.8em 2em; flex: 1; }
.ap-h { margin: 0; font-size: clamp(28px, 5.2cqw, 56px); font-weight: 700; letter-spacing: -.045em; line-height: 1.04; }
.ap-sub { margin: .35em 0 0; color: #6e6e73; }
.ap-top { display: flex; flex-direction: column; align-items: flex-start; gap: .75em; }
.ap-live { display: inline-flex; align-items: center; gap: .5em; padding: .45em .9em; border-radius: 2em; background: #f2f2f5; font-size: .88em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ap-live i { width: .55em; height: .55em; border-radius: 50%; background: #1fa553; box-shadow: 0 0 0 0 rgba(31,165,83,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 .55em rgba(31,165,83,0); } 100% { box-shadow: 0 0 0 0 rgba(31,165,83,0); } }
.ap-note { display: flex; align-items: center; justify-content: space-between; gap: 1em; margin-top: 1.4em; padding: 1em 1.3em; border-radius: 1em; background: #eef4ff; }
.ap-note b { display: block; font-weight: 600; }
.ap-note span { color: #5f6b7a; font-size: .9em; }
.ap-lnk { color: #0071e3; font-weight: 500; white-space: nowrap; }
.ap-sec { display: flex; align-items: center; justify-content: space-between; margin: 1.7em 0 .4em; }
.ap-sec h3 { margin: 0; font-size: 1.75em; font-weight: 650; letter-spacing: -.035em; }
.ap-ghost { border: 1.5px solid #d2d2d7; border-radius: 2em; padding: .5em 1.1em; font-size: .92em; white-space: nowrap; }
.ap-row { display: grid; grid-template-columns: 3em 1.3fr 1fr 1fr auto; gap: 1em; align-items: center; padding: .9em 0; border-top: 1px solid #ececf0; }
.ap-ic { width: 3em; height: 3em; border-radius: 50%; background: #ececf0; display: grid; place-items: center; font-size: .82em; font-weight: 600; flex: none; }
.ap-ic.b { background: #dfe9ff; color: #0071e3; }
.ap-row .n { font-weight: 500; }
.ap-row .r { color: #6e6e73; }
.ap-st { display: inline-flex; align-items: center; gap: .55em; color: #3a3a3e; white-space: nowrap; }
.ap-st i { width: .65em; height: .65em; border-radius: 50%; flex: none; }
.ap-btn { display: inline-block; background: #eef2fa; color: #0071e3; border-radius: 2em; padding: .55em 1.3em; font-weight: 500; text-align: center; white-space: nowrap; }
.ap-btn.solid { background: #0071e3; color: #fff; }
.ap-btn.grey { background: #f0f0f3; color: #3a3a3e; }
.ap-btn.ok { background: #1fa553; color: #fff; }
.spin { width: .9em; height: .9em; border-radius: 50%; border: 2px solid #d2d2d7; border-top-color: #0071e3; animation: sp 1s linear infinite; flex: none; }
@keyframes sp { to { transform: rotate(360deg); } }
.ap-tabbar { display: none; justify-content: space-around; padding: .6em 0 .8em; border-top: 1px solid #ececf0; color: #8e8e93; font-size: .76em; text-align: center; }
.ap-tabbar .on { color: #0071e3; font-weight: 600; }
.ap-tabbar svg { width: 1.9em; height: 1.9em; margin: 0 auto .15em; }

/* chat */
.msgs { display: grid; gap: .8em; margin-top: 1.4em; }
.msg { display: flex; gap: .7em; align-items: flex-end; }
.msg.me { justify-content: flex-end; }
.msg .bub { padding: .8em 1.15em; border-radius: 1.4em; background: #f0f0f3; max-width: 78%; }
.msg.me .bub { background: #0071e3; color: #fff; }
.msg .ap-ic { width: 2.5em; height: 2.5em; font-size: .78em; }
.typing { display: inline-flex; gap: .3em; padding: 1em 1.15em; border-radius: 1.4em; background: #f0f0f3; }
.typing i { width: .45em; height: .45em; border-radius: 50%; background: #8e8e93; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.proc { margin-top: 1.3em; border: 1px solid #e3e3e8; border-radius: 1.3em; padding: 1.3em 1.5em; box-shadow: 0 18px 44px rgba(0,0,0,.07); }
.proc small { color: #0071e3; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .7em; }
.proc h4 { margin: .2em 0 .6em; font-size: 1.55em; letter-spacing: -.035em; }
.proc ul { margin: 0; padding: 0; list-style: none; }
.proc li { display: flex; align-items: center; gap: .75em; padding: .32em 0; }
.ck { width: 1.45em; height: 1.45em; border-radius: 50%; background: #0071e3; color: #fff; display: grid; place-items: center; font-size: .75em; flex: none; }
.ck.g { background: #1fa553; }
.foot-act { display: flex; justify-content: flex-end; gap: .7em; margin-top: 1.1em; }

/* form */
.fld { margin-top: 1.1em; }
.fld small { display: block; color: #6e6e73; margin-bottom: .35em; font-size: .88em; }
.fld .in { border: 1.5px solid #d2d2d7; border-radius: .9em; padding: .8em 1em; font-size: 1.06em; min-height: 2.9em; }
.chips { display: flex; flex-wrap: wrap; gap: .6em; }
.chip { display: inline-flex; align-items: center; gap: .55em; padding: .35em .95em .35em .4em; border-radius: 2em; background: #f2f2f5; font-weight: 500; }
.chip svg, .lg { width: 1.7em; height: 1.7em; flex: none; }
.toast { display: flex; align-items: center; gap: .7em; margin-top: 1.2em; padding: .9em 1.2em; border-radius: 1.1em; background: #e9f8ef; color: #136b39; font-weight: 600; }

/* settings list (iOS grouped style) */
.set { border-radius: 1.1em; background: #f2f2f7; padding: .3em 0; }
.set + .set { margin-top: 1em; }
.set-row { display: flex; align-items: center; gap: .9em; padding: .75em 1.1em; min-height: 3.3em; }
.set-row { position: relative; }
.set-row + .set-row::before { content: ""; position: absolute; top: 0; left: 3.7em; right: 0; border-top: 1px solid #e3e3e8; }
.set-row .lab { flex: 1; min-width: 0; }
.set-row > .lg { width: 1.75em; height: 1.75em; }
.set-row .lab small { display: block; color: #6e6e73; font-size: .82em; }
.set-row .ico { width: 2em; height: 2em; border-radius: .5em; display: grid; place-items: center; flex: none; color: #fff; }
.set-row .ico svg { width: 1.2em; height: 1.2em; }
.val { color: #6e6e73; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* iOS switch */
.sw { position: relative; width: 3.2em; height: 1.95em; border-radius: 1em; border: 0; padding: 0; background: #e3e3e8; cursor: pointer; flex: none; transition: background .25s; }
.sw::after { content: ""; position: absolute; top: .15em; left: .15em; width: 1.65em; height: 1.65em; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.22); transition: transform .3s var(--ease); }
.sw[aria-checked="true"] { background: #34c759; }
.sw[aria-checked="true"]::after { transform: translateX(1.25em); }

/* segmented control */
.seg { display: inline-flex; position: relative; padding: 3px; border-radius: 980px; background: var(--chip); gap: 0; }
.seg button { position: relative; z-index: 1; border: 0; background: none; padding: 8px 18px; border-radius: 980px; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--fg); white-space: nowrap; transition: color .25s; }
.seg button[aria-selected="true"] { color: var(--fg); }
.seg .thumb { position: absolute; top: 3px; bottom: 3px; left: 0; border-radius: 980px; background: var(--tile); box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04); transition: transform .45s var(--ease), width .45s var(--ease); }
.k .seg { background: #2c2c2e; }
.k .seg button { color: #f5f5f7; }
.k .seg .thumb { background: #636366; }

/* range */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--fill, #0071e3) var(--p, 50%), #d2d2d7 var(--p, 50%)); outline-offset: 6px; cursor: pointer; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3), 0 0 0 .5px rgba(0,0,0,.08); }
.range::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); }

/* status pills */
.pl { display: inline-flex; align-items: center; gap: .4em; padding: .28em .8em; border-radius: 2em; font-size: .82em; font-weight: 600; white-space: nowrap; }
.pl.w { background: #fff2df; color: #a34a00; }
.pl.b { background: #e8f0ff; color: #0060c7; }
.pl.g { background: #e5f6ec; color: #13703b; }
.pl.x { background: #f0f0f3; color: #6e6e73; }

/* retro desktop software */
.win98 { background: #c0c0c0; box-shadow: inset -2px -2px #404040, inset 2px 2px #fff, inset -4px -4px #808080, inset 4px 4px #dfdfdf; padding: 4px; color: #000; font: 13px/1.35 Tahoma, "Liberation Sans", Arial, sans-serif; letter-spacing: 0; text-align: left; }
.win98 .tb { display: flex; justify-content: space-between; background: linear-gradient(90deg, #000080, #1084d0); color: #fff; font-weight: 700; padding: 3px 6px; }
.win98 .tb span:last-child { background: #c0c0c0; color: #000; padding: 0 5px; box-shadow: inset -1px -1px #404040, inset 1px 1px #fff; font-weight: 400; }
.win98 .bd { padding: 10px; display: grid; gap: 8px; }
.win98 .bar { display: flex; gap: 8px; align-items: center; }
.win98 .field { flex: 1; background: #fff; box-shadow: inset 1px 1px #808080, inset 2px 2px #404040; padding: 3px 6px; min-height: 24px; }
.win98 .b98 { padding: 3px 12px; box-shadow: inset -1px -1px #404040, inset 1px 1px #fff, inset -2px -2px #808080; white-space: nowrap; }
.win98 .list { background: #fff; box-shadow: inset 1px 1px #808080, inset 2px 2px #404040; }
.win98 .list div { display: grid; grid-template-columns: 3.6em 1fr 5.5em; gap: 6px; padding: 3px 6px; }
.win98 .list .hd { background: #c0c0c0; font-weight: 700; box-shadow: inset -1px -1px #808080; }
.win98 .prog { height: 18px; background: #fff; box-shadow: inset 1px 1px #808080; padding: 2px; }
.win98 .prog i { display: block; height: 100%; width: 100%; background: repeating-linear-gradient(90deg, #000080 0 10px, transparent 10px 12px); }

/* mouse pointer with the employee's name */
.ptr { position: absolute; z-index: 5; width: 0; height: 0; pointer-events: none; }
.ptr svg { position: absolute; left: -3px; top: -2px; width: 22px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.ptr b { position: absolute; left: 16px; top: 18px; padding: 3px 9px; border-radius: 9px; background: #0071e3; color: #fff; font: 600 11px/1.3 var(--font); white-space: nowrap; letter-spacing: 0; }

/* animation primitives */
.play .an { animation: anIn .6s var(--ease) var(--d, 0s) both; }
.play .an-pop { animation: anPop .5s var(--ease) var(--d, 0s) both; }
.play .an-type { animation: anType var(--t, 1.2s) steps(28, end) var(--d, 0s) both; }
.play .an-press { animation: anPress .32s ease var(--d, 0s) both; }
.swap { display: inline-grid; }
.swap > * { grid-area: 1 / 1; }
.swap > .an-out { visibility: hidden; }
.play .swap > .an-out { visibility: visible; animation: anOut .3s ease var(--d, 0s) both; }
.play .swap > .an-in { animation: anIn .45s var(--ease) var(--d, 0s) both; }
@keyframes anIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes anPop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes anType { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes anPress { 50% { transform: scale(.92); } }
@keyframes anOut { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }

/* phone layout of the interface */
@container (max-width: 640px) {
  .ap-tabs { display: none; }
  .ap-tabbar { display: flex; }
  .ap-nav { padding: .85em 1.15em; }
  .ap-body { padding: 1.25em 1.15em 1.5em; }
  .ap-row { grid-template-columns: 2.8em 1fr auto; gap: .75em; }
  .ap-row .r, .ap-row > .ap-btn { display: none; }
  .ap-note { flex-direction: column; align-items: flex-start; gap: .4em; }
  .ap-h { font-size: clamp(28px, 9.5cqw, 42px); }
  .msg .bub { max-width: 86%; }
}
