/* Daily work first; optional tools are disclosed when needed. */
.sidebar nav > a { font-size: 15px; min-height: 46px; padding: 12px 16px; }
.nav-group { border-top: 1px solid #31415a; margin-top: 12px; padding-top: 10px; }
.nav-group summary { color: #b6c3d8; padding: 12px 8px; font-size: 12px; cursor: pointer; }
.nav-group[open] summary { color: #f1f5ff; }
.nav-group a { margin-left: 8px; font-size: 13px; }
.start-actions { background: var(--panel); padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 24px; }
.customer-search label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.customer-search > div { display: flex; gap: 10px; }
.customer-search input { flex: 1; min-width: 0; }
.start-links { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); }
.start-links a { font-size: 13px; }
.inbox-reminder { display: flex; justify-content: space-between; gap: 15px; padding: 15px 20px; border: 1px solid var(--line); border-left: 3px solid var(--warning); background: var(--warning-bg); color: var(--warning); border-radius: 10px; margin-bottom: 24px; }
.team-chart { margin: 12px 0 24px; }
.team-chart > .caption { margin: 0 0 18px; }
.team-chart-row { display: grid; grid-template-columns: minmax(120px, 180px) minmax(0, 1fr) 44px; gap: 18px; align-items: center; margin: 18px 0; }
.team-chart-name { font-weight: 600; overflow-wrap: anywhere; }
.team-chart-bar { display: block; width: 100%; height: 30px; }
.team-chart-track { fill: var(--inset); stroke: var(--line); stroke-width: 1; }
.team-chart-fill { fill: var(--brand); }
.team-chart-value { text-align: right; font-size: 20px; }
.simple-details > summary { cursor: pointer; font-weight: 600; font-size: 15px; padding: 4px 0; }
.simple-details[open] > summary { margin-bottom: 20px; }
.simple-details.panel { box-shadow: none; }
.customer-shortcuts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.task-row, .task-row:last-child { background: var(--panel); }
.task-row:has(.overdue) { background: var(--panel); border-color: var(--line); border-left-color: var(--warning); }
.task-row .actions { margin-top: 12px; }
.page-heading { padding-bottom: 20px; margin-bottom: 24px; }
.panel > .section-heading { background: var(--panel); }
.panel > .section-heading h2::before { display: none; }
.empty { padding: 20px 8px; }
.empty-text { padding: 8px 0; }
@media(max-width:650px) {
 .start-actions { padding: 18px; }
 .customer-search > div { flex-direction: column; }
 .customer-search button { width: 100%; }
 .start-links { flex-direction: column; gap: 15px; }
 .inbox-reminder { flex-direction: column; }
 .team-chart-row { grid-template-columns: minmax(0,1fr) 40px; gap: 8px 12px; margin: 20px 0; }
 .team-chart-name { grid-column: 1; }
 .team-chart-bar { grid-column: 1; grid-row: 2; height: 24px; }
 .team-chart-value { grid-column: 2; grid-row: 2; font-size: 18px; }
}
@media print { .start-actions, .customer-shortcuts { display:none; } }

.customer-intake { max-width:960px; }
.customer-intake section > h2 { margin-bottom:20px; }
.intake-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px 20px; }
.intake-grid > label, .intake-grid > input, .intake-grid > select { grid-column:1 / -1; }
.customer-intake [hidden] { display:none!important; }
.customer-intake .address-search { background:var(--inset); border:1px solid var(--line); padding:18px; border-radius:12px; margin-bottom:20px; }
.customer-intake .address-search button { justify-content:flex-start; text-align:left; }
@media(max-width:650px) { .intake-grid { grid-template-columns:1fr; } }

.intake-field { min-width:0; margin-bottom:14px; }
.intake-field label { display:block; margin-bottom:7px; }
.intake-field input:not([type=checkbox]), .intake-field select, .intake-field textarea { width:100%; }

.business-fields{border:0;border-top:1px solid var(--border,#334155);padding:1.3rem 0 0;margin:1rem 0;min-width:0}.business-fields legend{font-weight:700;font-size:1.05rem;padding:0 1rem 0 0}.business-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.business-wide{grid-column:1/-1}@media(max-width:700px){.business-grid{grid-template-columns:1fr}}

/* Guided daily workflow */
.consultation-list { padding:0; overflow:hidden; }
.consultation-row { display:grid; grid-template-columns:1.4fr .8fr 1.3fr .6fr; gap:22px; padding:20px 24px; align-items:center; border-bottom:1px solid var(--line); color:var(--text); text-decoration:none; }
.consultation-row:last-child { border-bottom:0; }
a.consultation-row:hover { background:var(--inset); }
.consultation-row small { display:block; margin-top:6px; color:var(--muted); }
.consultation-head { font-size:12px; color:var(--muted); background:var(--inset); }
.deadline-overdue { color:var(--warning); font-weight:600; }
.next-action-panel { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:24px; border:1px solid var(--line); border-left:4px solid var(--brand); background:var(--panel); border-radius:14px; margin-bottom:24px; }
.next-action-panel h2 { margin:4px 0 10px; }
.next-action-panel p { max-width:720px; }
.workflow-tabs { display:flex; gap:10px; margin:24px 0; flex-wrap:wrap; }
.workflow-tabs a { display:flex; gap:9px; align-items:center; padding:14px 18px; background:var(--panel); border:1px solid var(--line); border-radius:10px; color:var(--muted); text-decoration:none; }
.workflow-tabs a[aria-current=page] { color:var(--text); border-color:var(--brand); background:var(--inset); font-weight:700; }
.step-index { display:inline-grid; place-items:center; min-width:24px; height:24px; border:1px solid var(--line); border-radius:50%; font-size:12px; }
.guide-shell { max-width:1000px; margin:0 auto; }
.guide-question { border:0; border-bottom:1px solid var(--line); padding:24px 0; margin:0; min-width:0; }
.guide-question legend { font-size:18px; font-weight:600; padding:0; }
.choice-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:16px 0; }
.choice-grid label { display:flex; gap:12px; align-items:flex-start; padding:18px; border:1px solid var(--line); background:var(--inset); border-radius:10px; cursor:pointer; line-height:1.5; }
.choice-grid label:has(input:checked) { border-color:var(--brand); background:var(--panel); box-shadow:inset 0 0 0 1px var(--brand); }
.choice-grid input { flex:0 0 auto; width:20px; height:20px; margin-top:2px; accent-color:var(--brand); }
.guide-custom { margin-top:12px; }
.guide-custom textarea { width:100%; margin-top:12px; min-height:90px; }
.guide-custom[hidden] { display:none; }
.guide-actions { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; padding-top:24px; }
.guide-status { display:flex; justify-content:space-between; gap:12px; color:var(--muted); margin:20px 0; }
.guide-review-item { padding:16px 0; border-bottom:1px solid var(--line); }
.guide-review-item strong { display:block; margin-bottom:6px; }
@media(max-width:750px) {
 .consultation-head { display:none; }
 .consultation-row { grid-template-columns:1fr auto; gap:14px; padding:18px; }
 .consultation-action { grid-column:1; }
 .next-action-panel { align-items:stretch; flex-direction:column; padding:20px; }
 .workflow-tabs { gap:6px; }
 .workflow-tabs a { flex:1 1 130px; padding:10px; font-size:13px; }
 .choice-grid { grid-template-columns:1fr; }
}
.choice-grid label { font-size:15px; font-weight:500; }

.consultation-page .page-heading { padding-bottom:12px; margin-bottom:16px; }
.consultation-page .pipeline-tools { padding:16px 20px; }
.consultation-page .phase-filters { margin-top:12px; padding-top:12px; }
.consultation-toolbar { display:flex; justify-content:space-between; align-items:center; gap:16px; margin:16px 0; }
.consultation-toolbar .tabs, .consultation-toolbar .results-caption { margin:0; }
@media(max-width:650px) { .consultation-toolbar { flex-wrap:wrap; } }

.offer-drop { border:2px dashed var(--line); border-radius:12px; padding:28px; background:var(--inset); }
.offer-drop.drag-active { border-color:var(--brand); }
.offer-drop input { display:block; width:100%; margin:16px 0; }
.offer-drop strong { font-size:20px; }
.offer-drop li { overflow-wrap:anywhere; margin:6px 0; }

.investor-field { margin: 18px 0; }
.investor-field fieldset { border: 0; margin: 0; padding: 0; }
.investor-field legend { font-weight: 600; margin-bottom: 10px; }
.investor-form label:has(input[type=radio]) { display: flex; align-items: flex-start; gap: 9px; padding: 10px 0; line-height: 1.6; font-weight: 400; }
.investor-form input[type=radio] { width: 18px; height: 18px; min-height: 18px; margin: 4px 0 0; padding: 0; flex-shrink: 0; }

.customer-overview-grid > .panel { min-width:0; }
.customer-overview-grid .policy-table-wrap, .customer-overview-grid .panel > div[style] { overflow-x:auto; max-width:100%; }
.customer-overview-grid td { white-space:normal; overflow-wrap:anywhere; }

.signature-tools{display:flex;flex-wrap:wrap;gap:12px;align-items:center;padding:12px;background:#f3f6fc;border-top:1px solid #dbe2ef}.signature-tools button{min-height:48px;padding:12px 16px}.signature-tools label{display:flex;align-items:center;gap:8px;margin:0}.signature-expanded{position:fixed!important;inset:5vh 3vw;z-index:1000;background:white;box-shadow:0 0 0 100vmax #08102bcc;display:flex!important;flex-direction:column;border-radius:16px;overflow:auto}.signature-expanded canvas{width:100%!important;height:60vh!important;min-height:200px;flex:1}.signature-expanded .signature-tools{flex-shrink:0}.signature-pad canvas{height:260px}@media(max-width:650px){.signature-pad canvas{height:220px}.signature-expanded{inset:2vh 2vw}.signature-tools button{flex:1}}

#address-results{max-height:340px;overflow-y:auto;overscroll-behavior:contain}#address-results button{min-height:48px;text-align:left;white-space:normal}#address-search-button{margin:10px 0;min-height:44px}
