/* Agent v76: screen-board proportions, content hierarchy and controls. */
body[data-agent-reference]{--ar-blue:#007bff;--ar-radius:20px;--ag-bg:#eaf7ff;--ag-panel:#ffffffc7;--ag-soft:#dfF1ff;--ag-ink:#091533;--ag-muted:#304666;--ag-line:#cce3f3;--ag-shadow:0 3px 7px #23577e10,inset 0 1px 0 #fff;background:var(--ag-bg)}
body[data-agent-reference][data-agent-theme=dark]{--ag-bg:#091827;--ag-panel:#142e43ed;--ag-soft:#193c55;--ag-ink:#f0f7ff;--ag-muted:#b8cce1;--ag-line:#34566d;--ag-shadow:0 4px 12px #0003,inset 0 1px 0 #ffffff12}
body[data-agent-reference] .agent-app-shell{max-width:620px;background:radial-gradient(ellipse at 100% 40%,#8dddf326,transparent 70%),var(--ag-bg)}
body[data-agent-reference] :is(h1,h2,h3){font-weight:780;letter-spacing:-.035em}
body[data-agent-reference] h1{font-size:26px;line-height:1.15}body[data-agent-reference] h2{font-size:20px}
body[data-agent-reference] .button{border-radius:17px;min-height:46px;font-weight:650}
body[data-agent-reference] .button.primary{background:linear-gradient(180deg,#009dff,#0071ff);border:1px solid #0084ff;box-shadow:0 3px 6px #0077ff28,inset 0 1px 1px #ffffff60}
body[data-agent-reference] :is(.panel,.job-card,.offer-card,.workflow-panel,.profile-card,.shop-product,.shop-order,.affiliate-card){border-radius:var(--ar-radius);border-color:var(--ag-line);box-shadow:var(--ag-shadow)}
body[data-agent-reference] .app-header{padding:calc(18px + env(safe-area-inset-top)) 18px 10px;grid-template-columns:minmax(0,1fr) 42px 42px;gap:8px}
body[data-agent-reference] .app-header>a{display:flex;gap:5px;flex-wrap:wrap;align-items:center;align-content:center;justify-content:start}
body[data-agent-reference] .app-header img{width:125px}
body[data-agent-reference] .ar-agent-badge{display:inline-flex;align-items:center;justify-content:center;padding:3px 8px;border-radius:12px;background:linear-gradient(#e0f3ff,#b8e4ff);color:#071a36;font-size:10px!important;font-weight:800;letter-spacing:.04em!important}
body[data-agent-reference] #agentRefresh{display:none}body[data-agent-reference] #agentMessages{grid-column:2}body[data-agent-reference] #agentProfile{grid-column:3}
body[data-agent-reference] #agentWalletCredit{display:none}body[data-agent-reference][data-agent-view=home] #agentWalletCredit{display:flex;margin-top:6px;border-radius:19px;min-height:62px}
body[data-agent-reference] #agentMatchingStatus{font-size:11px;padding:8px 12px;margin-bottom:5px;max-height:65px;overflow:auto}
body[data-agent-reference] #agentContent{padding:8px 16px calc(105px + env(safe-area-inset-bottom))}
body[data-agent-reference] .page-head{margin:4px 0 18px}body[data-agent-reference] .page-head h1{margin:0 0 5px}body[data-agent-reference] .page-head p{font-size:13px;margin:0}
body[data-agent-reference] .app-nav{bottom:0;max-width:620px;width:100%;border-radius:22px 22px 0 0;padding:5px 8px calc(6px + env(safe-area-inset-bottom))!important;box-shadow:0 -2px 12px #325d7d0a;background:var(--ag-panel);border-color:var(--ag-line);min-height:72px}
body[data-agent-reference] .app-nav button{min-height:54px;border-radius:17px;font-size:10px;gap:4px}body[data-agent-reference] .app-nav .icon{width:23px;height:23px}
body[data-agent-reference] .app-nav button.active{background:linear-gradient(#def5ff,#bfe9ff);color:#0068ff}
.ar-art{display:block;width:90px;height:90px;flex:none;background:url('../assets/brand/customer-reference-assets.png') 50% 0/300% 200% no-repeat}.ar-art.towels{background-position:50% 100%}.ar-art.wallet{background-position:0 100%}
.ar-offline-banner{border:1px solid #ffc7cb;border-radius:20px;background:linear-gradient(135deg,#ffe6e8,#fff1ef);color:#b21c26;padding:18px;margin-bottom:12px}.ar-offline-banner strong{font-size:23px}.ar-offline-banner p{margin:4px 0 0}
body[data-agent-reference] .overview-hero{padding:14px;display:flex;align-items:center;gap:8px;min-height:92px;margin-bottom:14px;background:var(--ag-panel)}
body[data-agent-reference] .overview-hero>div:first-child{display:grid;grid-template-columns:58px 1fr;column-gap:10px;align-items:center;flex:1;min-width:0}
body[data-agent-reference] .overview-hero .ag-avatar{grid-column:1;grid-row:1/4;width:58px;height:64px;border-radius:18px;margin:0;object-fit:cover}
body[data-agent-reference] .overview-hero h1{grid-column:2;grid-row:1;margin:0;font-size:18px;text-transform:none;line-height:1.2}
body[data-agent-reference] .overview-hero p{grid-column:2;grid-row:2;margin:4px 0 0;font-size:12px}
body[data-agent-reference] .overview-hero .online-label{display:none}
body[data-agent-reference] .availability{border:0;padding:0;gap:4px;min-width:70px}.availability>small{display:none}body[data-agent-reference] .availability>span{font-size:10px}
body[data-agent-reference] .availability .switch{width:50px;height:29px;min-height:29px;padding:3px}.availability .switch i{width:23px;height:23px}body[data-agent-reference] .availability .switch.on i{transform:translateX(21px)}
body[data-agent-reference] .overview-metrics{background:none;border:0;padding:0;gap:9px;margin:0 0 14px;box-shadow:none}
body[data-agent-reference] .overview-metrics>button{background:#c9f6ec;border:0;border-radius:18px;padding:10px 4px;min-height:91px;gap:2px;color:#073c39}
body[data-agent-reference] .overview-metrics>button:nth-child(2){background:#fff0cd;color:#63400a}body[data-agent-reference] .overview-metrics>button:nth-child(3){background:#eae2ff;color:#3d276b}
body[data-agent-reference] .overview-metrics .overview-icon{width:26px;height:26px;background:none;border:0;padding:0;margin:0;box-shadow:none}.overview-metrics .overview-icon .icon{width:23px;height:23px}
body[data-agent-reference] .overview-metrics small{font-size:11px;color:inherit}body[data-agent-reference] .overview-metrics strong{font-size:25px;color:inherit}
body[data-agent-reference] .overview-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0 0 15px}
body[data-agent-reference] .overview-shortcuts>button{padding:10px 5px;min-height:92px;border-radius:18px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:5px;background:var(--ag-panel)}
body[data-agent-reference] .overview-shortcuts>button:nth-child(2){background:#f0eaff;color:#4f3384}body[data-agent-reference] .overview-shortcuts>button:nth-child(3){background:#fff7e5;color:#6c4b0c}
body[data-agent-reference] .overview-shortcuts .overview-icon{width:33px;height:33px;border:0;background:none;padding:0;margin:0;box-shadow:none}
body[data-agent-reference] .overview-shortcuts>button>.icon,body[data-agent-reference] .overview-shortcuts small{display:none}body[data-agent-reference] .overview-shortcuts strong{font-size:12px;line-height:1.2}
body[data-agent-reference] .overview-workflows{grid-template-columns:1fr;gap:12px}body[data-agent-reference] .workflow-panel{padding:12px}
body[data-agent-reference] .workflow-panel header h3{font-size:15px}body[data-agent-reference] .workflow-panel header .text-button{font-size:12px}
body[data-agent-reference] .workflow-job{padding:10px 5px;min-height:105px;gap:10px;background:none;border:0;border-top:1px solid var(--ag-line);border-radius:0}
.ar-workflow-art{width:90px;flex:none}.ar-workflow-art img{width:90px;height:90px;object-fit:contain}.ar-workflow-art .ar-art{width:90px;height:90px}
body[data-agent-reference] .workflow-job strong{font-size:16px}.ar-quota-card{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--ag-line);background:var(--ag-panel);padding:18px;border-radius:20px;margin-bottom:14px}.ar-quota-card h2{margin:0 0 8px}.ar-quota-card strong{font-size:38px}.ar-quota-card p{font-size:12px}.ar-quota-card .ar-art{width:115px;height:115px}
body[data-agent-reference] .filters{padding:3px;background:none;border:0;gap:3px;margin:12px 0}.filters button{white-space:nowrap}
body[data-agent-reference] .filters button{border-radius:18px;min-height:37px;font-size:11px;min-width:58px;padding:8px;background:var(--ag-soft)}
body[data-agent-reference] .overview-mall{min-height:88px;background:linear-gradient(110deg,#d8f9f7,#b9eaf2);padding:12px 15px}.overview-mall strong{font-size:18px}.overview-mall small{font-size:12px}
.ar-quota-strip{display:flex;gap:10px;align-items:center;background:var(--ag-soft);border-radius:17px;padding:9px 12px;margin:12px 0}.ar-quota-strip .ar-art{width:47px;height:47px}.ar-quota-strip small{display:block;font-size:12px;margin-top:2px}
body[data-agent-reference] .job-card{padding:12px;margin:12px 0}body[data-agent-reference] .job-open{padding:0;gap:10px;grid-template-columns:42px minmax(0,1fr) auto 14px;align-items:start}
body[data-agent-reference] .job-open .job-symbol{width:42px;height:44px;background:none;padding:0}.job-symbol img{width:100%;height:100%;object-fit:contain}body[data-agent-reference] .job-symbol .ar-art{width:44px;height:44px}
body[data-agent-reference] .job-copy strong{font-size:17px}body[data-agent-reference] .job-copy>span{font-size:12px}.job-copy small{font-size:10px}
body[data-agent-reference] .job-card .pill{font-size:10px;padding:5px 8px;white-space:normal;max-width:85px;line-height:1.2}
body[data-agent-reference] .ag-job-current{border:0;background:var(--ag-soft);border-radius:14px;padding:10px;margin:12px 0;font-size:12px}.ag-job-current strong{font-size:15px}
body[data-agent-reference] .timeline{padding:8px 0 0;margin:8px 0}.timeline li{min-width:0}body[data-agent-reference] .timeline li{font-size:9px}.timeline li>span{width:18px;height:18px}
body[data-agent-reference] .ag-job-actions{gap:8px;padding-top:10px}.ag-job-actions .button{font-size:12px}
body[data-agent-reference] .ag-search{border-radius:17px!important;background:var(--ag-panel)!important;min-height:42px!important;font-size:13px}
body[data-agent-reference][data-agent-view=detail] #agentContent{padding-top:calc(12px + env(safe-area-inset-top))}
body[data-agent-reference] .detail-back{position:relative;min-height:45px;margin-bottom:13px}.ar-task-brand{position:absolute;left:54px;right:54px;display:flex;justify-content:center;align-items:center;gap:4px;pointer-events:none}.ar-wordmark{width:125px;height:auto}
body[data-agent-reference] .detail-back>div:not(.ar-task-brand){display:none}body[data-agent-reference] .guide-chat{margin-left:auto;width:44px;overflow:hidden;font-size:0;padding:12px}.guide-chat:after{content:'☏';font-size:21px}
body[data-agent-reference] .ag-task-heading{text-align:center;margin:12px 0 16px}.ag-task-heading>small{display:none}body[data-agent-reference] .ag-task-heading h2{font-size:23px;margin:6px 0}
body[data-agent-reference] .ag-task-progress{gap:0;background:none;border:0;margin-bottom:18px;padding:0}
body[data-agent-reference] .ag-task-progress>li{position:relative;border:0!important;background:none!important;font-size:10px;padding:25px 0 0;text-align:center;flex:1;color:var(--ag-muted)}
body[data-agent-reference] .ag-task-progress>li:before{content:'';width:17px;height:17px;border:2px solid #bdcedc;border-radius:50%;position:absolute;left:calc(50% - 9px);top:0;background:var(--ag-bg);z-index:1}
body[data-agent-reference] .ag-task-progress>li:not(:last-child):after{content:'';position:absolute;left:calc(50% + 11px);right:calc(-50% + 11px);top:8px;height:2px;background:#c1d7e6}
body[data-agent-reference] .ag-task-progress>li[aria-current=step]:before{background:#008bff;border-color:#008bff;box-shadow:0 0 0 4px #008bff15}
body[data-agent-reference] .ag-order-details{margin-top:18px;border-radius:16px;font-size:12px}.ag-order-details summary{font-size:12px}
body[data-agent-reference] .ar-process-panel{padding:0;border:0;background:none;box-shadow:none}
.ar-order-summary{display:flex;align-items:center;gap:10px;background:var(--ag-panel);border:1px solid var(--ag-line);padding:10px;border-radius:18px;text-align:left}.ar-order-summary .ar-art{width:48px;height:48px}.ar-order-summary small{display:block;font-size:11px;line-height:1.6}
body[data-agent-reference] .ag-process-art{width:215px;height:215px;margin:22px auto 16px;border-width:7px}body[data-agent-reference] .ag-process-art img,body[data-agent-reference] .ag-process-art .ag-art{width:150px;height:150px}
.ar-process-status{display:table;margin:0 auto;padding:4px 15px;border-radius:14px;background:var(--ag-soft);font-size:12px;font-weight:650}
body[data-agent-reference] .ar-process-panel .processing-clock{margin:4px 0 16px;padding:4px;background:none;border:0;display:flex;flex-direction:column}
body[data-agent-reference] .ar-process-panel .processing-clock>strong{order:2;display:block;font-size:12px;font-weight:500}.processing-clock .processing-countdown{order:1}
body[data-agent-reference] .ar-process-panel .processing-countdown{font-size:35px;font-weight:800;letter-spacing:-.04em}.ar-process-panel .processing-clock small{order:3;display:block;padding:10px;border-radius:14px;background:var(--ag-soft);margin-top:12px;font-size:11px}
body[data-agent-reference] .ar-process-panel #agentJobAction{margin:10px 0 8px;min-height:47px}.ar-process-panel .ar-message-customer{color:var(--ag-blue);font-size:14px}
.ar-verification-art .ar-art{width:155px;height:155px;margin:0 auto 14px}body[data-agent-reference] .handover-highlight>img{height:110px;width:110px;object-fit:contain}.ar-basket-photo img{width:64px;height:75px;object-fit:contain}
body[data-agent-reference] .ag-audit-row{padding:12px;background:var(--ag-panel);gap:10px;border-radius:18px}.ag-audit-row>div>strong{font-size:16px}
body[data-agent-reference] .ag-counter{flex:none!important;gap:7px}body[data-agent-reference] .ag-counter button{width:34px;height:34px;min-height:34px;font-size:23px}.ag-counter button:last-child{background:#008cff;color:#fff}body[data-agent-reference] .ag-counter input{width:38px;border:0;min-height:38px;background:none;padding:0!important;font-size:22px}
.ar-audit-photo{display:flex;position:relative;align-items:center;gap:8px;flex-wrap:wrap;padding:14px;border:1px dashed var(--ag-blue);border-radius:16px;background:var(--ag-soft);overflow:hidden;cursor:pointer}.ar-audit-photo>span{font-size:30px}.ar-audit-photo small{width:100%;font-size:11px}.ar-audit-photo input{position:absolute;inset:0;opacity:0;cursor:pointer}
.ar-inspection-photo{display:block;width:100%;padding:0;overflow:hidden;border-radius:18px;border:1px solid var(--ag-line);background:var(--ag-soft);position:relative;margin-bottom:15px}.ar-inspection-photo img{display:block;width:100%;height:190px;object-fit:cover}.ar-inspection-photo span{position:absolute;bottom:0;left:0;right:0;padding:8px;background:#0b233e99;color:white;font-size:12px}
body[data-agent-reference] :is(.handover-keypad,.ag-design-dialog,.finance-dialog,.shop-dialog,.agent-id-dialog){border-radius:22px;max-width:620px}
body[data-agent-reference] .handover-keypad{padding:24px}.handover-keypad #handoverDigits{letter-spacing:20px;text-align:center;font-size:30px;border-color:var(--ag-blue)}
body[data-agent-reference] .number-pad{gap:7px}.number-pad button{min-height:48px;font-weight:700}
body[data-agent-reference] .ag-profile-menu{gap:0;overflow:hidden;background:var(--ag-panel);border:1px solid var(--ag-line);border-radius:18px;margin:14px 0}
body[data-agent-reference] .ag-profile-menu button{min-height:48px;border:0;border-bottom:1px solid var(--ag-line);border-radius:0;background:none;box-shadow:none;padding:13px 16px;font-size:14px;text-align:left}
body[data-agent-reference] .ag-profile-menu button:after{content:'›';float:right}.ar-permissions>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0;border-bottom:1px solid var(--ag-line);font-size:13px}.ar-permissions>div:last-child{border:0}.ar-permissions span{font-size:11px}.ar-permitted{color:#008663}
body[data-agent-reference] #agentLogout{background:#ffebee;color:#c62539;border:1px solid #f3cdd3;margin-top:18px}
.ar-page-hero{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.ar-page-hero h1{margin:0 0 5px}.ar-page-hero p{font-size:13px;margin:0}
body[data-agent-reference] .shop-tabs{background:none;border:0;padding:0;margin-bottom:14px}.shop-tabs button{font-size:11px}
body[data-agent-reference] .shop-hero{padding:0 0 16px;min-height:95px}.shop-hero>div>span{display:none}body[data-agent-reference] .shop-hero h2{font-size:27px;margin:0 0 5px}.shop-hero p{font-size:12px}
body[data-agent-reference] .shop-hero img{width:80px;height:80px;object-fit:contain;border-radius:20px}
body[data-agent-reference] .ag-stock-grid{gap:10px;margin:0 0 14px}.ag-stock-grid article{padding:14px!important}.ag-stock-grid h3{font-size:14px}.ag-stock-grid article>.shop-product-art{width:54px;height:54px}.ag-stock-grid strong{font-size:24px}.ag-stock-grid p{font-size:11px}
.ar-stock-warning{padding:14px;border-radius:18px;background:#fff0d9;color:#603b09;border:1px solid #ffdfb7;margin:12px 0}.ar-stock-warning p{font-size:12px;margin:4px 0}
body[data-agent-reference] .shop-grid{grid-template-columns:1fr}.shop-product{min-width:0}body[data-agent-reference] .shop-product{display:grid;grid-template-columns:95px minmax(0,1fr);padding:12px;gap:10px;align-items:center}
body[data-agent-reference] .shop-art{height:110px;min-height:0;padding:8px;position:relative;border-radius:15px}.shop-art>span{font-size:9px}.shop-art .shop-favorite{width:25px;height:25px;min-height:25px;right:2px;top:2px;padding:5px}
body[data-agent-reference] .shop-product-art{width:100%;height:90px}.shop-product-copy small{font-size:9px}.shop-product-copy .shop-availability,.shop-product-copy .shop-unit-caption{font-size:11px;margin:5px 0}
body[data-agent-reference] .shop-product-copy h3{font-size:16px;margin:0 0 4px}.shop-product-copy>strong{font-size:20px}.shop-product-actions .shop-stepper{min-width:110px}
body[data-agent-reference] .shop-product-actions .button{min-height:36px;font-size:12px;padding:6px 12px}.shop-product-actions .shop-stepper button{min-height:34px;min-width:32px}
body[data-agent-reference] .shop-cart-bar{bottom:calc(82px + env(safe-area-inset-bottom));min-height:54px;border-radius:17px;padding:9px 14px;font-size:13px}.shop-cart-bar .shop-cart-symbol{display:none}.shop-cart-bar strong{font-size:14px}.shop-cart-bar small{font-size:11px}
body[data-agent-reference] .shop-search{gap:8px}.shop-search-field{grid-column:1/-1}.shop-category{font-size:11px}body[data-agent-reference] .shop-search-button{min-height:40px;font-size:12px}
body[data-agent-reference] .shop-order header{gap:10px}.shop-order{font-size:12px}.shop-order h3{font-size:15px}
body[data-agent-reference] .finance-balance{background:var(--ag-panel);padding:20px;border-radius:21px;margin-bottom:14px}.finance-balance>strong{font-size:37px!important}.finance-balance>img{width:95px!important;right:12px;top:-70px;opacity:1}.finance-balance>small,.finance-balance>p{font-size:11px}
.ar-wallet-actions{display:flex;gap:8px;margin-top:15px}.ar-wallet-actions>.button{width:auto;flex:1;font-size:13px;white-space:nowrap;min-width:0;padding:10px 8px}
.ar-earnings-summary{display:flex;width:100%;align-items:center;justify-content:space-between;text-align:left;background:var(--ag-panel);border:1px solid var(--ag-line);border-radius:18px;padding:16px;margin:12px 0;color:var(--ag-ink)}.ar-earnings-summary strong{display:block;font-size:24px}.ar-earnings-summary span{font-size:12px}
.ar-wallet-overview h2{font-size:17px;margin:20px 0 10px}.ar-recent-transactions{border:1px solid var(--ag-line);border-radius:18px;background:var(--ag-panel);padding:4px 12px}.ar-recent-transactions .finance-row{border:0;border-bottom:1px solid var(--ag-line);padding:12px 0;box-shadow:none;background:none}.ar-recent-transactions .finance-row:last-child{border-bottom:0}.ar-recent-transactions strong{font-size:13px}.ar-recent-transactions small{font-size:10px}.ar-bank-settings{margin-top:14px}
body[data-agent-reference] .ag-finance-tabs{font-size:12px;border:0;background:none;padding:0}.ag-finance-tabs button{min-height:37px}.finance-transactions .finance-row{font-size:12px}
body[data-agent-reference] .ag-topup-art{height:145px}.ag-topup-art .ag-art{height:145px;width:145px}
body[data-agent-reference] .ag-topup-method{padding:16px;border:1px solid var(--ag-line);border-radius:16px;background:var(--ag-panel);margin:10px 0;font-weight:650}.ag-topup-method:has(:checked){border-color:#008bff;background:var(--ag-soft)}
body[data-agent-reference] .agent-id-dialog{width:calc(100% - 20px);padding:12px;background:var(--ag-bg)}.agent-digital-id{border-radius:28px!important;overflow:hidden}.agent-id-photo{border-radius:24px!important}.agent-id-main{background:linear-gradient(140deg,#eefaff,#a3d8fb);color:#071d39;border-radius:24px}.agent-id-main h1{font-size:29px}.agent-id-permissions{background:var(--ag-panel)}
body[data-agent-reference] .agent-chat-screen .ag-contact-banner{margin:8px 14px;border-radius:15px;background:#ffe3e8;font-size:12px;text-align:center;color:#b30b24;padding:10px}
body[data-agent-reference] .agent-chat-screen .rich-message-log{background:var(--ag-bg);background-image:none}.agent-chat-screen .rich-message{border-radius:20px!important}.agent-chat-screen .customer-chat-header{background:var(--ag-panel)}
body[data-agent-reference] .evidence-camera{padding:0;position:fixed;inset:0;width:100%;max-width:620px;height:100dvh;max-height:100dvh;border-radius:0;background:#102234;color:white}.evidence-camera header{padding:14px;position:absolute;top:env(safe-area-inset-top);left:0;right:0;z-index:2}.evidence-camera>p{padding:0 20px}.evidence-camera video{width:100%;height:70dvh;object-fit:cover}.evidence-camera #takeEvidencePhoto{margin:15px;width:calc(100% - 30px)}
body[data-agent-reference] .pwa-setup-launcher{bottom:calc(84px + env(safe-area-inset-bottom))}
body[data-agent-reference][data-agent-theme=dark] :is(.ar-offline-banner,.ar-stock-warning){background:#3a2c2e;color:#ffdad0;border-color:#69433e}
body[data-agent-reference][data-agent-theme=dark] .overview-shortcuts>button{background:var(--ag-panel);color:var(--ag-ink)}
@media(min-width:650px){body[data-agent-reference] #agentContent{padding-left:24px;padding-right:24px}.ar-process-panel .ag-process-art{width:240px;height:240px}}
@media(max-width:350px){body[data-agent-reference] .app-header img{width:110px}.ar-task-brand .ar-wordmark{width:105px}.ar-task-brand .ar-agent-badge{font-size:8px!important;padding:3px}.ag-job-current{flex-wrap:wrap}.ag-audit-row{flex-wrap:wrap}.ag-audit-row .ag-counter{margin-left:auto}.overview-hero .ag-avatar{width:46px!important}.overview-hero>div:first-child{grid-template-columns:46px 1fr!important}.overview-hero h1{font-size:15px!important}}
@media(prefers-reduced-motion:reduce){body[data-agent-reference] *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(prefers-reduced-transparency:reduce){body[data-agent-reference]{--ag-panel:#fff}body[data-agent-reference][data-agent-theme=dark]{--ag-panel:#142e43}body[data-agent-reference] .app-nav{backdrop-filter:none}}
/* Keep diagnostics available without displacing the task's first viewport. */
.ar-location-details{margin:20px 0;font-size:11px;color:var(--ag-muted)}.ar-location-details summary{min-height:44px;padding:12px}.ar-location-details #agentMatchingStatus{margin:0}
body[data-agent-reference] .agent-home-view[data-availability=offline] :is(.overview-metrics,.overview-shortcuts){display:none}
body[data-agent-reference] .agent-home-view[data-availability=offline] .overview-workflows .workflow-panel:nth-child(2){display:none}
body[data-agent-reference] .agent-home-view[data-availability=offline] .overview-hero{margin-bottom:12px}
body[data-agent-reference] .page-head:has(.ar-art){display:flex;align-items:center;justify-content:space-between;min-height:90px}
body[data-agent-reference] .page-head>.ar-art{width:94px;height:94px}
body[data-agent-reference] .ar-wallet-actions button{min-height:46px;border-radius:17px}
body[data-agent-reference] .finance-balance>small{display:none}.finance-balance>p{margin:4px 0}
body[data-agent-reference] .ag-audit-row{display:flex;flex-wrap:wrap}.ag-audit-row .ar-basket-photo{width:65px;flex:none}.ag-audit-row>div:not(.ag-counter){flex:1;min-width:110px}.ag-audit-row .ag-counter{margin-left:auto}
body[data-agent-reference] :is(.finance-dialog,.ag-design-dialog):has(form),body[data-agent-reference] .ag-design-dialog:has([data-theme]){position:fixed;inset:0;margin:auto;padding:20px 18px;width:100%;height:100dvh;max-height:100dvh;max-width:620px;border:0;border-radius:0;background:var(--ag-bg);padding-top:calc(20px + env(safe-area-inset-top));padding-bottom:calc(24px + env(safe-area-inset-bottom))}
body[data-agent-reference] :is(.finance-dialog,.ag-design-dialog)>header{position:sticky;top:0;z-index:3;background:var(--ag-bg);padding-bottom:12px;gap:10px}.ag-design-dialog>header h2,.finance-dialog>header h2{font-size:20px}
body[data-agent-reference] .agent-auth{min-height:100dvh;padding:calc(35px + env(safe-area-inset-top)) 24px 30px}
body[data-agent-reference] .agent-auth .auth-brand{padding:12px 0 8px}.agent-auth .auth-brand>p,.agent-auth .auth-brand h1,.agent-auth .auth-brand .ag-art{display:none}
body[data-agent-reference] .agent-auth .auth-card{border:0;box-shadow:none;padding:20px 0;background:none}.agent-auth .auth-card h2{font-size:30px;max-width:290px;margin:16px 0 26px}
body[data-agent-reference] .auth-card>p:not(.error){display:none}.agent-auth .auth-card label{font-size:14px;font-weight:650}.agent-auth .auth-card input{background:var(--ag-panel)!important}.agent-auth .auth-card>a{display:block;text-align:center;margin:28px 0 0;padding:17px;border:1px solid var(--ag-line);border-radius:18px;font-size:14px}.agent-auth .text-button{display:block;margin:16px auto}
body[data-agent-reference] .auth-card>button[type=submit]{margin-top:16px;min-height:49px;width:100%}
body[data-agent-reference] .ar-process-panel .processing-clock>strong{display:block!important}
.ar-amount-choices{display:flex;gap:6px;margin:12px 0 24px}.ar-amount-choices button{flex:1;min-height:40px;border:1px solid var(--ag-line);border-radius:18px;background:var(--ag-panel);color:var(--ag-ink);font-size:12px;box-shadow:var(--ag-shadow)}.ar-amount-choices [aria-pressed=true]{background:#008bff;color:white}
.ar-location-details{max-width:580px;margin:0 auto 100px;padding:0 18px}.ar-location-details:not([open]) #agentMatchingStatus{display:none}
body[data-agent-reference] :is(.agent-photo-dialog,.shop-dialog:has([data-product-add])){position:fixed;inset:0;width:100%;max-width:620px;height:100dvh;max-height:100dvh;border-radius:0;margin:auto;background:var(--ag-bg);padding-top:calc(16px + env(safe-area-inset-top))}
body[data-agent-reference] .shop-dialog:has([data-product-add]) .shop-art{height:270px;background:none}.shop-dialog:has([data-product-add]) .shop-product-art{height:260px}.shop-dialog:has([data-product-add]) h2{font-size:27px}
body[data-agent-reference] .agent-photo-dialog .photo-view{border-radius:20px;overflow:auto;max-height:70dvh}.agent-photo-dialog .photo-view img{object-fit:contain}
body[data-agent-reference] .ag-task-heading>.guide-eyebrow{display:none}.ar-task-caption{font-size:10px;margin:7px 0 16px;color:var(--ag-muted)}
body[data-agent-reference] .ag-task-progress>li{position:relative;border:0!important;background:none!important;padding:0!important;font-size:10px;flex:1;text-align:center;list-style:none;min-width:0;color:var(--ag-muted)}
body[data-agent-reference] .ag-task-progress>li:before{display:none}.ag-task-progress>li>span{display:grid;place-items:center;width:22px;height:22px;margin:0 auto 7px;border:2px solid #c1d7e6;border-radius:50%;background:var(--ag-bg);position:relative;z-index:1;font-size:11px}
body[data-agent-reference] .ag-task-progress>li[aria-current=step]>span,body[data-agent-reference] .ag-task-progress>li.done>span{background:#008bff;border-color:#008bff;color:white}
body[data-agent-reference] .ag-task-progress>li:not(:last-child):after{left:calc(50% + 14px);right:calc(-50% + 14px);top:10px}.ag-task-progress>li.done:after{background:#008bff!important}
body[data-agent-reference][data-agent-view=detail] .ag-process-art{width:195px;height:195px;margin:17px auto 12px}body[data-agent-reference][data-agent-view=detail] .ag-process-art img{width:135px;height:135px}
body[data-agent-reference] .ag-task-heading{margin:8px 0 14px}body[data-agent-reference] .ar-process-panel .processing-clock{margin-bottom:4px}
body[data-agent-reference] .ag-design-dialog:has([data-product-add]){position:fixed;inset:0;width:100%;max-width:620px;height:100dvh;max-height:100dvh;border-radius:0;margin:auto;background:var(--ag-bg)}
body[data-agent-reference] .ag-design-dialog:has([data-product-add]) .shop-art{height:280px;background:none;display:grid;place-items:center}.ag-design-dialog:has([data-product-add]) .shop-product-art{height:260px;width:260px}.ag-design-dialog:has([data-product-add]) h2{font-size:26px}
body[data-agent-reference] .pwa-setup{background:var(--ag-bg);color:var(--ag-ink);border-color:var(--ag-line);border-radius:25px}.pwa-setup .pwa-primary{background:linear-gradient(#009dff,#0071ff);border-radius:17px}.pwa-setup .pwa-steps{background:var(--ag-panel);border-radius:20px;padding:15px}.pwa-setup .pwa-bell{color:#008bff}
body[data-agent-reference] .shop-search-field input{padding-left:44px!important}.shop-search-field .shop-icon{pointer-events:none}
body[data-agent-reference] .shop-tabs{display:flex!important;gap:4px!important}.shop-tabs>button{min-width:0!important;flex:1;padding:8px 5px!important;font-size:10px!important}
body[data-agent-reference] .agent-chat-open .detail-back{display:none}body[data-agent-reference] .conversation-row{border:1px solid var(--ag-line);background:var(--ag-panel);border-radius:19px;padding:14px;margin:9px 0;box-shadow:var(--ag-shadow)}.conversation-row h3{font-size:17px;margin:0 0 3px}.conversation-row p{font-size:12px;margin:6px 0 0;line-height:1.4}.conversation-row small{font-size:11px}
body[data-agent-reference] .ag-topup-method input{margin-right:12px}
body[data-agent-reference] #agentStatus:not(:empty){background:#dbf7eb;color:#075641;border:1px solid #a8e3ca;border-radius:16px;padding:12px 16px;margin:8px 16px;font-size:13px}
body[data-agent-reference][data-agent-theme=dark] #agentStatus:not(:empty){background:#143d35;color:#a9f4d7;border-color:#317563}
body[data-agent-reference] .ag-design-dialog:has([data-theme])>div{display:grid;gap:8px}.ag-design-dialog:has([data-theme]) h3{font-size:16px;margin:18px 0 0}.ag-design-dialog:has([data-theme]) p{font-size:13px;padding:12px;border-radius:16px;background:var(--ag-panel);border:1px solid var(--ag-line);margin:0}
/* Home is a dedicated reference layout, not the legacy dashboard restyled. */
body[data-agent-reference][data-agent-view=home] #agentWalletCredit{display:none}
body[data-agent-reference] .app-header>a{flex-direction:row;align-items:center;justify-content:flex-start;align-content:center}
body[data-agent-reference] .app-header>a img{margin:0}
.ar-home-board{display:grid;gap:12px}.ar-home-board button{font-family:inherit;cursor:pointer;color:var(--ag-ink)}
.ar-home-wallet{display:flex;align-items:center;gap:14px;background:linear-gradient(110deg,var(--ag-panel),var(--ag-soft));border:1px solid var(--ag-line);border-radius:20px;padding:12px 16px;min-height:66px;box-shadow:var(--ag-shadow);text-align:left;width:100%}.ar-home-wallet>span:first-child{font-size:32px;color:var(--ag-muted)}.ar-home-wallet>span:last-child{margin-left:auto;font-size:24px}.ar-home-wallet small{display:block;font-size:12px}.ar-home-wallet strong{font-size:23px}
body[data-agent-reference] .ar-home-board .ar-home-identity{display:flex;align-items:center;gap:12px;margin:0;padding:12px;min-height:83px;background:var(--ag-panel);border-radius:21px;box-shadow:var(--ag-shadow)}
body[data-agent-reference] .ar-home-board .ar-home-identity>img{height:60px;width:54px;object-fit:cover;border-radius:17px;flex:none}
body[data-agent-reference] .ar-home-board .ar-home-identity>div{display:block;min-width:0;flex:1;grid-template-columns:none}
body[data-agent-reference] .ar-home-board .ar-home-identity h1{font-size:17px;margin:0;line-height:1.25}
body[data-agent-reference] .ar-home-board .ar-home-identity p{font-size:12px;margin:5px 0 0}
body[data-agent-reference] .ar-home-board .ar-home-identity .ar-home-availability{flex:none;display:flex;align-items:center;gap:5px;padding:5px 6px;background:#d5f8e7;border-radius:25px;color:#075b3b;font-size:10px}
body[data-agent-reference] .ar-home-board .switch{width:41px;height:25px;min-height:25px;padding:3px;background:#cbd4df}
body[data-agent-reference] .ar-home-board .switch i{width:19px;height:19px}.ar-home-board .switch.on{background:#00cc8b!important}body[data-agent-reference] .ar-home-board .switch.on i{transform:translateX(16px)}
.ar-home-statistics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.ar-home-statistics button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:0;border-radius:18px;background:#c8f6eb;color:#06463b;min-height:90px;padding:8px}.ar-home-statistics button:nth-child(2){background:#fff0cc;color:#613a05}.ar-home-statistics button:nth-child(3){background:#e9e0ff;color:#45246e}.ar-home-statistics button>span{font-size:25px;line-height:1}.ar-home-statistics small{font-size:11px;color:inherit!important}.ar-home-statistics strong{font-size:25px}
.ar-home-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.ar-home-actions button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:87px;background:var(--ag-panel);border:1px solid var(--ag-line);border-radius:19px;box-shadow:var(--ag-shadow);padding:10px 4px}.ar-home-actions button:nth-child(2){background:#fff3db}.ar-home-actions button:nth-child(4){background:#eee6ff}.ar-home-actions span{font-size:30px;line-height:1;color:#008bff}.ar-home-actions strong{font-size:11px}
.ar-home-current{display:grid;gap:12px}.ar-home-current>h2{font-size:18px;margin:2px 0}.ar-live-job{display:flex;align-items:center;gap:13px;width:100%;min-height:137px;padding:15px 12px;text-align:left;border:1px solid var(--ag-line);border-radius:22px;background:linear-gradient(120deg,var(--ag-panel),var(--ag-soft));box-shadow:var(--ag-shadow)}.ar-live-art{width:100px;flex:none}.ar-live-art img,.ar-live-art .ar-art{width:100px;height:100px;object-fit:contain}.ar-live-copy{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}.ar-live-copy>small{font-size:10px;background:#c4f6ed;color:#00574c!important;border-radius:14px;padding:4px 9px;align-self:flex-start}.ar-live-copy>strong{font-size:24px;line-height:1.15}.ar-live-copy>span{font-size:12px;line-height:1.3}.ar-live-job>span:last-child{font-size:25px;color:var(--ag-muted)}
.ar-home-offline{display:grid;gap:5px;padding:19px;border:1px solid #ffd2d7;border-radius:21px;background:#ffe7eb;color:#b31c29}.ar-home-offline strong{font-size:24px}.ar-home-offline span{font-size:13px}
.ar-home-quota{display:flex;align-items:center;justify-content:space-between;padding:18px;background:var(--ag-panel);border:1px solid var(--ag-line);border-radius:21px;min-height:145px}.ar-home-quota h2{margin:0 0 10px;font-size:19px}.ar-home-quota strong{font-size:40px}.ar-home-quota p{font-size:11px;margin:5px 0}.ar-home-quota .ar-art{width:115px;height:115px}
.ar-home-empty{text-align:center;padding:18px;border:1px solid var(--ag-line);border-radius:20px;background:var(--ag-panel)}.ar-home-empty .ar-art{margin:auto;animation:ar-empty-basket-float 3.6s ease-in-out infinite;transform-origin:50% 80%}.ar-home-empty>strong{display:block;font-size:18px}.ar-home-empty p{font-size:12px}
@keyframes ar-empty-basket-float{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-7px) rotate(1deg)}}
html[data-agent-page-hidden=true] .ar-home-empty .ar-art{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.ar-home-empty .ar-art{animation:none;transform:none}}
.ar-release{text-align:center;font-size:10px;color:var(--ag-muted);margin:0 0 8px}
body[data-agent-reference][data-agent-theme=dark] .ar-home-actions button{background:var(--ag-panel)}
body[data-agent-reference] #arVersionControl{display:block;margin:0 16px 10px;text-align:right;font-size:10px;color:var(--ag-muted);background:none;border:0;min-height:32px}
.ar-home-actions .icon{width:30px;height:30px}.ar-home-statistics .icon{width:23px;height:23px}.ar-home-wallet .icon{width:28px;height:28px}
/* Explicit geometry prevents legacy switch min-width and translation rules mixing. */
body[data-agent-reference] #agentOnlineToggle{position:relative;display:block;flex:none;width:56px;min-width:56px;height:44px;min-height:44px;padding:0;border:0;overflow:visible;background:transparent!important;box-shadow:none}
body[data-agent-reference] #agentOnlineToggle:before{content:'';position:absolute;left:0;right:0;top:6px;height:32px;border-radius:20px;background:#aebdc9}
body[data-agent-reference] #agentOnlineToggle[aria-checked=true]:before{background:#00c98b}
body[data-agent-reference] #agentOnlineToggle>i{position:absolute;left:3px;top:9px;width:26px;height:26px;margin:0;border-radius:50%;background:#fff;transform:none!important;transition:transform .15s;box-shadow:0 1px 4px #123b4b22}
body[data-agent-reference] #agentOnlineToggle[aria-checked=true]>i{transform:translateX(24px)!important}
body[data-agent-reference] .ar-home-board[data-online=false] .ar-home-availability{background:#e5edf3;color:#465d70}
@media(max-width:350px){.ar-live-art,.ar-live-art img,.ar-live-art .ar-art{width:75px;height:85px}.ar-live-copy>strong{font-size:20px}.ar-home-availability>span{display:none}.ar-home-identity h1{font-size:15px!important}}

body[data-agent-reference]:not([data-agent-view=profile]) .pwa-tools{display:none}
body[data-agent-reference] .finance-dialog:has(dl){position:fixed;inset:0;width:100%;height:100dvh;max-height:100dvh;max-width:620px;border-radius:0;margin:auto;background:var(--ag-bg)}
body[data-agent-reference] .finance-dialog dl{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:18px;border:1px solid var(--ag-line);background:var(--ag-panel);border-radius:20px;font-size:13px}.finance-dialog dd{margin:0;text-align:right;overflow-wrap:anywhere}.finance-dialog dt{color:var(--ag-muted)}
