/* Final presentation layer for CRM screens. Document/print layouts are excluded. */
@media screen {
:root{--app-blue:#3159a7;--app-blue-soft:#edf3fc;--app-nav-text:#61718a;--app-nav-line:#e4eaf2}
body.app-workspace{background:#f5f7fb;color:#223149}
body :is(.agenda-shell,.files-shell){box-sizing:border-box;width:100%;max-width:1200px;margin:auto;padding:34px 30px calc(150px + env(safe-area-inset-bottom));font-family:Aptos,'Segoe UI',system-ui,sans-serif;color:#223149}
body .agenda-shell{--agenda-blue:#3159a7;--agenda-ink:#223149;--agenda-muted:#64758c;--agenda-line:#e4eaf2}
body .files-shell{--files-blue:#3159a7;--files-ink:#223149;--files-muted:#64758c;--files-line:#e4eaf2}
body :is(.agenda-breadcrumb,.files-back,.reports-breadcrumb,.settings-breadcrumb){gap:11px;margin-bottom:30px;color:#718198;font-size:12px}
body :is(.agenda-breadcrumb,.files-back,.reports-breadcrumb,.settings-breadcrumb) a{display:inline-flex;align-items:center;min-height:30px;padding:0;border:0;background:none;color:#607b9e;text-decoration:none}
body .agenda-hero{border:1px solid #e4eaf2;border-radius:24px;background:radial-gradient(ellipse at 100% 0,#edf3fd,transparent 65%),#fff;box-shadow:0 4px 20px #19335b04;color:#223149}
body .agenda-hero::after{display:none}
body :is(.agenda-hero,.agenda-form-head,.files-heading) h1{font-size:44px;font-weight:780;letter-spacing:-.05em;line-height:1.12;color:#223149;overflow-wrap:anywhere}
body .agenda-hero h1 span{color:#6c8bb9}
body .agenda-hero p:last-child{color:#64758c;line-height:1.8}
body :is(.agenda-eyebrow,.files-eyebrow){color:#607b9e;font-size:10px;font-weight:800;letter-spacing:.15em}
body .agenda-hero>a{border:1px solid #dce7f8;border-radius:11px;background:#edf4ff;color:#416aa3;font-size:12px}
body .agenda-hero>a:hover{background:#e2ecfc}
body :is(.calendar,.agenda-day-panel,.agenda-form-card,.files-upload,.files-form,.files-filters,.file-card){border:1px solid #e4eaf2;border-radius:22px;background:#fff;box-shadow:0 4px 20px #19335b04;min-width:0}
body .calendar-weekdays{background:#f7f9fd}
body .calendar-weekdays span{color:#61748f}
body .calendar-day.is-selected{background:#f0f5ff;box-shadow:inset 0 0 0 2px #a9bfdf}
body .day-panel-head{background:#f8fafd;border-color:#e9eef6}
body :is(.agenda-toolbar h2,.agenda-form-card__title h2,.files-upload-intro h2,.files-list-head h2){color:#3d5576;font-size:24px;font-weight:750;letter-spacing:-.035em}
body .agenda-form-card__title>span{border:1px solid #e0e9f8;background:#f1f5fd;color:#6787b4}
body :is(.agenda-form-card,.files-upload){padding:26px}
body .files-upload{background:linear-gradient(135deg,#f8fafd,#fff)}
body .files-upload-mark{border:1px solid #dfe9f8;background:#edf3fc;color:#688bb7;box-shadow:none}
body .files-upload-note{border-left-color:#a5bddf;background:#fff;color:#64758c}
body .files-picker{border-color:#b9cce6;background:#f7faff}
body .file-card{padding:23px;transition:border-color .18s,box-shadow .18s}
body .file-card:hover{border-color:#c3d3e9;box-shadow:0 8px 26px #1d3a6310}
body .file-card h3{color:#354f72;font-size:17px;font-weight:750;line-height:1.5}
body .file-category{background:#f1f5fc;border:1px solid #e1eafa;color:#607b9e;border-radius:999px}
body :is(.agenda-shell,.files-shell) :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){box-sizing:border-box;min-height:46px;border:1px solid #dfe6ef;border-radius:11px;background:#fbfcfe;color:#344b6a;font:400 13px/1.5 Aptos,'Segoe UI',system-ui,sans-serif}
body :is(.agenda-shell,.files-shell) :is(input,select,textarea):focus{border-color:#91afd6;box-shadow:0 0 0 3px #3159a70b}
body :is(.agenda-field label,.files-fields label>span,.files-filters label>span){color:#60738d;font-size:11px;font-weight:700}
body :is(.agenda-submit button,.files-filters button,.files-submit,.files-heading-action){min-height:43px;border-radius:11px;background:#3159a7;color:#fff;font-size:12px;font-weight:730;box-shadow:none}
body :is(.agenda-shell,.files-shell) :focus-visible{outline:3px solid #83a7df;outline-offset:4px}
/* Readable secondary copy across the management pages, without recoloring statuses. */
body :is(.clients-workspace,.payments-workspace,.quote-shell) :is(.subtitle,.form-note,.field-hint,.form-field small,.card-heading small,.client-company,.client-number,.client-created,.detail-label,.overview-label,.overview-note,.client-line,.reference,.card-date,.form-field label,.tile-client,.tile-alternative,.tile-lead,.side-note){color:#64758c}
body .clients-workspace .detail-row{color:#526b8b}
body :is(.clients-workspace,.payments-workspace) :is(.form-note,.field-hint,.client-company,.detail-row){line-height:1.8}
body .quote-shell :is(.side-card p,.card-heading>div>p,.quote-summary>div>span,.quote-summary>div>small,.tile-foot){color:#64758c}
body :is(.projects-shell,.receipts-page,.team-shell) :is(.tile-type,.tile-client,.tile-meta small,.team-card__top,.team-card__person p,.receipt-kicker,.receipt-person>span,.receipt-person small,.receipt-detail>span,.receipt-amount>span,.summary-item span,.summary-item small,.team-stats span,.team-stats .team-stats__note){color:#64758c}
body .home-stage :is(.welcome-description,.section-heading p,.section-heading>span,.followups-help,.followup-client,.followup-folio,.action-copy small){color:#64758c}
body .home-stage .action-copy strong{overflow-wrap:anywhere}
body .reports-shell :is(.reports-note,.reports-filters>p,.reports-metric>span,.reports-lead-metric>p,.reports-lead-metric small,td small,thead th){color:#64758c}
body .settings-shell :is(.settings-field small,.settings-fixed small,.settings-account dt,.settings-index>div,.settings-card-heading p){color:#64758c}
body :is(.services-note,.services-card small,.services-form small,.services-history small,.services-empty p,.agenda-footnote,.agenda-field small,.files-list-head>span,.file-card-foot small){color:#64758c}
body .quote-shell.lead-shell :is(.lead-panel h2,.lead-metrics article>strong){color:#3d5576;font-weight:750}
body .quote-shell.lead-shell .lead-form label{font-size:11px;color:#60738d}
body .quote-shell.lead-shell .lead-submit button{background:#3159a7;border-radius:11px;box-shadow:none}
body .quote-shell :is(.lead-history time,.lead-history-meta,.lead-metrics small){color:#64758c}
body :is(.projects-shell,.receipts-page,.team-shell,.clients-workspace,.payments-workspace,.quote-shell,.reports-shell,.settings-shell,.services-shell,.files-shell,.agenda-shell) :is(h1,h2,h3,h4){overflow-wrap:anywhere}
body :is(.projects-shell,.receipts-page,.team-shell,.clients-workspace,.payments-workspace,.quote-shell,.reports-shell,.settings-shell,.services-shell,.files-shell,.agenda-shell) :is(.form-actions,.form-end,.form-submit,.team-submit,.lead-submit,.services-actions,.agenda-submit){flex-wrap:wrap}
body :is(.projects-shell,.receipts-page,.team-shell,.clients-workspace,.payments-workspace,.quote-shell,.reports-shell,.settings-shell,.services-shell,.files-shell,.agenda-shell) :is(button,a,input,select,textarea){scroll-margin-block:24px 130px}
body .reports-table-wrap{max-width:100%;overscroll-behavior-inline:contain;scrollbar-width:thin}
body .reports-table-wrap:focus-visible{outline:3px solid #83a7df;outline-offset:4px}
/* Internal access/exit screens use the same cards, controls and typography. */
body .access{box-sizing:border-box;width:calc(100% - 36px);max-width:440px;margin:8vh auto;padding:30px;border:1px solid #e4eaf2;border-radius:22px;background:#fff;box-shadow:0 4px 20px #19335b04;color:#223149;font-family:Aptos,'Segoe UI',system-ui,sans-serif}
body .access>p:first-child{font-size:10px;font-weight:800;letter-spacing:.12em;color:#607b9e;line-height:1.8}
body .access h1{font-size:34px;line-height:1.12;letter-spacing:-.05em;font-weight:780}
body .access label{font-size:12px;font-weight:700;color:#60738d}
body .access input{min-height:46px;border:1px solid #dfe6ef;background:#fbfcfe;border-radius:11px;color:#344b6a;font-size:16px}
body .access button{min-height:46px;border:0;border-radius:11px;background:#3159a7;color:white;font-size:13px;font-weight:730;cursor:pointer}
body .access input:focus-visible,body .access button:focus-visible{outline:3px solid #83a7df;outline-offset:3px}
body .access a{display:inline-flex;align-items:center;min-height:44px;color:#3159a7;font-size:12px;text-underline-offset:4px}
body .access :is(.notice,.form-error){font-size:12px;line-height:1.8}
/* Shared frontend landing pages: override encapsulated copy, keep layout/routing intact. */
body main:is(.projects-stage,.team-stage,.clientes-choice-stage,.payments-stage,.quotes-stage,.clientes-stage) :is(.entry-card p,.choice-copy>span,.option p,.intro>span,.section-heading>span,.intro-copy>p:last-child){color:#64758c;line-height:1.8}
body main:is(.projects-stage.projects-stage,.team-stage.team-stage) .hero .hero-copy>p:last-of-type{color:#64758c}
body main.team-stage.team-stage .hero .hero-art p{color:#64758c}
body main.quotes-stage.quotes-stage .quote-intro .intro-copy>p:last-child{color:#64758c}
body main:is(.projects-stage,.team-stage,.clientes-choice-stage,.payments-stage,.quotes-stage,.clientes-stage) .breadcrumb a{background:none;border:0;padding:0;color:#607b9e;min-height:30px}
body main.clientes-stage{max-width:1200px;width:100%;padding:34px 30px calc(150px + env(safe-area-inset-bottom));color:#223149}
body main.clientes-stage .page-heading{border-color:#e4eaf2;border-radius:22px;box-shadow:0 4px 20px #19335b04;background:#fff}
body main.clientes-stage .page-heading::before,body main.clientes-stage .page-heading::after{display:none}
body main.clientes-stage .page-heading h1{color:#223149;font-size:44px;letter-spacing:-.05em}
body main.clientes-stage .intro{color:#64758c;font-size:13px;line-height:1.8}
body main.clientes-stage :is(.form-card,.side-card){border-color:#e4eaf2;border-radius:22px;box-shadow:0 4px 20px #19335b04}
body main.clientes-stage .form-section{background:#f8fafd;border-color:#e9eef6}
body main.clientes-stage .form-actions button{background:#3159a7;box-shadow:none;border-radius:11px}
body main.clientes-stage .field :is(input,select,textarea){background:#fbfcfe;border-color:#dfe6ef;color:#344b6a}
body :is(.app-bottom-nav,.app-more-sheet){border-color:#e4eaf2}
body .app-nav-item.is-active{background:#3159a7}
body .app-nav-item--main{background:#edf3fc;color:#3159a7}
body :is(.app-more-option,.app-more-logout button){border-color:#e4eaf2}
body .app-more-option.is-current{border-color:#c3d3e9;background:#f2f6fd}
body .app-more-heading h2{color:#223149}
body .app-more-heading p{color:#3159a7}
body :is(.app-more-option,.app-more-logout) small{line-height:1.5}
body :is(.agenda-toolbar,.files-heading,.files-list-head,.reports-section-head,.results-heading){min-width:0}
@media(max-width:850px){body .files-upload{grid-template-columns:1fr}body .files-upload-intro{padding:0}body .files-upload-mark{margin-bottom:18px}}
@media(max-width:760px){
body :is(.agenda-shell,.files-shell),body main.clientes-stage{padding:25px 18px calc(135px + env(safe-area-inset-bottom))}
body :is(.agenda-hero,.agenda-form-head,.files-heading) h1,body main.clientes-stage .page-heading h1{font-size:34px}
body .agenda-hero{padding:26px}
body :is(.agenda-form-card,.files-upload,.files-form,.file-card){padding:21px;border-radius:18px}
body :is(.home-stage,.reports-shell,.settings-shell,.clients-workspace,.payments-workspace,.quote-shell,.proposal-screen,.services-shell){padding-bottom:calc(135px + env(safe-area-inset-bottom))}
body :is(.agenda-shell,.files-shell,.home-stage,.reports-shell,.settings-shell,.clients-workspace,.payments-workspace,.quote-shell,.services-shell,.projects-shell,.team-shell,.receipts-page) :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea),body main.clientes-stage .field :is(input,select,textarea){font-size:16px}
body .agenda-shell .day-event__status-form select{font-size:14px;min-height:40px}
body .agenda-shell .day-event__status-form button{min-height:40px}
body :is(.reports-pagination,.followups-pagination,.lead-pagination,.services-pages){flex-wrap:wrap;gap:12px}
body :is(.reports-pagination,.followups-pagination,.lead-pagination,.services-pages) a{display:inline-flex;align-items:center;min-height:44px}
body .receipts-page .hero-art{display:none}
body .access{padding:25px;margin:28px auto}
}
@media(max-width:540px){
body .agenda-toolbar{flex-wrap:wrap;gap:14px}
body .agenda-toolbar__actions{margin-left:auto}
body :is(.files-heading,.files-list-head,.reports-section-head,.results-heading){flex-wrap:wrap;gap:12px}
body .files-heading-action{width:100%}
body .reports-shell .reports-metric>strong{font-size:24px;overflow-wrap:anywhere}
body .services-shell .services-header h1{font-size:34px}
body .quote-shell .tile-foot a{min-height:36px;display:inline-flex;align-items:center}
body .clients-workspace .client-card-footer{gap:12px}
body .payments-document .ticket-topline{flex-wrap:wrap}
body .payments-document .ticket-total{flex-wrap:wrap}
body .payments-document .ticket-total strong{white-space:normal;overflow-wrap:anywhere}
body .payments-document .ticket-verify{flex-wrap:wrap}
body .proposal-screen .proposal-toolbar{flex-wrap:wrap;gap:15px}
body .proposal-screen .toolbar-actions{flex-wrap:wrap;gap:8px}
body .app-more-sheet{max-height:88dvh}
}
@media(prefers-reduced-motion:reduce){body.app-workspace{scroll-behavior:auto}body :is(.agenda-shell,.files-shell,.access) *{transition:none!important;scroll-behavior:auto!important}}
}
/* Keep Angular route styles from narrowing the shared workspace at desktop sizes. */
@media screen{
body main:is(.clientes-choice-stage.clientes-choice-stage,.payments-stage.payments-stage,.quotes-stage.quotes-stage,.projects-stage.projects-stage,.team-stage.team-stage){box-sizing:border-box;width:100%;max-width:1200px;margin:auto;padding:34px 30px calc(150px + env(safe-area-inset-bottom));font-family:Aptos,'Segoe UI',system-ui,sans-serif;color:#223149}
@media(max-width:760px){body main:is(.clientes-choice-stage.clientes-choice-stage,.payments-stage.payments-stage,.quotes-stage.quotes-stage,.projects-stage.projects-stage,.team-stage.team-stage){padding:25px 18px calc(135px + env(safe-area-inset-bottom))}}
}
