/* LEXLEGAL shared interface: questionnaire, staff workspace and client portal. */
:root{--ui-blue:#278df0;--ui-green:#24bf86;--ui-radius:12px;--ui-card:20px;--ui-line:#dce7ee;--ui-surface:#fff;--ui-soft:#f3f7fa;--ui-ink:#263c4a;--ui-muted:#698294;--ui-ease:cubic-bezier(.22,.8,.25,1)}
html[data-desktop-theme="dark"]{--ui-line:#35434e;--ui-surface:#202a32;--ui-soft:#26333d;--ui-ink:#e3ecf2;--ui-muted:#a1b4c2}
:root body :is(.btn,.tab,.back,.text-button,.rg-text-button,.nav button,.admin-tabs button,.fin-quick button,.fin-categories button,.rg-case-tabs button,.rg-wizard-nav button,.demo-select-trigger,.demo-okved-category,.demo-okved-example,.demo-tax-card,.tg-private,.tg-room,.team-room){border-radius:var(--ui-radius)!important}
:root body :is(.btn,.tab,.back,.text-button,.rg-text-button){min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:1.35;transition:background-color .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease;box-shadow:none}
:root body :is(.btn,.tab,.back):focus-visible{outline:3px solid #9acbfa;outline-offset:3px}
:root body :is(.btn,.tab,.back):active{transform:scale(.985);filter:none}
:root body :is(.btn,.tab):disabled{transform:none;cursor:default}
:root body :is(.admin-ui,.admin-dialog,.rg-redesign) .btn.blue{background:var(--ui-blue);border-color:transparent;color:#fff}
:root body :is(.panel,.admin-item,.admin-order,.ref-client,.fin-period,.fin-records,.fin-kpi,.crm-record,.au-card,.rg-hero,.rg-next-card,.rg-shortcuts>button,.rg-upload-card,.rg-case-row){border-radius:var(--ui-card)!important;box-shadow:none}
:root body :is(.admin-ui,.admin-dialog){--adm-radius:20px;--adm-panel:24px;--adm-line:var(--ui-line);--adm-surface:var(--ui-surface);--adm-subtle:var(--ui-soft);--adm-ink:var(--ui-ink);--adm-muted:var(--ui-muted)}
:root body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),textarea,select,.demo-select-trigger){border-radius:12px!important}
:root body :is(input[type="text"],input[type="search"],input[type="email"],input[type="tel"],input[type="number"],select){min-height:44px}
:root body :is(.month-control,.day-control,.date-control){border-radius:12px!important}
:root body :is(.admin-tabs,.rg-chat-tabs){gap:8px;margin-bottom:20px}
:root body .admin-tabs .tab{border-color:transparent;background:var(--ui-soft);color:var(--ui-muted);font-size:14px;font-weight:500;padding:10px 14px}
:root body .admin-tabs .tab.active{background:#e7f2fe;color:#227dcb;border-color:transparent}
:root body :is(.main,.admin-dialog) :is(h1,h2,h3){letter-spacing:-.025em}
:root body .admin-ui .page-heading{margin:0 0 22px}
:root body .admin-ui .section-title{margin-top:0;gap:16px}
:root body .admin-ui :is(.admin-list,.admin-orders){gap:12px}
:root body .admin-ui :is(.admin-item,.admin-order){padding:20px}
:root body .admin-ui :is(.actions,.fin-actions,.fin-row-actions){gap:8px;flex-wrap:wrap}
:root body .fin-table-wrap{border-radius:16px;border:1px solid var(--ui-line);overflow:auto}
:root body .fin-table :is(th,td){padding:14px 16px}
:root body .fin-table th{font-size:12px;letter-spacing:.02em;background:var(--ui-soft)}
:root body :is(.fin-filters,.crm-filters,.au-filters,.admin-order-filters){gap:12px}
:root body .nav-lens{border-radius:12px!important;box-shadow:none;border:0}
:root body .nav button{min-height:44px;transition:background .18s,color .18s;transform:none!important}
:root body .nav button.active{color:#258565}
:root body .nav-lens{background:#e8f7ef}
:root body .ui-symbol{width:20px;height:20px;flex-shrink:0;vertical-align:middle}
:root body :is(.btn,.back) .ui-inline-symbol{display:inline-flex;align-items:center;flex-shrink:0}
@media(hover:hover){:root body :is(.btn:not(.blue),.tab,.back,.text-button,.rg-text-button):not(:disabled):hover{background:#eaf3fe;color:#257fc7;transform:none}:root body .btn.blue:not(:disabled):hover{background:#167bde;box-shadow:0 4px 12px #278df025}:root body .nav button:not(.active):hover{background:#eaf3fe;color:#257fc7}:root body .nav button.active:hover{background:#e0f3e9;color:#258565}:root body :is(.btn,.back):hover .ui-inline-symbol{translate:2px 0}.ui-inline-symbol{transition:translate .2s var(--ui-ease)}}
/* One checkbox treatment in every form. Native semantics and keyboard behavior stay intact. */
:root body input[type="checkbox"]{appearance:none!important;-webkit-appearance:none!important;display:inline-block!important;flex:0 0 22px!important;width:22px!important;height:22px!important;min-height:22px!important;max-height:22px!important;margin:2px 0 0!important;padding:0!important;border:2px solid #b5cbd8!important;border-radius:6px!important;background:var(--ui-surface)!important;cursor:pointer;vertical-align:top;transition:background .16s,border-color .16s,box-shadow .16s}
:root body input[type="checkbox"]:checked{border-color:var(--ui-green)!important;background:var(--ui-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E") center/17px no-repeat!important}
:root body input[type="checkbox"]:indeterminate{background:var(--ui-green) linear-gradient(white,white) center/11px 2px no-repeat!important;border-color:var(--ui-green)!important}
:root body input[type="checkbox"]:focus-visible{outline:3px solid #a8d4ff;outline-offset:3px}
:root body input[type="checkbox"]:disabled{opacity:.5;cursor:default}
:root body label.check{display:flex;align-items:flex-start;gap:12px;min-height:44px;line-height:1.55;cursor:pointer}
:root body label.check>span:not(.rg-field-help){min-width:0;white-space:normal}
/* Native customizable select: anchored picker, no document reflow, full keyboard support. */
@supports (appearance:base-select){
 :root body select:not([multiple]):not([size]),:root body select:not([multiple]):not([size])::picker(select){appearance:base-select!important}
 :root body select:not([multiple]):not([size]){background-image:none!important;padding:11px 14px!important;align-items:center}
 :root body select::picker-icon{color:var(--ui-muted);transition:rotate .18s}
 :root body select:open::picker-icon{rotate:180deg}
 :root body select::picker(select){border:1px solid var(--ui-line);border-radius:14px;background:var(--ui-surface);color:var(--ui-ink);padding:6px;box-shadow:0 12px 36px #233c5220;max-height:min(360px,50dvh);overflow-y:auto;opacity:0;transition:opacity .16s,display .16s allow-discrete,overlay .16s allow-discrete}
 :root body select:open::picker(select){opacity:1}
 @starting-style{:root body select:open::picker(select){opacity:0}}
 :root body select option{padding:11px 12px;border-radius:9px;min-height:40px;white-space:normal;line-height:1.45}
 :root body select option:checked{background:#e8f7ef;color:#20825e}
 :root body select option:hover,:root body select option:focus{background:#eaf3fe;color:#257fc7;outline:none}
 :root body select option::checkmark{color:#24a878}
}
/* Compact case heading: controls share one row, no oversized utility area. */
:root body .rg-case-top{display:flex!important;align-items:center!important;justify-content:flex-end!important;min-height:40px!important;height:auto!important;gap:8px!important;margin:0 0 12px!important;padding:0!important}
:root body .rg-case-top .back{margin:0 auto 0 0!important;padding:8px 0;min-height:40px}
:root body .rg-case-top :is(.rg-sound-toggle,#rg-refresh-case){margin:0!important;width:40px;min-height:40px;padding:10px;border-radius:10px!important;background:var(--ui-soft)}
:root body .rg-case-title{margin-bottom:18px!important}
:root body .rg-case-title h2{font-size:clamp(24px,2.2vw,30px);margin-top:6px}
:root body .rg-hero{padding:24px!important;background:var(--ui-surface);gap:20px}
:root body .rg-hero h2{font-size:25px;margin:0 0 10px}
:root body .rg-hero p{font-size:14px;max-width:760px;line-height:1.6}
:root body .rg-hero-bottom{margin-top:16px;gap:18px}
:root body .rg-hero-seal{width:52px;height:52px;border-radius:14px;transform:none;box-shadow:none;background:#e8f7ef}
:root body .rg-hero-seal svg{width:26px;height:26px}
:root body .rg-phase-strip{margin:18px 0;gap:14px}
:root body .rg-phase-strip .passed i{background:var(--ui-green);color:#fff}
:root body .rg-case-tabs{padding:4px;border-radius:14px;margin-bottom:20px}
:root body .rg-case-tabs button{padding:11px 14px;min-height:42px}
:root body .rg-next-card{padding:22px;align-items:center;gap:16px}
:root body .rg-next-card h3{font-size:20px;margin:0}
:root body .rg-next-card p{display:none}
:root body .rg-shortcuts{gap:14px;margin-top:16px}
:root body .rg-shortcuts>button{padding:20px}
:root body .rg-chat-header p,:root body .rg-chat-note{display:none}
:root body .rg-section-heading p{display:none}
:root body .rg-chat-page{border-radius:20px;border:1px solid var(--ui-line);overflow:hidden}
:root body .rg-chat-header{padding:18px 20px}
:root body .rg-compose textarea{border-radius:12px!important}
:root body .rg-chat-page .rg-messages{height:clamp(280px,48dvh,560px);min-height:0;padding:20px}
:root body .tg-layout{border:1px solid var(--ui-line);border-radius:20px;overflow:hidden;box-shadow:none}
:root body .tg-directory{border-right:1px solid var(--ui-line)}
:root body .tg-room{margin:4px 8px;padding:12px}
:root body .tg-search{border-radius:12px!important}
:root body .tg-chat-header{box-shadow:none;border-bottom:1px solid var(--ui-line)}
:root body :is(.tg-send,.tg-attach-button,.rg-attach){border-radius:12px!important}
:root body .tg-bubble{border-radius:16px 16px 16px 5px;box-shadow:none}
:root body .tg-bubble.outgoing{border-radius:16px 16px 5px 16px}
/* A single restrained entrance; avoid stacked CSS + WAAPI and delayed hidden cards. */
:root body:not(.main-motion) dialog[open]{animation:none!important}
:root body dialog[open]{border-radius:22px!important;border:1px solid var(--ui-line);box-shadow:0 24px 80px #102d4530}
:root body dialog::backdrop{background:#263e5260;backdrop-filter:blur(5px)}
:root body :is(.admin-ui .xp-enter-pending,.rg-redesign .xp-enter-pending){opacity:1!important}
:root body :is(.admin-item,.admin-order,.rg-case-content>[data-rg-panel],.fin-kpi,.order){animation:none!important}
:root body .close{display:grid;place-items:center;width:40px;height:40px;min-width:40px;border-radius:11px!important;background:var(--ui-soft);color:var(--ui-muted)}
:root body .modal-top{align-items:center;gap:20px;margin-bottom:24px}
:root body .modal-top h2{font-size:24px;line-height:1.25}
:root body .modal-top .ui-symbol{width:22px;height:22px}
@media(max-width:760px){
 :root body :is(.btn,.tab,.back,.rg-text-button){min-height:44px}
 :root body :is(.admin-ui,.admin-dialog){--adm-panel:18px;--adm-radius:18px}
 :root body .admin-ui :is(.admin-item,.admin-order){padding:16px}
 :root body .admin-tabs{flex-wrap:nowrap;overflow-x:auto;padding:0 0 6px;scrollbar-width:none;max-width:100%}
 :root body .admin-tabs .tab{flex-shrink:0;padding:10px 13px;font-size:13px}
 :root body .admin-ui .section-title{flex-wrap:wrap;gap:12px;margin-bottom:16px}
 :root body .admin-ui .page-heading{margin-bottom:18px}
 :root body .rg-case-top{margin-bottom:10px!important}
 :root body .rg-case-title h2{font-size:25px}
 :root body .rg-hero{padding:20px!important}
 :root body .rg-hero h2{font-size:23px}
 :root body .rg-phase-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 6px;overflow:visible}
 :root body .rg-phase-strip>span{white-space:normal;font-size:11px;line-height:1.4;align-items:flex-start}
 :root body .rg-phase-strip i{flex-shrink:0}
 :root body .rg-next-card{padding:18px;align-items:stretch}
 :root body .rg-next-card .btn{width:100%}
 :root body .rg-shortcuts>button{padding:16px}
 :root body .tg-layout{border-radius:16px}
 :root body dialog[open]{width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:20px;border-radius:20px!important}
 :root body .modal-top h2{font-size:22px}
 :root body .rg-chat-page .rg-messages{height:45dvh;padding:14px}
}
html[data-desktop-theme="dark"] body :is(.nav-lens,.admin-tabs .tab.active){background:#234638;color:#8ce0bd}
html[data-desktop-theme="dark"] body .rg-hero-seal{background:#234638}
html[data-desktop-theme="dark"] body :is(.btn:not(.blue),.tab,.back,.text-button,.rg-text-button):hover{background:#253e53;color:#a9d5ff}
@media(prefers-reduced-motion:reduce){:root body *{scroll-behavior:auto!important}:root body :is(button,a,input,select,dialog,.ui-inline-symbol){transition:none!important;animation:none!important}}
:root body .rg-case-top svg{width:20px;height:20px;flex-shrink:0}
:root body .rg-case-top .rg-sound-toggle[aria-pressed="true"]{background:#e8f7ef;color:#258565}
:root body .rg-redesign .rg-case-top .back{white-space:normal;text-align:left;justify-content:flex-start}
:root body .nav button.admin-nav:not(.active){background:transparent;color:var(--ui-muted)}
:root body .fin-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
:root body .fin-heading .page-heading{margin:0}
:root body .month-control{min-width:220px}
:root body .month-control .year-part{min-width:96px!important;flex:0 0 96px!important;width:96px!important;border-radius:0!important}
:root body .month-control .month-part{flex:1;min-width:0;border-radius:0!important}
:root body input[type="file"]::file-selector-button{font:inherit;color:#257fc7;background:#e7f2fe;border:0;border-radius:8px;padding:8px 12px;margin-right:12px;cursor:pointer}
/* Notification opt-in stays available without repeating a banner on every page. */
:root body .top-right .web-push-panel{position:relative;display:block;flex:0 0 auto;margin:0;padding:0;background:none;border:0;box-shadow:none}
:root body .top-right .web-push-panel>div{display:none;position:absolute;right:0;top:calc(100% + 10px);z-index:20;width:250px;padding:14px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-surface);box-shadow:0 8px 25px #203c5220}
:root body .top-right .web-push-panel>div strong{display:none}
:root body .top-right .web-push-panel>div p{font-size:13px;line-height:1.55;margin:0;color:var(--ui-muted)}
:root body .top-right .web-push-panel:focus-within>div{display:block}
:root body .top-right #web-push-button{width:40px;min-width:40px;height:40px;padding:10px!important;min-height:40px;font-size:0!important;background:var(--ui-soft)!important;color:var(--ui-muted);border-radius:12px!important}
:root body .top-right #web-push-button:before{content:'';width:20px;height:20px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9M10 21h4'/%3E%3C/svg%3E") center/contain no-repeat}
@media(hover:hover){:root body .top-right .web-push-panel:hover>div{display:block}}
@media(max-width:760px){:root body .fin-heading{align-items:flex-start;flex-wrap:wrap}:root body .month-control{min-width:0}:root body .top-right #web-push-button{width:36px;min-width:36px;height:36px;min-height:36px}}
:root body .nav-lens{display:none!important}
:root body .nav button.active{background:#e8f7ef!important;color:#258565!important}
:root body .nav button{position:relative;padding-right:26px}
:root body .nav button:after{content:'';position:absolute;right:10px;top:50%;width:16px;height:16px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16m-7-7 7 7-7 7'/%3E%3C/svg%3E") center/contain;opacity:0;transform:translate(-5px,-50%);transition:opacity .18s,transform .18s}
@media(hover:hover) and (min-width:951px){:root body .nav button:hover:after{opacity:1;transform:translate(0,-50%)}}
:root body .tg-dialog{background:var(--ui-soft);font-family:inherit}
:root body .tg-dialog:before{display:none}
:root body .tg-bubble{background:var(--ui-surface)}
:root body .tg-bubble.outgoing{background:#e5f2ff;color:#263c4a}
:root body .tg-dialog-empty span{background:transparent;color:var(--ui-muted);font-size:14px}
:root body .tg-composer{background:var(--ui-surface);border-color:var(--ui-line);padding:12px}
:root body .tg-chat-header{background:var(--ui-surface)}
:root body .tg-list-header>span{display:none}
:root body .tg-send{width:40px;height:40px;border-radius:12px!important;background:var(--ui-blue)}
:root body .crm>.section-title>div>p{font-size:12px}
html[data-desktop-theme="dark"] body .nav button.active{background:#234638!important;color:#8ce0bd!important}
html[data-desktop-theme="dark"] body .tg-bubble.outgoing{background:#24425c;color:#e3ecf2}
:root body .rg-case-title>.rg-case-top{margin:0!important;flex:0 0 auto}
:root body .rg-case-title>div:first-child{min-width:0}
:root body .rg-case-title{gap:14px;align-items:center}
:root body :is(#inbox-back,#rg-back){margin:0 0 14px;min-height:40px}
:root body .rg-case-title+.rg-hero{margin-top:0}
:root body .inbox-service{border-radius:18px!important}
:root body .inbox-service small{display:none}
:root body .top-right #web-push-button:before{flex:0 0 20px}
:root body .nav{border-radius:20px!important}
@media(max-width:950px){
 :root body .nav button{padding-right:2px!important}
 :root body.messenger-dialog-open #main>.rg-chat-tabs{display:none!important}
 :root body.messenger-dialog-open #main,:root body.messenger-dialog-open #messenger-root{height:var(--chat-height,100dvh)!important;min-height:0;overflow:hidden}
 :root body.messenger-dialog-open .tg-layout{height:var(--chat-height,100dvh)!important;min-height:0;border:0;border-radius:0!important}
 :root body.messenger-dialog-open .tg-composer{padding-bottom:calc(10px + var(--app-safe-bottom))}
}
@supports(transition-behavior:allow-discrete){
 :root body dialog{opacity:0;transition:opacity .18s ease,display .18s allow-discrete,overlay .18s allow-discrete}
 :root body dialog[open]{opacity:1}
 :root body dialog::backdrop{opacity:0;transition:opacity .18s ease,display .18s allow-discrete,overlay .18s allow-discrete}
 :root body dialog[open]::backdrop{opacity:1}
 @starting-style{:root body dialog[open]::backdrop{opacity:0}}
}
@media(max-width:760px){
 :root body .fin-period{padding:16px!important}
 :root body .fin-quick{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;padding-bottom:4px;margin-bottom:14px;scrollbar-width:none}
 :root body .fin-quick button{flex-shrink:0;min-height:38px;padding:8px 11px;font-size:12px}
 :root body .fin-dates{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
 :root body .fin-dates>label{min-width:0;width:auto}
 :root body .fin-dates .date-control{width:100%;min-width:0}
 :root body .fin-dates .date-entry{padding-left:10px!important;font-size:14px!important;min-width:0}
 :root body .fin-dates>.month-control{display:none}
 :root body #fin-apply{grid-column:1/-1;width:100%;margin:0}
 :root body .fin-kpis{gap:10px}
}
@media(max-width:760px){
 :root body .finance .fin-dates{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:12px!important}
 :root body .finance .fin-dates>.month-control{display:none!important}
 :root body .finance .fin-dates>label{flex:initial!important;grid-column:auto!important;min-width:0!important}
 :root body .finance .fin-dates #fin-apply{grid-column:1/-1!important;order:3!important}
}
:root body .icon svg{stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html:root body button:not(.avatar):not(.desktop-theme-toggle):not([data-day]):where(:not(.catalog-category)){border-radius:12px!important}
html:root body .nav{border-radius:20px!important}
html:root.desktop-client body :is(.btn,.tab,.back,.rg-case-tabs button,.admin-tabs button){border-radius:12px!important}
html:root.desktop-client body .nav button{border-radius:12px!important}
@media(min-width:761px){
 html:root body .finance .fin-heading{flex-wrap:nowrap!important;align-items:center!important}
 html:root body .finance .fin-heading>.page-heading{min-width:0;margin:0!important}
 html:root body .finance .fin-heading>.fin-actions{width:auto!important;flex:0 0 auto!important;margin:0!important}
}
:root body .fin-kpi small:empty{display:none}
:root body #main:has(.rg-redesign)>.cp-cabinet-tabs,:root body #main:has(.rg-redesign)>.rg-chat-tabs{display:none!important}
:root body .rg-next-action-only>div{display:none}
:root body .rg-next-action-only{justify-content:flex-end}
/* One real SVG library, including navigation, controls, statuses and attachments. */
svg.brand-icon{display:inline-block;width:20px;height:20px;flex:0 0 auto;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
:root body .icon>svg.brand-icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}
:root body .ui-inline-symbol{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;line-height:1;flex-shrink:0}
:root body .ui-inline-symbol svg{width:18px;height:18px}
:root body :is(.mini-symbol,.cp-symbol,.rg-shortcut-icon,.rg-intake-symbol)>.brand-icon{width:24px;height:24px}
:root body .promo-gift>.brand-icon{width:72px;height:72px}
:root body .social-icon>.brand-icon{width:24px;height:24px;fill:none;stroke:currentColor}
:root body :is(.tg-room-bottom,.tg-attachment,.tg-file-icon) .brand-icon{width:16px;height:16px}
:root body .success-mark>.brand-icon{width:64px;height:64px}
:root body .xp-plane>.brand-icon{width:100%;height:100%}
:root body :is(.offer-includes,.check-list) li:before{content:''!important;display:inline-block;width:18px;height:18px;margin-right:10px;vertical-align:middle;background:currentColor;mask:url('/assets/icons/lucide/check.svg') center/contain no-repeat;flex-shrink:0}
/* The corner radius is shared by the visible surfaces, not just their buttons. */
:root{--ui-card:12px}
html:root body :is(.search-wrap,.tg-search,.service,.service-mini,.grant-banner,.promo-card,.offer-intro,.complex-intro,.offer-plan,.offer-info,.offer-subscription,.cp-subscription,.cp-final,.grant-package,.ref-banner,.ref-hero,.contact-card,.order,.admin-order,.ref-client,.panel,.empty,.fin-kpi,.inbox-service,.rg-case-row,.rg-hero,.rg-next-card,.rg-shortcuts>button,.crm-record,.sc-summary>article,.au-filters){border-radius:var(--ui-radius)!important}
html:root body :is(input[type="text"],input[type="search"],input[type="email"],input[type="password"],input[type="tel"],input[type="number"],input[type="url"],textarea){box-sizing:border-box;appearance:none;-webkit-appearance:none;border:1px solid var(--ui-line);background:var(--ui-soft);color:var(--ui-ink);font:inherit;font-size:15px;padding:12px 14px;min-width:0;max-width:100%;border-radius:var(--ui-radius)!important;outline:none;transition:border-color .16s,box-shadow .16s}
html:root body :is(input[type="text"],input[type="search"],input[type="email"],input[type="password"],input[type="tel"],input[type="number"],input[type="url"],textarea):focus{border-color:#7cb9f1;box-shadow:0 0 0 3px #278df018;outline:none}
html:root body :is(.inbox-search-panel,.au-filters,.crm-filters,.fin-filters) input{border:1px solid var(--ui-line)!important;background:var(--ui-surface)!important;padding:12px 14px!important;border-radius:12px!important;min-height:46px}
html:root body :is(.inbox-search-panel,.au-filters,.crm-filters,.fin-filters) input:focus{border-color:#7cb9f1!important;box-shadow:0 0 0 3px #278df018!important}
html:root body .search-wrap{display:flex;align-items:center;gap:12px;min-height:48px;padding:0 14px!important;border:1px solid var(--ui-line)!important;background:var(--ui-surface)!important;box-shadow:none}
html:root body .search-wrap:focus-within{border-color:#7cb9f1!important;box-shadow:0 0 0 3px #278df018}
html:root body .search-wrap>.icon{position:static!important;transform:none!important;width:20px;height:20px;color:var(--ui-muted);flex-shrink:0}
html:root body .search-wrap>input.search{flex:1;width:100%;padding:12px 0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;min-height:46px;outline:none!important}
html:root body .tg-search input{border:0!important;background:transparent!important;padding:0!important;box-shadow:none!important;min-height:36px}
@media(max-width:760px){html:root body :is(input[type="text"],input[type="search"],input[type="email"],input[type="password"],input[type="tel"],input[type="number"],input[type="url"],textarea){font-size:16px}}
html:root body .xp-enter-pending{opacity:1!important}
html:root body .search-wrap{animation:none!important;transform:none!important}
html:root body :is(.mini-symbol,.social-icon,.rg-client-initial,.rg-chat-avatar,.tg-avatar,.demo-person-avatar){border-radius:12px!important}
html:root body :is(.grant-audience,.promo-badge,.cp-pill,.cp-intro-tags>span,.status,.rg-stage-badge,.source-tag){border-radius:8px!important}
html:root body :is(.grant-arrow,.mini-arrow,.feature-cta,.promo-gift){border-radius:12px!important}

html:root body .top-right #web-push-button:before{mask-image:url('/assets/icons/lucide/bell.svg')}
html:root body .nav button:after{mask-image:url('/assets/icons/lucide/arrow-right.svg')}
html:root body input[type="checkbox"]:checked{background-image:url("data:image/svg+xml,%3C%21--%20%40license%20lucide-static%20v1.80.0%20-%20ISC%20--%3E%0A%3Csvg%0A%20%20class%3D%22lucide%20lucide-check%22%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22white%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Cpath%20d%3D%22M20%206%209%2017l-5-5%22%20%2F%3E%0A%3C%2Fsvg%3E%0A")!important}
html:root body input[type="radio"]{accent-color:var(--ui-green);width:20px;height:20px;flex-shrink:0;vertical-align:middle}
html:root body svg.brand-icon{fill:none!important;stroke:currentColor;stroke-width:1.8!important;stroke-linecap:round;stroke-linejoin:round}
html:root body input[type="search"]::-webkit-search-cancel-button{-webkit-appearance:none;width:16px;height:16px;cursor:pointer;background:var(--ui-muted);mask:url('/assets/icons/lucide/x.svg') center/contain no-repeat}

html:root body select:not([multiple]):not([size]){background-image:url("data:image/svg+xml,%3C%21--%20%40license%20lucide-static%20v1.80.0%20-%20ISC%20--%3E%0A%3Csvg%0A%20%20class%3D%22lucide%20lucide-chevron-down%22%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22%23698294%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Cpath%20d%3D%22m6%209%206%206%206-6%22%20%2F%3E%0A%3C%2Fsvg%3E%0A")!important}
@supports(appearance:base-select){html:root body select:not([multiple]):not([size]){background-image:none!important}html:root body select::picker-icon{content:"";display:block;width:18px;height:18px;background:currentColor;mask:url('/assets/icons/lucide/chevron-down.svg') center/contain no-repeat;flex-shrink:0}}
@media(max-width:760px){html:root body .finance .fin-dates .date-entry{font-size:16px!important}}
@media(max-width:350px){html:root body .finance .fin-dates{grid-template-columns:minmax(0,1fr)!important}}
html:root body :is(.fin-balance,.fin-warning,.fin-table-wrap,.fin-empty,.au-row,.team-person,.team-layout,.crm-summary,.crm-calendar,.crm-list,.cp-stage,.cp-stat,.cp-task,.cp-instructions,.notice,.web-account,.rg-upload-card,.rg-file-grid,.demo-person-card,.demo-file-row,.demo-file-upload,.demo-select-options,.demo-okved-selection,.demo-okved-results,.demo-tax-card,.date-calendar){border-radius:12px!important}
html:root body :is(.team-grants span,.fin-badge,.cp-phase-badge,.tag,.preview){border-radius:6px!important}
html:root body :is(.nav,dialog[open],.rg-consent-gate,.demo-person-dialog){border-radius:12px!important}
html:root body :is(.rg-intake-symbol,.rg-task-icon,.rg-phase-strip i) .ui-inline-symbol svg{width:20px;height:20px}
html:root body :is(.rg-file,.rg-message-file,.tg-file)>.brand-icon{width:20px;height:20px}
html:root body .tg-sent .brand-icon{width:12px;height:12px}
html:root body input[type="number"]{-moz-appearance:textfield}
html:root body input[type="number"]::-webkit-inner-spin-button,html:root body input[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
html:root body .tg-room{width:calc(100% - 16px)!important;max-width:calc(100% - 16px)!important}
html:root body :is(.service-mini,.grant-banner):hover{transform:none!important}
@media(hover:hover){html:root body :is(.service-mini,.grant-banner):hover .mini-arrow,html:root body .grant-banner:hover .grant-arrow{translate:2px -2px;transition:translate .18s ease}}
.manager-label-short{display:none}
@media(max-width:600px){
 html:root body .top-right{gap:8px}
 html:root body .top-right .manager-contact{font-size:13px!important;padding:10px 12px!important;min-height:44px}
 .manager-label-full{display:none}.manager-label-short{display:inline}
 html:root body .top-right #web-push-button{width:40px;height:44px;min-height:44px}
 html:root body .avatar{width:40px;height:44px;border-radius:12px!important}
 html:root body :is(.tg-send,.tg-attach-button){width:44px;height:44px;min-height:44px;flex:0 0 44px}
 html:root body .demo-file-remove{min-width:44px;min-height:44px}
}
html:root[data-desktop-theme="dark"] body :is(.btn.active,.tab.active,.rg-case-tabs button.active,.admin-tabs button.active){background:#234638!important;color:#a8ebc9!important;border-color:#3d7059!important}
@supports(appearance:base-select){
 html:root[data-desktop-theme="dark"] body select::picker(select){background:#202a32!important;color:#e3ecf2!important}
 html:root[data-desktop-theme="dark"] body select option:checked{background:#244a3c!important;color:#aeedcf!important}
 html:root[data-desktop-theme="dark"] body select option:hover,html:root[data-desktop-theme="dark"] body select option:focus{background:#2b4356!important;color:#d4edff!important}
}
@media(max-width:950px){
 html:root body.messenger-dialog-open #main,html:root body.messenger-dialog-open #messenger-root,html:root body.messenger-dialog-open .tg-layout{height:min(var(--chat-height,100dvh),100dvh)!important}
}

html:root body :is(.inbox-search-panel,.au-filters,.crm-filters,.admin-order-filters,.fin-filters,.sc-filters) input[type="search"],html:root body #sc-search{background-image:url("data:image/svg+xml,%3C%21--%20%40license%20lucide-static%20v1.80.0%20-%20ISC%20--%3E%0A%3Csvg%0A%20%20class%3D%22lucide%20lucide-search%22%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22%23698294%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Cpath%20d%3D%22m21%2021-4.34-4.34%22%20%2F%3E%0A%20%20%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228%22%20%2F%3E%0A%3C%2Fsvg%3E%0A")!important;background-repeat:no-repeat!important;background-position:14px center!important;background-size:18px 18px!important;padding-left:42px!important}

html:root body svg.brand-icon{stroke-width:2!important}
html:root body select:not([multiple]):not([size]){border:1px solid var(--ui-line)!important;background-color:var(--ui-soft)!important;color:var(--ui-ink)!important;font:inherit;font-size:14px;min-height:44px;box-shadow:none}
html:root body select:not([multiple]):not([size]):focus-visible{border-color:#7cb9f1!important;box-shadow:0 0 0 3px #278df018;outline:none}
html:root body .inbox-service-page>#inbox-services-back{margin:0 0 12px!important}
html:root body .inbox-service-page>.section-title{margin:0 0 16px!important}
html:root body .inbox-search-panel{display:grid;gap:16px;padding:20px!important;margin:0 0 20px!important}
html:root body .inbox-search-panel>.section-title.compact{margin:0!important;min-height:36px}
html:root body .inbox-search-filters{gap:12px}
html:root body .inbox-orders .rg-case-row{margin:12px 0!important}
html:root body .panel>.section-title:first-child{margin-top:0!important}
html:root body :is(.cp-guide-icon,.cp-client-note){border-radius:12px!important}
html:root body .cp-status{border-radius:6px!important}
html:root body .cp-stage .cp-phase-badge{display:none}
/* Service inbox: semantic counts and calm, equally sized service cards. */
html:root body .inbox-hub-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:4px 0 22px}
html:root body .inbox-hub-heading h2{font-size:26px;line-height:1.25;margin:0}
html:root body .inbox-hub-heading #inbox-refresh{width:42px;padding:10px;flex-shrink:0;background:var(--ui-surface);border:1px solid var(--ui-line);color:var(--ui-muted)}
html:root body .inbox-hub-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:22px}
html:root body .inbox-hub-summary>div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-surface)}
html:root body .inbox-hub-summary span{font-size:13px;line-height:1.4;color:var(--ui-muted)}
html:root body .inbox-hub-summary strong{font-size:28px;font-weight:650;line-height:1;color:#247cc2;font-variant-numeric:tabular-nums}
html:root body .inbox-hub-summary .has-updates{background:#effaf5;border-color:#ccebdc}
html:root body .inbox-hub-summary .has-updates strong{color:#21825e}
html:root body .inbox-hub-filters{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin-bottom:16px;padding-bottom:2px}
html:root body .inbox-hub-filters .btn{flex-shrink:0;padding:10px 14px;background:transparent;color:var(--ui-muted);border:1px solid transparent;font-size:13px}
html:root body .inbox-hub-filters .btn.active{background:#e7f2fe;color:#247cc2}
html:root body .inbox-hub .inbox-services{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0}
html:root body .inbox-hub .inbox-hub-card{display:grid!important;grid-template-columns:42px minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;gap:16px 12px;min-height:148px!important;padding:20px!important;border:1px solid var(--ui-line)!important;border-radius:12px!important;background:var(--ui-surface)!important;color:var(--ui-ink);transform:none!important;box-shadow:none!important;transition:background .18s,border-color .18s}
html:root body .inbox-hub-icon{display:grid;place-items:center;width:42px;height:42px;grid-column:1;grid-row:1;border-radius:11px;background:#edf5fe;color:#2c82c6}
html:root body .inbox-hub-icon .brand-icon{width:23px;height:23px}
html:root body .inbox-hub-card-title{grid-column:2;grid-row:1;font-size:16px;font-weight:600;line-height:1.4;min-width:0;overflow-wrap:anywhere}
html:root body .inbox-hub-total{grid-column:3;grid-row:1/3;display:flex;flex-direction:column;align-items:center;gap:5px;min-width:48px;align-self:center}
html:root body .inbox-hub-total b{font-size:32px;font-weight:650;line-height:1;color:#247cc2!important;font-variant-numeric:tabular-nums}
html:root body .inbox-hub-total>span{font-size:11px;color:var(--ui-muted);line-height:1.3}
html:root body .inbox-hub-card.is-empty .inbox-hub-total b{color:#8da5b5!important}
html:root body .inbox-hub-card.is-empty .inbox-hub-icon{background:var(--ui-soft);color:#8da5b5}
html:root body .inbox-hub-state{grid-column:1/3;grid-row:2;min-width:0}
html:root body .inbox-hub-state>span{display:inline-flex;align-items:center;gap:6px;font-size:12px;line-height:1.4;color:var(--ui-muted)}
html:root body .inbox-hub-state .brand-icon{width:15px;height:15px}
html:root body .inbox-hub-state .inbox-hub-update{color:#21825e;background:#e9f8f0;border-radius:6px;padding:5px 8px}
html:root body .inbox-hub-open{display:none}
html:root body .inbox-hub-card.has-updates{border-color:#bcdfce!important}
html:root body .inbox-hub-empty{grid-column:1/-1;display:grid;justify-items:center;gap:14px;padding:42px 20px;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:12px;text-align:center}
html:root body .inbox-hub-empty>.brand-icon{width:32px;height:32px;color:#25926b}
html:root body .inbox-hub-empty h3{font-size:19px;margin:0}
@media(hover:hover){html:root body .inbox-hub .inbox-hub-card:hover{background:#f5faff!important;border-color:#a9cdeb!important;transform:none!important}html:root body .inbox-hub-card:hover .inbox-hub-icon{background:#e1effd}}
html:root body .inbox-hub-card:focus-visible{outline:3px solid #a8d4ff;outline-offset:3px}
@media(max-width:1150px){html:root body .inbox-hub .inbox-services{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
 html:root body .inbox-hub-heading{margin:4px 0 18px;gap:12px}
 html:root body .inbox-hub-heading h2{font-size:23px}
 html:root body .inbox-hub-summary{gap:8px;margin-bottom:18px}
 html:root body .inbox-hub-summary>div{align-items:flex-start;flex-direction:column;padding:14px 12px;gap:12px}
 html:root body .inbox-hub-summary span{font-size:11px;min-height:30px;min-width:0;overflow-wrap:anywhere}
 html:root body .inbox-hub-summary strong{font-size:26px}
 html:root body .inbox-hub-filters{margin-right:-2px;gap:4px}
 html:root body .inbox-hub-filters .btn{font-size:12px;padding:10px 11px}
 html:root body .inbox-hub .inbox-services{grid-template-columns:minmax(0,1fr);gap:10px}
 html:root body .inbox-hub .inbox-hub-card{min-height:110px!important;padding:16px!important;gap:10px 12px}
 html:root body .inbox-hub-card-title{font-size:15px}
 html:root body .inbox-hub-total b{font-size:28px}
 html:root body .inbox-hub-state{grid-column:2;grid-row:2}
 html:root body .inbox-hub-icon{grid-row:1/3}
 html:root body .inbox-hub-state>span{font-size:11px}
}
html:root[data-desktop-theme="dark"] body .inbox-hub-summary .has-updates{background:#203b30;border-color:#365c49}
html:root[data-desktop-theme="dark"] body .inbox-hub-summary strong,html:root[data-desktop-theme="dark"] body .inbox-hub-total b{color:#91c9fa!important}
html:root[data-desktop-theme="dark"] body .inbox-hub-summary .has-updates strong{color:#9ce4bd!important}
html:root[data-desktop-theme="dark"] body .inbox-hub-icon{background:#253e53;color:#a0d3ff}
html:root[data-desktop-theme="dark"] body .inbox-hub-state .inbox-hub-update{background:#234638;color:#a8ebc9}
html:root[data-desktop-theme="dark"] body .inbox-hub-filters .btn.active{background:#253e53;color:#b4ddff}
@media(hover:hover){html:root[data-desktop-theme="dark"] body .inbox-hub .inbox-hub-card:hover{background:#263640!important;border-color:#567c99!important}}
html:root body .inbox-hub-summary .needs-owner{background:#fff9ee;border-color:#eddfc4}
html:root body .inbox-hub-summary .needs-owner strong{color:#996b24}
html:root body .inbox-hub-card.is-empty .inbox-hub-total b{color:#708b9e!important}
html:root[data-desktop-theme="dark"] body .inbox-hub-summary .needs-owner{background:#3c3323;border-color:#66553a}
html:root[data-desktop-theme="dark"] body .inbox-hub-summary .needs-owner strong{color:#edcc8d!important}
html:root[data-desktop-theme="dark"] body .inbox-hub-card.is-empty .inbox-hub-total b{color:#8da5b5!important}
@media(max-width:380px){
 html:root body .inbox-hub-summary{grid-template-columns:1fr;gap:6px}
 html:root body .inbox-hub-summary>div{flex-direction:row;align-items:center;padding:10px 12px;gap:12px}
 html:root body .inbox-hub-summary span{min-height:0;font-size:12px;overflow-wrap:normal}
 html:root body .inbox-hub-summary strong{font-size:23px}
}
/* Service request list: compact toolbar and readable case rows. */
html:root body .inbox-service-page{max-width:1200px}
html:root body .inbox-service-page>#inbox-services-back{display:inline-flex;align-items:center;gap:8px;margin-bottom:12px!important;font-size:13px}
html:root body .inbox-service-page>.section-title{min-height:42px;margin-bottom:18px!important;align-items:center}
html:root body .inbox-service-page>.section-title h2{font-size:26px;margin:0;color:var(--ui-ink)}
html:root body .inbox-service-page #inbox-refresh{width:42px;height:42px;padding:10px;border:1px solid var(--ui-line);background:var(--ui-surface);color:var(--ui-muted)}
html:root body .inbox-search-panel{padding:16px!important;gap:12px;background:var(--ui-surface);border:1px solid var(--ui-line);margin-bottom:18px!important}
html:root body .inbox-search-panel>label{font-size:0;gap:0}
html:root body .inbox-search-panel #inbox-search{height:46px;min-height:46px;font-size:14px}
html:root body .inbox-search-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
html:root body .inbox-search-filters label{font-size:12px;color:var(--ui-muted);gap:6px}
html:root body .inbox-search-filters select{min-height:40px;font-size:13px}
html:root body .inbox-search-panel>.section-title.compact{min-height:24px;display:flex;justify-content:space-between}
html:root body #inbox-reset{font-size:12px;min-height:28px;padding:4px 8px;background:transparent;color:var(--ui-blue)}
html:root body #inbox-reset[hidden]{display:none!important}
html:root body #inbox-found{font-size:12px;color:var(--ui-muted)}
html:root body .inbox-orders{display:grid;gap:8px}
html:root body .inbox-orders .rg-case-row{display:grid;grid-template-columns:42px minmax(0,1fr) minmax(150px,220px) 20px;align-items:center;gap:14px;margin:0!important;padding:16px!important;min-height:100px;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:12px!important;text-align:left;transition:border-color .18s,background .18s;transform:none!important}
html:root body .inbox-orders .rg-client-initial{width:42px;height:42px;min-width:42px;background:#eaf4fe;color:#287cb7;font-size:17px;border-radius:10px}
html:root body .inbox-orders .rg-case-row>span:nth-child(2){display:grid;justify-items:start;gap:5px;min-width:0}
html:root body .inbox-orders .rg-case-row strong{font-size:15px;line-height:1.4;color:var(--ui-ink)}
html:root body .inbox-orders .rg-case-row small{font-size:12px;line-height:1.4;color:var(--ui-muted);overflow-wrap:anywhere}
html:root body .inbox-orders .rg-stage-badge{font-size:11px;line-height:1.4;padding:4px 7px;border-radius:6px!important;background:#eaf4fe;color:#287cb7;margin:0}
html:root body .inbox-orders .rg-case-meta{display:grid;gap:8px;font-size:12px;color:var(--ui-muted);justify-items:start}
html:root body .inbox-owner,html:root body .inbox-update{display:inline-flex;align-items:center;gap:6px;line-height:1.4}
html:root body .inbox-owner .brand-icon,html:root body .inbox-update .brand-icon{width:14px;height:14px;flex-shrink:0}
html:root body .inbox-owner.is-unassigned{color:#9a722f}
html:root body .inbox-update{color:#21825e;background:#e9f8f0;padding:4px 7px;border-radius:6px;font-size:11px}
html:root body .inbox-row-arrow{color:var(--ui-muted);transition:color .18s,translate .18s}
@media(hover:hover){html:root body .inbox-orders .rg-case-row:hover{background:#f7fbff!important;border-color:#9fc9ed!important}html:root body .inbox-orders .rg-case-row:hover .inbox-row-arrow{color:var(--ui-blue);translate:3px 0}}
@media(max-width:600px){
 html:root body .inbox-service-page>.section-title h2{font-size:23px}
 html:root body .inbox-search-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 html:root body .inbox-search-panel{padding:12px!important}
 html:root body .inbox-orders .rg-case-row{grid-template-columns:36px minmax(0,1fr) 16px;gap:10px;padding:14px!important}
 html:root body .inbox-orders .rg-client-initial{width:36px;height:36px;min-width:36px;align-self:start}
 html:root body .inbox-orders .rg-case-meta{grid-column:2;display:flex;flex-wrap:wrap;gap:8px;font-size:11px}
 html:root body .inbox-row-arrow{grid-column:3;grid-row:1/3}
}
html:root[data-desktop-theme="dark"] body .inbox-update{background:#234638;color:#a8ebc9}
html:root[data-desktop-theme="dark"] body .inbox-orders .rg-stage-badge,html:root[data-desktop-theme="dark"] body .inbox-orders .rg-client-initial{background:#253e53;color:#add6fa}
html:root[data-desktop-theme="dark"] body .inbox-owner.is-unassigned{color:#edcc8d}
@media(hover:hover){html:root[data-desktop-theme="dark"] body .inbox-orders .rg-case-row:hover{background:#263640!important}}
html:root body .inbox-service-page>.section-title{display:flex!important;flex-direction:row!important;justify-content:space-between!important;text-align:left!important;gap:12px}
html:root body .inbox-service-page>.section-title>div{min-width:0}
html:root body .inbox-service-page #inbox-refresh{flex-shrink:0}
html:root body .inbox-orders{grid-template-columns:repeat(2,minmax(0,1fr))}
html:root body .inbox-orders .rg-case-row{grid-template-columns:42px minmax(0,1fr) 20px;gap:12px;min-width:0}
html:root body .inbox-orders .rg-case-meta{grid-column:2;display:flex;flex-wrap:wrap;gap:8px 12px}
html:root body .inbox-orders .inbox-row-arrow{grid-column:3;grid-row:1/3}
html:root body .inbox-orders>.empty{grid-column:1/-1}
@media(max-width:700px){html:root body .inbox-orders{grid-template-columns:minmax(0,1fr)}html:root body .inbox-orders .rg-case-row{grid-template-columns:36px minmax(0,1fr) 16px}}
html:root body .inbox-search-toolbar{display:flex;gap:10px;align-items:center}
html:root body .inbox-search-toolbar>label{flex:1;min-width:0;font-size:0;gap:0}
html:root body .inbox-filter-toggle{flex-shrink:0;gap:7px;height:46px;border:1px solid var(--ui-line);background:var(--ui-soft);font-size:13px}
html:root body .inbox-filter-toggle[aria-expanded="true"]{color:var(--ui-blue);background:#eaf4fe}
html:root body #inbox-filter-fields[hidden]{display:none!important}
html:root body .inbox-orders .rg-case-row{padding:14px!important;gap:8px 12px;min-height:112px}
html:root body .inbox-orders .rg-case-row>span:nth-child(2){gap:3px}
@media(max-width:600px){html:root body .inbox-filter-toggle{font-size:12px;padding:10px}html:root body .inbox-filter-toggle .brand-icon{width:16px;height:16px}}
html:root body .inbox-orders .inbox-stage-icon{display:grid;place-items:center}
html:root body .inbox-orders .inbox-stage-icon .brand-icon{width:22px;height:22px}
html:root body .inbox-orders .inbox-stage-icon.is-complete{background:#24bf86;color:#fff}
html:root body .inbox-orders .inbox-stage-icon.needs-attention{background:#fff0ec;color:#bb5440}
html:root[data-desktop-theme="dark"] body .inbox-orders .inbox-stage-icon.is-complete{background:#21825e;color:#fff}
html:root[data-desktop-theme="dark"] body .inbox-orders .inbox-stage-icon.needs-attention{background:#4a302a;color:#ffb3a3}
/* Mobile app shell and registration workspace. */
html:root body .rg-case .rg-hero{min-height:0!important;padding:20px!important;background:var(--ui-surface)!important;border:1px solid var(--ui-line)!important;margin:14px 0 10px!important;display:block}
html:root body .rg-case .rg-hero h2{font-size:24px;line-height:1.25;margin:8px 0}
html:root body .rg-case .rg-hero p{font-size:14px;line-height:1.5;margin:0}
html:root body .rg-case .rg-hero-bottom{margin-top:14px;gap:12px;flex-wrap:wrap}
html:root body .rg-person{display:inline-flex;gap:7px;align-items:center;font-size:12px}
html:root body .rg-person .brand-icon{width:16px;height:16px}
html:root body .rg-phase-disclosure{border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-surface);margin-bottom:16px;overflow:hidden}
html:root body .rg-phase-disclosure summary{display:flex;justify-content:space-between;gap:12px;align-items:center;cursor:pointer;padding:12px 14px;font-size:12px;list-style:none;color:var(--ui-muted)}
html:root body .rg-phase-disclosure summary::-webkit-details-marker{display:none}
html:root body .rg-phase-disclosure summary>span{display:flex;align-items:center;gap:7px}
html:root body .rg-phase-disclosure .brand-icon{width:16px;height:16px}
html:root body .rg-phase-disclosure .rg-phase-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;list-style:none;padding:4px 14px 16px;margin:0!important}
html:root body .rg-phase-strip li{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--ui-muted)}
html:root body .rg-phase-strip li i{width:28px;height:28px;display:grid;place-items:center;flex-shrink:0;border:1px solid var(--ui-line);border-radius:50%;font-style:normal}
html:root body .rg-phase-strip li.current{color:#21825e;font-weight:600}
html:root body .rg-phase-strip li.current i,html:root body .rg-phase-strip li.passed i{color:white;background:#24bf86;border-color:#24bf86}
html:root body .rg-case-tabs{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px!important;background:transparent!important;padding:0!important;margin:16px 0!important;overflow:visible!important;border-radius:0!important}
html:root body .rg-case-tabs button{display:flex;align-items:center;justify-content:center;gap:6px;padding:12px 8px!important;min-width:0;white-space:normal!important;font-size:12px!important;border:1px solid var(--ui-line)!important;background:var(--ui-surface)!important;color:var(--ui-muted)}
html:root body .rg-case-tabs button.active{background:#e8f7ef!important;color:#21825e!important;border-color:#b9dfcc!important;box-shadow:none!important}
html:root body .rg-case-tabs button .brand-icon{width:17px;height:17px;flex-shrink:0}
html:root body .rg-case-content{margin-top:0!important}
html:root body .rg-case-content>section>.panel:first-child{margin-top:0!important}
html:root body .rg-case[data-view="chat"]>.rg-hero,html:root body .rg-case[data-view="chat"]>.rg-phase-disclosure{display:none}
html:root body .rg-chat-page{display:flex;flex-direction:column;min-height:450px;height:min(640px,72dvh);padding:0!important;border:1px solid var(--ui-line);border-radius:16px!important;overflow:hidden;background:var(--ui-surface)}
html:root body .rg-chat-header{padding:14px 16px!important;border-bottom:1px solid var(--ui-line);margin:0!important;gap:10px}
html:root body .rg-chat-header h3{font-size:15px;margin:0}
html:root body .rg-chat-header p{font-size:11px;margin:3px 0 0}
html:root body .rg-chat-avatar{width:36px;height:36px;border-radius:10px;background:#eaf4fe;color:#287cb7;display:grid;place-items:center}
html:root body .rg-messages{flex:1;min-height:0!important;max-height:none!important;overflow:auto;padding:16px!important;background:var(--ui-soft);display:flex;flex-direction:column;gap:10px}
html:root body .rg-message{max-width:82%;padding:10px 13px!important;border-radius:14px 14px 14px 4px!important;background:var(--ui-surface);border:1px solid var(--ui-line);align-self:flex-start;margin:0!important;font-size:14px}
html:root body .rg-message.mine{align-self:flex-end;background:#e4f4ec;border-color:#c7e6d7;border-radius:14px 14px 4px 14px!important}
html:root body .rg-message.system{align-self:center;background:transparent;border:0;text-align:center;font-size:12px;max-width:90%;color:var(--ui-muted)}
html:root body .rg-message b{font-size:11px;color:var(--ui-muted)}
html:root body .rg-message small{font-size:10px}
html:root body .rg-compose{padding:12px!important;border-top:1px solid var(--ui-line);background:var(--ui-surface);margin:0!important}
html:root body .rg-compose textarea{min-height:52px!important;max-height:120px;border:1px solid var(--ui-line);border-radius:12px;padding:12px;font-size:14px}
html:root body #admin-content>.section-title{margin:0 0 12px!important;min-height:40px;align-items:center;display:flex;flex-direction:row;gap:12px}
html:root body #admin-content>.section-title h2{font-size:21px;margin:0}
html:root body .admin-tabs{margin-bottom:16px!important}
html:root body #admin-content>.panel:first-child{margin-top:0!important}
@media(max-width:950px){
 html:root body .nav{left:8px!important;right:8px!important;bottom:max(8px,env(safe-area-inset-bottom))!important;border-radius:30px!important;padding:7px!important;background:#ffffffed;box-shadow:0 4px 24px #263c4a12;border:1px solid #dce7eea0;backdrop-filter:blur(24px)}
 html:root body .nav button{border-radius:23px!important;min-height:58px;padding:8px 3px!important}
 html:root body .promo-gift>.brand-icon{width:30px!important;height:30px!important}
 html:root body .promo-art{pointer-events:none}
 html:root body .promo-badge{max-width:calc(100% - 64px)}
 html:root body .rg-case-title{margin:10px 0!important}
 html:root body .rg-case-title h2{font-size:24px!important;line-height:1.25}
 html:root body .rg-case .rg-hero{padding:16px!important}
 html:root body .rg-case .rg-hero h2{font-size:21px}
 html:root body .rg-case-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
 html:root body .rg-case-tabs button{padding:10px 6px!important;font-size:11px!important;min-height:44px;flex-direction:row!important}
 html:root body .rg-phase-disclosure .rg-phase-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
 html:root body .rg-chat-page{height:calc(100dvh - 310px);min-height:380px}
 html:root body .rg-compose-actions{display:flex;justify-content:space-between;gap:8px;margin-top:8px}
 html:root body .rg-compose-actions .btn{min-height:38px;padding:8px 12px;font-size:12px}
 html:root body .rg-attach{font-size:12px}
 html:root body #admin-content>.section-title h2{font-size:19px}
 html:root body #admin-content>.section-title>.btn{font-size:12px;padding:9px 11px;min-height:40px;flex-shrink:0}
 html:root body .admin-item{padding:12px;gap:10px}
 html:root body .admin-item img{width:44px;height:44px}
 html:root body .admin-item h3{font-size:15px}
 html:root body .admin-item p{font-size:12px}
 html:root body .admin-item>.btn{padding:8px 10px;min-height:36px;font-size:12px}
}
html:root[data-desktop-theme="dark"] body .rg-message.mine{background:#234638;border-color:#365c49}
html:root[data-desktop-theme="dark"] body .rg-case-tabs button.active{background:#234638!important;color:#a8ebc9!important;border-color:#365c49!important}
html:root body .rg-case-tabs button>span{background:transparent!important;padding:0!important;border-radius:0!important;color:inherit!important;font-size:inherit!important;min-width:0!important;line-height:1.3}
html:root body .rg-case .rg-hero-bottom{display:flex!important;flex-direction:row!important;justify-content:space-between!important;align-items:center!important}
html:root body .rg-case .rg-hero-bottom .rg-text-button{font-size:12px;padding:0!important;min-height:30px}
html:root body .rg-case-tabs button{overflow:hidden}
@media(max-width:950px){html:root body .rg-case-tabs button{flex-direction:column!important;gap:5px;min-height:62px!important}html:root body .rg-case-tabs button>span{white-space:nowrap!important;font-size:10px!important}}
html:root body .rg-case-tabs button[data-rg-tab="documents"]>.rg-tab-count{display:none}
@media(max-width:950px){html:root body .rg-chat-page{height:calc(100dvh - 410px);min-height:300px;max-height:520px}html:root body .rg-case[data-view="chat"] .rg-case-content{padding-bottom:22px}}
@media(max-width:560px){
 html:root body .promo-art{width:48px;height:48px;right:16px;top:15px}
 html:root body .promo-gift{width:38px;height:38px;transform:rotate(-9deg)}
 html:root body .promo-gift>.brand-icon{width:25px!important;height:25px!important}
 html:root body .promo-spark.spark-two{display:none}
 html:root body .promo-badge{max-width:calc(100% - 54px)}
}
html:root body .rg-case>#rg-back,html:root body #registration-admin>#inbox-back{margin:0 0 12px!important}
html:root body .rg-case .rg-case-title{padding:0!important;margin:8px 0 14px!important;min-height:0!important}
html:root body .rg-phase-strip li.current i{background:#e8f7ef;color:#21825e;border:2px solid #24bf86}
html:root body .rg-case :is(.rg-case-title h2,.rg-hero h2,.rg-chat-header h3){color:var(--ui-ink)!important}
html:root body .rg-case .rg-eyebrow{color:var(--ui-muted)!important}
html:root body .rg-chat-page{height:clamp(340px,calc(100dvh - 350px),640px);box-sizing:border-box}
html:root body .rg-chat-header,html:root body .rg-compose{flex-shrink:0}
@media(max-width:950px){html:root body .rg-chat-page{height:clamp(300px,calc(100dvh - 430px),520px)}}
/* The mobile dock follows the inset iPhone screen contour, including its home area. */
@media(max-width:950px){
 html:root body .nav{
  left:8px!important;right:8px!important;bottom:8px!important;
  border-radius:26px 26px 44px 44px!important;
  padding:7px 7px max(12px,calc(env(safe-area-inset-bottom,0px) - 8px))!important;
  overflow:hidden;isolation:isolate;
 }
 html:root body .nav button{border-radius:20px!important;min-height:58px}
 html:root body .nav button:first-child{border-bottom-left-radius:32px!important}
 html:root body .nav button:last-child{border-bottom-right-radius:32px!important}
}
@media(max-width:950px){
 html:root body .sidebar .nav{border-radius:26px 26px 44px 44px!important}
 html:root body .sidebar .nav button:first-child{border-bottom-left-radius:32px!important}
 html:root body .sidebar .nav button:last-child{border-bottom-right-radius:32px!important}
}
/* Equal dock corners and inset selection contour. */
@media(max-width:950px){
 html:root body .sidebar .nav{border-radius:40px!important;padding:7px!important;align-items:stretch;overflow:hidden}
 html:root body .sidebar .nav button{border-radius:14px!important;min-height:64px!important;margin:0!important;overflow:hidden}
 html:root body .sidebar .nav button:first-child{border-radius:33px 14px 14px 33px!important}
 html:root body .sidebar .nav button:last-child{border-radius:14px 33px 33px 14px!important}
 html:root body .sidebar .nav button:only-child{border-radius:33px!important}
 html:root body .sidebar .nav button::before,html:root body .sidebar .nav button::after{border-radius:inherit}
}
@media(max-width:950px){
 html:root body .sidebar .nav button[data-page]{border-radius:14px!important}
 html:root body .sidebar .nav button[data-page]:first-of-type{border-radius:33px 14px 14px 33px!important}
 html:root body .sidebar .nav button[data-page]:last-of-type{border-radius:14px 33px 33px 14px!important}
}
@media(max-width:950px){
 html:root body .sidebar .nav{align-items:stretch!important}
 html:root body .sidebar .nav button[data-page],
 html:root body .sidebar .nav button[data-page]:first-of-type,
 html:root body .sidebar .nav button[data-page]:last-of-type{
  border-radius:33px!important;display:flex!important;flex-direction:column!important;
  justify-content:center!important;align-items:center!important;text-align:center!important;
  gap:5px!important;padding:8px 3px!important;transform:none!important;
 }
 html:root body .sidebar .nav button[data-page]>span{margin:0!important;padding:0!important;align-self:center!important;transform:none!important}
 html:root body .sidebar .nav button[data-page]::after{display:none!important}
}
html:root body .rg-assignee-settings{display:inline-block;vertical-align:middle;margin:0 12px 12px 0;max-width:100%;font-size:13px;position:relative}
html:root body .rg-assignee-settings summary{display:flex;align-items:center;gap:8px;cursor:pointer;color:var(--ui-muted);list-style:none;padding:9px 12px;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:12px}
html:root body .rg-assignee-settings summary::-webkit-details-marker{display:none}
html:root body .rg-assignee-settings summary .brand-icon{width:16px;height:16px}
html:root body .rg-assignee-settings>div{display:flex;gap:10px;align-items:end;padding:14px;margin-top:7px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-surface)}
html:root body .rg-assignee-settings label{display:grid;gap:7px;font-size:12px}
html:root body .rg-assignee-settings select{max-width:230px}
html:root body .rg-open-conversation{display:inline-flex;margin:0 0 12px;background:#eaf4fe;color:#287cb7;border:1px solid #cde1f2;font-size:13px;gap:8px}
html:root body .rg-conversation-back{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;color:var(--ui-muted);background:var(--ui-soft)}
html:root body .rg-case[data-view="chat"]>.rg-open-conversation,html:root body .rg-case[data-view="chat"]>.rg-assignee-settings{display:none}
html:root body .rg-case-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:950px){
 html:root body.registration-chat-open{overflow:hidden!important}
 html:root body.registration-chat-open :is(.top,.sidebar,.nav){visibility:hidden!important;pointer-events:none!important}
 html:root body.registration-chat-open .rg-case [data-rg-panel="chat"]{position:fixed!important;inset:0!important;z-index:100!important;margin:0!important;padding:0!important;display:block!important;background:var(--ui-surface)}
 html:root body.registration-chat-open .rg-chat-page{height:100dvh!important;height:var(--chat-height,100dvh)!important;max-height:none!important;min-height:0!important;width:100%!important;border:0!important;border-radius:0!important;display:flex!important;flex-direction:column!important}
 html:root body.registration-chat-open .rg-chat-header{padding:calc(12px + env(safe-area-inset-top,0px)) 14px 12px!important;flex-shrink:0}
 html:root body.registration-chat-open .rg-compose{padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px))!important}
 html:root body.registration-chat-open .rg-messages{flex:1!important;min-height:0!important;height:auto!important}
 html:root body .rg-assignee-settings>div{flex-wrap:wrap}
}
@media(max-width:950px){html:root body.registration-chat-open .rg-chat-page{height:var(--registration-chat-height,100dvh)!important}}
html:root body #main:has(#admin-content .rg-case)>.admin-heading,html:root body #main:has(#admin-content .rg-case)>.admin-tabs{display:none!important}
html:root body .rg-case-contact-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 14px;align-items:start}
html:root body .rg-case-contact-actions .rg-assignee-settings{display:block;margin:0!important;width:100%;min-width:0}
html:root body .rg-case-contact-actions .rg-assignee-settings summary,html:root body .rg-case-contact-actions>.rg-open-conversation{display:flex;justify-content:center;align-items:center;gap:7px;min-height:46px;height:46px;width:100%;margin:0!important;padding:9px 10px!important;font-size:12px;box-sizing:border-box}
html:root body .rg-case-contact-actions .rg-assignee-settings summary>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
html:root body .rg-case-contact-actions .brand-icon{width:17px;height:17px;flex-shrink:0}
html:root body .rg-case-contact-actions .rg-assignee-settings[open]>div{position:absolute;left:0;top:100%;z-index:12;min-width:min(330px,calc(100vw - 36px));box-shadow:0 10px 30px #263c4a18}
html:root body .rg-case-contact-actions:not(:has(.rg-assignee-settings)){grid-template-columns:minmax(0,1fr)}
html:root body .rg-case[data-view="chat"]>.rg-case-contact-actions{display:none}
@media(max-width:950px){
 html:root body .rg-case-tabs:has(>button:nth-child(5):last-child){grid-template-columns:repeat(6,minmax(0,1fr))!important}
 html:root body .rg-case-tabs:has(>button:nth-child(5):last-child)>button{grid-column:span 2}
 html:root body .rg-case-tabs:has(>button:nth-child(5):last-child)>button:nth-last-child(-n+2){grid-column:span 3}
}

/* Keep independent fixes when reverting the continuous-corner experiment. */
html:root[data-desktop-theme="dark"] body .sidebar .nav button[data-page]:hover:not(.active){background:#253e53!important;color:#b1d8f7!important}
html:root[data-desktop-theme="dark"] body .sidebar .nav button[data-page].active:hover{background:#234638!important;color:#a8ebc9!important}
html:root body .top-right #web-push-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:0!important;padding:0!important;line-height:0!important;flex-shrink:0!important}
html:root body .top-right #web-push-button::before{display:block!important;flex:0 0 20px!important;width:20px!important;height:20px!important;margin:0!important;align-self:center!important}
html:root body .rg-case-tabs button>.rg-tab-count{display:none!important}
html:root body .promo-heading:empty{display:none}
html:root body .promo-heading{justify-content:flex-end}

/* Use the installed iPhone app icon in the page header. */
html:root body .top .brand img{width:52px!important;height:52px!important;object-fit:contain;border-radius:12px!important}
@media(max-width:560px){html:root body .top .brand img{width:46px!important;height:46px!important}}

/* Plain wordmark beside the app icon. */
html:root body .top .brand{gap:12px;flex-shrink:0}
html:root body .brand-name{font-size:23px;font-weight:500;letter-spacing:.5px;line-height:1;color:var(--ui-ink,#263c4a);white-space:nowrap}
@media(max-width:560px){
 html:root body .top .brand{gap:8px}
 html:root body .brand-name{font-size:19px;letter-spacing:.2px}
 html:root body .top-right{gap:8px}
 html:root body .top-right .manager-contact{width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;justify-content:center;gap:0!important}
 html:root body .top-right .manager-contact>span{display:none!important}
}

/* Back actions need their own inset even when service-page styles reset padding. */
html:root body button.back{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;width:fit-content!important;max-width:100%!important;min-height:42px!important;padding:10px 16px!important;line-height:1.35!important;white-space:nowrap!important;flex-shrink:0!important}
html:root body button.back svg{flex:0 0 20px;width:20px;height:20px;margin:0!important}

/* One navigation control shared by all pages. */
html:root body .brand-navigation{display:flex;align-items:center;gap:20px;min-width:0}
html:root body .page-history{display:flex;align-items:center;gap:6px}
html:root body .page-history button{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;min-width:38px;padding:0!important;border:1px solid var(--ui-line);border-radius:11px!important;background:var(--ui-surface);color:var(--ui-ink);transition:background .15s,color .15s}
html:root body .page-history button svg{width:20px;height:20px}
html:root body .page-history button:hover:enabled{background:var(--ui-soft);color:var(--ui-blue)}
html:root body .page-history button:disabled{opacity:.3;cursor:default}
html:root body #main button.back,html:root body #main .ref-back,html:root body #main #cp-back{display:none!important}
@media(max-width:560px){
 html:root body .brand-navigation{gap:8px}
 html:root body .top .brand{gap:5px}
 html:root body .top .brand img{width:36px!important;height:36px!important;border-radius:10px!important}
 html:root body .brand-name{font-size:16px;letter-spacing:0}
 html:root body .page-history{gap:4px}
 html:root body .page-history button{width:29px;height:32px;min-width:29px;border-radius:9px!important}
 html:root body .page-history button svg{width:17px;height:17px}
 html:root body .top-right{gap:5px!important}
 html:root body .top-right #web-push-button,html:root body .top-right .manager-contact,html:root body .top-right .avatar{width:32px!important;min-width:32px!important;height:34px!important;min-height:34px!important}
}
@media(max-width:950px){html:root body .page-history{display:none!important}}
.history-swipe-indicator{position:fixed;top:45%;z-index:10000;width:48px;height:48px;display:grid;place-items:center;border:1px solid var(--ui-line);border-radius:50%;background:var(--ui-surface);color:var(--ui-blue,#278df0);box-shadow:0 5px 24px #16334624;pointer-events:none;opacity:var(--swipe-progress,0);transition:background .15s,opacity .18s;will-change:transform,opacity}
.history-swipe-indicator.back{left:8px;transform:translateX(calc(-48px + 64px * var(--swipe-progress,0)))}
.history-swipe-indicator.forward{right:8px;transform:translateX(calc(48px - 64px * var(--swipe-progress,0)))}
.history-swipe-indicator svg{width:24px;height:24px}
.history-swipe-indicator.forward svg{transform:rotate(180deg)}
.history-swipe-indicator.ready{background:var(--ui-blue,#278df0);color:white}
.history-swipe-indicator.leaving{opacity:0;transition:opacity .18s}
@media(prefers-reduced-motion:reduce){.history-swipe-indicator{transition:none;will-change:auto}}
/* The questionnaire owns its mobile action bar; do not stack the app dock beneath it. */
@media(max-width:950px){
 html:root body.rg-questionnaire-active .sidebar{display:none!important}
 html:root body.rg-questionnaire-active .shell{padding-bottom:110px!important}
}
.rg-contact-error{display:block;color:#c44435!important;font-size:13px!important;line-height:1.45;margin-top:6px}
.rg-contact-error[hidden]{display:none!important}
/* Registration stage actions: one action in the header and roomy section tabs. */
.rg-redesign .rg-primary-stage-action{margin:18px 0 8px;min-height:48px;max-width:100%;white-space:normal;text-align:center;display:inline-flex;align-items:center;justify-content:center;gap:12px}
html:root body .rg-redesign .rg-case-tabs{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important}
html:root body .rg-redesign .rg-case-tabs button{min-width:0!important;min-height:108px!important;padding:18px 12px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:10px!important;white-space:normal!important;text-align:center!important}
html:root body .rg-redesign .rg-case-tabs button svg{width:26px;height:26px;flex-shrink:0}
.rg-redesign .rg-tab-count{display:none!important}
.rg-redesign .rg-overview-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:20px 0 0}
.rg-overview-facts dt{color:var(--muted);font-size:13px;margin-bottom:8px}.rg-overview-facts dd{margin:0;overflow-wrap:anywhere}
.rg-stage-action-row,.rg-message-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}
.rg-message-actions .btn{min-height:44px;white-space:normal;text-align:center;text-decoration:none;display:flex;align-items:center;justify-content:center}
.rg-redesign .rg-message.system:has(.rg-message-actions){text-align:left;align-self:stretch;max-width:620px;padding:20px;border:1px solid var(--border);border-radius:20px;background:var(--panel,var(--card));color:var(--text)}
.rg-message.system p strong{display:block;margin-bottom:10px}
.rg-package-files{display:grid;gap:10px}.rg-package-files:empty{display:none}
@media(max-width:650px){
 html:root body .rg-redesign .rg-case-tabs{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px!important}
 html:root body .rg-redesign .rg-case-tabs button{grid-column:span 2;min-height:100px!important;padding:14px 6px!important;font-size:13px!important}
 html:root body .rg-redesign .rg-case-tabs button:nth-child(4):nth-last-child(2),html:root body .rg-redesign .rg-case-tabs button:nth-child(5):last-child{grid-column:span 3}
 .rg-redesign .rg-primary-stage-action{width:100%}
 .rg-redesign .rg-overview-facts{grid-template-columns:1fr;gap:16px}
 .rg-stage-action-row .btn,.rg-message-actions .btn{flex:1 1 100%;width:100%}
}

@media(min-width:651px){html:root body .rg-redesign .rg-case-tabs>button{grid-column:auto!important}}
html:root body .rg-redesign .rg-case-tabs:has(>button:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))!important}
@media(max-width:650px){html:root body .rg-redesign .rg-case-tabs:has(>button:nth-child(3):last-child)>button{grid-column:auto!important}}

/* Action cards must retain their surface and controls inside system messages. */
html:root body .rg-redesign .rg-message.system:has(.rg-message-actions){align-self:stretch;width:min(100%,620px);max-width:100%;box-sizing:border-box;padding:18px!important;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:18px!important;text-align:left;color:var(--ui-ink);font-size:14px}
html:root body .rg-redesign .rg-message.system:has(.rg-message-actions) p{margin:0;line-height:1.6;overflow-wrap:anywhere}
html:root body .rg-redesign .rg-message-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 12px;min-width:0}
html:root body .rg-redesign .rg-message-actions .btn{display:flex;align-items:center;justify-content:center;flex:1 1 180px;min-width:0;max-width:100%;min-height:46px;padding:11px 16px;background:var(--ui-soft);border:1px solid var(--ui-line);border-radius:12px!important;color:var(--ui-ink);font-size:14px;font-weight:600;line-height:1.45;text-align:center;white-space:normal;overflow-wrap:anywhere;text-decoration:none}
html:root body .rg-redesign .rg-message-actions .btn.blue{background:var(--ui-blue);border-color:var(--ui-blue);color:#fff}
html:root body .rg-redesign .rg-message.system:has(.rg-message-actions)>small{display:block;text-align:right;margin-top:8px;color:var(--ui-muted)}
@media(hover:hover){html:root body .rg-redesign .rg-message-actions .btn:not(:disabled):hover{background:color-mix(in srgb,var(--ui-blue) 12%,var(--ui-surface));border-color:var(--ui-blue);color:var(--ui-blue)}html:root body .rg-redesign .rg-message-actions .btn.blue:not(:disabled):hover{background:#167bde;color:#fff}}
@media(max-width:650px){html:root body .rg-redesign .rg-message.system:has(.rg-message-actions){padding:15px!important}html:root body .rg-redesign .rg-message-actions .btn{flex-basis:100%;width:100%}}

/* Staff overview, documents, details and history share the available row. */
html:root body .rg-redesign .rg-case-tabs:has(>button:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr))!important}
@media(max-width:650px){html:root body .rg-redesign .rg-case-tabs:has(>button:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))!important}html:root body .rg-redesign .rg-case-tabs:has(>button:nth-child(4):last-child)>button{grid-column:auto!important}}
/* Never expose the hidden native inputs behind custom checklist controls. */
html:root body .rg-work-panel [hidden]{display:none!important}

/* Current-stage upload: horizontal, compact, and separate from submit controls. */
html:root body .rg-work-panel label.rg-document-task.rg-upload-label{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:14px!important;width:100%;min-height:88px;margin:0;padding:18px!important;text-align:left;cursor:pointer}
html:root body .rg-work-panel label.rg-document-task>span:first-child{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:12px;background:var(--ui-surface);color:var(--ui-blue)}
html:root body .rg-work-panel label.rg-document-task>span:nth-child(2){flex:1;min-width:0}
html:root body .rg-work-panel label.rg-document-task strong{display:block;font-size:15px;line-height:1.4}
html:root body .rg-work-panel label.rg-document-task small{display:block;font-size:13px;line-height:1.5;margin-top:4px;color:var(--ui-muted)}
html:root body .rg-work-panel .date-control{height:48px;min-height:48px;border-radius:var(--ui-radius)!important;background:var(--ui-soft);border-color:var(--ui-line);color:var(--ui-ink)}
html:root body .rg-work-panel .date-control .date-entry{border-radius:0!important;padding:0 14px!important}
html:root body .rg-work-panel [data-rg-template]{justify-self:start;width:auto;max-width:100%;padding:11px 18px}
html:root body .rg-client-file-actions{display:flex;flex-wrap:wrap;align-items:stretch;gap:12px;margin-top:20px}
html:root body .rg-client-file-actions>.btn{display:inline-flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:8px;min-height:46px;margin:0!important;padding:12px 18px!important;width:auto;max-width:100%;line-height:1.4;white-space:normal;text-align:center}
@media(max-width:650px){html:root body .rg-client-file-actions>.btn{flex:1 1 100%;width:100%}html:root body .rg-work-panel label.rg-document-task.rg-upload-label{padding:15px!important}}

html:root body .rg-registration-estimate{display:flex;align-items:center;gap:16px;padding:18px 20px;margin:22px 0 0;border:1px solid var(--ui-line);border-radius:18px;background:var(--ui-soft);max-width:540px;box-sizing:border-box}
html:root body .rg-registration-estimate-icon{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;border-radius:14px;background:var(--ui-surface);color:var(--ui-blue)}
html:root body .rg-registration-estimate-icon svg{width:26px;height:26px}
html:root body .rg-registration-estimate div{display:grid;gap:6px;min-width:0}
html:root body .rg-registration-estimate div>span{font-size:13px;color:var(--ui-muted);line-height:1.4}
html:root body .rg-registration-estimate strong{font-size:25px;font-weight:600;line-height:1.15;color:var(--ui-ink)}
html:root body .rg-registration-estimate small{font-size:12px;color:var(--ui-muted);line-height:1.5}
@media(max-width:650px){html:root body .rg-registration-estimate{padding:16px;gap:12px;width:100%}html:root body .rg-registration-estimate strong{font-size:23px}}

/* Underlined card tabs are navigation, not rounded action buttons.
   Keep this exception after the shared button corner rule. */
html:root body #support-drawer .drawer-tabs>button{position:relative;border:0;border-bottom:2px solid transparent;border-radius:0!important;background:transparent;box-shadow:none;line-height:1.4;transition:color .18s,border-color .18s}
html:root body #support-drawer .drawer-tabs>button.active{color:var(--ui-blue);border-bottom-color:var(--ui-blue)}
html:root body #support-drawer .drawer-tabs>button:hover{color:var(--ui-blue)}

/* Shared exception for all underline navigation, including task filters. */
html:root body :is(.drawer-tabs,.segmented,.registration-case-tabs)>button:not(.avatar):not(.desktop-theme-toggle):not([data-day]){border-radius:0!important;border:0;border-bottom:2px solid transparent;background:transparent;box-shadow:none;line-height:1.4;transition:color .18s,border-color .18s}
html:root body :is(.drawer-tabs,.segmented,.registration-case-tabs)>button.active:not(.avatar):not(.desktop-theme-toggle):not([data-day]){color:var(--ui-blue);border-bottom-color:var(--ui-blue)}

.mobile-section-picker {display:none}
@media (max-width:760px) {
 :root body .admin-tabs:has(.mobile-section-picker) {display:block;overflow:visible;padding:0}
 :root body .admin-tabs > .mobile-section-picker {display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;width:100%;font-size:14px;color:var(--ui-muted,#526677)}
 :root body .mobile-section-picker select {display:inline-flex;align-items:center;justify-content:space-between;min-width:0;width:100%;min-height:44px;padding:8px 12px;border:1px solid var(--ui-line,#d4e0ea);border-radius:12px;background:var(--ui-soft,#f1f5f8);color:var(--ui-text,#243849);font:inherit}
 :root body .admin-tabs:has(.mobile-section-picker) > .tab {display:none}
 :root body .finance .fin-quick {flex-wrap:wrap;overflow:visible;padding:0}
 :root body .finance .fin-quick button {min-height:44px}
}
:root:not([data-desktop-theme=dark]) .catalog-heading .accent-blue {color:#2276be}
:root:not([data-desktop-theme=dark]) .ref-hero #copy-code {background:#206ab3;color:white}
:root:not([data-desktop-theme=dark]) .program-terms .rate-line:last-child strong {color:#21694a}

.catalog-categories {
  display:flex;
  align-items:center;
  gap:8px;
  max-width:100%;
  min-width:0;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
  padding:4px 0;
  margin:8px 0 14px;
}
.catalog-categories::-webkit-scrollbar {display:none}
.catalog-categories .catalog-category {
  flex:0 0 auto;
  min-height:44px;
  max-width:100%;
  overflow-wrap:anywhere;
  padding:8px 16px;
  border:0;
  border-radius:999px;
  background:#edf0f3;
  color:#344551;
  font:inherit;
  font-size:15px;
  font-weight:550;
  line-height:1.35;
  cursor:pointer;
}
[data-desktop-theme="dark"] .catalog-categories .catalog-category {background:#293138;color:#e1e6ea}
.catalog-categories button.catalog-category[aria-pressed="true"] {background:var(--category-fill);color:var(--category-ink);font-weight:650}
.catalog-categories .catalog-category:focus-visible {outline:2px solid currentColor;outline-offset:-4px}
