/* Shared product surfaces, matching the approved advisor and onboarding concepts. */
:root { background:#f5f7f6; color:#1c302d; }
.workspace-shell { background:radial-gradient(ellipse at 80% 0,#eaf2ed80,transparent 55%),#f6f8f7; }
.workspace-shell .sidebar { width:248px; padding:32px 22px; position:sticky; top:0; height:100svh; border-color:#e6ece8; }
.brand { display:flex; align-items:center; gap:9px; font-size:23px; letter-spacing:-1px; }
.brand-mark { color:#078577; font-size:32px; line-height:1; }
.workspace-identity { margin:36px 0 30px; padding:15px 12px; border:1px solid #e4ebe6; border-radius:12px; display:flex; gap:11px; align-items:center; background:#fcfdfc; }
.workspace-identity strong { font-size:13px; font-weight:600; }
.workspace-identity small { font-size:8px; letter-spacing:1px; margin-top:3px; }
.identity-icon { color:#318375; font-size:25px; }
.nav-caption { color:#8c9c94; font-size:9px; letter-spacing:1.7px; margin:0 12px 14px; font-weight:650; }
.workspace-shell .sidebar nav { gap:7px; }
.workspace-shell .sidebar nav a { display:flex; align-items:center; gap:12px; font-size:13px; padding:12px; font-weight:500; }
.workspace-shell .sidebar nav a span { font-size:19px; width:21px; color:#648178; }
.workspace-shell .sidebar nav a.active { color:#126e60; background:linear-gradient(100deg,#e3f1e7,#eff5ef); font-weight:650; }
.workspace-shell .sidebar-footer { font-size:11px; border-top:1px solid #edf0ec; padding-top:20px; color:#638077; }
.sidebar-footer p { font-size:10px; color:#8b9992; }
.pilot-dot { display:inline-block; width:6px; height:6px; background:#1d9481; border-radius:50%; margin-right:8px; }
.workspace-topbar { height:78px; background:#ffffffa8; border-color:#e5ebe6; }
.topbar-actions { display:flex; align-items:center; gap:24px; }
.topbar-actions>.auth-language { padding-right:22px; border-right:1px solid #e1e8e2; }
.topbar-label { font-size:12px; color:#7c8c84; }
.workspace-shell main { padding:38px 40px 60px; }
.workspace-shell h1,.onboarding-shell h1 { font-size:clamp(28px,2.7vw,39px); letter-spacing:-1.4px; font-weight:650; margin:10px 0 16px; }
.workspace-shell h2,.onboarding-shell h2 { font-size:19px; letter-spacing:-.5px; }
.workspace-shell p,.onboarding-shell p { font-size:14px; line-height:1.7; color:#75857d; }
.workspace-shell .eyebrow,.onboarding-shell .eyebrow { font-size:9px; letter-spacing:1.8px; color:#498878; font-weight:700; }
.page-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.page-heading h1 { margin-bottom:0; }
.breadcrumb { font-size:11px; color:#7d9489; display:inline-block; margin-bottom:15px; }
.workspace-shell .panel,.workspace-shell .cards article { border:1px solid #e2e8e3; border-radius:15px; box-shadow:0 3px 15px #224e3303; padding:26px; }
.workspace-shell .panel { margin:0 0 22px; }
.workspace-shell button:not(.text-button):not(.auth-language button),.workspace-shell .button,.onboarding-shell button:not(.auth-language button) { background:linear-gradient(110deg,#0b8d7c,#087567); border:1px solid #087d6d; font-size:12px; border-radius:8px; padding:12px 18px; box-shadow:0 3px 7px #08766812; }
.workspace-shell button.secondary { background:white!important; color:#58766a; box-shadow:none!important; border-color:#dce5de!important; }
.workspace-shell .text-button { font-size:11px; }
.workspace-shell input:not([type=hidden]),.workspace-shell select,.onboarding-shell input:not([type=hidden]),.onboarding-shell select { font-size:13px; min-height:45px; border-color:#d9e2da; border-radius:8px; }
.workspace-shell label,.onboarding-shell label { font-size:12px; color:#40594d; }
.workspace-shell small,.onboarding-shell small { font-size:11px; line-height:1.6; }
.stat-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin:30px 0 25px; }
.stat-grid article { display:flex; align-items:center; gap:17px; border:1px solid #e1e8e2; border-radius:13px; padding:22px; background:white; }
.stat-grid article strong { display:block; font-size:29px; letter-spacing:-1px; line-height:1.2; font-weight:650; }
.stat-grid article div>span { font-size:11px; color:#7b8b80; }
.stat-icon,.office-card-icon { width:45px; height:45px; background:#eaf4ed; color:#2d8570; border-radius:12px; display:grid; place-items:center; font-size:24px; flex-shrink:0; }
.client-columns { display:grid; grid-template-columns:minmax(0,1fr) 310px; gap:24px; align-items:start; }
.client-list { min-width:0; overflow:auto; }
.section-heading { display:flex; align-items:center; gap:12px; margin:30px 0 18px; }
.panel .section-heading { margin:0 0 18px; }
.section-heading h2 { margin:0; }
.count-pill { display:inline-grid; place-items:center; min-width:23px; height:23px; padding:0 7px; border-radius:7px; background:#eef3ee; color:#6c8576; font-size:11px; }
.workspace-shell th { font-size:10px; font-weight:500; color:#8a988e; background:#fafcf9; }
.workspace-shell td { font-size:12px; padding:19px 10px; }
.workspace-shell tr:last-child td { border-bottom:0; }
.client-name { display:flex; align-items:center; gap:12px; color:#2a4639; font-weight:600; min-width:140px; }
.org-avatar { display:grid; place-items:center; width:32px; height:32px; border-radius:9px; background:#ecf3ed; color:#5a8976; font-weight:600; flex-shrink:0; }
.workspace-shell .badge { border-radius:6px; font-size:10px; background:#eaf4e9; color:#488060; white-space:nowrap; }
.workspace-shell .muted-badge { background:#f0f2ef; color:#8a968c; }
.section-kicker { display:grid; place-items:center; width:35px; height:35px; border-radius:9px; background:#e6f2e9; color:#248373; font-size:22px; margin-bottom:20px; }
.new-client p { font-size:12px; }
.new-client button { width:100%; }
.office-card { position:relative; }
.office-card .office-card-icon { margin-bottom:24px; }
.office-card .badge { position:absolute; right:24px; top:30px; }
.workspace-shell .cards { margin-top:0; }
.workspace-shell .cards h3 { font-size:19px; margin-bottom:6px; }
.workspace-shell .cards p { font-size:12px; margin-top:4px; }
.workspace-shell .cards a { display:inline-block; margin-top:20px; font-size:12px; font-weight:600; }
.workspace-shell .create-office-card { border-style:dashed; background:#f9fcf9; }
.empty-state { display:flex; align-items:center; gap:18px; padding:25px; border:1px dashed #dbe4dc; border-radius:12px; background:#ffffff80; }
.empty-state>span { font-size:24px; color:#88aa97; }
.empty-state p { margin:0; font-size:12px; }
.archive-action { margin-top:28px; padding-top:16px; border-top:1px solid #edf0eb; }
.archive-action p,.invitation-panel p { font-size:12px; }
.invitation-panel { background:linear-gradient(150deg,#fff,#f3f9f4)!important; }
.member-row { font-size:12px; }
.onboarding-shell { min-height:100svh; background:radial-gradient(ellipse at top,#e9f2ec90,transparent 70%),#f6f8f6; }
.onboarding-header { height:95px; border:0; padding:0 42px; }
.onboarding-main { max-width:1500px; display:grid; grid-template-columns:240px minmax(0,1fr) 235px; gap:25px; padding:25px 40px 60px; align-items:start; }
.onboarding-rail { background:white; border:1px solid #edf1eb; border-radius:16px; padding:30px 22px; min-height:580px; display:flex; flex-direction:column; }
.onboarding-rail h2 { margin:4px 0 35px; }
.onboarding-steps { list-style:none; padding:0; margin:0; display:grid; gap:25px; }
.onboarding-steps li { display:flex; gap:12px; align-items:center; position:relative; color:#8e9b92; }
.onboarding-steps li>span { display:grid; place-items:center; width:31px; height:31px; border:1px solid #dbe4da; border-radius:50%; font-size:12px; flex-shrink:0; background:white; }
.onboarding-steps strong { font-size:12px; font-weight:600; }
.onboarding-steps small { font-size:10px; margin:3px 0 0; color:#95a297; }
.onboarding-steps .current { color:#196e5b; }
.onboarding-steps .current>span { color:white; background:#238b76; border-color:#238b76; box-shadow:0 0 0 5px #eef7f0; }
.rail-bottom { margin-top:auto; padding-top:30px; font-size:10px; color:#8fa093; }
.onboarding-body { border:1px solid #e7ece5; border-radius:16px; background:white; padding:36px; }
.onboarding-body>p { font-size:13px; }
.setup-progress { display:flex; justify-content:space-between; color:#90a094; font-size:10px; }
.onboarding-body progress { width:100%; height:5px; accent-color:#158975; appearance:none; border:0; margin:10px 0 28px; border-radius:6px; overflow:hidden; }
.onboarding-body progress::-webkit-progress-bar { background:#edf1eb; }
.onboarding-body progress::-webkit-progress-value { background:#168a74; }
.onboarding-body progress::-moz-progress-bar { background:#168a74; }
.setup-form { margin-top:30px; }
.setup-actions { display:flex; align-items:center; justify-content:space-between; gap:15px; padding-top:24px; border-top:1px solid #e7ede5; margin-top:25px; }
.setup-actions button { margin:0; }
.setup-actions a { font-size:11px; }
.onboarding-help { padding:26px; border-radius:14px; background:linear-gradient(140deg,#e6f1e9,#f0f5ef); }
.onboarding-help h2 { font-size:17px; margin-top:20px; }
.onboarding-help p { font-size:12px; color:#6f8577; }
.onboarding-help strong { font-size:12px; color:#476454; }
.help-symbol { color:#258573; font-size:30px; }
.onboarding-shell .notice { font-size:11px; padding:14px 16px; margin-top:24px; color:#6a8374; }
@media(max-width:1250px) { .client-columns { grid-template-columns:1fr; } .new-client form { max-width:600px; } .onboarding-main { grid-template-columns:210px minmax(0,1fr); } .onboarding-help { grid-column:2; } .workspace-shell .sidebar { width:215px; padding:28px 16px; } .workspace-shell .brand { font-size:20px; } }
@media(max-width:900px) { .workspace-shell main { padding:28px 24px; } .stat-grid { gap:10px; } .stat-grid article { padding:15px; gap:10px; } .stat-icon { display:none; } .onboarding-main { grid-template-columns:1fr; padding:20px; } .onboarding-rail { min-height:0; padding:20px; } .onboarding-steps { grid-template-columns:repeat(3,1fr); gap:14px; } .onboarding-steps small,.rail-bottom,.onboarding-rail h2,.onboarding-rail>.eyebrow { display:none; } .onboarding-help { grid-column:auto; } .onboarding-header { padding:0 24px; height:80px; } .onboarding-body { padding:28px; } .page-heading { align-items:start; flex-direction:column; gap:12px; } }
@media(max-width:650px) { .workspace-shell { display:block; } .workspace-shell .sidebar { position:static; height:auto; width:100%; padding:18px 20px; } .workspace-identity,.nav-caption,.workspace-shell .sidebar-footer { display:none; } .workspace-shell .sidebar nav { display:flex; gap:4px; margin-top:12px; flex-wrap:wrap; } .workspace-shell .sidebar nav a { font-size:10px; padding:8px; } .workspace-shell .sidebar nav a span { display:none; } .workspace-topbar { padding:0 20px; height:58px; } .topbar-label { display:none; } .topbar-actions { margin-left:auto; } .workspace-shell main { padding:25px 18px; } .stat-grid article { padding:13px 10px; } .stat-grid article div>span { font-size:9px; } .stat-grid article strong { font-size:25px; } .workspace-shell .panel { padding:20px; } .onboarding-steps li { flex-direction:column; text-align:center; gap:8px; } .onboarding-steps strong { font-size:10px; } .onboarding-header .brand { font-size:20px; } .onboarding-body { padding:23px; } .setup-actions { align-items:stretch; flex-direction:column-reverse; } .member-row { flex-wrap:wrap; } }
.document-list { min-width:0; }
.document-row { display:flex; flex-wrap:wrap; align-items:center; gap:18px; border-top:1px solid #e8eee6; padding:22px 0; }
.document-row-main { display:flex; align-items:center; gap:14px; flex:1; min-width:180px; }
.document-row-main>div { min-width:0; }
.document-row h3 { font-size:14px; margin:0 0 5px; overflow-wrap:anywhere; }
.document-row small { font-size:10px; margin:0; }
.document-icon { width:38px; height:44px; display:grid; place-items:center; background:#edf4ed; color:#4c8c72; border-radius:9px; font-size:24px; flex-shrink:0; }
.document-actions { width:100%; display:flex; justify-content:space-between; align-items:center; gap:15px; padding-left:52px; }
.document-actions a { font-size:11px; }
.document-actions button { margin:0; }
.document-upload p { font-size:12px; }
.document-upload input[type=file] { max-width:100%; font-size:11px; padding:12px 0; background:transparent; border:0; }
.document-upload input::file-selector-button { border:1px solid #d6e4d8; border-radius:6px; background:#f3f8f0; color:#45735a; padding:8px; margin-right:8px; }
.document-upload button { width:100%; }
.document-upload .notice { margin-top:25px; font-size:11px; }
.document-success { color:#277754!important; background:#eaf5ec; border:1px solid #d3e6d6; padding:14px 18px; border-radius:10px; font-size:12px!important; }
@media(max-width:650px) { .document-actions { padding:0; align-items:start; flex-direction:column; } .document-columns { gap:0; } }
.workspace-shell .button.secondary { background:white; color:#087466; border-color:#bcd6c7; box-shadow:none; }
.workspace-shell .button.secondary:hover { background:#edf6ee; }
@media(max-width:450px) { .document-row>.button { width:100%; text-align:center; } }
.task-list { min-width:0; }
.task-row { padding:25px 0; border-top:1px solid #e7eee5; }
.task-title { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.task-title h3 { font-size:16px; margin:0; flex:1; overflow-wrap:anywhere; min-width:130px; }
.task-state-icon { color:#37896c; font-size:21px; }
.task-description { white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px!important; }
.task-meta { display:flex; gap:15px; flex-wrap:wrap; margin:16px 0; color:#798d80; font-size:11px; overflow-wrap:anywhere; }
.overdue-label,.task-warning { color:#aa6030!important; }
.task-warning { font-size:11px!important; padding:10px; background:#fff7eb; border-radius:7px; }
.task-status-form { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-top:18px; }
.task-status-form label { margin:0; }
.task-status-form select { width:auto; min-width:145px; }
.task-status-form button { margin:0; }
.task-edit { margin-top:20px; font-size:12px; color:#3e7a60; }
.task-edit summary { cursor:pointer; }
.task-edit form { padding:5px 0 15px; }
.workspace-shell textarea { display:block; width:100%; border:1px solid #d9e2da; border-radius:8px; padding:12px; font:inherit; font-size:13px; resize:vertical; }
.workspace-shell textarea:focus { outline:3px solid #9ad8ca; outline-offset:2px; }
.task-create p { font-size:12px; }
.task-create .notice { margin-top:24px; font-size:11px; }
.task-create button { width:100%; }
.task-footnote { font-size:11px!important; }
.task-progress>div { display:flex; justify-content:space-between; gap:15px; font-size:12px; color:#6b8878; }
.task-progress progress { display:block; width:100%; height:7px; margin-top:16px; border:0; border-radius:8px; overflow:hidden; appearance:none; accent-color:#178775; }
.task-progress progress::-webkit-progress-bar { background:#eaf0e7; }
.task-progress progress::-webkit-progress-value { background:#178775; }
.task-progress progress::-moz-progress-bar { background:#178775; }
@media(max-width:650px) { .task-status-form select { flex:1; } .task-status-form button { width:100%; } }

/* Client conversation */
.message-columns { align-items:start; }
.message-history { display:flex; flex-direction:column; gap:20px; margin:24px 0; }
.message-bubble { max-width:92%; padding:20px 24px; border:1px solid #e1e9e5; border-radius:16px 16px 16px 3px; background:#f7faf8; }
.message-bubble.own-message { align-self:flex-end; background:#eaf4ef; border-color:#d7e8df; border-radius:16px 16px 3px 16px; }
.message-bubble header { display:flex; flex-wrap:wrap; gap:6px 16px; align-items:center; font-size:.82rem; }
.message-bubble header strong { overflow-wrap:anywhere; }
.message-bubble header span,.message-bubble time { font-size:.75rem; color:#60736c; }
.message-bubble p { white-space:pre-wrap; overflow-wrap:anywhere; color:#203c32; line-height:1.7; margin:12px 0; }
.message-compose { border-top:1px solid #e1e9e5; padding-top:24px; margin-top:24px; }
.message-compose textarea { width:100%; box-sizing:border-box; padding:14px; border:1px solid #d5dfd9; border-radius:12px; font:inherit; resize:vertical; min-height:120px; background:white; }
.message-compose > div { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:16px; margin-top:12px; }
.message-compose small,.message-context small { color:#6b7e75; }
.message-context h3 { overflow-wrap:anywhere; }
@media(max-width:700px) { .message-bubble { max-width:100%; padding:16px; } .message-compose button { width:100%; } .conversation-panel { padding:20px; } }

.notification-columns { align-items:start; }
.notification-option { display:flex; align-items:center; gap:18px; padding:22px 0; border-bottom:1px solid #e3ebe6; cursor:pointer; }
.notification-option input[type=checkbox] { width:22px; height:22px; flex:0 0 22px; margin:0; accent-color:#187d6c; }
.notification-option span { display:flex; flex-direction:column; gap:7px; }
.notification-option strong { color:#203c32; font-size:1rem; }
.notification-option small { color:#6b7e75; font-weight:400; line-height:1.6; }
.notification-subheading { margin-top:32px; }

.overview-stats { grid-template-columns:repeat(4,minmax(0,1fr)); }
.overview-stats a { font-size:.85rem; color:#637970; text-decoration:none; }
.overview-context { color:#6b7e75; font-size:.85rem; margin:20px 0; }
.overview-columns { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:24px; align-items:start; }
.overview-row { padding:22px 0; border-bottom:1px solid #e3ebe6; }
.overview-row h3 { margin:0; font-size:1rem; overflow-wrap:anywhere; }
.overview-row p { margin:10px 0; }
.overview-row small { color:#6b7e75; }
.overview-row-heading { display:flex; justify-content:space-between; gap:12px; align-items:start; }
.overview-row-heading a { text-decoration:none; }
.overview-overdue { background:#fff0e9; color:#a64b25; }
.overview-filters { display:flex; gap:8px; flex-wrap:wrap; margin:18px 0; }
.overview-filters a { padding:8px 12px; border-radius:20px; background:#f1f5f2; text-decoration:none; font-size:.85rem; }
.overview-filters .selected { background:#187d6c; color:white; }
.overview-sender { overflow-wrap:anywhere; }
.overview-message-actions { display:flex; flex-wrap:wrap; gap:14px; align-items:center; margin-top:16px; }
.overview-message-actions form { margin:0; }
@media(max-width:1100px) { .overview-stats { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:800px) { .overview-columns { grid-template-columns:1fr; } }
@media(max-width:480px) { .overview-stats { grid-template-columns:1fr; } .overview-row-heading { flex-wrap:wrap; } }
