
@font-face{font-family:"Plex";src:url("../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");font-weight:400;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+FB50-FDFF,U+FE70-FEFF}
@font-face{font-family:"Plex";src:url("../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2");font-weight:500;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+FB50-FDFF,U+FE70-FEFF}
@font-face{font-family:"Plex";src:url("../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2");font-weight:700;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+FB50-FDFF,U+FE70-FEFF}
@font-face{font-family:"Plex";src:url("../fonts/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2");font-weight:400;font-display:swap;unicode-range:U+0000-00FF}
@font-face{font-family:"Plex";src:url("../fonts/ibm-plex-sans-arabic-latin-500-normal.woff2") format("woff2");font-weight:500;font-display:swap;unicode-range:U+0000-00FF}
@font-face{font-family:"Plex";src:url("../fonts/ibm-plex-sans-arabic-latin-700-normal.woff2") format("woff2");font-weight:700;font-display:swap;unicode-range:U+0000-00FF}
:root{--navy:#0e1b2e;--navy2:#16294a;--navy3:#22406f;--orange:#f47029;--orange-d:#d85a16;--bg:#f2f5f9;--card:#fff;--ink:#1b2433;--muted:#667388;--line:#e0e6ef;
--danger:#d64545;--warn:#e0920d;--info:#2f7be5;--ok:#2e9d6b;--resp:#7a5af8;--slate:#6b7a90;--cyan:#1a9fb5;--dark:#2b2f36;
--r1:8px;--r2:14px;--r3:22px;--sh:0 1px 2px rgba(14,27,46,.06),0 6px 20px -8px rgba(14,27,46,.12)}
*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:"Plex","Segoe UI",Tahoma,sans-serif;background:var(--bg);color:var(--ink);font-size:15px;line-height:1.65}
a{color:var(--navy3);text-decoration:none}a:hover{text-decoration:underline}
h1,h2,h3,h4{margin:0;line-height:1.3}h3{font-size:16px;display:flex;align-items:center;gap:8px;margin-bottom:12px}
.ic{width:18px;height:18px;flex:none;vertical-align:-3px}
.ltr{direction:ltr;text-align:left;unicode-bidi:plaintext}.muted{color:var(--muted)}.tiny{font-size:12px}.pad{padding:8px 4px}.grow{flex:1}
:focus-visible{outline:3px solid #ffb48a;outline-offset:2px}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* shell */
.shell{display:flex;min-height:100vh}
.side{width:250px;background:var(--navy);color:#cdd7e6;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;flex:none}
.brand{display:flex;gap:12px;align-items:center;padding:22px 18px 18px}
.brand-mark{width:42px;height:42px;border-radius:12px;background:var(--orange);color:#fff;display:grid;place-items:center}
.brand-mark .ic{width:24px;height:24px}
.brand-text b{display:block;color:#fff;font-size:17px}.brand-text small{color:#8fa1bd;font-size:12px}
.side nav{flex:1;overflow:auto;padding:6px 10px}
.side nav a,.side-foot a{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:10px;color:#cdd7e6;margin-bottom:2px}
.side nav a:hover,.side-foot a:hover{background:rgba(255,255,255,.07);text-decoration:none}
.side nav a.on{background:var(--navy2);color:#fff;box-shadow:inset -3px 0 0 var(--orange)}
.side nav a .pill{margin-inline-start:auto}
.side-foot{padding:10px;border-top:1px solid rgba(255,255,255,.08)}
.main{flex:1;min-width:0}
.top{display:flex;align-items:center;gap:14px;padding:14px 26px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:30}
.top h1{font-size:20px;flex:1}
.content{padding:22px 26px 90px;max-width:1500px}
.only-m{display:none}
.icon-btn{border:0;background:transparent;border-radius:10px;width:40px;height:40px;display:inline-grid;place-items:center;cursor:pointer;color:inherit;position:relative}
.icon-btn:hover{background:rgba(0,0,0,.06)}
.dot{position:absolute;top:2px;inset-inline-start:2px;background:var(--danger);color:#fff;border-radius:99px;font-size:11px;font-style:normal;padding:0 5px;min-width:18px;line-height:18px;text-align:center}
.bell-wrap{position:relative}.bell-panel{position:absolute;inset-inline-end:0;top:46px;width:340px;max-width:90vw;background:#fff;border:1px solid var(--line);border-radius:var(--r2);box-shadow:var(--sh);padding:12px;z-index:50}
.bell-panel h4{margin:0 0 8px;font-size:14px}
.banner{display:flex;gap:10px;align-items:flex-start;padding:11px 26px;font-size:14px}
.banner.danger{background:#fdeaea;color:#8d2020}.banner.warn{background:#fff3da;color:#7a5200}
.login-card .banner{border-radius:10px;margin-bottom:12px;padding:10px 12px}
/* buttons / fields */
.btn{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:#fff;color:var(--ink);padding:9px 15px;border-radius:10px;font:inherit;font-weight:500;cursor:pointer;white-space:nowrap}
.btn:hover{background:#f6f8fb;text-decoration:none}.btn.primary{background:var(--orange);border-color:var(--orange);color:#fff}.btn.primary:hover{background:var(--orange-d)}
.btn.ghost{border-color:transparent;background:transparent}.btn.sm{padding:6px 11px;font-size:13px}.btn.lg{padding:14px 18px;font-size:17px}.btn.block{width:100%;justify-content:center}
.btn.danger-ghost{color:var(--danger);border-color:#f1c6c6}.btn.danger-ghost:hover{background:#fdeaea}
.btn[disabled]{opacity:.5;cursor:not-allowed}
.field{display:flex;flex-direction:column;gap:5px;margin-bottom:14px}.field>span{font-size:13px;color:var(--muted);font-weight:500}
input,select,textarea{font:inherit;color:inherit;background:#fff;border:1px solid #cfd8e6;border-radius:10px;padding:9px 12px;width:100%}
input:focus,select:focus,textarea:focus{border-color:var(--orange);outline:3px solid #ffe1cf}
textarea{resize:vertical}input[type=checkbox],input[type=radio]{width:auto;accent-color:var(--orange)}
.has-err input,.has-err textarea{border-color:var(--danger)}.err{color:var(--danger);font-size:12px}
.pill{background:var(--orange);color:#fff;border-radius:99px;font-style:normal;font-size:12px;padding:0 8px;line-height:20px}.pill.resp{background:var(--resp)}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
/* alerts */
.alert-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;margin-bottom:6px;color:var(--ink);border-inline-start:5px solid}
.alert-row b{margin-inline-start:auto;font-size:15px}.alert-row small{margin-inline-start:auto;color:var(--muted)}.alert-row:hover{text-decoration:none;filter:brightness(.97)}
.lv-danger{background:#fdeeee;border-color:var(--danger);color:#8d2020}.lv-warn{background:#fff6e3;border-color:var(--warn);color:#7a5200}
.lv-info{background:#e9f1fd;border-color:var(--info);color:#1c4f9c}.lv-ok{background:#e7f6ee;border-color:var(--ok);color:#1d6b49}
.lv-resp{background:#f0ecfe;border-color:var(--resp);color:#4c33b4}
.legend{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;font-size:12px}.legend span{padding:2px 10px;border-radius:99px;border:0}
.flagrow{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.flag{display:inline-flex;gap:6px;align-items:center;font-size:13px;padding:3px 10px;border-radius:99px;border:0}
/* dashboard */
.hello{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:18px}.hello h2{font-size:24px}
.hello-actions{display:flex;gap:10px}.lead{font-size:15px;margin:0 0 16px;max-width:70ch}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-bottom:18px}
.stat{background:var(--card);border-radius:var(--r2);padding:16px 18px;display:flex;gap:14px;align-items:center;box-shadow:var(--sh)}
.stat .ic{width:30px;height:30px;color:var(--navy3)}.stat b{font-size:26px;display:block;line-height:1.1}.stat span{color:var(--muted);font-size:13px}
.stat.ok .ic{color:var(--ok)}.stat.info .ic{color:var(--info)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
.panel{background:var(--card);border-radius:var(--r2);padding:18px 20px;box-shadow:var(--sh);margin-bottom:16px}.grid2 .panel{margin-bottom:0}
.bar{display:grid;grid-template-columns:130px 1fr 52px;gap:10px;align-items:center;margin:7px 0;font-size:14px}.bar-t{background:#edf1f7;border-radius:99px;height:10px;overflow:hidden}.bar-t i{display:block;height:100%;background:var(--navy3);border-radius:99px}.bar b{text-align:start}
.pipeline{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}
.stage{display:block;padding:12px;border-radius:12px;background:#f6f8fb;border-top:4px solid var(--slate);color:var(--ink)}.stage:hover{text-decoration:none;background:#eef2f8}
.stage b{font-size:22px;display:block}.stage span{font-size:13px;color:var(--muted)}
.tone-info{border-color:var(--info)}.tone-cyan{border-color:var(--cyan)}.tone-resp{border-color:var(--resp)}.tone-ok{border-color:var(--ok)}.tone-danger{border-color:var(--danger)}.tone-warn{border-color:var(--warn)}.tone-dark{border-color:var(--dark)}.tone-slate{border-color:var(--slate)}
/* toolbar & list */
.toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:12px}.toolbar.sub{margin-bottom:10px}
.toolbar select{width:auto;min-width:130px}.search{position:relative;flex:1;min-width:240px}.search .ic{position:absolute;inset-inline-start:12px;top:11px;color:var(--muted)}.search input{padding-inline-start:38px}
.seg{display:inline-flex;background:#e6ebf3;border-radius:12px;padding:3px}.seg a{padding:6px 14px;border-radius:9px;color:var(--ink);display:flex;gap:6px;align-items:center;font-size:14px}.seg a.on{background:#fff;box-shadow:var(--sh);font-weight:500}.seg a:hover{text-decoration:none}.seg.wrap{flex-wrap:wrap;margin-bottom:12px}
.count{color:var(--muted);font-size:14px}
.sel-banner{background:#fff6e3;border:1px solid #f1d9a0;border-radius:10px;padding:8px 14px;margin-bottom:10px;font-size:14px}.sel-banner a{cursor:pointer;font-weight:500}
.list-box{display:block;min-width:0;width:100%}
.cards{display:grid;grid-template-columns:repeat(var(--card-cols,3),minmax(0,1fr));gap:12px}
.list-box > .cards{width:100%;min-width:0}
.card-density{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;white-space:nowrap}
.toolbar .card-density select{min-width:64px;width:64px;padding:5px 9px;font-weight:600}
@media (min-width:901px) and (max-width:1450px){.cards[data-cols="6"]{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (min-width:901px) and (max-width:1100px){.cards[data-cols="4"],.cards[data-cols="6"]{grid-template-columns:repeat(3,minmax(0,1fr))}}
.gcard{background:var(--card);border-radius:var(--r2);box-shadow:var(--sh);padding:14px 16px;border-inline-start:6px solid #d3dbe8;position:relative;display:flex;flex-direction:column;gap:8px;min-width:0}
.gcard.sev-danger{border-color:var(--danger)}.gcard.sev-warn{border-color:var(--warn)}.gcard.sev-resp{border-color:var(--resp)}.gcard.sev-ok{border-color:var(--ok)}.gcard.sev-info{border-color:var(--info)}
.gcard.sel{outline:3px solid #ffd2b8}.gcard header{display:flex;gap:10px;align-items:flex-start;padding-inline-end:22px;min-width:0}.gcard header>div{min-width:0;overflow-wrap:anywhere}
.avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;font-weight:700;color:#fff;background:var(--navy3);flex:none}
.gcard h4{font-size:16px}.gcard .en{font-size:13px;color:var(--muted);direction:ltr;text-align:start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.gcard .ttl{font-size:13.5px;color:#39465a;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em}
.gcard .meta{display:flex;gap:6px;flex-wrap:wrap;font-size:12.5px;color:var(--muted)}.gcard .meta span{display:inline-flex;gap:4px;align-items:center;max-width:100%;min-width:0;overflow-wrap:anywhere;word-break:break-word}
.gcard .chips2{display:flex;gap:5px;flex-wrap:wrap}.tag{font-size:12px;padding:1px 9px;border-radius:99px;background:#eef2f8;color:#34445c}
.gcard .acts{display:flex;gap:6px;margin-top:auto;padding-top:4px}.gcard .acts .btn{padding:5px 10px;font-size:13px}
.st{font-size:12px;padding:1px 9px;border-radius:99px;color:#fff;background:var(--slate)}.st.info{background:var(--info)}.st.cyan{background:var(--cyan)}.st.resp{background:var(--resp)}.st.ok{background:var(--ok)}.st.danger{background:var(--danger)}.st.warn{background:var(--warn)}.st.dark{background:var(--dark)}
.gcard input[type=checkbox]{position:absolute;top:12px;inset-inline-end:12px;width:18px;height:18px;min-width:0;padding:0;margin:0}
.cards[data-cols="6"] .gcard{padding:11px 12px;gap:7px}
.cards[data-cols="6"] .gcard .avatar{width:34px;height:34px;font-size:14px}
.cards[data-cols="6"] .gcard h4{font-size:14px;line-height:1.35}
.cards[data-cols="6"] .gcard h4 a{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cards[data-cols="6"] .gcard .en{font-size:12px}
.cards[data-cols="6"] .gcard .ttl{font-size:12.5px}
.cards[data-cols="6"] .gcard .meta{font-size:11.5px}
.cards[data-cols="6"] .gcard .meta span.ltr{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cards[data-cols="6"] .gcard .acts{flex-wrap:wrap}
.cards[data-cols="6"] .gcard .acts .btn{padding:4px 8px;font-size:12px}
.cards[data-cols="6"] .gcard .tag,.cards[data-cols="6"] .gcard .st{font-size:11px}
.table-wrap{overflow:auto;background:#fff;border-radius:var(--r2);box-shadow:var(--sh);max-height:72vh}
table.sheet{border-collapse:separate;border-spacing:0;font-size:13.5px;min-width:100%}
.sheet th{position:sticky;top:0;background:var(--navy2);color:#fff;padding:9px 10px;text-align:start;white-space:nowrap;cursor:pointer;z-index:3;font-weight:500;border-inline-end:1px solid rgba(255,255,255,.12)}
.sheet td{padding:0;border-bottom:1px solid #edf0f5;border-inline-end:1px solid #f1f3f8;max-width:420px;height:34px;background:#fff}
.sheet td .cell{padding:6px 10px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-height:34px}
.sheet tr:nth-child(even) td{background:#fafbfd}.sheet tr.sel td{background:#fff0e6!important}.sheet td.cur{outline:2px solid var(--orange);outline-offset:-2px;z-index:1;position:relative}
.sheet td[data-k] input,.sheet td[data-k] select,.sheet td[data-k] textarea{border:0;border-radius:0;height:34px;padding:6px 10px;outline:2px solid var(--orange);width:100%;min-width:140px}
.sheet td.stripe{width:6px;padding:0}.sheet td.chk,.sheet th.chk{box-sizing:border-box;width:36px;min-width:36px;max-width:36px;padding:0;text-align:center;position:sticky;inset-inline-start:0;z-index:2;background:#fff}
.sheet .chk input[type=checkbox]{display:block;box-sizing:border-box;width:17px;height:17px;min-width:0;max-width:17px;padding:0;margin:0 auto;vertical-align:middle;accent-color:var(--orange)}
.sheet th.chk{z-index:4;background:var(--navy2)}.sheet td.ro .cell{color:#6b7a90}.sheet td.flash{animation:fl 1.2s}
@keyframes fl{0%{background:#c9f0d9}100%{background:transparent}}
.sheet td.stripe.s-danger{background:var(--danger)}.sheet td.stripe.s-warn{background:var(--warn)}.sheet td.stripe.s-resp{background:var(--resp)}.sheet td.stripe.s-ok{background:var(--ok)}.sheet td.stripe.s-info{background:var(--info)}
.pager{display:flex;gap:6px;justify-content:center;margin:16px 0;flex-wrap:wrap}.pager a,.pager button{min-width:38px;height:38px;display:inline-grid;place-items:center;border-radius:10px;border:1px solid var(--line);background:#fff;color:var(--ink);cursor:pointer;font:inherit;padding:0 8px}.pager .on{background:var(--navy2);color:#fff;border-color:var(--navy2)}.pager a:hover{text-decoration:none}
.bulk{position:fixed;bottom:16px;inset-inline:0;display:flex;justify-content:center;z-index:40;pointer-events:none;padding:0 12px}
.bulk-in{pointer-events:auto;background:var(--navy);color:#fff;border-radius:16px;padding:9px 12px;display:flex;gap:8px;align-items:center;flex-wrap:wrap;box-shadow:0 14px 40px rgba(14,27,46,.4);max-width:100%}
.bulk-in b{font-size:18px;margin-inline-start:6px}.bulk-in .btn{background:rgba(255,255,255,.1);border-color:transparent;color:#fff}.bulk-in .btn:hover{background:rgba(255,255,255,.2)}.bulk-in .danger-ghost{color:#ffb3b3}.bulk-in .icon-btn:hover{background:rgba(255,255,255,.15)}
.toasts{position:fixed;top:16px;inset-inline-start:16px;z-index:200;display:flex;flex-direction:column;gap:8px}
.toast{background:var(--navy);color:#fff;padding:10px 16px;border-radius:12px;box-shadow:var(--sh);max-width:360px;display:flex;gap:8px;align-items:center}.toast.err{background:var(--danger)}.toast.ok{background:var(--ok)}
/* modal */
.modal-bg{position:fixed;inset:0;background:rgba(14,27,46,.55);z-index:100;display:grid;place-items:center;padding:14px}
.modal{background:#fff;border-radius:var(--r3);max-width:640px;width:100%;max-height:92vh;overflow:auto;padding:22px;box-shadow:0 30px 80px rgba(0,0,0,.4)}
.modal h3{font-size:19px}.modal .btn-row{margin-top:10px}.btn-row{display:flex;gap:8px;flex-wrap:wrap}
.chan{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.chan .btn{justify-content:center;padding:12px}.chan .btn.wa{background:#25d366;border-color:#25d366;color:#0b3d1d}.chan .btn.tgm{background:#2aabee;border-color:#2aabee;color:#fff}.chan .btn.ml{background:var(--navy3);color:#fff;border-color:var(--navy3)}
.preview{white-space:pre-wrap;background:#f4f7fb;border-radius:12px;padding:12px;font-size:14px;max-height:220px;overflow:auto}.qbar{height:8px;background:#e6ebf3;border-radius:99px;overflow:hidden;margin:6px 0 12px}.qbar i{display:block;height:100%;background:var(--orange)}
/* guest page */
.guest-top{display:flex;gap:10px;margin-bottom:14px;flex-wrap:wrap}.guest-grid{display:grid;grid-template-columns:1fr 340px;gap:16px;align-items:start}.stack .panel{margin-bottom:14px}
.pgroup{border:0;padding:0;margin:0 0 18px}.pgroup legend{display:flex;gap:8px;align-items:center;font-weight:700;margin-bottom:10px;padding:0;color:var(--navy3)}
.fgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:0 14px}.field.wide{grid-column:1/-1}
.dl{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:0;font-size:14px}.dl dt{color:var(--muted)}.dl dd{margin:0}
.log{padding:7px 0;border-bottom:1px solid var(--line);font-size:14px}.log small{color:var(--muted);margin-inline-start:6px}.danger-zone{border:1px solid #f1c6c6}
.resp-card,.dup-card{background:#fff;border-radius:var(--r2);box-shadow:var(--sh);padding:16px 18px;margin-bottom:14px;border-inline-start:6px solid var(--resp)}
.resp-card.lv-danger{border-color:var(--danger);background:#fff}.resp-card header{display:flex;gap:12px;align-items:center;margin-bottom:10px}.resp-card footer{display:flex;gap:8px;margin-top:12px}
table.diff,table.plain{width:100%;border-collapse:collapse;font-size:14px}.diff th,.diff td,.plain th,.plain td{padding:8px 10px;border-bottom:1px solid var(--line);text-align:start;vertical-align:top}.diff th,.plain th{color:var(--muted);font-weight:500;background:#f7f9fc;white-space:nowrap}
.diff .old{color:var(--danger);text-decoration:line-through;text-decoration-color:#e9a0a0}.warn-text{color:var(--danger);font-weight:500}.note{background:#f4f7fb;border-radius:10px;padding:10px}
.dup-card{border-color:var(--warn)}.dup-card header{display:flex;gap:8px;align-items:center;margin-bottom:10px}.dup-members{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px}
.dup-m{display:flex;gap:10px;border:1px solid var(--line);border-radius:12px;padding:10px;cursor:pointer}.dup-m:has(input:checked){border-color:var(--orange);background:#fff6f0}.dup-m small{display:block;color:var(--muted)}.dup-m p{margin:4px 0;font-size:13px}
.chip-r{display:inline-block;background:#fdeeee;color:#8d2020;border-radius:99px;padding:1px 9px;font-size:12px;margin:1px}.plain .det{max-width:340px;font-size:12.5px;color:#4a566a}
.tpl{border-bottom:1px dashed var(--line);padding-bottom:12px;margin-bottom:14px}.tpl.new{border:0}code{background:#eef2f8;padding:1px 6px;border-radius:6px;direction:ltr;display:inline-block}
.risk{margin:0;padding-inline-start:20px}.risk li{margin-bottom:8px}.empty{text-align:center;padding:50px 20px;color:var(--muted)}.empty .ic{width:46px;height:46px;color:var(--ok)}
.checks{display:grid;gap:8px;margin-bottom:16px}.check-row{display:flex;gap:10px;align-items:center;padding:10px 14px;border-radius:12px;border-inline-start:5px solid}.check-row span{color:inherit;opacity:.85;margin-inline-start:auto;font-size:13px}
/* login & portal */
.login-page{display:grid;place-items:center;min-height:100vh;background:radial-gradient(1000px 500px at 80% -10%,#22406f 0,#0e1b2e 60%)}
.login-card{background:#fff;border-radius:var(--r3);padding:34px 30px;width:min(400px,92vw);box-shadow:0 30px 80px rgba(0,0,0,.45)}
.login-mark{width:56px;height:56px;border-radius:16px;background:var(--orange);color:#fff;display:grid;place-items:center;margin-bottom:14px}.login-mark .ic{width:30px;height:30px}
.login-card h1{font-size:26px;margin-bottom:6px}.pw-wrap{display:flex;gap:6px;align-items:center}
.portal{background:linear-gradient(180deg,#0e1b2e 0,#16294a 220px,var(--bg) 220px);min-height:100vh}
.portal-wrap{max-width:680px;margin:0 auto;padding:28px 14px 60px}
.portal-card{background:#fff;border-radius:var(--r3);padding:26px;box-shadow:0 20px 60px -20px rgba(14,27,46,.45)}
.portal-card.center{text-align:center;padding:44px 26px}.portal-card h1{font-size:23px}.big-ic{width:70px;height:70px;border-radius:50%;display:grid;place-items:center;margin:0 auto 14px;background:#e7f6ee;color:var(--ok)}.big-ic .ic{width:36px;height:36px}
.tone-warn .big-ic{background:#fff3da;color:var(--warn)}.tone-danger .big-ic{background:#fdeaea;color:var(--danger)}
.portal-head{display:flex;gap:14px;align-items:center;margin-bottom:12px}.big-input{font-size:26px;text-align:center;letter-spacing:8px}
.chips{display:flex;gap:8px;flex-wrap:wrap}.chip{cursor:pointer}.chip input{position:absolute;opacity:0}.chip span{display:inline-block;padding:7px 14px;border-radius:99px;border:1px solid #cfd8e6;background:#fff}.chip input:checked+span{background:var(--orange);border-color:var(--orange);color:#fff}.chip input:focus-visible+span{outline:3px solid #ffb48a}
.privacy{display:flex;gap:10px;background:#f4f7fb;border-radius:12px;padding:12px;margin:14px 0;font-size:14px;color:#44536a}.privacy p{margin:0}.check{display:flex;gap:10px;align-items:flex-start;margin-bottom:14px}
.more{margin-top:18px;border-top:1px solid var(--line);padding-top:12px}.more summary{cursor:pointer;color:var(--muted)}.inline-form{margin-top:10px}
@media (max-width:900px){
 .side{position:fixed;inset-block:0;inset-inline-start:0;z-index:90;transform:translateX(100%);transition:transform .2s}.side.open{transform:none}
 .only-m{display:inline-grid}.content{padding:16px 14px 100px}.top{padding:10px 14px}.grid2,.guest-grid{grid-template-columns:1fr}.fgrid{grid-template-columns:1fr}
 .bar{grid-template-columns:100px 1fr 44px}.chan{grid-template-columns:1fr}.banner{padding:10px 14px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:620px){.cards{grid-template-columns:1fr}.toolbar .card-density{flex:1;justify-content:flex-end}}

@media (max-width:1300px){
 .cards[data-cols="6"] .gcard{padding:14px 16px;gap:8px}
 .cards[data-cols="6"] .gcard .avatar{width:42px;height:42px;font-size:inherit}
 .cards[data-cols="6"] .gcard h4{font-size:16px}
 .cards[data-cols="6"] .gcard h4 a{display:inline;overflow:visible}
 .cards[data-cols="6"] .gcard .en{font-size:13px}
 .cards[data-cols="6"] .gcard .ttl{font-size:13.5px}
 .cards[data-cols="6"] .gcard .meta{font-size:12.5px}
 .cards[data-cols="6"] .gcard .meta span.ltr{display:inline-flex;white-space:normal;overflow:visible}
 .cards[data-cols="6"] .gcard .acts .btn{font-size:13px;padding:5px 10px}
 .cards[data-cols="6"] .gcard .tag,.cards[data-cols="6"] .gcard .st{font-size:12px}
}

/* Respect hidden attribute for fixed bulk toolbar and selection notice */
.bulk[hidden],.sel-banner[hidden]{display:none!important}

/* Experts2 UI4: focused list experience. Scoped to cards and sheet only. */
.filters-toolbar{
  display:grid;grid-template-columns:minmax(250px,2.35fr) repeat(5,minmax(112px,1fr)) minmax(80px,auto);
  align-items:center;gap:9px;margin-bottom:14px;
}
.filters-toolbar .search{min-width:0;width:100%;height:42px}
.filters-toolbar .search input{height:42px;border-radius:11px;background:#fff;min-width:0}
.filters-toolbar select{min-width:0;width:100%;max-width:100%;height:42px;padding:8px 10px;font-size:13px}
.filters-toolbar #fReset{justify-content:center;min-height:42px;padding:8px 10px;border:1px solid var(--line);background:#fff}
.list-actions{padding:8px 10px;border-radius:12px;background:#fff;border:1px solid var(--line);gap:9px}
.list-actions .seg{flex-shrink:0}
.list-actions .count{display:inline-flex;align-items:center;padding:5px 8px;border-radius:8px;background:#f0f4fa;color:#35435a;font-size:13px;font-variant-numeric:tabular-nums}
.list-actions select#perPage{min-width:74px}
.list-actions .btn{padding:7px 11px;font-size:13px}
.list-help{font-size:12px;color:#69788e;margin:2px 3px 12px;line-height:1.5}
.list-box[aria-busy=true]{cursor:progress}

/* Guest cards: clearly separated identity, editorial details, contact and actions. */
.list-box > .cards{align-items:stretch}
.list-box .gcard{
  min-width:0;overflow:hidden;gap:9px;padding:14px 15px 12px;
  border:1px solid var(--line);border-inline-start:5px solid #ccd6e5;
  border-radius:14px;box-shadow:0 3px 12px rgba(15,34,57,.065);
  transition:box-shadow .16s,border-color .16s,transform .16s;
}
.list-box .gcard:hover{box-shadow:0 8px 24px rgba(15,34,57,.12);transform:translateY(-1px)}
.list-box .gcard.sel{outline:2px solid #f47029;outline-offset:-2px;background:#fffaf7}
.list-box .gcard.sev-danger{border-inline-start-color:var(--danger)}
.list-box .gcard.sev-warn{border-inline-start-color:var(--warn)}
.list-box .gcard.sev-resp{border-inline-start-color:var(--resp)}
.list-box .gcard.sev-info{border-inline-start-color:var(--info)}
.list-box .gcard.sev-ok{border-inline-start-color:var(--ok)}
.list-box .gcard .card-select{width:18px;height:18px;min-width:18px;flex:none;z-index:1;cursor:pointer}
.list-box .gcard .guest-head{display:flex;align-items:flex-start;gap:9px;padding-inline-end:22px;min-width:0;min-height:44px}
.list-box .gcard .guest-headline{min-width:0;flex:1;overflow:hidden;overflow-wrap:normal}
.list-box .gcard .avatar{width:40px;height:40px;font-size:17px}
.list-box .gcard h4{font-size:15px;line-height:1.5;font-weight:700;min-width:0;overflow:hidden}
.list-box .gcard h4 a{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  overflow:hidden;overflow-wrap:break-word;word-break:normal;color:var(--navy2);
}
.list-box .gcard h4 a:hover{color:var(--orange-d)}
.list-box .gcard .en{font-size:12px;color:#74829a;line-height:1.45;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-top:2px;max-width:100%}
.list-box .gcard .ttl{
  font-size:13px;color:#33425c;line-height:1.55;min-height:40px;max-height:42px;
  margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.list-box .gcard .guest-location{
  display:flex;align-items:center;gap:6px;min-width:0;font-size:12px;color:#66748a;line-height:1.5;
}
.list-box .gcard .guest-location .ic{width:14px;height:14px;color:#7184a1}
.list-box .gcard .guest-location span{min-width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.list-box .gcard .guest-contacts{display:flex;flex-direction:column;gap:5px;min-width:0;min-height:39px}
.list-box .gcard .contact-line{
  display:flex;align-items:center;justify-content:flex-start;gap:7px;
  min-width:0;width:100%;max-width:100%;font-size:12px;line-height:1.45;color:#50637d;
}
.list-box .gcard .contact-line .ic{width:14px;height:14px;flex:0 0 14px;color:#7e92b0}
.list-box .gcard .contact-val{
  min-width:0;display:block;flex:1;max-width:100%;direction:ltr;text-align:left;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;unicode-bidi:isolate;
}
.list-box .gcard .contact-missing{font-size:12px;color:var(--muted);font-style:italic}
.list-box .gcard .chips2{display:flex;gap:5px;flex-wrap:wrap;align-content:flex-start}
.list-box .gcard .tag,.list-box .gcard .st,.list-box .gcard .flag{
  display:inline-flex;align-items:center;max-width:100%;min-width:0;
  padding:3px 8px;line-height:1.35;border-radius:8px;font-size:11px;
}
.list-box .gcard .tag{background:#edf2f8;color:#344862;border:1px solid #e2e9f3}
.list-box .gcard .tag{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.list-box .gcard .flag{border:1px solid transparent}
.list-box .gcard .flag span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:170px}
.list-box .gcard .flag .ic{width:13px;height:13px}
.list-box .gcard .more-flags{background:#eef2f8;color:#53647e}
.list-box .gcard .acts{
  border-top:1px solid #edf1f6;padding-top:10px;margin-top:auto;display:flex;
  justify-content:space-between;align-items:center;flex-wrap:nowrap;gap:7px;
}
.list-box .gcard .acts .btn{
  min-width:0;border-radius:9px;justify-content:center;font-size:12px;
  font-weight:600;line-height:1.3;padding:7px 10px;
}
.list-box .gcard .acts .btn .ic{width:15px;height:15px}
.list-box .gcard .card-open{background:#eef3fa;color:#24406e;border-color:#e0e8f4}
.list-box .gcard .card-open:hover{background:#e0eafa}
.list-box .gcard .card-send{background:#fff6ef;color:#b64d12;border-color:#f5d8c4}
.list-box .gcard .card-send:hover{background:#ffe9d8}

/* 6-card density: keep names legible, reduce secondary content instead of wrapping letters. */
@media (min-width:1301px){
 .list-box .cards[data-cols="6"] .gcard{padding:12px 10px 10px;gap:7px}
 .list-box .cards[data-cols="6"] .gcard .guest-head{gap:6px;min-height:38px;padding-inline-end:20px}
 .list-box .cards[data-cols="6"] .gcard .avatar{width:32px;height:32px;font-size:14px}
 .list-box .cards[data-cols="6"] .gcard h4{font-size:12px}
 .list-box .cards[data-cols="6"] .gcard .en{font-size:11px}
 .list-box .cards[data-cols="6"] .gcard .ttl{font-size:11.5px;min-height:37px;max-height:39px}
 .list-box .cards[data-cols="6"] .gcard .guest-location{font-size:11px}
 .list-box .cards[data-cols="6"] .gcard .guest-contacts{min-height:24px}
 .list-box .cards[data-cols="6"] .gcard .contact-line{font-size:11px}
 .list-box .cards[data-cols="6"] .gcard .contact-line.email-line{display:none}
 .list-box .cards[data-cols="6"] .gcard .tag,.list-box .cards[data-cols="6"] .gcard .st,
 .list-box .cards[data-cols="6"] .gcard .flag{font-size:10px;padding:3px 6px}
 .list-box .cards[data-cols="6"] .gcard .chips2 .flag:nth-of-type(n+4){display:none}
 .list-box .cards[data-cols="6"] .gcard .acts .btn{font-size:11px;padding:6px 7px;gap:4px}
 .list-box .cards[data-cols="6"] .gcard .acts .btn .ic{width:13px;height:13px}
}
.list-box .table-wrap{border:1px solid var(--line);border-radius:12px;box-shadow:var(--sh);scrollbar-gutter:stable}
.list-box table.sheet{font-size:13px}
.list-box .sheet td{height:40px}
.list-box .sheet td .cell{padding:8px 10px;min-height:40px}
.list-box .sheet th{padding:10px 10px;font-size:12.5px;letter-spacing:0}
.list-box .sheet th[role=button]:hover{background:#253e66}
.list-box .sheet th[role=button]:focus-visible{outline:3px solid #ffbe91;outline-offset:-3px}
.list-box .sheet tbody tr:hover td{background:#eef5fd}
.list-box .sheet tr.sel:hover td{background:#fff0e6!important}
.list-box .sheet td.chk{background:#fff}
.list-box .sheet tr:nth-child(even) td.chk{background:#fafbfd}
.list-box .sheet tbody tr:hover td.chk{background:#eef5fd}
.list-box .sheet tr.sel td.chk{background:#fff0e6!important}
.list-box .sheet .chk input[type=checkbox]{cursor:pointer}
.pager button:hover,.pager a:hover{border-color:#afc3dc;background:#f4f8fd}
.pager button.on:hover{background:var(--navy2);color:#fff}
.bulk-in{max-height:48vh;overflow:auto}

/* Toolbar adapts with screen real estate; never shrink cards to column-width slivers. */
@media (max-width:1420px){
 .filters-toolbar{grid-template-columns:minmax(230px,1.8fr) repeat(3,minmax(125px,1fr))}
 .filters-toolbar .search{grid-column:span 2}
}
@media (max-width:1050px){
 .filters-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}
 .filters-toolbar .search{grid-column:1/-1}
}
@media (max-width:760px){
 .list-actions{gap:7px}
 .list-actions .grow{display:none}
 .list-actions .count{order:4}
 .list-help{font-size:11px}
 .filters-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .filters-toolbar .search{grid-column:1/-1}
 .filters-toolbar #fReset{min-width:0}
 .list-box .gcard .guest-head{padding-inline-end:23px}
 .list-box .gcard .guest-contacts{min-height:0}
 .list-box .table-wrap{max-height:70vh}
 .list-box table.sheet{min-width:750px}
}
@media (max-width:430px){
 .list-actions .btn{padding:7px 9px}
 .list-actions .count{order:0}
 .list-actions .card-density{order:1;flex:none}
 .list-box .gcard .acts .btn{font-size:13px;padding:9px 12px}
}

/* Compact filter reveal on phones while leaving the search field always visible. */
.filter-toggle{display:none}
.filter-toggle .filter-n{
  min-width:19px;padding:1px 5px;line-height:18px;border-radius:6px;
  background:#edf2f8;color:#334762;font-size:11px;text-align:center
}
.filter-toggle .filter-n[hidden]{display:none!important}
.filter-extra{display:contents}
@media (max-width:760px){
 .filters-toolbar{grid-template-columns:minmax(0,1fr) auto;gap:8px}
 .filters-toolbar .search{grid-column:1;min-width:0}
 .filters-toolbar .filter-toggle{
   display:inline-flex;justify-content:center;align-items:center;gap:6px;
   padding:8px 11px;height:42px;white-space:nowrap;background:#fff;border-color:var(--line);
 }
 .filters-toolbar .filter-toggle .ic{width:15px;height:15px}
 .filters-toolbar .filter-extra{display:none;grid-column:1/-1;min-width:0}
 .filters-toolbar.filters-expanded .filter-extra{
   display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px
 }
 .filters-toolbar .filter-extra select,.filters-toolbar .filter-extra .btn{min-width:0;width:100%}
 .filters-toolbar .filter-extra #fReset{display:inline-flex;justify-content:center}
}

/* Experts2 UI5 — guest profile and assisted human review. */
.guest-summary{
  display:flex;align-items:center;gap:14px;margin-bottom:14px;padding:18px 20px;
  border-radius:16px;background:#fff;border:1px solid var(--line);
  box-shadow:0 5px 18px rgba(15,35,67,.055);min-width:0
}
.guest-summary-mark{display:grid;place-items:center;width:56px;height:56px;flex:0 0 56px;border-radius:15px;background:#fff0e7;color:var(--orange)}
.guest-summary-mark .ic{width:27px;height:27px}
.guest-summary-main{min-width:0;flex:1}
.guest-summary-main h2{font-size:21px;line-height:1.4;margin:0;color:var(--navy2);overflow-wrap:break-word}
.guest-summary-en{margin:3px 0 0;color:var(--muted);font-size:14px;text-align:right;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.guest-summary-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}
.guest-summary-tags span{display:inline-block;font-size:12px;color:#4a607b;padding:4px 9px;background:#f1f5fb;border-radius:7px}
.guest-top{
  display:flex;align-items:center;flex-wrap:wrap;gap:8px;position:sticky;top:0;
  z-index:12;background:rgba(248,250,253,.97);padding:9px 0;margin-bottom:11px;
  border-bottom:1px solid var(--line);backdrop-filter:blur(8px)
}
.guest-top .btn{min-height:37px}
.guest-top #saveAll:disabled{opacity:.5;cursor:not-allowed}
.guest-save-state{font-size:12px;color:#64758c;padding:6px 9px;border-radius:8px;background:#eef2f8}
.guest-save-state.unsaved{color:#905008;background:#fff1d6;font-weight:600}
.profile-jump{
  display:flex;gap:7px;align-items:center;overflow-x:auto;white-space:nowrap;scrollbar-width:thin;
  margin:0 0 15px;padding:1px 0 10px
}
.profile-jump a{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;
  padding:8px 11px;border:1px solid var(--line);background:white;border-radius:9px;
  font-size:12px;color:#314b70;line-height:1.3}
.profile-jump a:hover{border-color:#eeb08b;background:#fff5ee;text-decoration:none}
.profile-jump a .ic{width:15px;height:15px}
.guest-grid{min-width:0}
.guest-grid>form{min-width:0}
.guest-grid .pgroup{padding:14px 0 17px;margin:0;border-bottom:1px solid #e8edf4;scroll-margin-top:80px}
.guest-grid .pgroup:last-child{border-bottom:0;padding-bottom:0}
.guest-grid .pgroup:target{background:#fffaf5;outline:2px solid #ffe3d2;border-radius:8px;outline-offset:6px}
.guest-grid .pgroup legend{font-size:16px;color:#213c63;font-weight:700}
.guest-grid .field span{font-size:13px;color:#47576f}
.guest-grid .field input,.guest-grid .field select,.guest-grid .field textarea{max-width:100%;min-width:0}
.guest-grid .field:focus-within span{color:#cb5416}
.guest-grid .field-invalid input,.guest-grid .field-invalid select,.guest-grid .field-invalid textarea{border-color:#c72e36;outline:1px solid #c72e36}
.guest-grid .field-error{display:block;margin-top:4px;color:#a72428;font-size:12px}
.guest-grid .panel{box-shadow:0 3px 13px rgba(15,35,67,.055)}
.guest-grid .stack .panel{padding:18px 19px}
.guest-grid .stack .panel h3{font-size:15px;color:#233e65}
.guest-grid .stack .dl{font-size:13px;gap:9px 14px;word-break:break-word}
.guest-grid .stack .dl dt{color:#64758d}
.guest-grid .stack .dl dd{font-weight:500;min-width:0}
.guest-grid .danger-zone{background:#fffcfb;border-color:#eecaca}
.guest-grid #gForm[aria-busy=true]{opacity:.75}

/* Review: two queues and one decision per approximate English name. */
.review-heading{display:flex;align-items:flex-start;gap:12px;margin-bottom:13px}
.review-heading h2{font-size:20px;color:var(--navy2);margin:0 0 5px}
.review-heading p{font-size:13px;color:var(--muted);margin:0}
.review-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0 17px}
.review-tabs a{
 display:inline-flex;align-items:center;gap:9px;padding:10px 13px;
 background:#fff;border:1px solid var(--line);border-radius:11px;
 font-size:13px;color:#37516e;text-decoration:none;max-width:100%
}
.review-tabs a.on{border-color:#efad86;background:#fff4ec;color:#9c4415;font-weight:700}
.review-tabs a:hover{background:#f5f8fd}
.review-tabs a .ic{width:17px;height:17px}
.review-tabs b{border-radius:7px;padding:3px 6px;background:#edf2f8;font-weight:600;font-size:12px}
.review-notice{display:flex;align-items:flex-start;gap:10px;border:1px solid #d6e5f4;
 background:#f2f8ff;border-radius:12px;padding:13px 15px;margin-bottom:15px;color:#334763}
.review-notice .ic{width:19px;height:19px;flex:0 0 19px}
.review-notice strong{font-size:14px}
.review-notice p{font-size:12.5px;margin:4px 0 0;line-height:1.6}
.review-name-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.review-name-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:15px 16px;
 box-shadow:0 3px 12px rgba(15,35,67,.045);min-width:0;display:flex;flex-direction:column;gap:10px}
.review-name-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.review-name-card header>div{flex:1;min-width:0}
.review-name-card header b{font-size:15px;color:#243f63;overflow-wrap:break-word}
.review-name-card header small{display:block;margin-top:4px;color:#738198;font-size:12px}
.review-name-card .review-name-title{color:#4c5a70;font-size:12.5px;margin:0;
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.review-name-card .review-name-field{display:block;margin:0}
.review-name-card .review-name-field>span{font-size:12px}
.review-name-card .review-name-input{direction:ltr;text-align:left;width:100%;max-width:100%;
 padding:10px 12px;font-size:14px;border-radius:9px}
.review-name-card .review-name-input[aria-invalid=true]{border-color:var(--danger)}
.review-name-card footer{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:space-between;margin-top:auto}
.review-name-card footer .btn{font-size:12.5px}
.review-name-state{color:#65758c;font-size:12px}
.review-name-edited{border-color:#edac82;background:#fffcf8}
.review-name-edited .review-name-state{color:#a55417}
.review-name-done{background:#f4faf7;border-color:#b9dec9}
.review-name-done .review-name-state{color:#186543;font-weight:600}
.review-name-done button:disabled{opacity:.6;cursor:default}
.review-next{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
 margin-top:17px;padding:12px 15px;background:#f7f9fc;border:1px solid var(--line);border-radius:12px}
.review-next p{margin:0;font-size:12px}
.review-intro{margin:0 0 13px;color:#56677e;font-size:13px}
.review-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px;background:#fff}
.review-table{min-width:850px}
.review-table th{color:#2b4262!important;background:#eff4f9!important;font-weight:600!important}
.review-table td{font-size:12.5px;line-height:1.6}
.review-table tbody tr:nth-child(even){background:#fafcfe}
.review-table tbody tr:hover{background:#f1f7fe}
.review-description{min-width:180px;max-width:340px}
.review-en{display:block;color:#6e7f95;margin-top:3px;text-align:left;font-size:12px}
@media (max-width:950px){
 .review-name-grid{grid-template-columns:1fr}
}
@media (max-width:700px){
 .guest-summary{padding:14px;gap:10px}
 .guest-summary-mark{width:42px;height:42px;flex-basis:42px}
 .guest-summary-mark .ic{width:22px;height:22px}
 .guest-summary-main h2{font-size:18px}
 .guest-summary-tags span{font-size:11px}
 .guest-top{gap:6px}
 .guest-top .guest-save-state{order:5;flex:1 0 100%;text-align:center}
 .guest-top .grow{display:none}
 .guest-top #sendBtn,.guest-top #saveAll{flex:1;justify-content:center;font-size:12px}
 .guest-top>a.btn{font-size:12px}
 .guest-grid .pgroup{scroll-margin-top:120px}
 .guest-grid .stack .panel{padding:14px}
 .review-tabs a{flex:1;justify-content:center;font-size:12px}
 .review-tabs a .ic{display:none}
 .review-name-card{padding:12px}
 .review-heading h2{font-size:18px}
}


/* Experts2 UI6: faster review workflow; scoped styling avoids changing guest cards. */
.review-search{
  display:flex;align-items:center;flex-wrap:wrap;gap:8px;
  background:#fff;border:1px solid var(--line);border-radius:12px;
  padding:10px;margin:0 0 12px;box-shadow:0 2px 9px rgba(15,35,67,.035)
}
.review-search-field{display:flex;align-items:center;gap:8px;min-width:200px;flex:1;
  height:42px;border:1px solid #d0dae7;border-radius:9px;background:#fff;padding:0 11px}
.review-search-field:focus-within{border-color:#f47029;box-shadow:0 0 0 2px rgba(244,112,41,.13)}
.review-search-field .ic{width:17px;height:17px;flex-shrink:0;color:#8192aa}
.review-search-field input{min-width:0;width:100%;height:40px;border:0!important;background:transparent!important;
  outline:0!important;padding:4px 0!important;box-shadow:none!important;font-size:13px}
.review-search .btn{height:40px;min-width:83px;justify-content:center}
.review-reason-filters{
  display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:0;
  margin:0 0 7px
}
.review-reason-filters a{
  display:inline-flex;align-items:center;gap:7px;max-width:100%;
  border:1px solid #d6e0ed;background:#fff;color:#3b506f;
  padding:8px 11px;border-radius:9px;font-size:12px;text-decoration:none;line-height:1.4
}
.review-reason-filters a b{font-size:11px;line-height:1.3;border-radius:6px;
 background:#edf2f7;color:#4e6079;padding:3px 6px;min-width:22px;text-align:center}
.review-reason-filters a.on{border-color:#f1ac80;background:#fff3eb;color:#a7450b;font-weight:700}
.review-reason-filters a.on b{background:#ffe2ce;color:#9f471c}
.review-reason-filters a:hover{border-color:#f1a879;background:#fff8f3}
.review-filter-note{margin:0 1px 12px;color:#8090a6;font-size:11px;line-height:1.5}
.review-results-bar{
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;
  gap:9px;border-radius:9px;padding:10px 13px;background:#eaf1f8;
  margin:12px 0;color:#355071;font-size:12px;font-variant-numeric:tabular-nums
}
.review-results-bar strong{font-size:13px;color:#203f66}
.review-reason-tag{border-radius:7px;padding:3px 8px;margin:2px 3px;background:#eff3f9;
  color:#41516b;border:1px solid #e3eaf4}
.review-reason-tag.reason-phone{background:#fff3df;color:#935d10;border-color:#f6dfb7}
.review-reason-tag.reason-name{background:#edf5ff;color:#285a90;border-color:#d6e7fa}
.review-reason-tag.reason-title{background:#f0f3ff;color:#514da0;border-color:#dcdcf5}
.review-reason-tag.reason-duplicate{background:#f6efff;color:#72479b;border-color:#e7d7f7}
.review-reason-tag.reason-other{background:#f4f5f7;color:#566575;border-color:#e2e6ec}
.review-table td .review-reason-tag{display:inline-flex}
.review-search .btn:hover,.review-reason-filters a:focus-visible{outline-offset:2px}
@media(max-width:760px){
  .review-search{padding:9px;gap:7px}
  .review-search-field{flex:1 0 100%;min-width:0}
  .review-search .btn{flex:1}
  .review-reason-filters{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;
    padding:2px 1px 9px;scrollbar-width:thin;scroll-snap-type:x proximity}
  .review-reason-filters a{flex-shrink:0;white-space:nowrap;scroll-snap-align:start}
  .review-results-bar{margin:9px 0;font-size:11px}
}

/* UI7 — Review return and safe phone verification hints. */
.review-phone-guidance,.guest-phone-check{
  display:flex;align-items:flex-start;gap:11px;background:#fff8ed;
  border:1px solid #eddaad;border-radius:12px;
  padding:12px 14px;margin:10px 0 14px;color:#634b29;
}
.review-phone-guidance>.ic,.guest-phone-check>.ic{
  flex:0 0 19px;width:19px;height:19px;color:#b57417;margin-top:2px;
}
.review-phone-guidance strong,.guest-phone-check strong{font-size:13px;color:#7d5219}
.review-phone-guidance p,.guest-phone-check p{
  font-size:12px;line-height:1.75;margin:4px 0 0;
}
.guest-phone-check a{
  display:inline-flex;align-items:center;gap:6px;font-size:12px;
  margin-top:8px;color:#a75415;text-decoration:underline;font-weight:600;
}
.guest-phone-check a .ic{width:14px;height:14px}
.guest-review-origin{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  background:#f0f6fd;border:1px solid #d4e4f4;border-radius:12px;
  padding:12px 14px;margin:0 0 12px;
}
.guest-review-origin-body{display:flex;align-items:flex-start;gap:10px;min-width:0}
.guest-review-origin-body>.ic{width:19px;height:19px;color:#3b6c9e;flex:0 0 19px}
.guest-review-origin strong{font-size:13px;color:#244d77}
.guest-review-origin p{font-size:12px;color:#526c87;margin:4px 0 0;line-height:1.5}
.guest-review-origin .btn{flex-shrink:0;font-size:12px;border-color:#cbdfef;background:#fff;color:#305981}
.guest-return-top{border-color:#c6dced!important;color:#315b84!important;background:#f5faff!important}
.review-table tbody tr[id^="review-record-"],
.review-name-card[id^="review-record-"]{scroll-margin-top:95px}
.review-table tbody tr[id^="review-record-"]:target td{background:#fff1e7!important}
.review-name-card[id^="review-record-"]:target{
  outline:2px solid #f47029;outline-offset:2px;background:#fffaf6;
}
.review-open-file{white-space:nowrap;font-weight:600}
@media(max-width:760px){
  .guest-review-origin{flex-wrap:wrap;padding:12px}
  .guest-review-origin .btn{width:100%;justify-content:center}
  .guest-review-origin p{font-size:11px}
  .guest-phone-check{padding:10px 12px}
  .guest-return-top{flex:1}
}


/* Review V3: evidence-first triage, compact priority shortcuts and mobile cards. */
.review-queue-overview{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:12px;margin:0 0 12px}
.review-queue-main,.review-queue-names{padding:13px 15px;border-radius:11px;background:#fff;border:1px solid #dbe5ef;min-width:0}
.review-queue-title{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap}
.review-queue-title strong{font-size:16px;color:#203d61}
.review-queue-title span,.review-queue-main small{font-size:11px;line-height:1.6;color:#74849a}
.review-queue-main progress{display:block;width:100%;height:6px;margin:10px 0 7px;accent-color:#f47029}
.review-queue-names{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px}
.review-queue-names strong{font-size:23px;color:#244566;font-variant-numeric:tabular-nums}
.review-queue-names span{font-size:11px;color:#677b90}
.review-queue-names a{font-size:11.5px;text-decoration:underline;color:#245e97}
.review-quick-tasks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0 0 14px}
.review-quick-tasks a{display:flex;flex-direction:column;gap:3px;padding:10px 12px;border:1px solid #d8e3ee;border-radius:11px;background:#fff;min-width:0;color:#29496e;text-decoration:none;transition:border-color .15s}
.review-quick-tasks a:hover,.review-quick-tasks a:focus-visible{border-color:#f47029;background:#fffaf6}
.review-quick-tasks small{font-size:11px;color:#6b7e95}
.review-quick-tasks strong{font-size:21px;line-height:1.15;font-variant-numeric:tabular-nums;color:#274765}
.review-quick-tasks span{font-size:10.5px;color:#8090a2}
.review-sort-options{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:3px 0 12px}
.review-sort-options>span{font-size:11.5px;color:#6b7d92;margin-inline-end:3px}
.review-sort-options a{font-size:11.5px;color:#3f5b79;padding:5px 9px;border-radius:8px;border:1px solid #d9e4ed;background:white;text-decoration:none}
.review-sort-options a.on{color:#a34c1c;background:#fff1e7;border-color:#f6c7a8;font-weight:700}
.review-sort-options a:hover{border-color:#f4aa7d}
@media(max-width:760px){
  .review-queue-overview{grid-template-columns:1fr;gap:8px}
  .review-queue-names{flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px}
  .review-queue-names strong{font-size:20px}
  .review-quick-tasks{grid-template-columns:1fr 1fr;gap:7px}
  .review-quick-tasks a:last-child{grid-column:1/-1}
  .review-quick-tasks a{padding:9px 10px}
  .review-table-wrap{overflow:visible;border:0;background:transparent}
  .review-table{display:block;min-width:0;width:100%;border:0}
  .review-table thead{display:none}
  .review-table tbody{display:grid;grid-template-columns:1fr;gap:9px}
  .review-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 10px;
    background:#fff!important;border:1px solid #dbe6f1;border-radius:12px;padding:12px;box-shadow:0 2px 10px rgba(12,41,73,.03)}
  .review-table tbody tr td{display:block;min-width:0;max-width:100%;min-height:0;padding:2px 0!important;border:0!important;
    text-align:start;white-space:normal;overflow-wrap:anywhere}
  .review-table tbody tr td::before{content:attr(data-label);display:block;font-size:10px;color:#8491a3;margin-bottom:3px}
  .review-table tbody tr td:nth-child(2){grid-column:1/-1;grid-row:1}
  .review-table tbody tr td:nth-child(1){grid-column:1;grid-row:2}
  .review-table tbody tr td:nth-child(4){grid-column:2;grid-row:2}
  .review-table tbody tr td:nth-child(3){grid-column:1/-1;grid-row:3}
  .review-table tbody tr td:nth-child(5){grid-column:1/-1;grid-row:4}
  .review-table tbody tr td:nth-child(6){grid-column:1/-1;grid-row:5}
  .review-table .review-description{min-width:0;max-width:100%}
  .review-table .review-open-file{width:100%;justify-content:center}
}
@media(max-width:380px){
  .review-quick-tasks{grid-template-columns:1fr}
  .review-quick-tasks a:last-child{grid-column:auto}
}


/* Contact channels V1: compact, admin-only, never show missing or guessed profiles. */
.contact-guest-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.contact-guest-links .btn{font-size:12px;min-height:33px;padding:6px 9px}
.contact-guest-note{line-height:1.55;margin:8px 0 0}
.compose-contact-options{border:1px solid #dce6f0;border-radius:11px;padding:10px 12px;background:#f9fbfe;margin:11px 0}
.compose-contact-title{margin:0 0 7px;font-size:12px;font-weight:700;color:#344b69}
.compose-contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(128px,1fr));gap:7px}
.compose-contact-grid .btn{display:flex;justify-content:center;min-height:37px;font-size:12px;padding:7px 9px;white-space:normal;text-align:center;gap:5px}
.compose-contact-help{font-size:11.5px;line-height:1.65;margin:8px 0 0;color:#687d94}
.compose-contact-none{font-size:12px;color:#77899d;margin:8px 0}
.chan.compose-primary-channels{grid-template-columns:repeat(4,minmax(0,1fr))}
.chan.compose-primary-channels .btn{padding:9px 6px;font-size:12px;min-width:0;gap:5px}
@media(max-width:650px){
  .chan.compose-primary-channels{grid-template-columns:repeat(2,minmax(0,1fr))}
  .compose-contact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .compose-contact-options{padding:10px}
}
@media(max-width:365px){
  .compose-contact-grid{grid-template-columns:1fr}
}

.contact-field-help{color:#647a91;font-size:11.5px;line-height:1.7;margin:3px 0 12px}


/* Portal honeypot remains invisible to people but cannot push the RTL page 10,000px wide. */
.portal input.hp{left:auto;right:0;top:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);pointer-events:none}

/* Guest portal V2 — compact invitation landing, accessible collapsible sections.
   Scoped to .portal only: no changes to the admin dashboard design. */
.portal .portal-wrap{max-width:700px;padding-top:19px}
.portal .portal-brand{display:flex;align-items:center;gap:10px;color:#fff;margin:0 2px 17px}
.portal .portal-brand-mark{display:inline-grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:11px;background:#f47029;color:#fff;font-weight:800;letter-spacing:.6px;font-size:13px}
.portal .portal-brand strong,.portal .portal-brand small{display:block;line-height:1.35}
.portal .portal-brand strong{font-size:15px;font-weight:700;direction:ltr;text-align:right}
.portal .portal-brand small{font-size:11px;color:#cbd7e8;margin-top:3px}
.portal .portal-card{border:1px solid #edf0f5;box-shadow:0 18px 45px -20px rgba(14,27,46,.32)}
.portal .portal-kicker{display:inline-flex;gap:6px;align-items:center;font-size:12px;font-weight:700;color:#b3521d;background:#fff2e9;border:1px solid #ffdfc8;border-radius:99px;padding:6px 10px;margin:0 0 13px}
.portal .portal-kicker .ic{height:14px;width:14px}
.portal .portal-head{gap:11px;margin-bottom:8px}
.portal .portal-head h1{font-size:clamp(19px,4vw,23px);line-height:1.4;overflow-wrap:anywhere}
.portal .portal-head .brand-mark{flex-shrink:0}
.portal .portal-lead{font-size:14px;line-height:1.95;color:#40516a;margin:0 0 16px}
.portal .portal-lead strong{color:#283d59}
.portal .portal-steps{display:flex;gap:5px;flex-wrap:wrap;align-items:center;margin:15px 0 8px;padding:10px;border:1px solid #e1e9f2;background:#f8fafc;border-radius:11px}
.portal .portal-steps span{flex:1 1 auto;display:flex;align-items:center;gap:6px;font-size:11.5px;font-weight:600;color:#526780;justify-content:center}
.portal .portal-steps b{display:inline-grid;place-items:center;border-radius:50%;background:#e6edf5;color:#2e527c;width:22px;height:22px;font-size:11px}
.portal .portal-section-hint{font-size:12px;color:#6f7e93;margin:0 0 12px;line-height:1.8}
.portal .portal-section{margin:0 0 9px;border-radius:12px;border:1px solid #dce6f0;background:#fff;overflow:hidden}
.portal .portal-section[open]{border-color:#c9d9e8;box-shadow:0 4px 15px rgba(23,51,79,.045)}
.portal .portal-section-error{border-color:#e7a4a4}
.portal .portal-section>summary{list-style:none;display:flex;align-items:center;gap:9px;min-height:49px;padding:12px 14px;cursor:pointer;font-size:13px;color:#2d4666;background:#fafcff}
.portal .portal-section>summary::-webkit-details-marker{display:none}
.portal .portal-section>summary:focus-visible,.portal .portal-privacy>summary:focus-visible{outline:3px solid #f4b68e;outline-offset:-3px}
.portal .portal-section>summary .portal-section-heading{display:flex;align-items:center;gap:8px;font-weight:700;flex:1;min-width:0}
.portal .portal-section>summary .portal-section-heading>.ic{width:16px;height:16px;color:#f47029;flex-shrink:0}
.portal .portal-section>summary .portal-section-meta{color:#8290a2;font-size:10.5px;white-space:nowrap}
.portal .portal-section>summary>.ic:last-child{width:16px;height:16px;transition:transform .2s;color:#718198}
.portal .portal-section[open]>summary>.ic:last-child{transform:rotate(180deg)}
.portal .portal-section .pgroup{border:0;padding:14px;margin:0;min-width:0}
.portal .portal-section .pgroup .field:last-child{margin-bottom:0}
.portal .portal-visually-hidden{position:absolute!important;clip:rect(0,0,0,0);clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap;padding:0;border:0}
.portal .portal-section .field{min-width:0}
.portal .portal-section input:not([type=checkbox]),.portal .portal-section textarea{max-width:100%}
.portal .portal-privacy{margin:13px 0 14px;border:1px solid #e0e8f0;border-radius:11px;background:#f8fafc;color:#4c6078}
.portal .portal-privacy>summary{list-style:none;display:flex;gap:8px;align-items:center;cursor:pointer;padding:12px 13px;font-size:12.5px;font-weight:700}
.portal .portal-privacy>summary::-webkit-details-marker{display:none}
.portal .portal-privacy>summary>.ic:last-child{margin-inline-start:auto;transform:rotate(0deg)}
.portal .portal-privacy[open]>summary>.ic:last-child{transform:rotate(180deg)}
.portal .portal-privacy p{padding:0 13px 14px;margin:0;line-height:1.8;font-size:12.5px}
.portal .portal-consent{border:1px solid #e0e7f0;background:#fafcff;padding:11px 12px;border-radius:11px;line-height:1.8;font-size:12.5px;cursor:pointer}
.portal .portal-consent input{flex-shrink:0;margin-top:5px;accent-color:#e76729}
.portal .portal-submit{min-height:48px}
.portal .portal-submit-note{text-align:center;margin:9px 0 0;font-size:11px;color:#73869a}
.portal .portal-gate-note{margin:14px 0 0;color:#74869a;font-size:12px;line-height:1.85}
.portal .portal-section .chip{min-width:0}
@media(max-width:600px){
  .portal .portal-wrap{padding:14px 10px 48px}
  .portal .portal-card{padding:17px 14px;border-radius:15px}
  .portal .portal-brand{margin-inline:3px;margin-bottom:13px}
  .portal .portal-head{gap:9px}
  .portal .portal-head h1{font-size:20px}
  .portal .portal-steps{padding:8px 5px;gap:3px}
  .portal .portal-steps span{font-size:10.5px;gap:4px}
  .portal .portal-steps b{width:19px;height:19px}
  .portal .portal-section>summary{padding:11px 10px}
  .portal .portal-section .pgroup{padding:12px}
  .portal .chips{gap:6px}
  .portal .chip span{padding:7px 10px;font-size:12px}
}


/* Evidence-first review: individual source references without bulk approvals. */
.review-evidence{margin:9px 0;border:1px solid #dce5f0;border-radius:10px;background:#f9fbfe;overflow:hidden}
.review-evidence>summary{list-style:none;display:flex;align-items:center;gap:7px;cursor:pointer;font-size:11.5px;font-weight:650;color:#3d5e7e;padding:9px 11px}
.review-evidence>summary::-webkit-details-marker{display:none}
.review-evidence>summary .ic{width:15px;height:15px}
.review-evidence>summary .ic:last-child{margin-inline-start:auto;transform:rotate(0deg);transition:transform .2s}
.review-evidence[open]>summary .ic:last-child{transform:rotate(180deg)}
.review-evidence>summary:focus-visible{outline:2px solid #f47029;outline-offset:-2px}
.review-evidence-fields{display:grid;gap:9px;padding:11px;border-top:1px solid #e6ecf3}
.review-evidence-fields .field{margin:0;display:grid;gap:5px;min-width:0}
.review-evidence-fields .field span{font-size:11px;color:#4b6584}
.review-evidence-fields .field input,.review-evidence-fields .field textarea{width:100%;max-width:100%;box-sizing:border-box;min-width:0;font-size:12px;line-height:1.5}
.review-evidence-fields .field input{min-height:36px}
.review-evidence-fields .field textarea{min-height:62px;resize:vertical}
.review-evidence-confirm{display:flex;align-items:flex-start;gap:7px;color:#46617e;font-size:11.5px;line-height:1.6;cursor:pointer}
.review-evidence-confirm input{flex-shrink:0;margin-top:4px;accent-color:#f47029}
.review-evidence-fields>small{font-size:10.5px;color:#76879b;line-height:1.65}
.review-name-card.review-name-done .review-evidence{opacity:.7}


/* R25: desktop collapsible sidebar, off-canvas mobile menu. */
.menu-toggle{display:inline-grid;flex:none}
.side{transition:width .18s ease;overflow:hidden}
.menu-backdrop[hidden]{display:none!important}
@media (min-width:901px){
  body.nav-collapsed .side{width:0;visibility:hidden;pointer-events:none}
}
@media (max-width:900px){
  .side{width:min(270px,85vw);visibility:hidden;overflow:hidden;transform:translateX(100%)}
  .side.open{visibility:visible;transform:translateX(0)}
  body.mobile-menu-open{overflow:hidden}
  body.mobile-menu-open .menu-backdrop{display:block;position:fixed;inset:0;background:rgba(8,23,45,.43);border:0;padding:0;z-index:85;cursor:pointer}
}
/* R25: compact, icon-only actions. Labels remain accessible to screen readers. */
.compact-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:7px 9px}
.compact-actions .tool-group{display:inline-flex;align-items:center;gap:3px;padding:2px;border:1px solid #e1e7f1;background:#f7f9fc;border-radius:10px;white-space:nowrap}
.compact-actions .tool-icon{display:inline-flex;align-items:center;justify-content:center;width:33px;height:33px;min-width:33px;padding:6px;border:0;border-radius:8px;color:#3b5172;background:transparent;cursor:pointer}
.compact-actions .tool-icon .ic{width:17px;height:17px}
.compact-actions a.tool-icon:hover,.compact-actions .tool-icon:hover{background:#e5eefb;text-decoration:none}
.compact-actions a.tool-icon.on{background:#fff;color:var(--navy2);box-shadow:0 1px 4px rgba(0,0,0,.1)}
.compact-actions .tool-icon.primary{background:var(--orange);color:#fff}
.compact-actions .tool-icon.primary:hover{background:var(--orange-d)}
.compact-actions .count{font-size:12px;white-space:nowrap;padding:4px 7px}
.compact-actions #perPage{min-width:58px;width:63px;height:33px;padding:4px 5px;font-size:12px;border:0;background:transparent}
.compact-actions .card-density select{min-width:56px;width:56px;height:33px;padding:3px 5px}
.compact-actions .grow{min-width:6px}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
/* R25: resizable spreadsheet columns with a stable fixed-width colgroup. */
.list-box table.sheet.resizable-sheet{table-layout:fixed;max-width:none}
.list-box .resizable-sheet th[data-k]{position:sticky;padding-inline-end:18px;overflow:visible;min-width:0}
.list-box .resizable-sheet td[data-k]{max-width:none;overflow:hidden;min-width:0}
.list-box .resizable-sheet td[data-k] .cell{width:100%;min-width:0}
.list-box .resizable-sheet .col-resizer{position:absolute;inset-inline-end:0;top:0;bottom:0;width:13px;z-index:5;cursor:col-resize;touch-action:none;user-select:none;border-inline-start:1px solid transparent}
.list-box .resizable-sheet .col-resizer:after{content:'';position:absolute;inset-inline-end:5px;top:25%;height:50%;width:2px;border-radius:4px;background:rgba(255,255,255,.18)}
.list-box .resizable-sheet .col-resizer:hover:after,.list-box .resizable-sheet .col-resizer:focus-visible:after,.list-box .resizable-sheet.resizing .col-resizer:hover:after{background:#ffd7b8;width:3px}
.list-box .resizable-sheet.resizing,.list-box .resizable-sheet.resizing *{user-select:none!important}
@media(max-width:760px){
 .compact-actions .count{order:0}
 .compact-actions .grow{display:none}
 .compact-actions .tool-group{flex-shrink:0}
 .compact-actions .tool-icon{width:31px;height:31px;min-width:31px}
}

/* R26: compact sheet-style per-column filters and preview-first find/replace. */
.list-box .resizable-sheet th[data-k]{padding-inline-end:44px}
.list-box .resizable-sheet .col-filter-btn{
  position:absolute;inset-inline-end:15px;top:50%;transform:translateY(-50%);
  width:23px;height:27px;display:inline-grid;place-items:center;border:0;
  border-radius:6px;background:transparent;color:#c5d0e1;cursor:pointer;z-index:5;
}
.list-box .resizable-sheet .col-filter-btn .ic{width:14px;height:14px}
.list-box .resizable-sheet .col-filter-btn:hover,
.list-box .resizable-sheet .col-filter-btn:focus-visible{background:#39577f;color:#fff}
.list-box .resizable-sheet .col-filter-btn.is-active{background:#f47029;color:#fff}
.sheet-filter-popover{position:fixed;z-index:160;background:#fff;color:var(--ink);border:1px solid #cbd6e6;
  box-shadow:0 12px 45px rgba(12,33,60,.24);border-radius:13px;padding:12px;max-height:80vh;
  overflow:auto;display:flex;flex-direction:column;gap:10px;font-size:13px;direction:rtl}
.sheet-filter-popover-head{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:14px}
.sheet-filter-dismiss{border:0;background:#eef2f8;color:#576b87;cursor:pointer;border-radius:7px;width:25px;height:25px;line-height:1;font-size:20px}
.sheet-filter-field{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#52627a}
.sheet-filter-field select,.sheet-filter-field input,.sheet-filter-search{width:100%;padding:7px 9px;min-height:36px;font-size:13px}
.sheet-filter-field[hidden],.sheet-filter-values[hidden],.sheet-filter-summary[hidden],.sheet-filter-popover [hidden]{display:none!important}
.sheet-filter-values{display:flex;flex-direction:column;gap:6px;min-width:0}
.sheet-filter-items{display:flex;flex-direction:column;gap:2px;max-height:205px;min-height:48px;overflow:auto;border:1px solid #e2e8f2;border-radius:9px;padding:5px}
.sheet-filter-option{display:flex;align-items:center;gap:8px;min-height:31px;padding:4px 6px;border-radius:6px;cursor:pointer}
.sheet-filter-option:hover{background:#f1f5fa}
.sheet-filter-option input{width:15px;height:15px;padding:0;min-width:15px;margin:0}
.sheet-filter-option span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;direction:auto}
.sheet-filter-option small{font-size:11px;color:#7c8ba0;font-variant-numeric:tabular-nums}
.sheet-filter-more{font-size:11px;padding:6px 8px;color:#7f8a9b}
.sheet-filter-choice-info{font-size:11px;color:var(--muted)}
.sheet-filter-select-visible{align-self:flex-start;border:0;background:none;color:var(--navy3);font-size:12px;cursor:pointer;padding:2px 0}
.sheet-filter-actions{display:flex;gap:7px;justify-content:flex-end;border-top:1px solid #edf0f6;padding-top:10px}
.sheet-filter-actions .btn{padding:6px 10px;font-size:12px;min-width:0}
.sheet-filter-summary{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 10px;padding:7px 10px;
  border-radius:10px;background:#edf3fb;border:1px solid #dce7f5;font-size:12px;color:#3f5878}
.sheet-filter-chip{border:1px solid #c9d8ec;background:#fff;padding:4px 8px;border-radius:7px;color:#28476b;font-size:12px;cursor:pointer;max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sheet-filter-chip:hover{background:#dce9fa}
.sheet-filter-clear{border:0;background:none;color:var(--orange-d);font-size:12px;cursor:pointer;padding:4px 6px}
.sheet-find-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sheet-replace-preview{font-size:13px;margin:10px 0;line-height:1.7;max-height:32vh;overflow:auto}
.sheet-replace-preview:empty{display:none}
.sheet-replace-preview table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:12px;direction:rtl}
.sheet-replace-preview th,.sheet-replace-preview td{padding:6px 8px;white-space:normal;overflow-wrap:anywhere;text-align:right;border-bottom:1px solid #e7ecf4;vertical-align:top}
.sheet-replace-preview th{background:#f0f4f9}
#sfApproveRow[hidden],#sfApply[hidden]{display:none!important}
@media(max-width:560px){.sheet-find-fields{grid-template-columns:1fr}.sheet-filter-popover{max-height:70vh}}

/* R27 — Human-first guest profile. Scoped entirely to guest form and media card. */
.guest-summary{
  border:1px solid #dbe5f1;
  background:linear-gradient(105deg,#fff 0%,#fbfdff 54%,#f1f6fd 100%);
  box-shadow:0 8px 25px rgba(27,52,86,.055);
}
.guest-summary .profile-photo-avatar{
  border:1px solid #dce6f3;overflow:hidden;background:#eaf0f8;border-radius:14px;
}
.guest-summary .profile-photo-img{width:100%;height:100%;object-fit:cover}
.guest-grid{grid-template-columns:minmax(0,1fr) minmax(265px,310px);gap:16px;align-items:start}
.guest-grid #gForm.panel{padding:0;border:0;background:transparent;box-shadow:none;display:grid;gap:15px;min-width:0}
.guest-grid .pgroup{
  --profile-accent:#3f6a9e;
  position:relative;min-width:0;scroll-margin-top:116px;
  border:1px solid #dce4f0!important;border-inline-start:4px solid var(--profile-accent)!important;
  border-radius:14px!important;background:#fff!important;
  margin:0!important;padding:0 18px 17px!important;
  box-shadow:0 4px 14px rgba(18,45,79,.035);
}
.guest-grid .pgroup:nth-of-type(2){--profile-accent:#218479;background:linear-gradient(90deg,#fff,#fcfefd)!important}
.guest-grid .pgroup:nth-of-type(3){--profile-accent:#7761ab}
.guest-grid .pgroup:nth-of-type(4){--profile-accent:#3279ab}
.guest-grid .pgroup:nth-of-type(5){--profile-accent:#b07b37}
.guest-grid .pgroup:nth-of-type(6){--profile-accent:#708397}
.guest-grid .pgroup:target{outline:2px solid rgba(229,111,45,.4)!important;outline-offset:2px}
.guest-grid .pgroup legend{display:block;padding:0;width:100%;margin:0 0 15px}
.guest-grid .pgroup-heading{
 display:flex;align-items:center;gap:11px;
 width:100%;padding:14px 0 12px;
 border-bottom:1px solid #e9eef5
}
.guest-grid .pgroup-symbol{
 width:37px;height:37px;display:grid;place-items:center;flex:0 0 37px;
 color:var(--profile-accent);background:color-mix(in srgb,var(--profile-accent) 8%,white);
 border-radius:10px
}
.guest-grid .pgroup-symbol .ic{width:18px;height:18px}
.guest-grid .pgroup-heading-text{display:flex;flex-direction:column;gap:3px;min-width:0}
.guest-grid .pgroup-heading-text strong{font-size:15px;color:#243a57;font-weight:750}
.guest-grid .pgroup-heading-text small{font-size:11.5px;color:#748298;font-weight:400;line-height:1.6}
.guest-grid .pgroup-number{margin-inline-start:auto;color:#9ba9b9;font-size:11px;font-weight:700;font-variant-numeric:tabular-nums}
.guest-grid .fgrid{gap:4px 14px}
.guest-grid #gForm .field{margin-bottom:12px;min-width:0;position:relative;gap:7px}
.guest-grid #gForm .field-label{
 display:flex;align-items:center;gap:6px;
 font-size:12.5px;color:#4a5b74;font-weight:650;line-height:1.5;min-width:0
}
.guest-grid #gForm .field-emphasis>.field-label{color:#243f61;font-weight:750}
.guest-grid #gForm .field>input,
.guest-grid #gForm .field>select,
.guest-grid #gForm .field>textarea{
 width:100%;max-width:100%;min-width:0;min-height:42px;
 border-radius:9px;border:1px solid #ccd8e7;background:#fff;
 color:#1c3654;padding:10px 13px;font-size:14px;line-height:1.45;
 box-shadow:0 1px 2px rgba(18,38,65,.022);
 transition:border-color .13s ease,box-shadow .13s ease,background-color .13s ease;
}
.guest-grid #gForm .field>textarea{min-height:92px;resize:vertical;line-height:1.7}
.guest-grid #gForm .field>input:hover,
.guest-grid #gForm .field>select:hover,
.guest-grid #gForm .field>textarea:hover{border-color:#a5b9d4}
.guest-grid #gForm .field>input:focus,
.guest-grid #gForm .field>select:focus,
.guest-grid #gForm .field>textarea:focus{
 border-color:#3e7ba6;outline:0;box-shadow:0 0 0 3px rgba(80,145,198,.14);background:#fff
}
.guest-grid #gForm .field>input:disabled{
 background:#f0f3f7;color:#8793a3;cursor:not-allowed
}
.guest-grid #gForm .field>input::placeholder,
.guest-grid #gForm .field>textarea::placeholder{color:#a0acbb;font-size:12.5px}
.guest-grid #gForm .field>select{
 appearance:none;-webkit-appearance:none;-moz-appearance:none;
 direction:rtl;text-align:right;text-align-last:right;
 padding-left:42px!important;padding-right:13px!important;
 background-repeat:no-repeat!important;
 background-size:16px 16px!important;
 background-position:left 13px center!important;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b7090' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;
}
.guest-grid #gForm .field>select option{font-size:14px;background:#fff;color:#1a3657}
.guest-grid #gForm .field .profile-autocomplete{
 padding-inline-start:29px;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238ba0b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.8' cy='10.8' r='7.2'/%3E%3Cpath d='m16 16 4.2 4.2'/%3E%3C/svg%3E");
 background-repeat:no-repeat;background-position:left 10px center;background-size:13px
}
.guest-grid #gForm .field>input.ltr{text-align:left;direction:ltr}
.guest-grid #gForm .field>input.ltr::placeholder{text-align:left}
.guest-grid #gForm .field .field-tip{
 display:inline-flex;align-items:center;justify-content:center;
 width:17px;height:17px;flex:0 0 17px;border-radius:50%;
 color:#71839b;cursor:help;position:relative
}
.guest-grid #gForm .field-tip .ic{width:14px;height:14px}
.guest-grid #gForm .field-tip:hover,.guest-grid #gForm .field-tip:focus-visible{color:#bd5d21;background:#fff1e7;outline:0}
.guest-grid #gForm .field-tip::after{
 content:attr(data-tip);position:absolute;inset-inline-start:0;top:24px;
 width:min(260px,68vw);z-index:30;white-space:normal;line-height:1.65;
 background:#183657;color:#fff;box-shadow:0 9px 24px rgba(8,27,47,.18);
 border-radius:8px;padding:9px 11px;font-size:11.5px;font-weight:400;
 pointer-events:none;opacity:0;visibility:hidden
}
.guest-grid #gForm .field-tip:hover::after,.guest-grid #gForm .field-tip:focus-visible::after{opacity:1;visibility:visible}
.guest-grid #gForm .field-hint{display:none;font-size:11.5px;color:#6d7f96;line-height:1.7;margin-top:-3px}
.guest-grid #gForm .field:focus-within>.field-hint,
.guest-grid #gForm .field:hover>.field-hint{display:block}
.guest-grid #gForm .field:focus-within>.field-label{color:#2e608e}
.guest-grid #gForm .field.field-invalid>input,
.guest-grid #gForm .field.field-invalid>select,
.guest-grid #gForm .field.field-invalid>textarea{border-color:#c93c48;box-shadow:0 0 0 2px rgba(206,64,74,.12)}
.guest-grid #gForm .contact-field-help{
 font-size:12px;color:#5c6e85;line-height:1.8;
 border-radius:8px;background:#eff5fc;margin:0 0 13px;padding:9px 11px
}
.profile-photo-panel{border-color:#d8e4f2!important;background:linear-gradient(#fff,#fbfcff)}
.profile-photo-title{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:12px}
.profile-photo-title h3{margin:0!important}
.profile-photo-title small{font-size:11px;color:#7b8b9f}
.profile-photo-preview{
 margin:auto;display:grid;place-items:center;width:min(190px,100%);
 aspect-ratio:1/1;overflow:hidden;border:1px dashed #bdccdf;
 border-radius:15px;background:#f1f6fc;
}
.profile-photo-preview>img{width:100%;height:100%;object-fit:cover}
.profile-photo-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;text-align:center;color:#7a8da7;font-size:12px}
.profile-photo-empty .ic{width:37px;height:37px;color:#9badc4}
.profile-photo-actions{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin-top:13px}
.profile-photo-actions .btn{padding:7px 8px;min-height:32px;font-size:11.5px;border-radius:8px}
.profile-photo-actions .ic{width:14px;height:14px}
.profile-photo-hint{margin:10px 0 0;font-size:11px;line-height:1.8;color:#8290a3}
.profile-photo-status{font-size:11.5px;line-height:1.6;margin-top:7px;color:#277454}
.profile-photo-status.is-error{color:#bd393f}
.profile-photo-remove{
 display:flex;align-items:center;gap:4px;justify-content:center;
 margin:9px auto 0;padding:4px 8px;border:0;background:transparent;
 color:#a25757;font-size:11px;cursor:pointer
}
.profile-photo-remove .ic{width:13px;height:13px}
.profile-photo-remove:hover{color:#9f2b31;text-decoration:underline}
.profile-photo-pending:not([hidden]){display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:12px;align-items:center}
.profile-photo-pending span{font-size:11px;color:#6e7c92;flex:1 0 100%;text-align:center}
.profile-photo-pending .btn{font-size:11px;padding:6px 9px}
.profile-photo-pending[hidden],.profile-photo-remove[hidden]{display:none!important}
@media(max-width:1000px){.guest-grid{grid-template-columns:minmax(0,1fr) 265px}}
@media(max-width:900px){
 .guest-grid{grid-template-columns:1fr}
 .guest-grid .pgroup{padding:0 15px 14px!important}
 .guest-grid .pgroup .fgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .guest-grid .stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
 .guest-grid .stack>.panel{margin:0}
 .guest-grid .stack .profile-photo-panel{grid-column:1/-1}
}
@media(max-width:600px){
 .guest-grid .pgroup .fgrid{grid-template-columns:1fr}
 .guest-grid .stack{grid-template-columns:1fr}
 .guest-grid .pgroup-heading-text small{font-size:11px}
 .guest-grid .pgroup-heading-text strong{font-size:14px}
 .guest-grid #gForm .field>input,.guest-grid #gForm .field>select,.guest-grid #gForm .field>textarea{font-size:16px}
 .profile-photo-preview{width:165px}
}

/* R28 — stable hints, single native suggestion arrow and readable system metadata. */
.guest-grid #gForm .field>.field-hint {
  display:block!important;
  visibility:visible!important;
  font-size:11.5px;
  line-height:1.65;
  color:#6f819a;
  font-weight:400;
  margin:1px 0 0!important;
  padding:0 2px;
  min-height:18px;
}
.guest-grid #gForm .field:focus-within>.field-hint,
.guest-grid #gForm .field:hover>.field-hint {display:block!important}
.guest-grid #gForm .field-tip,.guest-grid #gForm .field-tip::after{display:none!important}
.guest-grid #gForm .field input.profile-autocomplete {
  background-image:none!important;
  background-color:#fff!important;
  background-position:initial!important;
  background-size:initial!important;
  padding-left:36px!important;
}
.guest-grid #gForm .field input.profile-autocomplete.ltr {
  padding-right:37px!important;
  padding-left:13px!important;
}
.guest-grid #gForm .field .field-mini-icon{height:14px;width:14px;flex:0 0 14px;color:#6f839e}
.guest-grid #gForm .field-normalize-note {
  display:block;
  min-height:16px;
  font-size:11.5px;
  line-height:1.45;
  color:#25745d;
  margin:0;
  overflow-wrap:anywhere;
}
.guest-grid #gForm .field-normalize-note:empty{min-height:0;display:none}
.guest-grid #gForm .field-normalize-note.is-error{color:#b02b42;font-weight:600}
.guest-grid #gForm .field .profile-sensitive-reveal{
  display:inline-flex;align-items:center;gap:4px;padding:3px 7px;
  background:#f0f3f8;border:1px solid #d7e1ee;color:#445e80;
  font-size:11px;border-radius:6px;cursor:pointer;font-weight:600;
}
.guest-grid #gForm .field .profile-sensitive-reveal .ic{height:13px;width:13px}
.guest-grid #gForm .field .profile-sensitive-reveal:hover{background:#e5ecf6}
.guest-grid #gForm .field .profile-sensitive-reveal:disabled{opacity:.7;cursor:default}
.guest-save-feedback{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px}
.guest-save-feedback .guest-discard{font-size:11.5px;padding:6px 8px;min-height:30px}
.guest-save-feedback .guest-discard .ic{height:13px;width:13px}
.guest-save-feedback .guest-discard[hidden]{display:none!important}
.guest-grid .stack .profile-system-panel{
  border:1px solid #d3e3f1!important;
  border-inline-start:3px solid #3a85b7!important;
  background:linear-gradient(160deg,#fff 65%,#f5f9fe 100%);
}
.guest-grid .stack .profile-system-panel h3{
  display:flex;align-items:center;gap:7px;color:#244965;font-size:14px;
  padding-bottom:11px;border-bottom:1px solid #e5edf5;margin-bottom:13px
}
.guest-grid .stack .profile-system-panel h3 .ic{color:#3682b2;width:16px;height:16px}
.guest-grid .stack .profile-system-panel .sys-panel-tag,
.guest-grid .stack .profile-messages-panel .sys-panel-tag {
  margin-inline-start:auto;display:inline-flex;align-items:center;gap:4px;
  color:#496e8e;background:#e9f2f9;font-size:10.5px;
  border-radius:6px;padding:3px 6px;white-space:nowrap;font-weight:600
}
.guest-grid .stack .sys-panel-tag .ic{width:12px;height:12px}
.guest-grid .stack .profile-system-dl{grid-template-columns:minmax(0,1fr) minmax(0,1.14fr);gap:9px 9px}
.guest-grid .stack .profile-system-dl dt{
  display:flex;align-items:center;gap:6px;font-size:11.5px;
  color:#71819a;min-width:0
}
.guest-grid .stack .profile-system-dl dt .ic{width:13px;height:13px;flex:0 0 13px;color:#7e94ab}
.guest-grid .stack .profile-system-dl dd{font-size:12px;min-width:0;align-self:center}
.guest-grid .stack .sys-tag {
  display:inline-flex;align-items:center;max-width:100%;font-size:11px;
  font-weight:600;line-height:1.5;white-space:normal;overflow-wrap:anywhere;
  border-radius:6px;padding:3px 7px;background:#f0f3f7;color:#445773;
}
.guest-grid .stack .sys-tag-id{background:#e8edf6;color:#2e4d7c}
.guest-grid .stack .sys-tag-good{background:#e4f6ed;color:#237150}
.guest-grid .stack .sys-tag-warn{background:#fff1dc;color:#956117}
.guest-grid .stack .sys-tag-info{background:#e8f2fb;color:#2a678f}
.guest-grid .stack .sys-tag-neutral{background:#f2f4f7;color:#657486;font-weight:500}
.guest-grid .stack .sys-progress{height:4px;border-radius:10px;background:#e3eaf2;overflow:hidden;margin-top:5px;max-width:110px}
.guest-grid .stack .sys-progress span{display:block;height:100%;border-radius:10px;background:#42a585}
.guest-grid .stack .sys-panel-note{display:flex;align-items:flex-start;gap:6px;color:#6a8095;font-size:10.5px;line-height:1.6;
  background:#f1f6fa;padding:8px 9px;border-radius:7px;margin:11px 0 0}
.guest-grid .stack .sys-panel-note .ic{width:13px;height:13px;flex:0 0 13px;margin-top:1px}
.guest-grid .stack .profile-messages-panel{border-inline-start:3px solid #4a997d!important;background:#fcfefd}
.guest-grid .stack .profile-messages-panel h3{display:flex;align-items:center;gap:8px;color:#29634f}
.guest-grid .stack .profile-messages-panel h3 .ic{color:#34836a;width:16px;height:16px}
.guest-grid .stack .profile-messages-panel .sys-panel-tag{background:#eaf6ef;color:#2b7c59}
.guest-grid .stack .profile-danger-panel{border-inline-start:3px solid #cf7065!important;background:#fffafa}
.guest-grid .stack .profile-danger-panel h3{display:flex;align-items:center;gap:7px;color:#99453e}
.guest-grid .stack .profile-danger-panel h3 .ic{color:#c56558;width:15px;height:15px}
.guest-grid .stack .sys-danger-note{font-size:11px;color:#9a6c67;line-height:1.7;margin:0 0 10px}
@media(max-width:700px){
  .guest-save-feedback{flex:1;justify-content:center}
  .guest-grid .stack .profile-system-dl{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)}
}

/* R32: compact, read-only contact quality workbench. */
.cq-intro{display:flex;align-items:center;gap:15px;background:linear-gradient(105deg,#fff,#f4f8fd);margin-bottom:16px}
.cq-intro-icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:14px;color:#2b6e9c;background:#e7f1fa}
.cq-intro-icon .ic{width:22px;height:22px}
.cq-intro h2{font-size:17px;color:#223f60;margin:0 0 4px}
.cq-intro p{margin:0;color:#647b93;font-size:12.5px;line-height:1.75}
.cq-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:15px}
.cq-stat{display:flex;flex-direction:column;gap:5px;border:1px solid #d9e4f1;border-inline-start:3px solid #448baf;background:#fff;border-radius:12px;padding:14px 15px}
.cq-stat span{font-size:12px;color:#526884;font-weight:650}
.cq-stat strong{font-size:27px;color:#1e3e5d;font-variant-numeric:tabular-nums;font-weight:750;line-height:1.2}
.cq-stat small{font-size:11px;color:#8595a6}
.cq-stat-error{border-inline-start-color:#c96360}
.cq-stat-error strong{color:#a84748}
.cq-stat-prefix{border-inline-start-color:#cd9753}
.cq-stat-prefix strong{color:#986b2d}
.cq-workbench{padding:18px 20px!important}
.cq-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.cq-heading h3{display:flex;align-items:center;gap:8px;margin:0 0 5px;font-size:15px;color:#263f5c}
.cq-heading h3 .ic{width:16px;height:16px;color:#4b769a}
.cq-heading p{margin:0;color:#7a8b9d;font-size:11.5px;line-height:1.6}
.cq-heading .btn{white-space:nowrap}
.cq-heading .btn .ic{width:14px;height:14px}
.cq-controls{display:grid;grid-template-columns:minmax(140px,240px) minmax(180px,1fr);gap:11px;margin:18px 0 12px}
.cq-controls .field{margin:0!important;gap:5px}
.cq-controls .field>span{font-size:12px;font-weight:650;color:#526b87}
.cq-controls input,.cq-controls select{min-height:41px;border:1px solid #cfdcea;border-radius:9px;padding:8px 12px;font-size:13px;background:#fff;color:#29425f;max-width:100%;width:100%}
.cq-controls input:focus,.cq-controls select:focus{outline:2px solid rgba(44,114,166,.18);border-color:#4d8cba}
.cq-status{font-size:12px;color:#6b7f96;min-height:25px;margin-bottom:7px}
.cq-table-wrap{overflow:auto;border:1px solid #e2eaf3;border-radius:11px}
.cq-table{border-collapse:collapse;width:100%;min-width:530px}
.cq-table thead{background:#f2f6fb}
.cq-table th{font-weight:700;color:#526880;font-size:12px;text-align:right;padding:12px 14px;border-bottom:1px solid #dce5f0}
.cq-table td{padding:10px 14px;border-bottom:1px solid #eaf0f5;vertical-align:middle;font-size:12.5px}
.cq-table tbody tr:last-child td{border-bottom:0}
.cq-table tbody tr:hover{background:#f8fbff}
.cq-record-no{display:inline-flex;background:#ebf1f8;border-radius:6px;padding:4px 8px;color:#315374;font-size:12px;white-space:nowrap}
.cq-chip{display:inline-flex;align-items:center;max-width:100%;font-size:11.5px;font-weight:650;padding:5px 8px;border-radius:7px;line-height:1.5}
.cq-chip-alert{background:#fcf0ef;color:#a74f50}
.cq-chip-warning{background:#fff5e7;color:#956d37}
.cq-chip-border{background:#f7f9fc;border:1px solid #dce5f0;color:#57718a}
.cq-chip-border-alert{background:#fefbfb;border:1px solid #e9c8c8;color:#96565b}
.cq-field-chips{display:flex;gap:5px;flex-wrap:wrap}
.cq-issue-total{display:block;color:#8392a4;margin-top:4px;font-size:10px}
.cq-open-link{display:inline-flex;white-space:nowrap;font-size:11.5px;padding:6px 10px;border-radius:7px}
.cq-empty{text-align:center;color:#74859a;padding:30px 12px!important}
.cq-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;color:#60768f;font-size:12px}
.cq-pagination{display:flex;align-items:center;gap:9px}
.cq-pagination .btn{min-height:30px;padding:6px 9px;display:inline-flex;align-items:center;gap:4px;font-size:11px}
.cq-pagination .btn .ic{width:13px;height:13px}
.cq-reminders{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:13px 0}
.cq-reminders>div{display:flex;align-items:flex-start;gap:9px;background:#f5f8fc;border:1px solid #e4ebf4;border-radius:10px;padding:12px}
.cq-reminders p{font-size:11px;color:#61758d;line-height:1.8;margin:0}
.cq-reminders strong{color:#3c526f}
.cq-guide-icon{width:24px;height:24px;display:grid;place-items:center;color:#6088a9;border-radius:7px;background:#e7eff7;flex-shrink:0}
.cq-guide-icon .ic{width:13px;height:13px}
@media(max-width:800px){.cq-reminders{grid-template-columns:1fr}.cq-metrics{gap:8px}}
@media(max-width:560px){.cq-intro{align-items:flex-start;padding:14px}.cq-intro-icon{width:36px;height:36px;flex-basis:36px}.cq-metrics{grid-template-columns:1fr}.cq-stat{padding:10px 13px}.cq-stat strong{font-size:23px}.cq-workbench{padding:14px!important}.cq-heading{align-items:center}.cq-controls{grid-template-columns:1fr}.cq-footer{align-items:flex-start;flex-wrap:wrap}.cq-table{min-width:540px}}

/* R32 review-to-profile: static, non-animated target-field highlight. */
.guest-grid #gForm .field.field-targeted{border-radius:9px;padding:5px;margin:-5px 0 7px;background:#f4f9ff}
.guest-grid #gForm .field.field-targeted>.field-label{color:#245a86;font-weight:750}
.guest-grid #gForm .field.field-targeted>input{border-color:#6398bf;box-shadow:0 0 0 2px rgba(57,121,169,.13)}

/* R36: private admin read-only phone-format preview. */
.f36-hero{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:13px;background:linear-gradient(100deg,#fff,#f5f9ff)}
.f36-intro{display:flex;align-items:center;gap:12px}.f36-intro h2{color:#244663;font-size:17px;margin:0 0 4px}
.f36-intro p,.f36-heading p{font-size:12px;color:#6d8297;line-height:1.7;margin:0}
.f36-icon{width:44px;height:44px;display:grid;place-items:center;color:#477ca6;background:#e7f2fd;border-radius:12px;flex:none}
.f36-icon .ic{width:22px;height:22px}
.f36-readonly{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:11px;color:#3e7a60;background:#eaf7f0;border-radius:8px;padding:8px 10px;font-weight:700}
.f36-readonly .ic{width:15px;height:15px}
.f36-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-bottom:13px}
.f36-stat{display:flex;flex-direction:column;gap:5px;background:#fff;border:1px solid #deebf5;border-inline-start:3px solid #4f8cae;border-radius:12px;padding:14px}
.f36-stat span{font-size:12px;color:#5a7591;font-weight:650}.f36-stat strong{font-size:25px;font-weight:800;color:#244a6b;font-variant-numeric:tabular-nums}
.f36-stat small{font-size:11px;color:#8797a8}.f36-local{border-inline-start-color:#d0a05a}.f36-local strong{color:#a77a39}
.f36-workbench{padding:17px 18px!important}.f36-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.f36-heading h3{display:flex;gap:8px;align-items:center;color:#324e6b;font-size:14px;margin:0 0 5px}
.f36-heading h3 .ic,.f36-heading .btn .ic{width:15px;height:15px}
.f36-controls{display:grid;grid-template-columns:repeat(2,minmax(150px,1fr)) minmax(130px,1fr);gap:10px;margin:15px 0}
.f36-controls label{display:flex;flex-direction:column;gap:5px}.f36-controls label span{font-size:11px;color:#5c7288;font-weight:650}
.f36-controls select,.f36-controls input{height:40px;width:100%;border:1px solid #d0ddec;border-radius:9px;background:#fff;padding:8px 10px;color:#314e69;font-size:12px}
.f36-controls select:focus,.f36-controls input:focus{outline:2px solid rgba(69,133,175,.2);border-color:#568db3}
.f36-status{font-size:11.5px;color:#68809a;margin-bottom:9px;min-height:20px}
.f36-scroller{overflow:auto;border:1px solid #e1eaf2;border-radius:10px}
.f36-table{border-collapse:collapse;width:100%;min-width:760px}.f36-table thead{background:#f2f6fb}
.f36-table th{padding:10px 12px;text-align:right;font-size:11px;color:#5d7289;border-bottom:1px solid #dce6f1;white-space:nowrap}
.f36-table td{padding:10px 12px;font-size:12px;color:#425c78;border-bottom:1px solid #e9f0f5;vertical-align:middle}
.f36-table tbody tr:last-child td{border:0}.f36-table tbody tr:hover{background:#f8fbfe}
.f36-phone{font-family:ui-monospace,Consolas,monospace!important;font-size:12px;color:#475c70;white-space:nowrap;text-align:left!important;direction:ltr}
.f36-suggested{font-weight:700;color:#276d53}
.f36-pill{display:inline-flex;white-space:nowrap;border-radius:6px;padding:5px 7px;font-size:11px;font-weight:650}
.f36-intl{color:#327a61;background:#ecf8f3}.f36-no-prefix{color:#9e6e30;background:#fff5e5}
.f36-open{white-space:nowrap;font-size:11px}.f36-empty{text-align:center;padding:26px!important;color:#7d90a1!important}
.f36-footer{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-top:12px;color:#627a92;font-size:11.5px}
.f36-pager{display:flex;align-items:center;gap:7px}.f36-pager .btn{display:inline-flex;align-items:center;gap:4px;padding:5px 9px;font-size:11px}
.f36-pager .ic{width:13px;height:13px}
.f36-notes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}
.f36-notes>div{display:flex;gap:9px;align-items:flex-start;background:#f5f8fc;border:1px solid #e4edf4;padding:11px;border-radius:9px;color:#5d738b}
.f36-notes .ic{width:15px;height:15px;flex:none;color:#6a91b0}.f36-notes p{margin:0;font-size:11px;line-height:1.75}
.f36-notes strong{color:#3b5771}
@media(max-width:780px){.f36-notes{grid-template-columns:1fr}.f36-hero{align-items:flex-start}}
@media(max-width:560px){.f36-hero{flex-wrap:wrap}.f36-stats{grid-template-columns:1fr;gap:7px}.f36-stat{padding:10px 12px}.f36-stat strong{font-size:21px}.f36-controls{grid-template-columns:1fr}.f36-workbench{padding:12px!important}.f36-footer{flex-wrap:wrap}}

/* R38: rotate an existing icon for accordions instead of referencing missing SVG IDs. */
.portal .portal-section>summary>.ic.r38-chevron-down:last-child,
.portal .portal-privacy>summary>.ic.r38-chevron-down:last-child,
.review-evidence>summary .ic.r38-chevron-down:last-child{transform:rotate(90deg)}
.portal .portal-section[open]>summary>.ic.r38-chevron-down:last-child,
.portal .portal-privacy[open]>summary>.ic.r38-chevron-down:last-child,
.review-evidence[open]>summary .ic.r38-chevron-down:last-child{transform:rotate(270deg)}

/* R40: opt-in 100-row review expands only when the administrator chooses it. */
.f40-review{margin:13px 0 16px;padding:0!important;overflow:hidden}
.f40-summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:11px;padding:15px 18px;color:#385774}
.f40-summary::-webkit-details-marker{display:none}
.f40-summary>.ic{width:18px;height:18px;color:#5083a8;flex:none}
.f40-summary>.ic:last-child{width:14px;height:14px;margin-inline-start:auto;transform:rotate(0deg);transition:transform .18s}
.f40-review[open]>.f40-summary>.ic:last-child{transform:rotate(-90deg)}
.f40-summary span{display:flex;flex-direction:column;gap:3px}
.f40-summary b{font-size:13px;color:#2e506f}
.f40-summary small{font-size:11px;color:#7e90a4}
.f40-body{padding:0 18px 17px;border-top:1px solid #e8edf5}
.f40-hint{background:#f5f9fd;color:#58748f;font-size:11.5px;line-height:1.8;border-radius:8px;padding:11px 12px}
.f40-controls{display:flex;gap:10px;align-items:flex-end;margin:14px 0}
.f40-controls label{display:flex;flex-direction:column;gap:5px;min-width:220px}
.f40-controls label span{font-weight:650;font-size:11px;color:#5a7491}
.f40-controls select{width:100%;height:38px;border-radius:8px;border:1px solid #d1deeb;background:#fff;color:#405d7c;padding:6px 10px}
.f40-controls .btn{display:inline-flex;align-items:center;gap:5px;min-height:38px}
.f40-controls .btn .ic{width:15px;height:15px}
#f40Status{min-height:21px;color:#637d97;font-size:11px;margin:7px 0}
.f40-table{min-width:760px}
.f40-copy{display:inline-flex;align-items:center;justify-content:center;padding:7px}
.f40-copy .ic{width:15px;height:15px}
@media(max-width:560px){.f40-summary{padding:12px}.f40-body{padding:0 11px 12px}.f40-controls{flex-wrap:wrap}.f40-controls label{flex:1;min-width:100%}}


/* R43: obvious one-click jump to the new batch-review panel. */
.f43-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.f43-shortcut{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;white-space:nowrap;
  color:#276f66!important;background:#eaf7f2;border:1px solid #cce6dc;border-radius:8px;padding:7px 10px}
.f43-shortcut:hover,.f43-shortcut:focus-visible{background:#d9f2e8;border-color:#9fd3c0;color:#205c55!important}
.f43-shortcut .ic{width:15px;height:15px}
.f40-review{scroll-margin-top:80px}
@media(max-width:540px){.f43-actions{width:100%;justify-content:flex-start}}


/* R45 — direct jump to any of the phone review batches; no data persistence. */
.f45-jump{display:flex;align-items:center;gap:6px;color:#58718d;font-size:11px;font-weight:700;white-space:nowrap}
.f45-jump input{max-width:60px;min-width:50px;height:30px;border:1px solid #d3e0ed;border-radius:7px;
background:#fff;color:#2f5578;padding:4px 6px;text-align:center;font-variant-numeric:tabular-nums}
.f45-jump input:focus-visible{outline:2px solid #80b5cf;outline-offset:1px}
.f45-jump input:disabled{background:#f3f6fa;color:#92a1b1}
.f45-go{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.f45-go .ic{width:13px;height:13px}
@media(max-width:570px){.f40-review .f36-footer{align-items:flex-start;gap:9px}
.f40-review .f36-pager{flex-wrap:wrap;justify-content:flex-start;row-gap:8px}}


/* R48 — Contact quality review with per-field links and safe return context. */
.cq-controls{grid-template-columns:repeat(2,minmax(145px,1fr)) minmax(130px,.75fr) minmax(160px,1fr)}
.cq-field-link{text-decoration:none!important;white-space:nowrap;transition:background-color .16s,border-color .16s}
.cq-field-link:hover,.cq-field-link:focus-visible{background:#e6f0fc;color:#244f79;border-color:#9dbad5;outline-offset:2px}
.cq-field-link.cq-chip-border-alert:hover{background:#fce8e8;border-color:#d69395;color:#98464b}
.cq-return-target{background:#f0f8f5!important;outline:2px solid #98caba;outline-offset:-2px}
.guest-quality-origin{border-inline-start:3px solid #47896e}
@media(max-width:950px){.cq-controls{grid-template-columns:repeat(2,minmax(130px,1fr))}}
@media(max-width:560px){.cq-controls{grid-template-columns:1fr}}


/* R51: compact, opt-in, tab-local sheet view presets, no modal. */
.sheet-views-panel{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 10px;
  padding:13px 15px;background:#f5f8fc;border:1px solid #d9e6f2;border-radius:12px;color:#345575}
.sheet-views-panel[hidden]{display:none!important}
.sheet-views-intro{display:flex;align-items:center;gap:9px;flex:1 1 210px}
.sheet-views-intro>.ic{width:20px;height:20px;color:#4382a3;flex:none}
.sheet-views-intro>span{display:flex;flex-direction:column;gap:3px}
.sheet-views-intro b{font-size:13px;color:#214c70}
.sheet-views-intro small{font-size:11px;color:#677f98;line-height:1.5}
.sheet-views-fields{display:flex;align-items:flex-end;flex:2 1 630px;gap:8px;flex-wrap:wrap}
.sheet-views-fields label{display:flex;flex:1 1 145px;flex-direction:column;gap:4px;min-width:125px;
  color:#55708a;font-size:11px;font-weight:650}
.sheet-views-fields input,.sheet-views-fields select{height:35px;min-width:0;width:100%;padding:5px 10px;
  color:#294b66;background:#fff;border:1px solid #cbdceb;border-radius:8px;font-size:12px}
.sheet-views-fields input:focus-visible,.sheet-views-fields select:focus-visible{outline:2px solid #89bdd4}
.sheet-views-fields>.btn{display:inline-flex;align-items:center;gap:5px;min-height:35px;font-size:11px;
  padding:6px 10px;white-space:nowrap}
.sheet-views-fields>.btn>.ic{width:14px;height:14px}
.sheet-views-fields>.btn:disabled{opacity:.55;cursor:not-allowed}
.sheet-view-status{color:#73879e;font-size:11px;width:100%;margin:0}
.sheet-view-status.is-error{color:#ae5558}
@media(max-width:700px){.sheet-views-panel{padding:11px}.sheet-views-fields{flex-basis:100%}
  .sheet-views-fields label{flex-basis:calc(50% - 6px);min-width:120px}}
@media(max-width:440px){.sheet-views-fields label{flex-basis:100%}}


/* R54 — per-tab human triage navigation; opened never means corrected. */
.cq-session-tools{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin:12px 0;
  padding:10px 13px;border:1px solid #d6e5ef;border-radius:12px;background:#f5fafc}
.cq-session-copy{display:flex;align-items:center;gap:9px;flex:1 1 250px;color:#295d7d}
.cq-session-copy>.ic{width:18px;height:18px;flex:none;color:#3288a4}
.cq-session-copy>div{display:flex;flex-direction:column;gap:4px}
.cq-session-copy strong{font-size:12px;color:#264f75}
.cq-session-copy small{font-size:11px;line-height:1.6;color:#668399}
.cq-session-buttons{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.cq-session-buttons .btn{font-size:11px;display:inline-flex;gap:6px;align-items:center}
.cq-session-buttons .ic{width:13px;height:13px}
.cq-field-link{display:inline-flex;align-items:center;gap:6px}
.cq-field-link .cq-opened-marker{font-size:9px;line-height:1.4;padding:2px 4px;
  border-radius:5px;background:#e1ecf2;color:#356781;font-weight:650}
.cq-field-link .cq-opened-marker[hidden]{display:none!important}
.cq-field-link.cq-field-opened{border-style:dashed;opacity:.81}
@media(max-width:560px){.cq-session-tools{gap:10px}.cq-session-buttons{width:100%}}


/* R60 — operationally accurate, aggregate-only contact dashboard. */
.stats .stat small{display:block;color:#71849c;font-size:10.5px;line-height:1.5;margin-top:3px}
.dashboard-contact-quality{border:1px solid #e0e9f2}
.dashboard-quality-heading{display:flex;justify-content:space-between;align-items:start;gap:12px;flex-wrap:wrap;margin-bottom:13px}
.dashboard-quality-heading h3{display:flex;align-items:center;gap:8px;margin:0 0 4px;font-size:16px;color:#244a69}
.dashboard-quality-heading h3 .ic{width:18px;height:18px;color:#337d91}
.dashboard-quality-heading p{font-size:12px;line-height:1.65;color:#687e92;margin:0}
.dashboard-quality-heading>.btn{display:inline-flex;align-items:center;gap:6px}
.dashboard-quality-heading>.btn>.ic{width:14px;height:14px}
.dashboard-quality-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.dashboard-quality-stat{display:flex;align-items:center;gap:11px;min-width:0;border-radius:11px;
  padding:12px;background:#f1f7f9;border:1px solid #dbe9ef;color:#23546a;text-decoration:none}
.dashboard-quality-stat>.ic{width:22px;height:22px;flex:none;color:#387b90}
.dashboard-quality-stat span{min-width:0;display:block}
.dashboard-quality-stat b{display:block;font-size:23px;line-height:1.25;font-variant-numeric:tabular-nums}
.dashboard-quality-stat small{font-size:11px;color:#5c7587;line-height:1.5}
.dashboard-quality-stat.dashboard-quality-invalid{background:#fff2f1;border-color:#f0d9d8;color:#9a3e46}
.dashboard-quality-invalid>.ic{color:#af5054}
.dashboard-quality-stat.dashboard-quality-missing{background:#fff8ee;border-color:#f0e1c9;color:#806036}
.dashboard-quality-missing>.ic{color:#aa7e43}
.dashboard-quality-stat:hover,.dashboard-quality-stat:focus-visible{filter:brightness(.97);text-decoration:none;outline-offset:3px}
.dashboard-quality-foot{color:#687f92;font-size:11px;line-height:1.6;margin:11px 0 0}
@media(max-width:800px){.dashboard-quality-stats{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.dashboard-quality-stats{grid-template-columns:1fr}}
/* R70: Contact quality record identity. Scoped; no layout changes elsewhere. */
.cq-record-identity{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:10px;row-gap:2px;min-width:188px;max-width:290px}
.cq-record-identity .cq-record-no{grid-row:1 / span 2;align-self:start;margin-top:1px;font-weight:700;font-variant-numeric:tabular-nums}
.cq-record-name{display:block;min-width:0;line-height:1.45;color:#243d5b;font-weight:700;font-size:13px;text-decoration:none;overflow-wrap:anywhere}
.cq-record-name:hover,.cq-record-name:focus-visible{color:#137f79;text-decoration:underline;text-underline-offset:3px}
.cq-record-name-en{grid-column:2;display:block;min-width:0;font-size:11px;color:#70849a;direction:ltr;text-align:start;overflow-wrap:anywhere}
@media(max-width:640px){.cq-record-identity{min-width:160px;max-width:215px}.cq-record-name{font-size:12px}}
