:root {
  --ink: #17191c;
  --ink-2: #252a30;
  --paper: #f5f4f1;
  --panel: #ffffff;
  --muted: #68717b;
  --line: #dedfdf;
  --accent: #315f7c;
  --accent-dark: #23475e;
  --accent-soft: #eaf1f5;
  --success: #2f6a4f;
  --success-soft: #eaf5ef;
  --danger: #a33e43;
  --danger-soft: #fff0f0;
  --shadow: 0 22px 70px rgba(23, 25, 28, .18);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--paper); color: var(--ink); }
body { font-family: Arial, "Segoe UI", sans-serif; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(49, 95, 124, .25); outline-offset: 2px; }

.loading-view, .signin-view { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: radial-gradient(circle at 50% 20%, #fff 0, var(--paper) 60%); }
.loading-view { align-content: center; text-align: center; }
.loading-view img { width: min(430px, 75vw); }
.loading-line { width: 160px; height: 2px; margin: 34px auto 18px; background: linear-gradient(90deg, transparent, var(--ink), transparent); animation: pulse 1.25s ease-in-out infinite; }
.loading-view p { color: var(--muted); font-size: 13px; }
.signin-card { width: min(560px, 95vw); padding: 54px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255, 255, 255, .94); box-shadow: var(--shadow); text-align: center; }
.signin-logo { width: min(390px, 82%); margin-bottom: 42px; }
.eyebrow { margin: 0 0 8px; color: #7a8087; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.signin-card h1, .page-intro h1, .panel-heading h2, .matter-modal h2, .success-modal h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.02em; }
.signin-card h1 { font-size: 40px; }
.signin-copy { max-width: 430px; margin: 18px auto 28px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.security-note { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 22px 0 0; color: #747b82; font-size: 11px; }
.security-note span { color: var(--success); }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 270px; display: flex; flex-direction: column; padding: 28px 20px 18px; background: var(--ink); color: #fff; }
.brand-lockup { display: block; padding: 2px 10px 34px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand-lockup img { display: block; width: 190px; max-height: 50px; object-fit: contain; object-position: left center; }
.brand-lockup span { display: block; margin-top: 16px; color: #bfc3c6; font: 400 14px Georgia, serif; letter-spacing: .08em; }
.sidebar nav { margin-top: 25px; }
.nav-item { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border: 0; border-radius: 4px; background: transparent; color: #c7cbcf; cursor: pointer; text-align: left; font-size: 13px; }
.nav-item:hover, .nav-item.active { background: rgba(255,255,255,.09); color: #fff; }
.nav-item.active { box-shadow: inset 3px 0 #fff; }
.nav-item > span { width: 20px; color: #9ca4aa; font-size: 18px; text-align: center; }
.nav-item b { margin-left: auto; min-width: 25px; padding: 3px 7px; border-radius: 12px; background: rgba(255,255,255,.12); font-size: 10px; text-align: center; }
.nav-item em { margin-left: auto; color: #858c92; font-size: 9px; font-style: normal; text-transform: uppercase; }
.system-boundary { margin-top: auto; display: flex; gap: 11px; padding: 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 4px; background: rgba(255,255,255,.04); }
.status-dot { width: 8px; height: 8px; flex: 0 0 auto; margin-top: 3px; border-radius: 50%; background: #73c69b; box-shadow: 0 0 0 3px rgba(115,198,155,.14); }
.system-boundary strong, .system-boundary small { display: block; }
.system-boundary strong { font-size: 11px; }
.system-boundary small { margin-top: 4px; color: #999fa5; font-size: 9px; line-height: 1.5; }
.profile-block { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 17px 8px 0; border-top: 1px solid rgba(255,255,255,.1); }
.profile-block > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); font-size: 10px; font-weight: 700; }
.profile-block div { min-width: 0; flex: 1; }
.profile-block strong, .profile-block small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-block strong { font-size: 11px; }
.profile-block small { margin-top: 3px; color: #91989e; font-size: 9px; }
.profile-block > a { color: #969da3; }

.main-area { min-width: 0; flex: 1; margin-left: 270px; }
.topbar { position: sticky; top: 0; z-index: 15; min-height: 76px; display: flex; align-items: center; gap: 20px; padding: 0 38px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.mobile-title { display: none; }
.global-search { width: min(620px, 60vw); height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid #d9dcde; border-radius: 4px; background: #fafafa; }
.global-search > span { color: #69747d; font-size: 21px; transform: rotate(-15deg); }
.global-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.global-search kbd { padding: 3px 6px; border: 1px solid #d8dadd; border-radius: 3px; background: #fff; color: #858b91; font-size: 9px; }
.topbar > .button { margin-left: auto; }
.content { max-width: 1460px; margin: 0 auto; padding: 42px 46px 70px; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.page-intro h1 { color: #1c2126; font-size: 38px; }
.page-intro p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.text-link { border: 0; background: transparent; color: var(--accent); cursor: pointer; font-size: 12px; font-weight: 700; }
.text-link span { margin-left: 5px; }
.connection-banner { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; padding: 14px 16px; border: 1px solid #cddce4; border-radius: 4px; background: #f2f7f9; color: #455963; }
.connection-banner > span { width: 23px; height: 23px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--success-soft); color: var(--success); font-size: 11px; font-weight: 800; }
.connection-banner p { margin: 1px 0 0; font-size: 11px; line-height: 1.55; }
.connection-banner strong { color: #294250; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.summary-grid.four-up { grid-template-columns: repeat(4, minmax(0,1fr)); }
.summary-grid article { min-height: 112px; padding: 19px 20px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.summary-grid small, .summary-grid span, .summary-grid strong { display: block; }
.summary-grid small { color: #7b8289; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.summary-grid strong { margin-top: 12px; font: 400 24px Georgia, serif; }
.summary-grid span { margin-top: 6px; color: #7b8289; font-size: 10px; }
.matter-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 22px 24px; }
.panel-heading h2 { font-size: 22px; }
.panel-heading > span { color: #7b8289; font-size: 11px; }
.matter-table-head, .matter-row { display: grid; grid-template-columns: minmax(230px, .95fr) minmax(260px, 1.15fr) 110px 135px; align-items: center; gap: 18px; }
.contact-table-head, .contact-row { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(300px, 1.2fr) 90px; align-items: center; gap: 18px; }
.matter-table-head { padding: 10px 24px; border-top: 1px solid #ebeced; border-bottom: 1px solid #ebeced; background: #f8f8f7; color: #858b90; font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.contact-table-head { padding: 10px 24px; border-top: 1px solid #ebeced; border-bottom: 1px solid #ebeced; background: #f8f8f7; color: #858b90; font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.matter-row { width: 100%; min-height: 74px; padding: 12px 24px; border: 0; border-bottom: 1px solid #eceeef; background: #fff; text-align: left; }
.contact-row { min-height: 82px; padding: 14px 24px; border-bottom: 1px solid #eceeef; background: #fff; }
.matter-row:last-child { border-bottom: 0; }
.contact-row:last-child { border-bottom: 0; }
.matter-row:hover { background: #fafafa; }
.contact-row:hover { background: #fafafa; }
.matter-copy { min-width: 0; }
.contact-copy { min-width: 0; }
.matter-copy strong, .matter-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-copy strong, .contact-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.matter-copy strong { font-size: 13px; }
.contact-copy strong { font-size: 13px; }
.matter-copy small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.matter-state-copy { min-width: 0; }
.matter-state-copy strong, .matter-state-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.matter-state-copy strong { color: #3d464e; font-size: 10px; font-weight: 700; }
.matter-state-copy small { margin-top: 5px; color: #8a9095; font-size: 9px; }
.review-date { color: var(--accent-dark); font-size: 10px; font-weight: 700; }
.review-date.unset { color: #92989d; font-weight: 400; }
.contact-copy small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.contact-relationships { display: flex; flex-wrap: wrap; gap: 5px; color: #858b90; font-size: 9px; }
.contact-relationships span { max-width: 100%; padding: 5px 7px; overflow: hidden; border-radius: 3px; background: var(--accent-soft); color: var(--accent-dark); text-overflow: ellipsis; white-space: nowrap; }
.status-chip { width: fit-content; padding: 5px 8px; border-radius: 12px; background: var(--success-soft); color: var(--success); font-size: 9px; font-weight: 700; }
.sync-pending { background: #f1f1ef; color: #6f7478; }
.sync-partial { background: #fff5df; color: #825e18; }
.open-link { justify-self: end; min-width: 126px; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #ccd2d6; border-radius: 4px; background: #fff; color: var(--ink); cursor: pointer; font-size: 10px; font-weight: 700; }
.open-link:hover { border-color: var(--accent); color: var(--accent); }
.empty-state { padding: 60px 20px; text-align: center; color: var(--muted); }
.empty-state > span { font-size: 30px; }
.empty-state h3 { margin: 12px 0 5px; color: var(--ink); font: 400 18px Georgia, serif; }
.empty-state p { margin: 0; font-size: 11px; }

.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border-radius: 4px; cursor: pointer; font-size: 11px; font-weight: 700; }
.button.primary { border: 1px solid var(--ink); background: var(--ink); color: #fff; }
.button.primary:hover { background: #33373c; }
.button.secondary { border: 1px solid #ccd0d3; background: #fff; color: var(--ink); }
.button.large { min-height: 48px; padding: 0 24px; font-size: 12px; }

.modal-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(17,19,21,.55); backdrop-filter: blur(5px); }
.matter-modal { width: min(760px, 96vw); max-height: 94vh; overflow-y: auto; padding: 30px; border-radius: 5px; background: #fff; box-shadow: var(--shadow); }
.matter-modal header { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.matter-modal h2, .success-modal h2 { font-size: 28px; }
.matter-modal header p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.icon-close { width: 36px; height: 36px; border: 0; background: transparent; color: #8a9096; cursor: pointer; font-size: 25px; }
.form-error { margin-bottom: 16px; padding: 12px 14px; border: 1px solid #efc8ca; border-radius: 4px; background: var(--danger-soft); color: var(--danger); font-size: 11px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.form-grid label, .full-field { display: grid; gap: 7px; }
.form-grid label > span, .full-field > span { font-size: 10px; font-weight: 700; }
.form-grid label em { color: #8a9095; font-size: 9px; font-style: normal; font-weight: 400; }
.form-grid input, .form-grid select, .full-field textarea { width: 100%; border: 1px solid #d7dadd; border-radius: 4px; background: #fff; color: var(--ink); font-size: 11px; }
.form-grid input, .form-grid select { min-height: 42px; padding: 0 11px; }
.team-field { margin: 17px 0 0; padding: 15px; border: 1px solid #d7dadd; border-radius: 4px; }
.team-field legend { padding: 0 5px; font-size: 10px; font-weight: 700; }
.team-field legend em { color: #8a9095; font-size: 9px; font-style: normal; font-weight: 400; }
.team-field > p { margin: 0 0 12px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.team-field > div { display: flex; flex-wrap: wrap; gap: 8px; }
.team-field label { min-width: 92px; display: flex; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid #dfe2e4; border-radius: 4px; background: #fafafa; cursor: pointer; font-size: 10px; font-weight: 700; }
.team-field input { margin: 0; accent-color: var(--ink); }
.team-field .role-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(180px,.55fr); gap: 12px; }
.team-field .role-fields > label { display: grid; gap: 7px; padding: 0; border: 0; background: transparent; }
.team-field .role-fields > label > span { font-size: 9px; }
.team-field .role-fields select { width: 100%; min-height: 42px; padding: 0 10px; border: 1px solid #d7dadd; border-radius: 4px; background: #fff; font-size: 10px; }
.team-field .role-fields .primary-role { grid-column: 1 / -1; display: flex; flex-direction: row; align-items: center; }
.full-field { margin-top: 15px; }
.full-field textarea { min-height: 74px; padding: 11px; resize: vertical; }
.confirmation { display: flex; align-items: flex-start; gap: 11px; margin-top: 18px; padding: 14px; border: 1px solid #d5d9dc; border-radius: 4px; background: #fafafa; }
.confirmation input { margin-top: 2px; }
.confirmation strong, .confirmation small { display: block; }
.confirmation strong { font-size: 10px; }
.confirmation small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.workflow-strip { display: flex; gap: 12px; margin-top: 16px; padding: 14px; border: 1px solid #ccdce5; border-radius: 4px; background: var(--accent-soft); }
.workflow-strip > span { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--accent-dark); color: #fff; font-size: 10px; }
.workflow-strip p { margin: 0; }
.workflow-strip strong, .workflow-strip small { display: block; }
.workflow-strip strong { font-size: 10px; }
.workflow-strip small { margin-top: 4px; color: #5e6d76; font-size: 9px; line-height: 1.5; }
.matter-modal footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.success-modal { width: min(560px, 95vw); padding: 42px; border-radius: 5px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.success-mark { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; background: var(--success-soft); color: var(--success); font-size: 25px; }
.success-modal > p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.6; }
.success-actions { display: flex; justify-content: center; gap: 10px; margin: 24px 0 20px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 120; max-width: 390px; padding: 13px 16px; border-radius: 4px; background: var(--ink); color: #fff; box-shadow: var(--shadow); font-size: 11px; line-height: 1.4; }

.workspace-back { margin: 0 0 20px; padding: 0; border: 0; background: transparent; color: var(--accent); cursor: pointer; font-size: 11px; font-weight: 700; }
.workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.workspace-heading h1 { margin: 0; font: 400 36px Georgia, "Times New Roman", serif; letter-spacing: -.02em; }
.workspace-heading > div:first-child > p:last-child { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.workspace-actions { display: flex; gap: 9px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 16px; }
.workspace-card { padding: 22px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.section-heading h2 { margin: 0; font: 400 22px Georgia, "Times New Roman", serif; }
.record-state { padding: 5px 8px; border-radius: 12px; background: #f1f1ef; color: #747a7f; font-size: 9px; font-weight: 700; }
.record-state.recorded { background: var(--success-soft); color: var(--success); }
.workspace-prose { min-height: 78px; margin: 22px 0; color: #343b42; font: 400 17px/1.65 Georgia, "Times New Roman", serif; }
.workspace-prose.empty-copy { color: #8b9196; font-style: italic; }
.state-triptych { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid #e5e7e8; border-radius: 4px; overflow: hidden; }
.state-triptych > div { min-height: 96px; padding: 14px; background: #fafafa; }
.state-triptych > div + div { border-left: 1px solid #e5e7e8; }
.state-triptych small, .state-triptych strong { display: block; }
.state-triptych small { color: #848b90; font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.state-triptych strong { margin-top: 9px; color: #38434b; font-size: 10px; line-height: 1.55; }
.matter-facts { margin: 16px 0 0; }
.matter-facts > div { padding: 12px 0; border-top: 1px solid #eceeef; }
.matter-facts dt { color: #888f94; font-size: 8px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.matter-facts dd { margin: 5px 0 0; color: #364048; font-size: 10px; line-height: 1.5; }
.work-items-card, .related-contacts-card { min-height: 310px; }
.section-explainer { margin: 8px 0 17px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.workspace-list { border-top: 1px solid #eceeef; }
.workspace-list-row { min-height: 66px; display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eceeef; }
.workspace-list-row > div:not(.work-item-actions) { min-width: 0; flex: 1; }
.workspace-list-row strong, .workspace-list-row small { display: block; }
.workspace-list-row strong { color: #303941; font-size: 10px; }
.workspace-list-row small { margin-top: 5px; color: #7c858c; font-size: 8px; line-height: 1.5; }
.work-marker { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-size: 11px; font-weight: 800; }
.priority-urgent .work-marker { background: var(--danger-soft); color: var(--danger); }
.work-item-actions { display: flex; align-items: center; gap: 7px; }
.work-item-actions button { min-height: 28px; padding: 0 8px; border: 1px solid #d7dadd; border-radius: 4px; background: #fff; color: var(--accent); cursor: pointer; font-size: 8px; font-weight: 700; }
.work-status { padding: 5px 7px; border-radius: 11px; background: #f1f1ef; color: #70767a; font-size: 8px; font-weight: 700; }
.status-in-progress { background: var(--accent-soft); color: var(--accent-dark); }
.status-waiting { background: #fff5df; color: #825e18; }
.status-done { background: var(--success-soft); color: var(--success); }
.workspace-empty { min-height: 145px; display: flex; align-items: center; justify-content: center; gap: 12px; color: #858c91; text-align: left; }
.workspace-empty > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #f0f3f4; color: var(--accent); }
.workspace-empty strong, .workspace-empty small { display: block; }
.workspace-empty strong { color: #5e676e; font-size: 10px; }
.workspace-empty small { max-width: 320px; margin-top: 4px; font-size: 8px; line-height: 1.5; }
.connected-systems { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.connected-systems > div { min-height: 78px; display: flex; align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.system-mark { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #f0f1f1; color: #6d7479; font-size: 10px; font-weight: 800; }
.system-mark.connected { background: var(--success-soft); color: var(--success); }
.connected-systems p { min-width: 0; flex: 1; margin: 0; }
.connected-systems strong, .connected-systems small { display: block; }
.connected-systems strong { font-size: 10px; }
.connected-systems small { margin-top: 4px; color: #82898f; font-size: 8px; }
.connected-systems a { color: var(--accent); font-size: 8px; font-weight: 700; }
.connected-systems em { color: #8b9196; font-size: 8px; font-style: normal; }
.workspace-form-modal { width: min(820px, 96vw); }
.work-item-modal { width: min(650px, 96vw); }
.form-grid-spaced { margin-top: 15px; }
.full-field em { color: #8a9095; font-size: 9px; font-style: normal; font-weight: 400; }

@keyframes pulse { 0%,100% { opacity: .25; transform: scaleX(.6); } 50% { opacity: 1; transform: scaleX(1); } }

@media (max-width: 900px) {
  .sidebar { width: 220px; }
  .main-area { margin-left: 220px; }
  .content { padding: 34px 25px 55px; }
  .summary-grid.four-up { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .matter-table-head, .matter-row { grid-template-columns: minmax(210px,.9fr) minmax(220px,1.1fr) 100px 130px; }
  .contact-table-head, .contact-row { grid-template-columns: minmax(220px,.8fr) minmax(260px,1.2fr) 80px; }
  .workspace-grid { grid-template-columns: 1fr; }
  .connected-systems { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .sidebar { display: none; }
  .main-area { margin-left: 0; }
  .topbar { min-height: 70px; padding: 12px 16px; flex-wrap: wrap; }
  .mobile-title { display: flex; align-items: center; gap: 8px; }
  .mobile-title img { width: 34px; height: 27px; }
  .mobile-title b { font: 400 15px Georgia, serif; }
  .topbar > .button { min-height: 36px; padding: 0 11px; }
  .global-search { order: 3; width: 100%; }
  .global-search kbd { display: none; }
  .content { padding: 26px 14px 44px; }
  .page-intro { align-items: flex-start; }
  .page-intro h1 { font-size: 30px; }
  .page-intro .text-link { display: none; }
  .summary-grid, .summary-grid.four-up { grid-template-columns: 1fr; }
  .matter-table-head { display: none; }
  .contact-table-head { display: none; }
  .matter-row { grid-template-columns: 1fr 126px; padding: 14px 16px; }
  .contact-row { grid-template-columns: 1fr auto; padding: 14px 16px; }
  .matter-row > :nth-child(2), .matter-row > :nth-child(3) { display: none; }
  .contact-row > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .panel-heading { padding: 18px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .team-field .role-fields { grid-template-columns: 1fr; }
  .matter-modal { padding: 22px; }
  .success-actions { flex-direction: column; }
  .signin-card { padding: 38px 24px; }
  .workspace-heading { align-items: flex-start; flex-direction: column; }
  .workspace-actions { width: 100%; flex-wrap: wrap; }
  .state-triptych { grid-template-columns: 1fr; }
  .state-triptych > div + div { border-left: 0; border-top: 1px solid #e5e7e8; }
  .work-item-row { align-items: flex-start; flex-wrap: wrap; }
  .work-item-actions { width: 100%; padding-left: 41px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }
