/* Asset tracking app page only (/zoho-creator/asset-tracking-app/). Prefix zat-. Content is in the HTML; JS only enhances. */
:root { --zat-ink: #082238; --zat-body: #334155; --zat-muted: #475569; --zat-line: #E2E8F0; --zat-paper: #F3F7F9; --zat-link: #0A6FA8;
  --zat-ok: #146C43; --zat-warn: #7A4F00; --zat-bad: #9F2F1A; --zat-foil1: #F4F6F8; --zat-foil2: #C9D1DA; }
.zat-hero button:focus-visible, .zat-log button:focus-visible, .zat-calc input:focus-visible { outline: 2px solid #00A3D9; outline-offset: 3px; }
.zat-tag { display: inline-block; padding: 3px 8px; border-radius: 99px; background: #FFF4D6; color: #7A4F00; font: 700 11px/1.2 var(--f-body); letter-spacing: .06em; text-transform: uppercase; }
.zat-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- hero: foil asset label + phone scan ---------- */
.zat-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 4.5vw, 64px); align-items: center; }
.zat-hero .pg-h1 { max-width: 17ch; font-size: clamp(34px, 1.1rem + 2.5vw, 54px); }
.zat-hero .pg-lead { font-size: 17px; }
.zat-scan { margin: 0; padding: 18px; border-radius: 24px; background: #fff; border: 1px solid var(--zat-line); box-shadow: 0 50px 90px -50px rgba(8,34,56,.5), 0 14px 30px -24px rgba(8,34,56,.3); min-width: 0; }
.zat-scan__pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.zat-scan__pick button { min-height: 34px; padding: 5px 13px; border-radius: 99px; border: 1px solid var(--zat-line); background: #fff; font: 600 13px/1.2 var(--f-body); color: var(--zat-body); cursor: pointer; }
.zat-scan__pick button[aria-pressed="true"] { background: var(--zat-ink); border-color: var(--zat-ink); color: #fff; }
.zat-scan__stage { position: relative; display: flex; align-items: center; justify-content: flex-start; min-height: 190px; padding: 22px 18px; border-radius: 16px;
  background: repeating-linear-gradient(90deg, #4A5562 0 3px, #536070 3px 6px), #4A5562; overflow: hidden; }
.zat-scan__stage::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 20% 10%, rgba(255,255,255,.18), transparent 60%); pointer-events: none; }
.zat-plate { position: relative; z-index: 1; width: min(300px, 74%); padding: 10px 12px 12px; border-radius: 8px;
  background: linear-gradient(135deg, var(--zat-foil1) 0%, var(--zat-foil2) 38%, #EEF1F4 55%, #B9C3CE 100%); border: 1px solid #9AA6B2;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 18px -10px rgba(0,0,0,.6); transform: rotate(-2deg); overflow: hidden; }
.zat-plate::before, .zat-plate::after { content: ""; position: absolute; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: #8793A0; box-shadow: inset 0 1px 1px rgba(0,0,0,.4); }
.zat-plate::before { left: 8px; } .zat-plate::after { right: 8px; }
.zat-plate__own { margin: 0 0 8px; padding: 0 14px; font: 800 10px/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: #1F2937; text-align: center; }
.zat-plate__body { display: flex; align-items: center; gap: 12px; }
.zat-plate__qr { flex: none; width: 84px; height: 84px; padding: 5px; border-radius: 4px; background: #fff; color: #0B1220; fill: currentColor; }
.zat-plate__id { display: grid; gap: 2px; margin: 0; min-width: 0; }
.zat-plate__id b { font: 800 22px/1.05 var(--f-display); color: #0B1220; letter-spacing: .02em; }
.zat-plate__id span { font: 700 13.5px/1.25 var(--f-body); color: #1F2937; }
.zat-plate__id small { font-size: 11.5px; line-height: 1.3; color: #374151; }
.zat-plate__beam { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #FF4D3A; box-shadow: 0 0 12px 3px rgba(255,77,58,.65); opacity: 0; }
.zat-scan.is-play .zat-plate__beam { animation: zat-beam 1.4s ease-in-out both; }
@keyframes zat-beam { 0% { top: 4%; opacity: 0; } 12% { opacity: 1; } 50% { top: 92%; } 88% { opacity: 1; } 100% { top: 8%; opacity: 0; } }
.zat-phone { position: absolute; right: 14px; bottom: -26px; z-index: 2; width: 104px; height: 170px; border-radius: 20px; background: #0B1220; border: 3px solid #1F2937; box-shadow: 0 20px 30px -14px rgba(0,0,0,.7); transform: rotate(8deg); }
.zat-phone__cam { position: absolute; top: 7px; left: 50%; width: 22px; height: 5px; margin-left: -11px; border-radius: 4px; background: #1F2937; }
.zat-phone__frame { position: absolute; left: 18px; right: 18px; top: 34px; height: 64px; border: 2px solid #FFB81C; border-radius: 8px; }
.zat-phone__lbl { position: absolute; left: 0; right: 0; top: 108px; text-align: center; font: 600 10.5px/1.2 var(--f-body); color: #CBD5E1; }
.zat-scan.is-done .zat-phone__frame { border-color: #3FB97A; }
.zat-res { position: relative; z-index: 3; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--zat-line); box-shadow: 0 24px 40px -26px rgba(8,34,56,.6); }
.zat-res__h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; font: 700 13.5px/1.2 var(--f-display); color: var(--zat-ink); }
.zat-res__h .zat-tag { margin-left: auto; }
.zat-res ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.zat-res li { display: grid; gap: 2px; padding: 7px 9px; border-radius: 10px; background: var(--zat-paper); font-size: 12px; color: var(--zat-muted); }
.zat-res li b { font-size: 13px; color: var(--zat-ink); }
.zat-res li.is-warn { background: #FFF4D6; } .zat-res li.is-warn b { color: var(--zat-warn); }
.zat-res li.is-bad { background: #FDE8E3; } .zat-res li.is-bad b { color: var(--zat-bad); }
.zat-scan.is-play .zat-res { animation: zat-pop .6s cubic-bezier(.2,.8,.2,1) 1.2s both; }
@keyframes zat-pop { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.zat-scan__foot { margin: 12px 0 0; font-size: 12.5px; color: var(--zat-muted); }

/* ---------- honest Zoho map note ---------- */
.zat-zoho .mk-tabs { margin-top: 28px; }

/* ---------- custody log (dark band) ---------- */
.zat-log { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; margin: 34px 0 0; }
.zat-log__side, .zat-log__main { min-width: 0; padding: 18px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.zat-log__items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.zat-log__items button { display: grid; gap: 2px; min-height: 52px; padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #DCE8F2; font: 500 12.5px/1.25 var(--f-body); text-align: left; cursor: pointer; }
.zat-log__items button b { font: 800 14px/1.1 var(--f-display); color: #fff; }
.zat-log__items button[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--zat-body); }
.zat-log__items button[aria-pressed="true"] b { color: var(--zat-ink); }
.zat-log__card { margin: 14px 0 0; padding: 14px; border-radius: 14px; background: #fff; color: var(--zat-body); }
.zat-log__st { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 800 16px/1.2 var(--f-display); color: var(--zat-ink); }
.zat-dot { width: 12px; height: 12px; border-radius: 50%; background: #1E8A5A; box-shadow: 0 0 0 4px rgba(30,138,90,.18); }
.zat-dot[data-st="out"] { background: #0A6FA8; box-shadow: 0 0 0 4px rgba(10,111,168,.18); }
.zat-dot[data-st="late"] { background: #C47A0A; box-shadow: 0 0 0 4px rgba(196,122,10,.2); }
.zat-dot[data-st="repair"], .zat-dot[data-st="blocked"] { background: #B4432A; box-shadow: 0 0 0 4px rgba(180,67,42,.2); }
.zat-dot[data-st="lost"] { background: #6B21A8; box-shadow: 0 0 0 4px rgba(107,33,168,.2); }
.zat-log__card ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.zat-log__card li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px; border-radius: 10px; background: var(--zat-paper); font-size: 13px; color: var(--zat-muted); }
.zat-log__card li b { color: var(--zat-ink); text-align: right; }
.zat-log__acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0 0; }
.zat-log__acts button { min-height: 44px; padding: 8px 10px; border-radius: 12px; border: 0; background: #FFB81C; color: var(--zat-ink); font: 700 13px/1.25 var(--f-body); cursor: pointer; transition: background-color .2s, opacity .2s; }
.zat-log__acts button:hover:not(:disabled) { background: #F0A400; }
.zat-log__acts button:disabled { background: rgba(255,255,255,.1); color: #9FB6C9; cursor: not-allowed; }
.zat-log__acts button:last-child { grid-column: 1 / -1; }
.zat-log__reset { margin: 12px 0 0; min-height: 36px; padding: 6px 14px; border-radius: 99px; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; font: 600 13px/1.2 var(--f-body); cursor: pointer; }
.zat-log__rule { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: rgba(255,184,28,.14); border: 1px solid rgba(255,184,28,.45); color: #FDE8B5; font-size: 14px; line-height: 1.5; }
.zat-log__rule b { font: 800 11.5px/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: #FFB81C; }
.zat-log__rule.is-new { animation: zat-pop .45s ease both; }
.zat-log__h { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; font: 700 15px/1.2 var(--f-display); color: #fff; }
.zat-log__list { position: relative; display: grid; gap: 8px; margin: 0; padding: 0 0 0 22px; list-style: none; max-height: 360px; overflow-y: auto; }
.zat-log__list::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: rgba(255,255,255,.2); }
.zat-log__list li { position: relative; display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.08); color: #E2ECF4; font-size: 13.5px; line-height: 1.45; }
.zat-log__list li::before { content: ""; position: absolute; left: -20px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: #7DD3FC; }
.zat-log__list li.is-new { animation: zat-pop .45s ease both; }
.zat-log__list li[data-k="warn"]::before { background: #FFB81C; } .zat-log__list li[data-k="bad"]::before { background: #F87171; }
.zat-log__list time { font: 700 11.5px/1.2 var(--f-body); letter-spacing: .04em; color: #9FC0D8; }
.zat-cust__foot { margin: 16px 0 0; font-size: 13.5px; color: #BFD3E2; }

/* ---------- tag spectrum ---------- */
.zat-spec { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 34px 0 0; padding: 0; list-style: none; }
.zat-spec::before { content: ""; position: absolute; left: 4%; right: 4%; top: 27px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #0A6FA8, #0B7A73, #C47A0A, #B4432A); }
.zat-spec__stop { position: relative; padding: 0 4px; }
.zat-spec__ic { position: relative; display: grid; place-items: center; width: 58px; height: 58px; margin: 0 0 14px; border-radius: 50%; background: #fff; border: 3px solid var(--zat-c); }
.zat-spec__ic svg { width: 26px; height: 26px; fill: none; stroke: var(--zat-c); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.zat-spec__stop--ext .zat-spec__ic { border-style: dashed; }
.zat-spec h3 { margin: 0 0 6px; font: 700 18px/1.3 var(--f-display); color: var(--zat-ink); }
.zat-spec p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--zat-body); }
.zat-spec__fit { display: inline-block; margin: 10px 0 0; padding: 3px 10px; border-radius: 99px; background: #E7F6EE; color: var(--zat-ok); font: 700 12px/1.3 var(--f-body); }
.zat-spec__stop--ext .zat-spec__fit { background: #FDE8E3; color: var(--zat-bad); }
.zat-spec__stop { opacity: 1; transform: none; transition: transform .5s ease; }
.zat-spec.is-wait .zat-spec__stop { transform: translateY(16px); }

/* ---------- spreadsheet to app ---------- */
.zat-sheet__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.zat-sheet__pair { display: grid; gap: 14px; min-width: 0; }
.zat-sheet__cap { margin: 0 0 8px; font: 700 12px/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--zat-muted); }
.zat-sheet__old { padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--zat-line); transform: rotate(-1deg); }
.zat-sheet__old table { width: 100%; border-collapse: collapse; font: 13px/1.4 ui-monospace, Menlo, Consolas, monospace; color: var(--zat-body); }
.zat-sheet__old th, .zat-sheet__old td { padding: 6px 8px; border: 1px solid #D7DEE6; text-align: left; }
.zat-sheet__old th { background: #EEF2F6; font-weight: 700; color: var(--zat-ink); }
.zat-sheet__old td:last-child { color: var(--zat-bad); font-style: italic; }
.zat-sheet__new { padding: 14px; border-radius: 16px; background: var(--zat-ink); }
.zat-sheet__new .zat-sheet__cap { color: #9FC0D8; }
.zat-sheet__new ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.zat-sheet__new li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.08); color: #DCE8F2; font-size: 13.5px; }
.zat-sheet__new li b { font: 800 14px/1.2 var(--f-display); color: #fff; min-width: 64px; }
.zat-sheet__new li.is-bad span { color: #FDBA9F; }

/* ---------- cost ---------- */
.zat-calc { max-width: 640px; margin: 26px 0 0; padding: 20px; border-radius: 20px; background: #fff; border: 1px solid var(--zat-line); box-shadow: 0 30px 50px -40px rgba(8,34,56,.55); }
.zat-calc label { display: block; font: 700 15px/1.3 var(--f-display); color: var(--zat-ink); }
.zat-calc__row { display: flex; align-items: center; gap: 14px; margin: 10px 0 0; }
.zat-calc__row input { flex: 1; min-width: 0; height: 32px; accent-color: #0A6FA8; }
.zat-calc__row output { min-width: 44px; padding: 4px 10px; border-radius: 10px; background: var(--zat-paper); font: 800 18px/1.2 var(--f-display); color: var(--zat-ink); text-align: center; }
.zat-calc__out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; }
.zat-calc__out p { display: grid; gap: 4px; margin: 0; padding: 12px; border-radius: 12px; background: var(--zat-paper); font-size: 13px; color: var(--zat-muted); }
.zat-calc__out b { font: 800 20px/1.2 var(--f-display); color: var(--zat-ink); }
.zat-calc__note { margin: 12px 0 0; font-size: 13px; color: var(--zat-muted); }
.zat-fee { margin: 22px 0 0; max-width: 860px; color: var(--zat-body); }

/* ---------- start ---------- */
.zat-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; counter-reset: zats; }
.zat-steps li { position: relative; padding: 50px 18px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--zat-line); counter-increment: zats; }
.zat-steps li::before { content: counter(zats, decimal-leading-zero); position: absolute; left: 18px; top: 14px; padding: 3px 8px; border-radius: 4px; border: 1px dashed #0A6FA8; color: #0A6FA8; font: 800 12px/1.2 ui-monospace, Menlo, monospace; letter-spacing: .06em; }
.zat-steps h3 { margin: 0 0 6px; font: 700 17px/1.3 var(--f-display); color: var(--zat-ink); }
.zat-steps p { margin: 0; font-size: 14.5px; color: var(--zat-body); }
.zat-start__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.zat-start__cta p { flex: 1 1 320px; margin: 0; font-size: 14.5px; color: var(--zat-muted); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .zat-hero__grid, .zat-log, .zat-sheet__grid { grid-template-columns: minmax(0, 1fr); }
  .zat-spec { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .zat-spec::before { display: none; }
  .zat-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .zat-scan { padding: 14px; }
  .zat-scan__stage { min-height: 170px; padding: 18px 12px; }
  .zat-plate { width: 76%; }
  .zat-plate__qr { width: 64px; height: 64px; }
  .zat-plate__id b { font-size: 18px; }
  .zat-phone { width: 78px; height: 130px; right: 8px; bottom: -30px; }
  .zat-phone__frame { left: 12px; right: 12px; top: 26px; height: 48px; }
  .zat-phone__lbl { top: 82px; font-size: 9.5px; }
  .zat-log__items { grid-template-columns: minmax(0, 1fr); }
  .zat-log__items button { min-height: 44px; display: flex; gap: 8px; align-items: center; }
  .zat-log__side, .zat-log__main { padding: 14px; }
  .zat-spec, .zat-steps, .zat-calc__out { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .zat-scan.is-play .zat-plate__beam, .zat-scan.is-play .zat-res, .zat-log__list li.is-new, .zat-log__rule.is-new { animation: none; }
  .zat-spec.is-wait .zat-spec__stop { transform: none; }
}
