/* Approved aggregation portal shell; business controls remain in app.css. */
:root{--bg:#fff;--paper:#f7f7f7;--deep:#ebebec;--surface:#fff;--surface-hover:#e9e9eb;--text:#202124;--muted:#777a82;--line:#e8e8ea;--accent:#2877ff;--card-shadow:none}
body{background:#fff}
.app{width:100%;height:100dvh;min-height:600px;padding:12px;gap:16px;grid-template-columns:264px minmax(0,1fr) 332px;background:#fff;box-shadow:none}
.sidebar{background:var(--paper);border:1px solid var(--line);border-radius:25px;padding:8px;min-width:0}
.portal-tools{display:flex;gap:7px;padding-bottom:12px;flex:none}
.portal-tool{height:36px;flex:1;border-radius:22px;background:#ebebed;border:0;display:grid;place-items:center}
.portal-tool img,.circlebtn img{width:18px;height:18px;opacity:.63}
.portal-tool.primary{background:var(--accent)}.portal-tool.primary img{filter:brightness(0) invert(1);opacity:1}
.portal-tool:hover{background:#e0e0e4}.portal-tool.primary:hover{background:#1264eb}
#brandSearchWrap{padding:0 8px 10px}#brandSearchWrap[hidden]{display:none}
#brandSearch{width:100%;min-width:0;background:white;border:1px solid var(--line);border-radius:11px;padding:8px 10px;font-size:12px;color:var(--text)}
.brandmark{display:block;padding:4px 12px 8px}.brandmark h1{display:block;font-size:10px;letter-spacing:.08em;font-weight:500;color:var(--muted);margin:0}
.query-group{display:flex;align-items:center;gap:10px;width:100%;padding:11px 9px;margin-bottom:6px;border:0;border-radius:15px;text-align:left;background:#e9e9eb;color:var(--text)}
.group-avatars{position:relative;width:38px;height:38px;flex:none}.group-avatars img{position:absolute;width:25px;height:25px;object-fit:contain}
.group-avatars img:nth-child(1){top:0;left:0}.group-avatars img:nth-child(2){top:0;right:-2px}.group-avatars img:nth-child(3){bottom:0;left:10px}
.group-text{flex:1;min-width:0}.group-text strong{font-size:13px;font-weight:550}.group-text small{display:block;font-size:11px;color:var(--muted);margin-top:2px}
.group-chevron{width:15px;height:15px;opacity:.55;transform:rotate(-90deg);transition:transform .18s}.query-group[aria-expanded=true] .group-chevron{transform:rotate(0)}
.agent-list{margin-left:10px;padding-left:8px;border-left:1px solid #e0e0e4;display:grid;gap:3px}.agent-list[hidden]{display:none!important}
.agentbtn{padding:9px 7px;gap:9px;border:0;border-radius:14px;box-shadow:none;text-align:left}
.agentbtn.active{background:#e9e9eb;border:0;box-shadow:none}.agentbtn:hover{background:#e9e9eb}
.miniavatar,.miniavatar .mascot,.miniavatar .mascot-live{width:30px;height:30px}.agentbtn .name{font-size:12px;font-weight:550;color:var(--text)}
.agentbtn .description{font-size:10px;line-height:1.6;color:var(--muted)}.agentdot{display:none}
.sectionline{margin:15px 10px}.navlabel{font-size:10px;padding-left:12px;margin-bottom:4px;letter-spacing:.02em}
.navaction{font-size:12px;font-weight:400;gap:10px;padding:10px 11px}.navaction:hover,.navaction.current{background:#e9e9eb}
.serverstatus{border:0;background:none;padding:10px;font-size:11px;margin-bottom:8px;border-radius:10px}.serverstatus h4{font-weight:550}.serverstatus p{font-size:10px}
.profile{border:0;border-radius:14px;background:#ebebed;padding:11px 10px;gap:9px}.profileicon{background:#e2ebff;color:var(--accent);box-shadow:none;font-weight:550}
.profile strong{font-weight:550}.profile span{font-size:10px}.linkbtn{text-decoration:none}
.main{border-radius:25px;overflow:hidden;background:var(--paper)}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:10px;height:57px;flex:none;padding:10px 16px;border:0}
.breadcrumbs{display:flex;align-items:center;gap:6px;min-width:0;font-size:12px;white-space:nowrap}.breadcrumbs strong{font-weight:500;overflow:hidden;text-overflow:ellipsis}
.breadcrumbs img{height:23px;width:23px;object-fit:contain}.breadcrumbs>span{font-size:11px}
.topright{gap:4px}.pill{font-size:9px;padding:5px 8px;background:transparent;border:0;font-weight:400}
.circlebtn{width:30px;height:30px;border:0;background:none;color:var(--muted);flex:none}.circlebtn:hover{background:#e9e9eb}
.detail-toggle{display:none}.detail-toggle[hidden]{display:none!important}.chat-header{padding:0 16px}.chat-header .chips{gap:7px;margin:0 0 12px}.chat-header .chip{font-size:10px;padding:4px 9px;border-radius:15px;background:transparent;font-weight:400;color:var(--muted)}
.scrollmain,.scrollmain:has(.messages){padding:12px 16px 20px;scrollbar-width:thin}.messages{gap:17px;padding:0 0 16px}
.message{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding-bottom:20px}
.message:not(.user){width:fit-content;max-width:min(86%,530px)}.message>.stack{width:100%}
.message>.av{position:absolute;bottom:0;left:8px;background:none;width:16px;height:16px;border-radius:0}
.message>.av .mascot,.message>.av .mascot-live{width:16px;height:16px}
.message:not(.user)::after{content:attr(data-agent-label);position:absolute;bottom:0;left:30px;font-size:10px;color:#8d8f94;white-space:nowrap}
.message.user{align-items:flex-end;flex-direction:column;padding-bottom:0;max-width:75%;margin-left:auto}.message.user>.av{display:none}
.bubble,.message:not(.user) .bubble,.messages .card{padding:12px 15px;background:var(--deep);border:0;border-radius:21px;box-shadow:none;font-size:13px;line-height:1.65;word-break:normal;overflow-wrap:anywhere}
.message.user .bubble{background:white;border:0;border-radius:21px;color:var(--text);box-shadow:none;padding:10px 16px}
.message.user .original-location summary,.message.user .original-location a{color:var(--muted)}
.result-card.state-pending,.result-card.state-locked,.result-card.state-rejected{background:var(--deep);border:0;box-shadow:none}
.card-head .card-title{font-size:14px;font-weight:600}.verdict{font-size:14px;font-weight:600}.card-sub{font-size:11px}
.result-board{background:transparent;border:0;border-top:1px solid #dddde0;border-bottom:1px solid #dddde0;padding:9px 0;border-radius:0}.board-cell{padding:0 8px;border-color:#dddde0}.board-cell strong{font-size:12px}
.shot,.shot:hover{box-shadow:none}.shot img{max-height:220px}.shot:hover img{transform:none}
.btn,.chip{font-weight:500;box-shadow:none;border-color:var(--line)}.btn{border-radius:11px;font-size:12px;padding:7px 12px;background:white}
.btn.primary,.send{background:var(--accent);border-color:var(--accent);box-shadow:none}.btn.primary:hover,.send:hover{background:#1264eb;border-color:#1264eb}
.btn.ghost{font-weight:400;background:transparent}.badge{font-weight:500;font-size:10px;padding:3px 7px;border:0}
.badge.ok,.badge.bad,.badge.err,.badge.unknown{border:0}
.composerwrap{padding:0 5px 5px}.composer{border:1px solid #ededee;border-radius:24px;padding:13px 14px;box-shadow:none;align-items:flex-end;min-height:96px}
.composer:focus-within{border-color:#bdcfee;box-shadow:0 0 0 2px #2877ff0d}.composer textarea{font-size:13px;min-height:55px;line-height:1.6;padding-top:0}
.send{font-size:12px;font-weight:500;min-width:60px;min-height:35px;border-radius:20px;padding:0 10px}
.composefoot{padding:5px 13px 2px;font-size:9px;color:#92949a}.composefoot strong{font-weight:400}.datumrow,.location-preview{margin:0 10px 7px}.radius-inline-btn{font-weight:500;font-size:10px}
.location-preview strong{display:block;font-weight:600;line-height:1.5}.location-preview .preview-place{font-size:12px;line-height:1.5}.location-preview .preview-meta{font-size:11px;line-height:1.5}.location-preview .preview-notice{font-size:11px;color:#906221;line-height:1.5}.location-preview[data-state="fallback"]{background:#fff8ec;border-color:#efddb9}
.detail{background:#fff;border:0;padding:8px 4px 0;gap:16px;border-radius:22px;color:var(--text)}
.detail-heading{display:flex;align-items:center;justify-content:space-between;font-size:12px;padding:0 5px;min-height:27px}.detail-heading .circlebtn{display:none}
.panel{padding:14px;background:var(--paper);border:0;border-radius:18px;box-shadow:none}.panel h4{font-size:11px;font-weight:550;margin-bottom:12px}.panel h4 span{font-size:10px}
.panel .notice{font-size:10px;padding:8px 10px}.kv{font-size:11px}.kv b{font-weight:500}.panel .btn{font-size:11px}.copyright{font-size:9px;padding:8px 0}
.daily-brand{display:flex;align-items:center;gap:8px;margin-bottom:15px}.daily-brand>.mascot{height:31px;width:31px;animation:none}
.daily-brand>div{flex:1;min-width:0}.daily-brand strong{font-size:12px;font-weight:550}.daily-brand small{display:block;font-size:10px;color:var(--muted);margin-top:1px}.daily-brand>span{font-size:9px;color:var(--muted)}
.daily-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.daily-stat{padding:10px 12px;text-align:left;background:#fff;border:1px solid transparent;border-radius:13px;color:var(--text)}
.daily-stat>span{display:block;font-size:10px;color:var(--muted)}.daily-stat>strong{display:block;font-size:25px;font-weight:550;letter-spacing:-.04em;line-height:1.35;margin-top:4px;font-variant-numeric:tabular-nums}.daily-stat strong small{font-size:10px;color:#999ba1;font-weight:400;letter-spacing:0}
.daily-stat.selected{background:#e8f0ff;border-color:#cadbff}.daily-stat.selected strong{color:var(--accent)}
.daily-list-head{display:flex;align-items:center;justify-content:space-between;margin:17px 0 4px;font-size:10px;font-weight:550}.daily-list-head button{font-size:10px;color:var(--accent);border:0;background:transparent}
.daily-row{display:flex;align-items:center;gap:7px;padding:9px 0;border-bottom:1px solid var(--line);font-size:11px}.daily-row:last-child{border-bottom:0}
.daily-row>div{flex:1;min-width:0}.daily-row strong{display:block;font-size:11px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px}.daily-row small{display:block;color:var(--muted);font-size:9px;margin-top:2px}.daily-row time{color:var(--muted);font-size:9px;font-variant-numeric:tabular-nums;white-space:nowrap}
.event-tag{border-radius:6px;padding:3px 5px;font-size:9px;background:#e3ebfa;color:#5b7aab;white-space:nowrap}.event-tag.locked{background:#e0eee6;color:#3c8763}.event-tag.released{background:#e8e6ef;color:#817396}
.daily-more{width:100%;font-size:10px;color:var(--muted);border:0;background:transparent;border-radius:8px;margin-top:6px;padding:6px}.daily-empty{font-size:11px;color:var(--muted);text-align:center;padding:20px 8px}.daily-panel .panel-note{font-size:9px;color:var(--muted);line-height:1.7;margin:10px 0 0}
.detail-backdrop[hidden]{display:none}.detail-backdrop{display:none}
@media(min-width:1600px){.app{grid-template-columns:276px minmax(0,1fr) 352px;gap:20px;max-width:1680px;margin:auto}}
@media(max-width:1260px){.app{grid-template-columns:235px minmax(0,1fr) 304px;gap:12px}.scrollmain{padding:12px 16px 20px}}
@media(max-width:1150px){.app{grid-template-columns:235px minmax(0,1fr)}.detail{display:none}.detail-toggle{display:grid}.detail.is-open{display:flex;position:fixed;top:12px;right:12px;bottom:12px;width:330px;padding:16px;background:#fff;z-index:35;border:1px solid var(--line);box-shadow:0 12px 80px #0002}.detail-heading .circlebtn{display:grid}.detail-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:#0003;z-index:30}.message:not(.user){max-width:min(88%,530px)}}
@media(max-width:720px){.app{display:grid;grid-template-columns:58px minmax(0,1fr);padding:6px;gap:6px;height:100dvh;min-height:0;margin:0;width:100%;border-radius:0}.sidebar{display:flex;flex-direction:column;padding:5px;gap:0;align-items:stretch;overflow-y:auto;border-radius:21px}.portal-tools{flex-direction:column;gap:7px;padding:0 0 12px}.portal-tool{flex:none;width:36px;height:32px;margin:auto}.brandmark,.sectionline,.navlabel{display:none}.group-text{display:block}.group-text strong{font-size:9px;white-space:nowrap}.group-text small,.group-chevron{display:none}.query-group{padding:5px 1px;flex-direction:column;gap:2px;border-radius:11px}.group-avatars{width:34px;height:30px}.group-avatars img{width:21px;height:21px}.agent-list{display:grid;grid-template-columns:1fr;gap:3px;flex:none;border:0;margin:0;padding:3px 0 0}.agentbtn{padding:7px 2px;min-height:42px;justify-content:center}.agentbtn>div:not(.miniavatar){display:none}.miniavatar,.miniavatar .mascot,.miniavatar .mascot-live{width:30px;height:30px}.sidefoot{display:block;margin-top:auto}.serverstatus,.profile{display:none}.navaction{display:flex;justify-content:center;padding:10px;min-height:40px}.navaction .navtext,.navaction .navcount{display:none}.navaction svg{width:18px;height:18px}.main{border-radius:21px}.topbar{height:51px;padding:10px;gap:4px}.breadcrumbs{font-size:11px;gap:4px}.breadcrumbs>span{display:none}.topright{gap:0}.pill{display:none}.mobile-nav:not([hidden]){display:flex;min-height:37px}.mobile-nav button{font-size:10px;min-height:37px}.chat-header{padding:0 10px}.chat-header .chips{margin:4px 0 7px;gap:5px}.chat-header .chip{font-size:9px;padding:4px 6px}.scrollmain,.scrollmain:has(.messages){padding:12px 10px 20px}.message:not(.user){max-width:96%}.message.user{max-width:92%}.bubble,.message:not(.user) .bubble,.messages .card{padding:11px 12px;border-radius:18px;font-size:12px}.message.user .bubble{padding:10px 13px}.card-head .card-title{font-size:13px}.card-head{flex-wrap:wrap}.result-board{grid-template-columns:1fr;gap:6px}.board-cell{border:0;padding:0}.board-cell:first-child,.board-cell:last-child{padding:0}.composerwrap{padding:0 5px 5px}.composer{padding:11px;border-radius:19px;min-height:95px}.composer textarea{font-size:16px;min-height:52px}.send{min-width:48px;font-size:11px}.composefoot{font-size:9px;flex-wrap:wrap;padding-bottom:env(safe-area-inset-bottom,2px)}.composerwrap .composefoot span:first-child{display:none}.detail.is-open{top:6px;bottom:6px;right:6px;width:min(330px,calc(100vw - 24px))}#brandSearchWrap{position:fixed;left:70px;top:65px;right:20px;z-index:40;padding:0;box-shadow:0 4px 30px #0002;border-radius:11px}.datumrow{gap:5px;font-size:11px}.datumrow .chip{min-height:36px;font-size:10px}.record-actions{max-width:100%}.row{flex-wrap:wrap}.lightbox-head{flex-wrap:wrap}.lightbox-tools{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.group-chevron{transition:none}}

/* Compact, collapsible task progress, driven only by server step states. */
.messages .card.agent-progress,.card.agent-progress{width:340px;max-width:100%;min-width:0;padding:10px;border:1px solid #ebebed;border-radius:18px;background:#fff;box-shadow:0 1px 2px #15151b08;overflow:hidden;overflow-wrap:anywhere;color:#777}
.ap-toggle{width:100%;min-height:29px;display:flex;align-items:center;gap:8px;padding:3px 3px 7px;text-align:left;background:none;border:0;color:inherit;font-size:14px;line-height:1.5;font-weight:400;border-radius:8px}
.ap-toggle:hover{background:#fafafa}.ap-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.ap-title{flex:1;min-width:0;overflow-wrap:anywhere}.ap-collapse-icon{width:18px;height:18px;flex:none;border-radius:4px;background:#dedee0;display:grid;place-items:center;opacity:.65;transition:opacity .15s}
.ap-collapse-icon img{width:13px;height:13px;opacity:.6}.ap-toggle:hover .ap-collapse-icon{opacity:1}
.ap-marker{width:15px;height:15px;flex:none;display:grid;place-items:center;border-radius:50%;background:transparent}
.ap-marker img{width:15px;height:15px;display:block;opacity:.35}
.ap-overall[data-step-state=done],.ap-step[data-step-state=done] .ap-marker{background:#d4d4d6}
.ap-overall[data-step-state=done] img,.ap-step[data-step-state=done] .ap-marker img{width:11px;height:11px;opacity:.6}
.ap-overall[data-step-state=running] img,.ap-step[data-step-state=running] .ap-marker img{animation:ap-spin 1s linear infinite;opacity:.55}
.ap-overall[data-step-state=failed] img{opacity:.8}
.ap-body[hidden],.ap-error[hidden]{display:none!important}.ap-body{padding-top:1px;overflow:hidden}.ap-step-list{display:flex;flex-direction:column;gap:6px}
.ap-step{display:flex;align-items:center;gap:7px;min-height:32px;padding:5px 8px;border:1px solid transparent;border-radius:18px;font-size:14px;line-height:1.4;color:#777a80;animation:ap-reveal .24s ease-out both;animation-delay:calc(var(--step-order,0)*45ms);transition:background-color .2s,border-color .2s,color .2s}
.ap-step-name{min-width:0;overflow-wrap:anywhere}
.ap-step[data-step-state=running]{border-color:#ececef;background:#fff;color:#4b4b50;font-weight:500}
.ap-step[data-step-state=done]{color:#858588}.ap-step[data-step-state=done] .ap-step-name{text-decoration:line-through;text-decoration-color:#aaaab0}
.ap-step[data-step-state=pending]{--step-opacity:1;opacity:1;color:#777a80}.ap-step[data-step-state=failed]{color:var(--bad);background:#fff4f4;border-color:#f0d7d9}
.agent-progress[data-progress-state=failed] .ap-title{color:var(--bad)}
.agent-progress[data-collapsed=true] .ap-toggle{padding-bottom:3px}.agent-progress[data-collapsed=true]{padding:7px 11px}
.ap-error{margin:8px 2px 0;padding:8px 10px;font-size:11px}.ap-empty{padding:10px 7px;font-size:12px;color:var(--muted)}
@keyframes ap-spin{to{transform:rotate(360deg)}}
@keyframes ap-reveal{from{opacity:0;transform:translateY(3px)}to{opacity:var(--step-opacity,1);transform:translateY(0)}}
@media(max-width:720px){.messages .card.agent-progress{width:300px}.ap-toggle{font-size:13px}.ap-step{font-size:13px}}
@media(prefers-reduced-motion:reduce){.ap-step,.ap-marker img{animation:none!important;transition:none!important}}

/* Record review: wide lists and readable evidence, including in task dialogs. */
.app.list-page{grid-template-columns:264px minmax(0,1fr)}
.app.list-page>.detail,.app.list-page>.detail-backdrop{display:none}
.list-page .breadcrumbs>span{display:none}
.list-page .scrollmain{max-width:1300px;width:100%;margin-inline:auto}
.board-cell{min-width:0}.board-cell strong{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.conflict-list{display:grid;gap:8px;margin:12px 0}
.conflict-item{display:block;border:1px solid #dcdce0;border-radius:12px;padding:10px 12px}
.conflict-item>b{display:block;font-size:12px;overflow-wrap:anywhere}
.conflict-metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:8px 0 0}
.conflict-metrics div{min-width:0}.conflict-metrics dt{font-size:11px;color:var(--muted)}
.conflict-metrics dd{margin:2px 0 0;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.list-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.list-controls input,.list-controls select{font:inherit;font-size:12px;max-width:100%;min-height:38px;min-width:0;border:1px solid var(--line);border-radius:10px;padding:7px 9px;background:white;color:var(--text)}
.list-controls input[type=search]{flex:1 1 180px}.list-controls input[name=person]{width:190px}
.history-date{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--muted)}.history-date[hidden]{display:none}
.record-note{font-size:12px;color:var(--muted);line-height:1.7}.row>div:first-child{min-width:0;overflow-wrap:anywhere}.row .record-actions{flex-wrap:wrap}
.mobile-brand-label{display:none}.quota-freshness{font-size:10px;color:var(--muted);margin:9px 0}.quota-freshness button{margin-top:6px}
@media(min-width:1600px){.app.list-page{grid-template-columns:276px minmax(0,1fr)}}
@media(min-width:721px) and (max-width:1260px){.app.list-page{grid-template-columns:235px minmax(0,1fr)}}
@media(max-width:720px){
  .app.list-page{grid-template-columns:64px minmax(0,1fr)}.app{grid-template-columns:64px minmax(0,1fr)}
  .sidebar>.navaction,#portalHistory{display:none}
  .agentbtn{flex-direction:column;gap:3px;min-height:74px;padding:6px 0}
  .mobile-brand-label{display:block;font-size:11px;line-height:1.4;color:var(--text)}.mobile-brand-label small{display:block;font-size:9px;color:var(--muted)}
  .chat-header .chip{font-size:11px;min-height:40px;padding:8px}.chat-header .chips{gap:6px;flex-wrap:wrap}
  .mobile-nav button{font-size:11px;min-height:44px;padding:6px 7px}
  .list-controls{align-items:stretch}.list-controls input,.list-controls select,.list-controls .btn{min-height:44px;font-size:12px}.list-controls input[name=person]{width:100%}
  .list-controls>.history-date{width:100%}.history-date input{flex:1}.list-page .intro h2{font-size:20px}
  .result-board{grid-template-columns:1fr}.conflict-metrics{grid-template-columns:1fr;gap:7px}.record-actions .btn{min-height:40px}
  .detail .circlebtn,.detail .link-mini,.detail .daily-more{min-height:40px;min-width:40px}
}

/* BoardUI-inspired interaction motion: local implementation, no runtime dependency. */
:root{--motion-ease:cubic-bezier(.16,1,.3,1);--motion-quick:160ms;--motion-base:280ms}
#agents,#brandSearchWrap{overflow:hidden}
.agentbtn,.query-group,.navaction,.portal-tool,.daily-stat,.tab,.mobile-nav button{transition:background-color 180ms ease,color 180ms ease,border-color 180ms ease,transform var(--motion-quick) var(--motion-ease),box-shadow 180ms ease}
:is(.btn,.chip,.send,.circlebtn,.portal-tool,.query-group,.agentbtn,.daily-stat,.tab):not(:disabled):active{transform:scale(.96)}
.agentbtn:active:not(:disabled){transform:scale(.985)}
.composer{transition:border-color 200ms ease,box-shadow 200ms ease}
.composer:focus-within{border-color:#a9c7ff;box-shadow:0 0 0 3px #2877ff0b}
.message-enter{animation:portal-message-in 320ms var(--motion-ease) backwards}
@keyframes portal-message-in{from{opacity:.15;transform:translateY(9px) scale(.99);filter:blur(2px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}
.ap-body{overflow:hidden}.agent-progress{transition:padding 220ms var(--motion-ease),background-color 180ms ease}
.ap-step{transition:background-color 220ms ease,border-color 220ms ease,color 220ms ease}
.ap-collapse-icon{transition:transform 260ms var(--motion-ease),opacity 160ms ease}
.agent-progress[data-collapsed=true] .ap-collapse-icon{transform:rotate(90deg)}
.motion-tabs{position:relative;isolation:isolate}
.motion-selection{position:absolute;top:0;left:0;z-index:-1;pointer-events:none;border:1px solid #e1e4eb;border-radius:30px;background:white;box-shadow:0 1px 3px #1018280c;transition:transform 300ms var(--motion-ease),width 300ms var(--motion-ease),height 300ms var(--motion-ease)}
.motion-selection[hidden]{display:none}
.tabs.motion-tabs{gap:4px;width:fit-content;padding:4px;border-radius:22px;background:#ebebed}
.tabs.motion-tabs .tab{background:transparent;border-color:transparent;color:var(--muted);position:relative}
.tabs.motion-tabs .tab.active{background:transparent;color:var(--text);box-shadow:none}
.mobile-nav.motion-tabs{isolation:isolate}
.mobile-nav.motion-tabs button.current{box-shadow:none;background:transparent;color:var(--accent)}
.mobile-nav .motion-selection{border:0;background:#e7efff;border-radius:11px;box-shadow:none}
dialog[open]{animation:none}
dialog::backdrop{background:#10182840;animation:portal-backdrop-in 220ms ease both}
dialog[data-closing=true]::backdrop{background:#10182800;animation:none;transition:background-color 180ms ease}
@keyframes portal-backdrop-in{from{background:#10182800}to{background:#10182840}}
.detail.is-open{will-change:transform,opacity}.detail-backdrop{will-change:opacity}
.toast{background:#24262c;box-shadow:0 8px 24px #1112;transition:opacity 220ms ease,transform 280ms var(--motion-ease);transform:translateX(-50%) translateY(10px) scale(.98)}
.toast.show{transform:translateX(-50%) translateY(0) scale(1)}
#refreshBtn[aria-busy=true]{position:relative;color:transparent}
#refreshBtn[aria-busy=true]::after{content:"";position:absolute;width:14px;height:14px;left:calc(50% - 7px);top:calc(50% - 7px);border:1.5px solid #2877ff33;border-top-color:var(--accent);border-radius:50%;animation:ap-spin .8s linear infinite}
@media(hover:hover) and (pointer:fine){.shot img{transition:transform 360ms var(--motion-ease)}.shot:hover img{transform:scale(1.015)}}
@media(prefers-reduced-motion:reduce){
  .message-enter,.ap-step,.mascot,dialog::backdrop,#refreshBtn[aria-busy=true]::after{animation:none!important}
  :is(.btn,.chip,.send,.circlebtn,.portal-tool,.query-group,.agentbtn,.daily-stat,.tab):not(:disabled):active{transform:none}
  .motion-selection,.agentbtn,.query-group,.navaction,.portal-tool,.daily-stat,.tab,.mobile-nav button,.composer,.agent-progress,.ap-step,.ap-collapse-icon,.toast,.shot img{transition:none!important}
  .shot:hover img{transform:none}
}
.audit-scroll{overflow:auto;max-width:100%;margin-top:12px;border:1px solid var(--line,#e5e5ea);border-radius:16px;background:var(--surface,#fff)}
.audit-table{width:100%;min-width:850px;border-collapse:collapse;text-align:left;font-size:12px}
.audit-table th,.audit-table td{padding:12px 14px;border-bottom:1px solid var(--line,#e5e5ea);vertical-align:top;overflow-wrap:anywhere;max-width:240px}
.audit-table th{font-size:11px;color:var(--muted);font-weight:500}.audit-table small{display:block;color:var(--muted);font-size:10px;margin-top:5px}
.audit-table tr:last-child td{border-bottom:0}.audit-fields{display:grid;grid-template-columns:105px minmax(0,1fr);gap:12px;font-size:12px;line-height:1.6}
.audit-fields dt{color:var(--muted)}.audit-fields dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
#auditFilters label{display:flex;flex-direction:column;gap:5px;font-size:10px;color:var(--muted)}
#auditFilters label input{flex:0 0 auto;height:38px;min-height:38px}
@media(max-width:740px){#auditFilters label input{height:44px;min-height:44px}}
[data-page="audit"][hidden]{display:none!important}
[data-page="accounts"][hidden],.navaction[hidden],#mobileNav [hidden]{display:none!important}
#newAccount{white-space:nowrap;flex-shrink:0}
.account-checks{margin:14px 0;border:1px solid var(--line);border-radius:10px;padding:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.account-checks legend{font-size:12px;color:var(--muted)}.account-checks label{display:flex;align-items:center;gap:8px;font-size:12px;margin:0}
.modal .account-checks input{width:16px;height:16px;padding:0;flex:none}.gate label{display:block;margin:12px 0 5px;font-size:12px;color:var(--muted)}.gate input{width:100%;box-sizing:border-box;margin-bottom:8px}.gate .actions{display:flex;gap:10px;margin-top:10px}

/* Lock review: fixed query radius, compact form and an always-visible map. */
.shot.shot-info{width:min(100%,360px);margin:12px auto}.shot.shot-info img{max-height:480px;object-fit:contain}
#lightbox[open]{display:flex;flex-direction:column;height:92dvh;max-height:92dvh}#lightbox .lightbox-head,#lightbox .lightbox-foot{flex:none}#lightbox .lightbox-stage{flex:1;min-height:0;max-height:none}#lightboxImg{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}
.modalback#modalBack.lock-modal{width:min(1120px,calc(100vw - 40px));max-height:calc(100dvh - 40px);overflow:hidden;border-radius:20px}
.lock-modal .modal{padding:0}.lock-dialog{display:flex;flex-direction:column;max-height:calc(100dvh - 40px);min-height:0}
.lock-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px 16px;border-bottom:1px solid var(--line);flex:none}
.lock-header>div{min-width:0}.lock-header .lock-eyebrow{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 6px;font-size:12px;color:var(--muted)}.lock-eyebrow strong{font-weight:500;color:#4c596e;overflow-wrap:anywhere}.lock-header h2{font-size:23px;margin:0;font-weight:650;line-height:1.4}
.lock-close{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;font-size:27px;line-height:1;background:var(--paper);color:var(--muted);flex:none}.lock-close:hover{background:var(--deep)}
.lock-body{padding:16px 24px 18px;overflow:auto;overscroll-behavior:contain;min-height:0;scrollbar-width:thin}
.lock-summary{padding:13px 16px;border:1px solid #b6e8d1;border-radius:14px;background:#f0fcf6;color:#126b4b}.lock-status-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px}.lock-status-row>img{width:24px;height:24px;filter:invert(39%) sepia(65%) saturate(850%) hue-rotate(116deg)}.lock-status-row>b{font-size:16px;color:#174b3b}.lock-radius-badge{background:#07976c;color:white;padding:4px 9px;border-radius:7px;font-size:14px;font-weight:600;white-space:nowrap}.lock-nearest{font-size:12px;background:#dcf8eb;padding:5px 8px;border-radius:7px;overflow-wrap:anywhere}.lock-summary>p{font-size:12px;line-height:1.6;margin:7px 0 0;overflow-wrap:anywhere}
.lock-workspace{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,1fr);gap:20px;margin-top:18px}.lock-form-pane,.lock-fields{min-width:0}.lock-section+.lock-section{margin-top:17px}.lock-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}.lock-section h3,.lock-map h3{font-size:14px;font-weight:600;margin:0;white-space:nowrap}.lock-section-heading .field-help{font-size:11px;line-height:1.5;color:var(--muted);margin:0;max-width:70%;text-align:right;overflow-wrap:anywhere}
.lock-fields .grid2{gap:12px 14px;min-width:0}.lock-fields .grid2>div{min-width:0}.lock-fields .lock-store-row{grid-template-columns:minmax(120px,.9fr) minmax(0,1.6fr);padding:12px;border:1px solid #e4eaf2;background:#fafbfe;border-radius:13px;align-items:start}
.lock-fields label{display:block;margin:0 0 6px;font-size:12px;font-weight:500}.lock-fields em,.lock-required-note em{font-style:normal;color:#dc444d;margin-left:4px}
.lock-fields input,.lock-fields textarea{box-sizing:border-box;min-width:0;font-family:inherit;font-size:13px;line-height:1.5;border:1px solid #dfe4ee;border-radius:9px;padding:9px 10px;background:var(--surface);color:var(--text);width:100%;height:40px}.lock-fields textarea{display:block;resize:vertical;min-height:54px;height:54px;max-height:110px}.lock-fields input:focus-visible,.lock-fields textarea:focus-visible,.lock-close:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.lock-submitter{display:flex;align-items:center;flex-wrap:wrap;gap:10px;border-top:1px solid var(--line);padding-top:12px;margin-top:16px;font-size:12px;color:var(--muted)}.lock-submitter input[type=hidden]{display:none}.lock-submitter>label{margin:0}.lock-submitter>input:not([type=hidden]){flex:1}.submitter-badge{display:inline-flex;align-items:center;gap:7px;padding:5px 9px;border:1px solid #e2e7f0;background:#f3f6fb;color:#43516b;border-radius:9px;font-weight:500}.submitter-avatar{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--accent);color:#fff;font-size:12px}
.lock-map{min-width:0;align-self:start;border:1px solid #e4eaf2;background:#fafbfe;padding:12px;border-radius:14px}.lock-map-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.lock-map-heading>span{font-size:11px;color:var(--accent)}.lock-map .shot{display:block;width:100%;margin:0;border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden}.lock-map .shot img{display:block;width:100%;height:auto;max-height:330px;object-fit:contain;transform:none}.lock-map .shot .zoom{font-size:11px;padding:5px 8px}.lock-map>p{font-size:11px;color:var(--muted);line-height:1.5;margin:9px 0 0}.lock-map-empty{padding:70px 12px;text-align:center;font-size:12px;color:var(--muted)}
.lock-footer{padding:14px 24px;border-top:1px solid var(--line);background:#fafbfe;flex:none}.lock-footer-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.lock-required-note{font-size:12px;color:var(--muted)}.lock-footer .decision-actions{margin:0;gap:10px}.lock-footer .err{margin:0 0 9px;min-height:0;font-size:12px}.lock-footer .err:empty{display:none}.lock-footer .btn{min-height:44px;padding:10px 20px;font-size:13px;border-radius:10px;white-space:nowrap}
@media(min-width:741px) and (max-height:720px){.lock-header{padding:14px 22px 12px}.lock-body{padding:14px 22px}.lock-workspace{margin-top:14px;gap:16px}.lock-summary{padding:11px 14px}.lock-section+.lock-section{margin-top:14px}.lock-submitter{margin-top:12px;padding-top:10px}.lock-footer{padding:12px 22px}}
@media(max-width:740px){.modalback#modalBack.lock-modal{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:16px}.lock-dialog{max-height:calc(100dvh - 24px)}.lock-header{padding:14px 16px}.lock-header h2{font-size:20px}.lock-body{padding:14px 16px}.lock-workspace{grid-template-columns:1fr;gap:16px}.lock-section-heading{align-items:start}.lock-section-heading .field-help{max-width:65%}.lock-footer{padding:12px 16px}.lock-footer .btn{min-height:44px;padding:10px 14px}.lock-fields input,.lock-fields textarea{font-size:16px}.lock-fields textarea{min-height:64px;height:64px}.lock-fields .lock-store-row{grid-template-columns:1fr}.lock-map .shot img{max-height:none}.lock-required-note{display:none}.lock-footer-row{justify-content:flex-end}.lock-status-row>b{font-size:15px}.lock-radius-badge{font-size:13px}.lock-nearest{font-size:12px}}
