:root{--navy:#102d54;--blue:#184a7b;--gold:#b58d4c;--ink:#1b304a;--muted:#6d7d90;--line:#e3e9ef;--bg:#f3f6fa;--white:#fff;--green:#217867;--red:#ae3946;font-family:Tahoma,Arial,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{ -webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer;border:0;border-radius:11px;background:var(--navy);color:#fff;padding:12px 18px;transition:background .18s,transform .18s}button:hover:not(:disabled){background:var(--blue);transform:translateY(-1px)}button:disabled{opacity:.55;cursor:wait}a{color:var(--blue);text-underline-offset:4px}button.secondary,.button.secondary{background:#eaf0f6;color:var(--navy)}button.danger{background:#fae9ec;color:var(--red)}button.small{padding:8px 11px;font-size:.82rem}button:focus-visible,a:focus-visible{outline:3px solid var(--gold);outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(1.6rem,3vw,2.35rem);line-height:1.5;margin-bottom:8px}h2{font-size:1.16rem;line-height:1.6}h3{font-size:1rem}p{line-height:1.85}small,.muted{color:var(--muted);line-height:1.8}small{display:block}.eyebrow{font-size:.72rem;letter-spacing:2px;color:var(--gold);font-weight:700}.skip{position:fixed;top:-100px;z-index:100;background:#fff;padding:15px}.skip:focus{top:5px}.boot{min-height:95vh;display:grid;place-content:center;text-align:center;gap:12px}.boot img{width:160px;margin:auto;border-radius:30px;animation:float 4s ease-in-out infinite}.shell{display:grid;grid-template-columns:245px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--navy);color:#e5ebf2;padding:32px 18px 20px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;overflow-y:auto}.brand{display:flex;align-items:center;gap:12px;padding:0 12px 28px}.brand img{width:60px;border-radius:16px}.brand b{font-size:1.06rem}.brand small{color:#b8c9dd}.sidebar nav{display:grid;gap:5px}.nav-item{display:flex;align-items:center;gap:12px;text-align:start;background:transparent;color:#c4d2e1;border:1px solid transparent;padding:12px 14px}.nav-item svg{width:20px;height:20px;flex-shrink:0}.nav-item.active{background:#ffffff10;color:#f4dcae;border-color:#ffffff15}.sidebar-footer{margin-top:auto;padding:28px 14px 0}.sidebar-footer img{width:145px;background:#fff;padding:6px 9px;border-radius:13px}.sidebar-footer small{color:#a8bdd4;font-size:.7rem;margin-top:10px}.main{min-width:0}.topbar{display:flex;align-items:center;justify-content:space-between;padding:19px 36px;background:#fff;border-bottom:1px solid var(--line);gap:15px}.topbar .identity{display:flex;align-items:center;gap:12px}.avatar{display:grid;place-items:center;width:43px;height:43px;background:#f5efe3;color:#94723c;border-radius:50%;font-weight:bold}.topbar small{font-size:.72rem}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.topbar button{font-size:.8rem;padding:9px 13px}.workspace{padding:32px 36px 60px;max-width:1550px;margin:auto;animation:enter .3s ease-out}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.heading p{margin:0;font-size:.9rem;color:var(--muted)}.hero{background:linear-gradient(110deg,#163d68,var(--navy));border:1px solid #234b76;border-radius:22px;padding:30px;color:#fff;display:flex;justify-content:space-between;gap:20px;position:relative;overflow:hidden;margin-bottom:22px}.hero:after{content:'';position:absolute;width:240px;height:240px;border:1px solid #b58d4c40;border-radius:48% 48% 0 0;inset-inline-end:0;top:20px;pointer-events:none;transform:rotate(-20deg)}.hero p{color:#c8d6e4;margin-bottom:18px;max-width:600px}.hero button{background:#f1dbb6;color:var(--navy)}.hero .hero-logo{width:130px;height:130px;object-fit:contain;border-radius:25px;flex-shrink:0;animation:float 5s ease-in-out infinite}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.stat,.card{background:var(--white);border:1px solid var(--line);border-radius:18px;box-shadow:0 6px 24px #16334a04}.stat{padding:22px}.stat strong{display:block;font-size:2rem;margin:9px 0}.stat .icon{color:var(--gold);float:inline-end}.stat .icon svg{width:22px;height:22px}.stat small{font-size:.75rem}.card{padding:24px;margin-bottom:18px;min-width:0}.card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.card-head h2{margin:0}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.group-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}.group-grid .card{margin:0}.group-mark{width:46px;height:46px;display:grid;place-items:center;background:#f5efe4;color:var(--gold);border-radius:14px;margin-bottom:18px}.group-mark svg{width:25px;height:25px}.toolbar{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:20px}.toolbar label{margin:0;flex:1;min-width:180px}.toolbar input,.toolbar select{background:#fff}.scroll{overflow:auto}table{border-collapse:collapse;width:100%;text-align:start;white-space:normal}th,td{padding:15px 12px;text-align:start;border-bottom:1px solid var(--line);vertical-align:middle;font-size:.88rem}th{color:var(--muted);font-size:.74rem;font-weight:normal;background:#f8fafc;white-space:nowrap}td b{display:block;line-height:1.8}td .actions{min-width:150px}td small{font-size:.72rem}tr:last-child td{border-bottom:0}.badge{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:20px;font-size:.72rem;background:#edf2f7;color:#56708c;white-space:nowrap}.badge.good{background:#e8f5f0;color:var(--green)}.badge.warn{background:#fff3dc;color:#936b25}.badge.bad{background:#fae8eb;color:var(--red)}label{display:block;font-size:.82rem;line-height:1.8;margin-bottom:16px;font-weight:700}input,select,textarea{display:block;width:100%;border:1px solid #d8e0e9;border-radius:10px;padding:12px;margin-top:6px;min-height:46px;background:#fbfcfe;color:var(--ink);font-size:.9rem}textarea{min-height:95px;resize:vertical}input:focus,select:focus,textarea:focus{outline:2px solid #b58d4c70;border-color:var(--gold)}input:disabled{background:#e9eef3;color:#718094}input[type=checkbox]{display:inline-block;min-height:0;width:20px;height:20px;vertical-align:middle;margin-inline-end:8px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.full{grid-column:1/-1}.empty{text-align:center;padding:36px 20px}.empty .empty-icon{color:var(--gold);margin-bottom:12px}.empty svg{width:40px;height:40px}.empty p{color:var(--muted);margin-bottom:16px}.step{display:flex;gap:14px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}.step:last-child{border:0}.step-number{flex-shrink:0;border-radius:50%;width:34px;height:34px;display:grid;place-items:center;background:#f5efe3;color:#98733c}.step p{margin:0;font-size:.85rem}.step button{margin-inline-start:auto}.timeline{padding-inline-start:18px;border-inline-start:2px solid #e8dcc6}.timeline article{position:relative;padding:2px 0 21px}.timeline article:before{content:'';position:absolute;inset-inline-start:-24px;top:10px;width:10px;height:10px;background:var(--gold);border-radius:50%;outline:4px solid white}.timeline h3{margin:6px 0}.timeline p{font-size:.8rem;color:var(--muted);margin:0}.login-shell{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-art{background:radial-gradient(ellipse at 50% 40%,#204f84,var(--navy));color:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:50px;text-align:center}.login-art .main-logo{width:210px;border-radius:40px;animation:float 5s ease-in-out infinite;margin-bottom:30px}.agency-mark{width:180px;background:#fff;border-radius:15px;padding:9px;margin-top:30px}.login-form{display:grid;place-items:center;padding:36px}.login-form section{width:min(100%,420px)}.login-form form{margin-top:30px}.login-form form>button{width:100%}.login-form h1{font-size:2rem}.login-form .muted{font-size:.9rem}.login-error,.form-error{color:var(--red);line-height:1.8;font-size:.85rem;white-space:pre-wrap}.login-error:empty,.form-error:empty{display:none}dialog{padding:0;border:0;border-radius:22px;width:min(680px,calc(100vw - 28px));max-height:90vh;color:var(--ink);box-shadow:0 20px 100px #102d5433}dialog::backdrop{background:#071e3dcc;backdrop-filter:blur(3px)}.modal-head{padding:24px 28px 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px}.modal-head h2{margin:0}.modal-body{padding:26px 28px}.modal-footer{display:flex;justify-content:flex-end;gap:10px;padding-top:10px}.close{background:#eff3f7;color:var(--navy);font-size:1.1rem;padding:7px 12px}.doc-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 0;border-bottom:1px solid var(--line)}.doc-row div:first-child{min-width:0;overflow-wrap:anywhere}.doc-row p{margin:0;font-size:.9rem}.chat-log{max-height:460px;overflow:auto;display:flex;flex-direction:column;gap:14px;padding:12px 2px}.bubble{padding:14px 17px;background:#eff3f8;border-radius:15px;max-width:80%;align-self:flex-start;overflow-wrap:anywhere}.bubble.own{background:#e9f1e9;align-self:flex-end}.bubble p{margin:5px 0;font-size:.9rem;white-space:pre-wrap}.bubble small{font-size:.69rem}.notice-row{padding:20px 0;border-bottom:1px solid var(--line)}.notice-row:last-child{border:0}.notice-row p{margin:9px 0;font-size:.9rem;white-space:pre-wrap}.notice-row h3{margin:7px 0}.location-link{display:inline-flex;margin-top:6px}.screen-note{font-size:.76rem;color:var(--muted);margin:14px 0;line-height:1.9}.loading{padding:70px;text-align:center;color:var(--muted)}#notice{position:fixed;bottom:24px;inset-inline-end:24px;max-width:min(460px,calc(100% - 40px));z-index:20;background:var(--navy);color:white;padding:16px 22px;border-radius:12px;box-shadow:0 8px 30px #1234;line-height:1.8;font-size:.9rem}#notice:empty{display:none}#notice.error{background:#8d2d3b}.banner{background:#fff3df;border:1px solid #eedcb9;padding:14px 18px;border-radius:12px;color:#7b5c27;line-height:1.9;margin-bottom:20px;font-size:.84rem}.fetch-time{font-size:.7rem;white-space:nowrap}.skeleton{height:10px;background:#e5eaf0;border-radius:5px;width:65%;margin-top:10px}.read-only{padding:30px;text-align:center}.counter{font-size:.75rem;color:var(--muted);margin:15px 0}.grow{flex:1}.mono{direction:ltr;unicode-bidi:embed;font-family:monospace}.body-copy{white-space:pre-wrap;overflow-wrap:anywhere}.menu-toggle{display:none}svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}@keyframes enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes float{50%{transform:translateY(-5px)}}@media(min-width:1600px){.workspace{padding-top:45px}.shell{grid-template-columns:265px minmax(0,1fr)}}@media(max-width:1050px){.shell{grid-template-columns:205px minmax(0,1fr)}.topbar{padding:18px 24px}.workspace{padding:26px 24px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.grid2{grid-template-columns:1fr}.sidebar{padding-inline:10px}}@media(max-width:760px){.shell{display:block}.sidebar{height:auto;position:relative;padding:14px 16px}.brand{padding:0 0 12px}.brand img{width:44px;border-radius:12px}.sidebar nav{display:flex;overflow:auto;padding-bottom:5px;gap:6px}.nav-item{white-space:nowrap;padding:10px;font-size:.76rem}.nav-item svg{width:17px}.sidebar-footer{display:none}.topbar{padding:15px 16px}.identity small{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar .actions{gap:4px}.topbar button{padding:9px;font-size:.72rem}.workspace{padding:24px 16px 55px}.heading{align-items:flex-start;flex-direction:column;gap:10px}.heading h1{font-size:1.6rem}.hero{padding:25px 22px}.hero .hero-logo{width:75px;height:75px;border-radius:18px}.hero h2{font-size:1.2rem}.hero p{font-size:.8rem}.stat{padding:18px}.stat strong{font-size:1.6rem}.stats{gap:10px}.card{padding:19px}.form-grid{grid-template-columns:1fr}.login-shell{grid-template-columns:1fr}.login-art{padding:28px}.login-art .main-logo{width:105px;border-radius:22px;margin-bottom:12px}.login-art h1{font-size:1.45rem;margin-bottom:0}.login-art p{display:none}.agency-mark{width:130px;margin-top:14px}.login-form{padding:28px}.modal-body{padding:22px}.modal-head{padding:20px 22px}.bubble{max-width:92%}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.rm-map{position:relative;height:520px;min-height:360px;overflow:hidden;background:#e9eef2;border:1px solid #c4cedb;border-radius:18px;direction:ltr;touch-action:none;isolation:isolate}.rm-map:focus{outline:3px solid #2457a9;outline-offset:3px}.rm-tiles,.rm-marks{position:absolute;inset:0;pointer-events:none}.rm-tiles img{position:absolute;width:256px;height:256px;max-width:none;user-select:none}.rm-marker{position:absolute;transform:translate(-8px,-50%);white-space:nowrap;max-width:230px;overflow:hidden;text-overflow:ellipsis;border:2px solid white;background:#124aa0;color:white;padding:6px 10px;border-radius:16px;box-shadow:0 2px 8px #152b4155;font-size:13px;pointer-events:auto;min-height:36px;z-index:2}.rm-marker:hover,.rm-marker:focus{z-index:10;max-width:420px;background:#17345f}.rm-marker.rm-old{background:#855d19}.rm-tools{position:absolute;top:12px;left:12px;display:flex;gap:5px;z-index:20}.rm-tools button{background:white;color:#183453;border:1px solid #a4b8cc;border-radius:9px;padding:8px 12px;min-height:44px}.rm-credit{position:absolute;bottom:0;right:0;background:#fffffff0;color:#183453;padding:4px 8px;font:11px sans-serif;z-index:20}.rm-tile-error{position:absolute;bottom:28px;left:10px;right:10px;background:white;padding:8px;z-index:20}.rm-map-list{max-height:520px;overflow:auto}.rm-person{margin-block:8px;padding:10px;border:1px solid #dde3ee;border-radius:12px}.rm-person p{margin:4px 0}.rm-selection{border-inline-start:4px solid #2457a9;padding:12px;margin-block:8px;background:#eef4ff;color:#162f51}@media(max-width:700px){.rm-map{height:420px}.rm-marker{max-width:180px}}

.companion-picture{position:relative;max-width:600px;margin:auto}.companion-picture img{width:100%;display:block}.companion-pointer{position:absolute;transform:translate(-50%,-50%);font-size:44px;color:#fbbf24;text-shadow:0 1px 4px #17233e}.history-compare{position:relative;height:320px;overflow:hidden}.history-compare img{width:100%;height:100%;object-fit:contain}.history-compare .historic-layer{position:absolute;inset:0;clip-path:inset(0 50% 0 0)}audio{max-width:100%}

.modern-chat{max-width:900px;margin-inline:auto}.modern-chat .chat-log{height:55vh;min-height:280px;max-height:650px;background:#f7f8fc;padding:16px;border-radius:18px;overflow:auto}.modern-chat .bubble{width:fit-content;max-width:85%;border-radius:18px;margin-block:10px;background:white;box-shadow:0 2px 5px #17233e0b}.modern-chat .bubble.own{background:#1d4ed8;color:white;margin-inline-start:auto}.modern-chat .bubble.own small{color:#dbeafe}.modern-chat .bubble p{white-space:pre-wrap;overflow-wrap:anywhere}.chat-composer{display:flex;gap:6px;align-items:center;padding:6px;border:1px solid #e2e8f0;border-radius:26px;margin-top:12px}.chat-composer textarea{flex:1;min-width:0;border:0;resize:vertical;max-height:140px;min-height:48px;padding:12px}.chat-composer button{min-width:48px;height:48px;border-radius:50%;padding:8px}.chat-search-label{max-width:330px;font-size:13px}.reactions span{display:inline-block;padding:3px 6px;background:#dbeafe;color:#17233e;border-radius:12px}.pin-strip{width:100%;text-align:start;background:#fef3c7;color:#713f12;border-radius:12px}#web-chat-preview img{max-width:100%;object-fit:contain}

/* Role and distance stay distinct from freshness. */
.rm-marker.rm-guide{background:#713bb4;border-color:#fff;color:#fff}.rm-marker.rm-far{background:#bd263c;border-color:#fff;color:#fff}.rm-marker.rm-old{border:3px dashed #a98b45;opacity:.75}.rm-distance-far{color:#bd263c;font-weight:700}

.rm-marker.rm-old:not(.rm-guide):not(.rm-far){background:#124aa0}

/* V1.1 agency workspace: quiet surfaces, grouped navigation and focused tasks. */
:root{--navy:#18375e;--blue:#245fc8;--gold:#987437;--ink:#1b304d;--muted:#60718a;--line:#e2e8f1;--bg:#f5f7fb;--white:#fff;--green:#176b59;--red:#aa3347;font-family:system-ui,-apple-system,"Segoe UI",Tahoma,Arial,sans-serif}
button,.button{min-height:40px;padding:9px 14px;border-radius:12px;font-weight:600;line-height:1.5;box-shadow:none}
button:hover:not(:disabled){transform:none;background:#1d50ad}
button.secondary:hover:not(:disabled),.button.secondary:hover{background:#e2ebfa;color:#17498f}
button.danger:hover:not(:disabled){background:#f5d9e0;color:#922b3d}
button.small{min-height:34px;padding:6px 10px;font-size:.77rem;border-radius:9px}
button:disabled{cursor:not-allowed}
input,select,textarea{min-height:42px;padding:10px 12px;border-radius:11px;border-color:#d7e0ed;background:#fff;font-size:.86rem}
input:focus,select:focus,textarea:focus{outline:3px solid #dce8fd;border-color:#5682cb}
input[type=checkbox]{width:18px;height:18px;min-height:18px;accent-color:var(--blue);flex:none}
h1{font-size:23px;line-height:1.6;letter-spacing:-.3px;margin-bottom:5px}h2{font-size:18px;line-height:1.65}h3{font-size:15px;line-height:1.7}p{line-height:1.85}.eyebrow{font-size:10px;letter-spacing:1.3px;color:#8b6b35}
.shell{grid-template-columns:246px minmax(0,1fr)}
.sidebar{background:#16479c linear-gradient(165deg,#1b52b2 0%,#16479c 52%,#123b86 100%);color:#fff;padding:23px 13px 17px;border-inline-end:1px solid #123a84;height:100vh;position:sticky;top:0;overflow-y:auto;z-index:40;scrollbar-width:thin}
.brand{padding:0 12px 22px;gap:10px}.brand img{width:45px;height:45px;object-fit:contain;border-radius:13px}.brand b{font-size:15px;display:block;line-height:1.8;color:#fff}.brand small{font-size:10px;color:#d9e6ff}
.sidebar-nav{display:flex!important;flex-direction:column;gap:17px!important;overflow:visible!important;padding:0!important}
.nav-section{display:grid;gap:3px}.nav-caption{font-size:10px;letter-spacing:.7px;font-weight:700;color:#d3e2ff;padding:0 13px 6px;line-height:1.7}
.nav-item{min-height:39px;padding:8px 12px;gap:10px;border-radius:11px;color:#edf3ff;font-size:12px;line-height:1.6;white-space:normal;text-align:start;background:transparent;border:1px solid transparent;width:100%}
.nav-item svg{width:19px;height:19px;color:#d5e4ff;flex:none}.nav-item:hover:not(:disabled){background:#ffffff14;color:#fff;border-color:#ffffff22}.nav-item.active{background:#fff;color:#17499d;border-color:#fff;border-inline-start:3px solid #e6c686;box-shadow:0 3px 12px #082d7326;font-weight:700}.nav-item.active svg{color:#205bbb}.nav-item.active:hover:not(:disabled){background:#f4f7ff;color:#17499d;border-color:#fff;border-inline-start-color:#e6c686}
.sidebar-footer{padding:21px 12px 0;margin-top:auto}.sidebar-footer img{width:125px;max-height:48px;object-fit:contain;padding:3px;border-radius:8px;background:#fff}.sidebar-footer small{font-size:10px;color:#d5e2fb;margin-top:7px}
.topbar{min-height:83px;padding:15px 28px;border-bottom:1px solid var(--line);background:#ffffffed;gap:18px;align-items:center}
.workspace-context{display:flex;align-items:center;gap:14px;min-width:0;flex:1}.context-copy{min-width:0}.context-copy b{display:block;font-size:13px;color:#28466c;line-height:1.7}.context-copy small{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:350px}
.workspace-context>label{margin:0;min-width:180px;max-width:290px;width:100%;font-size:10px;color:var(--muted)}.workspace-context select{margin-top:3px;min-height:38px;font-size:12px;padding:7px 10px;background:#f7f9fd}
.topbar .identity{gap:9px;min-width:0}.topbar .avatar{width:34px;height:34px;font-size:13px;border-radius:12px;background:#eaf1fd;color:#3b66a5}.topbar .identity b{font-size:12px;display:block;line-height:1.8}.topbar .identity small{font-size:9px}.topbar-actions{display:flex;align-items:center;gap:5px;flex:none}.topbar-actions button{min-height:34px;padding:7px 10px;font-size:11px}
.mobile-menu{display:none}.sidebar-overlay{display:none}
.workspace{max-width:1580px;padding:25px 28px 50px;animation:none}.heading,.page-heading{gap:14px;align-items:flex-start;margin-bottom:22px}.heading p{font-size:12px;max-width:650px;line-height:1.9}.heading .eyebrow{display:block;margin-bottom:5px}.fetch-time{font-size:10px;line-height:1.8;white-space:normal;text-align:end}
.card,.stat{border-radius:17px;border-color:#e3e9f2;box-shadow:0 4px 18px #17355503}.card{padding:20px;margin-bottom:17px}.card-head{margin-bottom:17px;align-items:center;flex-wrap:wrap;gap:10px}.card-head p{margin:3px 0 0;font-size:12px}.card-head .actions{margin-inline-start:auto}.card-head h2{font-size:17px}.card-head .eyebrow{display:block;margin-bottom:4px}.grid2{gap:17px}.actions{gap:6px}.group-grid{gap:16px;grid-template-columns:repeat(auto-fit,minmax(min(100%,265px),1fr))}
.stats{gap:13px;margin-bottom:19px}.stat{padding:17px 18px}.stat strong{font-size:27px;color:#203f6e;margin:7px 0 0;line-height:1.4;letter-spacing:-.7px}.stat small{font-size:11px;line-height:1.7;max-width:180px}.stat .icon{width:35px;height:35px;display:grid;place-items:center;float:inline-end;background:#edf3fd;color:#4974b5;border-radius:11px}.stat .icon svg{width:19px;height:19px}.stats .stat:nth-child(3) .icon{background:#f8f1e5;color:#a37b35}.stats .stat:nth-child(4) .icon{background:#fceef1;color:#bb5367}
.overview-welcome{background:#174ba7 linear-gradient(115deg,#1d59c3 0%,#174ba7 52%,#123d8d 100%);border:1px solid #184a9f;color:#fff;border-radius:18px;padding:21px 23px;margin-bottom:17px;display:flex;align-items:center;justify-content:space-between;gap:20px;overflow:hidden}.overview-welcome h2{font-size:21px;color:#fff;margin:4px 0 6px}.overview-welcome p{font-size:12px;color:#e3edff;margin:0;max-width:680px}.overview-welcome .eyebrow{color:#f4dfb4}.overview-welcome .actions{flex:none}.overview-welcome img{width:56px;height:56px;border-radius:15px;object-fit:contain;flex:none}
.quick-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-bottom:20px}.quick-action{background:#fff;color:#385678;min-height:79px;border:1px solid var(--line);border-radius:14px;padding:13px;display:flex;align-items:center;text-align:start;gap:11px;line-height:1.6;font-size:12px}.quick-action svg{height:24px;width:24px;padding:0;flex:none;color:#3d70bd}.quick-action span{min-width:0}.quick-action b{display:block;font-size:12px;color:#294a73;line-height:1.8}.quick-action small{font-weight:400;font-size:10px}.quick-action:hover:not(:disabled){background:#f8faff;border-color:#c9dbf7;color:#214c89}
.hero{padding:22px;border-radius:18px}.hero .hero-logo{width:78px;height:78px;animation:none}.hero:after{display:none}.hero h2{font-size:21px}.hero p{font-size:12px}.toolbar{padding:12px;background:#f7f9fc;border:1px solid #e9eef5;border-radius:12px;gap:12px;margin-bottom:17px}.toolbar label{font-size:11px;min-width:160px}.toolbar input,.toolbar select{margin-top:4px;font-size:12px}.toolbar>button{min-height:41px}.scroll{border:1px solid #e6ebf3;border-radius:12px;max-width:100%}th{background:#f8faff;color:#74829a;font-size:10px;font-weight:600;padding:12px}td{font-size:12px;padding:12px;line-height:1.75}td small{font-size:10px}.scroll table th:first-child,.scroll table td:first-child{padding-inline-start:15px}.scroll tbody tr:hover{background:#fbfcff}td .actions{gap:5px;min-width:140px}.badge{font-size:10px;padding:4px 8px;line-height:1.5;border-radius:8px;white-space:normal;max-width:100%;overflow-wrap:anywhere}.badge.good{background:#eaf5ef;color:#24745e}.badge.warn{background:#fbf2e0;color:#896723}.badge.bad{background:#fbeef1;color:#a73c53}.counter{font-size:10px;margin:13px 1px}.program-card{box-shadow:none}.program-card>p{font-size:12px;margin-bottom:7px}.program-card>.actions{margin:14px 0}
.notice-row{padding:15px 0}.notice-row p{font-size:12px;margin:6px 0}.notice-row small{font-size:10px}.notice-row .card-head{margin-bottom:6px}.step{padding:13px 0;gap:11px}.step-number{height:29px;width:29px;font-size:12px}.step p{font-size:12px}.timeline h3{font-size:13px}.timeline small,.timeline p{font-size:11px}.empty{padding:28px 15px;color:#7d8ba0}.empty .empty-icon{background:#f0f4fa;border-radius:16px;width:55px;height:55px;display:grid;place-items:center;margin:0 auto 12px;color:#7a97be}.empty svg{width:26px;height:26px}.empty h3{font-size:13px;color:#62758f;font-weight:500;margin:0 0 10px}.empty p{font-size:12px}.screen-note{font-size:11px;line-height:1.9;color:#74839a}.banner{font-size:12px;padding:12px 15px;border-radius:12px}.loading{padding:55px 20px;font-size:13px}
.modal-head{padding:18px 21px 14px;gap:10px}.modal-head h2{font-size:17px}.modal-body{padding:20px 21px}.modal-footer{gap:8px;padding-top:12px}.modal-footer button{min-height:40px;font-size:12px}.close{height:34px;min-height:34px;width:34px;padding:2px;background:#f1f4fa;color:#526d91;border-radius:10px;font-size:21px}.close:hover:not(:disabled){background:#e5ecf7;color:#244d87}dialog{width:min(760px,calc(100vw - 24px));max-height:92vh;border-radius:20px}.form-grid{gap:0 16px}label{font-size:12px}.form-error,.login-error{font-size:12px}.login-art .main-logo{animation:none}.login-form h1{font-size:25px}.login-form p{font-size:13px}.login-form button{font-size:13px}.login-art h1{font-size:28px}.modern-chat .chat-log{border:1px solid #e7edf6;background:#f5f7fb}.modern-chat .bubble{font-size:12px}.modern-chat .bubble p{font-size:13px}.modern-chat .bubble>button{min-height:32px}.chat-composer button{min-width:40px;height:40px;min-height:40px}.chat-composer textarea{min-height:40px;padding:8px;font-size:13px}.chat-composer{border-radius:18px;padding:4px}.pin-strip{font-size:12px}
/* Credentials are short-lived UI state; the print surface is separate from the dashboard. */
.credential-flow{display:grid;gap:15px}.credential-step{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:#5476a6;font-weight:700;margin-bottom:10px}.credential-summary{padding:13px 15px;border:1px solid #dce8f9;background:#f4f8ff;border-radius:12px;font-size:12px;line-height:1.9}.credential-summary p{margin:4px 0;font-size:12px}.credential-summary strong{color:#284f86}.credential-summary .badge{margin-inline-start:6px}.credential-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.credential-toolbar p{margin:0;font-size:12px;color:var(--muted)}.credential-toolbar .actions{gap:7px}.credential-selection{display:flex;align-items:center;gap:15px;flex-wrap:wrap;padding:3px 0}.checkbox-line{display:flex;align-items:center;gap:7px;margin:0;min-height:40px;cursor:pointer;font-size:12px;font-weight:500}.checkbox-line input{margin:0;flex:none}.credential-roster{max-height:330px;overflow:auto;border:1px solid #e3eaf4;border-radius:12px}.credential-roster table{min-width:410px}.credential-roster th{position:sticky;top:0;z-index:1;background:#f6f9ff}.credential-roster label{margin:0;display:flex;align-items:center;gap:8px;font-weight:500;min-height:28px}.credential-roster input[type=checkbox]{margin:0}.credential-roster td{font-size:12px;padding:10px 12px}.credential-results{max-height:430px;overflow:auto;display:grid;gap:10px}.credential-card{padding:14px;border:1px solid #dfe7f1;border-radius:13px;background:#fff;min-width:0;break-inside:avoid}.credential-card h3{font-size:14px;line-height:1.8;margin:0 0 8px;color:#25466e}.credential-card p{font-size:11px;line-height:1.8;margin:5px 0}.credential-card small{font-size:10px;line-height:1.7}.credential-card img{width:35px;height:35px;object-fit:contain;border-radius:8px}.credential-card header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}.credential-card dl{margin:8px 0;display:grid;grid-template-columns:max-content minmax(0,1fr);gap:7px 12px;align-items:center}.credential-card dt{font-size:10px;color:#6f819a}.credential-card dd{margin:0;min-width:0;font-size:12px;overflow-wrap:anywhere}.credential-secret{display:inline-block;padding:6px 10px;border-radius:7px;background:#eef4ff;border:1px solid #d7e4fb;color:#163b71;font:600 17px ui-monospace,Consolas,monospace;letter-spacing:.03em;unicode-bidi:plaintext;white-space:nowrap;user-select:text}.credential-progress{border:1px solid #dce7f7;border-radius:11px;background:#f4f8ff;padding:12px 15px;font-size:12px;color:#3b5f8d;line-height:1.8}.credential-progress progress{width:100%;height:9px;margin-top:9px;accent-color:#2c64c5}.credential-print{font-size:12px;color:#647792;line-height:1.9}.credential-print p{margin-bottom:7px}#credential-print-root{display:none}.credential-count{font-size:12px;color:#2e5a99;font-weight:700}.credential-warning{background:#fff5e5;border:1px solid #f0dfc2;border-radius:11px;padding:11px 13px;font-size:12px;color:#886329;line-height:1.9}
@media(min-width:1600px){.shell{grid-template-columns:258px minmax(0,1fr)}.workspace{padding-top:28px}}
@media(max-width:1180px){.shell{grid-template-columns:220px minmax(0,1fr)}.sidebar{padding-inline:9px}.nav-item{font-size:11px;padding-inline:10px}.topbar{padding:14px 20px}.workspace{padding:22px 20px 45px}.workspace-context>label{max-width:235px;min-width:150px}.context-copy small{max-width:230px}.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar .identity{display:none}}
@media(max-width:900px){.shell{display:block}.sidebar{position:fixed;inset-block:0;inset-inline-start:0;width:260px;max-width:calc(100vw - 46px);height:100dvh;z-index:60;padding:23px 14px 20px;transition:transform .2s ease;box-shadow:0 0 40px #18375e20;display:flex;flex-direction:column}.sidebar nav.sidebar-nav{display:flex;flex-direction:column;overflow:visible;gap:17px}.sidebar .sidebar-footer{display:block}.sidebar .brand{padding-bottom:22px}.sidebar .brand img{width:45px}.sidebar .nav-item{white-space:normal;font-size:12px;padding:9px 12px}.sidebar .nav-item svg{width:19px}.sidebar .sidebar-footer{padding:21px 12px 0}.sidebar .sidebar-footer img{width:125px}.sidebar .sidebar-footer small{font-size:10px}html[dir=rtl] .sidebar{transform:translateX(110%)}html[dir=ltr] .sidebar{transform:translateX(-110%)}.shell.menu-open .sidebar{transform:translateX(0)}.sidebar-overlay{position:fixed;inset:0;min-height:0;border:0;border-radius:0;z-index:55;background:#10274166;backdrop-filter:blur(2px)}.shell.menu-open .sidebar-overlay{display:block}.mobile-menu{display:grid;place-items:center;flex:none;width:38px;height:38px;min-height:38px;background:#f0f4fb;color:#315b91;border:1px solid #e0e8f4;padding:8px}.mobile-menu svg{height:20px;width:20px}.topbar{padding:12px 16px;gap:12px;flex-wrap:wrap;min-height:78px}.workspace-context{gap:11px}.workspace-context>label{max-width:none;flex:1;width:auto;min-width:130px}.context-copy{display:none}.topbar-actions{gap:4px}.topbar-actions button{font-size:10px;min-height:33px;padding:6px 8px}.topbar .identity{display:none}.workspace{padding:20px 16px 40px}.heading{flex-direction:row;align-items:flex-start;gap:12px}.heading h1{font-size:22px}.heading p{font-size:11px}.fetch-time{font-size:9px;max-width:140px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.grid2{grid-template-columns:1fr}.overview-welcome{padding:18px;gap:15px}.overview-welcome h2{font-size:19px}.overview-welcome p{font-size:11px}.card{padding:18px}.credential-results{max-height:390px}}
@media(max-width:560px){.topbar{padding:10px 12px;gap:8px}.workspace-context{flex-basis:calc(100% - 47px);gap:0}.workspace-context>label{font-size:9px}.workspace-context select{min-height:36px;font-size:11px}.topbar-actions{width:100%;justify-content:flex-end;gap:5px}.topbar-actions button{min-height:31px;padding:5px 9px;font-size:10px}.workspace{padding:18px 12px 35px}.heading{flex-direction:column;gap:7px;margin-bottom:16px}.heading h1{font-size:21px}.heading .fetch-time{text-align:start;max-width:100%;font-size:9px}.card{padding:15px;border-radius:15px}.card-head{align-items:flex-start;gap:9px;margin-bottom:13px}.card-head h2{font-size:16px}.card-head .actions{margin-inline-start:0}.overview-welcome{padding:16px;display:block}.overview-welcome h2{font-size:18px}.overview-welcome .actions{margin-top:13px}.overview-welcome img{display:none}.quick-actions{gap:8px;margin-bottom:16px}.quick-action{padding:11px;gap:8px;min-height:72px;font-size:11px;border-radius:12px}.quick-action svg{height:20px;width:20px}.quick-action b{font-size:11px}.quick-action small{font-size:9px;line-height:1.65}.stat{padding:14px}.stat strong{font-size:24px}.stat small{font-size:10px}.stat .icon{height:30px;width:30px;border-radius:9px}.stat .icon svg{width:17px;height:17px}.toolbar{padding:10px;gap:9px}.toolbar label{min-width:100%;font-size:10px}.toolbar input,.toolbar select{font-size:12px}.toolbar>button{width:100%}.form-grid{grid-template-columns:1fr}.modal-head{padding:15px 16px 12px}.modal-head h2{font-size:16px}.modal-body{padding:16px}.modal-footer{flex-wrap:wrap}.modal-footer button{flex:1;min-width:100px}.credential-summary{padding:11px 12px;font-size:11px}.credential-summary p{font-size:11px}.credential-selection{gap:5px 12px}.credential-toolbar{align-items:flex-start;flex-direction:column}.credential-toolbar .actions{width:100%}.credential-toolbar .actions>button{flex:1}.credential-roster{max-height:300px}.credential-card{padding:12px}.credential-secret{font-size:16px}.loading{padding:40px 15px}.login-form{padding:24px}.login-art{padding:26px}.login-art h1{font-size:22px}.login-form h1{font-size:23px}.modern-chat .chat-log{padding:10px}.chat-composer{gap:2px}.chat-composer button{width:36px;min-width:36px;height:36px;min-height:36px}.chat-composer textarea{font-size:12px;padding:7px;min-height:36px}}
@media(prefers-reduced-motion:reduce){.sidebar{transition:none}}
@page{size:A4;margin:12mm}
@media print{
 html,body{background:#fff!important;color:#111!important;margin:0!important;padding:0!important;font-family:Tahoma,Arial,sans-serif}
 body.credential-printing> :not(#credential-print-root){display:none!important}
 body.credential-printing #credential-print-root{display:block!important;width:100%;margin:0;padding:0;color:#111;background:#fff;font-size:10pt}
 #credential-print-root .credential-print-header{display:flex;align-items:center;justify-content:space-between;gap:8mm;padding-bottom:5mm;margin-bottom:6mm;border-bottom:1px solid #b8c8dd;break-after:avoid}
 #credential-print-root .credential-print-header img{width:35mm;height:15mm;object-fit:contain}
 #credential-print-root .credential-print-header h1{font-size:17pt;line-height:1.5;margin:0 0 2mm;color:#173c6e}
 #credential-print-root .credential-print-header p,#credential-print-root .credential-print-header small{font-size:9pt;line-height:1.6;margin:0;color:#4e617a}
 #credential-print-root .credential-print-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5mm}
 #credential-print-root .credential-card{padding:5mm;border:1px solid #c2cede;border-radius:3mm;break-inside:avoid;background:#fff;box-shadow:none;min-height:49mm}
 #credential-print-root .credential-card header{margin-bottom:3mm}#credential-print-root .credential-card header img{width:9mm;height:9mm}
 #credential-print-root .credential-card h3{font-size:12pt;line-height:1.5;margin:0 0 3mm;color:#173c6e}
 #credential-print-root .credential-card p{font-size:9pt;line-height:1.65;margin:1.5mm 0;color:#273f5d}
 #credential-print-root .credential-card small{font-size:8pt;line-height:1.6;color:#52657c}
 #credential-print-root .credential-card dl{grid-template-columns:max-content minmax(0,1fr);gap:2.5mm 3mm;margin:3mm 0}
 #credential-print-root .credential-card dt{font-size:8pt;color:#52657c}
 #credential-print-root .credential-card dd{font-size:10pt;color:#111}
 #credential-print-root .credential-secret{font:600 13pt ui-monospace,Consolas,monospace;color:#111;background:#f2f5fa!important;border:1px solid #becce0;padding:1.8mm 2.5mm;border-radius:1.5mm;white-space:nowrap;unicode-bidi:plaintext;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 #credential-print-root .credential-print-footer{font-size:8pt;color:#52657c;line-height:1.6;margin:5mm 0 0}
 #credential-print-root a{color:#173c6e;text-decoration:none;overflow-wrap:anywhere}
 #credential-print-root table{width:100%;font-size:9pt;border-collapse:collapse}#credential-print-root th,#credential-print-root td{font-size:9pt;padding:3mm;border:1px solid #c6d2e1;color:#111}#credential-print-root th{background:#eef3fa!important;color:#173c6e;font-weight:bold;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 #credential-print-root tr{break-inside:avoid}#credential-print-root thead{display:table-header-group}
}
@media(max-width:900px){.sidebar{visibility:hidden}.shell.menu-open .sidebar{visibility:visible}.sidebar-overlay:hover:not(:disabled){background:#10274166}}
/* Secondary copy remains readable on the light workspace. */
.nav-caption,.sidebar-footer small{color:#d5e3ff}th{color:#5f718b}.screen-note{color:#65758c}.overview-welcome p{color:#e3edff}.credential-card dt{color:#60718a}

/* Match the final V1.1 workspace and credential markup. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.brand{text-decoration:none;color:inherit}
.overview-release{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;flex:none;min-width:83px;min-height:68px;padding:11px 14px;border:1px solid #ffffff40;border-radius:15px;background:#ffffff10;color:#dfebff;font-size:10px;letter-spacing:1.5px;line-height:1.5;direction:ltr}
.overview-release b{font-size:20px;font-weight:750;letter-spacing:-.5px;color:#fff}
.quick-action-icon{display:grid;place-items:center;flex:none;width:36px;height:36px;background:#eef4fd;border:1px solid #e7eef9;border-radius:11px;color:#3d70bd}.quick-action-icon svg{width:21px;height:21px}.quick-action>span:last-child{margin-inline-start:auto;color:#8a9ab2;font-size:14px;flex:none}html[dir=ltr] .quick-action>span:last-child{transform:rotate(180deg)}
.card.credential-results{max-height:none;overflow:visible;display:block}.credential-roster td bdi{overflow-wrap:anywhere}.credential-download{font-size:10px!important;line-height:1.7;color:#315a91;letter-spacing:.1px;overflow-wrap:anywhere}
@media(max-width:560px){.overview-release{display:none}.quick-action-icon{width:29px;height:29px;border-radius:9px}.quick-action-icon svg{height:18px;width:18px}.quick-action>span:last-child{display:none}}
@media print{#credential-print-root .credential-card h2{font-size:12pt;line-height:1.5;margin:0 0 3mm;color:#173c6e}#credential-print-root .credential-download{font-size:8pt!important;color:#173c6e;line-height:1.5;margin-top:3mm}}
/* Flow sections are full-width cards; their contents manage their own rows. */
.card.credential-selection{display:block}.credential-flow{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:16px}.credential-step{min-width:0;min-height:44px;padding:9px 11px;border:1px solid #e1e8f2;border-radius:11px;background:#f8fafd;color:#697c95;margin-bottom:0;font-size:11px;line-height:1.7}.credential-step b{flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:#eaf0f8;color:#607795;font-size:11px}.credential-step.current{border-color:#d9e5f8;background:#eef4ff;color:#315e9f}.credential-step.current b{background:#2a62c3;color:white}.card.credential-selection>.credential-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:16px}.card.credential-selection>.credential-summary>div{min-width:0}.card.credential-results>.credential-toolbar{margin-block:14px}.credential-card>h2{font-size:14px;line-height:1.8;margin:0 0 8px;color:#25466e}
@media(max-width:560px){.credential-flow{gap:5px}.credential-step{padding:7px;gap:5px;font-size:10px;align-items:flex-start}.credential-step b{height:19px;width:19px;border-radius:6px;font-size:10px}.card.credential-selection>.credential-summary{grid-template-columns:1fr;gap:10px}}

.credential-confirm-summary{display:block}.credential-confirm-summary h3{margin-bottom:8px}
@media(max-width:560px){.topbar .workspace-context{flex:0 0 auto}.topbar-actions{width:auto;min-width:0;flex:0 1 auto;margin-inline-start:auto;gap:4px}.topbar-actions button{min-height:36px;padding:6px 8px}}

/* Keep credential lists on A4 when the A5 booklet stylesheet is loaded. */
@page rafiq-credentials{size:A4 portrait;margin:12mm}
@media print{body.credential-printing #credential-print-root{page:rafiq-credentials}}

/* Royal blue identity and compact booklet actions. */
button,.button{background:var(--blue);min-height:38px;padding:8px 13px}
button.small{min-height:37px;padding:7px 10px}
.topbar-actions button{min-height:37px}
.sidebar .brand img{padding:2px;background:#fff;border:1px solid #ffffff4d}
.sidebar .brand:focus-visible,.sidebar .nav-item:focus-visible{outline:3px solid #f4d99e;outline-offset:2px}
.sidebar .nav-item:focus-visible:not(.active){background:#ffffff19;color:#fff}
.sidebar .nav-item:hover svg,.sidebar .nav-item:focus-visible svg{color:currentColor}
.credential-booklet-launch{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0;margin:0 0 16px;padding:15px 16px;border:1px solid #cbdcf6;border-inline-start:3px solid #2b63c7;border-radius:12px;background:#f2f6ff}
.credential-booklet-launch>div{min-width:0}.credential-booklet-launch h3{font-size:14px;line-height:1.7;color:#224d91;margin:0 0 4px}.credential-booklet-launch p{font-size:11px;line-height:1.85;color:#546c8f;margin:0;max-width:620px}
button.credential-designer-entry{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;min-height:38px;max-width:100%;padding:8px 13px;border:1px solid #245fc8;border-radius:10px;background:#245fc8;color:#fff;font-size:12px;font-weight:650;line-height:1.6;text-align:center;white-space:normal;overflow-wrap:anywhere}
button.credential-designer-entry:hover:not(:disabled){background:#1b4fae;border-color:#1b4fae;color:#fff}
button.credential-designer-entry:focus-visible{outline:3px solid #c0d5fb;outline-offset:3px}
@media(max-width:900px){.sidebar .nav-item{padding-block:8px}.mobile-menu{min-height:38px}.sidebar .sidebar-footer small{color:#d5e3ff}}
@media(max-width:560px){.topbar-actions button{min-height:37px;padding:6px 8px}.credential-booklet-launch{align-items:stretch;flex-direction:column;gap:12px;padding:13px}.credential-booklet-launch .credential-designer-entry{width:100%;font-size:11px}.credential-toolbar.actions>.credential-designer-entry{align-self:stretch}}

/* Release 47: compact screen controls and restrained icon palette. */
@media screen{
 #app{--workspace-icon:#8d7955;--workspace-icon-soft:#f3f0e9;--workspace-charcoal:#34343b;--workspace-slate:#68717e}
 #app button:not(.nav-item):not(.quick-action):not(.rm-marker):not(.sidebar-overlay),#app .button{font-size:13px;line-height:1.5;min-height:38px;border-radius:11px;padding:7px 12px}
 #app button.small{min-height:36px;font-size:12px;padding:6px 10px}
 #app .topbar-actions button{min-height:36px;font-size:12px;padding:6px 10px}
 #app input:not([type=checkbox]):not([type=radio]):not([type=hidden]),#app select{min-height:40px;font-size:13px;padding:8px 11px}
 #app .sidebar .nav-item{min-height:39px;gap:10px;padding:7px 11px;font-size:12px}
 #app .sidebar .nav-item svg{width:18px;height:18px;color:#ded1b8}
 #app .sidebar .nav-item.active svg{color:#f2dfb9}
 #app .sidebar .nav-item:hover svg,#app .sidebar .nav-item:focus-visible svg{color:#fff0d3}
 #app .quick-action-icon,#app .group-mark,#app .empty-icon,#app .stat .icon{color:var(--workspace-icon)}
 #app .quick-action-icon,#app .group-mark{background:var(--workspace-icon-soft);border-color:#e8e1d5}
 #app .quick-action-icon{width:32px;height:32px;border-radius:10px}
 #app .quick-action-icon svg,#app .stat .icon svg{width:19px;height:19px}
 #app .group-mark svg{width:21px;height:21px}
 #app .quick-action{min-height:70px;padding:11px;gap:10px;color:var(--workspace-charcoal)}
 #app .quick-action small{color:var(--workspace-slate)}
 #app .avatar{width:36px;height:36px;background:var(--workspace-icon-soft);color:#756343;font-size:13px}
 #app .rm-marker.rm-guide:not(.rm-far){background:#7c6746;border-color:#fff;color:#fff}
 #app .modern-chat .chat-log{gap:7px;padding:12px}
 #app .modern-chat .bubble{padding:8px 11px;margin-block:3px;border-radius:15px}
 #app .modern-chat .bubble>b{font-size:11px;line-height:1.4}
 #app .modern-chat .bubble p{font-size:13px;line-height:1.55;margin:4px 0}
 #app .modern-chat .bubble small{font-size:10px;line-height:1.4}
 #app .modern-chat .bubble button.small{min-height:29px;padding:4px 7px;font-size:11px}
 #app .chat-composer{padding:4px;gap:5px;border-radius:24px}
 #app .chat-composer textarea{font-size:13px;line-height:1.5;min-height:40px;padding:8px}
 #app .chat-composer button{width:40px;min-width:40px;height:40px;min-height:40px;padding:6px;border-radius:50%;font-size:18px}
 #app .reactions span{font-size:11px;padding:2px 5px}
 #app .credential-designer-entry{font-size:12px;min-height:38px;line-height:1.6}
 #modal .modal-head .close{min-width:36px;min-height:36px;padding:5px 9px;font-size:18px}
 }
 @media screen and (max-width:560px){
 #app .quick-action-icon{width:29px;height:29px}#app .quick-action-icon svg{width:18px;height:18px}
 #app .topbar-actions button{padding-inline:8px;min-height:38px}
 #app .credential-toolbar button{min-height:40px}
 }
/* Release 48: visible password entry and a separate compact reveal control. */
@media screen{
 #app .login-form label[for=login-password]{margin-bottom:6px}
 #app .login-password-control{margin-bottom:16px;display:flex;align-items:center;gap:3px;min-width:0;border:1px solid #cbd5e1;border-radius:11px;padding:2px;background:#fff}
 #app .login-password-control:focus-within{border-color:#245fce;box-shadow:0 0 0 3px #245fce18}
 #app #login-password{margin:0;flex:1 1 auto;width:0;min-width:0;min-height:36px;padding:7px 9px;border:0;border-radius:8px;background:transparent;color:#24232d;text-align:start;direction:ltr;box-shadow:none;outline:none}
 #app #login-password-toggle{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;min-width:36px;min-height:36px;padding:9px;border:0;border-radius:9px;background:#f3f0e9;color:#8a7651;line-height:1;box-shadow:none}
 #app #login-password-toggle:hover{background:#eae4d9}
 #app #login-password-toggle:focus-visible{outline:2px solid #245fce;outline-offset:2px}
 #app #login-password-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 #app #login-password-toggle .password-eye-slash{display:none}
 #app #login-password-toggle[aria-pressed=true] .password-eye-slash{display:block}
}

/* Application presence: two independent dimensions, with restrained status color. */
#app .app-presence-panel{
  margin-block:0 18px;
  padding:18px;
  border:1px solid #e0e7f0;
  border-radius:16px;
  background:#f9fbfe;
}
#app .app-presence-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:15px}
#app .app-presence-heading>div{min-width:0}
#app .app-presence-heading h3{margin:0 0 4px;color:#203b61;font-size:15px;font-weight:700;line-height:1.65}
#app .app-presence-heading p{margin:0;color:#64748a;font-size:12px;line-height:1.8}
#app .app-presence-heading>button{flex:none;white-space:nowrap}
#app .app-presence-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}

/* Match the specificity of the existing compact-control rule in agency.css. */
#app .app-presence-panel .app-presence-stats>button.app-presence-stat[aria-pressed]{
  display:grid;
  grid-template-rows:auto 1fr auto;
  align-content:start;
  gap:8px;
  min-width:0;
  min-height:132px;
  padding:14px 15px;
  border:1px solid var(--presence-card-border,#dfe6ef);
  border-radius:12px;
  background:var(--presence-card-bg,#fff);
  color:#243b59;
  box-shadow:var(--presence-card-shadow,0 2px 5px #18375e03);
  text-align:start;
  font-size:13px;
  font-weight:600;
  line-height:1.55;
  white-space:normal;
  overflow-wrap:anywhere;
  transform:none;
  transition:background .15s,border-color .15s,box-shadow .15s;
}
#app .app-presence-stat>span{display:flex;align-items:center;gap:7px;min-width:0;color:#43556d;font-size:12px;font-weight:650;line-height:1.65}
#app .app-presence-stat>strong{align-self:center;color:#1d3556;font-size:30px;font-weight:750;line-height:1.2;letter-spacing:-.6px;font-variant-numeric:tabular-nums}
#app .app-presence-stat>small{color:#697a90;font-size:11px;font-weight:400;line-height:1.65}
#app .app-presence-stat:hover:not(:disabled){--presence-card-bg:#f5f8ff;--presence-card-border:#b9cbed}
#app .app-presence-stat[aria-pressed=true]{--presence-card-bg:#edf3ff;--presence-card-border:#527ec6;--presence-card-shadow:inset 0 0 0 1px #527ec6}
#app .app-presence-stat[aria-pressed=true]>span,#app .app-presence-stat[aria-pressed=true]>strong{color:#204f98}
#app .app-presence-stat:focus-visible{outline:3px solid #98b6eb;outline-offset:3px}
#app .app-presence-explainer{margin:13px 0 0;padding-inline-start:11px;border-inline-start:2px solid #cbd7e8;color:#66768c;font-size:11px;line-height:1.85}

#app .app-presence-online{--presence-tone:#176a50;--presence-tint:#edf8f3;--presence-edge:#cce7db}
#app .app-presence-offline{--presence-tone:#5b687a;--presence-tint:#f2f4f7;--presence-edge:#dce2ea}
#app .app-presence-entered{--presence-tone:#285c9c;--presence-tint:#eef4fd;--presence-edge:#d3e0f4}
#app .app-presence-never{--presence-tone:#806029;--presence-tint:#fbf6eb;--presence-edge:#eaddbf}
#app .app-presence-unknown{--presence-tone:#667085;--presence-tint:#f7f8fa;--presence-edge:#e1e5eb}
#app .app-presence-stat>span>i,#app .app-presence-badge>i{display:inline-block;flex:0 0 7px;width:7px;height:7px;border-radius:50%;background:var(--presence-tone);color:var(--presence-tone)}
#app .app-presence-entered>span>i,#app .app-presence-never>span>i,#app .app-presence-badge.app-presence-entered>i,#app .app-presence-badge.app-presence-never>i{border:1.5px solid currentColor;border-radius:2px;background:transparent}
#app .app-presence-badge.app-presence-unknown>i{border:1.5px solid currentColor;background:transparent}

#app td.app-presence-cell{min-width:145px;max-width:265px;vertical-align:middle}
#app .app-presence-badge{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:4px 9px;border:1px solid var(--presence-edge);border-radius:8px;background:var(--presence-tint);color:var(--presence-tone);font-size:11px;font-weight:650;line-height:1.6;white-space:normal;overflow-wrap:anywhere}
#app .app-presence-cell>small{margin-top:5px;color:#6b788a;font-size:10px;font-weight:400;line-height:1.7;unicode-bidi:plaintext}
#app td.app-presence-na{color:#98a2b1;text-align:center}

@media(max-width:760px){
  #app .app-presence-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:480px){
  #app .app-presence-panel{padding:13px;border-radius:13px}
  #app .app-presence-heading{flex-wrap:wrap;gap:9px;margin-bottom:12px}
  #app .app-presence-heading h3{font-size:14px}
  #app .app-presence-heading p{font-size:11px}
  #app .app-presence-stats{gap:8px}
  #app .app-presence-panel .app-presence-stats>button.app-presence-stat[aria-pressed]{min-height:132px;padding:12px 10px;gap:7px}
  #app .app-presence-stat>span{font-size:11px;gap:6px}
  #app .app-presence-stat>strong{font-size:28px}
  #app .app-presence-stat>small,#app .app-presence-explainer{font-size:10px}
}
@media(prefers-reduced-motion:reduce){
  #app .app-presence-stat{transition:none}
}

/* Map points stay compact; only the selected point reveals its name. */
#app .rm-map .rm-marker,
#app .rm-map .rm-marker:hover,
#app .rm-map .rm-marker:focus,
#app .rm-map .rm-marker.rm-guide,
#app .rm-map .rm-marker.rm-far,
#app .rm-map .rm-marker.rm-old {
  --rm-color:#124aa0;
  display:flex;align-items:center;justify-content:center;
  width:44px;height:44px;min-width:44px;min-height:44px;max-width:44px;
  transform:translate(-50%,-50%);padding:0;margin:0;
  border:0;border-radius:50%;background:transparent;color:var(--rm-color);
  box-shadow:none;overflow:visible;opacity:1;z-index:2;
}
#app .rm-map .rm-marker.rm-guide{--rm-color:#198754}
#app .rm-map .rm-marker.rm-far{--rm-color:#bd263c}
#app .rm-map .rm-marker[hidden],#app .rm-map .rm-point-name[hidden]{display:none}
#app .rm-map .rm-dot{display:block;box-sizing:border-box;width:16px;height:16px;border:2px solid #fff;border-radius:50%;background:var(--rm-color);box-shadow:0 2px 6px #152b4166;pointer-events:none}
#app .rm-map .rm-marker.rm-old .rm-dot{outline:2px dashed #a98b45;outline-offset:2px;opacity:.8}
#app .rm-map .rm-marker[aria-pressed="true"]{z-index:11}
#app .rm-map .rm-marker[aria-pressed="true"] .rm-dot{box-shadow:0 0 0 4px #ffffffce,0 2px 8px #152b4170}
#app .rm-map .rm-marker:focus-visible{outline:2px solid #2457a9;outline-offset:-2px;z-index:11}
#app .rm-map .rm-point-name{position:absolute;z-index:12;pointer-events:none;box-sizing:border-box;max-width:min(280px,calc(100% - 16px));transform:translateX(-50%);padding:8px 12px;background:#fff;color:#162f51;border:1px solid #cfdae7;border-radius:12px;box-shadow:0 3px 14px #17385826;font-size:14px;line-height:1.5;font-weight:700;text-align:center;white-space:normal;overflow-wrap:anywhere}
