/* The employee's phone page (voipa.personal.…). One column, big touch targets, bottom tabs. */

.staff-app { max-width: 520px; margin: 0 auto; min-height: 100dvh; padding: 0 16px calc(84px + env(safe-area-inset-bottom)); }
.st-top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 0 10px; background: linear-gradient(180deg, var(--bg) 70%, rgb(11 12 17 / 0));
}
.st-top .brand-hex { color: var(--mint); }
.st-top .code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-sync { font-size: 10px; }
.st-main.enter { animation: enter .22s var(--ease); }
.st-stack { display: grid; gap: 12px; padding-top: 4px; }

.st-card {
  position: relative; display: grid; gap: 12px; padding: 18px 16px;
  background: linear-gradient(160deg, rgb(183 168 224 / .08), var(--panel) 60%);
  border: 1px solid var(--line-hi);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  animation: boot .35s var(--ease);
}
.st-card h2 { font-size: 20px; font-weight: 600; }
.st-card.live { background: linear-gradient(160deg, rgb(159 216 203 / .12), var(--panel) 65%); border-color: rgb(159 216 203 / .45); box-shadow: 0 0 30px rgb(159 216 203 / .08); }
.st-card.cleared { justify-items: center; text-align: center; background: linear-gradient(160deg, rgb(184 207 160 / .14), var(--panel) 70%); border-color: rgb(184 207 160 / .45); }
.st-hex {
  width: 72px; height: 72px; display: grid; place-items: center; font-size: 30px; color: var(--sage);
  background: rgb(184 207 160 / .12); border: 1px solid var(--sage);
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
  box-shadow: 0 0 26px rgb(184 207 160 / .3);
  animation: cleared .6s var(--ease);
}
@keyframes cleared { 0% { transform: scale(.4) rotate(-30deg); opacity: 0; } 70% { transform: scale(1.1); opacity: 1; } 100% { transform: none; } }

.st-live-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.st-timer { font-size: 46px; font-weight: 500; letter-spacing: .02em; line-height: 1; text-shadow: 0 0 22px rgb(159 216 203 / .25); }
.st-earned-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.st-earned { font-size: 24px; color: var(--mint); font-weight: 500; }

