/* Local UI preview. Publication requires the user's explicit approval. */
.layout{grid-template-columns:220px minmax(0,1fr)}
.workspace{font-size:16px;line-height:1.6}
.workspace .content{max-width:1180px;padding:30px 32px 70px}
.sidebar{padding:25px 18px}
.sidebar .branch-brand{gap:12px}
.sidebar .branch-brand .identity-logo{width:88px;height:88px;border-radius:20px}
.sidebar .branch-brand h2{font-size:20px;line-height:1.5}
.nav{gap:9px}.nav button{min-height:50px;font-size:15px;font-weight:600;border-radius:12px}
html[data-brand]:not([data-brand=masar]) .topbar{height:80px;padding:0 32px;border-bottom-width:2px}
.topbar .identity-logo{width:48px;height:48px;border-radius:12px}
.account strong{font-size:18px;font-weight:700}.account small{font-size:13px}
.topactions button{min-height:44px;font-size:14px}
.pagehead{margin-bottom:24px;gap:15px}
.pagehead h1{font-size:30px;font-weight:750;letter-spacing:-.6px;line-height:1.4}
.pagehead .primary{min-height:50px;font-size:15px;border-radius:12px;padding:12px 20px;white-space:nowrap}
.review-global-caption{font-size:13px;font-weight:600;margin-bottom:10px}
.workflow-summary{grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:14px;margin-bottom:24px;align-items:end}
html[data-brand]:not([data-brand=masar]) .branch-work{padding:0;border:0;background:none}
.workflow-heading{margin-bottom:8px;min-height:22px}.workflow-heading h2{font-size:14px;font-weight:700}
.branch-metrics{gap:12px}
.branch-metrics .stat{padding:17px 18px;min-height:112px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:8px;background:#fff;box-shadow:0 3px 14px #18203904}
.stat-label{font-size:14px;font-weight:650;line-height:1.5}
.workflow-summary .stat strong{font-size:34px;line-height:1.2;margin:0;font-weight:750;font-variant-numeric:tabular-nums}
.workflow-summary .admin-work{min-height:112px;padding:17px 18px;display:flex;flex-direction:column;justify-content:space-between;gap:8px;border-color:#e5ce91;border-radius:12px;background:#fff7e3}
.admin-work>span:first-child{padding-left:0;font-size:14px;color:#7b581c}
.workflow-summary .admin-work strong{font-size:34px;color:#7b581c}
.work-queues{gap:4px;padding:5px;background:#fff;border:1px solid var(--brand-border,#d8dfdb);border-radius:13px;margin-bottom:20px}
.work-queues button{flex:1;justify-content:center;min-height:46px;padding:9px 12px;font-size:14px;font-weight:650;border-radius:9px;border:1px solid transparent;gap:9px;line-height:1.5}
html[data-brand]:not([data-brand=masar]) .work-queues button.active:not(.admin-queue){background:var(--brand-soft);border-color:var(--brand-border);color:var(--brand)}
html[data-brand]:not([data-brand=masar]) .work-queues button.active.admin-queue{background:#fff4d8;border-color:#e4cc96;color:#7b581c}
.work-queues button>span{font-size:13px;font-weight:750;min-width:27px;border-radius:7px;padding:2px 6px}
.toolbar{gap:12px;margin-bottom:12px}
.segmented{border-radius:12px;padding:4px;max-width:100%}
.segmented button{min-height:42px;padding:9px 17px;font-size:14px;font-weight:650;border-radius:8px}
.search{min-height:50px;border-radius:12px;max-width:380px;border-color:var(--brand-border,#d8dfdb);padding:0 14px}
.search input{min-height:48px;padding:10px 0;font-size:16px}
.search input::placeholder{font-size:14px}
.filters{gap:8px;margin-bottom:18px}
.filters button{min-height:40px;padding:8px 14px;font-size:13px;font-weight:600;border-radius:10px}
.listtitle{margin:0 0 13px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.countline{font-size:14px;font-weight:650;line-height:1.8}
.countpill{font-size:13px;font-weight:750;padding:2px 8px;display:inline-block;border-radius:7px;margin-right:4px}
.listtitle [data-refresh]{font-size:14px;font-weight:650;min-height:44px;padding:9px 12px;white-space:nowrap}
.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.transfer{border-radius:16px;border-color:var(--brand-border,#d8dfdb);border-top-width:3px;box-shadow:0 4px 18px #1b284007}
.transfer-waiting{border-top-color:#527fbb}.transfer-received{border-top-color:#c0963b}.transfer-returned{border-top-color:#c26255}.transfer-completed{border-top-color:#59966c}
.cardtop{padding:16px 18px 13px;align-items:center}.cardtop>small{font-size:13px;font-weight:650}
.badge{font-size:12px;font-weight:650;padding:7px 10px;border-radius:8px;line-height:1.5;white-space:normal}
.badge:before{flex:none}.badge.waiting{background:#e8f0fc;color:#345b91}.badge.received{background:#fff0c6;color:#785716}.badge.returned{background:#ffebe7;color:#a03b32}.badge.completed{background:#e8f4eb;color:#346947}
.cardbody{padding:0 18px 18px;gap:15px;align-items:center}
.cardinfo{min-width:0;flex:1}.cardinfo h3{font-size:23px;font-weight:750;line-height:1.5;overflow-wrap:anywhere;margin:0 0 5px}
.cardinfo h3 .unit{font-size:14px;font-weight:600;margin-right:3px}
.thumb{width:84px;height:84px;border-radius:13px;background:var(--brand-soft,#eef1ea);border-color:var(--brand-border,#d8dfdb)}
.cash-thumb svg{width:34px;height:34px;color:var(--brand,#305741)}
.transfer-route{display:flex;gap:7px;align-items:center;flex-wrap:wrap;font-size:13px;font-weight:600;color:var(--brand-muted,#6b7b77);line-height:1.8}
.route-arrow{font-weight:750;color:var(--brand,#305741)}
.card-statement{font-size:14px;line-height:1.7;margin-top:6px;overflow-wrap:anywhere;color:var(--brand-ink,#263950)}
.review-checks{padding:0 18px 15px;gap:8px}
.review-checks>span{font-size:12px;min-width:0;line-height:1.5;padding:8px 10px;border-radius:9px}
.review-checks b{font-size:11px;margin-top:2px}
.cardfoot{padding:13px 18px;border-top:1px solid var(--brand-border,#e1e6e1);display:flex;justify-content:space-between;align-items:center;gap:12px;background:#ffffff}
.card-audit{display:grid;gap:2px;min-width:0}.card-audit strong{font-size:14px;font-weight:650;overflow-wrap:anywhere}.card-audit span{font-size:12px;color:var(--brand-muted,#6b7b77)}
.cardfoot .cardaction{min-height:44px;font-size:14px;font-weight:650;padding:8px 14px;border-radius:10px;flex:none;background:var(--brand-soft,#eef1ea);border-color:transparent}
.emptystate{grid-column:1/-1;border:1px dashed var(--brand-border,#d8dfdb);border-radius:16px;min-height:175px;padding:35px 20px;background:#ffffff60;display:grid;place-content:center;justify-items:center;gap:14px}
.emptystate h3{font-size:17px;font-weight:650;line-height:1.6}.emptyicon{width:52px;height:52px;margin:0;display:grid;place-items:center}.emptyicon svg{width:25px;height:25px}
.review-branch-picker{padding:18px;border-radius:14px;margin-bottom:20px;gap:0}
.reviewer-picker{padding-bottom:0;border-bottom:0}.reviewer-picker h2{font-size:16px;font-weight:700;margin-bottom:12px}
.reviewer-options{gap:12px;margin-top:0}.reviewer-options button{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:77px;padding:14px 17px;border-radius:11px;border-width:2px}
.reviewer-options strong{font-size:15px;font-weight:700;line-height:1.6}
.reviewer-total{display:grid;justify-items:center;gap:0;flex:none}.reviewer-total [data-reviewer-count]{font-size:25px;line-height:1.2;font-weight:750}.reviewer-total small{font-size:12px;margin:2px 0 0;line-height:1.4}
.management{gap:20px}.panel{padding:23px;border-radius:16px;border-color:var(--brand-border,#d8dfdb)}
.panel h3{font-size:19px;font-weight:700;margin-bottom:4px}.peoplelist{margin:8px 0 20px}.person{padding:16px 0;gap:12px}
.person strong{font-size:16px;font-weight:650}.person small{font-size:13px;margin-top:3px}.person button{font-size:14px;min-height:44px;padding:8px 13px}
.panel>.wide{min-height:48px;border-radius:11px;font-size:15px}
dialog{max-width:580px;border-radius:19px}
.dialoghead{padding:18px 22px}.dialoghead h2{font-size:21px;font-weight:700;line-height:1.5}.dialog-context{font-size:13px;margin-bottom:4px}.dialoghead .iconbutton{min-width:44px;min-height:44px;font-size:22px;padding:6px}
.dialogbody{padding:24px 22px}.dialogbody h3{font-size:17px;font-weight:700}
.formgrid{gap:20px}.field{gap:9px}.field label{font-size:15px;font-weight:650;line-height:1.6}
.field input,.field select,.field textarea{font-size:16px;min-height:53px;padding:13px 14px;border-radius:11px;line-height:1.5}
.field textarea{min-height:90px}.field .pin{font-size:23px}
.dialogfooter{gap:12px;padding-top:22px}.dialogfooter button{min-height:51px;font-size:16px;font-weight:700;border-radius:11px;line-height:1.5}
.destination,.summaryline{padding:17px 18px;border-radius:12px;font-size:15px;margin-bottom:24px;line-height:1.8}
.summaryline strong{font-size:19px}.summaryline small{font-size:14px}.summaryline>svg{width:31px;height:31px}
.upload{min-height:150px;border-radius:13px;padding:20px;font-size:16px}.upload strong{font-size:17px}.upload small{font-size:14px}
.receipt-choices{padding:12px;border-radius:12px;gap:10px}.receipt-choices legend{font-size:15px;font-weight:650}.receipt-choices label{min-width:0;font-size:15px;min-height:52px;border-radius:9px;padding:12px}
.details{gap:16px;margin:20px 0;font-size:16px}.details>div{padding:12px;background:var(--brand-soft,#eef1ea);border-radius:10px;min-width:0}
.details dt{font-size:13px;color:var(--brand-muted,#6b7b77);margin-bottom:5px}.details dd{font-weight:650;overflow-wrap:anywhere;line-height:1.7}
.review-detail{border-radius:12px}.review-detail h3{font-size:16px;padding:15px}.review-step{padding:14px 15px;font-size:15px}.review-step small{font-size:13px}
.timeline li{font-size:15px;line-height:1.8;padding-bottom:20px}.timeline small{font-size:12px;margin-top:4px}.timeline p{font-size:14px;line-height:1.8}
.notice{font-size:14px;line-height:1.8;padding:14px 16px;border-radius:11px}.confirmation-question{font-size:17px;font-weight:650;text-align:center}
.err{font-size:14px;line-height:1.8}.loadmore{min-height:48px;font-size:15px}
@media(min-width:1500px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1100px){.layout{grid-template-columns:190px minmax(0,1fr)}.workspace .content{padding:25px 24px 75px}.cards{grid-template-columns:1fr}.sidebar .branch-brand .identity-logo{width:76px;height:76px}.sidebar .branch-brand h2{font-size:18px}}
@media(max-width:700px){
 .layout{display:block}.workspace{font-size:15px}.workspace .content{padding:21px 16px calc(108px + env(safe-area-inset-bottom))}
 html[data-brand]:not([data-brand=masar]) .topbar{height:76px;padding:0 16px;gap:8px}
 .topbar .identity-logo{width:44px;height:44px;border-radius:10px}.account{gap:10px}.account strong{font-size:17px}.account small{font-size:12px;white-space:normal}.topactions button{font-size:13px;padding:9px;min-height:44px}
 .pagehead{margin-bottom:20px;align-items:center}.pagehead h1{font-size:27px}.pagehead>.primary{margin:0;font-size:14px;min-height:47px;padding:11px 14px}
 .review-global-caption{font-size:13px;margin-bottom:8px}
 .workflow-summary{grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:9px;margin-bottom:20px}
 .workflow-heading{min-height:18px;margin-bottom:7px}.workflow-heading h2{font-size:13px}
 .branch-metrics{gap:8px}.branch-metrics .stat{padding:12px 10px;min-height:106px;border-radius:11px}
 .stat-label{font-size:12px;font-weight:700;line-height:1.6}.workflow-summary .stat strong{font-size:30px;margin:0}
 .workflow-summary .admin-work{min-height:106px;padding:12px 10px;border-radius:11px;display:flex}.admin-work>span:first-child{font-size:12px;line-height:1.6}.workflow-summary .admin-work strong{font-size:30px}
 .work-queues{margin-bottom:17px;padding:4px;gap:3px;border-radius:12px}.work-queues button{font-size:13px;min-height:47px;gap:6px;padding:8px 5px}.work-queues button>span{font-size:12px;min-width:24px}
 .toolbar{display:flex;gap:11px;margin-bottom:11px}.search{order:0;flex-basis:100%;max-width:none;min-height:50px}.segmented{order:1;width:100%}.segmented button{font-size:14px;min-height:42px;padding:8px 9px;min-width:0;flex:1}
 .filters{margin-bottom:13px;gap:7px}.filters button{font-size:12px;min-height:39px;padding:7px 11px}
 .listtitle{margin-bottom:12px;align-items:center}.countline{font-size:13px;max-width:77%}.listtitle [data-refresh]{font-size:13px;padding:8px 5px}
 .cards{grid-template-columns:1fr;gap:15px}.cardtop{padding:14px 15px 12px;gap:9px}.cardtop>small{font-size:12px}.badge{font-size:12px;padding:7px 9px}
 .cardbody{padding:0 15px 16px;gap:13px}.thumb{width:76px;height:76px;border-radius:11px}.cardinfo h3{font-size:23px}.transfer-route{font-size:12px;gap:5px}.card-statement{font-size:14px}
 .cardfoot{padding:12px 15px}.card-audit strong{font-size:14px}.card-audit span{font-size:12px}.cardfoot .cardaction{font-size:14px;min-height:44px;padding:8px 13px}
 .review-checks{padding:0 15px 14px}.review-checks>span{font-size:12px;padding:8px;line-height:1.6}.review-checks b{font-size:11px}
 .emptystate{min-height:160px;padding:30px 16px}.emptystate h3{font-size:16px}
 .review-branch-picker{padding:14px;margin-bottom:18px}.reviewer-picker h2{font-size:15px;margin-bottom:12px}.reviewer-options{gap:9px}.reviewer-options button{padding:12px 10px;min-height:82px;align-items:flex-start;gap:8px}.reviewer-options strong{font-size:13px;line-height:1.8}.reviewer-total [data-reviewer-count]{font-size:23px}.reviewer-total small{font-size:11px}
 .bottomnav{padding:7px 7px calc(8px + env(safe-area-inset-bottom));gap:5px;justify-content:stretch;box-shadow:0 -5px 22px #12233b0c}
 .bottomnav button{min-width:0;min-height:53px;flex:1;font-size:12px;padding:6px 2px;gap:4px;font-weight:650;border-radius:10px}.bottomnav svg{width:23px;height:23px}
 .management{grid-template-columns:1fr;gap:17px}.management .panel{padding:19px 17px}.panel h3{font-size:18px}.person strong{font-size:15px}.person small{font-size:13px}
 dialog{width:calc(100% - 20px);max-height:94dvh;border-radius:17px}.dialoghead{padding:15px 17px}.dialoghead h2{font-size:19px}.dialog-context{font-size:12px}
 .dialogbody{padding:21px 17px}.formgrid{gap:19px}.field label{font-size:15px}.field input,.field select,.field textarea{min-height:53px;font-size:16px}
 .dialogfooter{position:sticky;bottom:-21px;background:var(--brand-bg,#fcfdf8);margin:3px -17px -21px;padding:16px 17px calc(16px + env(safe-area-inset-bottom));border-top:1px solid var(--brand-border,#d8dfdb);z-index:2;flex-wrap:nowrap}
 .dialogfooter button{min-height:51px;min-width:0;font-size:15px;padding:11px 9px;flex:1}
 .details{gap:10px;font-size:15px}.details>div{padding:12px}.details dt{font-size:12px}.details dd{font-size:15px}
 .summaryline,.destination{padding:15px;font-size:14px;margin-bottom:22px}.summaryline strong{font-size:20px}.summaryline small{font-size:13px}.receipt-choices label{font-size:14px;padding:11px 9px}.receipt-choices legend{font-size:14px}
 .notice{font-size:14px}.confirmation-question{font-size:16px}.review-detail h3{font-size:15px}.review-step{font-size:14px}.review-step small{font-size:12px}
 #toast{bottom:calc(90px + env(safe-area-inset-bottom));font-size:14px;max-width:calc(100% - 24px)}
}
@media(max-width:360px){.workspace .content{padding-left:12px;padding-right:12px}.pagehead h1{font-size:25px}.pagehead>.primary{padding:10px 12px;font-size:13px}.workflow-summary{gap:7px}.branch-metrics{gap:6px}.branch-metrics .stat,.workflow-summary .admin-work{padding:11px 8px}.work-queues button{font-size:12px}.reviewer-options button{flex-direction:column}.reviewer-total{display:flex;align-items:center;gap:6px}}

/* Restrained, warm surfaces with distinct account identities. */
html[data-brand=alam]{--brand:#68445e;--brand-dark:#412d3d;--brand-deep:#2c202b;--brand-soft:#eee7ec;--brand-border:#ddd3da;--brand-ink:#362f37;--brand-muted:#726671;--brand-bg:#f5f2f4;--brand-gold:#d5c19e;--brand-nav:#e5dce3}
html[data-brand=arena]{--brand:#4c4c50;--brand-dark:#303034;--brand-deep:#242427;--brand-soft:#eeeae3;--brand-border:#ddd8ce;--brand-ink:#37343a;--brand-muted:#6d6970;--brand-bg:#f5f3ef;--brand-gold:#d8c299;--brand-nav:#e2ddd3}
html[data-brand=admin]{--brand:#405a77;--brand-dark:#213247;--brand-deep:#1b293c;--brand-soft:#e8edf2;--brand-border:#d5dde5;--brand-ink:#2d3b4c;--brand-muted:#606d7d;--brand-bg:#f2f4f7;--brand-gold:#d7c9ae;--brand-nav:#d6dfe8}
.layout{--ui-surface:#fffefd;--wait-bg:#eaf0f7;--wait-ink:#3b5d86;--review-bg:#f8f0dc;--review-ink:#7c642b;--return-bg:#f7e9e6;--return-ink:#934e43;--done-bg:#e9f1e9;--done-ink:#466c4d}
.branch-metrics .stat,.work-queues,.transfer,.cardfoot,.panel,.review-branch-picker,.search{background:var(--ui-surface,#fffefd)}
.workflow-summary .admin-work{background:var(--review-bg,#f8f0dc);border-color:#e5d8b9}
.workflow-summary .admin-work strong,.admin-work>span:first-child{color:var(--review-ink,#7c642b)}
html[data-brand]:not([data-brand=masar]) .work-queues button.active.admin-queue{background:var(--review-bg);border-color:#e5d8b9;color:var(--review-ink)}
.badge.waiting{background:var(--wait-bg);color:var(--wait-ink)}.badge.received{background:var(--review-bg);color:var(--review-ink)}.badge.returned{background:var(--return-bg);color:var(--return-ink)}.badge.completed{background:var(--done-bg);color:var(--done-ink)}
.transfer-waiting{border-top-color:#7893b3}.transfer-received{border-top-color:#b59c60}.transfer-returned{border-top-color:#b77e72}.transfer-completed{border-top-color:#79987e}
html[data-brand]:not([data-brand=masar]) .field input,html[data-brand]:not([data-brand=masar]) .field select,html[data-brand]:not([data-brand=masar]) .field textarea{background:#fffefd;border-color:var(--brand-border)}
html[data-brand]:not([data-brand=masar]) .reviewer-options button{background:var(--brand-bg);border-color:var(--brand-border);color:var(--brand-ink)}
html[data-brand]:not([data-brand=masar]) .reviewer-options button.active{background:var(--brand);border-color:var(--brand);color:#fff}
html[data-brand]:not([data-brand=masar]) .reviewer-options button.active small{color:#f0e7d5}
html[data-brand]:not([data-brand=masar]) button.danger{background:#f7ebe7;border-color:#e3c8c1;color:#934e43}
.review-checks>span{background:#f8f2e4;color:#816a34;border-color:#e7dbc0}.review-checks>span.approved{background:#edf3ec;color:#4d7054;border-color:#d8e3d5}
.search svg{color:var(--brand-muted)}.search input{color:var(--brand-ink)}
.workspace button:focus-visible,.workspace .search:focus-within{outline-color:#aa8449}
.workspace .search input:focus-visible{outline:none}
.off{opacity:.78}

/* Important metadata stays readable at phone sizes. */
.card-audit span{font-size:13px}.badge{font-size:13px}.reviewer-total small{font-size:12px}
@media(max-width:700px){.card-audit span,.transfer-route,.cardtop>small{font-size:13px}.badge{font-size:13px}.reviewer-total small{font-size:12px}}

.summaryline>svg{color:var(--brand,#405a77)}.photo-detail{background:var(--brand-soft,#e8edf2)}.notice{background:var(--review-bg,#f8f0dc);color:var(--review-ink,#7c642b);border:1px solid #e7dcc1}.countline{color:var(--brand-ink,#2d3b4c)}.filters button,.segmented button{color:var(--brand-muted,#606d7d)}.expired-photo{color:var(--brand-muted,#606d7d)}

/* Compact status control keeps more of the operation list visible on phones. */
.status-select{max-width:185px;min-width:0;min-height:44px;border:1px solid var(--brand-border,#d5dde5);background:var(--ui-surface,#fffefd);color:var(--brand-ink,#2d3b4c);border-radius:10px;padding:9px 10px;font:inherit;font-size:14px;line-height:1.5}.listtitle{gap:10px}.listtitle .countline{flex:1;max-width:none}.listtitle .refresh-button{font-size:24px;min-width:44px;padding:5px;line-height:1}.listtitle [data-refresh]{flex:none}
@media(max-width:700px){.listtitle{gap:8px;margin-top:2px}.status-select{max-width:145px;font-size:12px;padding:8px;min-height:43px}.listtitle .refresh-button{font-size:24px;min-width:40px}.listtitle .countline{font-size:12px;line-height:1.8}}
@media(max-width:360px){.status-select{max-width:130px}.listtitle{gap:6px}.listtitle .refresh-button{min-width:36px}}
.listtitle .countline{min-width:0;overflow-wrap:anywhere}

/* Installed-app safe-area canvas follows the navigation bar, never the old green. */
@media(display-mode:standalone),(display-mode:fullscreen){html[data-brand]:not([data-brand=masar]){background:var(--brand-dark)}html[data-brand]:not([data-brand=masar]) body{min-height:100dvh;background:var(--brand-bg)}html[data-brand]:not([data-brand=masar]) .bottomnav{background:var(--brand-dark);bottom:0}}
