@import url("./phone-admin-details.css");
@import url("./phone-admin-arrange.css");
/* Mobile administrator home owns its header and scrolling boundary. */
#stage.phone-home-mode.phone-admin-home-mode > header {display:none!important}
#stage.phone-home-mode.phone-admin-home-mode > #phone-home-host {inset:0;background:#1c2126}
#phone-home-host .ah-home {
  --ah-bg:#1c2126;--ah-surface:#262c31;--ah-line:#3e484e;--ah-text:#e7ebed;--ah-muted:#a6afb4;--ah-alert:#ff7137;
  --ah-numbers:"Barlow Condensed","Bahnschrift Condensed","Arial Narrow","Roboto Condensed",var(--font-ui,system-ui),sans-serif;
  display:block;position:relative;height:100%;width:100%;min-width:0;overflow:auto;scrollbar-width:thin;
  overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;color-scheme:dark;background:var(--ah-bg);color:var(--ah-text);
  font:400 14px/1.45 "Noto Sans SC","PingFang SC","Microsoft YaHei",system-ui,sans-serif;letter-spacing:normal;text-align:start;
}
.ah-home *, .ah-home *::before, .ah-home *::after {box-sizing:border-box}
#phone-home-host .ah-home [hidden] {display:none!important}
#phone-home-host .ah-home :is(h1,h2,h3,p) {margin:0;padding:0;width:auto;min-height:0;background:none;color:inherit;letter-spacing:normal;text-transform:none}
#phone-home-host .ah-home :is(a,button,select) {font-family:inherit;letter-spacing:normal;text-decoration:none;color:inherit;touch-action:manipulation}
#phone-home-host .ah-home a:focus-visible, #phone-home-host .ah-home button:focus-visible, #phone-home-host .ah-home label:focus-within {
  outline:2px solid #ffad83;outline-offset:2px;border-radius:8px
}
#phone-home-host .ah-home :is(a,button):active {filter:brightness(1.18)}
.ah-inner {max-width:660px;margin:0 auto;padding:env(safe-area-inset-top,0px) max(clamp(14px,5.13vw,24px),env(safe-area-inset-right,0px)) max(14px,env(safe-area-inset-bottom,0px)) max(clamp(14px,5.13vw,24px),env(safe-area-inset-left,0px))}
.ah-top {display:flex;align-items:center;gap:8px;height:54px;min-width:0}
#phone-home-host .ah-home .ah-top h1 {font-size:16px;line-height:24px;font-weight:600;white-space:nowrap}
.ah-top-actions {display:flex;align-items:center;gap:8px;margin-left:auto}
#phone-home-host .ah-home .ah-icon-button,#phone-home-host .ah-home .ah-floor {
  display:inline-flex;position:relative;align-items:center;justify-content:center;flex:none;width:36px;height:36px;margin:0;padding:0;
  border:1px solid var(--ah-line);border-radius:50%;background:var(--ah-surface);color:var(--ah-text);box-shadow:none;cursor:pointer
}
.ah-icon-button svg {display:block;width:17px;height:17px}
.ah-top .ah-icon-button::after,.ah-floor::after,.ah-project::after {content:"";position:absolute;inset:-4px;pointer-events:auto}
.ah-floor::after,.ah-project::after {pointer-events:none}
#phone-home-host .ah-home .ah-floor {gap:5px;width:58px;border-radius:18px}
.ah-floor svg {width:14px;height:14px}
.ah-floor b {font-family:var(--ah-numbers);font-size:15px;font-weight:650;line-height:1}
.ah-floor select,.ah-project select {position:absolute;inset:-4px 0;width:100%;height:calc(100% + 8px);opacity:0;cursor:pointer;font-size:16px}
.ah-section {margin:clamp(17px,calc(20vh - 96px),32px) 0 0;padding:0;border:0;width:100%;height:auto;min-width:0;max-width:none;background:none;box-shadow:none}
.ah-top + .ah-section {margin-top:12px}
#phone-home-host .ah-home .ah-section h2 {font-size:16px;line-height:23px;font-weight:550}
#phone-home-host .ah-home .ah-detail h2 {font-size:18px;line-height:26px;font-weight:550}
.ah-card {border:1px solid var(--ah-line);border-radius:16px;background:var(--ah-surface)}
.ah-section > h2 + .ah-card {margin-top:12px}
.ah-row {display:flex;align-items:center;justify-content:space-between;gap:7px;min-height:28px;margin-bottom:6px}
.ah-row h2 {flex-shrink:0}
.ah-summary {margin:2px 0 0;padding:0;width:100%;min-width:0;box-shadow:none}
.ah-sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.ah-goals {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px 0 8px}
.ah-goal {position:relative;min-width:0;padding:0 14px}
.ah-goal + .ah-goal::before {content:"";position:absolute;left:0;top:2px;bottom:1px;width:1px;background:var(--ah-line)}
#phone-home-host .ah-home .ah-goal h3 {font-size:12px;line-height:16px;font-weight:500}
.ah-amount {display:flex;align-items:baseline;gap:4px;min-width:0;margin:1px 0 5px}
.ah-amount b,.ah-stat strong,.ah-detail-title b {display:block;min-width:0;font-family:var(--ah-numbers);font-stretch:condensed;font-variant-numeric:tabular-nums;font-weight:750;line-height:1.16}
.ah-amount b {font-size:clamp(22px,6.6vw,28px);letter-spacing:-.045em;overflow-wrap:anywhere}
.ah-goal > small,.ah-amount small {display:block;font-size:11px;color:var(--ah-muted);line-height:15px}
.ah-track {height:3px;display:block;overflow:hidden;border-radius:2px;background:#14181b;margin:0 0 3px}
.ah-track i {display:block;height:100%;border-radius:inherit;background:#dfac85}
.ah-goal + .ah-goal .ah-track i {background:#8ec5bf}
.ah-error {display:flex;align-items:center;gap:8px;color:var(--ah-muted);font-size:12px;line-height:1.5;padding:0 14px 4px}
#phone-home-host .ah-home .ah-error button {background:none;box-shadow:none;border:0;color:#f3b89d;text-decoration:underline;font-size:12px;padding:4px}
.ah-stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;margin:0 8px;padding:4px 0;border-top:1px solid var(--ah-line)}
.ah-stat {display:flex;align-items:center;justify-content:center;flex-direction:column;gap:1px;min-width:0;min-height:44px;padding:2px 1px;border-radius:8px}
.ah-stat strong {font-size:clamp(19px,5.25vw,23px);letter-spacing:-.035em}
.ah-stat small {font-size:11px;text-align:center;line-height:15px;color:var(--ah-muted)}
.ah-stat.ah-late {background:rgb(255 119 63 / 8%)}
.ah-stat.ah-late strong {color:var(--ah-alert)}
.ah-digit {display:inline-block;position:relative;height:1em;line-height:1;overflow:hidden;vertical-align:-.048em}
.ah-digit > i {font:inherit;visibility:hidden}
.ah-digit::before {content:attr(data-roll);position:absolute;inset:0 auto auto 0;white-space:pre;line-height:1;transform:translateY(calc(1em - 100%));animation:ah-roll-in 640ms cubic-bezier(.2,.66,.24,1) var(--ah-roll-delay,0ms) both}
@keyframes ah-roll-in {from {transform:translateY(0)} to {transform:translateY(calc(1em - 100%))}}
@media(prefers-reduced-motion:reduce) {
  .ah-digit > i {visibility:visible}
  .ah-digit::before {display:none;animation:none}
}
.ah-project {position:relative;display:flex;align-items:center;justify-content:center;gap:9px;max-width:63%;min-width:90px;min-height:32px;padding:4px 12px;border-radius:18px;background:var(--ah-surface);border:1px solid var(--ah-line);cursor:pointer}
.ah-project span {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.ah-project svg {flex:none;width:13px;height:13px;color:var(--ah-muted)}
.ah-pipe {--ah-flow-row:54px;--ah-flow-gap:16px;position:relative;isolation:isolate;padding:10px 6px 12px}
/* The rail starts at the first lamp centre and spans exactly one grid row and gap. */
.ah-wire {display:block;position:absolute;top:38px;left:0;width:100%;height:calc(var(--ah-flow-row) + var(--ah-flow-gap));overflow:visible;pointer-events:none;stroke-linecap:round}
.ah-wire-track {stroke:#536169;stroke-width:1}
.ah-wire-pulse {
  --ah-phase:0px;stroke:#81b7ad;stroke-width:1.6;stroke-dasharray:4 46;
  animation:ah-wire-current 4.4s linear infinite
}
.ah-wire-tip {--ah-phase:-3px;stroke:#baefe1;stroke-width:1.85;stroke-dasharray:1 49}
@keyframes ah-wire-current {
  from {stroke-dashoffset:var(--ah-phase)}
  to {stroke-dashoffset:calc(var(--ah-phase) - 50px)}
}
@media (prefers-reduced-motion:reduce) {.ah-wire-pulse {display:none;animation:none}}
.ah-pipe-grid,.ah-other {display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
.ah-pipe-grid {position:relative;grid-template-rows:repeat(2,var(--ah-flow-row));row-gap:var(--ah-flow-gap)}
.ah-pipe-grid > :nth-child(6) {grid-area:2/5}.ah-pipe-grid > :nth-child(7) {grid-area:2/4}.ah-pipe-grid > :nth-child(8) {grid-area:2/3}.ah-pipe-grid > :nth-child(9) {grid-area:2/2}.ah-pipe-grid > :nth-child(10) {grid-area:2/1}
.ah-light {display:flex;align-items:center;flex-direction:column;min-width:0;min-height:44px;border-radius:8px;text-align:center;padding:0}
.ah-light-name {display:block;max-width:100%;font-size:13px;line-height:18px;white-space:nowrap;font-weight:510}
.ah-light small {display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ah-muted);font-size:11px;line-height:16px;margin-top:1px}
.ah-work {--lamp:#7fd8b6;--core:#dafff0}
.ah-wait {--lamp:#e5ba7e;--core:#fff1d9}
.ah-alert {--lamp:#ff833f;--core:#ffe6c7}
.ah-idle {--lamp:#64727b;--core:#89969e}
.ah-done {--lamp:#63dba6;--core:#e0fff1}
.ah-halo {display:grid;flex:none;place-items:center;width:18px;height:18px;border-radius:50%;margin:1px 0 0;background:color-mix(in srgb,var(--lamp) 14%,transparent)}
.ah-halo > i {position:relative;display:block;width:9px;height:9px;background:var(--lamp);border-radius:50%;box-shadow:0 0 6px color-mix(in srgb,var(--lamp) 58%,transparent)}
.ah-halo > i::after {content:"";position:absolute;width:4px;height:4px;top:2.5px;left:2.5px;background:var(--core);border-radius:50%}
.ah-idle .ah-halo {background:transparent}.ah-idle .ah-halo > i {box-shadow:none}
.ah-light:is(.ah-wait,.ah-alert) small {color:var(--lamp)}
.ah-other {grid-auto-rows:minmax(44px,auto);padding:8px 6px 6px;row-gap:11px}
.ah-other .ah-light-name {font-size:12px;line-height:17px;font-weight:400;margin-top:4px}
.ah-key {display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;column-gap:9px;row-gap:3px;color:var(--ah-muted)}
.ah-key span {display:inline-flex;align-items:center;gap:4px;font-size:10px;line-height:14px;white-space:nowrap}
.ah-key i {width:5px;height:5px;border-radius:50%;background:var(--lamp)}
@media (max-height:700px) {
  .ah-top {height:48px}
  .ah-row {margin-bottom:5px}
  .ah-inner {padding-bottom:max(9px,env(safe-area-inset-bottom,0px))}
}
#phone-home-host .ah-home .ah-drawer {
  inset:0 auto 0 0;width:min(280px,76vw);height:100%;height:100dvh;max-height:none;max-width:none;margin:0;padding:max(18px,env(safe-area-inset-top)) 24px max(24px,env(safe-area-inset-bottom));
  overflow:auto;border:0;border-right:1px solid var(--ah-line);border-radius:0;box-shadow:10px 0 32px #1117;
  background:linear-gradient(160deg,#282f34,#1c2126 65%,#161a1e);color:var(--ah-text)
}
.ah-drawer::backdrop {background:rgb(9 13 16 / 58%)}
.ah-drawer-top {display:flex;align-items:center;justify-content:space-between;font-size:15px;color:var(--ah-muted)}
#phone-home-host .ah-home .ah-drawer h2 {margin:50px 0 22px;font-size:24px;font-weight:560}
.ah-drawer nav {display:flex;flex-direction:column;position:static;inset:auto;padding:0;width:auto;height:auto;border:0;background:none}
.ah-drawer nav a {display:flex;align-items:center;justify-content:space-between;min-height:58px;padding:8px 0;border-bottom:1px solid var(--ah-line);font-size:16px}
.ah-drawer nav svg {width:16px;height:16px;color:var(--ah-alert)}
.ah-account {margin-top:28px}.ah-account a {display:inline-flex;align-items:center;min-height:44px;font-size:13px;color:var(--ah-muted)!important}
.ah-detail {min-height:calc(100% - 60px)}
.ah-detail-title {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 20px}
.ah-detail-title b {font-size:30px}
.ah-detail-list {display:flex;flex-direction:column}
.ah-detail-list a {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 10px;min-height:70px;padding:10px 0;border-bottom:1px solid var(--ah-line)}
.ah-detail-list a strong {overflow-wrap:anywhere;font-size:15px;font-weight:550}
.ah-detail-list a small,.ah-detail-list a span,.ah-detail-empty {color:var(--ah-muted);font-size:12px}
.ah-detail-list a small {grid-column:1/-1}
.ah-detail-list a span {font-size:11px}.ah-detail-list .ah-urgent {color:var(--ah-alert)}
@media(max-width:355px){
  .ah-inner {padding-inline:max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right))}
  .ah-light-name {font-size:12px}.ah-stat small{font-size:11px}
  .ah-key {column-gap:5px}.ah-key span{font-size:9px;gap:2px}
  .ah-goal {padding-inline:11px}.ah-other .ah-light-name {font-size:11px}
}
.ah-top + [data-ah-overview] > .ah-section:first-child {margin-top:12px}
.ah-detail-back {display:inline-flex;align-items:center;min-height:44px;color:var(--ah-muted)!important;font-size:14px}

#phone-home-host .ah-home .ah-goal-settings h2 {font-size:20px;line-height:28px;font-weight:600;margin:10px 0 16px}
.ah-goal-form {display:grid;gap:14px;padding:16px}
.ah-goal-form label {display:grid;gap:6px;min-width:0;font-size:13px}
.ah-goal-form input {display:block;box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:8px 11px;color:var(--ah-text);border:1px solid var(--ah-line);background:var(--ah-bg);border-radius:8px;font:inherit;font-size:16px;color-scheme:dark}
.ah-goal-form dl {margin:0;padding:3px 0 12px;border-bottom:1px solid var(--ah-line)}
.ah-goal-form dl div {display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:3px 0;font-size:13px}
.ah-goal-form dt {color:var(--ah-muted)}
.ah-goal-form dd {margin:0;text-align:end;overflow-wrap:anywhere}
#phone-home-host .ah-home .ah-goal-form .ah-goal-hint {color:var(--ah-muted);font-size:12px}
.ah-goal-form [data-goal-feedback]:empty {display:none}
#phone-home-host .ah-home .ah-goal-form .ah-goal-invalid {color:#ffba96}
#phone-home-host .ah-home .ah-goal-form button {min-height:44px;padding:9px 16px;border:0;border-radius:8px;background:#ff8754;color:#191e21;font-size:15px;font-weight:600;cursor:pointer}
#phone-home-host .ah-home .ah-goal-form label:focus-within {outline:0}
#phone-home-host .ah-home .ah-goal-form input:focus-visible {outline:2px solid #ffad83;outline-offset:2px}
