/* Client workspaces, guided intake and staff tools. */
.nav-link span,.bottom-nav small,.menu-card strong,.btn,.filter-tab{word-break:normal;overflow-wrap:normal;hyphens:none}.nav-link{min-width:0}.nav-link>span:first-of-type{white-space:normal;line-height:1.35}.sidebar-help .text-btn{white-space:normal}.account>a{flex-shrink:0}.staff-shell .sidebar-bottom{margin-top:auto}.main,.content,#page,.main-stack,.rail-stack{min-width:0}.card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:20px}.card-actions .btn{max-width:100%;white-space:normal;text-align:center}.back-link{margin-bottom:22px}.back-link>.icon{transform:rotate(180deg)}
.client-identity{display:flex;align-items:center;gap:18px;margin-bottom:26px}.identity-main{min-width:0;flex:1}.identity-main h1{font-size:28px;line-height:1.25;margin:5px 0 10px;overflow-wrap:break-word}.identity-main p:last-child{display:flex;gap:9px;flex-wrap:wrap;color:var(--muted);font-size:13px}.identity-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end;max-width:400px}.identity-actions>.eligibility{flex-basis:auto}.card-tabs{display:flex;gap:24px;overflow-x:auto;border-bottom:1px solid var(--border,#e9e5e5);margin-bottom:28px;scrollbar-width:thin;padding:0 2px}.card-tabs a{flex:0 0 auto;display:block;padding:0 1px 15px;color:var(--muted);font-size:14px;font-weight:600;border-bottom:3px solid transparent;white-space:nowrap}.card-tabs a.active{color:var(--red,#c8202f);border-bottom-color:var(--red,#c8202f)}.client-work-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(270px,1fr);gap:24px;align-items:start}.client-panel>.page-heading h1{font-size:21px}.client-panel .page-heading p{font-size:13px}.client-facts{display:grid;grid-template-columns:1fr 1fr;gap:22px 24px;margin:0}.client-facts>div{min-width:0}.client-facts dt{font-size:11px;line-height:1.5;color:var(--muted);margin-bottom:5px}.client-facts dd{font-size:13px;line-height:1.6;margin:0;font-weight:600;overflow-wrap:break-word}.client-facts dd small{display:block;color:var(--muted);font-weight:400}.eligibility{display:inline-flex;align-items:center;gap:6px;border-radius:8px;padding:6px 9px;background:#f3f2f2;color:#777;font-size:11px;line-height:1.4;font-weight:600;width:max-content;max-width:100%;white-space:normal}.eligibility>.icon{width:14px;height:14px;flex:0 0 14px}.eligibility.green{background:#eaf5ee;color:#287246}.eligibility.red{background:#fdebee;color:#b82438}.eligibility.amber{background:#fff4dc;color:#976819}.result-main>.eligibility{margin-top:8px}.passport-card .badge{white-space:normal}.comments-list{margin-top:20px}.comment{padding:17px 0;border-top:1px solid #eee9e9}.comment header{display:flex;gap:10px;justify-content:space-between;margin-bottom:10px}.comment header strong{font-size:12px}.comment time{color:var(--muted);font-size:10px;white-space:nowrap}.comment p{font-size:13px;line-height:1.65}.comment>.muted{display:block;font-size:10px;margin-top:10px}.comments-panel>form textarea{min-height:100px}.client-filter-selects{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))!important}.client-filter-selects>label{min-width:0}.client-filter-selects input,.client-filter-selects select{min-width:0;width:100%}
.intake-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:24px;align-items:start}.intake-steps{position:sticky;top:24px;padding:22px 16px}.intake-steps>h2{padding:0 8px;margin-bottom:20px}.intake-steps>.eyebrow{padding:0 8px}.intake-steps>button:not(.text-btn){display:flex;align-items:center;text-align:left;gap:10px;width:100%;background:transparent;border:0;border-radius:10px;padding:12px 9px;color:var(--muted);font:inherit;font-size:12px;cursor:pointer;line-height:1.5}.intake-steps>button>span{display:grid;place-items:center;flex-shrink:0;width:25px;height:25px;border:1px solid #e6e2e2;border-radius:50%;font-size:11px}.intake-steps>button>span>.icon{width:13px;height:13px}.intake-steps>button.active{background:#fcf0f1;color:var(--red,#c8202f)}.intake-steps>button.active>span{background:var(--red,#c8202f);color:white;border-color:var(--red,#c8202f)}.intake-steps>.text-btn{margin:15px 8px 0}.intake-form-card>h2{font-size:24px;line-height:1.3}.intake-form-card textarea{min-height:100px;resize:vertical}.intake-controls{display:flex;justify-content:space-between;gap:14px;border-top:1px solid #eee6e6;padding-top:24px;margin-top:25px}.intake-controls>.btn{white-space:normal}.intake-read-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:25px}.intake-summary{border:1px solid #ece6e6;border-radius:12px;padding:18px;min-width:0}.intake-summary summary{cursor:pointer;font-size:14px;line-height:1.5}.intake-summary summary .badge{font-size:10px;margin-left:6px}.intake-summary dl{margin:15px 0 0}.intake-summary dl>div,.revision-values>div{margin:13px 0}.intake-summary dt,.revision-values dt{font-size:11px;color:var(--muted);line-height:1.5}.intake-summary dd,.revision-values dd{font-size:12px;line-height:1.7;margin:4px 0 0}.intake-history{margin-top:25px;border-top:1px solid #eee;padding-top:20px;font-size:13px}.intake-history button{width:100%;background:none;text-align:left;cursor:pointer;border:0;border-bottom:1px solid #eee;color:inherit;font:inherit}.decision-choices{display:grid;gap:12px;margin-bottom:25px}.decision-option{display:flex;gap:12px;align-items:center;padding:15px;border:1px solid #e9e3e3;border-radius:12px;cursor:pointer}.decision-option input{accent-color:var(--red,#c8202f);width:18px;height:18px;flex:0 0 18px}.decision-option .eligibility{font-size:14px;width:auto;background:transparent;padding:0}.decision-option.suitable:has(input:checked){border-color:#57a976;background:#eff8f1}.decision-option.unsuitable:has(input:checked){border-color:#d85968;background:#fff4f5}.decision-option.needs_lawyer:has(input:checked){border-color:#d9b35c;background:#fffaf0}.office-attest{padding:17px;background:#eff7f1;border-radius:10px;font-size:13px;line-height:1.6}.schedule-note{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:24px 0}.schedule-note h3{font-size:13px;line-height:1.6}.schedule-note p{font-size:12px;color:var(--muted);margin-top:6px}.payment-row .pay-date>div{min-width:0}.payment-row .pay-date strong{line-height:1.45;white-space:normal}.payment-row .pay-date>.amount{white-space:nowrap}.payment-row .icon-box{flex-shrink:0}
.task-toolbar{margin-bottom:25px}.workflow-filters{display:flex;flex-wrap:wrap;gap:14px;align-items:end}.workflow-filters>label{flex:1;min-width:150px}.workflow-filters>.btn{margin-bottom:0}.task-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:20px;align-items:start}.task-board.many-days{display:flex;overflow-x:auto;padding-bottom:20px;scroll-snap-type:x proximity}.task-board.many-days>.task-day{flex:0 0 290px;scroll-snap-align:start}.task-day{background:#f0eeee;border-radius:15px;padding:14px;min-height:260px}.task-day>header{display:flex;align-items:center;gap:10px;padding:8px 4px 19px}.task-day>header>h2{font-size:14px}.task-day>header>span{font-size:11px;color:#888;background:white;border-radius:7px;padding:3px 7px}.task-day.overdue{background:#fae9ec}.task-day.overdue>header{color:#b82e41}.work-task{padding:18px;background:white;border:1px solid #eae5e5;border-radius:12px;margin-bottom:13px}.work-task:last-child{margin-bottom:0}.task-type{display:flex;gap:7px;align-items:center;font-size:10px;color:var(--muted);line-height:1.5;margin-bottom:12px}.task-type>.icon{width:14px;height:14px;flex-shrink:0}.task-type>time{margin-left:auto;font-size:11px;font-weight:600;color:#333}.work-task>h3{font-size:13px;line-height:1.6;margin-bottom:9px}.task-client{font-size:12px;font-weight:600;display:flex;align-items:center;gap:4px;margin:6px 0;color:var(--red,#c8202f)}.task-client>.icon{width:13px;height:13px}.work-task>p{margin:10px 0;line-height:1.7}.work-task>small{display:block;margin:12px 0}.task-controls{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.task-controls>.btn{font-size:10px;padding:8px 9px;min-height:33px}.work-task>.text-btn{margin-top:12px;font-size:10px}.day-empty{min-height:150px;display:grid;align-content:center;justify-items:center;gap:12px;color:#9c9999}.day-empty>.icon{width:26px;height:26px}.day-empty>p{font-size:12px}.rail-stack .work-task{background:#faf8f8}
.messenger{display:grid;grid-template-columns:300px minmax(0,1fr);background:#fff;border:1px solid #e8e2e2;border-radius:18px;overflow:hidden;height:min(740px,calc(100dvh - 215px));min-height:500px}.inbox{border-right:1px solid #ece5e5;min-width:0;display:flex;flex-direction:column}.inbox>header{padding:22px 18px 16px;border-bottom:1px solid #ece5e5}.inbox h2{font-size:15px;margin-bottom:16px}.inbox .search{background:#faf9f9;width:100%;min-width:0}.inbox .search input{min-width:0;width:100%}.inbox-items{overflow-y:auto;flex:1}.chat-filters{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}.chat-filters>button{border:0;padding:0 0 5px;background:none;cursor:pointer;color:var(--muted);font:inherit;font-size:10px;line-height:1.5}.chat-filters>button.active{border-bottom:2px solid #c8202f;color:#c8202f}.inbox-item{display:flex;gap:11px;align-items:center;padding:18px;border-bottom:1px solid #f3eded}.inbox-item.active{background:#fbf0f2}.inbox-item[hidden]{display:none}.inbox-item>.avatar{width:37px;height:37px;font-size:11px;flex:0 0 37px}.inbox-copy{min-width:0;flex:1}.inbox-copy strong{display:block;font-size:12px;line-height:1.5}.inbox-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:10px;margin-top:4px}.unread-count{background:#c8202f;color:white;border-radius:50%;font-size:9px;min-width:18px;height:18px;display:grid;place-items:center;flex-shrink:0}.conversation{display:flex;flex-direction:column;min-width:0;min-height:0;background:#fbf9f9}.conversation>.empty{margin:auto}.conversation-header{display:flex;align-items:center;gap:12px;padding:18px 24px;border-bottom:1px solid #ece5e5;background:white}.conversation-header h2{font-size:15px;line-height:1.4}.conversation-header p{font-size:10px;color:var(--muted);margin-top:4px;line-height:1.6}.conversation-header>div{flex:1}.chat-back{display:none}.chat-feed{flex:1;overflow-y:auto;min-height:0;padding:25px;display:flex;flex-direction:column;gap:15px}.chat-message{max-width:86%;background:white;border:1px solid #eae2e2;border-radius:14px 14px 14px 3px;align-self:flex-start;padding:13px 16px;min-width:140px}.chat-message.mine{background:#fce9ec;border-color:#f6d9de;align-self:flex-end;border-radius:14px 14px 3px 14px}.chat-message strong{font-size:10px;line-height:1.6;display:block}.chat-message strong>small{display:block;font-size:9px;font-weight:400;color:#9c8589}.chat-message p{font-size:13px;line-height:1.7;overflow-wrap:anywhere;margin-top:7px}.chat-message time{display:block;text-align:right;font-size:9px;color:var(--muted);margin-top:7px}.chat-system{display:flex;justify-content:center;align-items:start;gap:7px;font-size:10px;line-height:1.7;color:#8c777b;text-align:center;align-self:center;max-width:90%;padding:8px}.chat-system>.icon{width:14px;height:14px;flex:0 0 14px}.chat-compose{display:flex;align-items:end;gap:8px;background:white;border-top:1px solid #eae2e2;padding:16px 20px;position:relative}.chat-compose textarea{border:0!important;box-shadow:none!important;background:#faf8f8;border-radius:12px;resize:none;min-height:47px;max-height:150px;padding:13px;flex:1;min-width:0;font:inherit;font-size:13px;line-height:1.5}.chat-compose>.btn{width:44px;padding:10px;flex-shrink:0}.chat-compose>.form-error:empty{display:none}.chat-compose>.form-error:not(:empty){position:absolute;bottom:100%;left:20px;background:white;padding:10px;border-radius:10px;box-shadow:0 4px 20px #0001;font-size:12px}.chat-readonly{display:flex;gap:10px;font-size:12px;line-height:1.7;padding:19px 24px;background:#f4eeee;color:#896c73}.chat-readonly>.icon{flex:0 0 18px}.chat-start{margin:auto;display:grid;justify-items:center;color:#a29296;gap:16px;font-size:13px}.chat-start>.icon{width:35px;height:35px}.account-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:24px;align-items:start}.account-identity{display:flex;align-items:center;gap:17px;padding-bottom:25px;margin-bottom:25px;border-bottom:1px solid #eee6e6}.account-identity h2{font-size:20px}.account-identity p{font-size:12px;color:var(--muted);margin-top:6px}.account-layout input[readonly]{background:#f7f5f5;color:#7c7274}.account-layout .checkbox{margin-top:20px}.account-layout label{line-height:1.5}.account-layout h2+form{margin-top:24px}.campaign-list{display:grid;gap:20px}.campaign-meta{display:flex;gap:20px;flex-wrap:wrap;font-size:11px;color:var(--muted);margin-top:20px}.campaign-clients{margin-top:15px;max-height:250px;overflow:auto;border:1px solid #eee3e3;border-radius:10px}.campaign-selected{font-size:11px;line-height:1.7;margin-top:10px;color:#a12639}.campaign-preview-list{max-height:250px;overflow:auto;margin-top:15px}.campaign-preview-list p{font-size:12px;padding:8px 0;border-bottom:1px solid #eee}.decision-option input,.office-attest input{flex-shrink:0}.intake-history small{font-size:10px}
@media(min-width:1500px){.client-work-grid{grid-template-columns:minmax(0,1.8fr) minmax(310px,1fr)}}
@media(max-width:1199px){.client-identity{flex-wrap:wrap}.identity-actions{width:100%;max-width:none;justify-content:flex-start;margin-left:74px}.messenger{grid-template-columns:250px minmax(0,1fr)}.client-work-grid{grid-template-columns:minmax(0,1.3fr) minmax(250px,1fr)}.intake-layout{grid-template-columns:210px minmax(0,1fr)}.account-layout{grid-template-columns:1fr}}
@media(max-width:900px){.client-work-grid{grid-template-columns:1fr}.intake-layout{grid-template-columns:1fr}.intake-steps{position:static;display:flex;flex-wrap:nowrap;overflow-x:auto;align-items:center;padding:10px;gap:6px}.intake-steps>h2,.intake-steps>.eyebrow{display:none}.intake-steps>button:not(.text-btn){width:auto;flex:0 0 auto;max-width:190px;font-size:11px}.intake-steps>.text-btn{flex:0 0 auto;margin:0 12px}.messenger{height:calc(100dvh - 240px);min-height:500px}}
@media(max-width:600px){.back-link{font-size:12px;margin-bottom:17px}.client-identity{gap:12px;margin-bottom:22px}.client-identity>.avatar{width:45px;height:45px;font-size:15px;flex:0 0 45px}.identity-main h1{font-size:22px}.identity-main .eyebrow{font-size:9px}.identity-main p:last-child{font-size:11px;gap:5px}.identity-actions{margin-left:0;gap:8px}.identity-actions>.btn{flex:1;font-size:11px;padding:10px;min-width:0}.identity-actions>.eligibility{flex-basis:100%;width:max-content;justify-content:flex-start;background:transparent;padding:0 0 6px}.card-tabs{gap:22px;margin:0 -18px 22px;padding:0 18px}.card-tabs a{font-size:12px;padding-bottom:13px}.client-facts{gap:18px}.intake-read-grid{grid-template-columns:1fr}.intake-summary{padding:15px}.intake-controls{flex-direction:column-reverse}.intake-controls>.btn{width:100%;justify-content:center}.intake-form-card>h2{font-size:21px}.intake-steps>button:not(.text-btn){max-width:145px;font-size:10px;padding:8px}.intake-steps>button>span{width:22px;height:22px}.schedule-note{align-items:start;flex-direction:column}.workflow-filters{gap:12px}.workflow-filters>label{min-width:120px}.task-board{grid-template-columns:1fr}.task-board.many-days>.task-day{flex-basis:275px}.task-type{font-size:11px}.work-task>h3{font-size:14px}.task-client{font-size:13px}.task-controls>.btn{font-size:11px}.messenger{display:flex;height:calc(100dvh - 237px);min-height:460px;border-radius:14px}.inbox{width:100%;border:0}.conversation{display:none;width:100%}.messenger.has-chat .conversation{display:flex}.messenger.has-chat .inbox{display:none}.messenger.client-chat .inbox{display:none}.messenger.client-chat .conversation{display:flex}.chat-back{display:grid;transform:rotate(180deg);flex:0 0 26px;width:26px}.client-chat .chat-back{display:none}.conversation-header{padding:15px 12px;gap:9px}.conversation-header>.avatar{width:32px;height:32px;flex:0 0 32px;font-size:11px}.conversation-header h2{font-size:13px}.conversation-header p{font-size:9px}.chat-feed{padding:17px 12px;gap:12px}.chat-message{max-width:92%;padding:11px 13px}.chat-message p{font-size:12px}.chat-compose{padding:12px 10px;gap:5px}.chat-compose textarea{font-size:12px}.chat-compose>.icon-btn{width:30px;flex:0 0 30px}.chat-compose>.btn{width:37px;height:40px;padding:9px}.chat-readonly{font-size:11px;padding:14px}.comment header{flex-wrap:wrap;gap:5px}.comment p{font-size:12px}.decision-option{padding:13px}.decision-option .eligibility{font-size:12px}.decision-option>.eligibility{width:auto}.client-panel .page-heading{gap:15px}.client-panel .page-heading>.form-footer{width:100%;justify-content:flex-start}.account-identity h2{font-size:18px}.account-identity p{font-size:11px}.bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important}.bottom-nav>a{min-width:0;padding-left:2px;padding-right:2px}.bottom-nav small{font-size:9px!important;line-height:1.3!important;white-space:normal!important;max-width:100%;text-align:center;min-height:24px;display:flex;align-items:center;justify-content:center}.payment-row .amount{font-size:16px}.payment-row .pay-date strong:not(.amount){font-size:12px}.client-directory .client-filter-selects{grid-template-columns:1fr 1fr!important}.client-directory .client-filter-selects label{font-size:10px}.menu-card strong{font-size:13px;line-height:1.45}.keyboard-open .messenger{height:calc(100dvh - 170px);min-height:300px}.intake-summary summary>strong{line-height:1.5}}

.client-filters label.search,.client-filters .search.client-search,.inbox label.search,.modal-body label.search{display:flex;flex-direction:row;align-items:center;gap:10px;padding:0 14px;min-height:48px;height:48px}.client-filters .search input,.inbox .search input,.modal-body .search input{border:0!important;box-shadow:none!important;min-width:0;flex:1;width:0;min-height:44px;height:44px;background:transparent;padding:0}.client-filters .search>.icon,.inbox .search>.icon,.modal-body .search>.icon{position:static;transform:none;flex:0 0 18px}.client-filters .search>.icon-btn{flex:0 0 34px;position:static;margin:0;padding:8px;transform:none;height:34px;width:34px}.form-grid label{min-width:0}.form-grid input,.form-grid textarea,.form-grid select{width:100%;min-width:0}.task-type>.icon{stroke-width:1.7}

.intake-guidance{display:flex;gap:10px;background:#faf6f3;border:1px solid #f0e7df;border-radius:10px;padding:15px;margin:20px 0 26px}.intake-guidance>.icon{flex:0 0 17px;color:#a68a70}.intake-guidance>p{font-size:12px;line-height:1.7;color:#87725f}

.directory-filters{margin:0}.directory-filters>summary{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:12px;color:var(--muted);padding:0 0 12px;list-style:none}.directory-filters>summary::-webkit-details-marker{display:none}.directory-filters>summary>.icon{width:15px;height:15px}.directory-filters>summary>.icon:last-child{margin-left:auto;width:13px}.directory-filters>summary>b{font-size:10px;background:#f9eaee;color:#bd2d44;border-radius:5px;padding:2px 5px}.client-filter-selects{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(160px,1fr))!important;gap:15px!important;align-items:end}.client-filter-selects>label{display:flex;flex-direction:column;gap:6px;min-width:0!important;max-width:none!important;margin:0;font-size:11px!important;line-height:1.5}.client-filter-selects input,.client-filter-selects select{margin:0!important;height:44px}
@media(max-width:600px){.client-directory .client-filter-selects,.client-finder .client-filter-selects{grid-template-columns:1fr!important}.directory-filters>summary{padding:0;min-height:32px}.directory-filters[open]>summary{padding-bottom:16px}.client-filters{gap:12px!important;margin-bottom:12px}.directory-tools{margin:12px 0!important}.client-directory .client-search input::placeholder{font-size:11px}.client-directory .directory-tools .text-btn{font-size:10px}.client-directory .directory-tools>.btn{font-size:10px}.directory-filters .client-filter-selects label{font-size:11px!important}.directory-filters .client-filter-selects input,.directory-filters .client-filter-selects select{font-size:13px}.bottom-nav small{font-size:9px!important}}

/* Version 3.1: readable contract terms, staged contact edits and period reports. */
.contract-plan-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px 32px;position:relative;background:#fff;border:1px solid #eadde0;border-radius:24px;padding:30px;overflow:hidden;box-shadow:0 8px 24px #38151b03;margin-bottom:24px}
.contract-plan-hero:before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:var(--red,#c8202f)}
.contract-plan-hero h2{font-size:30px;line-height:1.2;margin:10px 0 14px;overflow-wrap:normal;word-break:normal}
.contract-reference{display:flex;gap:12px;align-items:center;flex-wrap:wrap;color:var(--muted,#777);font-size:12px}
.contract-main-price{display:flex;flex-direction:column;gap:8px;align-items:flex-end;align-self:center}
.contract-main-price strong{font-size:34px;line-height:1.1;letter-spacing:-1px;white-space:nowrap}
.contract-main-price span{font-size:12px;color:var(--muted,#777)}
.contract-plan-monthly{grid-column:1/-1;display:flex;align-items:flex-start;gap:10px;font-size:14px;margin:0}
.contract-plan-monthly svg{color:var(--red,#c8202f);flex-shrink:0;width:18px;height:18px}
.contract-deposit-note{grid-column:1/-1;display:flex;gap:12px;align-items:center;padding:14px 16px;border:1px solid #eee5d4;background:#fffaf0;border-radius:14px}
.contract-deposit-note p{margin:0;font-size:13px;line-height:1.6}
.contract-deposit-note svg{flex-shrink:0;color:#8a7959;width:18px;height:18px}
.contract-deposit-note.included{background:#f2faf6;border-color:#dcece4}
.contract-deposit-note.included svg{color:#377760}
.contract-dates{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0;padding-top:20px;border-top:1px solid #eee}
.contract-dates dt{font-size:12px;color:var(--muted,#777);margin-bottom:8px}
.contract-dates dd{margin:0;font-weight:600;font-size:13px;line-height:1.6;overflow-wrap:normal;word-break:normal}
.contract-work-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr);gap:24px;align-items:start}
.contract-work-grid>*{min-width:0}
.contract-work-grid h2,.contract-work-grid h3{word-break:normal;overflow-wrap:anywhere}
.file-section-title{font-size:13px;margin:22px 0 10px}
.signature-file-box{background:#faf7f8;border:1px dashed #d6bfc4;border-radius:16px;padding:18px;margin:18px 0}
.signature-file-box label{display:block;font-size:13px;font-weight:600;line-height:1.6}
.signature-file-box input{display:block;margin-top:12px;max-width:100%;width:100%;font-size:13px}
.signature-file-box input::file-selector-button{border:1px solid #d9c6ca;background:white;color:#8d2737;border-radius:9px;padding:10px 12px;margin-right:12px;cursor:pointer}
.signature-attest{margin:20px 0;line-height:1.6}
.phone-request-banner{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:20px 24px;background:#fff7ed;border:1px solid #f1dfc4;border-radius:18px;margin-bottom:22px}
.phone-request-banner>div:first-child{display:flex;align-items:center;gap:14px;min-width:0}
.phone-request-banner svg{flex-shrink:0}
.phone-request-banner strong{display:block;font-size:14px;margin-bottom:6px}
.phone-request-banner small{display:block;font-size:13px;overflow-wrap:anywhere}
.phone-request-banner .card-actions{margin:0}
.current-phone{display:flex;flex-direction:column;gap:8px;padding:0 0 20px}
.current-phone small{font-size:12px;color:var(--muted,#777)}
.current-phone strong{font-size:20px;overflow-wrap:anywhere}
.phone-settings .notice{margin-bottom:14px}
.phone-settings .notice p{margin:8px 0 0}
.client-comment-scroll{position:relative;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d1b6bd transparent;padding-right:8px}
.client-comment-scroll:focus-visible{outline:2px solid #c8202f;outline-offset:6px;border-radius:4px}
.client-comment-scroll .comment{margin:0;padding:16px 0;border-bottom:1px solid #f1ecee}
.client-comment-scroll .comment p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-size:13px;line-height:1.6;margin:9px 0 0;word-break:normal;overflow-wrap:anywhere}
.client-comment-scroll .comment header{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center;justify-content:space-between}
.client-comment-scroll .comment header strong{font-size:12px}
.client-comment-scroll .comment time{font-size:11px;color:#8c8588}
.client-comment-scroll .text-btn{font-size:12px;margin-top:6px}
.comments-scroll-hint{display:flex;gap:6px;align-items:center;color:#8b8083;font-size:11px;line-height:1.6;margin:12px 0 0}
.comments-scroll-hint svg{width:14px;height:14px;flex-shrink:0}
.home-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 24px}
.home-shortcuts a{display:flex;gap:10px;align-items:center;padding:17px 18px;background:white;border:1px solid #ece7e8;border-radius:14px;color:#4e4246;min-width:0;transition:border-color .2s,background .2s}
.home-shortcuts a:hover{background:#fff8f9;border-color:#e5b8c2}
.home-shortcuts strong{font-size:13px;font-weight:600;line-height:1.4;word-break:normal}
.home-shortcuts svg{flex-shrink:0;width:18px;height:18px;color:#a14d5e}
.home-shortcuts svg:last-child{margin-left:auto;width:14px}
.deposit-explainer{display:flex;align-items:center;gap:16px;margin:0 0 24px;padding:22px}
.deposit-explainer>div{flex:1;min-width:0}
.deposit-explainer>svg{flex-shrink:0;color:#377760}
.deposit-explainer h3{font-size:15px;line-height:1.5;margin:0 0 7px}
.deposit-explainer p{font-size:13px;color:#7d7377;line-height:1.6;margin:0}
.deposit-explainer.included{background:#f3faf6;border-color:#dfede4}
.period-finance{margin-top:26px}
.period-finance .workflow-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:16px;margin:24px 0}
.period-finance .workflow-filters label{min-width:0;margin:0}
.period-finance .workflow-filters input{width:100%;max-width:100%;min-width:0}
.period-finance .workflow-filters .form-error{grid-column:1/-1}
.period-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:30px}
.period-stats article{background:#faf8f9;border:1px solid #f0eaec;border-radius:15px;padding:20px;min-width:0}
.period-stats small{display:block;color:#867c80;font-size:12px;line-height:1.6;margin-bottom:12px}
.period-stats strong{display:block;font-size:24px;line-height:1.3;overflow-wrap:anywhere}
.period-stats article:first-child{background:#fff4f6;border-color:#eed3da}
.period-finance h3{font-size:16px;margin:0 0 16px}
@media(max-width:1100px){.contract-work-grid{grid-template-columns:minmax(0,1fr)}.period-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){
 .contract-plan-hero{grid-template-columns:minmax(0,1fr);padding:24px 22px;border-radius:20px;gap:22px;margin-bottom:20px}
 .contract-plan-hero h2{font-size:26px}
 .contract-main-price{align-items:flex-start}.contract-main-price strong{font-size:32px}
 .contract-reference{align-items:flex-start;gap:10px}
 .contract-dates{grid-template-columns:minmax(0,1fr);gap:18px}
 .contract-dates>div{display:flex;justify-content:space-between;gap:16px;align-items:baseline}
 .contract-dates dt{margin:0;max-width:48%;font-size:11px;line-height:1.6}
 .contract-dates dd{text-align:right;max-width:55%;font-size:12px}
 .contract-plan-monthly{font-size:12px;line-height:1.6}
 .contract-deposit-note{padding:12px;align-items:flex-start}.contract-deposit-note p{font-size:12px}
 .home-shortcuts{gap:8px;margin-bottom:20px}.home-shortcuts a{padding:13px 10px;gap:8px;flex-direction:column;text-align:center;justify-content:flex-start}
 .home-shortcuts strong{font-size:11px}.home-shortcuts svg:last-child{display:none}
 .phone-request-banner{align-items:flex-start;flex-direction:column;padding:18px;gap:14px}.phone-request-banner .card-actions{width:100%}
 .deposit-explainer{align-items:flex-start;flex-wrap:wrap;padding:18px;gap:12px}.deposit-explainer>div{flex-basis:70%}.deposit-explainer .btn{width:100%}
 .period-finance .workflow-filters{grid-template-columns:minmax(0,1fr)}
 .period-stats{gap:10px}.period-stats article{padding:15px}.period-stats strong{font-size:21px}
 .period-finance .table-wrap{max-width:100%;overflow-x:auto}
}
@media(max-width:360px){.period-stats{grid-template-columns:minmax(0,1fr)}.contract-main-price strong{font-size:29px}.signature-file-box{padding:14px}.contract-plan-hero{padding:22px 18px}}

/* 3.2 — clear actions, language choice and daily work */
.language-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px}.language-option{display:flex;align-items:center;gap:12px;min-height:78px;padding:16px;border:1px solid #e8e4e5;border-radius:14px;background:#fff;color:#292934;font:inherit;text-align:left;cursor:pointer}.language-option:hover,.language-option:focus-visible{border-color:#c8202f;background:#fff6f7;outline:2px solid #f3bec5;outline-offset:2px}.language-option strong{flex:1;font-size:15px}.language-code{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#f7eeee;color:#b61f30;font-size:12px;font-weight:700;flex-shrink:0}.language-option>.icon{width:16px;flex-shrink:0}.contact-channels{display:flex;gap:24px;align-items:center;justify-content:space-between;padding:22px 24px;background:#fff;border:1px solid #eae6e7;border-radius:18px;margin-bottom:24px}.contact-channels h2{font-size:17px;margin:0 0 6px}.contact-channels p{font-size:13px;color:var(--muted);line-height:1.6}.contact-channels nav{display:flex;flex-wrap:wrap;gap:10px}.channel-link{display:flex;align-items:center;gap:9px;border:1px solid #e7e4e5;border-radius:12px;padding:12px 14px;font-size:13px;background:#fff;transition:border-color .15s}.channel-link:hover{border-color:#c8202f}.channel-link>.icon{width:15px;height:15px}.channel-symbol{display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;border-radius:9px;background:#eeeefa;color:#5851b3;font-size:14px;font-weight:700}.telegram .channel-symbol,.channel-symbol.telegram{background:#e9f5fc;color:#1685b9}.whatsapp .channel-symbol,.channel-symbol.whatsapp{background:#eaf8f0;color:#287a4e}.settings-section-title{margin-bottom:26px}.settings-section-title h2{font-size:22px;margin-bottom:9px}.settings-section-title p{font-size:14px;line-height:1.7;color:var(--muted);max-width:730px}.channel-settings{display:grid;gap:22px;max-width:780px}.channel-setting{display:flex;gap:16px;align-items:flex-start}.channel-setting>.channel-symbol{margin-top:29px;width:40px;height:40px;flex-basis:40px}.channel-setting>div{flex:1;min-width:0}.channel-setting label{margin-bottom:7px}.channel-setting small{font-size:12px;color:var(--muted);line-height:1.5}.channel-preview{border-top:1px solid #eee8e9;padding-top:25px;margin-top:28px}.channel-preview h3{font-size:14px;margin-bottom:14px}.channel-preview>div{display:flex;gap:10px;flex-wrap:wrap}.audit-filters{align-items:end;gap:12px}.audit-filters>label{min-width:135px}.audit-total{font-size:12px;color:var(--muted);padding:18px 0 10px}.audit-item{display:grid;grid-template-columns:115px minmax(0,1fr);gap:18px;border-top:1px solid #eee9e9;padding:18px 0}.audit-item time{font-size:12px;color:#5a5865;line-height:1.6}.audit-item time span{display:block;color:var(--muted);font-size:11px}.audit-item strong{display:block;font-size:14px;line-height:1.5}.audit-item p{font-size:12px;color:var(--muted);margin:5px 0}.audit-item a{font-size:13px;color:#bd2637}.audit-code{display:block;font-size:10px;line-height:1.6;color:#94909a;overflow-wrap:anywhere;margin-top:4px}.danger-zone{border-color:#f0d8dc}.danger-zone h2{font-size:17px}.notice.danger{background:#fff0f2;color:#a7192b;line-height:1.8}.payment-row{gap:24px;align-items:center}.payment-row .pay-date{flex:1;min-width:0;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:14px}.payment-row .pay-date>div{min-width:0}.payment-row .pay-date>div>strong{font-size:16px;line-height:1.45}.payment-row .pay-date .amount{font-size:22px;white-space:nowrap}.payment-row .actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;justify-content:flex-end;max-width:46%}.payment-row .actions .badge{max-width:100%;height:auto;white-space:normal;line-height:1.45;text-align:left;font-size:11px;padding:7px 10px;word-break:normal}.payment-row .actions .tag-dot{flex-shrink:0}.payment-row .actions .btn{min-height:38px;white-space:normal;line-height:1.4;text-align:center}.planned-date{font-size:10px;color:#a8792a;display:block;margin:3px 0}.payment-row .meta{margin-top:5px;line-height:1.5}.payment-view .icon{flex-shrink:0}.schedule-note p{font-size:13px;line-height:1.7;max-width:750px}.queue-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff3f4;border:1px solid #f0d2d7;border-radius:16px;padding:20px 24px;margin-bottom:24px}.queue-toolbar h2{font-size:18px;line-height:1.4;margin:0 0 7px}.queue-toolbar p{font-size:13px;line-height:1.6;color:var(--muted)}.queue-toolbar>.btn{flex-shrink:0;max-width:320px;white-space:normal;text-align:center;line-height:1.45}.task-day{min-width:0}.task-day>header{align-items:center;gap:12px}.task-day>header h2{white-space:normal;line-height:1.4}.overdue-help{font-size:11px;line-height:1.6;color:#9f606c;margin:0 0 16px}.work-task{min-width:0}.task-is-overdue{border-left:3px solid #d34455}.task-type>span{min-width:0;line-height:1.5}.task-due{display:flex;align-items:center;flex-wrap:wrap;gap:5px;font-size:11px;color:var(--muted);margin:8px 0 14px}.task-due>.icon{width:13px;height:13px}.task-due>span{color:#b6263a;font-size:10px}.task-client{display:flex;align-items:center;justify-content:space-between;gap:10px}.task-client>span{min-width:0;overflow-wrap:break-word}.task-client>.icon{width:15px;flex-shrink:0}.task-controls{display:grid;grid-template-columns:1fr;gap:8px;margin-top:18px}.task-controls>.btn{width:100%;min-height:40px;font-size:12px;line-height:1.5;white-space:normal;text-align:center;padding:9px 12px}.task-history-link{border-top:1px solid #f1eaea;margin-top:13px;padding-top:9px}.task-history-link .text-btn{font-size:11px;white-space:normal;text-align:left;line-height:1.5}.task-day .pagination{display:grid;gap:10px;font-size:11px}.task-day .pagination>div{display:flex;gap:6px}.task-day .pagination .btn{font-size:11px;padding:8px}.queue-progress{display:flex;align-items:center;gap:16px;margin-bottom:20px;font-size:12px;color:var(--muted)}.queue-progress progress{flex:1;min-width:40px;max-width:240px;height:7px;accent-color:#c8202f}.queue-client{display:flex;align-items:center;gap:15px;margin:0 0 20px}.queue-client h3{font-size:22px;margin-bottom:6px}.queue-client p{font-size:14px;line-height:1.6}.queue-client small{font-size:12px;color:var(--muted)}.queue-contact-actions{display:flex;flex-wrap:wrap;gap:9px;margin:20px 0 12px}.queue-contact-actions .btn{font-size:12px;white-space:normal}.queue-skip{margin-top:18px;text-align:right}.queue-finished{text-align:center;padding:25px}.queue-finished>.icon{width:50px;height:50px;color:#297a4f}.queue-finished p{margin-top:20px;line-height:1.8}.staff-stat{text-decoration:none;color:inherit}.staff-stat:hover{border-color:#d9a2ab}.task-toolbar .workflow-filters>button{align-self:end;min-height:46px}
@media(max-width:1100px){.contact-channels{align-items:flex-start;flex-direction:column;gap:18px}.payment-row .actions{max-width:100%;justify-content:flex-start}.payment-row{flex-wrap:wrap}.payment-row .pay-date{flex-basis:100%}.task-board.many-days{grid-auto-columns:minmax(270px,1fr)}}
@media(max-width:640px){.language-options{gap:9px}.language-option{min-height:75px;gap:9px;padding:12px}.language-option strong{font-size:13px}.language-option>.icon{display:none}.language-code{width:29px;height:29px;flex-basis:29px;font-size:10px}.contact-channels{padding:20px;border-radius:14px}.contact-channels nav{display:grid;grid-template-columns:1fr;gap:9px;width:100%}.channel-link{padding:12px 14px;min-height:48px}.channel-link strong{flex:1}.contact-channels h2{font-size:17px;line-height:1.5}.payment-row{padding:18px;gap:16px}.payment-row .pay-date{grid-template-columns:32px minmax(0,1fr) auto;gap:9px;width:100%}.payment-row .pay-date>.icon-box{width:32px;height:36px}.payment-row .pay-date>.amount{font-size:19px;margin:0}.payment-row .pay-date>div>strong{font-size:14px}.payment-row .pay-date .meta{font-size:11px}.payment-row .actions{width:100%;display:grid;grid-template-columns:minmax(0,1fr);gap:10px;border-top:1px solid #eee8e9;padding-top:14px;max-width:none}.payment-row .actions>.badge{justify-self:start}.payment-row .actions>.btn{width:100%;min-height:43px;font-size:12px;margin:0;padding:10px 12px}.payment-row .actions>.payment-view{justify-content:space-between}.queue-toolbar{flex-direction:column;align-items:stretch;padding:20px;gap:16px}.queue-toolbar>.btn{max-width:none;width:100%;min-height:48px;font-size:13px}.task-toolbar .workflow-filters{display:grid;grid-template-columns:minmax(0,1fr);gap:13px}.task-toolbar .workflow-filters>label{min-width:0;margin:0}.task-toolbar .workflow-filters>button{width:100%;min-height:46px}.task-toolbar .form-error{grid-column:1/-1}.task-board{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}.task-board.many-days{display:flex;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:16px;margin-inline:0;gap:14px}.task-board.many-days>.task-day{flex:0 0 calc(100% - 24px);width:calc(100% - 24px);scroll-snap-align:start}.task-day{padding:16px}.task-day>header h2{font-size:18px}.task-controls>.btn{min-height:44px;font-size:13px}.task-history-link .text-btn{min-height:35px}.audit-filters{display:grid;grid-template-columns:1fr 1fr;gap:12px}.audit-filters>label{min-width:0;margin:0}.audit-filters>button{grid-column:1/-1;width:100%}.audit-item{grid-template-columns:82px minmax(0,1fr);gap:13px}.audit-item strong{font-size:13px}.audit-item time{font-size:11px}.settings-tabs{scrollbar-width:thin}.settings-section-title h2{font-size:20px}.channel-setting{gap:10px}.channel-setting>.channel-symbol{width:30px;height:34px;flex-basis:30px}.channel-setting small{font-size:11px}.channel-preview>div{display:grid;grid-template-columns:1fr}.queue-contact-actions{display:grid;grid-template-columns:minmax(0,1fr)}.queue-contact-actions .btn{min-height:45px}.queue-client{align-items:flex-start}.queue-client h3{font-size:20px}.queue-progress{flex-direction:column;align-items:stretch;gap:8px}.queue-progress progress{max-width:none;width:100%}.queue-skip .text-btn{min-height:44px}.modal-footer .btn{white-space:normal;line-height:1.5}.danger-zone>.btn{white-space:normal;width:100%;line-height:1.5}.queue-toolbar p{font-size:12px}}
@media(prefers-reduced-motion:reduce){.channel-link{transition:none}}
@media(max-width:640px){.payment-row .actions{padding-left:0}.payment-row .pay-date strong:not(.amount){font-size:14px}}

.overdue-start{margin-bottom:20px;padding-bottom:18px;border-bottom:1px solid #edd1d6}.overdue-start>.btn{width:100%;font-size:12px;white-space:normal;line-height:1.5;padding:12px 14px;text-align:center}.overdue-start>p{font-size:11px;line-height:1.7;color:#966471;margin-top:11px}

/* 3.3: centered dialogs, readable account tools and touch-friendly file controls. */
.modal-overlay{align-items:center!important;justify-content:center;padding:20px;box-sizing:border-box;min-height:100vh;min-height:100dvh}
.modal-overlay>.modal{margin:0!important;border-radius:20px!important;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);min-width:0;display:flex;flex-direction:column}
.modal-body{min-height:0;overflow:auto;overscroll-behavior:contain}
.modal-header,.modal-footer{flex-shrink:0}.modal-footer{flex-wrap:wrap;gap:10px}
.story-modal{margin:auto!important}.language-options{width:100%}
input[type="date"],input[type="datetime-local"],input[type="time"]{box-sizing:border-box;min-inline-size:0;min-width:0;width:100%;max-width:100%;min-height:46px;font:inherit;text-align:left}
input::-webkit-date-and-time-value{text-align:left;min-height:1.4em}
.form-grid>label,.workflow-filters>label,.toolbar label{min-inline-size:0;box-sizing:border-box}
.workflow-filters{align-items:flex-end;gap:16px}.workflow-filters>label{display:flex;flex:1 1 170px;flex-direction:column;gap:8px;min-width:0;margin:0}
.workflow-filters>label>input,.workflow-filters>label>select{margin:0;min-height:46px;box-sizing:border-box;max-width:100%;width:100%}
.workflow-filters>.btn{height:46px;min-height:46px;margin:0;align-self:flex-end}.workflow-filters>.form-error:empty{display:none}
.task-toolbar .workflow-filters>.form-error{flex-basis:100%}.task-controls .btn,.overdue-start>.btn{white-space:normal;line-height:1.5}.overdue-start>.btn{width:100%;min-height:46px}
.permission-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.permission-option{display:flex!important;align-items:flex-start;gap:12px;cursor:pointer;padding:14px;border:1px solid #e9e2e3;border-radius:12px;margin:0;line-height:1.5;min-width:0}
.permission-option>input,.checkbox>input[type="checkbox"]{width:18px!important;height:18px!important;min-height:18px!important;flex:0 0 18px;margin:2px 0 0;accent-color:#c8202f;cursor:pointer;appearance:auto;pointer-events:auto}
.permission-option>span{min-width:0}.permission-option strong{display:block;font-size:13px;font-weight:600}.permission-option small{display:block;font-size:11px;color:var(--muted);margin-top:5px;line-height:1.65}
.permission-option:has(input:checked){border-color:#e5a8b0;background:#fff8f9}.staff-access-tools,.qr-settings{border-top:1px solid #eee4e5;padding-top:24px;margin-top:26px}.staff-access-tools h3{margin-bottom:14px}.sound-option{margin:20px 0}
.nav-link{position:relative}.nav-counter{display:inline-flex;align-items:center;justify-content:center;min-width:21px;height:21px;flex-shrink:0;padding:0 5px;background:#c8202f;color:#fff;border-radius:12px;font-size:10px;line-height:1;font-weight:700;margin-left:auto}.nav-link.active .nav-counter{background:#fff;color:#c8202f}.bottom-nav a{position:relative}.bottom-nav .nav-counter{position:absolute;top:3px;left:calc(50% + 7px);margin:0;min-width:18px;height:18px;font-size:9px;border:2px solid #fff}
.file-link{min-width:0;gap:10px}.file-title{min-width:0;flex:1;display:flex;align-items:center;gap:7px}.file-title>span{min-width:0;overflow-wrap:anywhere}.file-title .meta{display:block;line-height:1.5;margin-top:4px}.file-link .btn,.file-link .icon-btn{flex-shrink:0}.image-file{align-items:center;flex-wrap:wrap}.file-thumb{position:relative;width:76px;height:76px;flex:0 0 76px;overflow:hidden;border-radius:10px;background:#f1eaea;border:1px solid #e6dfe0;cursor:pointer;padding:0}.file-thumb img{width:100%;height:100%;object-fit:cover;color:#777;font-size:10px}.file-thumb>.icon{position:absolute;bottom:5px;right:5px;width:18px;height:18px;padding:3px;box-sizing:content-box;background:white;border-radius:6px;color:#c8202f}
.photo-overlay{background:#131117e8!important}.photo-overlay>.modal{width:min(1100px,100%);max-width:1100px}.photo-viewer{display:grid;place-items:center;min-height:150px;background:#f8f6f6;border-radius:12px;padding:10px}.photo-viewer>img{display:block;max-width:100%;width:auto;height:auto;max-height:65vh;object-fit:contain}.photo-fallback{display:none}.photo-error>img{display:none}.photo-error>.photo-fallback{display:block;font-size:14px;line-height:1.7;padding:24px}
.chat-message>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.chat-message>header>strong{font-size:12px}.chat-message strong small{display:block;font-size:10px;margin-top:4px;font-weight:400;color:var(--muted)}.message-delete{width:28px;height:28px;min-height:28px;opacity:.65;flex:0 0 28px}.message-delete:hover{opacity:1;color:#c8202f}.chat-system{display:flex;align-items:center;justify-content:center;gap:8px}.chat-system .message-delete{margin:0}.chat-clear{align-self:flex-end;margin:10px 16px 0}.chat-message .file-link{background:#fff8;border-radius:10px;padding:10px;margin:8px 0}.chat-message .file-link.image-file>.file-title{flex-basis:100%}.contact-channels{margin-top:20px;margin-bottom:0}.chat-compose{position:relative}
.file-drop-field{padding:18px;border:1.5px dashed #d9bdc2;border-radius:14px;background:#fffafb;margin:20px 0;min-width:0}.file-drop-field label{display:block;min-width:0;font-size:13px;font-weight:600}.file-drop-field input[type="file"]{width:100%;max-width:100%;min-width:0;font-size:12px;padding:12px 0;border:0;background:transparent}.file-drop-field small{font-size:11px;color:var(--muted);line-height:1.6;display:block}.drag-over{outline:3px solid #c8202f!important;outline-offset:-3px;background:#fff0f3!important}.selected-file-names{font-size:12px;line-height:1.6;overflow-wrap:anywhere;color:#ad1830;margin-top:10px}
.payment-qr{display:block;width:240px;max-width:100%;height:auto;max-height:320px;object-fit:contain;background:white;padding:12px;box-sizing:border-box;border:1px solid #ece4e5;border-radius:12px;margin:18px 0}.payment-qr-section{margin-top:28px}.payment-qr-section>h3{font-size:15px}.qr-settings>form{max-width:600px}.request-sharing{display:flex;align-items:center;gap:14px;padding:14px;background:#f9f5f6;border-radius:12px;margin-bottom:16px}.request-sharing>span{flex:1;font-size:12px;line-height:1.6}.comment-visibility{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;flex-wrap:wrap}.comment-visibility .btn{min-height:34px}.legacy-client-name{margin:24px 0 0;padding:18px;background:#faf7f7;border-radius:10px}.legacy-client-name dt{font-size:12px;color:var(--muted)}.legacy-client-name dd{margin:7px 0 0;font-size:15px}
.mail-language{display:block;max-width:280px;margin:20px 0;font-size:12px}.mail-language>select{width:100%;margin-top:8px}.mail-template-list .settings-row{align-items:center;gap:20px}.mail-template-list .settings-row>div{min-width:0}.mail-template-list .settings-row small{font-size:11px;line-height:1.6;color:var(--muted);white-space:pre-line}.mail-template-list .settings-row>.btn{flex-shrink:0}.mail-editor>label{display:block;margin:18px 0}.mail-editor textarea{min-height:240px}.mail-variable-list{display:flex;gap:8px;flex-wrap:wrap}.mail-preview:not(:empty){background:#f9f6f6;border:1px solid #e9dfe2;border-radius:12px;padding:22px;margin-top:22px;line-height:1.8}.mail-preview h3{font-size:15px;margin-bottom:15px}.mail-preview p{font-size:13px;overflow-wrap:anywhere}.login-help{font-size:12px;line-height:1.7;color:var(--muted);margin:10px 0 20px}.agreement-list{display:grid;gap:16px;margin-top:20px}.agreement-card{padding:20px;border:1px solid #eadfe1;border-radius:14px}.agreement-card h3{font-size:15px;line-height:1.5}
@media(max-width:680px){
 .modal-overlay{padding:14px;padding-top:max(14px,env(safe-area-inset-top));padding-bottom:max(14px,env(safe-area-inset-bottom))}.modal-overlay>.modal{width:100%!important;max-height:calc(100dvh - 28px);border-radius:18px!important}.modal-body{padding:20px!important}.modal-header,.modal-footer{padding:18px 20px!important}.modal-header h2{font-size:19px;line-height:1.4}.permission-list{grid-template-columns:1fr}.permission-option{padding:13px}.staff-access-tools .card-actions{display:grid;grid-template-columns:1fr}.staff-access-tools .btn{justify-content:flex-start;white-space:normal}.identity-actions>.btn{flex:1 1 160px;white-space:normal;line-height:1.5}.workflow-filters{display:grid;grid-template-columns:minmax(0,1fr);width:100%;align-items:end}.workflow-filters>label{width:100%;max-width:100%;min-width:0}.workflow-filters>.btn{width:100%;margin:0}.task-toolbar{padding:18px}.task-board{grid-template-columns:minmax(0,1fr)}.task-controls{display:grid;grid-template-columns:1fr 1fr}.task-controls>.btn{min-height:40px}.chat-message{max-width:91%}.image-file .file-title{flex-basis:calc(100% - 90px)}.file-link .icon-btn{width:36px;height:36px}.photo-overlay .modal-body{padding:10px!important}.photo-viewer>img{max-height:65dvh}.mail-template-list .settings-row{gap:12px;flex-wrap:wrap}.mail-template-list .settings-row>div{flex:1 1 200px}.mail-template-list .settings-row>.btn{margin-left:auto}.request-sharing{align-items:flex-start;flex-direction:column}.contact-channels>nav{grid-template-columns:repeat(3,minmax(0,1fr))}.channel-link{min-width:0;justify-content:center}.file-drop-field{padding:14px}.comment-visibility{align-items:flex-start}.payment-qr{margin:18px auto}.modal-footer .btn{min-height:42px}
}
.auth-area-link{margin:20px 0 0;text-align:center;font-size:12px;line-height:1.7}.auth-area-link a{color:var(--muted);text-decoration:underline;text-underline-offset:4px}.auth-area-link a:hover{color:#c8202f}

/* Shared controls: explicit sizing also prevents Safari's date min-content overflow. */
.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.form-grid input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),.form-grid select{height:48px;min-height:48px}
form,label,.form-grid>*,.toolbar>*,.workflow-filters>*,.catalog-filter-row>*{min-inline-size:0}
input:not([type="checkbox"]):not([type="radio"]),select,textarea{box-sizing:border-box;max-inline-size:100%;min-inline-size:0}
form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not(.pin-input),form select{height:48px;min-height:48px}
input[type="date"],input[type="datetime-local"],input[type="time"]{display:block;appearance:none;-webkit-appearance:none;box-sizing:border-box;inline-size:100%;max-inline-size:100%;min-inline-size:0;height:48px;min-height:48px;padding:12px 14px;line-height:22px;font-size:14px;overflow:hidden;text-overflow:ellipsis}
input[type="date"]::-webkit-date-and-time-value,input[type="datetime-local"]::-webkit-date-and-time-value,input[type="time"]::-webkit-date-and-time-value{min-width:0;text-align:left;height:22px;line-height:22px}
input::-webkit-datetime-edit{min-width:0;padding:0;overflow:hidden}
input::-webkit-calendar-picker-indicator{flex:0 0 18px;min-width:18px;padding:0;margin-left:6px}
.workflow-filters>label>input,.workflow-filters>label>select,.workflow-filters>.btn{height:48px;min-height:48px}
.signup-cta{display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;box-sizing:border-box;min-height:88px;border:0;border-radius:16px;margin:28px 0 0;padding:20px 24px;background:var(--red,#ce2434);color:#fff;text-align:left;cursor:pointer;font:inherit;box-shadow:0 8px 22px #c8202f18}
.signup-cta>span{display:grid;gap:7px;min-width:0}.signup-cta small{font-size:12px;line-height:1.4;color:#fff;opacity:.85}.signup-cta strong{font-size:21px;line-height:1.3}.signup-cta>.icon{width:26px;height:26px;flex-shrink:0}.signup-cta:hover{background:#b7192c}.signup-cta:focus-visible{outline:3px solid #ecadba;outline-offset:4px}
.contact-channels{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:22px;border:1px solid #eadfe2;border-radius:16px;background:#fff;margin-top:20px}
.contact-channels>div{min-width:0}.contact-channels h2{font-size:17px;line-height:1.5;margin-bottom:5px}.contact-channels p{font-size:12px;line-height:1.6;margin:0;color:var(--muted)}
.contact-channels>nav{display:grid;grid-template-columns:repeat(3,72px);gap:10px;width:auto;flex-shrink:0}
.contact-channels .channel-link{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;gap:6px;width:72px;height:72px;min-width:0;min-height:0;padding:10px;border:1px solid #e6e0e2;border-radius:15px;background:#faf8f9;text-align:center;text-decoration:none;white-space:nowrap;color:#382e3c}
.contact-channels .channel-link>.icon{width:21px;height:21px;flex:0 0 21px;margin:0}.contact-channels .channel-link>strong{font-size:12px;line-height:16px;flex:none;white-space:nowrap;margin:0}.contact-channels .channel-link.telegram{background:#edf7fc;border-color:#d4eaf8;color:#2079ab}.contact-channels .channel-link.whatsapp{background:#edf8f1;border-color:#d2e9d9;color:#247442}.contact-channels .channel-link.max{background:#f1effa;border-color:#e0dbf1;color:#6652a1}.contact-channels .channel-link:hover{filter:brightness(.96);transform:none}
.catalog-actions{margin:20px 0 24px}.catalog-categories .settings-row{gap:18px;align-items:center}.catalog-categories .settings-row>div:first-child{flex:1;min-width:0}.catalog-categories .settings-row .card-actions{margin:0;flex-shrink:0}.catalog-categories h3,.catalog-editor-item h3{font-size:14px;line-height:1.6}.catalog-categories p{line-height:1.6}
.catalog-filter-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.catalog-filter-row label{display:grid;gap:8px;font-size:12px}.catalog-filter-row input,.catalog-filter-row select{width:100%;margin:0;height:48px}.catalog-editor-list{max-height:52dvh;overflow-y:auto;border-top:1px solid #eee6e8}.catalog-editor-item{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid #eee6e8}.catalog-editor-item>div:first-child{flex:1;min-width:0}.catalog-editor-item p{font-size:11px;line-height:1.7;margin:4px 0 7px;color:var(--muted)}.catalog-editor-item .badge{margin:2px 5px 0 0}.catalog-item-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;flex:0 0 auto}.catalog-format-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:24px 0 18px;padding:18px;border:1px solid #e7dde0;border-radius:12px}.catalog-format-options legend{font-size:13px;font-weight:600;padding:0 7px}.catalog-format-options .checkbox{margin:0;gap:7px;font-size:12px}
@media(max-width:680px){
 input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),select,textarea{font-size:16px}
 .form-grid{grid-template-columns:minmax(0,1fr)}.form-grid .span2{grid-column:auto}.form-grid>label,.toolbar>label{width:100%;max-width:100%}.task-toolbar .workflow-filters{grid-template-columns:minmax(0,1fr)}.task-toolbar .workflow-filters>.btn{width:100%}.signup-cta{min-height:86px;padding:20px;border-radius:14px}.signup-cta strong{font-size:20px}
 .contact-channels{flex-direction:column;align-items:flex-start;padding:18px;gap:16px}.contact-channels>nav{grid-template-columns:repeat(3,64px);gap:10px;max-width:100%;width:auto}.contact-channels .channel-link{width:64px;height:64px;border-radius:13px;gap:4px;padding:8px}.contact-channels .channel-link>strong{font-size:12px}
 .catalog-categories .settings-row{flex-wrap:wrap}.catalog-categories .settings-row>div:first-child{flex-basis:100%}.catalog-categories .settings-row .card-actions{width:100%;justify-content:flex-start}.catalog-filter-row{grid-template-columns:minmax(0,1fr);gap:14px}.catalog-editor-item{align-items:flex-start;flex-direction:column;gap:12px}.catalog-item-actions{justify-content:flex-start}.catalog-format-options{grid-template-columns:repeat(2,minmax(0,1fr));padding:15px}
}

/* Service administration and locale-independent calendar controls. */
.date-control{display:block;position:relative;min-width:0;max-width:100%;margin-top:8px}.date-control>.date-display{display:block;box-sizing:border-box;width:100%;max-width:100%;height:48px;min-height:48px;padding-right:48px;margin:0!important;font-variant-numeric:tabular-nums}.date-picker-hit{position:absolute;inset:0 0 0 auto;display:grid;place-items:center;width:44px;height:48px;overflow:hidden;color:#8c6670}.date-picker-hit>.icon{width:18px;height:18px;pointer-events:none}.date-picker-hit>input[data-date-native]{position:absolute;inset:0;width:44px!important;max-width:44px;height:48px!important;min-height:0!important;padding:0!important;margin:0!important;opacity:0;cursor:pointer;z-index:1}.date-picker-hit>input::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0}.workflow-filters .date-control{margin-top:0}.date-control:focus-within .date-display{border-color:#ce2434;box-shadow:0 0 0 3px #ce243414}.date-field{min-width:0}.date-control .date-display:invalid:not(:placeholder-shown){border-color:#ce2434}.auth-form-box>.signup-cta{margin:0 0 28px}.auth-form-box>.signup-cta+h1{margin-top:0}
.debt-intro h1{font-size:32px;line-height:1.25}.debt-intro>p{line-height:1.7}.debt-choice{margin:26px 0 24px;padding:24px;border:1px solid #ecdfe2;border-radius:18px;background:#fffafb}.debt-choice label{display:block;font-size:13px;color:var(--muted)}.debt-choice output{display:block;font-size:34px;font-weight:700;letter-spacing:-1px;color:#322b32;margin:12px 0 10px;line-height:1.3}.debt-choice input[type="range"]{width:100%;height:42px;padding:0;margin:0;accent-color:#ce2434;cursor:pointer;border:0;background:none;box-shadow:none}.range-limits{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted)}.debt-submit{min-height:56px;font-size:16px}.already-account{margin-top:12px;min-height:48px}.debt-intro>.section-help{font-size:12px;margin-top:20px}.staff-gate-page{min-height:100dvh;display:grid;place-items:center;background:#f7f6f8;padding:24px;box-sizing:border-box}.staff-gate{width:min(460px,100%);padding:36px;border-radius:24px;box-sizing:border-box}.staff-gate .brand{margin-bottom:36px}.staff-gate .brand img{width:40px;height:40px}.staff-gate h1{font-size:28px;line-height:1.3;margin:12px 0}.staff-gate>p{color:var(--muted);font-size:14px;line-height:1.7}.staff-gate form{margin-top:24px}.staff-gate form>label{display:block;margin-bottom:20px}.staff-gate form>label>input{width:100%;margin-top:8px}.staff-security-info{display:flex;gap:16px;padding:20px;border-radius:14px;border:1px solid #e9dfe2;margin:24px 0;background:#fffafb}.staff-security-info>.icon{width:24px;height:24px;flex-shrink:0;color:#c8202f}.staff-security-info strong,.staff-security-info small{display:block;line-height:1.7}.staff-security-info small{margin-top:6px;color:var(--muted);font-size:12px}
.client-management-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 24px}.client-management-actions>.btn{white-space:normal;line-height:1.5}.document-management{margin-bottom:24px}.document-management h2{font-size:18px}.document-management .settings-row{gap:18px;flex-wrap:wrap}.document-management .settings-row .card-actions{margin:0}.document-management .settings-row strong{font-size:13px;line-height:1.6}.tariff-settings-list{margin-top:24px}.tariff-settings-list .settings-row{align-items:center;gap:18px}.tariff-settings-list .settings-row>div:first-child{min-width:0;flex:1}.tariff-settings-list .card-actions{margin:0;flex-shrink:0}.tariff-settings-list small{display:block;line-height:1.6;color:var(--muted);font-size:12px}.terms-calculation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:22px 0;padding:20px;background:#faf4f5;border:1px solid #f0e0e4;border-radius:14px}.terms-calculation span,.terms-calculation strong{display:block;line-height:1.5}.terms-calculation span{font-size:12px;color:var(--muted)}.terms-calculation strong{font-size:21px;margin-top:5px}.terms-calculation p{grid-column:1/-1;font-size:11px;line-height:1.7;color:var(--muted);margin:0}
.backup-retention-form{display:flex;align-items:flex-end;gap:14px;margin:24px 0;flex-wrap:wrap}.backup-retention-form>label{font-size:12px;flex:1;min-width:180px;max-width:340px}.backup-retention-form>label>input{width:100%;margin-top:8px}.backup-retention-form>.btn{height:48px}.backup-retention-form .form-error{flex-basis:100%}.backup-retention-form .form-error:empty{display:none}.backup-list{margin-top:24px}.backup-list .settings-row{gap:20px}.backup-list .settings-row>div:first-child{min-width:0;flex:1}.backup-list .settings-row strong{font-size:13px;line-height:1.6}.backup-list .settings-row p{font-size:11px;overflow-wrap:anywhere;line-height:1.6}.backup-list .settings-row small{font-size:11px;color:var(--muted)}.backup-list .card-actions{margin:0;flex-shrink:0}.comment-publish-preview{margin:20px 0;padding:20px;border-left:3px solid #c8202f;border-radius:0 12px 12px 0;background:#faf5f6;white-space:pre-wrap;line-height:1.8;font-size:14px}.campaign-channel-picker{border:1px solid #e9dfe2;border-radius:14px;padding:18px;margin:24px 0}.campaign-channel-picker legend{font-size:13px;font-weight:600;padding:0 7px}.campaign-channel-picker .checkbox{margin:10px 0}.campaign-channel-summary{padding:16px 20px;border-radius:12px;background:#faf5f6;margin:20px 0;line-height:1.8;font-size:13px}.mail-image-editor{margin:24px 0}.mail-image-editor h3{font-size:16px}.mail-image-item{display:grid;grid-template-columns:80px minmax(0,1fr) auto;align-items:center;gap:16px;padding:18px 0;border-bottom:1px solid #eee5e8}.mail-image-item>img{width:80px;height:80px;object-fit:contain;background:#f7f4f5;border:1px solid #eee5e8;border-radius:12px}.mail-image-item>div{display:grid;gap:14px;min-width:0}.mail-image-item label{display:grid;gap:8px;font-size:12px;min-width:0}.mail-image-item input,.mail-image-item select{width:100%;margin:0}.mail-preview img{max-width:100%;height:auto}.mail-variable-list code{padding:7px 10px;border:1px solid #eadfe2;border-radius:8px;background:#faf8f9;font-size:12px}
@media(max-width:680px){.date-control>.date-display{font-size:16px!important}.date-control,.date-field{width:100%;max-width:100%}.staff-gate-page{padding:16px}.staff-gate{padding:26px}.staff-gate h1{font-size:25px}.debt-choice{padding:20px}.debt-choice output{font-size:30px}.debt-intro h1{font-size:27px}.client-management-actions{display:grid;grid-template-columns:minmax(0,1fr)}.client-management-actions>.btn{width:100%;min-height:46px}.terms-calculation{padding:17px;gap:12px}.terms-calculation strong{font-size:18px}.tariff-settings-list .settings-row,.backup-list .settings-row{flex-wrap:wrap}.tariff-settings-list .settings-row>div:first-child,.backup-list .settings-row>div:first-child{flex-basis:100%}.tariff-settings-list .card-actions,.backup-list .card-actions{justify-content:flex-start}.backup-retention-form{display:grid;grid-template-columns:minmax(0,1fr)}.backup-retention-form>label{min-width:0;max-width:100%}.backup-retention-form>.btn{width:100%}.mail-image-item{grid-template-columns:64px minmax(0,1fr);align-items:start;gap:12px}.mail-image-item>img{width:64px;height:64px}.mail-image-item>.btn{grid-column:2;justify-self:start}.document-management .card-actions{display:grid;grid-template-columns:minmax(0,1fr);width:100%}.document-management .card-actions>.btn{width:100%;white-space:normal;line-height:1.5}}

/* 3.6 additions follow existing cards, spacing and field sizes. */
.base-package-card{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding:18px;margin:18px 0;background:var(--soft,#fff4f5);border:1px solid var(--line,#e9e7eb);border-radius:16px}.base-package-card h3{margin:0}.base-package-card p{margin:6px 0 0}.package-catalog{max-height:60vh;overflow:auto;margin-top:18px}.package-catalog .catalog-item{align-items:center}.schedule-editor-row{border-bottom:1px solid var(--line,#e9e7eb);padding:14px 0}.schedule-editor-row>.btn{margin-top:8px}[data-frequency-monthly],[data-frequency-fortnightly]{min-width:0}[data-frequency-monthly][hidden],[data-frequency-fortnightly][hidden]{display:none}.base-package-card .card-actions{margin:0}@media(max-width:600px){.base-package-card{padding:15px}.base-package-card .card-actions{width:100%;display:grid;grid-template-columns:1fr}.package-catalog{max-height:52vh}}

.package-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,1fr);align-items:end;gap:16px}.package-filters>label{min-width:0;margin:0}.package-filters .search{height:48px;max-width:none}.package-filters .search input{height:46px;min-width:0}.package-filters .search .icon{flex-shrink:0}.package-filters select{height:48px}@media(max-width:600px){.package-filters{grid-template-columns:minmax(0,1fr)}}
/* 3.7: aligned search controls, receipt inbox and the two signing methods. */
.search-input-shell{display:flex;align-items:center;gap:11px;box-sizing:border-box;height:48px;min-width:0;width:100%;padding:0 14px;border:1px solid #dedee6;border-radius:10px;background:#fff;transition:border-color .15s,box-shadow .15s}
.search-input-shell>.icon{width:18px;height:18px;flex:0 0 18px;color:var(--muted)}
.search-input-shell>input{display:block;min-width:0;width:100%;height:46px;min-height:0;margin:0;padding:0;border:0;border-radius:0;outline:0;background:transparent;box-shadow:none;font-size:14px;line-height:1.5}
.search-input-shell:focus-within{border-color:var(--red);box-shadow:0 0 0 3px #cc293714}.search-input-shell>input:focus{border:0;box-shadow:none;outline:0}
.package-filters{grid-template-columns:minmax(0,1.4fr) minmax(180px,1fr);gap:18px;align-items:end}.package-filters>.package-search-field{display:block}.package-search-field>span{display:block;margin-bottom:8px;font-size:13px;line-height:1.5;color:var(--muted)}.package-filters>label>select{margin-top:8px}.package-filters .search-input-shell>input{margin:0}
.payment-review-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:end;margin-bottom:24px}.payment-review-search>label{margin:0;min-width:0}.payment-review-search>label>span{display:block;margin-bottom:8px;font-size:13px}.payment-review-search>.btn{height:48px;margin:0}
.payment-review-list{display:grid;gap:20px}.payment-review-card{padding:23px;border:1px solid var(--line);border-radius:17px;background:#fff}.payment-review-person{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:14px}.payment-review-person>div{min-width:0}.payment-review-person h2{margin:0;font-size:17px;line-height:1.5}.payment-review-person p{margin:5px 0;font-size:13px;color:var(--muted)}.payment-review-person small{font-size:11px;color:var(--muted)}.payment-review-amount{font-size:25px;white-space:nowrap;color:var(--red)}
.payment-review-meta{display:flex;flex-wrap:wrap;gap:10px 24px;margin:18px 0;color:var(--muted);font-size:12px}.payment-review-files{padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.payment-review-files h3{font-size:12px;color:var(--muted);margin-bottom:12px}.payment-review-files .file-link{margin:8px 0}.payment-review-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding-top:18px}.payment-review-actions>.btn:first-child{margin-right:auto}.payment-review-actions>.btn{min-width:0;flex-shrink:1}.payment-review-summary{display:grid;gap:8px;padding:18px;border:1px solid var(--line);border-radius:12px;background:#fff8f9}.payment-review-summary>b{font-size:26px;color:var(--red)}.payment-review-summary>span{font-size:12px;color:var(--muted)}
.signature-methods{padding-top:24px;margin-top:20px;border-top:1px solid var(--line)}.signature-methods>h3{font-size:17px;margin:0 0 17px}.signature-method-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.signature-method-grid>article{display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:20px;border:1px solid var(--line);border-radius:15px;background:#fcfcfe}.signature-method-grid>article:first-child{background:#fff6f7;border-color:#ecd1d6}.signature-method-grid h4{margin:14px 0 8px;font-size:16px;line-height:1.5}.signature-method-grid p{font-size:13px;line-height:1.75;color:var(--muted);margin:0 0 18px}.signature-method-grid>.btn,.signature-method-grid article>.btn{margin-top:auto;min-width:0}
.pep-staff-action{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:22px;padding:20px;border:1px solid #ecd1d6;border-radius:14px;background:#fff8f9}.pep-staff-action>div{min-width:0}.pep-staff-action h3{font-size:15px;margin-bottom:6px}.pep-staff-action p{font-size:12px;line-height:1.7;color:var(--muted);margin:0}.pep-staff-action>.btn{flex-shrink:0}
.pep-signed-note{display:flex;gap:15px;margin-top:22px;padding:20px;background:#edf7f2;border:1px solid #d5e9de;border-radius:14px}.pep-signed-note>.icon{width:22px;height:22px;color:#28765a;flex-shrink:0}.pep-signed-note>div{min-width:0;flex:1}.pep-signed-note h3{font-size:16px;color:#27634e}.pep-signed-note p{font-size:13px;line-height:1.7;margin:8px 0 12px}.pep-signed-note .file-link{background:#fff}
.pep-rules{border:1px solid var(--line);border-radius:12px;margin:20px 0;overflow:hidden}.pep-rules>summary{cursor:pointer;padding:16px;font-size:14px;font-weight:600;line-height:1.5}.pep-rules>.pre{padding:0 17px 18px;font-size:13px;line-height:1.8;max-height:35dvh;overflow:auto}.pep-agreement{align-items:flex-start;margin:16px 0;font-size:13px;line-height:1.75}.pep-agreement>input{margin-top:4px;flex:0 0 auto}.pep-agreement>span{min-width:0}.pep-phone{font-size:14px;line-height:1.7}.pep-code-label{display:block;margin-top:24px}.pep-code-input{display:block;box-sizing:border-box;width:100%;height:60px;max-width:330px;margin-top:10px;font:28px/1.4 ui-monospace,monospace;letter-spacing:.23em;text-align:center;padding:10px 16px}.pep-code-input:disabled{background:#f3f3f6;opacity:1}.pep-issued{display:grid;gap:15px}.pep-issued>p{margin:0;font-size:14px;line-height:1.7}.pep-issued-digits{display:block;max-width:100%;padding:24px 12px;border:1px solid #ecd1d6;border-radius:14px;background:#fff6f7;text-align:center;font:600 40px/1.2 ui-monospace,monospace;letter-spacing:.18em;color:var(--red)}.pep-issued textarea{display:block;min-height:132px;font-size:14px;line-height:1.7;resize:vertical}.pep-settings-form{max-width:650px}.pep-settings-form>label{display:block;max-width:270px}
@media(max-width:1023px){.staff-bottom-nav:has(>a:nth-child(6)){display:grid;grid-template-columns:repeat(6,minmax(0,1fr))!important}.staff-bottom-nav:has(>a:nth-child(6)) a{width:auto;min-width:0;padding-inline:1px}.staff-bottom-nav:has(>a:nth-child(6)) a small{font-size:10px;line-height:1.3}.staff-bottom-nav .nav-counter{position:absolute;right:7px;top:1px;min-width:16px;height:16px;padding:0 4px;font-size:9px}}
@media(max-width:700px){.search-input-shell>input{font-size:16px}.package-filters{grid-template-columns:minmax(0,1fr);gap:16px}.payment-review-search{grid-template-columns:minmax(0,1fr)}.payment-review-search>.btn{width:100%}.payment-review-card{padding:18px}.payment-review-person{grid-template-columns:38px minmax(0,1fr);gap:12px}.payment-review-person .avatar{width:38px;height:38px}.payment-review-person h2{font-size:16px}.payment-review-amount{grid-column:2;font-size:24px;margin-top:3px}.payment-review-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.payment-review-actions>.btn:first-child{grid-column:1/-1;margin:0}.payment-review-actions>.btn{width:100%;min-height:48px;padding:10px;font-size:12px;line-height:1.5}.signature-method-grid{grid-template-columns:minmax(0,1fr)}.signature-method-grid article{padding:18px}.pep-staff-action{flex-direction:column;align-items:stretch;padding:17px;gap:15px}.pep-staff-action>.btn{width:100%;min-width:0}.pep-rules>.pre{font-size:14px}.pep-agreement{font-size:14px}.pep-code-input{max-width:100%;width:100%}.pep-issued-digits{font-size:34px}.pep-signed-note{padding:16px}}
/* 3.8: existing cabinet spacing with new service controls. */
.registration-consents{display:grid;gap:12px;margin:22px 0}.registration-consents .checkbox{align-items:flex-start;gap:10px;margin:0;font-size:12px;line-height:1.75}.registration-consents input[type=checkbox]{margin-top:4px;flex:0 0 auto}.registration-consents a,.pep-agreement a,.footer-legal-links a{color:var(--red);text-decoration:underline;text-underline-offset:3px}.registration-consents .notice{font-size:13px}.optional-email-field{margin-bottom:18px}.optional-email-field>label{margin-bottom:5px}.optional-email-field>small{display:block;font-size:12px;color:var(--muted)}.range-limits{gap:15px}.range-limits>span:last-child{text-align:right}
.footer-note .footer-privacy{display:block;font-size:inherit;line-height:1.8}.footer-privacy>.icon{vertical-align:middle;margin-right:7px}.footer-legal-links{display:flex;flex-wrap:wrap;gap:4px 19px;margin-top:7px}.footer-legal-links a{color:inherit;font:inherit}.footer-note>span:last-child{white-space:nowrap;align-self:flex-start}
.avatar{position:relative;overflow:hidden;flex-shrink:0}.avatar>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit}.avatar-initials{position:relative;z-index:0;font:inherit}.staff-photo-settings{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:22px 0;margin:22px 0}.staff-photo-settings h3{font-size:15px}.staff-photo-settings form{max-width:520px}.staff-photo-settings .card-actions{margin-top:14px}.staff-photo-settings input[type=file]{width:100%;max-width:100%}
.legal-editor-switch{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:25px;padding-bottom:20px;border-bottom:1px solid var(--line)}.legal-editor-switch .filter-tab{white-space:normal;min-height:44px;text-align:left}.legal-editor-text{display:block;min-height:360px;line-height:1.8;resize:vertical;font-size:14px}.legal-version-list{margin-top:20px}.legal-version-list .settings-row{gap:20px;align-items:flex-start}.legal-version-list .settings-row>div:first-child{min-width:0}.legal-version-list h3,.legal-version-list p{overflow-wrap:anywhere}.legal-version-list .card-actions{justify-content:flex-end}.pep-source-archive{margin-top:15px;border:1px solid var(--line);border-radius:12px;padding:14px}.pep-source-archive summary{font-size:12px;cursor:pointer;color:var(--muted)}.pep-signed-note h3{margin:0}.pep-signed-note .file-link{margin-top:14px}.pep-settings-form .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pep-settings-form label{min-width:0}.staff-trust-settings{border-bottom:1px solid var(--line);padding:22px 0;margin-bottom:25px}.staff-trust-settings h3{font-size:16px}.trust-days-field{display:flex;gap:16px;align-items:flex-end;max-width:490px}.trust-days-field>label{margin:0;min-width:0;flex:1}.trust-days-field>.btn{min-height:48px;flex-shrink:0}.advance-preview{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px;background:#fff6f7;border:1px solid #efdce0;border-radius:12px;margin-top:18px}.advance-preview>strong{color:var(--red);font-size:23px;white-space:nowrap}
.stage-editor-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px}.stage-editor-toolbar>label{margin:0;max-width:320px;flex:1}.stage-editor-toolbar select{width:100%}.stage-milestones{margin-bottom:20px}.stage-editor-list{display:grid;gap:16px}.stage-edit-card{border:1px solid var(--line);border-radius:15px;overflow:hidden}.stage-edit-card>summary{display:flex;align-items:center;gap:13px;padding:17px;cursor:pointer;list-style:none}.stage-edit-card>summary::-webkit-details-marker{display:none}.stage-edit-number{display:inline-flex;align-items:center;justify-content:center;width:35px;height:35px;background:#fff1f3;color:var(--red);border-radius:10px;font-size:12px;flex-shrink:0}.stage-edit-card>summary>strong{min-width:0;flex:1;font-size:15px;line-height:1.5;overflow-wrap:anywhere}.stage-editor-actions{display:flex;gap:6px;flex-shrink:0}.stage-editor-actions .btn{min-height:36px;padding:7px 11px}.stage-edit-body{padding:20px;border-top:1px solid var(--line);background:#fcfcfe}.stage-content-field{margin-top:20px;border-top:1px solid var(--line);padding-top:18px}.stage-content-field textarea{min-height:100px;line-height:1.7}.stage-content-field label:last-child{margin-bottom:0}.stage-edit-body label input,.stage-edit-body label textarea{margin-top:7px}.stage-editor>.section-help{margin-top:18px}.chat-message .pre a{color:inherit;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere;word-break:break-word}
@media(max-width:1023px){.staff-shell .bottom-nav.staff-bottom-nav{grid-template-columns:repeat(var(--nav-count,5),minmax(0,1fr))!important}}
@media(max-width:700px){.registration-consents .checkbox{font-size:13px;line-height:1.7}.footer-note{flex-direction:column;gap:13px}.footer-legal-links{gap:7px 0;flex-direction:column}.legal-version-list .settings-row{flex-direction:column}.legal-version-list .card-actions{justify-content:flex-start;width:100%}.legal-editor-text{min-height:320px;font-size:16px}.trust-days-field{display:grid;grid-template-columns:minmax(0,1fr)}.trust-days-field>.btn{width:100%}.pep-settings-form .form-grid{grid-template-columns:minmax(0,1fr)}.stage-editor-toolbar{flex-wrap:wrap;gap:15px}.stage-editor-toolbar>label{flex-basis:100%;max-width:none}.stage-editor-toolbar>.btn{width:100%}.stage-edit-card>summary{padding:14px;flex-wrap:wrap;gap:10px}.stage-editor-actions{margin-left:45px;width:calc(100% - 45px);justify-content:flex-end}.stage-editor-actions .btn{min-height:40px}.stage-edit-body{padding:16px}.stage-milestones{grid-template-columns:minmax(0,1fr)}.advance-preview{padding:14px}.advance-preview>strong{font-size:21px}.staff-photo-settings .card-actions>.btn{flex:1}}
.statistics-filters .filter-tabs{margin-bottom:20px}.statistics-date-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) minmax(0,1.1fr) auto;gap:16px;align-items:end}.statistics-date-form>label{min-width:0;margin:0}.statistics-date-form>.btn{height:48px}.statistics-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:25px}.statistics-kpis .card{display:grid;gap:12px;margin:0;padding:22px}.statistics-kpis small{font-size:12px;color:var(--muted);line-height:1.6}.statistics-kpis strong{font-size:30px;line-height:1.2}.statistics-kpis .stat-online{background:#edf7f1;border-color:#d6e9df}.stat-online strong{color:#26714e}.statistics-chart{display:flex;align-items:flex-end;gap:14px;overflow-x:auto;padding:15px 0 25px;min-height:170px}.stat-day{display:flex;flex:1 0 34px;max-width:80px;flex-direction:column;align-items:center;gap:8px}.stat-day>i{display:block;width:100%;max-width:38px;background:linear-gradient(180deg,#dd4152,#bf2435);border-radius:6px 6px 0 0;min-height:3px}.stat-day>strong{font-size:12px}.stat-day>small{font-size:10px;color:var(--muted);white-space:nowrap}.statistics-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:24px 0}.statistics-columns .card{min-width:0;margin:0}.statistics-columns h2{font-size:18px}.statistics-simple-row{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding:15px 0;font-size:13px}.statistics-simple-row>span{min-width:0;overflow-wrap:anywhere}.statistics-simple-row small,.statistics-visits small{display:block;font-size:10px;line-height:1.7;color:var(--muted);margin-top:5px}.statistics-simple-row>strong{flex-shrink:0;color:var(--red)}.statistics-visits{margin-top:20px;max-width:100%;overflow-x:auto}.statistics-visits table{min-width:1090px}.statistics-visits td{vertical-align:top;line-height:1.7}.statistics-visits th{white-space:nowrap}.statistics-delete-actions{display:flex;flex-wrap:wrap;gap:12px;padding-top:22px;margin-top:22px;border-top:1px solid var(--line)}.statistics-chart+.table-scroll{overflow-x:auto}.bar-chart{overflow-x:auto}.bar-chart .bar-column{min-width:30px}.stage-pills .stage-pill{min-width:0;flex:1}
@media(max-width:1023px){.statistics-date-form{grid-template-columns:repeat(2,minmax(0,1fr))}.statistics-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.statistics-columns{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){.statistics-date-form{grid-template-columns:minmax(0,1fr);gap:16px}.statistics-date-form>.btn{width:100%}.statistics-filters .filter-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.statistics-filters .filter-tabs>.btn{width:100%;min-width:0}.statistics-kpis{gap:12px}.statistics-kpis .card{padding:18px}.statistics-kpis strong{font-size:27px}.statistics-kpis small{font-size:11px}.statistics-delete-actions>.btn{width:100%;font-size:12px}.statistics-chart{gap:10px}}

/* 3.9: recovery contacts and clear application/schedule controls. */
.phone-format-help{font-size:12px;line-height:1.55;color:var(--muted,#777985);margin:-4px 0 17px}.forgot-email-link{display:inline-flex;margin:-2px 0 20px;min-height:28px}.recovery-contacts{display:grid;gap:18px;margin:6px 0 8px}.recovery-messengers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.recovery-messengers .channel-link{min-width:0;width:100%;height:82px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:8px;flex-direction:column;border:1px solid #e8e8ee;border-radius:17px}.recovery-messengers .channel-link strong{font-size:14px;line-height:1}.recovery-phone{display:flex;align-items:center;gap:12px;min-width:0;padding:17px 18px;border-radius:17px;background:#fff4f5;border:1px solid #f3dce0;color:#b92132}.recovery-phone span{display:grid;gap:5px;min-width:0;flex:1}.recovery-phone small{font-size:12px}.recovery-phone strong{font-size:17px;overflow-wrap:anywhere}.recovery-phone>.icon:last-child{flex:none}.registration-result-text{font-size:15px;line-height:1.7;margin:0 0 22px}.lead-status-row,.lead-contact-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.lead-status-row{margin-bottom:12px}.lead-contact-heading{margin-bottom:20px}.lead-contact-heading p{min-width:0;overflow-wrap:anywhere}.lead-call{flex:0 0 40px;width:40px;height:40px;border-radius:13px;background:#fff0f2;color:#bf2435;border:1px solid #f4dce0}.lead-call:hover{background:#ffe5e9}.support-phone-setting{max-width:580px;margin-bottom:24px}.chat-message.chat-schedule-request{border:1px solid #ecc9cf}.chat-request-title{display:flex;gap:8px;align-items:flex-start;padding:10px 12px;margin:0 0 10px;border-radius:11px;background:#fff0f2;color:#a31b2d;line-height:1.45}.chat-request-title .icon{flex:none;width:17px;height:17px;margin-top:2px}.chat-request-title strong{font-size:12px;overflow-wrap:anywhere}@media(max-width:480px){.recovery-messengers{gap:9px}.recovery-messengers .channel-link{height:76px;border-radius:14px}.recovery-phone{padding:15px}.lead-call{width:40px;height:40px}.lead-contact-heading{align-items:flex-start}.chat-request-title{padding:9px 10px}}

/* Application review reuses the client questionnaire layout, before issuing access. */
.lead-intake-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px;min-width:0}.lead-intake-heading>div{min-width:0}.lead-intake-heading h1{font-size:28px;line-height:1.25;overflow-wrap:anywhere;margin:10px 0 8px}.lead-intake-heading p{font-size:14px;color:var(--muted);overflow-wrap:anywhere}.lead-intake-heading .text-btn .icon{transform:rotate(180deg)}.lead-intake-access{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.lead-intake-access h2{font-size:18px;margin:0 0 8px}.lead-intake-access .section-help{margin:0}.lead-intake-access>div{min-width:0}.lead-intake-access>.btn{flex-shrink:0}.btn.muted-approval:disabled{background:#eef0f4;color:#7a7e8a;border-color:#e0e3e9;opacity:1;cursor:not-allowed}.application-policy-fields{display:grid;grid-template-columns:minmax(160px,360px) auto;gap:16px;align-items:end;margin-bottom:20px}.application-policy-fields>label{margin:0}.application-policy-fields>.btn{justify-self:start}.lead-card .form-footer{flex-wrap:wrap;align-items:stretch}.lead-card .form-footer>.btn{max-width:100%;white-space:normal}.lead-intake-access+.intake-layout{margin-top:20px}
@media(max-width:640px){.lead-intake-heading h1{font-size:23px}.lead-intake-access{align-items:stretch;flex-direction:column;gap:16px}.lead-intake-access>.btn{width:100%;min-height:46px}.application-policy-fields{grid-template-columns:minmax(0,1fr)}.application-policy-fields>.btn{width:100%}.lead-card .form-footer>.btn{flex:1 1 130px}}

.lead-intake-access>.btn{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.4;min-height:46px}.lead-intake-access>.btn svg{flex-shrink:0}

/* No empty action divider below an already signed contract. */
.contract-work-grid .card-actions:empty{display:none}
