:root {
  --navy: #102a43;
  --navy-2: #173c5d;
  --blue: #1d5fd1;
  --blue-2: #2a7be8;
  --cyan: #16b7c8;
  --ink: #12263a;
  --muted: #6d8094;
  --line: #e3ebf3;
  --bg: #f4f8fc;
  --surface: #ffffff;
  --warning: #f6a623;
  --danger: #ee6b70;
  --success: #13a889;
  --radius: 10px;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

/* A small set of daily work screens, with detail only when it is needed. */
.view-tabs { display:flex; gap:5px; border-bottom:1px solid var(--line); margin-bottom:16px; }
.view-tabs button { border:0; border-bottom:3px solid transparent; background:transparent; color:var(--muted); padding:13px 18px; font-size:14px; }
.view-tabs button.active { color:var(--blue); border-bottom-color:var(--blue); font-weight:700; }
.view-tabs small { margin-left:8px; background:#eaf1fa; border-radius:12px; padding:2px 7px; font-weight:500; }
.view-hint { display:flex; gap:18px; align-items:center; margin:0 0 16px; color:var(--muted); font-size:12px; line-height:1.65; }
.view-hint strong { color:var(--navy); flex-shrink:0; }
.daily-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:12px; margin:20px 0; }
.daily-summary > div { background:white; border:1px solid var(--line); border-radius:12px; padding:20px; }
.daily-summary span { display:block; color:var(--muted); font-size:13px; }
.daily-summary strong { display:block; font-size:32px; line-height:1.3; margin-top:8px; color:var(--navy); }
.daily-summary strong small { font-size:16px; color:var(--muted); font-weight:400; }
.case-grid,.intent-grid,.management-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); gap:14px; margin-top:14px; }
.work-card { background:white; border:1px solid var(--line); border-radius:12px; padding:20px; min-width:0; }
.work-card.due-soon { border-color:#eccb87; }
.work-card-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.work-card-heading h2 { font-size:16px; line-height:1.6; margin:0; overflow-wrap:anywhere; }
.work-card-heading .tag { flex-shrink:0; }
.case-people { font-size:12px; color:var(--muted); line-height:1.7; }
.next-action { display:flex; flex-direction:column; gap:6px; background:#f2f7fc; border-radius:8px; padding:13px 14px; margin:14px 0; font-size:13px; overflow-wrap:anywhere; }
.next-action small { color:var(--muted); font-size:11px; }
.next-action strong { color:var(--navy); line-height:1.7; font-size:13px; }
.next-action span { color:var(--muted); font-size:11px; }
.protection-strip { display:flex; justify-content:space-between; gap:12px; align-items:center; color:var(--muted); font-size:11px; margin:14px 0; flex-wrap:wrap; }
.protection-strip strong { font-weight:600; color:#45637e; }
.protection-strip.warning strong { color:#a76a13; }
.brief-list { display:grid; gap:10px; margin:16px 0; font-size:12px; }
.brief-list > div { display:grid; grid-template-columns:78px minmax(0,1fr); gap:10px; line-height:1.7; }
.brief-list dt { color:var(--muted); }
.brief-list dd { margin:0; color:var(--ink); overflow-wrap:anywhere; }
.preserve-lines { white-space:pre-wrap; }
.card-actions { display:flex; gap:8px; flex-wrap:wrap; }
.compact-pager { display:flex; align-items:center; justify-content:space-between; margin-top:18px; color:var(--muted); font-size:12px; }
.todo-list { display:grid; gap:10px; }
.todo-item { display:flex; align-items:center; justify-content:space-between; gap:16px; border:1px solid var(--line); border-radius:9px; padding:15px; }
.todo-item > div { min-width:0; }
.todo-item strong { font-size:14px; line-height:1.6; }
.todo-item p { margin:6px 0; color:#425d74; line-height:1.6; overflow-wrap:anywhere; }
.todo-item small { font-size:11px; color:var(--muted); }
.todo-item .btn { flex-shrink:0; }
.todo-item.overdue { border-left:3px solid #dd935c; }
.todo-item.overdue small { color:#ab6c3d; }
.page-footnote { color:var(--muted); font-size:12px; line-height:1.8; margin:18px 0; }
.management-entry { text-align:left; display:flex; flex-direction:column; gap:12px; cursor:pointer; font-family:inherit; }
.management-entry strong { font-size:17px; color:var(--navy); }
.management-entry span { font-size:12px; color:var(--muted); line-height:1.8; }
.management-entry b { color:var(--blue); font-size:12px; font-weight:500; }
.customer-detail-summary { display:flex; gap:12px; align-items:center; flex-wrap:wrap; font-size:12px; color:var(--muted); margin-bottom:16px; }
.case-focus { background:#eef5fc; padding:18px; border-radius:10px; margin:12px 0 18px; }
.case-focus > small { color:#6d8297; font-size:11px; line-height:1.8; }
.case-focus > strong { display:block; color:var(--navy); font-size:17px; line-height:1.7; margin:8px 0 10px; overflow-wrap:anywhere; }
.case-focus > div { display:flex; flex-wrap:wrap; gap:16px; font-size:12px; color:#59738b; }
.case-focus .protection-strip { border-top:1px solid #d7e5f3; padding-top:12px; margin-bottom:8px; }
.case-section { margin-top:22px; }
.case-section h3 { font-size:15px; margin-bottom:12px; }
.case-actions { gap:8px; }
.material-card { border:1px solid var(--line); border-radius:8px; padding:14px; margin:10px 0; font-size:12px; }
.material-card strong { line-height:1.7; overflow-wrap:anywhere; }
.material-card p { color:var(--muted); line-height:1.7; }
.progress-entry { padding:0 0 16px 15px; border-left:2px solid #c8ddf1; margin-top:14px; }
.progress-entry > div:first-child { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.progress-entry strong { font-size:13px; }
.progress-entry time { color:var(--muted); font-size:11px; }
.progress-entry p { font-size:12px; line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; }
.progress-entry .blocker { color:#a56834; }
.detail-fold { border-top:1px solid var(--line); margin-top:16px; padding:14px 0; font-size:12px; }
.detail-fold summary { color:#526f86; font-weight:600; cursor:pointer; }
.detail-fold .audit-row { line-height:1.7; }
.detail-fold .audit-row span { min-width:0; overflow-wrap:anywhere; }
.detail-fold .audit-row small { display:block; flex-shrink:0; }
.approval-steps { display:flex; gap:10px; margin:16px 0; }
.approval-steps > div { flex:1; background:#f4f7fa; border-radius:8px; padding:12px; display:flex; flex-direction:column; gap:6px; font-size:12px; }
.approval-steps .done { background:#eaf7f2; }
.approval-steps span,.approval-steps small { color:var(--muted); font-size:11px; }
.full-span { grid-column:1/-1; }
.customer-list th:first-child,.customer-list td:first-child { text-align:left; width:auto; }
.mobile-shortcuts { display:flex; justify-content:space-around; width:100%; }
.mobile-shortcuts button { border:0; border-radius:8px; padding:6px 14px; background:transparent; color:var(--muted); font-size:12px; display:flex; flex-direction:column; gap:4px; align-items:center; }
.mobile-shortcuts button span { font-size:19px; }
.mobile-shortcuts button.active { color:var(--blue); background:#edf5ff; font-weight:700; }
@media (max-width:700px) {
 .view-hint { align-items:flex-start; flex-direction:column; gap:5px; }
 .view-tabs button { flex:1; padding:12px 5px; font-size:13px; }
 .daily-summary { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
 .daily-summary > div { padding:14px; }
 .daily-summary strong { font-size:26px; }
 .work-card { padding:16px; }
 .case-grid,.intent-grid,.management-grid { grid-template-columns:minmax(0,1fr); }
 .todo-item { padding:12px; gap:8px; }
 .todo-item strong { font-size:13px; }
 .case-focus { padding:14px; }
 .case-actions .btn { flex:1 1 auto; }
 .approval-steps { gap:6px; }
 .approval-steps > div { padding:9px 6px; }
 .material-card .work-card-heading { flex-direction:column; }
 .protection-strip { gap:6px; }
 .full-span { grid-column:auto; }
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); }
button, input, select { font: inherit; }
button { cursor: pointer; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 214px; flex: 0 0 214px; background: linear-gradient(180deg, #102a43 0%, #173c5d 100%); color: white; padding: 23px 14px 20px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 29px; }
.brand strong { display: block; font-size: 18px; letter-spacing: .4px; }
.brand small { display: block; color: #a8c3d8; font-size: 10px; margin-top: 3px; }
.brand-mark { width: 30px; height: 30px; border: 2px solid #1fc0d1; border-radius: 8px 8px 10px 3px; position: relative; transform: skewY(-4deg); }
.brand-mark span:first-child { position: absolute; width: 9px; height: 19px; background: #1fc0d1; left: 6px; bottom: 4px; border-radius: 3px 3px 0 0; }
.brand-mark span:last-child { position: absolute; width: 9px; height: 12px; background: #9beef4; right: 5px; bottom: 4px; border-radius: 3px 3px 0 0; }
.nav-list { display: flex; flex-direction: column; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 13px; border-radius: 8px; color: #c1d3e1; border: 0; background: transparent; padding: 11px 13px; width: 100%; text-align: left; font-size: 14px; transition: .2s ease; }
.nav-item:hover { color: white; background: rgba(255,255,255,.1); }
.nav-item.active { color: white; background: linear-gradient(90deg, #1e76da, #2c83df); box-shadow: 0 8px 16px rgba(5,40,83,.18); }
.nav-icon { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; opacity: .95; }
.sidebar-footer { margin-top: auto; padding: 10px 11px 0; color: #8ba7ba; font-size: 9px; line-height: 1.5; }
.sidebar-footer small { display: block; margin-top: 5px; color: #5f839f; font-size: 10px; }

.main-shell { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.topbar { height: 76px; padding: 0 29px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.global-search { max-width: 473px; width: 100%; height: 39px; border: 1px solid #dce6ef; background: #f7fafc; border-radius: 9px; display: flex; align-items: center; padding: 0 13px; gap: 8px; }
.global-search:focus-within { border-color: #78a9e6; box-shadow: 0 0 0 3px rgba(29,95,209,.08); background: white; }
.global-search input { border: 0; outline: 0; background: transparent; width: 100%; color: var(--ink); font-size: 12px; }
.global-search input::placeholder { color: #9aacbc; }
.search-icon { color: #8ba2b6; font-size: 21px; line-height: 1; transform: rotate(-15deg); }
.top-actions { display: flex; align-items: center; gap: 20px; }
.icon-button { border: 0; color: #49647b; background: transparent; font-size: 24px; position: relative; width: 30px; }
.notification i { position: absolute; width: 7px; height: 7px; background: #ec4e5b; border-radius: 50%; top: 1px; right: 2px; border: 1px solid white; }
.user-menu { display: flex; align-items: center; gap: 9px; position: relative; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #3c86e5; color: white; font-weight: 700; font-size: 16px; }
.user-copy strong, .user-copy small { display: block; }
.user-copy strong { font-size: 13px; }
.user-copy small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.user-menu select { border: 0; background: transparent; color: #8b9caf; font-size: 11px; outline: 0; width: 82px; }

.content { padding: 25px 29px 38px; max-width: 1660px; width: 100%; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 18px; }
.heading-copy h1 { margin: 0; font-size: 29px; letter-spacing: -.8px; line-height: 1.1; color: #132840; }
.heading-copy p { margin: 7px 0 0; color: #7c8fa1; font-size: 12px; }
.heading-actions { display: flex; gap: 9px; }
.permission-note { color: #8a9aaa; font-size: 11px; padding: 10px 0; }
.btn { border-radius: 7px; padding: 10px 16px; border: 1px solid var(--line); background: white; color: #4a6278; font-size: 12px; transition: .18s ease; }
.btn:hover { border-color: #9eb7d3; color: var(--blue); }
.btn.primary { color: white; border-color: var(--blue); background: var(--blue); box-shadow: 0 7px 15px rgba(29,95,209,.18); }
.btn.primary:hover { background: #164fae; }
.btn.ghost { background: transparent; }
.btn.danger { color: #c54f57; background: #fff5f5; border-color: #f5d2d4; }
.btn.small { padding: 7px 11px; font-size: 11px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.metric-card { background: var(--surface); border: 1px solid #edf2f7; box-shadow: 0 6px 19px rgba(35,67,99,.04); border-radius: 8px; padding: 16px 17px; min-height: 91px; display: flex; align-items: center; gap: 12px; }
.metric-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: #eaf3ff; color: var(--blue); }
.metric-card:nth-child(2) .metric-icon { color: var(--success); background: #e6f7f3; }
.metric-card:nth-child(3) .metric-icon { color: var(--warning); background: #fff6df; }
.metric-card:nth-child(4) .metric-icon { color: #6e65dd; background: #eeeaff; }
.metric-value { display: block; font-size: 22px; line-height: 1; font-weight: 750; letter-spacing: -.4px; color: #172b44; }
.metric-label { display: block; color: #7a8da2; font-size: 11px; margin-top: 5px; }
.metric-trend { color: var(--success); font-size: 10px; margin-left: auto; align-self: flex-start; }

.toolbar { display: flex; align-items: center; gap: 9px; padding: 13px 14px; background: white; border: 1px solid #edf2f7; border-bottom: 0; border-radius: 9px 9px 0 0; flex-wrap: wrap; }
.filter-select, .filter-input { border: 1px solid #dfe8f0; background: white; height: 33px; padding: 0 10px; border-radius: 6px; color: #657d94; font-size: 11px; outline: 0; }
.filter-select:focus, .filter-input:focus { border-color: #85ade0; }
.filter-input { min-width: 120px; }
.revenue-filter { width: 132px; min-width: 132px; }
.filter-space { flex: 1; }
.toolbar-label { color: #8094a6; font-size: 11px; }

.workspace { display: grid; grid-template-columns: minmax(0,1fr) 268px; background: white; border: 1px solid #edf2f7; border-radius: 0 0 9px 9px; min-height: 610px; overflow: hidden; }
.table-wrap { min-width: 0; overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 11px 12px; border-bottom: 1px solid #edf2f7; text-align: left; font-size: 11px; white-space: nowrap; }
th { color: #637b92; font-weight: 650; background: #fbfdff; }
td { color: #526b82; }
tbody tr:hover { background: #f9fcff; }
tbody tr.selected { background: #f1f7ff; }
th:first-child, td:first-child { width: 40px; text-align: center; }
input[type="checkbox"] { accent-color: var(--blue); width: 14px; height: 14px; }
.company-cell strong { color: #203e59; font-size: 11px; display: block; }
.company-cell small { display: block; color: #9baabd; margin-top: 4px; font-size: 9px; }
.tag { display: inline-flex; align-items: center; border-radius: 4px; padding: 3px 7px; font-size: 10px; font-weight: 650; }
.tag.a { color: #dc5c64; background: #fff0f1; }
.tag.b { color: #2872cf; background: #e8f3ff; }
.tag.c { color: #0b9d88; background: #e5f8f3; }
.table-link { border: 0; background: none; color: var(--blue); padding: 0; font-size: 11px; }
.danger-link { color: #c34f5e; }
.empty-state { padding: 58px 20px; text-align: center; color: #93a4b4; font-size: 12px; }
.table-footer { border-top: 1px solid #edf2f7; padding: 14px 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #7a8fa4; font-size: 11px; min-width: 720px; }
.table-footer strong { color: var(--blue); }
.pager { display: flex; align-items: center; gap: 5px; }
.page-btn { border: 1px solid #e0e9f2; background: white; color: #66809b; border-radius: 5px; width: 27px; height: 27px; font-size: 11px; }
.page-btn.active { background: var(--blue); border-color: var(--blue); color: white; }

.distribution-panel { border-left: 1px solid #edf2f7; padding: 16px 16px 15px; display: flex; flex-direction: column; background: #fbfdff; }
.distribution-panel h2 { font-size: 14px; margin: 0; color: #193958; }
.distribution-panel .panel-note { margin: 6px 0 13px; color: #8b9eae; font-size: 10px; line-height: 1.5; }
.selected-list { padding: 10px; border-radius: 7px; background: #f2f7fd; margin-bottom: 16px; }
.selected-list strong { color: #45637e; font-size: 11px; }
.selected-list ul { margin: 8px 0 0; padding: 0; list-style: none; max-height: 84px; overflow: auto; }
.selected-list li { color: #5f7890; font-size: 10px; padding: 3px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.selected-list li::before { content: '•'; color: var(--blue); margin-right: 5px; }
.panel-label { color: #5c738a; font-size: 11px; margin: 12px 0 7px; }
.radio-list { display: grid; gap: 8px; }
.radio-option { display: flex; align-items: center; gap: 7px; color: #587087; font-size: 11px; }
.radio-option input { accent-color: var(--blue); }
.panel-select, .panel-textarea { width: 100%; border: 1px solid #dce7f0; background: white; border-radius: 6px; color: #5f7890; padding: 9px; font-size: 11px; outline: 0; }
.panel-textarea { resize: vertical; min-height: 59px; }
.panel-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 15px; }
.panel-actions .btn { flex: 1; padding-left: 7px; padding-right: 7px; }

.section-card { background: white; border: 1px solid #edf2f7; border-radius: 9px; padding: 18px; box-shadow: 0 6px 19px rgba(35,67,99,.04); }
.section-card + .section-card { margin-top: 14px; }
.section-card h2 { margin: 0 0 14px; font-size: 15px; color: #193958; }
.section-card p { color: #7d91a3; font-size: 12px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(280px,.7fr); gap: 14px; }
.funnel-list { display: grid; gap: 10px; }
.funnel-row { display: grid; grid-template-columns: 78px 1fr 44px; gap: 10px; align-items: center; font-size: 11px; color: #637a90; }
.funnel-bar { height: 8px; border-radius: 10px; background: #e8f0f7; overflow: hidden; }
.funnel-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1d5fd1, #19b5c5); }
.task-list { display: grid; gap: 8px; }
.task-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid #edf2f7; border-radius: 7px; padding: 10px; }
.task-row strong { display: block; font-size: 11px; color: #23445f; }
.task-row small { display: block; font-size: 9px; color: #93a3b2; margin-top: 4px; }
.score-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.score { padding: 12px; border-radius: 8px; background: #f5f9fd; }
.score strong { display: block; font-size: 19px; color: #1b4771; }
.score small { color: #8095a8; font-size: 10px; }
.audit-row { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid #edf2f7; font-size: 11px; color: #59728a; }
.audit-row small { color: #9aabb9; }

.mobile-bottom { display: none; }
.toast { position: fixed; right: 25px; bottom: 25px; background: #163d5d; color: white; padding: 11px 16px; border-radius: 7px; font-size: 12px; box-shadow: 0 10px 28px rgba(13,42,69,.25); transform: translateY(18px); opacity: 0; pointer-events: none; transition: .2s ease; z-index: 20; }
.toast.show { opacity: 1; transform: translateY(0); }

.full-width { display: block; }
.full-width .table-wrap { width: 100%; }
.scope-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 10px 13px; background: #eef6ff; color: #6d8498; font-size: 11px; border: 1px solid #e1edf7; border-bottom: 0; }
.scope-chip { border: 1px solid #d7e5f2; background: white; color: #66809a; border-radius: 999px; padding: 6px 11px; font-size: 11px; }
.scope-chip.active { color: white; background: var(--blue); border-color: var(--blue); }
.cell-note { display: block; color: #9baabd; margin-top: 4px; font-size: 9px; }
.phone-numbers { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 6px; }
.phone-link { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 4px 8px; border: 1px solid #d8e7fa; border-radius: 6px; background: #f0f6ff; color: #1a5fbc; font-size: 11px; font-weight: 500; line-height: 1.4; text-decoration: none; white-space: nowrap; touch-action: manipulation; }
.phone-link:hover { background: #e1eeff; border-color: #9dc0ef; }
.phone-link:focus-visible { outline: 2px solid #1a5fbc; outline-offset: 2px; }
.phone-link-label { padding-left: 5px; border-left: 1px solid #c7dbf7; font-size: 10px; }
.phone-unavailable { color: #7d91a3; font-size: 11px; overflow-wrap: anywhere; }
.rule-note { margin-top: 14px; border-radius: 7px; background: #f2f7fd; padding: 10px; color: #6f879a; font-size: 11px; line-height: 1.55; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.detail-grid div { background: #f8fbfe; padding: 10px; border-radius: 7px; }
.detail-grid small, .detail-grid strong { display: block; }
.detail-grid small { color: #8b9eae; font-size: 10px; margin-bottom: 5px; }
.detail-grid strong { color: #274b69; font-size: 12px; font-weight: 600; }
.target-list { max-height: 145px; overflow: auto; display: grid; gap: 7px; padding: 8px; border: 1px solid #dce7f0; border-radius: 6px; background: white; }
.target-list label { color: #60788e; font-size: 11px; }
.target-list input { margin-right: 6px; }
.permission-note { color: #8a9aaa; font-size: 11px; padding: 10px 0; }
.list-card { margin-top: 14px; }
.teams-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.teams-grid .section-card { min-height: 180px; }
.rule-row { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 12px 0; border-bottom: 1px solid #edf2f7; font-size: 12px; color: #637b91; line-height: 1.6; }
.rule-row strong { color: #234967; }
.workflow-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: #547590; font-size: 12px; }
.workflow-line span { padding: 10px 14px; border-radius: 7px; background: #f2f7fd; }
.workflow-line b { color: var(--blue); }
.inline-form { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.inline-form input { width: 120px; height: 36px; border: 1px solid #dce7f0; border-radius: 6px; padding: 0 10px; }
.field { display: grid; gap: 6px; color: #5c738a; font-size: 11px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #dce7f0; border-radius: 6px; background: white; padding: 9px; color: #506b83; outline: 0; }
.field textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
.form-error { min-height: 18px; color: #c7515c; font-size: 11px; line-height: 1.4; }
.muted { color: #8a9eaf; font-size: 11px; line-height: 1.55; }
.dialog-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.history { max-height: 220px; overflow: auto; }
dialog { border: 0; padding: 0; width: min(720px, calc(100vw - 28px)); max-height: calc(100vh - 36px); border-radius: 12px; color: var(--ink); box-shadow: 0 20px 60px rgba(20,55,88,.24); }
dialog::backdrop { background: rgba(14,42,67,.42); }
dialog form { padding: 21px; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.dialog-heading h2 { margin: 0; color: #193958; font-size: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.mobile-bottom { align-items: center; grid-template-columns: auto minmax(0,1fr) auto; gap: 8px; padding: 8px 12px; }
.mobile-bottom > span { color: #8a9dad; font-size: 10px; }
.mobile-bottom select { width: 100%; border: 1px solid #dae6f0; border-radius: 6px; height: 35px; padding: 0 8px; background: white; color: #55718a; font-size: 11px; }
.mobile-reset { border: 0; background: #f3f7fb; color: #57748e; border-radius: 6px; padding: 7px 8px; font-size: 10px; }

@media (max-width: 1080px) {
  .sidebar { width: 185px; flex-basis: 185px; }
  .content { padding-left: 18px; padding-right: 18px; }
  .topbar { padding: 0 18px; }
  .workspace { grid-template-columns: minmax(0,1fr) 244px; }
  .metric-card { padding-left: 12px; padding-right: 12px; }
}

@media (max-width: 780px) {
  .app-shell { display: block; padding-bottom: 62px; }
  .sidebar { display: none; }
  .topbar { height: auto; padding: 12px 14px; display: grid; grid-template-columns: minmax(0,1fr) 30px; gap: 10px 8px; }
  .global-search { height: 40px; max-width: none; min-width: 0; }
  .top-actions { display: contents; }
  .notification { grid-column: 2; grid-row: 1; }
  .user-menu { grid-column: 1 / -1; display: grid; grid-template-columns: 124px minmax(0,1fr); gap: 8px; min-width: 0; }
  .user-copy, .user-menu .avatar { display: none; }
  .user-menu select { display: block; width: 100%; min-width: 0; height: 44px; padding: 0 8px; border: 1px solid #dce6ef; border-radius: 7px; background: #f7fafc; color: #234967; font-size: 16px; }
  .user-menu select:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
  .content { padding: 18px 13px 24px; }
  .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 15px; }
  .heading-copy h1 { font-size: 24px; }
  .heading-actions { width: 100%; }
  .heading-actions .btn { flex: 1; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .metric-card { min-height: 75px; padding: 11px; gap: 8px; }
  .metric-icon { width: 32px; height: 32px; font-size: 14px; }
  .metric-value { font-size: 18px; }
  .metric-trend { display: none; }
  .toolbar { padding: 10px; }
  .toolbar .filter-select, .toolbar .filter-input { flex: 1 1 130px; min-width: 0; }
  .filter-space { display: none; }
  .workspace { display: block; border-radius: 0 0 9px 9px; }
  .distribution-panel { border-left: 0; border-top: 1px solid #edf2f7; min-height: 375px; }
  .table-wrap { overflow-x: auto; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .score-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mobile-bottom { position: fixed; display: grid; bottom: 0; left: 0; right: 0; height: 62px; background: white; border-top: 1px solid #dde7ef; z-index: 10; }
  .detail-grid, .form-grid { grid-template-columns: 1fr; }
  .phone-link { min-height: 44px; padding: 8px 10px; font-size: 13px; }
  .teams-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .rule-row { grid-template-columns: 1fr; gap: 3px; }
  .workflow-line { justify-content: flex-start; }
  .workflow-line b { display: none; }
}

/* Shared workspace: real identity, connection state, and account management. */
[hidden] { display: none !important; }
.shared-status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 28px 0; color: #668198; font-size: 11px; }
.shared-status-row .sync-error { color: #b84350; }
.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 28px 18px; background: radial-gradient(ellipse at 20% 0%,#e1edff 0,transparent 52%),#f4f8fc; }
.auth-card { width: min(440px,100%); background: white; border: 1px solid #dfe8f1; border-radius: 18px; padding: 34px; box-shadow: 0 18px 60px #22497312; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; color: #153f65; font-size: 23px; }
.auth-brand .brand-mark { flex: 0 0 36px; }
.auth-kicker { color: #2c76ce; background: #edf5ff; border-radius: 20px; padding: 5px 10px; font-size: 11px; }
.auth-card h1 { margin: 18px 0 8px; color: #163d5d; font-size: 27px; }
.auth-card p { font-size: 13px; color: #73899d; line-height: 1.65; }
.auth-card form { display: grid; gap: 16px; margin-top: 24px; }
.auth-card .field { font-size: 13px; }
.auth-card .field input { min-height: 44px; font-size: 16px; }
.auth-submit { justify-content: center; min-height: 44px; }
.auth-card .form-error { margin: 0; color: #bd4552; }
.auth-card .auth-help { border-top: 1px solid #e8eff5; margin-top: 22px; padding-top: 18px; font-size: 11px; }
.auth-back { width: 100%; margin-top: 12px; justify-content: center; }
.account-create { max-width: 720px; align-items: end; }
.account-submit { padding-bottom: 1px; }
.account-list { margin-top: 24px; max-height: 420px; overflow: auto; }
.account-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-list-heading h3 { color: #234967; font-size: 13px; margin: 10px 0; }
.account-row { align-items: center; }
.account-row > span { min-width: 0; overflow-wrap: anywhere; }
.account-row .btn { flex: 0 0 auto; }
.request-busy { cursor: progress; }
@media(max-width:780px){
  .shared-status-row { padding: 10px 14px 0; align-items: flex-start; line-height: 1.55; }
  .shared-status-row > span { flex: 1; min-width: 0; }
  .shared-status-row button { white-space: nowrap; padding: 3px 0; }
  .user-menu { display: flex; align-items: center; gap: 10px; }
  .user-menu .avatar { display: inline-flex; }
  .user-menu .user-copy { display: block; flex: 1; min-width: 0; }
  .user-copy strong, .user-copy small { white-space: normal; overflow-wrap: anywhere; }
  .user-menu #logoutBtn { min-height: 40px; padding: 7px 14px; }
  .mobile-bottom { grid-template-columns: auto minmax(0,1fr); }
  .auth-card { padding: 26px 22px; }
  .account-list-heading { align-items: stretch; flex-direction: column; gap: 4px; }
  .account-list-heading input { width: 100%; }
  .account-create .field input,.account-create .field select { min-height:44px;font-size:16px; }
  .toast { bottom: 74px; left: 14px; right: 14px; max-width: calc(100vw - 28px); }
}

/* Industry call guidance is independent of customer and follow-up dialogs. */
.talk-dialog { width: min(660px,calc(100vw - 32px)); height: min(88vh,860px); max-height: calc(100vh - 32px); overflow: hidden; background: #fff; }
.talk-dialog[open] { display: flex; flex-direction: column; }
.talk-dialog::backdrop { background: rgba(12,35,57,.55); }
.talk-header { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 17px; border-bottom: 1px solid #e5edf5; background: #fff; }
.talk-eyebrow { display: block; color: #3876b5; font-size: 12px; letter-spacing: .4px; }
.talk-header h2 { margin: 6px 0 0; color: #173f63; font-size: 22px; }
.talk-header .btn { min-height: 40px; }
.talk-body { min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 22px 24px 26px; scroll-behavior: smooth; }
.talk-body p { margin: 0; line-height: 1.85; font-size: 14px; overflow-wrap: anywhere; }
.talk-customer { padding: 15px 17px; background: #f3f7fc; border: 1px solid #e3ecf5; border-radius: 10px; margin-bottom: 20px; }
.talk-customer h3 { margin: 0 0 7px; color: #193f61; font-size: 17px; line-height: 1.6; overflow-wrap: anywhere; }
.talk-customer p { color: #607d97; font-size: 12px; }
.talk-customer p span { display: block; }
.talk-number { display: block; margin-top: 10px; color: #1c62ab; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.talk-selection { margin: 0 0 23px; }
.talk-selection label { display: block; margin-bottom: 7px; color: #486881; font-size: 13px; }
.talk-selection select { width: 100%; min-height: 43px; padding: 8px 12px; border: 1px solid #ccdeee; border-radius: 7px; background: #fff; color: #264d70; font-size: 15px; }
.talk-selection p { margin-top: 7px; color: #68849b; font-size: 12px; line-height: 1.65; }
.talk-section { margin: 22px 0; }
.talk-section h3 { margin: 0 0 12px; color: #204968; font-size: 16px; font-weight: 700; }
.talk-section h3 span { color: #5a8cbb; font-size: 12px; margin-right: 5px; font-weight: 500; }
.talk-section p { color: #3b5974; }
.talk-opening { border-left: 3px solid #3687db; padding: 15px 16px; background: #eef6ff; border-radius: 0 8px 8px 0; }
.talk-opening h3 { margin-bottom: 8px; }
.talk-opening p { color: #244c71; }
.talk-section ol,.talk-checkpoints ul { padding-left: 22px; margin: 0; color: #3b5974; }
.talk-section li,.talk-checkpoints li { padding-left: 3px; margin: 9px 0; font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.talk-section li::marker { color: #2a72ba; font-weight: 650; }
.talk-focus { border-radius: 8px; padding: 13px 16px; background: #f0f8f7; border: 1px solid #d8ece8; }
.talk-focus strong { color: #2b766e; font-size: 13px; }
.talk-focus p { color: #416d6c; font-size: 13px; margin-top: 5px; }
.talk-objections,.talk-checkpoints,.talk-source { border-top: 1px solid #e4edf4; padding: 15px 0; }
.talk-objections summary,.talk-checkpoints summary,.talk-source summary { cursor: pointer; color: #345e81; font-size: 14px; line-height: 1.65; }
.talk-objections summary span { color: #8aa0b3; font-size: 12px; margin-left: 5px; }
.talk-objections section { margin-top: 17px; padding: 0 0 0 12px; border-left: 2px solid #dce9f5; }
.talk-objections h4 { margin: 0 0 5px; color: #345a7a; font-size: 14px; }
.talk-objections p { color: #56738c; font-size: 13px; }
.talk-reminder { margin: 10px 0 16px !important; padding: 11px 13px; background: #fbf8ef; border-radius: 7px; color: #89764b; font-size: 12px !important; }
.talk-source { padding-bottom: 0; }
.talk-source summary,.talk-source p { color: #8195a8; font-size: 11px; }
.talk-source p { margin-top: 8px; }
.talk-footer { flex: 0 0 auto; padding: 13px 24px 19px; border-top: 1px solid #dfe9f3; background: #fff; box-shadow: 0 -7px 20px #254c6b08; }
.talk-footer p { margin: 0 0 10px; color: #7890a5; font-size: 11px; line-height: 1.6; }
.talk-dial { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 47px; text-align: center; text-decoration: none; font-size: 15px; }
.talk-dial small { font-size: 12px; font-weight: 400; opacity: .86; margin-left: 5px; }
.talk-dial[disabled] { background: #edf2f6; color: #8d9fae; border-color: #e3eaf0; cursor: default; }
.follow-talk-entry { display: flex; justify-content: flex-end; margin-bottom: 13px; }
.follow-talk-entry .table-link { min-height: 30px; font-size: 12px; }
@media(max-width:780px){
  .talk-dialog { width: calc(100vw - 16px); height: calc(100vh - 16px); height: calc(100dvh - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); margin: 8px auto; border-radius: 13px; }
  .talk-header { padding: 15px 17px 13px; }
  .talk-header h2 { font-size: 21px; }
  .talk-body { padding: 17px 17px 24px; }
  .talk-body p,.talk-section li,.talk-checkpoints li { font-size: 15px; line-height: 1.85; }
  .talk-customer p,.talk-selection p,.talk-focus p { font-size: 13px; }
  .talk-selection select { min-height: 46px; font-size: 16px; }
  .talk-section h3 { font-size: 17px; }
  .talk-objections p { font-size: 14px; }
  .talk-source p { font-size: 11px; }
  .talk-footer { padding: 12px 17px calc(14px + env(safe-area-inset-bottom,0px)); }
  .talk-dial { min-height: 48px; }
  .talk-dial small { display: block; margin: 2px 0 0; font-size: 12px; }
  .talk-footer p { font-size: 11px; }
}

/* Number protection and company-based daily access. */
.shared-status-copy { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
#phoneAccessStatus { color: #436f93; }
.phone-limit-warning { color: #a36220 !important; }
.phone-access-banner { margin: 0 0 16px; padding: 13px 16px; background: #edf5fd; border: 1px solid #d9e8f5; border-radius: 9px; }
.phone-access-banner strong { color: #245b86; font-size: 13px; }
.phone-access-banner p { color: #6b879d; font-size: 11px; line-height: 1.7; margin: 7px 0 0; }
.customer-phone { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 7px; }
.phone-protected { color: #7b91a4; font-size: 11px; }
.unlock-phone { color: #1b61a4; background: #eef6ff; border-color: #cfe1f3; white-space: nowrap; }
.unlock-phone[disabled] { opacity: .65; cursor: not-allowed; }
.phone-lock-note { display: block; flex-basis: 100%; color: #9c773e; font-size: 10px; line-height: 1.65; }
.reclaim-block { display: block; color: #a26d39; font-size: 11px; line-height: 1.65; margin-top: 7px; }
.claim-block-note { padding: 9px 12px; border-radius: 6px; background: #fcf7eb; color: #947039; font-size: 12px; line-height: 1.7; }
.talk-footer .unlock-phone { min-height: 48px; font-size: 15px; }
.talk-footer .phone-lock-note { margin-top: 7px; text-align: center; }
@media(max-width:780px){
  .shared-status-copy { display: grid; gap: 3px; flex: 1; min-width: 0; }
  .phone-access-banner { padding: 12px 13px; }
  .phone-access-banner strong { font-size: 13px; }
  .customer-phone .unlock-phone { min-height: 40px; padding: 8px 10px; }
  .phone-protected { font-size: 12px; }
  .phone-lock-note { font-size: 11px; }
}

/* Password lookup requires fresh verification and clears its short-lived result. */
.account-row-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.team-member-list { max-height: 340px; overflow-y: auto; }
.team-member-row { align-items: center; gap: 8px; }
.team-member-row > span { min-width: 0; overflow-wrap: anywhere; }
.team-member-row .btn { flex: 0 0 auto; }
.password-reveal-dialog { width: min(500px,calc(100vw - 28px)); }
.reveal-shell { padding: 23px; }
.reveal-employee { display: grid; gap: 6px; padding: 14px; background: #f2f7fc; border-radius: 8px; margin: 8px 0 17px; overflow-wrap: anywhere; }
.reveal-employee strong { color: #274e70; font-size: 16px; }
.reveal-employee span,.reveal-employee small { color: #748da3; font-size: 12px; }
.reveal-note { color: #6e879d; font-size: 12px; line-height: 1.8; }
#passwordRevealForm { display: grid; gap: 14px; padding: 4px 0 0; }
#passwordRevealForm .field { font-size: 13px; }
#passwordRevealForm input,#passwordRevealForm textarea,#revealedPassword { font-size: 16px; min-height: 44px; }
#passwordRevealForm .form-error { margin: 0; }
.reveal-audit-note { color: #327866; background: #eff8f4; border-radius: 7px; padding: 10px 12px; font-size: 12px; line-height: 1.7; }
.reveal-unavailable { color: #916e37; background: #fbf6e9; padding: 13px; border-radius: 8px; font-size: 13px; line-height: 1.9; }
.reveal-result-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 15px 0; }
@media(max-width:780px){
  .reveal-shell { padding: 19px; }
  .reveal-note,.reveal-audit-note { font-size: 13px; }
  .reveal-result-actions .btn { min-height: 44px; }
  .team-member-row { align-items: flex-start; flex-direction: column; }
  .team-member-row .btn { min-height: 36px; }
  .account-row-actions { gap: 5px; max-width: 172px; }
}

.backup-result dl { display: grid; grid-template-columns: 68px minmax(0,1fr); gap: 8px 12px; line-height: 1.65; }
.backup-result dt { color: #516f88; }
.backup-result dd { margin: 0; overflow-wrap: anywhere; }

.case-identities { display:flex; flex-wrap:wrap; gap:5px 18px; margin:12px 0; color:#526f86; font-size:12px; line-height:1.8; }
.case-identities span { overflow-wrap:anywhere; }
.case-identities b { color:#304f69; font-weight:600; }
.todo-item .case-identities { margin:6px 0 9px; font-size:11px; }
.team-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:15px; margin:0 0 16px; }
.team-toolbar p { margin:0; color:var(--muted); font-size:12px; line-height:1.7; }
.team-group-picker { width:min(300px,100%); margin:0; }
.team-mobile-select { display:none; }
.supervision-members { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr)); gap:12px; margin:18px 0 26px; }
.member-overview { background:white; border:1px solid var(--line); border-radius:10px; padding:13px; min-width:0; }
.member-overview.selected { border-color:#69a1e9; box-shadow:0 0 0 2px #e4f0ff; }
.member-pick { display:flex; align-items:center; gap:9px; width:100%; padding:0 0 12px; text-align:left; background:transparent; border:0; color:var(--ink); }
.member-avatar { flex:0 0 34px; height:34px; display:grid; place-items:center; background:#edf4fe; color:var(--blue); border-radius:50%; font-weight:700; }
.member-pick strong { display:block; font-size:14px; line-height:1.7; }
.member-pick small { display:block; margin-top:2px; color:var(--muted); font-size:10px; }
.member-pick > b { margin-left:auto; font-size:10px; color:var(--blue); font-weight:500; white-space:nowrap; }
.member-counts { display:grid; grid-template-columns:repeat(var(--metric-count,5),minmax(0,1fr)); gap:4px; }
.member-counts button { border:0; background:#f7f9fc; border-radius:6px; padding:9px 2px; color:var(--muted); min-width:0; }
.member-counts button.active { background:#e6f0ff; color:var(--blue); }
.member-counts button strong { display:block; font-size:18px; line-height:1.4; color:var(--ink); }
.member-counts button.active strong { color:var(--blue); }
.member-counts button span { display:block; margin-top:4px; font-size:10px; white-space:nowrap; }
.member-quota { font-size:10px; color:var(--muted); margin:11px 0 0; line-height:1.7; }
.team-selection-heading { display:flex; justify-content:space-between; align-items:center; gap:15px; margin:18px 0 12px; }
.team-selection-heading h2 { margin:0; font-size:20px; line-height:1.6; }
.team-selection-heading h2 span { display:inline-block; background:#e7f0fb; color:var(--blue); border-radius:15px; padding:1px 10px; font-size:13px; vertical-align:middle; }
.team-selection-heading p { color:var(--muted); font-size:12px; line-height:1.8; margin:6px 0; }
.team-detail-tabs { margin-top:15px; }
.team-customer-grid .work-card-heading h2 { font-size:15px; }
.team-customer-grid .case-identities { flex-direction:column; gap:3px; }

.case-identities.case-ownership { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.case-ownership > div { min-width:0; background:#f1f6fc; border:1px solid #e1ebf6; border-radius:7px; padding:8px 10px; }
.case-ownership dt { margin:0; color:#617c95; font-size:11px; line-height:1.6; }
.case-ownership dd { margin:3px 0 0; color:var(--navy); font-size:14px; font-weight:600; line-height:1.6; overflow-wrap:anywhere; }
.case-focus .case-ownership > div { background:#fff; }
.todo-item .case-ownership { margin:8px 0; }
.todo-item .case-ownership dd { font-size:13px; }
.collaboration-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.collaboration-heading h3 { margin:0; }
.collaboration-heading h3 small { display:inline-block; margin-left:8px; font-size:11px; color:var(--muted); font-weight:400; }
.collaboration-card { border:1px solid var(--line); border-radius:8px; padding:13px; margin:10px 0; font-size:12px; }
.collaboration-card.overdue { border-left:3px solid #dd935c; }
.collaboration-card .work-card-heading strong { min-width:0; overflow-wrap:anywhere; line-height:1.7; }
.collaboration-card .tag { flex-shrink:0; }
.collaboration-meta { display:flex; flex-wrap:wrap; gap:3px 15px; color:#617c95; line-height:1.7; margin:8px 0; }
.collaboration-note { margin:8px 0; padding:9px 11px; border-radius:6px; background:#f4f8fc; line-height:1.8; overflow-wrap:anywhere; }
.collaboration-events { color:#526f86; margin:9px 0; }
.collaboration-events summary { cursor:pointer; font-size:11px; }
.collaboration-event { padding:9px 0; border-bottom:1px solid #edf2f8; }
.collaboration-event small { font-size:11px; color:var(--muted); }
.collaboration-event p { margin:5px 0 0; line-height:1.8; overflow-wrap:anywhere; }
.collaboration-card .card-actions { margin-top:11px; }
.collaboration-completed { margin-top:12px; }

@media(max-width:780px){
  .mobile-bottom { display:flex; padding:4px 10px calc(4px + env(safe-area-inset-bottom)); height:auto; min-height:64px; }
  .app-shell { padding-bottom:calc(70px + env(safe-area-inset-bottom)); }
  .mobile-shortcuts button { min-height:52px; flex:1; }
  .case-actions .btn,.card-actions .btn,.todo-item .btn { min-height:40px; }
  .view-tabs { position:sticky; top:0; background:var(--bg); z-index:2; }
  dialog .full-span { grid-column:1/-1; }
  .team-mobile-select { display:grid; margin-top:12px; }
  .team-mobile-select select { font-size:16px; min-height:44px; }
  .supervision-members { grid-template-columns:minmax(0,1fr); margin:12px 0 20px; }
  .member-overview:not(.selected) { display:none; }
  .team-selection-heading { align-items:flex-start; flex-direction:column; gap:4px; }
  .team-selection-heading h2 { font-size:18px; }
  .team-detail-tabs button { padding:12px 4px; font-size:12px; }
  .team-detail-tabs small { margin-left:4px; padding:1px 4px; font-size:10px; }
  .case-identities { flex-direction:column; gap:3px; }
  .mobile-shortcuts button { padding-left:6px; padding-right:6px; }
}

@media(max-width:520px){
  .case-identities.case-ownership { grid-template-columns:minmax(0,1fr); gap:5px; }
  .case-ownership > div { display:grid; grid-template-columns:72px minmax(0,1fr); align-items:center; gap:10px; padding:7px 9px; }
  .case-ownership dd { margin:0; font-size:13px; }
}
