/* Shared visual layer for existing tools; no data, login or transaction changes. */
body.apple-page{--ink:#1d1d1f;--muted:#6e6e73;--line:#dedee3;--accent:#0071e3;--green:#0071e3;--paper:#f5f5f7;--panel:#fff;color:#1d1d1f;background:#f5f5f7;font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue","PingFang SC","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%}
.apple-page [hidden]{display:none!important}
.apple-page input,.apple-page select,.apple-page textarea{background:#fff;color:#1d1d1f;border-color:#d2d2d7;border-radius:12px;line-height:1.4}
.apple-page input::placeholder,.apple-page textarea::placeholder{color:#86868b}
.apple-page button{color:#515159;font-weight:500;border-color:#d2d2d7;border-radius:20px;background:#fff;transition:background .15s,border-color .15s}
.apple-page button:hover:not(:disabled){background:#f0f0f3;border-color:#b6b6bd}
.apple-page button.primary,.apple-page .primary-button{background:#0071e3;border-color:#0071e3;color:#fff;font-weight:500}
.apple-page button.primary:hover:not(:disabled),.apple-page .primary-button:hover:not(:disabled){background:#0077ed;border-color:#0077ed}
.apple-page button:disabled{opacity:.5}
.apple-page a{color:#0066cc}
.apple-page input:focus,.apple-page select:focus,.apple-page textarea:focus,.apple-page button:focus-visible,.apple-page a:focus-visible{outline:2px solid #0071e3;outline-offset:3px}
.apple-page h1,.apple-page h2,.apple-page h3{color:#1d1d1f;font-weight:600;letter-spacing:-.025em}
.apple-page .muted,.apple-page .subtle,.apple-page .caption,.apple-page .eyebrow,.apple-page .category,.apple-page .code,.apple-page .note{color:#6e6e73}
.apple-page .eyebrow{letter-spacing:.8px;font-weight:500}
.apple-page header,.apple-page .topbar{background:#fff;color:#1d1d1f;border-bottom:1px solid #e8e8ed;min-height:60px;padding-top:10px;padding-bottom:10px}
.apple-page header .apple-brand,.apple-page .topbar .brand{color:#1d1d1f;text-decoration:none;display:flex;align-items:center;flex-shrink:0;gap:14px}
.apple-page .apple-wordmark{color:#1d1d1f;font-size:13px;font-weight:700;letter-spacing:1.6px;white-space:nowrap;background:none;border-radius:0;padding:0;width:auto;height:auto;display:block}
.apple-page .apple-page-label{display:block;color:#6e6e73;font-size:13px;font-weight:400;border-left:1px solid #d2d2d7;padding-left:14px;white-space:nowrap}
.apple-page header button{min-height:34px;padding:7px 13px;font-size:13px}
.apple-page dialog{border:0;background:#fff;border-radius:24px;box-shadow:0 24px 80px rgba(0,0,0,.15)}
.apple-page dialog::backdrop{background:rgba(0,0,0,.36);backdrop-filter:blur(5px)}
.apple-page .close{background:#e8e8ed;color:#6e6e73;border-radius:50%;width:34px;height:34px;display:flex;align-items:center;justify-content:center;font-weight:400}
.apple-page .danger,.apple-page .neg{color:#a45747}

/* Sales, purchases, order history and customer management. */
.page-billing{font-size:14px}
.page-billing header{gap:16px}
.page-billing header>span{font-size:13px;color:#6e6e73}
.page-billing main{padding-top:26px}
.page-billing section{border:0;border-radius:20px;box-shadow:none;padding:24px;margin-bottom:20px}
.page-billing h1{font-size:28px;line-height:1.3}
.page-billing label{font-weight:500;color:#515159}
.page-billing small{color:#6e6e73}
.page-billing .step{background:#edf4fc;color:#0066cc;border-radius:50%;font-weight:500}
.page-billing .heading{margin-bottom:20px}
.page-billing #online,.page-billing #purchaseOnline{background:#fff;border:0;color:#6e6e73;font-size:12px}
.page-billing .work-tabs{padding:5px;background:#e8e8ed;border:0;border-radius:24px;gap:4px}
.page-billing .work-tabs button{background:transparent;color:#606066;border:0;border-radius:20px;min-height:38px;font-weight:500}
.page-billing .work-tabs button.active{background:#fff;color:#1d1d1f;box-shadow:0 1px 5px rgba(0,0,0,.05)}
.page-billing .cache-toolbar{background:transparent;border:0;border-radius:0;padding:0 2px 4px;font-size:13px}
.page-billing .cache-toolbar button{background:#edf4fc;border:0;color:#0066cc}
.page-billing .product{border:0;border-radius:16px;background:#f9f9fb;box-shadow:none}
.page-billing .product:hover{background:#f0f0f3;box-shadow:0 8px 24px rgba(0,0,0,.05)}
.page-billing .product img,.page-billing .placeholder{background:#fafafa}
.page-billing .product span{font-size:14px;color:#1d1d1f;padding:12px;line-height:1.5}
.page-billing .product small{font-size:12px;margin-top:3px}
.page-billing .sale-items th{background:#f5f5f7;color:#6e6e73;font-weight:500}
.page-billing th,.page-billing td,.page-billing .sku-row,.page-billing .history-row{border-color:#e8e8ed}
.page-billing .round-actions button{background:#f5f5f7;color:#6e6e73}
.page-billing .amounts b{color:#515159}
.page-billing .total strong{color:#1d1d1f;font-weight:600}
.page-billing .stock-warning{background:#faf5ed;border-color:#eee1cb;color:#89613d}
.page-billing .record-card{background:#f9f9fb;border:0;border-radius:16px;padding:18px;line-height:1.7}
.page-billing .record-card:hover{background:#f0f0f3}
.page-billing .record-title b{color:#1d1d1f;font-weight:600}
.page-billing .customer-actions button{color:#0066cc;background:#edf4fc;border:0}
.page-billing .record-info dt{color:#6e6e73}
.page-billing #notice{background:#1d1d1f;border-radius:14px;line-height:1.6}
.page-billing #login{max-width:460px;padding:32px;margin-top:50px}

/* Returns: keep the intentionally wide, globally scrolling table and wrap rules. */
.page-returns .topbar{height:52px;min-height:52px;padding-top:0;padding-bottom:0}
.page-returns .brand>span+span{margin-left:0}
.page-returns .brand b{font-size:13px;color:#6e6e73;font-weight:400}
.page-returns .brand small{display:none}
.page-returns .catalog-link{color:#6e6e73;font-weight:500}
.page-returns .catalog-link:hover{color:#1d1d1f}
.page-returns .primary-button{border-radius:20px;font-size:13px;padding:8px 16px}
.page-returns .heading-row h1{font-weight:600;color:#1d1d1f}
.page-returns .subhead,.page-returns .sync-meta{color:#6e6e73}
.page-returns .toolbar{border:0;border-radius:16px 16px 0 0;padding:12px 14px 8px}
.page-returns .filter-bar{border:0;border-radius:0 0 16px 16px;padding:0 14px 12px}
.page-returns .search-box input{background:#f5f5f7;border-color:#e8e8ed;border-radius:20px;height:40px}
.page-returns .filter-bar select,.page-returns .filter-bar input{background:#f5f5f7;border-color:#e8e8ed;border-radius:16px;color:#515159}
.page-returns .count-block b,.page-returns .sync-meta strong{color:#515159}
.page-returns .table-card{border-color:#dedee3;border-radius:14px;box-shadow:none}
.page-returns table,.page-returns th,.page-returns td{color:#1d1d1f}
.page-returns th{background:#ececf0;color:#606066;border-color:#dcdce1;font-weight:500}
.page-returns td{border-color:#e5e5ea}
.page-returns tbody tr{background:#fff}
.page-returns tbody tr:nth-child(even){background:#fafafa}
.page-returns .remark-cell{color:#606066}
.page-returns .returns-notice{background:#edf4fc;color:#515159;border:0;border-radius:12px}
.page-returns .returns-notice button{color:#0066cc;background:transparent}
.page-returns mark{background:#e1ecf9;color:#1d1d1f}
.page-returns .clear-search{background:#e8e8ed;color:#606066}
.page-returns .back-to-top{border:0;border-radius:20px;color:#0066cc;background:#fff;box-shadow:0 4px 18px rgba(0,0,0,.07)}
@media(hover:hover) and (pointer:fine){.page-returns tbody tr:hover{background:#edf4fc}}

/* Standalone product and photo zoom. */
.page-product header{height:60px}
.page-product header .brand{gap:14px}
.page-product header button{background:#edf4fc;color:#0066cc;border:0;border-radius:20px;font-weight:500}
.page-product main{padding-top:30px}
.page-product .album,.page-product .info,.page-product .sku-section{border:0;border-radius:22px;padding:26px}
.page-product .photo-main{background:#fafafa;border-radius:16px}
.page-product .photo-main img{object-fit:contain}
.page-product .info h1{font-weight:600;letter-spacing:-.03em}
.page-product .price{color:#1d1d1f;font-weight:600}
.page-product .price small{color:#6e6e73;font-size:14px}
.page-product dt{color:#6e6e73}
.page-product dd{color:#1d1d1f}
.page-product .thumb[aria-pressed=true]{border-color:#0071e3}
.page-product .sku-head{background:#f5f5f7;color:#6e6e73;font-weight:500}
.page-product .sku-row{border-color:#e8e8ed}
.page-product .stock{font-weight:500;color:#507365}
.page-product .stock.neg,.page-product dd.neg{color:#a45747}
.page-product #photoDialog{background:#f5f5f7;border-radius:24px;max-height:94vh;max-height:94dvh}
.page-product #closePhoto{background:#e8e8ed;color:#6e6e73}
.page-product #toast{background:#1d1d1f;border-radius:14px}
.page-product footer{color:#6e6e73}

/* Shared password gate retains the older-browser layout and XHR login. */
.page-login .card{border:0;border-radius:24px;padding:34px;box-shadow:0 12px 40px rgba(0,0,0,.035)}
.page-login .brand{width:auto;height:auto;background:none;border-radius:0;font-size:14px;letter-spacing:1.8px;color:#1d1d1f}
.page-login h1{font-size:26px;letter-spacing:-.025em;font-weight:600}
.page-login p{color:#6e6e73}
.page-login input{background:#f9f9fb;border-color:#d2d2d7;border-radius:12px}
.page-login button{background:#0071e3;color:#fff;border-radius:24px;font-weight:500}
.page-login button:hover:not(:disabled){background:#0077ed;border-color:#0077ed}
.page-login #error{color:#a45747}

/* RFID: operational controls stay prominent, with quiet secondary information. */
.page-rfid header{height:auto;min-height:60px;padding:12px max(20px,calc((100vw - 1220px)/2));gap:14px}
.page-rfid .brand{gap:14px;min-width:0}
.page-rfid .brand b{color:#6e6e73;font-size:13px;font-weight:400;letter-spacing:0;border-left:1px solid #d2d2d7;padding-left:14px}
.page-rfid .brand>div>span{display:none}
.page-rfid .connection{background:#f0f0f3;color:#6e6e73;font-size:12px}
.page-rfid main{padding-top:26px}
.page-rfid .panel{border:0;border-radius:20px;box-shadow:none}
.page-rfid .intro h1{font-size:28px;font-weight:600}
.page-rfid .intro p,.page-rfid .intro .eyebrow{color:#6e6e73}
.page-rfid .version{background:#e8e8ed;color:#6e6e73}
.page-rfid .notice{background:#edf4fc;border:0;color:#606066;border-radius:14px;line-height:1.7}
.page-rfid nav{background:#e8e8ed;border:0;border-radius:24px;padding:5px;gap:4px}
.page-rfid nav button{background:transparent;border:0;border-radius:20px;color:#606066;font-weight:500}
.page-rfid nav button.active{background:#fff;color:#1d1d1f;box-shadow:0 1px 5px rgba(0,0,0,.05)}
.page-rfid label{color:#515159;font-size:14px;font-weight:500}
.page-rfid input,.page-rfid textarea{background:#fff;border-color:#d2d2d7;font-size:15px}
.page-rfid input::placeholder,.page-rfid textarea::placeholder{color:#86868b}
.page-rfid .stats>div{border:0;border-radius:18px}
.page-rfid .stats strong{color:#1d1d1f;font-weight:600}
.page-rfid .stats span,.page-rfid .stats small{color:#6e6e73}
.page-rfid .stats>div:last-child strong{color:#89613d}
.page-rfid .item{border:0;border-radius:18px}
.page-rfid .item img{object-fit:contain;background:#fafafa}
.page-rfid .choice img{object-fit:contain;background:#fafafa}
.page-rfid .tags span{color:#606066;background:#f0f0f3;border-radius:8px}
.page-rfid .qty{color:#0066cc;font-weight:600}
.page-rfid .barcode,.page-rfid .location{color:#6e6e73}
.page-rfid .empty{background:#fff;color:#6e6e73;border-color:#d2d2d7;border-radius:20px}
.page-rfid .empty h3{color:#515159}
.page-rfid .emptyIcon{color:#b3b3ba}
.page-rfid .liveCount:not(:empty),.page-rfid .matched{background:#edf4fc;color:#0066cc}
.page-rfid .alert,.page-rfid .review summary{color:#89613d}
.page-rfid .miss{background:#faf5ed;color:#89613d}
.page-rfid #toast{background:#1d1d1f;color:#fff;border-radius:14px}
.page-rfid footer{color:#6e6e73;border-color:#dedee3}
.page-rfid .shop-connection{padding:18px 22px}
.page-rfid .shop-connection .caption{color:#6e6e73}
.page-rfid .shop-connection b{font-weight:500}

@media(max-width:700px){
  .apple-page .apple-wordmark{font-size:11px;letter-spacing:1.3px}
  .apple-page .apple-page-label{font-size:12px;padding-left:10px}
  .apple-page header .apple-brand,.apple-page .topbar .brand{gap:10px}
  .page-billing header{flex-wrap:wrap;padding:12px 16px;gap:10px;min-height:54px}
  .page-billing header>span{display:none}
  .page-billing main{padding:16px 12px 45px}
  .page-billing section{padding:18px 16px;border-radius:18px}
  .page-billing .product span{font-size:13px;padding:9px}
  .page-billing .product small{font-size:12px}
  .page-billing .work-tabs{margin-left:0;margin-right:0;padding:5px}
  .page-billing .work-tabs button{min-width:0;font-size:12px;padding:9px 5px}
  .page-billing .cache-toolbar{gap:10px}
  .page-billing .cache-toolbar button{align-self:flex-start}
  .page-billing #login{padding:26px 22px;margin-top:30px}
  .page-product header{padding:0 16px;gap:10px}
  .page-product header button{font-size:12px;padding:8px 10px;white-space:nowrap}
  .page-product .album,.page-product .info,.page-product .sku-section{padding:20px;border-radius:20px}
  .page-product main{padding-top:18px}
  .page-login .card{padding:28px 24px}
  .page-rfid header{padding:12px 16px;gap:10px;min-height:56px}
  .page-rfid .brand{flex-basis:100%;gap:10px}
  .page-rfid .brand b{font-size:12px;padding-left:10px}
  .page-rfid main{padding:18px 16px 35px}
  .page-rfid .intro h1{font-size:25px}
  .page-rfid .panel{padding:20px;border-radius:18px}
  .page-rfid .shop-connection{padding:16px 18px}
  .page-rfid .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .page-rfid .stats>div{padding:14px 16px}
  .page-rfid .stats span{font-size:12px}
  .page-rfid .stats strong{font-size:27px;margin:6px 0}
  .page-rfid nav{gap:3px}
  .page-rfid nav button{font-size:13px;padding:9px 14px}
  .page-rfid input,.page-rfid textarea{font-size:16px}
}
@media(max-width:900px){
  .page-returns .topbar{height:48px;min-height:48px}
  .page-returns .toolbar{padding:10px 12px 8px}
  .page-returns .filter-bar{padding:0 12px 10px}
}
@media(max-width:360px){
  .page-billing .work-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-radius:18px}
  .page-product header{height:auto;min-height:60px;flex-wrap:wrap;padding-top:10px;padding-bottom:10px}
}
@media(prefers-reduced-motion:reduce){.apple-page button{transition:none}}
