:root{--bg:#f3f7f4;--panel:#fff;--ink:#141b16;--muted:#627066;--line:#d8e3da;--green:#009900;--green-dark:#057205;--green-soft:#e9f8ec;--sidebar:#121b16;--red:#b43832;--amber:#946400;--radius:16px}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:"Segoe UI",Arial,sans-serif;font-size:15px;line-height:1.5}
button,input{font:inherit}
button{cursor:pointer;border:0}
button:disabled{cursor:wait;opacity:.6}
button,input{transition:background .15s,border-color .15s,box-shadow .15s}
button:focus-visible,a:focus-visible{outline:3px solid #74be80;outline-offset:4px}
input:focus{outline:3px solid #00990019;border-color:var(--green)}
input:not([type=checkbox]){display:block;width:100%;min-height:48px;border:1px solid var(--line);border-radius:9px;padding:11px 13px;background:#fbfdfb;color:var(--ink)}
input[type=checkbox]{width:18px;height:18px;accent-color:var(--green)}
label{display:block;font-size:14px;font-weight:600}
label>input,label>.password-field{margin-top:7px}
h1,h2,h3,p{margin-top:0}
h1{font-size:30px;line-height:1.2;letter-spacing:-.7px;margin-bottom:10px;font-weight:650}
h2{font-size:20px;line-height:1.4;font-weight:650;margin-bottom:8px}
h3{font-size:16px;font-weight:650}
p{margin-bottom:16px}
.muted,.help{color:var(--muted)}
.help{font-size:13px;margin:7px 0 0;font-weight:400}
.small{font-size:13px}
.eyebrow{font-size:11px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase}
.btn{display:inline-flex;justify-content:center;align-items:center;gap:9px;padding:11px 17px;border-radius:9px;font-weight:600;min-height:44px;white-space:nowrap;background:var(--green);color:#fff}
.btn:hover{background:var(--green-dark)}
.btn.secondary{background:#fff;color:var(--ink);border:1px solid var(--line)}
.btn.secondary:hover{background:var(--green-soft)}
.btn.ghost{background:transparent;color:var(--muted)}
.btn.ghost:hover{background:#e8efea;color:var(--ink)}
.btn.small{padding:8px 12px;font-size:13px;min-height:38px}
.icon{width:19px;height:19px;flex-shrink:0;stroke-width:1.8;vertical-align:middle}
.icon-button{background:transparent;color:var(--muted);width:40px;height:40px;display:grid;place-items:center;border-radius:7px}
.icon-button:hover{background:var(--bg)}
.password-field{position:relative}
.password-field input{padding-right:49px}
.password-field .icon-button{position:absolute;right:4px;top:4px}
.error{color:var(--red);background:#fff1ef;border:1px solid #f0d4ce;border-radius:9px;padding:11px 13px;font-size:14px;margin:0}
.error:empty{display:none}
[hidden]{display:none!important}
.initial-loading{min-height:100vh;display:grid;place-items:center;color:var(--muted)}
/* Approved company artwork supplied on 2026-10-19. */
.login-logo{width:112px;height:112px;flex:0 0 auto;overflow:hidden;border-radius:20px;background:#fff}
.login-logo img{display:block;width:100%;height:100%;object-fit:contain}
.auth-layout{min-height:100vh;display:grid;grid-template-columns:minmax(350px,.92fr) minmax(440px,1.08fr)}
.auth-aside{background:var(--sidebar);color:#fff;padding:48px 58px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}
.brand{display:flex;align-items:center;gap:15px}
.brand-name{font-size:25px;letter-spacing:2px;font-weight:750;line-height:1.2}
.brand-subtitle{font-size:12px;color:#a9b9ae;margin-top:5px}
.brand-mark{width:70px;height:70px;flex:0 0 70px}
.brand-mark>.login-logo{transform:scale(.625);transform-origin:top left}
.brand-copy{min-width:0}
.brand-name{white-space:nowrap}
.auth-copy{max-width:450px;padding:68px 0}
.auth-copy .eyebrow{color:#85bd91;margin-bottom:25px}
.auth-copy h2{font-size:43px;line-height:1.14;letter-spacing:-1.2px;font-weight:550;margin-bottom:25px}
.auth-copy>p{color:#b8c6bd;font-size:16px;max-width:360px;line-height:1.75}
.auth-list{list-style:none;padding:12px 0 0;margin:0;display:grid;gap:17px;color:#d3ded7;font-size:14px}
.auth-list li{display:flex;align-items:center;gap:13px}
.auth-list .icon{color:#67c57e}
.aside-footer{font-size:12px;color:#8ca393;border-top:1px solid #ffffff18;padding-top:20px}
.auth-main{padding:48px 32px;display:flex;align-items:center;justify-content:center;background:linear-gradient(140deg,#f9fcf9,#eef5ef)}
.auth-box{width:100%;max-width:385px}
/* Blend the white image backing into the pale login-page gradient. */
.auth-box>.login-logo{margin-bottom:22px;background:transparent;mix-blend-mode:multiply}
.auth-box h1{font-size:29px}
.auth-form{display:grid;gap:21px;margin-top:33px}
.auth-form .btn{width:100%;margin-top:2px;min-height:49px}
.auth-switch{width:100%;min-height:46px;margin-top:12px}
.registration-form{gap:13px;margin-top:20px}
.registration-form .help{margin:0}
.registrations-table{min-width:660px;width:100%}
.registration-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.login-help{font-size:13px;color:var(--muted);text-align:center;margin:26px 0 0;line-height:1.7}
.auth-security{display:flex;justify-content:center;align-items:center;gap:7px;color:#839389;font-size:12px;margin-top:34px}
.shell{min-height:100vh;display:grid;grid-template-columns:246px minmax(0,1fr)}
.sidebar{background:var(--sidebar);color:#fff;padding:33px 23px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}
.sidebar .brand{gap:10px}
.sidebar .brand-name{font-size:20px;letter-spacing:1.5px}
.sidebar .brand-subtitle{line-height:1.45}
.sidebar nav{margin-top:57px}
.nav-label{color:#839b8b;font-size:10px;letter-spacing:1.7px;margin:0 12px 14px}
.nav-item{display:flex;gap:12px;align-items:center;border-radius:9px;padding:13px 14px;background:#20372a;color:#e3f1e6;font-size:14px;width:100%;text-align:left}
.sidebar-bottom{margin-top:auto}
.local-label{font-size:12px;color:#91a699;display:flex;align-items:center;gap:8px;margin:24px 10px}
.local-label:before{content:"";height:6px;width:6px;background:#5e9c70;border-radius:50%}
.account{border-top:1px solid #ffffff15;padding:22px 3px 0;display:flex;gap:10px;align-items:center}
.account-info{min-width:0;flex:1}
.account-info strong{font-size:13px;display:block;overflow:hidden;text-overflow:ellipsis}
.account-info small{font-size:11px;color:#92a69a}
.account .icon-button{color:#a9bbaf}
.account .icon-button:hover{background:#20372a}
.avatar{width:35px;height:35px;background:#284232;border:1px solid #385541;border-radius:10px;display:grid;place-items:center;font-size:12px;font-weight:650;color:#c5dfcb;flex-shrink:0}
.main{min-width:0}
.topbar{height:78px;border-bottom:1px solid var(--line);background:#ffffff8a;display:flex;align-items:center;justify-content:space-between;padding:0 42px;color:var(--muted);font-size:13px}
.topbar-right{display:flex;align-items:center;gap:8px}
.topbar .icon{width:16px;height:16px}
.content{max-width:1380px;padding:40px 42px 30px;margin:0 auto}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px}
.page-heading p{color:var(--muted);margin:0;font-size:14px}
.page-heading h1{font-size:29px}
.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.panel-pad{padding:28px}
.client-hero{display:flex;gap:21px;align-items:center;border-bottom:1px solid var(--line);padding:31px 30px}
.client-avatar{width:68px;height:68px;border:1px solid #c9e7cf;background:#eef8f0;border-radius:18px;display:grid;place-items:center;color:var(--green-dark);font-weight:600;font-size:24px;flex-shrink:0}
.client-hero h2{font-size:24px;margin-bottom:7px}
.client-hero .eyebrow{color:var(--muted);margin-bottom:8px}
.client-hero p{margin:0;font-size:13px;color:var(--muted)}
.client-hero .badge{margin-left:auto}
.badge{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:6px;background:var(--green-soft);color:#26773a;font-size:11px;font-weight:600;white-space:nowrap}
.badge:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}
.badge.gray{color:#6e7770;background:#eff1ef}
.badge.warn{color:#946400;background:#fff6df}
.detail-grid{display:grid;grid-template-columns:1fr 1fr}
.detail-item{display:flex;gap:13px;padding:27px 30px;min-width:0}
.detail-item+.detail-item{border-left:1px solid var(--line)}
.detail-icon{width:38px;height:38px;display:grid;place-items:center;border:1px solid #e3ebe5;background:#f7faf7;border-radius:10px;color:#68806e;flex-shrink:0}
.detail-item dt{color:var(--muted);font-size:12px;margin-bottom:8px}
.detail-item dd{font-size:18px;font-weight:600;margin:0;overflow-wrap:anywhere}
dl{margin:0}
.client-bottom{display:grid;grid-template-columns:1.35fr 1fr;gap:22px;margin-top:22px}
.panel-title{display:flex;align-items:center;gap:10px;margin-bottom:24px}
.panel-title .icon{color:#65866d}
.panel-title h2{font-size:17px;margin:0}
.lawyer-name{font-size:20px;font-weight:600;margin:0 0 5px}
.lawyer-meta{font-size:12px;color:var(--muted);margin:0}
.extra-lawyer{margin-top:21px;padding-top:17px;border-top:1px solid var(--line)}
.extra-lawyer p{margin:4px 0 0;font-size:14px;font-weight:600}
.update-time{font-size:17px;font-weight:600;margin-bottom:7px}
.update-panel .btn{margin-top:9px}
.note{margin-top:23px;color:var(--muted);font-size:12px;display:flex;gap:8px;align-items:flex-start}
.note .icon{width:16px;height:16px;flex-shrink:0;margin-top:2px}
.warning{margin-top:20px;border:1px solid #eadfbf;border-radius:10px;background:#fffbf1;padding:14px 17px;font-size:13px;color:#806426}
.warning ul{margin:0;padding-left:19px}
.metric-strip{display:flex;gap:34px;padding:20px 25px;border:1px solid var(--line);border-radius:12px;background:#fff;margin-bottom:23px}
.metric{display:flex;align-items:baseline;gap:10px}
.metric strong{font-size:23px;font-weight:600}
.metric span{font-size:13px;color:var(--muted)}
.table-heading{padding:22px 25px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}
.table-heading h2{font-size:17px;margin:0}
.table-scroll{overflow-x:auto}
table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:13px}
th{background:#fafcfb;padding:13px 15px;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.5px;font-weight:600;border-bottom:1px solid var(--line)}
td{padding:19px 15px;border-bottom:1px solid #e9efeb;vertical-align:middle}
tr:last-child td{border-bottom:0}
td strong{display:block;font-size:14px;font-weight:600}
td .sub{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.row-actions{display:flex;gap:4px;justify-content:flex-end}
.client-preview-banner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 18px;flex:none;padding:10px clamp(12px,3vw,35px);background:#ebf6ed;border-bottom:1px solid var(--border);color:#245233}
.client-preview-banner span{display:block;font-size:13px}
.registration-verified{display:flex;align-items:center;gap:8px;color:#246639}
.registration-verified svg{width:18px;height:18px;flex:none}
.registration-captcha{display:grid;gap:8px}
.registration-picture{display:flex;align-items:center;gap:8px;min-height:72px}
.registration-picture img{max-width:calc(100% - 44px);height:auto;border:1px solid var(--border);border-radius:8px}
.registration-picture img[hidden],#registrationPictureStatus:empty{display:none}
.empty-state{text-align:center;padding:65px 28px}
.empty-state .empty-icon{width:66px;height:66px;border-radius:18px;background:#f0f7f1;color:#6c9676;display:grid;place-items:center;margin:0 auto 23px}
.empty-state .empty-icon .icon{width:28px;height:28px}
.empty-state h3{font-size:20px;margin-bottom:9px}
.empty-state p{max-width:340px;margin:0 auto 25px;color:var(--muted);font-size:14px}
.table-footer{border-top:1px solid var(--line);padding:15px 24px;font-size:12px;color:var(--muted)}
dialog{border:1px solid var(--line);border-radius:18px;box-shadow:0 25px 100px #0d221b33;padding:0;width:580px;max-width:calc(100vw - 30px);max-height:calc(100vh - 40px);color:var(--ink)}
dialog::backdrop{background:#101f185c;backdrop-filter:blur(3px)}
.dialog-head{padding:24px 27px 19px;display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid var(--line)}
.dialog-head h2{font-size:21px;margin:0 0 5px}
.dialog-head p{font-size:13px;margin:0;color:var(--muted)}
.dialog-form{padding:24px 27px;display:grid;gap:20px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}
.deal-input{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:7px}
.deal-preview{padding:18px;border:1px solid #cbe4d0;border-radius:10px;background:#f5fbf6}
.deal-preview .eyebrow{font-size:10px;color:var(--green-dark);margin-bottom:8px}
.deal-preview h3{margin:0 0 12px;font-size:16px}
.preview-details{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.preview-details dt{font-size:11px;color:var(--muted);margin-bottom:3px}
.preview-details dd{font-size:13px;margin:0;overflow-wrap:anywhere}
.deal-preview .small{font-size:11px;margin:12px 0 0;color:var(--muted)}
.check-label{display:flex;align-items:center;gap:10px;font-weight:400}
.check-label input{margin:0}
.dialog-actions{display:flex;gap:10px;justify-content:flex-end;padding-top:6px}
.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:10;background:#182e20;color:#fff;border:1px solid #3b6d49;padding:14px 22px;border-radius:11px;max-width:calc(100vw - 32px);box-shadow:0 10px 30px #17302026;font-size:14px}
.toast.failure{background:#58261f;border-color:#7e4036}
@media(min-width:1600px){.auth-aside{padding-left:90px;padding-right:70px}.auth-copy h2{font-size:50px}}
@media(max-width:1100px){.sidebar{padding:27px 16px}.shell{grid-template-columns:210px minmax(0,1fr)}.content{padding:30px 24px}.topbar{padding:0 24px}.client-bottom{grid-template-columns:1fr}.auth-aside{padding:38px}.auth-copy h2{font-size:37px}.client-hero .badge{display:none}.detail-item{padding:24px}.auth-layout{grid-template-columns:.9fr 1.1fr}}
@media(max-width:740px){.auth-layout{display:block}.auth-aside{min-height:0;padding:24px}.auth-copy,.aside-footer{display:none}.auth-main{min-height:calc(100vh - 88px);padding:34px 24px}.auth-box>.login-logo{display:none}.shell{display:block}.sidebar{height:auto;position:static;padding:19px 20px;flex-direction:row;align-items:center;justify-content:space-between}.sidebar nav,.local-label,.account-info,.account .avatar{display:none}.sidebar-bottom{margin:0}.account{padding:0;border:0}.sidebar .brand-subtitle{font-size:10px}.topbar{height:52px;padding:0 20px}.topbar-right{font-size:11px}.content{padding:28px 18px}.page-heading{align-items:flex-start;flex-wrap:wrap;gap:17px}.page-heading h1{font-size:25px}.page-heading p{font-size:13px}.page-heading>.btn{width:100%}.client-hero{padding:23px 20px;gap:15px}.client-avatar{width:50px;height:50px;font-size:19px;border-radius:14px}.client-hero h2{font-size:19px}.detail-grid{grid-template-columns:1fr}.detail-item{padding:21px}.detail-item+.detail-item{border-left:0;border-top:1px solid var(--line)}.detail-item dd{font-size:17px}.client-bottom{gap:16px;margin-top:16px}.panel-pad{padding:23px}.metric-strip{gap:22px;padding:17px 20px}.metric{display:block}.metric span{display:block;font-size:11px}.metric strong{font-size:21px}.table-heading{padding:20px}.dialog-head{padding:21px}.dialog-form{padding:21px}.form-grid{grid-template-columns:1fr}.deal-input{grid-template-columns:1fr}.dialog-actions>.btn{flex:1}.preview-details{grid-template-columns:1fr}.toast{bottom:18px;width:max-content;text-align:center}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

@media(min-width:741px){td:first-child{white-space:normal;min-width:165px}td:nth-child(5){white-space:normal;min-width:125px}}

button.nav-item{width:100%;border:0;font:inherit;text-align:left;cursor:pointer;margin-bottom:7px;background:transparent;color:#a8b6ac}
button.nav-item[aria-current=page]{background:#25382b;color:#fff}
button.nav-item:hover{background:#203226;color:#fff}
.chat-panel{max-width:1000px}
.chat-heading{display:flex;align-items:center;gap:14px;padding:22px 26px;border-bottom:1px solid var(--line)}
.chat-heading p{font-size:12px;color:var(--muted);margin:5px 0 0}
.chat-heading .badge{margin-left:auto}
.chat-status{font-size:11px;color:var(--muted);padding:10px 24px;background:#fafcfb;border-bottom:1px solid var(--line)}
.chat-scroll{height:clamp(280px,46vh,580px);overflow-y:auto;padding:24px;background:#f8faf8;scrollbar-gutter:stable}
#chatMessages{display:flex;flex-direction:column;gap:18px}
.chat-empty{text-align:center;margin:auto;padding:40px 10px;color:var(--muted)}
.chat-empty>.empty-icon{color:#709e7c;margin-bottom:18px}
.chat-empty .icon{width:38px;height:38px}
.chat-empty h2{font-size:20px;color:var(--ink);margin-bottom:8px}
.chat-empty p{font-size:13px;line-height:1.8}
.chat-message{max-width:80%;min-width:180px;border:1px solid #d8e4db;background:#fff;border-radius:15px 15px 15px 3px;padding:15px 18px;align-self:flex-start;overflow-wrap:anywhere}
.chat-message.outgoing{align-self:flex-end;background:#eaf6eb;border-color:#d3e6d5;border-radius:15px 15px 3px 15px}
.chat-message-author{font-size:12px;font-weight:600;color:#397148;margin-bottom:8px}
.chat-message-text{font-size:14px;line-height:1.65;white-space:pre-wrap}
.chat-message-meta{display:flex;gap:8px 14px;justify-content:space-between;flex-wrap:wrap;font-size:10px;color:var(--muted);margin-top:10px}
.chat-message-error{font-size:12px;color:#91552c;margin:10px 0 0;line-height:1.5}
.chat-message .btn{margin-top:12px}
.chat-reply-label{font-size:11px;color:var(--muted);border-left:2px solid #a9d1b1;padding-left:8px;margin-bottom:8px}
.chat-task-link{display:inline-block;color:#277b3b;font-size:12px;margin-top:10px}
.chat-compose{padding:20px 24px;border-top:1px solid var(--line)}
.chat-compose label{display:block;font-size:12px;font-weight:600;margin-bottom:9px}
.chat-compose textarea{display:block;width:100%;min-height:90px;resize:vertical;border:1px solid var(--line);border-radius:10px;padding:12px 14px;background:#fafcfb;font:inherit;font-size:14px;line-height:1.6;color:var(--ink)}
.chat-compose textarea:focus{outline:2px solid #c4e5cb;border-color:#86b892}
.chat-compose-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px}
.chat-compose .error:empty{display:none}
.chat-compose .error{margin-top:12px}
.chat-admin-note{padding:18px 24px;font-size:13px;border-top:1px solid var(--line);line-height:1.7}
.chat-footnote{margin-top:14px}
.chat-older{margin:0 auto 22px;display:block}
.chat-older[hidden]{display:none}
@media(max-width:740px){.sidebar{flex-wrap:wrap;gap:16px}.sidebar nav{display:flex;order:3;width:100%;gap:8px;margin-top:0}.sidebar nav .nav-label{display:none}button.nav-item{margin:0;padding:10px 12px;font-size:12px;justify-content:center}.chat-heading{padding:18px;gap:10px}.chat-heading .badge{display:none}.chat-heading strong{font-size:14px}.chat-status{padding:9px 18px}.chat-scroll{padding:16px;height:42vh;min-height:270px}.chat-message{max-width:94%;padding:13px 14px}.chat-compose{padding:16px}.chat-compose-bottom>.small{font-size:10px;max-width:110px}.chat-compose .btn{padding:11px 14px}.chat-admin-note{padding:16px}}

/* Client case, referral rewards and payment reminders. */
.btn.danger{background:#b63333;color:#fff;border:1px solid #b63333}
.btn.danger:hover{background:#952727;border-color:#952727}
.referral-banner{display:grid;grid-template-columns:1.25fr 1fr;background:#e8f5e9;border:1px solid #d0e6d4;border-radius:22px;overflow:hidden;margin-bottom:34px;isolation:isolate}
.referral-copy{padding:30px 0 30px 32px;position:relative;z-index:1}
.referral-eyebrow{display:flex;gap:8px;align-items:center;color:#4e7756;font-size:12px;font-weight:600;margin-bottom:14px}
.referral-eyebrow .icon{width:17px;height:17px}
.referral-copy h2{font-size:clamp(24px,2.5vw,34px);line-height:1.12;letter-spacing:-.9px;margin-bottom:16px;color:#173721}
.referral-copy h2 span{color:#197539}
.referral-lead{font-size:14px;color:#46624d;margin-bottom:18px}
.referral-lead strong{color:#194b28;white-space:nowrap}
.referral-rewards{display:flex;gap:0;margin-bottom:22px}
.referral-rewards>div{padding:0 15px;border-left:1px solid #bad8c2;min-width:0}
.referral-rewards>div:first-child{padding-left:0;border-left:0}
.referral-rewards strong{font-size:19px;display:block;letter-spacing:-.5px;white-space:nowrap;color:#194b28}
.referral-rewards span{font-size:10px;display:block;color:#54755c;max-width:118px;margin-top:3px}
.referral-action{display:flex;gap:16px;align-items:center}
.referral-action .btn{font-size:13px;padding:10px 14px;min-height:42px}
.referral-action>span{font-size:10px;line-height:1.6;color:#54755c}
.referral-art{position:relative;min-width:0;display:flex;align-items:center;overflow:hidden}
.referral-art img{width:135%;height:100%;max-height:365px;object-fit:cover;object-position:center;margin-left:-16%;mix-blend-mode:multiply}
.case-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:22px;margin-top:22px;align-items:start}
.case-grid .panel-title{margin-bottom:18px}
.stage-title{font-size:21px;font-weight:650;line-height:1.4;margin-bottom:9px;color:#225732;overflow-wrap:anywhere}
.stage-panel>p{margin-bottom:18px}
.hearing-panel{height:100%;background:linear-gradient(135deg,#fff,#f6faf7)}
.hearing-date{font-size:23px;font-weight:600;margin:0 0 10px;line-height:1.4}
.hearing-panel>p{margin-bottom:0}
.stage-history{border-top:1px solid var(--line);padding-top:15px;font-size:13px}
.stage-history summary{cursor:pointer;color:#356b45;font-weight:600;padding:3px 0}
.stage-history summary:focus-visible{outline:3px solid #74be80;outline-offset:4px}
.stage-history summary>span{margin-left:8px;color:var(--muted);font-size:11px;font-weight:400}
.stage-history ol{list-style:none;margin:24px 0 0 5px;padding:0}
.stage-history li{position:relative;padding:0 0 22px 23px;border-left:1px solid #cee0d2}
.stage-history li:last-child{padding-bottom:0;border-left-color:transparent}
.stage-history li:before{content:'';position:absolute;width:9px;height:9px;border-radius:50%;background:#d3e2d6;left:-5px;top:5px;border:2px solid #fff;box-shadow:0 0 0 1px #d3e2d6}
.stage-history li.latest:before{background:#249749;box-shadow:0 0 0 1px #249749}
.stage-history li strong{display:block;font-size:13px;font-weight:500;overflow-wrap:anywhere}
.stage-history time{display:block;font-size:11px;color:var(--muted);margin-top:5px}
.lawyer-contacts{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:23px 0}
.lawyer-contacts p{margin:6px 0 0;font-size:14px;font-weight:500}
.lawyer-phone{display:block;color:#226d39;font-weight:600;font-size:15px;text-underline-offset:4px;margin-top:6px;white-space:nowrap}
.payment-panel{display:flex;align-items:center;gap:22px;padding:27px 29px;margin-top:22px;position:relative;border-left:4px solid #79a889;background:#fbfefc}
.payment-icon{width:54px;height:54px;display:grid;place-items:center;border-radius:16px;color:#356c46;background:#e5f0e8;flex-shrink:0;align-self:flex-start}
.payment-icon .icon{width:26px;height:26px}
.payment-main{flex:1;min-width:0}
.payment-main>.eyebrow{font-size:10px;color:#66866f;margin-bottom:7px}
.payment-main h2{font-size:22px;margin-bottom:6px}
.payment-date{font-size:17px;font-weight:600;display:flex;flex-wrap:wrap;gap:6px 20px}
.payment-amount{color:#366d45}
.payment-monthly{font-size:11px;color:var(--muted);margin-top:5px}
.payment-main p{font-size:12px;color:#627568;max-width:520px;margin:12px 0 0;line-height:1.7}
.payment-panel>.btn{font-size:12px;min-height:40px;padding:9px 12px}
.payment-panel.near{background:#fffdf5;border-color:#e4dcb8;border-left-color:#ccb05d}
.payment-panel.near .payment-icon{background:#f6efd4;color:#987126}
.payment-panel.soon{background:#fff9ed;border-color:#edce98;border-left-color:#d29b3b}
.payment-panel.soon .payment-icon{background:#fae7c5;color:#9d661b}
.payment-panel.soon h2{color:#8a5514}
.payment-panel.today,.payment-panel.check{background:#fff5ef;border-color:#edb99f;border-left-color:#cb7542}
.payment-panel.today .payment-icon,.payment-panel.check .payment-icon{background:#fbe0d2;color:#ad5427}
.payment-panel.today h2,.payment-panel.check h2{color:#a55129}
.payment-panel.empty{border-left-color:#b8c4bc;background:#fff}
.payment-past{font-size:11px;color:#8a693c;margin-top:12px;max-width:550px}
.dialog-form p{margin:0}
.dialog-copy{line-height:1.8;font-size:14px}
.referral-dialog-rewards{background:#eef8f0;border-radius:12px;padding:18px;display:grid;gap:12px;font-size:13px}
.referral-dialog-rewards strong{color:#26743b;display:inline-block;min-width:84px}
.complaint-intro{background:#fff5f3;border:1px solid #f0dad4;border-radius:11px;padding:16px;font-size:14px;line-height:1.7;color:#815049}
.complaint-dialog textarea{display:block;width:100%;font:inherit;font-weight:400;color:var(--ink);line-height:1.7;resize:vertical;min-height:135px;padding:12px 14px;margin-top:9px;border:1px solid var(--line);border-radius:10px;background:#fbfdfb}
.complaint-dialog textarea:focus{outline:3px solid #00990019;border-color:var(--green)}
.complaint-message.outgoing{background:#fff2ee;border-color:#e8ccc3}
.complaint-message .chat-message-author{color:#a04f3c}
.reminder-symbol{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:#fff0d7;color:#a87325}
.reminder-symbol .icon{width:28px;height:28px}
.payment-reminder .dialog-head{border-bottom-color:#eee3ce}
@media(max-width:1200px){.referral-banner{grid-template-columns:1.4fr 1fr}.referral-copy{padding:25px 0 25px 25px}.referral-action{align-items:flex-start;flex-direction:column;gap:10px}.referral-action>span br{display:none}.referral-rewards>div{padding:0 10px}.referral-rewards strong{font-size:17px}.payment-panel{flex-wrap:wrap}.payment-panel>.btn{margin-left:76px}.case-grid{grid-template-columns:1.2fr 1fr}}
@media(max-width:900px) and (min-width:741px){.referral-banner{grid-template-columns:1fr}.referral-art{display:none}.referral-copy{padding:26px}.referral-action{flex-direction:row;align-items:center}.case-grid{grid-template-columns:1fr}.lawyer-contacts{grid-template-columns:1fr 1fr}}
@media(max-width:740px){.referral-banner{grid-template-columns:1fr;margin-bottom:27px;border-radius:18px;position:relative}.referral-copy{padding:25px 21px 21px}.referral-copy h2{font-size:29px;max-width:300px}.referral-lead{max-width:230px;font-size:13px;line-height:1.8}.referral-rewards{position:relative;z-index:2;display:grid;grid-template-columns:1fr 1fr 1fr;margin:100px -1px 20px;padding:15px 0;background:#e2f1e5e8;border-radius:10px}.referral-rewards>div{padding:0 10px!important}.referral-rewards strong{font-size:16px}.referral-rewards span{font-size:9px}.referral-art{position:absolute;right:-30px;top:135px;width:250px;height:167px;z-index:0}.referral-art img{width:100%;height:100%;margin:0;object-fit:contain}.referral-action{gap:11px;flex-direction:column;align-items:flex-start}.referral-action>.btn{width:100%}.referral-action>span{font-size:10px}.case-grid{grid-template-columns:1fr;gap:16px;margin-top:16px}.stage-title{font-size:19px}.hearing-date{font-size:21px}.lawyer-contacts{grid-template-columns:1fr;gap:19px}.payment-panel{gap:15px;padding:22px 19px;margin-top:16px}.payment-icon{width:40px;height:40px;border-radius:12px}.payment-icon .icon{width:22px;height:22px}.payment-main h2{font-size:20px}.payment-main>.eyebrow{font-size:9px;letter-spacing:1px}.payment-date{font-size:15px}.payment-panel>.btn{margin-left:55px}.payment-reminder .dialog-actions{flex-direction:column-reverse}.complaint-dialog .dialog-actions{flex-direction:column-reverse}.page-heading>.btn.danger{width:auto;min-height:38px;font-size:12px;padding:8px 12px}.dialog-head h2{font-size:19px}.referral-dialog-rewards strong{display:block}.chat-message.complaint-message{max-width:90%}}

@media(max-width:740px){.referral-art{top:178px}.referral-rewards{margin-top:133px}}

.payment-panel{display:grid;grid-template-columns:54px minmax(0,1fr) auto}
@media(max-width:1200px){.payment-panel{grid-template-columns:54px minmax(0,1fr)}.payment-panel>.btn{grid-column:2;margin-left:0;justify-self:start}}
@media(max-width:740px){.payment-panel{grid-template-columns:40px minmax(0,1fr)}}

/* Larger referral copy requested by the client: keep terms and captions readable. */
.referral-eyebrow{font-size:16px;color:#335c3e;line-height:1.5}
.referral-eyebrow .icon{width:20px;height:20px}
.referral-lead{font-size:18px;color:#365c40;line-height:1.6;max-width:none}
.referral-rewards strong{font-size:24px}
.referral-rewards span{font-size:15px;line-height:1.45;max-width:170px;color:#365c40}
.referral-action .btn{font-size:16px;min-height:48px;padding:11px 16px}
.referral-action>span{font-size:15px;line-height:1.5;color:#365c40}
.referral-action{flex-wrap:wrap;gap:14px}
.referral-action>span br{display:none}
.referral-art img{max-height:none}
@media(max-width:1200px){.referral-rewards strong{font-size:22px}.referral-copy{padding-right:18px}.referral-rewards>div{padding:0 12px}}
@media(max-width:900px) and (min-width:741px){.referral-copy{padding:26px}.referral-rewards span{font-size:15px}.referral-rewards strong{font-size:24px}}
@media(max-width:740px){.referral-copy{padding:25px 21px 20px}.referral-eyebrow{font-size:16px}.referral-lead{font-size:18px}.referral-rewards{display:grid;grid-template-columns:1fr;margin:23px 0;gap:14px;padding:17px;background:#dbeedf;border-radius:12px}.referral-rewards>div{border-left:0;display:grid;grid-template-columns:110px minmax(0,1fr);align-items:center;gap:10px;padding:0!important}.referral-rewards strong{font-size:23px}.referral-rewards span{font-size:15px;margin:0;max-width:none}.referral-action>span{font-size:15px}.referral-action>.btn{font-size:16px}.referral-art{position:static;width:100%;height:190px;display:flex;justify-content:center;margin-top:-4px}.referral-art img{width:285px;height:190px;object-fit:contain;margin:0}}
.chat-shell{height:100dvh;min-height:0;overflow:hidden}
.chat-shell .sidebar{height:100dvh}
.chat-shell .main{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.chat-shell .topbar{height:auto;min-height:72px;padding:8px 24px;flex-shrink:0;gap:16px}
.chat-page-title h1{font-size:24px;color:var(--ink);margin:0;line-height:1.2}
.chat-page-title p{font-size:14px;line-height:1.4;margin:3px 0 0;color:var(--muted)}
.chat-shell .content{width:100%;max-width:none;padding:16px 24px;flex:1;min-height:0;display:flex}
.chat-shell .chat-panel{width:100%;max-width:none;display:flex;flex-direction:column;min-height:0;overflow:hidden}
.chat-shell .chat-heading{padding:12px 22px;flex-shrink:0}
.chat-shell .chat-heading p{font-size:13px}
.chat-shell .chat-status{font-size:12px;padding:7px 22px;flex-shrink:0}
.chat-shell .chat-scroll{flex:1;height:auto;min-height:0;overscroll-behavior:contain}
.chat-shell .chat-compose{padding:12px 20px;flex-shrink:0}
.chat-shell .chat-compose label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.chat-shell .chat-compose textarea{min-height:52px;height:64px;max-height:130px;font-size:16px;resize:vertical}
.chat-shell .chat-compose-bottom{margin-top:9px}
.chat-shell .chat-message-text{font-size:16px}
.chat-shell .chat-message-author{font-size:14px}
.chat-shell .chat-message-meta{font-size:12px}
.record-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
.record-button{font-size:14px;min-height:42px}
.record-button.recording{color:#b72a2a;border-color:#bd3838;background:#fff0ef}
.record-status{font-size:12px;color:var(--muted)}
.audio-preview{display:flex;gap:12px;align-items:center;padding:10px 12px;background:#edf7ef;border-radius:12px;margin-top:8px}
.audio-preview[hidden]{display:none}
.audio-preview>div{flex:1;min-width:0}
.audio-preview strong{font-size:13px;display:block;margin-bottom:5px}
.audio-preview audio{display:block;height:36px;max-width:100%;width:350px}
.chat-audio{display:block;width:310px;max-width:100%;height:44px;margin-top:8px}
@media(max-width:740px){
 .chat-shell{display:flex;flex-direction:column}
 .chat-shell .sidebar{height:auto;flex-shrink:0;padding:10px 14px;gap:8px}
 .chat-shell .sidebar .brand-name{font-size:18px}
 .chat-shell .sidebar .brand-subtitle{display:none}
 .chat-shell .sidebar nav{gap:5px}
 .chat-shell .sidebar .nav-item{padding:7px 10px;font-size:12px}
 .chat-shell .main{flex:1}
 .chat-shell .topbar{min-height:75px;padding:10px 14px;gap:8px}
 .chat-page-title h1{font-size:20px}
 .chat-page-title p{font-size:12px;margin-top:4px}
 .chat-shell .topbar .btn{padding:10px;font-size:12px;min-height:36px}
 .chat-shell .content{padding:0 8px 8px}
 .chat-shell .chat-heading{display:none}
 .chat-shell .chat-status{font-size:10px;padding:6px 12px}
 .chat-shell .chat-scroll{padding:12px}
 .chat-shell .chat-compose{padding:10px}
 .chat-shell .chat-compose textarea{height:52px;min-height:48px}
 .record-controls{gap:4px}
 .record-status{font-size:10px}
 .record-button{padding:8px!important;font-size:12px}
 .chat-shell .chat-message{max-width:96%;padding:12px}
 .chat-shell .chat-message-meta{font-size:10px}
 .chat-audio{width:250px}
}

.chat-reply-label{margin:0 0 10px;padding:7px 10px;background:#f2f7f3;border-left:3px solid #a9d1b1;border-radius:0 7px 7px 0;font-size:13px;line-height:1.5}
.chat-reply-label>span{display:block;color:#397148;font-size:11px;font-weight:600;margin-bottom:3px}
.complaint-message .chat-reply-label{background:#fff4ef;border-color:#d59682}
/* Multiple agreements, local payment receipts and expanded client overview. */
.admin-shell .content{max-width:2100px;padding-left:24px;padding-right:24px}
.clients-table{min-width:1290px;font-size:13px}
.clients-table th{white-space:normal;max-width:140px;line-height:1.5;font-size:11px}
.clients-table td{vertical-align:top;white-space:normal;min-width:75px}
.clients-table td:first-child{min-width:175px;max-width:235px}
.clients-table td:nth-child(2){min-width:190px}
.clients-table td:nth-child(7){min-width:110px}
.clients-table td:nth-child(8){min-width:135px}
.clients-table .row-actions{display:grid;grid-template-columns:repeat(2,36px);justify-content:start}
.table-contract+.table-contract{border-top:1px solid var(--line);margin-top:12px;padding-top:12px}
.stat-number{font-size:21px;font-variant-numeric:tabular-nums}
.stat-number.attention{color:#ba3030}
.contract-heading,.section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:28px 0 16px}
.contract-heading h2,.section-heading h2{margin:4px 0 0;font-size:24px}
.contract-heading+.case-grid{margin-top:0}
.contract-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.contract-card{padding:26px}
.contract-card h3{font-size:22px;margin:10px 0 20px}
.contract-stage{display:flex;gap:10px;align-items:center;color:#245c36;font-weight:600;font-size:17px}
.contract-payment{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:24px 0}
.contract-payment dt{color:var(--muted);font-size:13px;margin-bottom:6px}
.contract-payment dd{margin:0;font-size:19px;font-weight:600}
.binding-preview+.binding-preview{border-top:1px solid var(--line);margin-top:20px;padding-top:20px}
.receipts-dialog{width:min(700px,calc(100vw - 32px))}
#receiptForm{display:grid;gap:18px}
select{width:100%;font:inherit;border:1px solid var(--line);background:#fbfdfb;border-radius:9px;padding:12px;color:var(--text)}
.receipt-notice{color:var(--muted);font-size:13px;line-height:1.7}
.receipt-history{border-top:1px solid var(--line);padding-top:18px;margin-top:16px}
.receipt-item{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line)}
.receipt-item strong{font-size:20px}
.receipt-item .badge{margin-top:8px}
@media(max-width:900px){.contract-grid{grid-template-columns:1fr}.contract-heading{align-items:flex-start;flex-direction:column}.admin-shell .content{padding:24px 18px}}
@media(max-width:520px){.contract-card{padding:20px}.contract-payment{grid-template-columns:1fr}.receipt-item{align-items:flex-start;flex-direction:column}.metric-strip{flex-wrap:wrap}.contract-heading .btn{width:100%;white-space:normal}}

/* Requests, notifications and document exchange */
.notifications-button{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:10px 14px;color:var(--ink);font:inherit;font-size:14px;cursor:pointer;flex-shrink:0}
.unread-badge{background:#bf3033;color:#fff;border-radius:20px;min-width:21px;padding:2px 5px;text-align:center;font-size:12px;font-weight:700}.unread-badge[hidden]{display:none}
.topbar{flex-wrap:wrap}.notification-list{display:grid;gap:10px;margin-top:16px}.notification-item{text-align:left;border:1px solid var(--line);border-radius:12px;padding:15px;background:#fff;display:grid;gap:7px;color:var(--ink);font:inherit;cursor:pointer}.notification-item.is-unread{background:#eef8ef;border-left:4px solid #16963e}.notification-item span{font-size:14px;line-height:1.5}.notification-item time{font-size:12px;color:var(--muted)}
.request-controls{display:flex;gap:14px;align-items:end;padding:12px 22px;background:#fff;border-bottom:1px solid var(--line);flex-shrink:0}.request-controls label{flex:1;min-width:0;font-size:12px;color:var(--muted)}.request-controls select{width:100%;display:block;margin-top:5px;border:1px solid var(--line);border-radius:9px;padding:10px;background:#f8fbf9;color:var(--ink);font-size:14px;min-width:0}.request-context{display:flex;gap:9px 20px;flex-wrap:wrap;align-items:center;padding:9px 22px;font-size:13px;flex-shrink:0;border-bottom:1px solid var(--line)}.request-context p{margin:0;width:100%}.request-context a{color:#167a36}.chat-shell .chat-heading{padding:12px 22px}.chat-shell .chat-heading p{margin-top:3px}.chat-compose textarea:disabled{background:#eef1ef;cursor:not-allowed}.metric-action{border:0;background:transparent;text-align:left;cursor:pointer;font:inherit;color:inherit}.metric-action:hover{background:#eef8ef;border-radius:8px}.stat-link{font:inherit;color:inherit;border:0;padding:0;text-align:left;background:transparent;cursor:pointer}.stat-link:hover{text-decoration:underline}.attention{color:#b63031}
.request-filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:24px}.attention-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.attention-card{padding:24px;min-width:0}.attention-card.is-overdue{border-color:#e8b0a8}.attention-card-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px}.attention-card h2{margin:17px 0 8px;font-size:20px}.request-subject{line-height:1.5;overflow-wrap:anywhere;margin-bottom:18px}.attention-details{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:0 0 22px}.attention-details dt{color:var(--muted);font-size:12px;margin-bottom:5px}.attention-details dd{margin:0;font-size:14px;line-height:1.4}.attention-actions{display:flex;gap:10px;flex-wrap:wrap}.service-empty{padding:32px;text-align:center;color:var(--muted)}.service-empty h2,.service-empty h3{color:var(--ink);margin-bottom:10px}
.documents-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.document-card{padding:24px;min-width:0}.document-card h2{font-size:20px;margin:17px 0 10px}.document-instructions{white-space:pre-wrap;line-height:1.5;color:var(--muted);margin-bottom:20px}.document-status.needed{background:#edf1ee;color:#59685e}.document-status.review{background:#e9f1fb;color:#32638e}.document-status.changes{background:#fff0e9;color:#a94728}.document-correction{background:#fff3ed;border:1px solid #f3d1bc;border-radius:10px;padding:14px;margin:15px 0;color:#883c21}.document-correction p{margin-top:7px;white-space:pre-wrap}.document-versions{margin-top:20px}.document-versions summary{font-size:13px;color:var(--muted);cursor:pointer}.document-version{padding:14px 0;border-bottom:1px solid var(--line);display:flex;gap:12px;justify-content:space-between;align-items:center;overflow-wrap:anywhere;font-size:13px}.document-version a{color:#17783d}.shared-documents{margin-top:34px}.shared-document{display:flex;gap:18px;align-items:center;padding:22px;margin-bottom:14px}.shared-document>div:nth-child(2){flex:1;min-width:0}.shared-document h3{font-size:17px;margin-bottom:6px;overflow-wrap:anywhere}
@media(max-width:1100px){.attention-grid,.documents-grid{grid-template-columns:1fr}.notification-label{display:none}.notifications-button{padding:9px}.topbar-right{display:none}}
@media(max-width:740px){.request-controls{padding:8px 12px;gap:8px}.request-controls .btn{font-size:12px;padding:10px;min-height:40px}.request-controls select{font-size:12px;padding:9px}.request-context{padding:8px 12px;font-size:11px;gap:5px 10px}.request-context .badge{font-size:10px}.chat-shell .topbar{min-height:65px;flex-wrap:nowrap}.chat-page-title{min-width:0}.chat-page-title h1{font-size:20px}.chat-page-title p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:155px}.chat-shell .topbar .notifications-button{padding:7px}.chat-shell .topbar .notifications-button .icon{width:17px}.request-filters{gap:7px}.request-filters .btn{font-size:12px;padding:10px}.attention-card,.document-card{padding:18px}.attention-details{gap:15px}.shared-document{flex-wrap:wrap;padding:17px;gap:12px}.shared-document .btn{width:100%}.document-version{align-items:start;flex-direction:column}.notification-item{padding:12px}.notifications-dialog{max-width:calc(100vw - 20px)}}

/* Completed request ratings */
.request-rating{padding:10px 22px;border-top:1px solid var(--line);background:#f5faf6;flex:0 1 auto;overflow-y:auto;max-height:54dvh}
.rating-title h2{font-size:20px;margin:0 0 4px}.rating-title p{font-size:13px;color:var(--muted);margin:0 0 14px}
.rating-scales{display:grid;grid-template-columns:1fr 1fr;gap:22px}.rating-scale{border:0;padding:0;margin:0;min-width:0}.rating-scale legend{font-size:15px;font-weight:650;padding:0;margin-bottom:10px}
.rating-options{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:5px}.rating-options label{position:relative;cursor:pointer;min-width:0}.rating-options input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.rating-options span{display:grid;place-items:center;height:40px;border:1px solid #c5d8ca;border-radius:9px;background:#fff;font-size:16px;font-weight:600;color:#294b34;pointer-events:none}.rating-options input:checked+span{background:#168237;border-color:#168237;color:#fff;box-shadow:0 0 0 2px #d4ecd9}.rating-options input:focus-visible+span{outline:3px solid #183f27;outline-offset:2px}.rating-options input:disabled+span{opacity:.65}
.rating-ends{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted);margin-top:7px}.rating-submit{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:14px}.rating-submit .error{margin:0}.rating-submit .btn{margin-left:auto;white-space:nowrap}
.rating-summary{display:flex;flex-wrap:wrap;gap:8px 22px;font-size:14px;margin:6px 0 12px}.rating-summary>strong{width:100%;font-size:15px}.rating-summary b{color:#176d32;margin-left:6px}.rating-saved{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:13px;color:#176d32}.rating-stat{display:grid;gap:5px;min-width:135px}.rating-stat .sub{margin:0}.rating-stat strong{white-space:nowrap}
.lawyer-ratings-table{width:100%;min-width:640px}.lawyer-ratings-table th,.lawyer-ratings-table td{padding:18px 20px}.lawyer-ratings-table .is-selected{background:#edf8ef}.rating-score{font-size:18px;font-weight:650;color:#176d32;white-space:nowrap}.ratings-explanation{max-width:920px;margin:-10px 0 24px;font-size:14px;line-height:1.6}.lawyer-requests{margin-top:30px}
@media(max-width:1100px){.rating-scales{grid-template-columns:1fr;gap:14px}}
@media(max-width:740px){.request-rating{padding:12px;max-height:53dvh}.rating-title h2{font-size:18px}.rating-title p{font-size:12px;margin-bottom:10px}.rating-scale legend{font-size:14px;margin-bottom:7px}.rating-options{grid-template-columns:repeat(10,minmax(0,1fr));gap:3px}.rating-options span{height:36px;font-size:14px;border-radius:6px}.rating-ends{font-size:11px}.rating-submit{margin-top:10px;flex-wrap:wrap}.rating-submit .btn{font-size:13px;padding:10px 13px;min-height:40px}.admin-shell .sidebar nav{flex-wrap:wrap}.lawyer-ratings-table th,.lawyer-ratings-table td{padding:14px}.rating-summary{font-size:13px;gap:7px 15px}}

.clients-table .rating-stat strong{display:inline}

@media(max-width:740px){.lawyer-ratings-table{min-width:0}.lawyer-ratings-table thead{display:none}.lawyer-ratings-table tbody{display:block}.lawyer-ratings-table tr{display:grid;grid-template-columns:1fr 1fr;padding:12px;border-bottom:1px solid var(--line)}.lawyer-ratings-table td{display:block;padding:10px;border:0;min-width:0}.lawyer-ratings-table td:first-child,.lawyer-ratings-table td:last-child{grid-column:1/-1}.lawyer-ratings-table td[data-label]::before{content:attr(data-label);display:block;font-size:12px;font-weight:400;color:var(--muted);margin-bottom:6px}.lawyer-ratings-table td strong{white-space:normal}.lawyer-ratings-table tr:last-child{border-bottom:0}}

@media(max-width:740px){.brand-mark{width:56px;height:56px;flex-basis:56px}.brand-mark>.login-logo{transform:scale(.5)}.brand{gap:10px}}


.btn.new-question-ready,.btn.new-question-ready:hover{color:#fff;border-color:#117a34;background:linear-gradient(110deg,#075c25 0%,#117a34 32%,#16813b 48%,#117a34 64%,#075c25 100%);background-size:260% 100%;box-shadow:0 0 0 3px #16813b18;animation:newQuestionGlow 4.8s ease-in-out infinite}
.btn.new-question-ready:hover{animation-play-state:paused}
.btn.new-question-ready:focus-visible{outline-color:#16813b}
.request-context .new-question-hint{color:#226838;font-weight:500}
@keyframes newQuestionGlow{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
@media(prefers-reduced-motion:reduce){.btn.new-question-ready,.btn.new-question-ready:hover{animation:none;background:#117a34}}

/* Compact saved rating keeps the remaining height available to messages. */
.request-rating .rating-summary{align-items:center;gap:6px 22px;margin:0}
.request-rating .rating-summary>strong{width:auto;font-size:14px}
.request-rating .rating-saved{margin-top:6px}
@media(max-width:740px){.chat-shell .topbar{min-height:60px;padding:6px 14px}.request-rating{padding:8px 12px}.request-rating .rating-summary{gap:5px 14px}.request-rating .rating-summary>strong{font-size:13px}}

/* Installable mobile cabinet. */
.pwa-login-button{width:100%;margin-top:20px}.pwa-intro{display:flex;gap:16px;align-items:center}.pwa-intro img{border-radius:16px;flex:none}.pwa-intro strong{font-size:19px}.pwa-intro p{margin:5px 0;color:var(--muted)}.pwa-settings section{padding:16px 0;border-top:1px solid var(--line)}.pwa-settings section h3{font-size:17px;margin:0 0 10px}.pwa-settings section p{line-height:1.55;margin:10px 0}.pwa-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.pwa-dialog{width:600px;max-width:calc(100vw - 24px)}.pwa-dialog .dialog-form{max-height:72dvh;overflow:auto}.pwa-settings .help{font-size:13px}
@media(display-mode:standalone){.sidebar{padding-top:max(20px,env(safe-area-inset-top))}.main{padding-bottom:env(safe-area-inset-bottom)}}
@media(max-width:740px){.pwa-actions .btn{width:100%;min-height:44px}.pwa-intro{align-items:flex-start}.audio-record-button{min-height:44px}.pwa-dialog .dialog-form{padding:16px}}

@media(max-width:740px){.shell:not(.admin-shell) .sidebar nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;min-width:0}.shell:not(.admin-shell) .sidebar .nav-item{min-width:0;padding:7px 2px;gap:4px;font-size:11px;flex-direction:column;line-height:1.2;text-align:center;min-height:54px}.shell:not(.admin-shell) .sidebar .nav-item .icon{width:18px;height:18px}.record-button{min-height:44px}}

#pwaPreviewLabel{display:flex;align-items:center;gap:10px;font-size:14px;line-height:1.5}#pwaPreviewLabel[hidden]{display:none}#pwaPreview{width:20px;height:20px;margin:0;flex:none;accent-color:#078322}

/* Compact controls for a lawyer-initiated conversation. */
#outreachActions{flex:none;padding:10px 22px;border-top:1px solid var(--border);background:#f0f8f1}
#outreachActions[hidden],#outreachActions:empty{display:none}
.outreach-action-buttons{display:flex;gap:10px;flex-wrap:wrap}.outreach-action-buttons .btn{min-height:38px}
.outreach-message-label{font-weight:700;color:#197c3b;margin-bottom:8px;font-size:14px}
.outreach-progress{margin:0;padding:8px 0;color:#246c38;font-size:14px}
@media(max-width:600px){#outreachActions{padding:8px 12px}.outreach-action-buttons{gap:6px}.outreach-action-buttons .btn{font-size:13px;padding:8px 10px}}

/* Individual working calendar and clearly labelled automatic acknowledgement. */
.office-notice{padding:12px 14px;margin-bottom:12px;border:1px solid #e4d8ad;border-radius:10px;background:#fff9e9;color:#655324;font-size:14px;line-height:1.5}
.chat-auto-reply{margin-top:14px;padding:12px;border-top:1px solid #c8d9cd;color:#526258;font-size:14px;line-height:1.5}.chat-auto-reply strong{font-size:13px}.chat-auto-reply p{margin:5px 0 0}