.st-place { display: grid; gap: 3px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.st-attraction { font-size: 17px; }
.st-address { color: var(--lavender); font-size: 13px; text-decoration: none; }
.st-plan-line { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }

.st-big { width: 100%; height: 64px; justify-content: center; font-size: 17px; font-weight: 600; }
.st-big:disabled { opacity: .45; }
.st-big-icon { font-size: 14px; margin-right: 6px; }

.st-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.st-kpis.inline { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: left; }
.st-kpis > div {
  display: grid; gap: 3px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.st-kpis strong { font-size: 19px; font-weight: 500; }
.st-kpis small { font-size: 11px; }

.st-block {
  display: grid; gap: 10px; padding: 14px; background: var(--panel); border: 1px solid var(--line);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.st-block-head { display: flex; align-items: center; justify-content: space-between; }
.st-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.st-quick-btn {
  display: grid; gap: 2px; place-items: center; height: 78px;
  background: linear-gradient(145deg, rgb(159 216 203 / .16), rgb(183 168 224 / .1));
  border: 1px solid rgb(159 216 203 / .5); color: var(--text);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
  transition: transform .08s var(--ease), box-shadow .15s;
}
.st-quick-btn b { font-size: 20px; font-weight: 500; }
.st-quick-btn small { font-size: 11px; color: var(--muted); }
.st-quick-btn:active { transform: scale(.96); }
.st-quick-btn.hit { animation: hit .35s var(--ease); }
@keyframes hit { 0% { box-shadow: 0 0 0 rgb(159 216 203 / 0); background-color: rgb(159 216 203 / .35); } 40% { box-shadow: 0 0 26px rgb(159 216 203 / .45); } 100% { box-shadow: 0 0 0 rgb(159 216 203 / 0); } }
.st-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st-row2 .btn { height: 46px; justify-content: center; font-size: 14px; }

.st-sky { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.st-sky-btn { display: grid; gap: 2px; place-items: center; height: 58px; border: 1px solid var(--line-hi); background: var(--inset); color: var(--muted); transition: border-color .15s, color .15s, box-shadow .15s; }
.st-sky-btn span { font-size: 20px; }
.st-sky-btn small { font-size: 10px; }
.st-sky-btn.on { border-color: var(--lavender); color: var(--text); box-shadow: 0 0 14px rgb(183 168 224 / .25); background: rgb(183 168 224 / .1); }
.st-temp-row { display: grid; grid-template-columns: 56px 1fr 56px; gap: 8px; align-items: center; }
.st-step { height: 44px; justify-content: center; font-size: 22px; }
.st-temp { text-align: center; font-size: 24px; font-weight: 500; }

.st-entries li { display: grid; grid-template-columns: 46px auto minmax(0, 1fr) 34px; gap: 4px 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.st-entries li:last-child { border-bottom: 0; }
.st-entries li small { grid-column: 2 / 4; }
.st-remove { width: 34px; height: 34px; }

.st-end { height: 52px; color: var(--peach); border-color: rgb(232 184 154 / .45); margin-bottom: 8px; }
.st-end.armed { background: rgb(232 184 154 / .14); border-color: var(--peach); box-shadow: 0 0 18px rgb(232 184 154 / .25); }

.st-shift-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.st-shift-list li:last-child { border-bottom: 0; }
.st-date { display: grid; text-align: center; }
.st-date small { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.st-row-main { display: grid; gap: 1px; min-width: 0; }
.st-row-main > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-row-right { display: grid; justify-items: end; gap: 2px; font-size: 13px; }
.st-row-right .chip { font-size: 10px; }

.st-tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 6px max(12px, calc(50% - 260px)) calc(6px + env(safe-area-inset-bottom));
  background: rgb(14 16 22 / .96); border-top: 1px solid var(--line);
}
.st-tab { display: grid; gap: 2px; place-items: center; height: 54px; color: var(--muted); font-size: 11px; letter-spacing: .04em; transition: color .15s; }
.st-tab .nav-icon { font-size: 18px; }
.st-tab.on { color: var(--mint); text-shadow: 0 0 12px rgb(159 216 203 / .5); }
.st-logout { color: var(--muted); }

.st-backdrop { position: fixed; inset: 0; z-index: 50; background: rgb(6 7 10 / .72); display: flex; align-items: flex-end; justify-content: center; animation: enter .18s var(--ease); }
.st-sheet {
  width: min(520px, 100%); max-height: 88dvh; overflow: auto; display: grid; gap: 12px;
  padding: 0 16px calc(18px + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line-hi);
  box-shadow: 0 -10px 40px rgb(183 168 224 / .12); animation: sheet-up .22s var(--ease);
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.st-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 4px; position: sticky; top: 0; background: var(--panel); }
.st-sheet .form { padding: 0; }
.big-input { height: 52px; font-size: 24px; }
.st-button-rows { display: grid; gap: 8px; }
.st-button-row { display: grid; grid-template-columns: 1fr 90px 34px; gap: 8px; align-items: end; }
.st-button-row .big-input { height: 40px; font-size: 18px; }
.st-pin { font-size: 26px; letter-spacing: .5em; text-align: center; height: 52px; }
.login-box.shake { animation: glitch .25s linear 2; }
.st-toast { bottom: calc(84px + env(safe-area-inset-bottom)); }

/* Weather chip, expense buttons, note feed, owner's note, earnings. */
.st-live-top .num.dim { flex: 1; text-align: right; }
.st-weather {
  height: 28px; padding: 0 10px; border: 1px solid var(--line-hi); color: var(--muted); font-size: 13px; white-space: nowrap;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: border-color .15s, color .15s;
}
.st-weather.set { color: var(--text); border-color: rgb(183 168 224 / .5); box-shadow: 0 0 10px rgb(183 168 224 / .15); }
.st-done-top { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.st-own { height: 44px; }
.st-sub { margin-top: 4px; }
.st-quick.spend { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.st-quick-btn.spend { height: 60px; background: linear-gradient(145deg, rgb(232 184 154 / .12), rgb(227 179 200 / .06)); border-color: rgb(232 184 154 / .45); }
.st-quick-btn.spend b { font-size: 17px; color: var(--peach); }
.st-quick-btn.spend.other b { color: var(--muted); }
.st-quick-btn.spend.hit { animation: hit-spend .35s var(--ease); }
@keyframes hit-spend { 40% { box-shadow: 0 0 24px rgb(232 184 154 / .4); } }
.st-note-form { display: grid; grid-template-columns: 1fr 48px; gap: 8px; }
.st-note-form .input { height: 44px; }
.st-note-form .btn { height: 44px; justify-content: center; padding: 0; }
.st-notes li { display: grid; grid-template-columns: 46px minmax(0, 1fr) 34px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.st-notes li:last-child { border-bottom: 0; }
.st-owner-note {
  display: grid; gap: 4px; padding: 10px 12px; border: 1px solid rgb(183 168 224 / .45);
  background: rgb(183 168 224 / .08); border-left: 3px solid var(--lavender);
}
.st-owner-note p { font-size: 14px; white-space: pre-wrap; }
.st-earn li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; white-space: nowrap; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.st-earn li:last-child { border-bottom: 0; }
.st-earn .num.dim { font-size: 12px; text-align: right; overflow: hidden; text-overflow: ellipsis; }
